next up previous
Next: Resources have to be Up: Psuedocode for Packet Processing Previous: Packet receive completed

A packet has to be passed to the RLC

 Comment:  xxxxxxxxxxxxB<>Method:		 fwd_DATA_to_LL()

Comment: The packet can be either a MAC control packet or data packet

It has to be handled accordingly.

Action: Check MAC type

If MAC type == DATA

Remove MAC header

Increment hop count in the packet's common header

Pass it on to the uptarget, the RLC in this case

If MAC type == Control, check for subtype

If MAC sub type == res_request

Allot a slot to the source MS, through slot_allot()

Schedule a res_reply to be sent

If MAC sub type == res_reply

Stop the wait timer

Obtain the slot and frequency reserved for me from the res_reply header

Set tx_chan[slot]=rx_chan[slot] = frequency

Unmark the waiting packet at the BS

Move the packet buffered at the MS to pktTx[slot]

Pass the pktTx[slot] to rx_from_ll()

Unlock the IFQ

If MAC sub type == tx_end

Clear the corresponding MS' entry from the vlr_.down_table and vlr_.up_table



Richa Jain (96D07007)
Tue Jul 24 22:29:53 IST 2001