Computer Network
Computer Network
ASSIGNMENT
Ans. Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) are the
two standard transport layers used with internet protocol (IP).
TCP will be connection-oriented – after an interconnection is made, data is usually
mailed bidirectional.
UDP is often a simpler, connectionless Web protocol. Multiple communications
usually are sent as packages throughout pieces exploitation UDP.
The field that are missing in the UDP header but present in the TCP header are - The
sequence number, acknowledge number, and Window fields.
This is because UDP is significantly more limited in capability than TCP, its headers
are much smaller. A UDP header contains 8 bytes, whereas each TCP header has ten
required fields totalling up to 20 bytes (160 bits) in size. They can also optionally
include an additional data section up to 40 bytes in size.
Ans. For TCP, you encode your message length in a field at the start.
UDP is preferred because each user datagram can be used for each chunk of data.
5.What is the maximum size of the TCP header? What is the minimum size of the
TCP header?
Ans. "The maximum size of the TCP header is 60 bytes. The minimum size of the TCP
header is 20 bytes.
6. If the value of HLEN is 0111, how many bytes of option are included in the
segment?
Ans.
7.Show the entries for the header of a TCP segment that carries a message from an
FTP client to an FTP server. Fill the checksum field with 0s. Choose an appropriate
ephemeral port number and the correct well-known port number. The length of
data is 40 bytes.