Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Suppose Host A, Host B, and Server S have respective IP addresses A, B, and S. T

ID: 3872905 • Letter: S

Question

Suppose Host A, Host B, and Server S have respective IP addresses A, B, and
S. There is a process on Host A that has a segment flow to Server S with source
port 8000 and destination port 81. Furthermore, there are two processes on Host
B with two corresponding segment flows to Server S with source ports 9005 and
9006 and destination port 81. What are the source and destination ports of
the response segment flows from Server S to the three processes? Additionally,
what are the source and destination IP addresses in the network-layer datagrams
carrying the transport-layer segments.

Explanation / Answer

What are the source and destination ports of the response segment flows from Server S to the three processes?

"When the data flow from server to the clients it will swap the source an destination IP address".

Host A sends the data with source port 8000 and destination port 81. So now the port will get swapped hence the sending segment for host A from server will have source port 81 and destination port 8000.

So the host B too will have similar condtion, now the sending segment for host B from server will have source port 81 and destination ports 9005, 9006.

what are the source and destination IP addresses in the network-layer datagrams carrying the transport-layer segments?

                  "At this point datagrams going back to host A or host B from server will have source IP set to server's IP address and destination IP address will be the host system IP address."

So datagrams from server S to host A and host B will have the source Ip address as Sever S's IP address(it was not mentioned in this case). The destination IP for host A will be its same IP address, and for host B also the IP address same.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote