Implementation details of the Mac Layer are described here.
We describe the basic channel, the TDMA slot structure, modeling of
packet transmission and reception, along with the slot handling and call
handling mechanism used. We also describe how we have dealt with
exceptions like collisions and errors on the channel.
The relevant code can be found in ns/mac-gprs.{cc,h}