End To End Issues:: TH TH
End To End Issues:: TH TH
1. Connection establishment
2. RTT
3. Out of order
4. Resource availability
5. Channel capacity
CONNECTION ESTABLISHMENT:
Before transmitting the data, connection should be established between the sender
and the receiver.
OUT OF ORDER:
Out of order may be due to delay and missing of data during transmission.
DELAY:
The delay may be due to failure in the link or traffic has occurred. For ex, there
are 5 packets to be transmitted and the first 3 packets have reached safely. On the arrival of
the 4th packet, if there is a failure in the link then they take a new path and reach the
destination. And on the arrival of the 5th packet the link is normal, and then they take the
usual path. This cause a delay if packet 4. Destination has 1,2,3,5 and 4 arrives in delay. This
leads to out of order.
MISSING:
When the buffer is full and the packets keep in arriving, then out of order occurs.
TTL identifies how long the packet can be in the network. The destination will be having
MSL (Maximum Segment Life time). If the packet arrives within the time, then the datas are
in order. When the MSL expires then it is concluded that the data is missing and the sends a
NACK only if it uses selective ARQ.
RESOURCE AVAILABILITY:
Buffer size of the receiver should be known by the sender because sender
should transmit the datas accordingly so that to avoid missing of the packets to take place. If
the buffer size is exceeded, the packets will be discarded.
CHANNEL CAPACITY:
The sender should identify each and every link to know the channel capacity
and choose the minimum channel capacity to transmit the data accordingly.
SEGMENT FORMAT:
The transmission takes place from one process to another process. Both the
sender and the receiver has buffer.
SENDER RECEIVER
APPLICATION APPLICATION
PROCESS PROCESS
TCP TCP
RECEIVER BUFFER
SENDER BUFFER
TRANSMIT SEGMENT
SEQUENCE NUMBER
ACKNOWLEDGEMENT NUMBER
(0)
OPTIONAL
DATA
PORT NUMBER:
The port id should be known to transmit the data.
SEQUENCE NUMBER:
It checks whether the packets are in order. It is sent by the sender.
ACKNOWLEGDEMENT NUMBER:
The next expected packet number will be sent by the receiver.
HLEN:
Header length is specified.
RESERVED:
6 bits sre reserved for future.
FLAG:
There are 6 bits of flags. They are
•SYN- synchronization:
• FIN- finish:
•RST- reset:
Suppose the receiver is not receiving the expected packet, then it resets the flag
bit.
• PSH- push:
• URG- urgent:
If the URG pointer is 1, then it means that the packet is an urgent packet.
When that packet is kept at the end of the sender buffer and when the sender sees
the URG packet, it transmits that packet first.
•ACK- acknowledgement:
OPTIONAL:
Optional information is additional information about the packet.
ACTIVE OPEN:
If the sender is initiating the establishment if the connection, then it is known as
active open.
PASSIVE OPEN:
(CLIENT) (SERVER)
SYN: seq x
ACK: y+1
It is not necessary that the sequence number should start with 0 or 1. Client sends the SYN bit
with the sequence number as x to the server. The server in turns sends an ACK bit as x+1 and
a sequence number y, when the client receives it they send their ACK bit as y+1.
(CLIENT) (SERVER)
FIN: Seq: x
ACK:x+1, Seq y
FIN: Seq y+1, ACK: x+1
Seq:x+1, ACK:y+2
The termination is established by FIN bit. The client sends the FIN bit with the sequence
number as x and the server replies it by sending the ACK bit as x+1. After sending the
SERVER sending the ACK bit, it waits for some time to check whether there is any delay od
data or any link failure.
Client/ sender
The receiver establishes a connection, when its application or the process needs the data
urgently from the sender. The application need is listened in the listen state for both the
sender and the receiver.
3) Both the sender and the receiver is closing at the same time.
Thus this state diagram explains the TCP connection establishment and termination.
2- marks:
1) Mention the steps involved during the transmission of data.
a) Connection establishment
b) RTT
c) Out of order
d) Resource availability
e) Channel capacity
2) Define MSL.
The destination will be having a maximum life time known as MSL (Maximum
Segment Life). If the packets arrive within the time, then the data is in order. When
the MSL expires then it is concluded that the data is missing respectively.
The sender should know the buffer size of the receiver before sending the data,
so as to avoid missing of the packet. If the buffer size is exceeded, the packet will be
discarded.
• SYN
• FIN
• RST
• PSH
• URG
• ACK
5) Define active open and passive open.
ACTIVE OPEN:
PASSIVE OPEN:
3) Both the sender and the receiver is closing at the same time.
8-marks:
1) Explain in detail TCP connection establishment and termination.
16-mark:
1) Explain TCP in detail.