next up previous
Next: Packet to be transmitted Up: Psuedocode for Packet Processing Previous: End of a Down

End of a Up Slot

 Comment:  xxxxxxxxxxxxB<>Method:		 upslotHandler(Event *e)

Comment: An MS can transmit a packet if it has one scheduled for transmission.

Action: Restart upslot timer to clock the next slot

Compare node_address with the BS_address

If node is an MS

Check if it has a packet to transmit in pktTx[up_slot_]

if pktTx[up_slot_] is not NULL

Start slot release timer, if IFQ is empty

Switch the radio ON

Pass the packet in pktTx[up_slot_] to tx_onto_PHY ()

Free pktTx[up_slot_]

Else do nothing

Increment upslot counter. Take care of wrap around.



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