Question

In: Computer Science

Assume a client uses TCP to send data to a server. The TCP header has 12...

Assume a client uses TCP to send data to a server. The TCP header has 12 bytes of options and 99 bytes of data. [Please don't forget Ethernet Type/Len field is 2 bytes in size.]

1. Calculate the total number of bytes passed to the IP layer by the TCP layer.

2. Calculate the total number of bytes passed to the network layer by the IP layer, assuming the IP layer has no options.

3. Calculate the total number of bytes transmitted on the Ethernet cable (not including the preamble, the start frame delimiter, or the frame check sequence).

4. What is the percentage of overhead for the packet being transmitted on Ethernet (i.e. the ratio of non-user data to total protocol data)?

Solutions

Expert Solution

1.Calculate the total number of bytes passed to the IP layer by the TCP layer

Ans: Open the capture file and use filters to left only tcp packets from sender - you can use following string "ip.src=X.X.X.X&&tcp.len>0" where X.X.X.X your server(sender) ip address

2) Save filtered file: save as -> check checkbox "Displayed" -> save

3) Check the size of resulting Wireshark file

If you are interested in only in clear payload size, than

4) Open resulting file

5) Check the total number of frames in it (just scroll down the file and check values in the first column)

6) Calculate total size of headers - multiply number of frames in capture by 54 (14 byte Ether header + 20 byte Ip header + 20 byte TCP header)**

7) Subtract from the total size of resulting file total size of headers the result will be payload size

0

Apply a display filter to show only packets from the sender, for example "ip.src==192.168.1.1". If there is more than one TCP conversation in the trace, add the stream index to the display filter so that you're seeing only packets from the sender on the conversation of interest, so something like: "ip.src==192.168.1.1 and tcp.stream==5".

To see total bytes transmitted, bring up the Summary dialog (Statistics > Summary). Near the bottom, read the value for "Bytes" in the "Displayed" column. This is the total number of bytes transferred. It includes the Ethernet, IP, and TCP headers, and also the Ethernet Frame Check Sequence, if it is present in the trace. Not all systems pass the Frame Check Sequence to Wireshark, so it is often not present in the trace.

2.Calculate the total number of bytes passed to the network layer by the IP layer, assuming the IP layer has no options.

3. Calculate the total number of bytes transmitted on the Ethernet cable (not including the preamble, the start frame delimiter, or the frame check sequence).

4. What is the percentage of overhead for the packet being transmitted on Ethernet (i.e. the ratio of non-user data to total protocol data)?


Related Solutions

Suppose a TCP client needs to send 3 packets to the TCP server. Before sending the...
Suppose a TCP client needs to send 3 packets to the TCP server. Before sending the first packet, the estimated RTT is 50 ms, and the estimated deviation of the sample RTT is 10 ms. The parameters α= 0.1, and β = 0.2. The measured sample RTT for the three packets are 60ms, 70 ms, and 40 ms, respectively. Please compute the time out value that was set for each packet right after it is being transmitted out.
Recall that even if the server only stores f(p), client has to send p in clear...
Recall that even if the server only stores f(p), client has to send p in clear to authenticate to the server. If the adversary is watching, it learns p. Normally you have to use HTTPS to solve this problem. Alice has another idea. Instead of client sending p, client will instead only send f(p) to the server to authenticate. Then the adversary never learns p even if it can watch the whole communication. Is this a good idea?
If two applications use TCP to send data but only send 10 bytes per segment (e.g....
If two applications use TCP to send data but only send 10 bytes per segment (e.g. by using the push operation), what is the maximum percent of the network bandwidth they will have for their data?
TCP client and server using C programming I am having trouble on how to read in...
TCP client and server using C programming I am having trouble on how to read in the IP adress and port number from the terminal Example: Enter IP address: 127.0.0.1 Enter Port Number: 8000 in both client and server code. How do can I make I can assign the Ip address and port number using the example above. the error I get is that the client couldn't connect with the server whenever i get the port number from the user...
For the TCP header of a data packet shown below, find the following parameters. (1) Source...
For the TCP header of a data packet shown below, find the following parameters. (1) Source port number (2) Destination port number (3) Sequence number (4) Acknowledgement number (5) Header length (6) Window size (7) a. Which flag is on? b. What is the type/purpose of this communication? 0 0 0 0   0 0 0 1   0 0 1 0   0 1 0 0   0 0 0 0   0 0 0 1   0 0 0 1   0 1 0 1...
Write a Python Client/Server Socket Program that will allow you to send text messages between the...
Write a Python Client/Server Socket Program that will allow you to send text messages between the server and client, terminating when the exit is typed on the client. Build the program on your 2-VM’s and get it working. Cut and paste your code below along with screen shots of your program working.
How do I make a simple TCP python web client and web server using only "import...
How do I make a simple TCP python web client and web server using only "import socket"? Basically, the client connects to the server, and sends a HTTP GET request for a specific file (like a text file, HTML page, jpeg, png etc), the server checks for the file and sends a copy of the data to the client along with the response headers (like 404 if not found, or 200 if okay etc). The process would be: You first...
4. How does a client socket interact with a server socket to exchange data?
4. How does a client socket interact with a server socket to exchange data?
Assume that a CPA has just received a new audit client. The client will be the...
Assume that a CPA has just received a new audit client. The client will be the firm’s largest audit client, and the firm will have to hire one new staff member to staff the engagement. The fees will represent 25% of the firm revenues. Apply the conceptual framework for members in public practice to this situation.
Suppose that the borrowing rate that your client faces is 12%. Assume that the S&P 500...
Suppose that the borrowing rate that your client faces is 12%. Assume that the S&P 500 index has an expected return of 14% and standard deviation of 23%. Also assume that the risk-free rate is rf = 6%. Your fund manages a risky portfolio, with the following details: E(rp) = 13%, σp = 24%. What is the largest percentage fee that a client who currently is lending (y < 1) will be willing to pay to invest in your fund?...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT