Insights into the performance and configuration of TCP in Automotive Ethernet...
Improving Distributed TCP Caching for Wireless Sensor Networks
1. Improving Distributed TCP
Caching for Wireless
Sensor Networks
Ahmed Ayadi, Patrick Maillé and David Ros
Institut Telecom / Telecom Bretagne
MedHocNet Workshop, June 25, Juan les Pins 2010
4. Reliable transport protocol for WSNs
The WSNs are fault-tolerant networks
The number of sensor network applications grows, so
there is a need to build more powerful hardware
capable of reprogramming or re-tasking sensors.
New military and hearth applications are sensitive to
losses.
All these tasks require reliable data transport from the
sink to wireless node and vice versa.
The most deployed reliable transport protocol model in
the Internet is TCP/IP.
Running TCP/IP in the sensor network makes it
possible to connect the sensor network directly to IP-
based network infrastructures without proxies.
4 TELECOM Bretagne Improving Distributed TCP Caching
5. Problems of TCP deployment in WSNs
High error rate in wireless networks (interferences,
congestion, collisions, etc),
End-to-end retransmission of lost packets,
Length of TCP header (20-60 bytes),
The number of TCP acknowledgements.
5 TELECOM Bretagne Improving Distributed TCP Caching
7. Distributed TCP Caching (DTC)
A DTC node saves the received TCP-DATA segment if
the cache buffer is empty or unlocked.
A DTC locks a segment if a link layer acknowledgement
is not received.
DTC uses TCP-SACK to detect packet loss.
A DTC node measures the round-trip timer (RTT) to the
receiver and sets a retransmission time out (RTO) to
1.5 x RTT.
A DTC node retransmits a cached segments after a RTO
if it does not receive a TCP-ACK or TCP-SACK.
7 TELECOM Bretagne Improving Distributed TCP Caching
9. Limits of DTC
DTC does not take into account TCP-ACK losses,
A DTC node can loss the cached,
DTC does not smooth the RTT value in intermediate
nodes,
9 TELECOM Bretagne Improving Distributed TCP Caching
10. Enhanced Distributed TCP Caching
New version of DTC for CSMA-CA networks (e.g. IEEE
802.11 and IEEE 802.15.4),
A EDTC node detects TCP-ACK losses and deletes
already acknowledged TCP segment,
EDTC disables retransmission of already retransmitted
segments,
An EDTC node locks received TCP DATA segments and
unlocks them after receiving a LL-ACK,
EDTC computes smoothed RTO with Paxson and
Allman algorithm.
10 TELECOM Bretagne Improving Distributed TCP Caching
11. Disable unnecessary retransmissions
1 2 3 4 5 6 7 8 9 10
TCP-DATA N
TCP-DATA N
TCP-DATA N
TCP-ACK N+1
11 TELECOM Bretagne Improving Distributed TCP Caching
15. Simulation parameters
Parameters Value
MAC layer IEEE 802.11b RTS/CTS disabled
PHY bitrate 1Mbps
Propagation model FreeSpace Model (PathLoss = 3)
Distance between wireless nodes 200 meters
Routing protocol AODV
Transferred data size 50kBytes
TCP MSS 100 Bytes
TCP advertised window 200 Bytes
15 TELECOM Bretagne Improving Distributed TCP Caching
16. Consumed Energy & Transfer Duration
• DTC with the new cache
management (DTC-CM) and
DTC with smoothed RTO (DTC-
SRTO) reduce better the
consumed energy than DTC
• EDTC combines the two
schemes and gives the best
results
• EDTC reduces the transfer
duration and increases the
throughput of the TCP
connection.
16 TELECOM Bretagne Improving Distributed TCP Caching
17. DTC vs EDTC with different BER
• EDTC is more energy efficient than DTC and TCP in
low-lossy networks and high-lossy networks.
17 TELECOM Bretagne Improving Distributed TCP Caching
18. TCP Congestion Windows
• The increase of the TCP window does not increase
significantly the TCP throughput,
• The use of short TCP window reduces the congestion
and the interference between TCP-ACK and TCP-DATA
messages,
18 TELECOM Bretagne Improving Distributed TCP Caching
19. Maximum Link Layer Attempts
• The increase of the maximum link layer attempt
reduces the end-to-end TCP retransmissions,
19 TELECOM Bretagne Improving Distributed TCP Caching
20. Conclusion and Perspectives
EDTC is more energy-efficient than DTC and TCP,
EDTC increases the chance of TCP to be the reliable
transport protocol for WSNs,
Compress the TCP header,
Reduce the number of TCP acknowledgements,
Adapt the TCP maximum segment size depending on
the loss rate.
20 TELECOM Bretagne Improving Distributed TCP Caching