TCP/IP protocol and network topology -


I am a newbie in network related aspects. I have some basic questions related to TCP / IP protocols and networks P>
  1. If there are two PC-run clients and servers (which are communicating through async) between a network switch (in a LAN network) chairs, operate below. The client and the server will be notified that the socket connection is no longer active. Clients and servers are running on Win XP OS and are coded using C #.

  2. In the case of half-open connections between the socket client and the socket server, network topology plays a role, for example, either one or both of the positions will be disconnected and both are located at the other end. Will be informed and it will depend on the network topology.

    1. Going down, the operating system can see that the physical layer has decreased and there is an error in excluding all the sockets bound to that network card, if it is a network element that is connected directly to the PC - it Operating system / network card and other things Between will vary. Also, to find out that the connection has been disconnected, you have to send something and TCP will depend on the error on the timeout system. Enabling this connection can be implied.

    2. Disconnected will be seen only if those messages reach the other side, if the network topology changes or breaks between the connections in the meantime, Will not reach the end, disconnected will not be seen. (Gateway is a big source of such problems, they can take the time of a TCP connection, which they are tracking and you will never know that the connection is not valid unless you want to write the connection Do not try (or enable for TCP)). Note that for most networking APIs, you need to read from the connection to Discovery, that the other end has closed the connection - assuming that the "closed" message actually comes in your favor.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -