maximum 60 octets minimum 20 octets
Min:20 octets
Max: 60 octets
16 and 32
in tcp header (32 bits) we have a field that is called options and padding that has variable in length and the header length shows the actual header size i.e size of 20 octets+size of options and padding field and in UDP we dont have any field like that and its header is fixed of 8 OCTETS (32 bits header size) refrence: WIRELESS COMMUNICATIONS AND NETWORKS by William Stallings Second Edition pg 91(see fig)
An Ethernet frame has a 14 byte header, a data section, and a 4 byte trailer 14 byte header consist of destination address, source address and type The trailer is for CRC (Cyclic redundancy Check) An Ethernet frame can contain an IP and TCP PDU. IP header most important parts consists of (Version,IHL, Total length,Protocol, source and destination address) In details (Version,Header length,Differentiated services field, total Length, Identification, Flags, fragment offset, Time to live, protocol, header checksum, source and destination address). TCP header most important parts consists of (Source port, Destination port and header Length) In details (Source Port, Destination Port, Sequence number, Acknowledgment number, Header length,Flags,Window and check sum). The details of the IP and TCP header have been taken from a Network protocol Analyzer Wireshark on my own pc.
window
The internet header padding is used to ensure that the internet ends on a 32 bit boundary. The padding is zero.
The protocol field, in the IP header, identifies what kind of data is in the IP packet - the upper-layer protocol. For example, if the code is 6, that means that the data is a TCP segment.
2^16 bytes - size of TCP header
In the commonly used TCP/IP communications, that would either be a TCP header, or a UDP header.In the commonly used TCP/IP communications, that would either be a TCP header, or a UDP header.In the commonly used TCP/IP communications, that would either be a TCP header, or a UDP header.In the commonly used TCP/IP communications, that would either be a TCP header, or a UDP header.
in tcp header (32 bits) we have a field that is called options and padding that has variable in length and the header length shows the actual header size i.e size of 20 octets+size of options and padding field and in UDP we dont have any field like that and its header is fixed of 8 OCTETS (32 bits header size) refrence: WIRELESS COMMUNICATIONS AND NETWORKS by William Stallings Second Edition pg 91(see fig)
It is a TCP Header
Both TCP and UDP have origin and destination ports - and that is about all the similarity there is between the two. TCP has several other fields that UDP doesn't have, including window size; a consecutive byte numbering (to figure out where to place a TCP segment in a data stream); the bytes that the other side is expected to send; and others.
a tcp header contains the information of the source and destination networks and well as what port to access with out it the packet would not know where to go
both tcp and udp
The sequence number, acknowledge number, and Window fields.
To reassemble the segments into data.
code bits
Internet Protocol, or IP, puts a header on every packet that it sounds out. This header is the overhead. All protocols, such as TCP or UDP, will put a header on the packet. The IP header contains information such as source IP address and destination IP address and is used by routers to figure out where to send the packet. ex. you send your friend a 1kb file, but it takes up 1.5kb of bandwidth due to overhead
That is the way the standard designed the header. They could be placed anywhere as long as everyone understood where in the packet header it was placed.