3 votes 3 votes When a UDP segment arrives at a host, in order to direct the segment to the appropriate socket, the operating system's network stack uses which of the following fields? (Mark all the appropriate choices) the source IP address the destination IP address the source port number the destination port number Computer Networks go2025-cn-1 udp multiple-selects + – gatecse asked Oct 23, 2020 • edited Oct 23, 2020 by soujanyareddy13 gatecse 403 views answer comment Share Follow See 1 comment See all 1 1 comment reply Himanshu555 commented Dec 19, 2022 reply Follow Share @gatecse What if same thing for TCP host? 1 votes 1 votes Please log in or register to add a comment.
3 votes 3 votes UDP is connectionless and hence uses only the destination address (IP, port). gatecse answered Oct 23, 2020 gatecse comment Share Follow See 1 comment See all 1 1 comment reply HLG_SAGAR commented Nov 7, 2023 reply Follow Share The combination of the destination port and the IP address in the IP header is used to route the UDP segment to the appropriate application or socket on the receiving host. The operating system keeps a table of active sockets and their associated port numbers, allowing it to demultiplex incoming UDP segments to the correct destination.The operating system maintains a table of active connections (the connection's 4-tuple, which includes source IP, source port, destination IP, and destination port) and uses this information to demultiplex incoming TCP segments to the correct socket, allowing the host to handle multiple TCP connections simultaneously. 2 votes 2 votes Please log in or register to add a comment.