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

Computer Networks Lab REPORT

School of Engineering and Digital Sciences

Department of Electrical and Computer Engineering

202052047

ELCE 304

Fall 2022

Nur-Sultan, 2022
LAB#8
Introduction
In this laboratory experiment we will be catching packets using wireshark software.
Simulation part
No simulation part in this laboratory experiment.

Practical part
What is the destination port number in TCP?
443
Which application is that port number used for?
This port is used in Hypertext Transfer Protocol Secure, which is a transport protocol
on top of UDP.

TCP HEADER:
11000001 00100100 (49444) 00000001 10111011 (443)

11111110 01001101 11100110 01100110

10000000 00010101 01000010 01001000

100 00000 0 1 0 0 0 0 00000111 1111111


0(8) 0

00111101 01010111 00000000 00000000

00000001 00000001 00001000 00001010 00000100 10101000 10011100


00000110 10011001 10111110 01100011 11011000
IP HEADER:

0100 0101 0000 0000 00000000 00110100

00000000 00000000 010 0 0000000 00000000

0100000 00000110 00010001 10010101

11000000 10101000 00000001 01100100

00011111 00001101 01001000 00010110


2)
What is the sequence number of the TCP SYN segment that is used to initiate the
TCP connection?
The value is 0.

How SYN segment is differentiated from other TCP segments? (SYN message is first
step of connection establishments.)
When we deal with SYN we have a flag for SYN segment in TCP, therefore when the
SYN flag is 1, it indicates that the segment is SYN segment.

What is the length of first 6 TCP segments?


Length of the first segment is 565 bytes, other six segments all are 1460 bytes.

What is the advertised window size by the receiver?


5840 bytes, it was first shown in the first acknowledgement, then the receiver
window grew until 62780 bytes.

Identify at which time TCP slow start begins and ends.


TCP slow starts at 0 and ends around .15 seconds.

Explain what happens after slow start?


After slow start, congestion avoidance occurs. We can see this behavior in vertical
lines of the graph, this is where congestion avoidance occurs.

Can you calculate the throughput and RTT for this transmission?
There are 6 segments,
According to RFC 6928, the calculation of SRTT is
0.875 * EstimatedRTT + 0.125 * SampleRTT
Therefore,
EstimatedRTT after ack for first segment:
EstimatedRTT = RTT for Segment 1 = 0.02746 second
EstimatedRTT after ack for second segment:
EstimatedRTT = 0.875 * 0.02746 + 0.125 * 0.035557 = 0.0285

EstimatedRTT after ack for third segment:


EstimatedRTT = 0.875 * 0.0285 + 0.125 * 0.070059 = 0.0337

EstimatedRTT after ack for fourth segment:


EstimatedRTT = 0.875 * 0.0337+ 0.125 * 0.11443 = 0.0438

EstimatedRTT after ack for fifth segment:


EstimatedRTT = 0.875 * 0.0438 + 0.125 * 0.13989 = 0.0558

EstimatedRTT after ack for sixth segment:


EstimatedRTT = 0.875 * 0.0558 + 0.125 * 0.18964 = 0.0725

To calculate throughput, we take a ratio of total amount of data and total


transmission time.
Total data: 164090 bytes.
Total transmission time: 5.4294 seconds.
Throughput: 30222.5 bps.
Conclusion
The results of this laboratory work are filled tables of TCP and IP headers,
transmission analysis of a given trace between a server and a client and a calculation
of throughput and RTTs for that transmission. The results of both parts of the
laboratory work can be back-verified from the screenshots gained from the
wireshark software.

You might also like