31
1 Transport Layer Issue Transport Layer Issue in Wireless in Wireless Ad Hoc and Sensor Ad Hoc and Sensor Network Network

1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

Embed Size (px)

Citation preview

Page 1: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

1

Transport Layer Issue Transport Layer Issue in Wireless in Wireless

Ad Hoc and Sensor Ad Hoc and Sensor Network Network

Page 2: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

2

OutlineOutline Introduction TCP Operation Problem Statement TCP Feedback Ad hoc TCP Conclusion References Questions

Page 3: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

3

Transport LayerTransport LayerTransport Layer is

the fourth layer of OSI reference model. It provided transparent transfer of data between end system using the service of the network layer.

Two main protocols are◦ Transmission Control

Protocol (TCP)◦ User Datagram

Protocol (UDP)

Page 4: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

4

TCP vs. UDPTCP vs. UDP

TCPConnection

oriented service Provides end-to-end

reliable communication

Congestion controlConnection

managementFlow controlWireless ad hoc

and wireless sensor network

UDP Is very simple

connectionless protocol

Does not guarantee reliability and correctness of the sequence of the packet

IPTV, streaming media, VoIP, and online games

Page 5: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

5

TCP vs. UDPTCP vs. UDP

Page 6: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

6

TCP vs. UDPTCP vs. UDP

Page 7: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

7

Mobile Ad hoc NetworkMobile Ad hoc NetworkMobile Ad hoc network (MANET) is self-

configured network which consist of mobile devices within a communication range of each other

Rapid topological change due to ◦ Mobility of the nodes

Tradition TCP design is not suitable

Page 8: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

8

Wireless Sensor NetworkWireless Sensor NetworkA wireless sensor network (WSN) is a

collection of sensor network that are capable of sensing physical phenomena

Rapid topological change due to ◦ Mobility of the nodes

Tradition TCP design is not suitable

Page 9: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

9

TCPTCP

Page 10: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

10

TCP Open OperationTCP Open Operation

Page 11: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

11

TCP Open OperationTCP Open Operation

Active participant(client)

Passive participant(server)

SYN, SequenceNum = x

SYN + ACK, SequenceNum = y,

ACK, Acknowledgment = y + 1

Acknowledgment = x + 1

Page 12: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

12

TCP Data Transfer TCP Data Transfer OperationOperation

Page 13: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

13

TCP Termination OperationTCP Termination Operation

Page 14: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

14

Active participant(server)

Passive participant(client)

FIN, SequenceNum = x

Acknowledgment = y + 1

Acknowledgment = x + 1

FIN, SequenceNum= y

Page 15: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

15

Problem Statement Problem Statement

TCP was originally designed and optimized for a wired network

In wired network route failure is not common

In mobile ad Hoc and sensor network route failure is frequent and it is unpredictable

Traditional TCP misinterpreted route failure as congestion problem

Page 16: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

16

TCP misinterpretationTCP misinterpretationThe sender TCP attempt to

perform the following:◦ Invoke congestion control mechanism◦ Retransmit unacknowledged packet◦ Enter a slow rate recovery phase◦ Waste the scarce power and BW of the

sender and intermediate nodes

Page 17: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

17

SolutionSolutionTCP-feedback (TCP-F)Ad hoc TCP or (ATCP)

Page 18: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

18

TCP-FTCP-FNetwork layer provide feedback to the

intermediate node and the source node’s TCP agent by notification packet◦ Route Failure Notification (RFN) packet◦ Rout Re-establishment Notification (RFN)

packet◦ The point where the route is disconnected is

called failed point (FP)The source node changes from active

state to snoozing state when it receives RFN◦ The route failure time (RFT) ensures the

sender does not remain in the snoozing state forever

Page 19: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

19

TCP-FTCP-F

N

S B D

G

A

F

E

D

C

RFNRFN

Failed Point

New Route

Page 20: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

20

TCP-FTCP-F

S B DA C

Faile

d Po

intRFNRFNRFNSnoozing State

C

RRN RRNRRNRRN

Page 21: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

21

TCP-F issueTCP-F issueIt does not re-calculation the

congestion window upon establishing a new route

Out-of- order packet is not optimizedBit error rate is not considered

Page 22: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

22

A TCPA TCPATCP is a thin layer that is inserted

between the IP and TCP It listen the network state information

provided by Explicit Congestion Notification (ECN) and by the ICMP “Destination Unreachable” message

The Source node change from active state to persist state when ICMP message is detected

ATCP change from connected to disconnected mode

Page 23: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

23

ATCPATCPTCP generate probe packet while

the source is in persist modeContinuously probe the network

until a new route is establishedDestination node send ACK

packet

Page 24: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

24

ATCP AdvantageATCP AdvantageStandard TCP/IP is not modifiedATCP is invisible to TCP ATCP does not interfere when

TCP is delivering end-to-end message between a mobile node to a wired network

Congestion window is calculated to adapt with the new route BW requirement

Page 25: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

25

ATCP DrawbackATCP DrawbackThe source node can remain in

the persist mode forever The probing mechanism can

generate problem in case of high load

Page 26: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

26

TCP-F vs. ATCPTCP-F vs. ATCP

TCP-F ATCPHigh BER packet lost Not handled Handled

Route Failures detection

RFN packet freezes TCP sender state

ICMP message freezes TCP sender state

Route reconstruction detection

RRN packet resumes TCP to normal state

Probing mechanism

Packet reordering Not handled Handled

Congestion window and RTO after RR

Old CW and RTO Reset for each new route

Page 27: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

27

ConclusionConclusionTraditional TCP misinterpret route

failure as a congestion problemIt has to be optimized to work

with wireless ad hoc and sensor network◦TCP -F◦Ad hoc TCP

Page 28: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

28

References[1] K. Chandran, S. Raghunathan, S. Venkatesan, and R. Prakash, “A Feedback based

scheme for improving TCP performance in ad hoc wireless networks,” in Conference on Distributed Computing Systems, Amsterdam, Netherlands, May 1998, pp. 472–479.

[2] J. Liu and S. Singh, “ATCP: TCP for mobile ad hoc networks,” IEEE JSAC, vol. 19, no. 7, pp. 1300–1315, Jul. 2001.

[3] H.AL.Ahmed,A.Eitan,and N.Philippe, “A Survey Of TCP over Ad Hoc Networks,” June, 2005

[4] “Networking Technology Layer 4,” class notes for ELG 5369, Departemnt of Electrical and computer Engineering, Univeristy of Ottawa, Ottawa, Fall 2010.

[5] R.Eric, “TCP vs. UDP” May,2004 http://www.skullbox.net/tcpudp.php

28

Page 29: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

29

Questions 1Why is the traditional TCP is not

suitable in mobile ad hoc and sensor network◦ Because route failure or topological change is

misinterpreted as a congestion problem

29

Page 30: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

30

Question 2TCP three way handshaking open operation

is shown in the diagram below. What is the value of x and y?

x=700, y=501

30

(client) (server)

SYN, SequenceNum = 500

SYN + ACK, SequenceNum = x

ACK, Acknowledgment = 701

Acknowledgment = y

Page 31: 1 Transport Layer Issue in Wireless Ad Hoc and Sensor Network

31

Question 3 In TCP-F technique, the route failure

notification (RFN) packet changes the source node’s TCP state from an active state to a snoozing state. Before receiving the RFN packet, the source was transmitting the packet at a rate of 100Kbit/sec. Upon receiving the route retransmission notification (RRN) packet, the sender node resumes transmission.  At what rate the source node resume transmitting?Answer: 100Kbit/sec

31