Monday, September 29, 2008

MAC PDU Construction

Diagram shows an example of MAC PDU construction.


As shown multiple SDUs can be packed in a single MAC PDU or a single SDU can be fragmented in multiple MAC PDUs. Packing (PSH) and Fragmentation (FSH) in the PDU can be indicated using 6 bit TYPE filed in GMH. Blocks of these packed or fragmented SDUs are assined a unique 3bit or 11bit Block Sequence Number (BSN).

Generic MAC Header

The primary task of the WiMAX MAC layer is to provide an interface between the higher transport layers and the physical layer. The MAC layer takes packets from the upper layer - these packets are called MAC service data units (MSDUs) and organizes them into MAC protocol data units (MPDUs) for transmission over the air. For received transmissions, the MAC layer does the reverse.

MAC PDU construction topic shows an example of MAC PDU frame.

Each MAC PDU contains 3 components: GMH, which contains frame control information, variable length frame body and 32-bit CRCMAC PDUs are transmitted in PHY burst. A singal PHY burst contains multiple concatenated MAC PDUs.


Generic MAC Header fields (GMH):
If Header Type (HT) field is '0' then it is GMH header.
CI - CRC indication bit
CID - 16 bit connection identifier
EC - Encryption control bit
EKS - Encryption key sequence
ESF - Extended subheader indication bit
HCS - 8 bit Header Check Sum
HT - Header Type, shall be '0'
Len - 11 bit length of PDU
Type - 6 bit special Payload Type (PSH, FSH, ARQ feedback etc...)


Bandwidth Request fields:
This PDU is applicable to UL only.
It does not contain any payload and should not be encrypted.

BR - 19 bit Bandwidth request
HT - Header Type, shall be '0'
EC - always set to zero
CID - 16 bit connection identifier
HCS - 8 bit Header Check Sum
Type - 3 bit type of BR header

WiMax Frame Structure

WiMax PHY frame consist of DL subframe, UL subframe, TTG and RTG (in TDD system).DL subframe is the place where Base station send downlink data to mobile stations. UL subframe is the place where mobile stations sends uplink data to base station.Transmit Time Gap (TTG) and Receive Time Gap (RTG) is the guard time between DL and UL subframe respectively.


DL Subframe begins with the preamble, which is used for PHY layer procedures, such as time ans frequency synchronization and initial channel estimation. Preamble occupies first symbol of the DL subframe. If the vehicle is moving very fast then there will be some time variation and b'coz of that there will be sync loss, to recover this time variation, a short midamble can be inserted within a frame. It is estimated that having a midamble every 10 symbols allows mobility up to 150 kmph.

First zone in DL and UL subframe must be PUSC.

The downlink preamble is followed by a frame control header (FCH), which provides frame configuration information, such as the MAP message length, the modulation and coding scheme, and the usable subcarriers.

Multiple users are allocated data regions within the frame, and these allocations are specified in the uplink and downlink MAP messages (DL-MAP and UL-MAP) that are broadcast following the FCH in the downlink subframe. MAP messages include the burst profile for each user, which defines the modulation and coding scheme used in that burst. Since MAP contains critical information that needs to reach all users, it is often sent over a very reliable link, such as BPSK with rate 1/2 coding and repetition coding.

FCH, DLMAP and ULMAP must be sent in PUSC zone

UL subframe consist of several UL bursts, RNG channel, HARQ ACK channel and CQI channel.RNG, ACK and CQI must fall in PUSC zone.

RNG channel is used for NW entry, periodic ranging and for BW request.
ACK channel is where mobile stations provide HARQ acknowledgment.
CQI channel is used for providing channel quality indication, so that based on that information Scheduler can change the Modulation parameters accordingly. And can maximize system throughput.