THE TRANSPORT LAYER Outline Transport layer in the Internet - - PowerPoint PPT Presentation

the transport layer outline
SMART_READER_LITE
LIVE PREVIEW

THE TRANSPORT LAYER Outline Transport layer in the Internet - - PowerPoint PPT Presentation

THE TRANSPORT LAYER Outline Transport layer in the Internet Multiplexing and demultiplexing UDP: User Datagram Protocol TCP: Transport Control Protocol General features TRANSPORT LAYER IN THE INTERNET In the


slide-1
SLIDE 1

THE TRANSPORT LAYER

slide-2
SLIDE 2

Outline

à Transport layer in the Internet à Multiplexing and demultiplexing à UDP: User Datagram Protocol à TCP: Transport Control Protocol à General features

slide-3
SLIDE 3

TRANSPORT LAYER IN THE INTERNET

slide-4
SLIDE 4

In the Protocol Model

RPC ¡ XDR ¡ NFS ¡ RTP ¡ SNMP ¡ Telnet ¡ FTP ¡ SMTP ¡ HTTP ¡

¡ ¡

IP ¡ Data ¡link ¡ Network ¡ Trasport ¡ Session ¡ Presenta:on ¡ Applica:on ¡ ICMP ¡ IGMP ¡ TCP ¡ UDP ¡

ARP ¡ Rou:ng ¡ protocols ¡

slide-5
SLIDE 5

TCP and UDP

à Alternative protocols à Different services à Reliable, connection

  • riented, byte streaming

(TCP) à Best-effort datagram

slide-6
SLIDE 6

MULTIPLEXING AND DEMULTIPLEXING

slide-7
SLIDE 7

à Allow multiple applications to use communication services

Applica'on ¡ Transport ¡ Network ¡ Data ¡Link ¡ Physical ¡ Applica'on ¡ Transport ¡ Network ¡ Data ¡Link ¡ Physical ¡ Applica'on ¡ Transport ¡ Network ¡ Data ¡Link ¡ Physical ¡

slide-8
SLIDE 8

Rest ¡of ¡header ¡ Source ¡port ¡ Des'na'on ¡port ¡

Transport Ports

à O ... 1O23 Static/server ports à 1O24 ... 65535 Dynamic/ client ports

slide-9
SLIDE 9

¡Service ¡ ¡port ¡ ¡ ¡TCP ¡ ¡ ¡ ¡ ¡UDP ¡ Bp ¡ ¡21 ¡ ¡ ¡ ¡X ¡ smtp ¡ ¡25 ¡ ¡ ¡ ¡X ¡ hHp ¡ ¡80 ¡ ¡ ¡ ¡X ¡ pop ¡ ¡110 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡X ¡ SMNP ¡ ¡161 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡X ¡ DNS ¡ ¡53 ¡ ¡ ¡ ¡X ¡ ¡ ¡ ¡ ¡ ¡ ¡X ¡

Well Known Ports

slide-10
SLIDE 10

The Magic 5-tuple

A communication is uniquely identified by à Source IP address à Destination IP address à Layer 4 protocol à Source port à Destination port

slide-11
SLIDE 11

UDP USER DATAGRAM PROTOCOL

Initially specified in RFC 768

slide-12
SLIDE 12

RPC ¡ XDR ¡ NFS ¡ RTP ¡ SNMP ¡ Telnet ¡ FTP ¡ SMTP ¡ HTTP ¡

¡ ¡

IP ¡ Data ¡link ¡ Network ¡ Trasport ¡ Session ¡ Presenta:on ¡ Applica:on ¡ ICMP ¡ IGMP ¡ TCP ¡ UDP ¡

ARP ¡ Rou:ng ¡ protocols ¡

In the Protocol Model

slide-13
SLIDE 13

A Datagram Protocol

à Connectionless à No initial handshaking needed à Each message is independent

slide-14
SLIDE 14

Best-effort Service

à Messages may be à Lost à Delivered out of order Same service as IP’s?

slide-15
SLIDE 15

UDP Added Value

à Multiplexing à Ports à Checksum to verify data integrity à Optional à No recovery

slide-16
SLIDE 16

No Flow/Congestion Control

à No adaptation to network condition

D Could lead to server

congestion

C It does not give in

slide-17
SLIDE 17

Why UDP?

à No connection setup à Delay à Overhead à Simple à less resources à No connection state à Small message header à No congestion control

slide-18
SLIDE 18

Message ¡Length ¡ Checksum ¡

32 ¡bit ¡

Source ¡Port ¡ Des'na'on ¡Port ¡

à Checksum and Source Port are optional à Set to zero if unused

Header Format

slide-19
SLIDE 19

Use Cases

à Reliable Network à NFS (Network File System) à Reliability not required à Periodic delivery à Media

slide-20
SLIDE 20

à Error recovery might be harmful à SNMP (Simple Network Management Protocol) à Data fits in one message à DNS (Domain Name Service)

slide-21
SLIDE 21

à Delivery time is crucial à Real-time à Media à Interactive à Not elastic à Media

slide-22
SLIDE 22

TCP TRANSPORT CONTROL PROTOCOL

GENERAL FEATURES

slide-23
SLIDE 23

In the Protocol Model

Data ¡link ¡ Network ¡ Trasport ¡ Session ¡ Presenta:on ¡ Applica:on ¡ RPC ¡ XDR ¡ NFS ¡ RTP ¡ SNMP ¡ Telnet ¡ FTP ¡ SMTP ¡ HTTP ¡

¡ ¡

IP ¡ ICMP ¡ IGMP ¡ TCP ¡ UDP ¡

ARP ¡ Rou:ng ¡ protocols ¡

slide-24
SLIDE 24

Features

à Connection oriented à Full-duplex à Byte-oriented à Reliable à All bytes received in the right order

slide-25
SLIDE 25

Use Cases Applications requiring reliability

à FTP: File Transfer à SMTP, POP, IMAP: e-mail à HTTP: web

slide-26
SLIDE 26

Functionality

à Error control à ARQ: Automatic Retransmission Request à Flow control à Congestion control à Elastic applications

slide-27
SLIDE 27

à Connection management à (De)multiplexing à Segmentation of data stream à No read/write correlation

Functionality

slide-28
SLIDE 28

Complex è Costly

à Connection state à Memory à Processing à Larger header à Transmission

  • verhead
slide-29
SLIDE 29

à Acknowledgements à Transmission overhead à Retransmission à Memory à Unnecessary retransmission à Transmission overhead

Complex è Costly