C programming please use macOS ONLY on terminal
There is 7 question You can see the Exercises in here The figure will be in the link
https://www.masterraghu.com/subjects/np/introduction/unix_network_programming_v1.3/ch02lev1sec15.html
If code please do a screenshot and well explain
Text question
1. We have mentioned IP versions 4 and 6. What happened to version 5 and what were
versions 0, 1, 2, and 3? (Hint: Find the IANA's "Internet Protocol" registry.
2 . Where would you look to find more information about the protocol that is assigned IP
version 5?
3 . With Figure 2.5, we said that TCP assumes an MSS of 536 if it does not receive an MSS
option from the peer. Why is this value used?
4 . Draw a figure like Figure 2.5 for the daytime client/server in Chapter 1, assuming the server
returns the 26 bytes of data in a single TCP segment.
5. A connection is established between a host on an Ethernet, whose TCP advertises an MSS
of 1,460, and a host on a Token Ring, whose TCP advertises an MSS of 4,096. Neither host
implements path MTU discovery. Watching the packets, we never see more than 1,460
bytes of data in either direction. Why?
6 . In Figure 2.19, we said that OSPF uses IP directly. What is the value of the protocol field
in the IPv4 header (Figure A.1) for these OSPF datagrams?
7 . In discussing SCTP output, we said that the SCTP sender must wait for the cumulative
acknowledgment point to pass sent data before the data could be freed from the socket
buffer. If a selective acknowledgment shows that data is acknowledged beyond the
cumulative acknowledgment point, why can't the data be freed?