Professional Documents
Culture Documents
Lectures 24 & 25 Higher Layer Protocols: Tcp/Ip and Atm
Lectures 24 & 25 Higher Layer Protocols: Tcp/Ip and Atm
Eytan Modiano
Eytan Modiano
Slide 1
Outline
• ATM
• MPLS
Eytan Modiano
Slide 2
Higher Layers
Application Application
Presentation Presentation
Virtual session
Session Session
Physical link
Eytan Modiano
Slide 3
Packet Switching
Eytan Modiano
Slide 4
Virtual Circuits Packet Switching
VC7
3 9
VC4
VC13
• Merits of virtual circuits 5 8
– Save on route computation VC3
VC7
Need only be done once VC3
at start of session 6 2
– Save on header size Node 5 table
– More complex
(3,5) VC13 -> (5,8) VC3
– Less flexible (3,5) VC7 -> (5,8) VC4
(6,5) VC3 -> (5,8) VC7
Eytan Modiano
Slide 5
The TCP/IP Protocol Suite
IP - Internet Protocol
Eytan Modiano
Slide 6
Internetworking with TCP/IP
TCP
TCP Protocol
TCP
ROUTER
IP IP Protocol IP Protocol IP
IP
Eytan Modiano
Slide 7
Encapsulation
user data
Application
Appl
header user data
TCP
TCP application data
header
TCP segment IP
IP TCP application data
header header
IP datagram Ethernet
driver
Ethernet IP TCP Ethernet
header header header application data trailer
Ethernet
14 20 20 4
Ethernet frame
46 to 1500 bytes
Eytan Modiano
Slide 8
Eytan Modiano
Slide 9
Bridges, routers and gateways
Small company
Another provider’s
Frame Relay
IP Backbone
Ethernet A Router
Bridge
Ethernet B
Gateway
Gateway Service
provider’s
ATM
backbone
ATM switches
(routers)
Eytan Modiano
Slide 10
IP addresses
• IP Address classes:
8 32
0 Net ID Host ID Class A Nets
16 32
10 Net ID Host ID Class B Nets
24 32
110 Net ID Host ID Class C Nets
Eytan Modiano
Slide 11
Host Names
Eytan Modiano
Slide 12
Internet Standards
Eytan Modiano
Slide 13
The Internet Protocol (IP)
• Current version V4
• Future V6
– Add more addresses (40 byte header!)
– Ability to provide QoS
Eytan Modiano
Slide 14
Header Fields in IP
1 4 8 16 32
Header
Ver length type of service Total length (bytes)
Source IP Address
Destination IP Address
Data
Slide 15
IP HEADER FIELDS
Eytan Modiano
Slide 16
FRAGMENTATION
X.25
G
ethernet
mtu=1500 MTU = 512 G
ethernet
mtu=1500
Eytan Modiano
Slide 17
POSITION OF FRAGMENT
• Length field in header gives the total length in bytes (16 bit field)
Eytan Modiano
Slide 18
IP Routing
• Routing table at each node contains for each destination the next
hop router to which the packet should be sent
– Not all destination addresses are in the routing table
Look for net ID of the destination “Prefix match”
Use default router
• Routers do not compute the complete route to the destination but
only the next hop router
• IP uses distributed routing algorithms: RIP, OSPF
• In a LAN, the “host” computer sends the packet to the default
router which provides a gateway to the outside world
Eytan Modiano
Slide 19
Subnet addressing
Eytan Modiano
Slide 21
Dynamic Host Configuration (DHCP)
Eytan Modiano
Slide 22
Address Resolution Protocol
IP
ARP RARP
Ethernet
Eytan Modiano
Slide 23
Routing in the Internet
Eytan Modiano
Slide 25
Resource Reservation (RSVP)
Eytan Modiano
Slide 27
User Datagram Protocol (UDP)
Eytan Modiano
Slide 28
UDP header format
IP Datagram
Data
Eytan Modiano
Slide 30
Basic TCP operation
• At sender
– Application data is broken into TCP segments
– TCP uses a timer while waiting for an ACK of every packet
– Un-ACK’d packets are retransmitted
• At receiver
– Errors are detected using a checksum
– Correctly received data is acknowledged
– Segments are reassembled into their proper order
– Duplicate segments are discarded
Eytan Modiano
Slide 31
TCP header fields
16 32
Sequence number
Request number
Data
Offset Reserved Control Window
Data
Eytan Modiano
Slide 32
Eytan Modiano
Slide 33
TCP error recovery
Eytan Modiano
Slide 34
TCP timeout calculation
Eytan Modiano
Slide 36
TCP congestion control
R = CW/RTT
Eytan Modiano
Slide 37
Effect Of Window Size
WASTED BW
WINDOW WINDOW
Eytan Modiano
Slide 38
Length of a bit (traveling at 2/3C)
Eytan Modiano
Slide 39
Eytan Modiano
Slide 41
Understanding TCP dynamics
“Saw-tooth Behavior”
CW
Time
Eytan Modiano
Slide 42
Random Early Detection (RED)
• Motivation
– Dropped packets are used as a mechanism to force the source to slow down
If we wait for buffer overflow it is in fact too late and we may have to drop many packets
Leads to TCP synchronization problem where all sources slow down simultaneously
• Mechanism
– Use weighted average queue size
If AVE_Q > Tmin drop with prob. P
1
If AVE_Q > Tmax drop with prob. 1
P
max
– RED can be used with explicit congestion
notification rather than packet dropping
– RED has a fairness property
Large flows more likely to be dropped Tmin Tmax
– Threshold and drop probability values Ave queue length
are an area of active research
Eytan Modiano
Slide 43
TCP Error Control
SRP
1 1 SEC R/T DELAY
0.9 T-1 RATE
1000 BIT PACKETS
0.8 GO BACK N
0.7
WITH TCP
0.6
WINDOW CONSTRAINT
0.5
0.4
0.3
0.2
0.1
0
1E-07 1E-06 1E-05 1E-04 1E-03 1E-02
CHANNEL BER
1
0.9
0.8
0.7
0.6 2.4 KBPS
0.5
0.4
0.3
0.2 16 KBPS
1,544 KBPS 64 KBPS
0.1
0
1.00E-07 1.00E-06 1.00E-05 1.00E-04 1.00E-03
BER
Eytan Modiano
Slide 45
TCP releases
Eytan Modiano
Slide 46
The TCP/IP Suite
TPC UDP
ICMP IP IGMP
media
Eytan Modiano
Slide 47
• ATM uses small (53 Bytes) fixed size packets called “cells”
– Why cells?
Cell switching has properties of both packet and circuit switching
Easier to implement high speed switches
– Why 53 bytes?
– Small cells are good for voice traffic (limit sampling delays)
For 64Kbps voice it takes 6 ms to fill a cell with data
Eytan Modiano
Slide 48
ATM Reference Architecture
• Upper layers
– Applications
– TCP/IP Upper Layers
• ATM adaptation layer
– Similar to transport layer A T M A daptation
– Provides interface between
upper layers and ATM
Break messages into cells and
L ayer (A A L )
reassemble
• ATM layer AT M
– Cell switching
– Congestion control
Eytan Modiano
Slide 49
ATM Cell format
5 Bytes 48 Bytes
5 HEC
Eytan Modiano
Slide 50
VPI/VCI
Private
network
ATM Backbone
Private
network
Private
network
Use VPI for switching Use VCI to ID connection
in backbone Within private network
Eytan Modiano
Slide 51
ATM HEADER CRC
Eytan Modiano
Slide 52
ATM Service Categories
Eytan Modiano
Slide 53
ATM service parameters
(examples)
Eytan Modiano
Slide 54
Flow control in ATM networks (ABR)
Eytan Modiano
Slide 55
End-to-End RM-Cell Flow
D D D FRM D D FRM
ABR
ABR ABR ABR Destin
Source Switch Switch ation
BRM BRM
D = data cell
FRM = forward RM cell
Eytan Modiano
Slide 56
ATM Adaptation Layers
ATM header)
ATM CELL
Eytan Modiano
Slide 57
Example: AAL 3/4
2 4 10 6 10
44 Byte User Payload
Eytan Modiano
Slide 58
ATM cell switches
Cell
Input 1 Processing Output 1
Cell
Input 2 Processing Output 2
Switch
Fabric
Cell
Input m Processing Output m
Input Output
Q's Q's
Control
S/W
• Design issues
– Input vs. output queueing
– Head of line blocking
– Fabric speed
Eytan Modiano
Slide 59
ATM summary
• ATM Advantages
• ATM disadvantages
– It not IP - most everything was design for TCP/IP
– It’s not naturally an end-to-end protocol
Does not work well in heterogeneous environment
Was not design to inter-operate with other protocols
Not a good match for certain physical media (e.g., wireless)
Eytan Modiano
Slide 60
Multi-Protocol Label Switching (MPLS)
Eytan Modiano
Slide 61
Label Switching
Eytan Modiano
Slide 62
Label switching can be used to create a virtual
– “Tunneling”
Eytan Modiano
Slide 63
References
Eytan Modiano
Slide 64
7 bits 24 bits
14 bits 16 bits
1 0 netid hostid
Class B
21 bits 8 bits
1 1 0 netid hostid
Class C
28 bits
1 1 1 0 netid hostid
Class D
27 bits
Eytan Modiano
Slide 65