The sequence number, acknowledge number, and Window fields.
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.
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.
both tcp and udp
UDP is a Transport layer protocol or fourth layer protocol. UDP is a connection less protocol used in transport layer. UDP header have four fields in total .
souce and destination ports
source and destination port
The host and destination ports.
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)
UDP protocol is a means of transporting data in an unreliable (but speedy) manner. Packets are sent without regard for listening to see if they arrive. The header of a UDP packet is much smaller than a TCP header because it doesn't have all of the overhead that TCP has, namely, checking for packet receipt, error detection and correction, flow control, etc.
UDP
• checksum • destination port • source port
UDP and TCP both are transport layer protocols. UDP is connection less and TCP is connection oriented. UDP is preferred over TCP when large amount data is to be sent like on skype or video conferencing .