Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

LAB 4 - REPORT

Full name: Đinh Việt Quang Student ID: 20215235


Question 1(1 point): Determine the value of following fields

• No: 95
• Source IP address: 192.168.0.3
• Destination IP address: 192.168.0.1
• Source port: 54139
• Destination port: 53
• What is network layer protocol? IPv4

Question 2(1 point):

What is No. of packet: 96


Describe the relationship between the port numbers in the two packets. Can receiver know
whether transmission is successful or not: The relationship is one-to-one, 2 packets use the
inversed source port. The receiver does not know whether the transmission is successful or not
since in UDP, the sender does not establish a connection before sending data or check if the data
arrives as intended.

Question 3(2 point): What is the IP address and TCP port number used by parties?
• The IP address of client: 192.168.0.3
• The IP address of server: 202.191.56.66
• The port number of client: 62978
• The port number of server: 80
Expand the TCP header of messages in initiatation the TCP connection and determine the value
of fields:
Flags Sequence ACK Payload
No. TCP Flags
(binary value) number number size
99 000000000010 [SYN] 0 0 0

100 000000010010 [SYN, ACK] 0 1 0

101 000000010000 [ACK] 1 1 0

Question 4(1 point): Expand the headers of the segment and determine
• No.: 114
• Source IP address: 192.168.0.3
• Destination IP address: 202.191.56.66
• Source port number: 62899
• Destination port number: 80
• Sequence Number: 621
• ACK Number: 1
• TCP header size: 20 bytes
• Payload size: 13068 bytes
• What are TCP flags set? Acknowledment

Question 5(1 point): Expand the headers of the segment and determine
• No.: 115
• Source IP address: 202.191.56.66
• Destination IP address: 192.168.0.3
• Source port number: 80
• Destination port number: 62899
• Sequence Number: 1
• ACK Number: 621
• TCP header size: 20 bytes
• Payload size: 0 bytes
• What are TCP flags set? Acknowledgement

Question 6(1 point): What is the sequence number of the next TCP segment sent from Web
browser on your computer? Answer: 1
Question 7(2 point): Expand the TCP header of messages in termination of the TCP connection
and determine the value of fields:

Flags Sequence ACK Payload size


No. TCP Flags
(binary value) number number
181 000000010001 [FIN, ACK] 783 152942 0

182 000000010000 [ACK] 152942 784 0


Question 8(1 point): What is the throughput (bytes transferred per unit time) for the TCP
connection during uploading file? Explain how you calculated this value.
The first packet in file transfer is where relative seq != 0 and we have len > 0, we see that with
packet 114, we begin the file upload.
The final Ack from the server is packet no. 181 with zero payload and len = 0.
The number of bytes transfered is 152942-1=152941
Time slice is: 9.866455 – 4.719891 = 5.146564
Then the throughput is : 152941/ 5.146564 = 29717.10835 (bytes per unit time)

You might also like