Escolar Documentos
Profissional Documentos
Cultura Documentos
OSI Model
Application Presentation Session Layer 7 Layer 6 Layer 5 Layer 4 Layer 3 Layer 2 Layer 1
Network Protocols TCP over Wireless (Mobile Transport Layer Issues) IPv6
Source: Stalling, Agrawal & Zeng, Schiller, Iyer
Data Link Layer Functions Physical Layer Functions Performs services requested by the Data Link layer. Concerned with the physical characteristics of interfaces and media. Representation of bits, transmission rate, synchronization of bits. Link configuration. Physical topology, and transmission mode.
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 3
Provides functional and procedural means to transfer data between network entities. Responds to service requests from the network layer and issues requests to the physical layer. Concerned with:
Framing. Physical addressing. Flow Control. Error Control. Access Control. TCP over wireless etc CS603 - Ajay Gupta, WMU-CS
Transport Layer Functions Provides transparent data transfer between end users. Responds to service requests from the session layer and issues requests to the network layer. Concerned with:
Service-point addressing. Segmentation and reassembly. Connection control; Flow Control. Error Control.
TCP over wireless etc 6
Session Layer Functions Provides mechanism for managing a dialogue between end-user application processes. Responds to service requests from the presentation layer and issues requests to the transport layer. Supports duplex or half- duplex operations. Concerned with:
Dialogue control. Synchronization.
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 7
Presentation Layer Functions Relieves application layer from concern regarding syntactical differences in data representation with end-user systems. Responds to service requests from the application layer and issues requests to the session layer. Concerned with:
Translation. Encryption. Compression.
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 8
Application Layer Functions Interfaces directly to and performs common application services for application processes. Issues service requests to the Presentation layer. Specific services provided:
Network virtual terminal. File transfer, access and management. Mail services. Directory services.
TCP over wireless etc 9
TCP/IP Model TCP/IP protocol consists of five layers. The lower four layers correspond to the layer of the OSI model. The application layer of the TCP/IP model represents the three topmost layers of the OSI model.
10
TCP/IP layers
DNS Application FTP, Telnet, SMTP UDP
TCP IP
Internet Group Management Protocol (IGMP) Used to maintain multicast group membership within a domain. Similar to ICMP, IGMP query and reply messages are used by routers to maintain multicast group membership. Periodic IGMP query messages are used to find new multicast members within the domain. A member sends a IGMP join message to the router, which takes care of joining the multicast tree.
13 CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 14
Companion protocol to IP. Provides mechanisms for error reporting and query to a host or a router. Query message used to probe the status of a host or a router. Error reporting messages used by the host and the routers to report errors.
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc
Used to assign IP addresses dynamically in a domain. Extension to Bootstrap Protocol (BOOTP) Node Requests an IP address from DHCP server. Helps in saving IP address space by using same IP address to occasionally connecting hosts.
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 15
Intradomain Routing
Distance Vector. Routing Information Protocol (RIP)
u
FH: Fixed Host MH: Mobile Host BS: Base Station (gateway)
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 18
Approaches
Hide error losses from the sender Let sender know the cause of packet loss
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 21
38
42
41
36
40
39
36
End-to-end TCP connection is broken into one connection on the wired part of route and one over wireless part of the route FH-MH = FH-BS + BS-MH
FH BS MH
44
43
36
42
36
41
36
23
Fixed Host
CS603 - Ajay Gupta, WMU-CS
Base Station
TCP over wireless etc
Mobile Host
24
I-TCP advantages
No changes to TCP for FH BS-MH connection can be optimized independent of FH-BS connection
Different flow / error control on the two connections Faster recovery due to relatively shorter RTT on wireless link
wireless
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc
Source: Vaidya
25
26
I-TCP disadvantages
End-to-end semantics violated
ack may be delivered to sender, before data delivered to the receiver
Hand-off in I-TCP
Data that has been ackd to sender, must be moved to new base station
39 FH 40 BS 38 37
36
40
MH
39 40 MH Hand-off
Snoop Protocol
Retains local recovery of Split Connection approach and uses link level retransmission Improves on split connection
end-to-end semantics retained soft state at base station, instead of hard state
Snoop Protocol
Buffers data packets at the base station BS
to allow link layer retransmission
29
30
Snoop Protocol
Per TCP-connection state TCP connection application transport network link physical application transport network link physical rxmt application transport network link physical
Snoop : Example
35 36 37 38 40 FH
34
39 BS
38
37 MH
36
FH
CS603 - Ajay Gupta, WMU-CS
BS
wireless
MH
31 CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 32
Source: Vaidya
Snoop : Example
37 38 39 44 FH 43 BS Discard dupack
36 36 36
Snoop advantages
40 41 42 37 41 MH
Local recovery from wireless losses Fast retransmit not triggered at sender despite out-of-order link layer delivery High throughput can be achieved End-to-end semantics retained Soft state at base station
loss of the soft state affects performance, but not correctness
33 CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 34
Snoop disadvantages
Link layer at base station needs to be TCPaware Not useful if TCP headers are encrypted (IPsec) Cannot be used if TCP data and TCP ACKs traverse different paths
both need to go through the same BS
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 35
While routes are being reestablished during handoff, MH and old BS may attempt to send packets to each other, resulting in loss of packets
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 36
Impact of handoff
Split connection (Indirect-TCP or I-TCP) approach
hard state at base station must be moved to new base station
Snoop protocol
soft state need not be moved while the new base station builds new state, packet losses may not be recovered locally
BS (Foreign Agent)
monitors all packets, if disconnection detected set advertised window size to 0 sender automatically goes into persistent mode no caching, no retransmission
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 38
37
M-TCP
BS does not send an ack to FH, unless BS has received an ack from MH
maintains end-to-end semantics
M-TCP
When a new ack is received with receivers advertised window = 0, the sender enters persist mode Sender does not send any data in persist mode
except when persist timer goes off
FH
BS
MH
When a positive window advertisement is received, sender exits persist mode On exiting persist mode, RTO and cwnd are same as before the persist mode
39 CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 40
10
FreezeTCP
M-TCP needs help from base station (BS)
BS withholds ack for one byte BS uses this ack to send a zero window advertisement when MH moves to another cell
3 dupacks
Freeze TCP Approach
Requires lower layer to predict disconnection
FreezeTCP
Receiver sends zero window advertisement (ZWA), upon impending disconnection Receiver sends full window advertisement (FWA), upon reconnection
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 41
11
Version
Fragment offset (13 bits)
Traffic Class
Payload Length
Source address (32 bits) Destination address (32 bits) Options and padding (if any)
49
50
Format of IPv6
Name Version Traffic Class Flow Label Payload Length Next Header Hop Limit Bits 4 8 20 16, unsigned 8 8, unsigned IPv6 version number. Internet traffic priority delivery value. Used for specifying special router handling from source to destination(s) for a sequence of packets. Specifies the length of the data in the packet. When set to zero, the option is a hop-by-hop Jumbo payload. Specifies the next encapsulated protocol. The values are compatible with those specified for the IPv4 protocol field. For each router that forwards the packet, the hop limit is decremented by 1. When the hop limit field reaches zero, the packet is discarded. This replaces the TTL field in the IPv4 header that was originally intended to be used as a time based hop limit. The IPv6 address of the sending node. The IPv6 address of the destination node.
TCP over wireless etc 51
Expanded Addressing Capabilities Simplified Header Format Improved Support for Options and Extensions Flow Labeling Capabilities Support for Authentication and Encryption
128 128
52
12
Dual IP-Stack: IPv4-hosts and IPv4-routers have an IPv6stack, this ensures full compatibility to not yet updated systems.
IPv6-in-IPv4 Encapsulation (Tunneling): Encapsulate IPv6 datagram in IPv4 datagram and tunnel it to next router/host.
53
13