The source codes are from the "Simulation and software Radio for mobile communication" It contain the MAC level protocol algorithm.