1. Differentiate between IPv4 and IPv6.
IPv4: 32-bit address, uses dot-decimal notation, supports ~4.3B devices.
IPv6: 128-bit address, uses hexadecimal colon format, supports huge number of devices.
IPv4 uses ARP; IPv6 uses NDP.
IPv6 offers better security and auto-configuration.
2. Compare TCP and UDP.
TCP: Connection-oriented, reliable, slower, used in HTTP/FTP.
UDP: Connectionless, faster, no guarantee of delivery, used in DNS/Streaming.
TCP has error checking and flow control; UDP does not.
3. Draw and explain the IPv6 protocol format.
IPv6 Header fields: Version, Traffic Class, Flow Label, Payload Length,
Next Header, Hop Limit, Source and Destination Address.
Fixed header size: 40 bytes. No checksum field.
4. State the use of six flags in the TCP header.
URG: Urgent data
ACK: Acknowledgement
PSH: Push function
RST: Reset connection
SYN: Synchronize sequence number
FIN: Finish session
5. Describe the RIP message format.
Command (1 byte), Version (1 byte), Unused (2 bytes),
Routing entries (max 25): AFI, Route Tag, IP, Subnet, Next Hop, Metric (4 bytes each).