Can more than 1 TCP connection be active at the same time between the two ports on two different host? Please answer.
If you are asking if it is possible to a socket open from two client systems to a server where the same source and distention ports happen to be the same, then yes, that is possible.
# connections as seen by server src_ip sce_port dest_ip dest_port 192.168.1.5 1234 192.168.1.1 1234 192.168.1.4 1234 192.168.1.1 1234
Sockets are identified by (source address + source port + destination address + destination port). The two destination addresses would be different and therefore everything would work fine.
This is unlikely to happen very often in the real world though since the source port is generally picked from a range for ports available for use in outgoing connections.
# connections as seen by server you would most likely see in the real world src_ip sce_port dest_ip dest_port 192.168.1.5 49345 192.168.1.1 1234 192.168.1.4 51284 192.168.1.1 1234
If you are asking if a single system with a single IP address can open two connections to the same destination address+port from the same source address+port, then the answer is no. When the second instance of the application attempts to bind to that source address+port combo it will get an error.
# cannot happen/invalid, client can't bind src_ip sce_port dest_ip dest_port 192.168.1.4 1234 192.168.1.1 1234 192.168.1.4 1234 192.168.1.1 1234
Leave a comment
- What is the easiest way to upgrade my existing Perl 5.14 to Perl 5.16 on FreeBSD 9 using the ports system?
- Know if mysql has done its job
- Redirect https .com to https .co.uk without a valid SSL cert on .com without DNS change
- Why is it a bad idea to use customer email as from address
- 100% packets dropped on first RX queue on 3/5 raid6 iSCSI NAS devices using intel igb (resolved)