












































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













































By
IP Service Model
Services provided by underlying network: IP - “ best effort ” delivery
Messages sent from a host, delivered to a host (no distinction between entities sharing a host) Drops some messages Reorders messages Delivers duplicate copies of a message Limits messages to some finite size Delivers messages after an arbitrarily long delay
End-to-End Protocol Challenge
Given IP service model
Provide service model demanded by applications
Service models to consider
Connectionless or connection-oriented Reliable or Unreliable Congestion Control or not Flow Control or not Error Control or not
At Link Layer , a frame needs a destination MAC address
At Network Layer , IP address is needed to deliver data packet (datagram) to any host
At Transport Layer , port number is required to choose among multiple processes running on the destination host (destination port number is required for delivery and source port number is needed for reply)
The server process must define itself with a port number that is not chosen randomly. Well-known port numbers have been decided to be used by servers.
The client program defines itself with a port number, chosen randomly by transport layer software running on client host. This is ephemeral port number.
Socket Address: the combination of IP address and port number is socket address. Client socket address and Server Socket address
Transport layer protocol needs a pair of socket addresses: the client socket address and the server socket address. Four pieces of information are part of transport layer protocols.
The server process must define itself with a port number that is not chosen randomly. Well-known port numbers have been decided to be used by servers.
The client program defines itself with a port number, chosen randomly by transport layer software running on client host. This is ephemeral port number.
Socket Address: the combination of IP address and port number is socket address. Client socket address and Server Socket address
UDP Header Format
Length includes 8-byte header and data Checksum Uses IP checksum algorithm Computed on pseudo-header, UDP header and data
Well-known Ports for UDP
Transmission Control Protocol (TCP)
Service model implements requirements listed earlier
Multiple connections per host Guaranteed and in-order delivery Messages delivered at most once Arbitrarily large messages Synchronization between sender and receiver Flow control
Multiplexing mechanism equivalent to that of UDP
Checksum mechanism also equivalent, but mandatory
TCP Characteristics
Flow control : restricts rate to something manageable by receiver
Congestion control : restricts rate to something manageable by network
Connection-oriented : setup and teardown required
Full duplex
Data flows in both directions simultaneously Point-to-point communication
Byte stream abstraction : no boundaries in data