module4- osi transport layer(2)

32
1 Module 4 OSI Transport Layer

Upload: cao-hong-minh

Post on 31-Jan-2016

239 views

Category:

Documents


1 download

DESCRIPTION

OSI Transport Layer

TRANSCRIPT

Page 1: Module4- OSI Transport Layer(2)

1

Module 4

OSI Transport Layer

Page 2: Module4- OSI Transport Layer(2)

2

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

Objectives

Page 3: Module4- OSI Transport Layer(2)

3

Roles of the Transport Layer

Page 4: Module4- OSI Transport Layer(2)

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

Page 5: Module4- OSI Transport Layer(2)

5

Tracking the Conversations

Page 6: Module4- OSI Transport Layer(2)

6

Segmentation

Page 7: Module4- OSI Transport Layer(2)

7

Controlling the Conversations

Page 8: Module4- OSI Transport Layer(2)

8

Supporting Reliable Communication

Page 9: Module4- OSI Transport Layer(2)

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

Page 10: Module4- OSI Transport Layer(2)

10

TCP and UDP

Page 11: Module4- OSI Transport Layer(2)

11

Port Addressing

Page 12: Module4- OSI Transport Layer(2)

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

Page 13: Module4- OSI Transport Layer(2)

13

Port Addressing

Page 14: Module4- OSI Transport Layer(2)

14

Port Addressing

Page 15: Module4- OSI Transport Layer(2)

15

Segmentation and Reassembly – Divide and Conquer

Page 16: Module4- OSI Transport Layer(2)

16

The TCP ProtocolCommunicating with Reliability

Page 17: Module4- OSI Transport Layer(2)

17

TCP – Make Conversations Reliable

TCP Segment Header Fields

Page 18: Module4- OSI Transport Layer(2)

18

TCP Server Processes

Page 19: Module4- OSI Transport Layer(2)

19

TCP Connection Establishment and Termination

TCP Connection Establishment

Page 20: Module4- OSI Transport Layer(2)

20

TCP Connection Establishment and Termination

Page 21: Module4- OSI Transport Layer(2)

21

Managing TCP Sessions

Page 22: Module4- OSI Transport Layer(2)

22

TCP Segment Reassembly

Page 23: Module4- OSI Transport Layer(2)

23

TCP Acknowledgement with Windowing

Page 24: Module4- OSI Transport Layer(2)

24

TCP Retransmission

1

3

Page 25: Module4- OSI Transport Layer(2)

25

TCP Congestion Control – Minimizing Segment Loss

Page 26: Module4- OSI Transport Layer(2)

26

TCP Congestion Control – Minimizing Segment Loss

Page 27: Module4- OSI Transport Layer(2)

27

The UDP ProtocolCommunicating with Low Overhead

Page 28: Module4- OSI Transport Layer(2)

28

UDP Low Overhead vs. Reliability

Page 29: Module4- OSI Transport Layer(2)

29

UDP Datagram Reassembly

Page 30: Module4- OSI Transport Layer(2)

30

UDP Server Processes and Requests

Page 31: Module4- OSI Transport Layer(2)

31

UDP Client Processes

Page 32: Module4- OSI Transport Layer(2)

32

Good luck with this module!