Research Article
Research on MAC Protocols in Cluster-Based Ad Hoc Networks
Algorithm 1
The transmitting and receiving workflow of SYNC frame.
| The transmitting and receiving workflow of SYNC frame | | for time-slot =1:n | | if (is-sending-timeslot(time-slot)==1) | | send the data packet; | | else if some data packet arrives, | | receive this packet; | | else if there are SYNC frames in the sending buffer, | | send this SYNC frames; | | else if there are no SYNC frames in the sending buffer, | | plan to receive the SYNC frames; | | end if | | end for |
|