Presentation is loading. Please wait.

Presentation is loading. Please wait.

5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 1 Transport Layer.

Similar presentations


Presentation on theme: "5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 1 Transport Layer."— Presentation transcript:

1 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 1 Transport Layer

2 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 2 Position in OSI Model

3 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 3 Position in TCP/IP Model

4 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 4 Functions Provides data transfer services to the Application layer Uses the services of the Network layer Adds error and congestion control Sequences packets and insures complete delivery Establishes and releases connections Handles flow control and congestion

5 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 5 Error Control Network layer can be unreliable Packets can arrive out of sequence –arrange in order –detect and remove duplicates Data link can crash –reconnect if necessary –complete unfinished transmission

6 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 6 Packet (octet) Ordering Packets (octets in TCP) are given sequence numbers Credit scheme for packet acknowledgment –octets are acknowledged in blocks –permission granted for specified number of additional octets

7 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 7 Congestion Control Permission to transmit specified number of octets is explicitly given (credits) –partly determined by available buffer space –partly determined by network delays Receiver can issue credits for unavailable space, assuming it will become available in time to avoid overflow Window size is variable, depends on conditions at the time

8 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 8 TCP Flow Control Receiver grants window of 2000 octets Transmitter sends 1000 octets Receiver ACKs 1000 Window is then 1000 etc.

9 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 9 TCP Header

10 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 10 Re: Flow Control Note that header includes ACK number Header also includes window size Thus ACK can update remaining window

11 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 11 TCP Header Fields SRC/DST port - local/remote user Sequence number - for each octet Acknowledgment number - expected octet Header Length - offset to data Control flags –urgent, attn ACK field, push, reset connection, synch sequence numbers, end of data

12 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 12 TCP Header Fields (cont’d) Window - number of octets granted (credit) Checksum - Mod 16 sum of segment Urgent pointer - last octet in urgent data Options -

13 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 13 Types of Service Connection-oriented manages establishment of a connection, transfer of data over the connection, termination of the connection Connectionless datagrams sent and received

14 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 14 Connection Header Transmitter sends –SYN = 1 –Sequence Number = x Receiver sends –SYN = 1 –ACK = 1 –Sequence Number = y –ACK Number = x+1 (next expected octet)

15 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 15 Connection Header (cont’d) Transmitter –SYN = 1 –ACK Number = y + 1 (next ACK expected)

16 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 16 Data Segments 32-bit sequence number for each segment Sequence number applies to first octet in the data field Flow control credits are in octets PUSH (+URG flag if urgent) flag clears transmit buffer, signifying end of transmission block

17 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 17 Disconnecting CLOSE function in TCP Transport sets FIN flag on last segment of data to be sent

18 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 18 Connection Petri Diagram

19 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 19 Connection Transitions t1- passive open t2- active open; send SYN t3- send data; send SYN t4- close; send FIN t5- recv SIN; send SYN, ACK; recv RST t6- recv SYN, ACK; send ACK t7- recv FIN; send ACK; recv ACK t8- recv ACK t9- recv FIN; send ACK t10- close; send FIN

20 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 20 Transport Primitives Services available to Application Layer Connection-oriented Reliable end-to-end delivery User tasks call library procedures Support connection, of transport data units, and disconnection

21 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 21 Basic Transport Primitives

22 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 22 TCP Request Primitives

23 5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 23 TCP Response Primitives


Download ppt "5/6/2015© 2010 Raymond P. Jefferis IIILect 06- 1 Transport Layer."

Similar presentations


Ads by Google