Você está na página 1de 13

Chapter 12

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

Transport Network Data link Physical

7 layer OSI model


CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 2

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

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

Network Layer Functions


Provides for transfer of variable length sequences from source to destination via one or more networks. Responds to service requests from the transport layer and issues requests to the data link layer. Concerned with: Logical addressing. Network routing. Flow Control. Error Control. Segmentation and reassembly.
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 5

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

CS603 - Ajay Gupta, WMU-CS

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.

CS603 - Ajay Gupta, WMU-CS

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

10

OSI and TCP/IP Models


OSI layers
Application Presentation Session Transport Network Data link Lower level vendor implementations Physical
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 11

Internet Protocol (IP)


Provides connection-less, best-effort service for delivery of packets through the inter-network. Best-effort: No error checking or tracking done for the sequence of packets (datagrams) being transmitted. Upper layer should take care of sequencing. Datagrams transmitted independently and may take different routes to reach same destination. Fragmentation and reassembly supported to handle data links with different maximum transmission unit (MTU) sizes.
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 12

TCP/IP layers
DNS Application FTP, Telnet, SMTP UDP

TCP IP

OSPF DHCP ICMP IGMP

Internet Control Message Protocol (ICMP)

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

Dynamic Host Configuration Protocol (DHCP)

Internet Routing Protocols

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

Distance information about all the nodes is conveyed to the neighbors.

Link State Open Shortest Path First (OSPF)


u

Neighbor information is conveyed to all the nodes in the network.


TCP over wireless etc 16

CS603 - Ajay Gupta, WMU-CS

Internet Routing Protocols (Contd)


Interdomain Routing Exterior Gateway Protocol (EGP) Forces treelike topology onto the Internet. Single Backbone and autonomous systems are connected in parents and children, not peers. Border Gateway Protocol (BGP) Assumes Internet as arbitrarily interconnected set of Autonomous systems. Based on Path vector routing protocol.
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 17

Typical mobile wireless scenario

FH: Fixed Host MH: Mobile Host BS: Base Station (gateway)
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 18

TCP and wireless/mobility


TCP assumes congestion if packets dropped typically wrong in wireless networks
often packet loss due to transmission errors

Motivation for TCP adaptation


Performance of an unchanged TCP degrades severely for wireless/mobile environments TCP cannot be changed fundamentally
Widely deployed in the fixed network Internet interoperability requirement

mobility itself can cause packet loss


nodes roam from one access point or foreign agent to another with packets in transit
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 19

TCP for wireless/mobility has to be compatible with standard TCP


CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 20

Adaptation for TCP over wireless


Several proposals to adapt TCP to wireless environments Modifications to TCP implementation at
Fixed Host Base Station Mobile Host

TCP over wireless


Wireless transmission may have Burst errors: may cause timeout Random errors: may cause fast retransmit Result: reduction in congestion window
Throughput suffers

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

Reducing congestion window in response to errors is unnecessary


CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 22

Example: Random errors


40 39
34

Split connection approach


37
36

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

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

I-TCP: Split connection


Per-TCP connection state TCP connection TCP connection application application application rxmt transport transport transport network link physical network link physical network link physical

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

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

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

BS retains hard state


Buffer space required at BS on a per-TCPconnection basis BS failure can result in permanent loss of data (unreliability) Hand-off latency increases
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 27

40

MH

39 40 MH Hand-off

New base station


CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 28

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

When duplicate ACK received by BS from MH


retransmit on wireless link, if packet present in buffer drop duplicate ACK

Prevents fast retransmit at TCP sender FH


FH BS MH

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

29

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

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

TCP state maintained at link layer

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

TCP over wireless etc

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

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

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

Mobility and handoff


Hand-offs may result in temporary loss of route to MH
with non-overlapping cells, it may be a while before the mobile host receives a beacon from the new BS

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

Mobile TCP (M-TCP)


Handling of lengthy or frequent disconnections M-TCP splits as I-TCP does
unmodified TCP for FH to BS optimized TCP for BS to MH

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

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

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

BS withholds ack for the last byte ackd by MH


Ack 999 Ack 1000

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

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

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

3DA (Three Duplicate ACKS) approach


At reconnection, MH sends 3 Dup ACKS Saves idle time of TCP sender at FH Does not prevent some congestion control actions
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 42

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

Topics NOT covered


TCP in mobile ad hoc networks TCP over satellite links Asymmetric TCP Various other adaptations
Explicit notification Receiver-based discrimination Sender-based discrimination TCP-Unaware approximation of TCP-aware link layer
TCP over wireless etc 43

Internet Protocol Version 6 (IPv6)


Designed to address the unforeseen growth of the internet and the limited address space provided by IPv4 Features of IPv6: Enhanced Address Space: 128 bits long, can solve the problem created
by limited IPv4 address space (32 bits).

Resource Allocation: By using Flow Label, a sender can request special


packet handling.

Modified Address Format: Options and Base Header are separated


which speeds up the routing process.

Support for Security: Encryption and Authentication options are supported


in option header.
CS603 - Ajay Gupta, WMU-CS TCP over wireless etc 48

CS603 - Ajay Gupta, WMU-CS

11

IPv4 Header Format


Version Header (4 bits) length (4 bits) Type of service (8 bits) Flags
(3 bits)

IPv6 Header Format


Total length (16 bits)

Version
Fragment offset (13 bits)

Traffic Class

Flow Label Next Header Hop Limit

Identification (16 bits) Time to live (8 bits) Protocol (8 bits)

Payload Length

Header checksum (16 bits)

Source Address Destination Address Data

Source address (32 bits) Destination address (32 bits) Options and padding (if any)

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

49

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

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

Differences between IPv4 and IPv6


Function

Expanded Addressing Capabilities Simplified Header Format Improved Support for Options and Extensions Flow Labeling Capabilities Support for Authentication and Encryption

Source Address Destination Address

128 128

CS603 - Ajay Gupta, WMU-CS

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

52

12

Network Transition from IPv4 to IPv6

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.

CS603 - Ajay Gupta, WMU-CS

TCP over wireless etc

53

13

Você também pode gostar