Mobile Ad hoc
&
Sensor Networks
UNIT -II
1
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
TCP Protocol Overview
TCP adds great deal of functionality to the IP service it is layered over:
2
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
TCP Basics
3
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Reliable TCP Guarantees
4
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
TCP Header Format
5
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
TCP in Wired Network and MANET
Data stream in Wired Network
ACKs stream
Data stream in a MANET
ACKs stream
TCP
Source
TCP
Sink
1
N
4
3
2
6
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Overview of TCP Concepts
Overview
7
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
TCP Basics
Slow-start
Congestion
avoidance
8
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Congestion Control
9
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
What is Different in MANETs?
Overview
10
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Overview of Best Protocols
5-11
Overview
11
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Why Does TCP Fail in MANETs?
12
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Specific problems of TCP over MANETs
TCP in MANET
13
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Specific problems of TCP over MANETs
TCP in MANET
14
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Specific problems of TCP over MANETs
Data stream
ACKs stream
Two nearby flows
TCP in MANET
15
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Drawback of TCP Exponential Back Off
16
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
No communication between the partitions
Impact of Partition on Throughput
S
A
B
C
P
X
Y
Z
D
Link Failure
Data transfer continues in spite of failure
17
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
18
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Effects of Partitions on TCP
Node 5 moves away from node 3 (short-term partition)
19
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
1
2
3
4
5
6
7
8
9
The routing protocol reestablishes the path through node 6
Reestablishing Path
20
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Long Term Partition
Node 5 moves away from node 3 (long-term partition)
21
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
No communication between the partitions
Long Term Network Partition
22
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
TCP Throughput
23
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Impact of Lower Layers on TCP - MAC
24
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
25
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Hidden and Exposed Terminals �
26
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Hidden Terminals: Solution
27
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Exposed terminals : Solution
28
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Impact of Lower Layers on TCP -MAC
29
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Capture Conditions
30
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Network Layer Impact�
31
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
DSR�
32
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
TORA�
33
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Path Asymmetry Impact
34
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Route Assymetry
35
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Some Proposed Solutions
36
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
37
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
38
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Solutions for TCP over Ad Hoc�
Mobility-Related
TCP-Feedback
39
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
The ELFN Approach
40
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Fixed Retransmission Timeout (RTO)
41
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
The ATCP Protocol
42
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
TCP-DOOR (Detection Out-Of-Order and Response )
43
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
44
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Main Drawbacks
45
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
COPAS
Fairness-Related
46
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
47
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
48
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Route Establishment in COPAS
C
D
E
F
S
B
H
I
J
4
4
2
5
3
1
8
7
G
D
E
C
F
S
B
G
H
I
J
4
4
2
5
3
1
8
7
TCP ACK
TCP Data
(a) – Network contention perceived at node D
(b) – Routes selected by node D
49
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Average Aggregate Throughput
Simulation results of COPAS applied to scenario of 50 and 100 nodes
50 Nodes
100 Nodes
50
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Neighborhood RED (Randomly Early Detection)
51
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
Node A’s Neighborhood and Distributed Queue
52
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
53
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
54
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
55
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
56
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
57
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
58
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao
59
Mobile Ad hoc & Sensor Networks by Dr. S.Siva Nageswara Rao