TCP Header Part – 4 - www.ipcisco.com : www.ipcisco.com
You can Reach Our "CCNA Lab Courses with Packet Tracer" on Udemy.!!!
cisco-packet-tracer-ccna-adventure-1- cisco-packet-tracer-ccna-adventure-2-
Content Protection by DMCA.com

TCP Window Size, Checksum & Urgent Pointer

The window, checksum and urgent pointer are another important fields in TCP header. Each of these fields are 2 bytes long.

Window Size

Window size the most important part in the TCP header. This fields is used by the receiver to indicate to the sender, the amouth of data that it can accept. So, this field is very important for efficient data transfer and flow control.

Window size uses byte as a metric. If it is mentined that window size is 60k, then it means that receiver accept 60 kilobyte data. When the data transmitted reaches window value then sender expect another window value from the receiver along with the acknowledgement for the window just received.

Window size is not a random value. It is calculated with some parameters like below:

Here, with the link bandwidth and the acarage RTT between the receiver and the sender, the window size can be calculated as mentined above. For th case above, lets calculate the exact value.

BW=10 Mbit
Delay(Avarage RTT) = 10 ms

Window Size = BW (10000000) x Delay(0.01)
= 100000 bit
= (100000/8)/1024
= 12,5 kbyte is equal to nine 1460 byte segments

Window size is important for efficient data transfer, but it is not the only duty of window size. It also provides flow control.

By default 63 bytes window size is used. But the link monitored and some small increase or decrease can made to optimize this size. This is called “automatic self correcting mechanism”.

In the case when window size falls to zero, then the remote TCP can not send data until receiving another window size.

Think about a host connection to a web server. Web server needs small amouth of memory(RAM) different than the client session. This memory size is equal to window size. And this is dependent to tha bandwidth and delay between host and the web server.

Checksum

Checksum field provides the data to reach error-free to the correct destination. For this purpose an extra header called “pseudo header” is used.

Here, let’s talk about pseudo header a little. The pseudo header is a combination of five fields.These fields are 32 bit source ip address, 32 bit destination ip address, 8 bit zeros, 8 bit protocol field and 8 bit TCP length. Totaly 88 bit or 11 bytes.

When the packet received from the layer 4 of the receiver, then this value is calculated again and compared with the sender version. If the values are the same, then it is handled by application. If the values are different, then the packet is dropped and a notification is sent. This is done for every single packet.
The checksum field is zero at the initial calculation.Because it is a unknown. When the value is calculated then it changed with 0.

Urgent Pointer

Here we will recall some information that we discuss before. This is urgent pointer flag. As I mentined before, with urgent pointer flag, the data is signed as urgent. And with the urgent pointer field, the exact end of this urgent data is determined. Here urgent pointer field contains the address of the urgent data ends.

From the point of security, urgent pointer flag set packets can be used by attackers. Because some system guards do not check the packets that urgent pointer flag set.

That’s all for these parameters…Let’s go the the last part of the TCP header article series…

You can reach TCP Header article series below…

TCP Header Part – 1
TCP Header Part – 2
TCP Header Part – 3
TCP Header Part – 4
TCP Header Part – 5


Youn can join OUR Facebook Group with the below links!!!

You can Reach Our "CCNA Lab Courses with Packet Tracer" on Udemy.!!!
cisco-packet-tracer-ccna-adventure-1- cisco-packet-tracer-ccna-adventure-2-



About the Author
Gokhan Kosem is a telecommunation and network engineer. His ambition to IP networks and end-to-end system installation made him to prepare this web-site. By sharing his experiences about various networking protocols beside different system installation experiences and Cisco, Juniper, Alcatel-Lucent devices configurations, he is aimed to be helpful for his collegues in all over the world. He is currently lives in Istanbul, Turkey.

Leave a Reply


Copy Protected by Chetan's WP-Copyprotect.