2.
Define what IP addresses and port numbers are, including their formats:
• IP address: A unique identifier for a device on a network. IPv4 is 32 bits (e.g., [Link]),
and IPv6 is 128 bits (e.g., 2001:0db8::1).
• Port number: A 16-bit number used to identify specific processes or services (e.g., HTTP uses
port 80).
3. What will happen if Congestion Control is not implemented in a Network?
• Without congestion control, network resources can become overloaded, leading to packet
loss, high delays, reduced throughput, and poor performance due to traffic congestion.
4. State the two kinds of events that trigger a state transition:
• The two types of events that trigger a state transition in network protocols are packet arrival
(incoming packets) and timeout events (triggered when waiting for a packet response).
5. Why is the UDP pseudo-header included in the UDP checksum calculation? What is the effect of
an invalid checksum at the receiving UDP?
• The UDP pseudo-header ensures that the checksum covers the source and destination IP
addresses, improving error detection.
• If the checksum is invalid, the receiving UDP will discard the packet, ensuring data integrity.
Here are the answers to the questions:
**7. What is the use of UDP’s Pseudo header?**
- The pseudo-header helps in verifying that the packet is delivered to the correct destination by
including fields like source and destination IP addresses in the UDP checksum.
**8. Suppose TCP operates over a 1-Gbps link, utilizing the full bandwidth continuously. How long
will it take for the sequence numbers to wrap around completely? Suppose an added 32-bit
timestamp field increments 1000 times during this wrap-around time, how long it will take
timestamp field to wrap around?**
- TCP's 32-bit sequence number will wrap around after transmitting 4 GB of data. At 1 Gbps, this
takes about **32 seconds**. The timestamp field will wrap around after **32,000 seconds (32
seconds * 1000)**.
**9. What do you mean by slow start in TCP congestion?**
- **Slow start** is a TCP congestion control mechanism where the congestion window size increases
exponentially during the initial connection phase to avoid overwhelming the network.
**10. Outline stop-wait ARQ Mechanism.**
- **Stop-and-Wait ARQ** is an error control method where the sender transmits one frame, waits
for an acknowledgment (ACK), and only sends the next frame after receiving the ACK.
**11. What happens in the three-way handshaking between any two devices?**
- The three-way handshake in TCP involves:
1. SYN: Device 1 sends a synchronization request (SYN) to Device 2.
2. SYN-ACK: Device 2 responds with an acknowledgment and its own SYN.
3. ACK: Device 1 acknowledges the SYN from Device 2.
**12. What is the function of FECN?**
- **Forward Explicit Congestion Notification (FECN)** informs the receiving device that there is
congestion on the network so that the sender can reduce its transmission rate.
**13. How can the effect of jitter be compensated? What type of application requires this
compensation?**
- Jitter can be compensated using **jitter buffers** that store packets temporarily before playback.
**Real-time applications** like VoIP and video conferencing require jitter compensation to ensure
smooth communication.
Describe how understanding MSL can help in designing robust network protocols and managing
session states effectively.
Understanding **MSL (Maximum Segment Lifetime)** helps design robust network protocols by
ensuring old or duplicate packets are discarded, preventing them from disrupting new connections. It
also ensures proper session termination and resource management, maintaining reliability and
avoiding conflicts in network communication.