Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
21 views

Lab3 UDPTCP

Uploaded by

mert
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Lab3 UDPTCP

Uploaded by

mert
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

CMPE 472 – Computer Networks

Lab 3: UDP & TCP (3 points)

Name Surname:Yıldırım Mert Gökçe

ID:24016271698

Please fill out this given form for your submissions. Do not forget to attach appropriate screenshots.

Part 1: UDP (1.5 pts)

Use the given packet amazon to answer the questions of this part.

1. Select one UDP packet from your trace. By consulting the displayed information in Wireshark’s
packet content field for this packet, determine the length (in bytes) of each of the UDP header fields.
(0.45)
I don’t have a paint im on linux so I m gonna write it. Source port, Destination port, length,
checksum:0xbcab have 2 bytes as shown at the end. Checksum status doesn’t have it. And UDP
payload have 408 bytes.
2.

2. What is the largest possible source port number?


(0.30)

2^16-1.

3. What is the maximum number of bytes that can be included in a UDP payload? (0.30)

65535 bytes – 8 bytes = 65527 bytes


4headers in total each 2bytes.

4. Examine a pair of UDP packets in which your host sends the first UDP packet and the second UDP
packet is a reply to this first UDP packet. (Hint: for a second packet to be sent in response to a first
packet, the sender of the first packet should be the destination of the second packet). Describe the
relationship between the port numbers in the two packets. (0.45)
As you can see I have selected the No number 2 and 4. packet2 has Source port 53948 and destination
port 443. Packet4 has source port 443 and destination port 53948. We can see it from the slide.

Part 2: TCP (1.5 pts)

Use the given packet trendyol to answer the questions of this part.

5. What is the IP address of the client (the initiator of this TCP connection), and what is the server’s IP
address? From which port the client initiates the connection, and what is the port number used for
this connection on the server side? (0.75)
When we look at the no 957. Ip address of the client(Source) is 192.168.1.108 and server’s ıp address is
server (destination) 104.18.174.21.
In the opened up window we see the source port(client initiates the connection) is 52683 and destination
port is 443(for server side connection).

6. Explain the three-way handshake protocol of TCP connection. Give an example of this in the packet
given to you. (0.75)

The client first sends a TCP segment; the server responds with a second special TCP seg-
ment; and finally the client responds with a third segment. Because three segments are sent between the
two hosts, this connection-establishment is called three-way handshake.

First 2 has SYN and 3rd acknowlodges it. First client sends SYN then server responds with SYN+ACK
then client establishling the connection with ACK sending to server.

You might also like