开发者

What will happen if I send a SYN packet to the server when there has already been a TCP connection established?

The SYN packet has the same source de开发者_如何学JAVAst IP address & port with the established connection, so what will happen in this case?


The server will silently drop the packet since it already has a connection in the ESTABLISHED state, one of the four values from (client-ip, src-port, server-ip, dest-port) must be different for the new SYN to be accepted.


The server will attempt a new connection. in tech terms it will send a syn,ack packet and wait for the client to finish the tcp handshake and open the connection. http://en.wikipedia.org/wiki/Transmission_Control_Protocol will explain the process alot better than me.

the server will send some information to identify the connection in its syn,ack packet. and that information is used to keep that connection seperate from others.

Most the time, the ports will not be the same but when it is, it can cause problems with low grade nat routers, They try to rewrite that ports that are used, and can get the connections confused.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜