Module4- OSI Transport Layer(2)

Post on 31-Jan-2016

225 views 1 download

Tags:

description

OSI Transport Layer

Transcript of Module4- OSI Transport Layer(2)

1

Module 4

OSI Transport Layer

2

• Roles of the Transport Layer• The TCP Protocol – Communicating with Reliability• Managing TCP Sessions• The UDP Protocol – Communicating with Low Overhead

Objectives

3

Roles of the Transport Layer

4

Purpose of the Transport Layer• Functions of the

Transport layer are:– Tracking the

individual communication between applications on the source and destination hosts

– Segmenting data and managing each piece

– Reassembling the segments into streams of application data

– Identifying the different applications

5

Tracking the Conversations

6

Segmentation

7

Controlling the Conversations

8

Supporting Reliable Communication

9

Transport Layer Protocols• Transmission Control

Protocol (TCP)– Connection-oriented– Reliable– Divide outgoing messages

into segments– Reassembles messages at

the destination station by order

– Re-send anything not received

– Reassembles messages from incoming segments

• User Datagram Protocol (UDP)– Connectionless– Unreliable– Transmit messages– Provides no software

checking for message delivery

– Does not reassemble incoming messages by order

– Uses no acknowledgements

– Provides no flow control

10

TCP and UDP

11

Port Addressing

12

Port Addressing• Well Known Ports

(Numbers 0 to 1023): These numbers are reserved for services and applications

• Registered Ports (Numbers 1024 to 49151): These port numbers are assigned to user processes or applications

• Dynamic or Private Ports (Numbers 49152 to 65535): Also known as Ephemeral Ports, these are usually assigned dynamically to client applications when initiating a connection

13

Port Addressing

14

Port Addressing

15

Segmentation and Reassembly – Divide and Conquer

16

The TCP ProtocolCommunicating with Reliability

17

TCP – Make Conversations Reliable

TCP Segment Header Fields

18

TCP Server Processes

19

TCP Connection Establishment and Termination

TCP Connection Establishment

20

TCP Connection Establishment and Termination

21

Managing TCP Sessions

22

TCP Segment Reassembly

23

TCP Acknowledgement with Windowing

24

TCP Retransmission

1

3

25

TCP Congestion Control – Minimizing Segment Loss

26

TCP Congestion Control – Minimizing Segment Loss

27

The UDP ProtocolCommunicating with Low Overhead

28

UDP Low Overhead vs. Reliability

29

UDP Datagram Reassembly

30

UDP Server Processes and Requests

31

UDP Client Processes

32

Good luck with this module!