Changes between Version 9 and Version 10 of CSMAMAC
- Timestamp:
- Feb 7, 2008, 9:59:29 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CSMAMAC
v9 v10 3 3 The CSMAMAC is serves as the user-level MAC layer in [wiki:OFDMReferenceDesign reference design]. The basic algorithm is simple: 4 4 5 * Do I have a packet to send?5 * Do I have a packet to send? 6 6 * If the medium is idle, send it, enter a timeout, and wait for an acknowledgment from the destination 7 7 * If the medium is busy, enter a backoff period and wait for the medium to become idle 8 * Did I receive a data packet?8 * Did I receive a data packet? 9 9 * If the packet pass checksum and is addressed to me, send an acknowledgment 10 * Did no know acknowledgment happen during a timeout period?10 * Did no know acknowledgment happen during a timeout period? 11 11 * If the maximum number of retransmits has not occurred, enter a backoff and try retransmitting 12 12 * If the maximum number of retransmits has occurred, drop the packet 13 * Did I wait through a backoff period?13 * Did I wait through a backoff period? 14 14 * If the medium is busy, retransmit, increment the total number of resends, enter a timeout, and wait for an acknowledgment from the destination 15 15 * If the medium is busy, enter a backoff period and wait for the medium to become idle