Hassan Kamran: Assignment No. 1 Sap: 70067865 Section: S CCN
Hassan Kamran: Assignment No. 1 Sap: 70067865 Section: S CCN
Assignment No. 1
Sap: 70067865
Section: S
CCN
10-9-2019
Q1: Difference between TCP and UDP.
Ans 1: The main difference between TCP (Transmission Control Protocol) and UDP (User
Datagram Protocol) is as fallow:
TCP UDP
TCP is a connection-oriented protocol. UDP is the Datagram oriented protocol. This
Connection-orientation means that the is because there is no overhead for opening a
communicating devices should establish a connection, maintaining a connection, and
connection before transmitting data and terminating a connection. UDP is efficient for
should close the connection after transmitting broadcast and multicast type of network
the data. transmission.
TCP is reliable as it guarantees delivery of The delivery of data to the destination cannot
data to the destination router. be guaranteed in UDP.
TCP provides extensive error checking
mechanisms. It is because it provides flow UDP has only the basic error checking
control and acknowledgment of data. mechanism using checksums.
Sequencing of data is a feature of
Transmission Control Protocol (TCP). this There is no sequencing of data in UDP. If
means that packets arrive in-order at the ordering is required, it has to be managed by
receiver. the application layer.
UDP is faster, simpler and more efficient than
TCP is comparatively slower than UDP. TCP.
Retransmission of lost packets is possible in There is no retransmission of lost packets in
TCP, but not in UDP. User Datagram Protocol (UDP).
TCP has a (20-80) bytes variable length
header. UDP has a 8 bytes fixed length header.
TCP is heavy-weight. UDP is lightweight.
TCP doesn’t support Broadcasting. UDP supports Broadcasting.
1
Q 2: Difference b/w Nyquist theorem and Shannon’s theorem.
Ans 2: The difference b/w Nyquist theorem and Shannon’s theorem are as fallow:
2
Q 4: Differentiate b/w spatial shared capacity and temporal sharing.
Ans 5: The main difference b/w periodic and non-periodic signal is as fallow: