Suppose a process in Host C has a UDP socket with port number 6789. Suppose both
ID: 3800686 • Letter: S
Question
Suppose a process in Host C has a UDP socket with port number 6789. Suppose both Host A and Host B each send a UDP segment to Host C with destination 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?
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.
please explain step by step
Explanation / Answer
Suppose a process in Host C has a UDP socket with port number 6789.
Suppose both Host A and Host B each send a UDP segment to Host C with destination port
number 6789. Will both of these segments be directed to the same socket at Host C?
Technically speaking, UDP would provide a better trade-off since voice/video apps.
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.
If so, how will the process at Host C know that these two segments originated from
two different hosts?
It is easily identified by the operating system which will provide the process
with the ip addresses which will determine the origins of individualsegments
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.
please explain step by step
Step1 : For each persistent connection, the Web server creates a separate “connection socket”
Step2 : Each connection socket is identified with a four-tuple known as
1.source IP address, 2.source port number,3.destination IP address, 4.destination port number.
Step3 : 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.
Step4 : Thus, the requests from A and B pass through different sockets.
Step5 : 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.
Step6 : when the transport layer passes a TCP segment’s payload to the application process,
it does not specify the source IP address, as this is implicitly specified by the
socket identifier
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.