Module - 4 VIVA
Module - 4 VIVA
● UDP Definition:
○ User Datagram Protocol (UDP) focuses on sending data packets
(datagrams) quickly without establishing a connection beforehand or
guaranteeing delivery.
○ UDP prioritises speed over reliability
● UDP (Analogy):
○ You write your message on a piece of paper (data) and put it in a box
(datagram).
○ You address the box to your friend's house (destination IP address and
port) and toss it over the fence (send the datagram without a handshake).
○ You don't wait for confirmation that your friend received it (no guaranteed
delivery).
● TCP (Analogy for comparison):
○ You call your friend (establish a connection) and ask for their address
(confirm destination).
○ You carefully pack your message in a box (data in datagram) and wrap it
securely (guaranteed delivery).
○ You hand-deliver the box to your friend's door (send the datagram with a
handshake) and wait for confirmation (receive acknowledgement).
TCP focuses on detecting and correcting errors that may occur during data
transmission. Here's how it works:
The internet is a shared resource, and congestion can occur when too much data floods
the network. TCP congestion control mechanisms aim to prevent network overload and
maintain efficient data flow. Here are the key strategies:
3. TCP Timers:
Ans
● RPC, or Remote Procedure Call, is a session layer protocol that lets programs on
different computers talk to each other like they're on the same one.
● Imagine you're at a restaurant (client) and want to order food (use a service) from
the kitchen (server). You don't yell your order across the room. Instead, you tell
the waiter (RPC) what you want. The waiter relays your order (arguments) to the
kitchen (server) and brings back your food (return value).