Research Article
A Novel Cooperation-Based Network Coding Scheme for Walking Scenarios in WBANs
Algorithm 1
Uplink and downlink allocation.
Input: Receive a from radio layer | Get PID, MAC address, required time slots from ; | if Find a record in by MAC Address then | Set by ; | else | = current free connected NID; | end | if comes from a sensor node then | if Find a record in by PID then | Set and by the record; | else | Set and from the end of ; | Update ; | end | else | if Find a record in by PID then | Set and by the record; | Set and from the end of ; | Update ; | else | Discard ; | end | end | Construct a based on , , , and ; | Add to sending buffer; |
|