1. Write simple TCP and UDP program using socket API which will transfer simple text messages, and check TCP and UDP packets using Wireshark (Check Annexure I, Copy
the codes and execute it in gcc )
2. Using wireshark, capture the TCP headers while connecting your computer to the server of nit.dgp.ac.in.
3. (a) Show how the six flags (SYN, ACK, PUSH, URGENT, RST, FIN) are working in TCP protocol
 (b) What is the IP address of nitdgp.ac.in? On what port number is it sending and receiving TCP segments for this connection?
(c) Write a small socket program for the URGENT pointer and urgent flag?
(d) What is the sequence number of the TCP SYN segment that is used to initiate the TCP connection between the client computer and nitdgp.ac.in?
(e) What is it in the segment that identifies the segment as a SYN segment?
(f) What is the sequence number of the SYN-ACK segment sent by nitdgp.ac.in to the client computer in reply to the SYN?
(g) What is the value of the Acknowledgement field in the SYN-ACK segment?
(h) How did nitdgp.ac.in determine that value?
(i) What is it in the segment that identifies the segment as a SYN-ACK segment?