0% found this document useful (0 votes)
13 views8 pages

Model Lab Questions (15 Questions)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views8 pages

Model Lab Questions (15 Questions)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

1. a.

Socket Programming

Create a Socket Programming for Conversion of Temperature (Celsius to Fahrenheit)


using TCP

b. Wire Shark

Draw UDP packet structure. Capture DHCP discover and offer packets from your
trace and answer the following questions.

DHCP DISCOVER MESSAGE:

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?

DHCP OFFER 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.

Examine one of the ping request packets sent by your host.

i. What is the IP address of source host?


ii. What is the IP address of the destination host?
iii. What are the ICMP type and code numbers?
iv. What other fields does this ICMP packet have?
v. How many bytes are the checksum, sequence number and identifier fields?
Examine the corresponding ping reply packet.

i. What is the IP address of source host?


ii. What is the IP address of the destination host?
vi. What are the ICMP type and code numbers?
vii. What other fields does this ICMP packet have?
viii.How many bytes are the checksum, sequence number and identifier fields?
3. a. Socket Programming

Create a Socket Programming for Conversion of Temperature (Fahrenheit to Celsius)


using TCP

b. Wire Shark

Draw UDP packet structure. Select any ICMP packets from your trace and answer
the following questions.

DHCP REQUEST 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

DHCP ACK message:

i. What is the source IP address in the IP datagram containing this ACK


message?
ii. What is the destination IP address used in the datagram containing this ACK
message?
iii. What is the name of the field in the DHCP ACK message that contains the
assigned client IP address?
iv. For how long a time (the so-called “lease time”) has the DHPC server
assigned this IP address to the client?
v. What is the IP address (returned by the DHCP server to the DHCP client in
this DHCP ACK message) of the first-hop router on the default path from the
client to the rest of the Internet?
4. a. Socket Programming

Create a Socket Programming for Conversion of Time (seconds to minutes, hours to


milliseconds) using UDP

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

Create a Socket Programming to find area of circle using UDP

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

Create a Socket Programming for Arithmetic operations using UDP

b. Wire Shark

IPv4 Datagram Format

1. Draw the IPv4 datagram format


2. Tell the source and destination IP address in an IP datagram and tell to whom
that IP address belongs to
3. Can the version field in IPv4 datagram contain the value 6? Justify it
4. Find the data length of an IPv4 datagram
5. What is the identification field value in the IPv4 datagram you have analyzed
and whether it is same for all fragments belonging to a single data?
6. What is the M-bit value in the IPv4 datagram you have analyzed and what
that value represents?
7. What is the D-bit value in the IPv4 datagram you have analyzed and what
that value represents?
8. What is the thing you infer from fragmentation offset field in the IPv4
datagram?
9. Analyze the TTL field in your IPv4 datagram and say what is the value in
that field in the 3-hop router?
10. Is there any options fields in the IPv4 header you have analyzed?
7. a. Parity Check Programming

Implement Even Parity Check algortihm for Error Detection

b. Wire Shark

ARP Protocol

1. What is the use of ARP protocol?


2. Show an ARP Query message and why it is send as a Broadcast frame
3. ARP Query message is sent as Broadcast frame. Show the Broadcast MAC
address in the query message
4. Tell the source MAC address in the ARP Query message and tell to whom
that MAC address belongs to
5. Show the Destination MAC address in the ARP Query message and justify it
6. ARP Query message contains a value in Destination IP address field. Whose
IP address it is?
7. Show an ARP Reply message and why it is send as a Unicast frame
8. How the sender gets the destination system MAC address using ARP
protocol? Show with example
9. To whom the source MAC address in the ARP reply message belongs to?
10. To whom the destination MAC address in the ARP reply message belongs
to?

8. a. Parity Check Programming

Implement Odd Parity Check algortihm for Error Detection

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

Create a Socket Programming for Arithmetic operations using TCP

b. Wire Shark

DNS protocol

i) Identify the transaction ID in DNS query and reply packets.


ii) What is the value of flag field in the DNS header?
iii) Find out the value of the question field in DNS query packet.
iv) How many IP addresses are available for the given URL?
v) Is there any canonical name is available for the given domain? If yes,
note down.
vi) How many answers are fetched for the given domain name?
vii) Identify the local DNS IP address for your machine. Use ipconfig to
verify the same.
viii) Are the DNS packets are sent over TCP or UDP?
ix) Examine the DNS query message. What “Type” of DNS query is it?
Does the
x) query message contain any “answers”
xi) Examine the DNS query message. What “Type” of DNS query is it? Does
the
xii) query message contain any “answers”
xiii) Examine the DNS query message. What “Type” of DNS query is it? Does
the
xiv) query message contain any “answers”
ix) Examine the DNS query message. Does the query message contain any
“answers” ?
x) Examine the DNS reply message. What is the question field in DNS reply
message ?

10. a. Socket Programming

Create a Socket Programming for Conversion of Temperature (Celsius to Fahrenheit)


using TCP

b. Wire Shark

DHCP DISCOVER MESSAGE:

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.

DHCP REQUEST 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

i. Draw ICMP header format


ii. What is the IP address of your host?
iii. What is the IP address of the destination host?

Execute “Tracert” command and analyze the ICMP packets


iv. What are the ICMP type and code numbers?
v. What other fields does this ICMP packet have?
vi. How many bytes are the checksum, sequence number and identifier fields?
vii. What is the TTL field value present in the first IPv4 packet
viii.Show the different types of ICMP messages you have analyzed

12. a. Socket Programming

Create a Socket Programming to find area of circle using TCP

b. Wire Shark

HTTP MESSAGE:

1. Draw the structure of an HTTP request and response message


2. Find the IP address of the www.annauniv.edu? What is the Internet address
of your computer?
3. Specify the version of HTTP protocol
4. What is the Transport layer protocol used while browsing the website
www.annauniv.edu using http protocol?
5. Find the type of access method (GET/POST) used while browsing this
website.
6. What languages does your browser indicate that it can accept to the server?
7. What is the status code returned from the server to your browser?
8. What is the type of HTTP connection specified in HTTP Request message?
9. What is the length of the content that is returned by the HTTP server?
13. a. Socket Programming

Create a Socket Programming for Conversion of Temperature (Celsius to Farenheit)


using TCP

b. Wire Shark

TCP Segment:

i. Write down the TCP header format


ii. Find the segments used for connection setup with www.irctc.co.in
iii. Show the trace file content used to get the IP address of www.irctc.co.in
iv. Check whether SYN segment contains valid ACK number
v. What is the value of the acknowledgement number in the ACK segment?
vi. Is there any data sent in the SYN, SYN/ACK, and ACK segments?
vii. What are TCP port numbers used by the source and destination?
viii.What is the maximum header length?
ix. Does the received TCP segment contain any urgent data?
x. Find the segments used for connection termination between the client and the
server.
14. a. Socket Programming

Create a Socket Programming for Distance Conversion using UDP

b. Wire Shark

DNS protocol

i) Find the IP address for the domain name www.kongu.edu


ii) Are the DNS packets sent over TCP or UDP?
iii) How many resource records are present in DNS response message?
iv) Specify different types of resource records present in DNS response
mesage
v) Find out the value of the question field in DNS query packet.
vi) How many answers are fetched for the given domain name?
vii) Identify the type of query method used in DNS query message
viii) Examine the DNS query message. What “Type” of DNS query is it? Does
the
ix) query message contain any “answers”
x) Examine the DNS query message. What “Type” of DNS query is it? Does
the
xi) query message contain any “answers”
xii) Examine the DNS query message. What “Type” of DNS query is it? Does
the
xiii) query message contain any “answers”
xi) Examine the DNS query message. Does the query message contain any
“answers” ?
xii) Examine the DNS reply message and identify the question field
15. a. Socket Programming

Implement Even Parity Check algortihm for Error Detection

b. Wire Shark

IPv4 Datagram Format

1. Draw the IPv4 datagram format


2. What is the IP address and Port number of your client process?
3. Tell the IP address and Port number of www.flipkart.com
4. Can the version field in IPv4 datagram contain the value 6? Justify it
5. Find the length of the IPv4 datagram header in bytes
6. How many hops can the datagram can traverse?
7. Is it is possible to fragment this datagram? Justify your answer
8. Identify whether the datagram is first or last fragment
9. Is there any options fields in the IPv4 header you have analyzed and find its
length if it present
10. What is the upper layer protocol present in the IPv4 datagram?

You might also like