edited by
514 views
1 votes
1 votes
what happens when a host receives a TCP segment whose port number or source IP address do not match with any of the ongoing sockets in the host?

one of the answer i think is an ICMP destination unreachable message will be transmitted.

but could it be a possibility that the host will wait for a particular time period for the host to start listening to that port?(in case of no ongoing port of the number).

how the answer would change in case of UDP connection.
edited by

1 Answer

0 votes
0 votes

If a host receives a TCP segment where the port numbers or source address to not match any connection (e.g., the socket is closed or there is no listener on that address), it will send back a reset segment, a TCP segment with the RST flag set. In the case of UDP, an attempt to send a message to a port that does not have any process listening on it will result in the generation of an ICMP message back to the sender.

Source: https://www.cs.rutgers.edu/~pxk/352/exam/study-guide-2.html

Related questions

3 votes
3 votes
3 answers
4
Jaggi asked Oct 11, 2018
2,594 views
For a network which has maximum packet size is 256 bytes . lifetime of a packet is 20 sec and 8 bit sequence number . Find maximum data rate per connection