Model Lab Questions (15 Questions)
Model Lab Questions (15 Questions)
Socket Programming
b. Wire Shark
Draw UDP packet structure. Capture DHCP discover and offer packets from your
trace and answer the following questions.
i. Is this DHCP Discover message sent out using UDP or TCP as the underlying
transport protocol?
ii. What is the source IP address used in the IP datagram containing the
Discover message?
iii. What is the destination IP address used in the datagram containing the
Discover message?
iv. What is the value in the transaction ID field of this DHCP Discover message?
v. How do you know that this OFFER message is being sent in response to the
DHCP Discover message?
vi. What is the source IP address used in the IP datagram containing the Offer
message?
vii. What is the destination IP address used in the datagram containing the Offer
message?
viii.What is the IP address offered by DHCP server to the client in this offer
message?
ix. Find out the subnet mask offered by DHCP Server in the DHCP Offer
message.
2. a. Socket Programming
Create a Socket Programming for Cut off Mark calculation using UDP
b. Wire Shark
Draw ICMP packet structure. Select any ICMP packets from your trace and answer
the following questions.
b. Wire Shark
Draw UDP packet structure. Select any ICMP packets from your trace and answer
the following questions.
i. What is the UDP source port number in the IP datagram containing the first
DHCP Request message in your trace?
ii. What is the UDP destination port number being used?
iii. What is the source IP address in the IP datagram containing this Request
message?
iv. What is the destination IP address used in the datagram containing this
Request message?
v. What is the value in the transaction ID field of this DHCP Request message?
Does it match the transaction IDs of the earlier Discover and Offer messages?
vi. Inspect the options field in the DHCP Discover message
b. Wire Shark
Draw TCP packet structure. Select any TCP packets from your trace and answer the
following questions
i. Find the initial three-way handshake in the trace file while browsing the
content from www.annauniv.edu.
ii. Show the trace file content used to get the IP address of www.annauniv.edu.
iii. What is the actual initial sequence number in each direction assigned during
connection establishment?
iv. What is the value of the acknowledgement number in the SYN+ACK
segment?
v. Is there any data sent in the SYN, SYN/ACK, and ACK segments?
vi. What are TCP port numbers used by the client computer (source) and the
server (destination)?
vii. What is the maximum header length? Calculate the length of the header in the
unit of bytes? Verify your answer using the first TCP segment in the trace
file.
viii.Does the received TCP segment contain any urgent data?
ix. Find the segments used to release the connection between the client and the
server.
5. a. Socket Programming
b. Wire Shark
Draw HTTP packet structure. Select any HTTP packets from your trace and answer
the following questions
HTTP MESSAGE:
1. List 3 different protocols that appear in the protocol column in the unfiltered
packet-listing window of Wireshark.
2. What is the Internet address of the www.amazon.com?
3. What is the Internet address of your computer?
4. Is your browser running HTTP version 1.0 or 1.1?
5. Find the transport layer protocol used while browsing the website
www.amazon.com using http protocol.
6. Find the type of access method (GET/POST) used while browsing this
website.
7. What languages (if any) does your browser indicate that it can accept to the
server?
8. What is the status code returned from the server to your browser?
9. When the HTML file that you are retrieving was last modified at the server?
10. How many bytes of content are being returned to your browser?
6. a. Socket Programming
b. Wire Shark
b. Wire Shark
ARP Protocol
b. Wire Shark
Draw UDP packet structure. Select one of the UDP packets from your trace and
answer the following questions.
Select one UDP packet from your trace. From this packet,
determine how many fields there are in the UDP header
i) What is the source port number? And mention its size in bytes.
ii) What is the destination port number? And mention its size in bytes.
iii) Note down the value in the length field. What does it signify?
iv) Identify the checksum mentioned in your packet trace. Mention its use.
v) What is the smallest possible source port number?
vi) What is the largest possible destination port number?
vii) Identify the maximum size of the payload that can be accommodated by a
UDP header.
viii) Identify the application that generated this UDP packet.
ix) Is the header size is fixed or variable?
x) What is length of the UDP header in bits?
9. a. Socket Programming
b. Wire Shark
DNS protocol
b. Wire Shark
i. Is this DHCP Discover message sent out using UDP or TCP as the underlying
transport protocol?
ii. What is the source IP address used in the IP datagram containing the
Discover message?
iii. What is the destination IP address used in the datagram containing the
Discover message?
iv. What is the value in the transaction ID field of this DHCP Discover message?
v. Inspect the options field in the DHCP Discover message.
i. What is the UDP source port number in the IP datagram containing the first
DHCP Request message in your trace?
ii. What is the UDP destination port number being used?
iii. What is the source IP address in the IP datagram containing this Request
message?
iv. What is the destination IP address used in the datagram containing this
Request message?
v. What is the value in the transaction ID field of this DHCP Request message?
Does it match the transaction IDs of the earlier Discover and Offer messages?
vi. Inspect the options field in the DHCP Discover message
11. a. Socket Programming
Create a Socket Programming for Cut off Mark calculation using TCP
b. Wire Shark
ICMP
b. Wire Shark
HTTP MESSAGE:
b. Wire Shark
TCP Segment:
b. Wire Shark
DNS protocol
b. Wire Shark