-
Notifications
You must be signed in to change notification settings - Fork 1
XHidamariSketchX/implements-RIPDS-in-TinyOS
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
/** * PARTLY implement of RFC4944 and RIPDS version1.0 * @author xuji * @date 2013/4/26 * * experiment result see log.txt */ ************************************************************************************************************************* P=0.95 LINK_DATA_MTU=110 DATAGRAM_SIZE=1500 128bit IPv6 address { IPv6_PF:IPv6_ID }=fe:80::ff:fe:00:{short_address} l0=LINK_DATA_MTU-sizeof{NC_DISPATCH +enc_sn + i + m } m=『DATAGRAM_SIZE/l0『 M=m*『1/P『 *****************************Coding Fragment***************************************************************************** octets DATAGRAM_SIZE +------+------+------------------+-----+ IPv6_PKT | k1 | k2 | ........ | km | +------+------+------------------+-----+ octets 11 1 1 1 1 {l0} 2 +-----------+-------------+-------+-----+-----+----------+----+ For each Frame | MAC_Hdr | NC_DISPATCH |enc_sn | i | m | Qi |FCS | +-----------+-------------+-------+-----+-----+----------+----+ i++ octets 2 1 2 2 2 1 1 +---+---+-------+----+---+ +-------+----+ MAC_Hdr: |fcf|dsn|destpan|dest|src| + |network|type| +---+---+-------+----+---+ +-------+----+ 802.15.4 Hdr tinyos ActiveMessage Hdr *****************************ACK Frame***************************************************************************** octets 11 1 2 +-----------+------+---+ ACK Frame | MAC_Hdr |enc_sn|FCS| +-----------+------+---+ enc_sn :which IPv6_PKT to ACK ***************************************************************************************************************** 1 {short_address} ● node ------i-> next hop receive i coding frame NOTE :Next hop will receive more than <m> frames During the next hop send MY ACK frame and the frame to be received by forward hop Forward hop should continue send coding frame IT shows next hop will receive more two or three coding frame node 1 IPv6 address fe:80::ff:fe:00:01 node 2 IPv6 address fe:80::ff:fe:00:02 node 3 IPv6 address fe:80::ff:fe:00:03 Every second the soure node 1 send App_DATA to Destionation node 3 1 2 3 *****1th App_DATA ● ● ● ***** ↑ ------1-> ↑ ↑ ------2-> ↑ ↑ . ↑ ↑ . ↑ ↑ . ↑ ↑ ------m-> ↑ ↑ ●<_ACK_● ● ------1-> ≈750-950ms ------2-> . 1000ms . ↓ . ↓ ------m-> ↓ ↓ ●<___ACK_● ↓ ↓ ●<___AC●K______」 ***** ↓ ↓ ↓ ↓ ↓ ↓ ↓ 1 2 3 ***** ● ● ● ------1-> ------2-> . . . ------m-> ●<_ACK_● ● . . . . . . . 20th App_DATA **********************************************************************************************************************
About
PARTLY implementation of RIPDS
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published