Académique Documents
Professionnel Documents
Culture Documents
Key functions:
1. Transport layer provides reliability;
meaning applications want to know when data has reached
its destination without loss or error
2. Also automatic checking of congestion and traffic
in data flow
3. Retransmission in case the packet was not received,
or received but with loss or error
Why is it important?
9. Checksum, 2bytes
4. Acknowledgment number, 4bytes 10. Urgent pointer, 2bytes
Data segmentation
The sending process delivers data as a stream of bytes
Allows receiving process to obtain data as a stream of bytes
TCP create pipes for the stream to travel across the Internet
Buffers are used by the sending and receiving processes because of their
difference in read and write speed.
Transmission Control Protocol (TCP)
Communication Process
establish a full duplex connection between client and server
three way hand-shaking
1. Synchronize
2. Synchronize + acknowledge of request of passive open
3. Acknowledge of request of active open
. bidirectional data transfer can be done
Addressing
1. Stop-and-wait
. Send window and receive window
. Sender sends initial message
. Stops sending and waits
. Destination acknowledges the received message
. Source sends next batch of message
Automatic Repeat Request (ARQ)
2. Go-back-N
. Multiple messages can be sent at a time
. Then wait for acknowledge
. Copies of the messages are kept until acknowledge arrives
. The copies contain sequence numbers to keep track of the order
. N number of frames are resent when not acknowledged
. m = number of sequence numbers
. Send window size, less than 2^m
Automatic Repeat Request (ARQ)
3. Selective repeat
. Maximum send window size = 2^(m-1) or 0.5*(2^m)
. Receive window size = Send window size