Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

LAB 4 - REPORT

Full name: Lê Hoàng Huy Student ID: 20225976


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

 No: 21
 Source IP address: 192.168.29.164
 Destination IP address: 192.168.29.11
 Source port: 55549
 Destination port: 53
 What is network layer protocol? IPv4

Question 2(1 point):


What is No. of packet: 28
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, each packet utilizes the reversed source port, where two packets
are involved. The recipient lacks knowledge of whether the transmission succeeds or fails
because UDP, unlike TCP, doesn't establish a connection prior to sending data or verify if the
data reaches its destination 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.29.164
 The IP address of server: 202.191.56.66
 The port number of client: 59619
 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
30 000000000010 [SYN] 0 0 0
39 000000010010 [SYN, ACK] 0 1 0
40 000000010000 [ACK] 1 1 0
Question 4(1 point): Expand the headers of the segment and determine
 No.: 42
 Source IP address: 192.168.29.164
 Destination IP address: 202.191.56.66
 Source port number: 59619
 Destination port number: 80
 Sequence Number: 693
 ACK Number: 1
 TCP header size: 20 bytes
 Payload size: 12150 bytes
 What are TCP flags set? Acknowledment

Question 5(1 point): Expand the headers of the segment and determine
 No.: 48
 Source IP address: 202.191.56.66
 Destination IP address: 192.168.29.164
 Source port number: 80
 Destination port number: 59619
 Sequence Number: 1
 ACK Number: 693
 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
161 000000010001 [FIN, ACK] 783 153014 0
162 000000010000 [ACK] 153014 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 42, we begin the file upload.
The final Ack from the server is packet no. 161 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