Title: TD5: IP et TCP
1TD5 IP et TCP
Décembre 2007
2Layer 4 (TCP) issues
Application
?
- reliable and ordered delivery
- flow control
- congestion control
Présentation
?
Session
?
Transport
?
Réseau
?
Liaison de DonnéesMAC
?
Physique
?
31
4IP header
IP Header length, number of 32 bit words. Min5.
Simple QoS management
IPv4/v6
0 Normal Delay, 1 Low Delay
0 Normal Reliability,1 High Reliability
0 Normal Throughput,1 High Throughput
5IP header
In bytes, including header and data
To assemble fragments
0 Last Fragment,1 More Fragments
0 May Fragment,1 Don't Fragment
6IP header
L4 protocol ID
In number of 8 bytes.0 for first fragment.
Avoid loops
Header only. Recalculated at each hop (TTL
changes)
72
8TCP overview
- reliable and ordered delivery
- flow control
- congestion control
9TCP overview
- Stream Data TransferFrom the application's
viewpoint, TCP transfers a contiguous stream of
bytes. - ReliabilityTCP assigns a sequence number to
each byte transmitted, and expects a positive
acknowledgment (ACK) from the receiving TCP. If
the ACK is not received within a timeout
interval, the data is retransmitted. The
receiving TCP uses the sequence numbers to
rearrange the segments when they arrive out of
order, and to eliminate duplicate segments. - Flow ControlThe receiving TCP, when sending an
ACK back to the sender, also indicates to the
sender the number of bytes it can receive beyond
the last received TCP segment. - MultiplexingA pair of sockets uniquely
identifies each connection. - Logical ConnectionsThe reliability and flow
control mechanisms described above require that
TCP initializes and maintains certain status
information for each data stream. - Full DuplexTCP provides for concurrent data
streams in both directions.
- reliable and ordered delivery
- flow control
- congestion control
10TCP header
Identify the connection (with IP address)
Next seqNum(only if ACK1)
Rank of the first byte in the stream
Number of 32 bit words
If urgent part of message
Establish a connection
End a connection
Headerdata
Where does the non-urgent start ?
11(No Transcript)
12Sliding Window
MaxRxBuffer
MaxTxBuffer
13Congestion control