Week 4
Week 4
telnet serverName
25/465/587
POP3 begins when the user agent (the client) opens a TCP
connection
to the mail server (the server) on port 110.
Select a specific message from INBOX Copy and email from one to another
When the server side receives a command for a file transfer over
the control connection (either to, or from, the remote host), the
server side initiates a TCP data connection to the client side.
FTP sends exactly one file over the data connection and then
closes the data connection. If, during the same session, the user
wants to transfer another file, FTP opens another data connection.
Transport Layer Services
• Transport Layer provides process to
process delivery by multiplexing and
demultiplexing.
• It provides a logical connection
between processes running on two
end systems
Transport Layer Services
https://www.cs.dartmouth.edu/~ca
mpbell/cs50/socketprogramming.ht
ml
Transport Layer: Connection Oriented TCP
Underlying Transport Layer Protocol [UDP/TCP]
User Datagram Protocol [RFC 768]
UDP is said to be connectionless as no handshaking is performed between the communicating processes.
the host-side UDP adds header fields to the message and passes the resulting segment to the network
layer. The network layer encapsulates the UDP segment into a datagram and sends the datagram
UDP provides
1. Finer application layer control
2. No connection establishment
3. No connection state
4. Small packet overhead
Principles of Reliable Data Transfer [TCP]
Principles of Reliable Data Transfer: Stop and Wait ARQ
Automatic Repeat ReQuest (ARQ) is a group of error – control protocols for
transmission of data over noisy or unreliable communication network.
Principles of Reliable Data Transfer: Stop and Wait ARQ
the sender was able to send only 1,000 bytes in 30.008 milliseconds, an
effective throughput of only 267 kbps—even though a 1 Gbps link was
available!
Reliable Data Transfer: Go Back N ARQ
To improve the performance if the sender is allowed to transmit In a Go-Back-N (GBN) protocol, the sender is allowed to
three packets before having to wait for acknowledgments, the transmit multiple packets (when available) without waiting for
utilization of the sender is essentially tripled. Since the many an acknowledgment, but is constrained to have no more than
in-transit sender-to receiver packets can be visualized as filling a some maximum allowable number, N, of unacknowledged
pipeline, this technique is known as pipelining packets in the pipeline
Principles of Reliable Data Transfer: Go Back N
ARQ
As the name suggests, selective-repeat protocols avoid unnecessary retransmissions by having the sender retransmit
only those packets that it suspects were received in error (that is, were lost or corrupted) at the receiver. This individual,
as needed, retransmission will require that the receiver individually acknowledge correctly received packets
Principles of Reliable Data Transfer: Selective Repeat ARQ
Selective Repeat ARQ: Window size
and Sequence Number Space