PHY Frame Octets 4 1 Preamble SFD SHR
PHY Frame Octets: 4 1 Preamble SFD SHR 1 Frame length(7 bits) Variable Reserved(1 bit ) PHR a. Max. PHYPacket. Size(=127): the maximum PSDU size (in octets). PSDU PHY payload
MAC Frame的結構 四種Frame的結構定義 o A beacon frame o A data frame o An Acknowledgment frame o A MAC command frame
Beacon frame Octets: MAC Sublayer 2 1 Frame Control 4 to 10 Sequence Number Addressing Fields 2 k Superframe Specification GTS Field MHR Octets: PHY layer n 2 Pending Address Fields Beacon Payload FCS MSDU 4 1 1 Preamble Sequence Start of Frame Delimiter Frame Length SHR m 7+(4 to 10)+k+m+n PSDU PHR 13+(4 to 10)+k+m+n PPDU MFR
Frame Control Bit: 0 -2 3 4 5 6 7 -9 9 -11 11 -13 13 -15 Frame type Security enabled Frame pending Ack. Request Intra. PAN Resv. Dest. Addr. Mode Resv. Src. Addr. mode
Addressing field: Bit: 2 2/8 Source PANId Source Address
Superframe specification Bit: 0 -3 4 -7 8 -11 12 13 14 15 Beacon order Superframe order Final CAP slot Battery life extension Resv. PAN coordinator Association permit
GTS Field Octs GTS direction Variable GTS list GTS specification GTS direction GTS descriptor … Bits: 0 -2 3 -6 7 Bit: 015 16 -19 20 -23 GTS descriptor Resv. GTS permit GTS directions Mask Resv. Device short address GTS staring GTS length …
Pending Address Octs: 1 Variable Pending address specification Address list Bit: 0 -2 3 4 -6 NO. of short addresses pending Resv. No. of extended addresses pending
Data frame Octets: Frame Control MAC Sublayer 1 4 to 20 Sequcnce Number Addressing Fields NHR Octets: 4 PHY layer 2 Preamble Sequence 1 1 Start of Frame Delimiter Frame Length MPDU PHR PSDU SHR 5+(4 to 20)+n 11+(4 to 20)+n PPDU n 2 Data Payload FCS MSDU MFR
Addressing field 0/2 0/2/8 Dest. PANId Dest. Addr. Src. PANId Src. Addr.
Ack frame Octets: MAC Sublayer Octets: 4 PHY layer Preamble Sequence 1 1 Start of Frame Delimiter Frame Length SHR 2 1 2 Frame Control Sequence Number FCS NHR MFR 5 MPDU PHR PSDU 11 PPDU MPDU 包含只有 MHR 以及 MFR不包含 MSDU.
MAC Command Frame Octets: MAC Sublayer 2 Frame Control 1 Seqence Number 4 to 20 Addressing Fields MHR PHY layer 1 Command Type Command frame identifier MSDU 26+(4 to 20)+n 4 1 1 Preamble Sequence Start of Frame Delimiter Frame Length MPDU PHR PSDU SHR 12+(4 to 20)+n PPDU Data frame 來自於更上層 其他則來自於 MAC layer n 2 FCS MFR
Command Type MAC command frame id. Command name RFD Tx 0 x 01 Association request X 0 x 02 Association response 0 x 03 Disassociation notification X 0 x 04 Data request X 0 x 05 PAN ID conflict notification X 0 x 06 Orphan notification X 0 x 07 Beacon request 0 x 08 Coordinator realignment 0 x 09 GTS request 0 x 0 a~0 xff Reserved Rx X
Association Request Command Octs 2 1 2 2/8 2 8 1 Frame control Sequence number Dest. PANId Dest. Addr. Src. PANId. Src. Addr. Command frame id. ffff 01 1 2 Fcs Capability information
Capability information: Bit: 0 1 2 3 4 -5 6 7 Alternate PAN coordinator Device type Power source RX. On when idle Resv. Security capability Allocate address
Association Response Command Octs: 2 1 2 8 1 2 Frame control Seq. No. Dest. PANId Dest. Addr. Src. PANId Src. Addr. Command frame id. Short address Association status FCS 02
Disassociation notification Octs 2 1 2 8 1 Frame control Sequence number Dest. PANId Dest. Addr. Src. PANId. Src. Addr. Command frame id. 03 1 2 Fcs Disassociation reason
Data Request Command Octs 2 1 0/2 2 2/8 1 2 Frame control Sequence number Dest. PANId Dest. Addr. Src. PANId. Src. Addr. Command frame id. Fcs 04
PAN ID Conflict Notification Cmd. Octs 2 1 2 8 1 2 Frame control Sequence number Dest. PANId Dest. Addr. Src. PANId. Src. Addr. Command frame id. Fcs 05
Orphan Notification Command Octs 2 1 2 2 2 8 1 2 Frame control Sequence number Dest. PANId Dest. Addr. Src. PANId. Src. Addr. Command frame id. Fcs ffff 06
Beacon Request Command Octs 2 1 2 2 0 0 1 2 Frame control Sequence number Dest. PANId Dest. Addr. Src. PANId. Src. Addr. Command frame id. Fcs ffff 07
Coordinator Realignment Command (to an Orphan) Octs: 2 1 2 8 1 2 2 Frame control Sequence number Dest. PANId Dest. Addr. Src. PANId Src. Addr. command Frame id. PAN id. Coord. Short addr. Logic channel Short Addr. FCS ffff 08
Coordinator Realignment Command (broadcast) Octs: 2 1 2 2 2 8 1 2 2 Frame control Sequence number Dest. PANId Dest. Addr. Src. PANId Src. Addr. command Frame id. PAN id. Logic channel Short Addr. FCS ffff Coord. Short addr. 08 ffff
GTS Request Command Octs 2 1 0 0 2 2 1 1 2 Frame control Sequence number Dest. PANId Dest. Addr. Src. PANId. Src. Addr. Command frame id. GTS characteristics Fcs 09
GTS characteristics: Bis: 0 -3 4 5 6 -7 GTS length GTS direction Characteristics type Resv.
- Slides: 25