Question

. Consider a TCP connection between Host A and Host B. Suppose that the TCP segments...

. Consider a TCP connection between Host A and Host B. Suppose that the TCP segments traveling from Host A to Host B have source port number 37 and destination port number 61. What are the source and destination port numbers for the segments traveling from Host B to Host A?

  • . Suppose a process in Host C has a UDP socket with port number 6789. Sup- pose both Host A and Host B each send a UDP segment to Host C with desti- nation port number 6789. Will both of these segments be directed to the same socket at Host C? If so, how will the process at Host C know that these two segments originated from two different hosts? 


  • . Is it possible for an application to enjoy reliable data transfer even when the application runs over UDP? If so, how? 


  • . Suppose that a Web server runs in Host C on port 80. Suppose this Web server uses persistent connections, and is currently receiving requests from two different Hosts, A and B. Are all of the requests being sent through the same socket at Host C? If they are being passed through different sockets, do both of the sockets have port 80? Discuss and explain. 


0 0
Add a comment Improve this question Transcribed image text
Answer #1

1)

Source port number 61 and destination port number 37.

2)

Answer: Yes, both segments will be directed to the same socket. For each received segment, at the socket interface, the operating system will provide the process with the IP addresses to determine the origins of the individual segments.

3)

Yes. The application developer can put reliable data transfer into the application layer protocol. This would require a significant amount of work and debugging, however.

4)

Answer: For each persistent connection, the Web server creates a separate “connection socket”. Each connection socket is identified with a four‐ tuple: (source IP address, source port number, destination IP address, destination port number). When host C receives and IP datagram, it examines these four fields in the datagram/segment to determine to which socket it should pass the payload of the TCP segment. Thus, the requests from A and B pass through different sockets. The identifier for both of these sockets has 80 for the destination port; however, the identifiers for these sockets have different values for source IP addresses. Unlike UDP, when the transport layer passes a TCP segment’s payload to the application process, it does not specify the source IP address, as this implicitly specified by the socket

Add a comment
Know the answer?
Add Answer to:
. Consider a TCP connection between Host A and Host B. Suppose that the TCP segments...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 14. (10 Points) Suppose Proces A running on Host Process B running on Host Y vi running on Host Z is communicating with Process via a TCP connection. Let x, y, and z be the IP addresses o and Hos...

    14. (10 Points) Suppose Proces A running on Host Process B running on Host Y vi running on Host Z is communicating with Process via a TCP connection. Let x, y, and z be the IP addresses o and Host Z, respectively. Assume the port number o the port number of Process B is 464 26145, and the port number of Process D is 80. a. What are the identifiers of the socket associated with Process B when it is...

  • Host A and B are communicating over a TCP connection, and Host B has already received...

    Host A and B are communicating over a TCP connection, and Host B has already received from A all bytes up through byte 126. Suppose Host A then sends two segments to Host B back-to-back. The first and second segments contain 80 and 40 bytes of data, respectively. In the first segment, the sequence number is 127, the source port number is 302, and the destination port number is 80. Host B sends an acknowledgment whenever it receives a segment...

  • Hosts A and B are communicating over a TCP connection, and Host B has already received from A all...

    Hosts A and B are communicating over a TCP connection, and Host B has already received from A all bytes up to and including byte 1029. Suppose Host A then sends three segments to Host B back-to-back. The first, second and third segments contain 1200, 150 and 80 bytes of data respectively. In the first segment, the sequence number is 1060, the source port number is 8080, and the destination port number is 80. Host B sends an acknowledgment whenever...

  • 1.DNS can not work if the hostnames are not hierarchal? Explain? 2. Give two scenarios where...

    1.DNS can not work if the hostnames are not hierarchal? Explain? 2. Give two scenarios where DNS protocols (from two hosts) gets two different IP address for the same hostname. 3. If you have a 100% reliable network layer, should you use TCP or UDP at the Transport layer? Explain your answer? 4.Is it is possible for an application on top of UDP to have a reliable data transfer? Explain? 5.Suppose that a Web server runs in Host C on...

  • suppose host A sends two TCP segments back to host B over a TCP connection. the...

    suppose host A sends two TCP segments back to host B over a TCP connection. the first segment has sequence number 30; the second has sequence number 50. how much data is in the first segment? suppose that the first segment is lost but the second segment is lost but the second segment arrives at B. in the acknowledgment that host B sends to host A, what will be the acknowledgment number? (5 marks) in TCP/IP

  • Exercise 2. Suppose there are two hosts, S and R. They are communicating over a TCP...

    Exercise 2. Suppose there are two hosts, S and R. They are communicating over a TCP connection, and R has already received from S all bytes from 1 through 233. Now, Host S then sends three segments to Host R back to back. The segments size are 50, 70, and 90 bytes respectively. In the first segment, the source port number is 212 and the destination port number is 80. Host R sends an acknowledgement whenever it receives a segment...

  • Host A and B are directly connected with a 100Mbps link. There is one TCP connection...

    Host A and B are directly connected with a 100Mbps link. There is one TCP connection between the two hosts, and Host A is sending to Host B an enormous file over this connection. Host A can send its application data into its TCP socket at a rate as high as 140 Mbps but Host B can readout of its TCP receive buffer at a maximum rate of 70 Mbps. Describe the effect of TCP flow control.

  • Answer the following question based on this assumption: 7: Host A and B are communicating over...

    Answer the following question based on this assumption: 7: Host A and B are communicating over a TCP connection, and Host B has already received from A all bytes up through byte 126. Suppose Host A then sends two segments to Host B back-to-back. The first and second segments contain 80 and 40 bytes of data, respectively. In the first segment, the sequence number is 127, the source port number is 302, and the destination port number is 80. Host...

  • TCP headers and segmentation (B) 10. Which of the following flelds in the UDP header Is...

    TCP headers and segmentation (B) 10. Which of the following flelds in the UDP header Is NOT found in the TCP header? source port destination port checksum length 11. The value of the acknowledgement field in a TCP segment defines Number of bytes to retransmit Number of bytes to receive Starting point of next bytes to receive in sequence Total number of bytes left 12. Suppose Host A sends one segment with sequence number 38 and 4 bytes of data...

  • 12. The combination of the source and destination IP addresses and the source and destination port...

    12. The combination of the source and destination IP addresses and the source and destination port numbers is known as a socket. What is a socket used for? 13. Label the following port number ranges. _0 to 1023 1024 to 49151 49152 to 65535 14. What DOS command can be used to see which active TCP connections are open and wing on a networked host? 15. Why is dividing application data into segments necessary 16. Labelcach of the following delivery...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT