none
unplug the network of .Net Remoting Client computer and power off .Net Remoting Client Computer RRS feed

  • Question

  • What's the difference between unplug the network of .Net Remoting Client computer and power off .Net Remoting Client?

    There is a scenario in my customer's machine that the thread hanged at calling .net remoting client after power off .net remoting client computer.

    However if only unplug the network of .net remoting client, it will throw "A connection attempt failed because the connected party did not properly respond after a period of time..." when call .net remoting client.   (take this case as working fine)

    My question is that are there any differences between unplug and power off .net remoting client computer.

    Thanks

    Scott


    • Edited by ScottQ Tuesday, January 22, 2013 7:15 AM
    Tuesday, January 22, 2013 7:13 AM

Answers

  • The answer is complicated and not as simple as ethernet plug removed.  In most cases there shouldn't be any difference between turning a computer off and unplugging the ethernet connector.  There will be a difference if the Port Number is already being used.  There can only be one connection with the following 3 properties

         a) Source IP address

          b) Desination IP address

          c) Port number

    If you unplug the ethernet plug while a connection exists the connection will not be terminated in most cases unless the keep alive property is enabled.  So unplugging the cable and then trying to make the same connection will give an error (actively refuse connection).  When turning of a computer the connection may end (depending on the properties in the software) up getting closed

    which will give different results then disconnecting the cable.

    The answer depends on the protocols that is being used. For example the following will effect your results

    1) The network and the type of client (TCP or UDP). 

    2) If you are using fixed IP address or if DNS is running to resolve machine names.

    3) If you are using the machine name or an IP address to make the connection

    4) If the machine name is in the ARP table.  The ARP table holds an Mahine Name/IP address for 30 minutes.  So if the machine was recently turned off the machine name may still be in the ARP table.

    You probably have DNS runnings which is used to assigned IP addresses rather than fixed IP addrress.  When using DNS an ARP Request is sent using the Machine Name to get the IP address if the name isn't in the ARP table already.

    There is a difference between UDP and TCP.  TCP is reliable and every message gets acknowledged by the receiving end while UDP does not have any acknoweledgement.  so UDP will give diffferent results from TCP.


    jdweng

    • Proposed as answer by Mike FengModerator Wednesday, January 23, 2013 10:52 AM
    • Marked as answer by ScottQ Sunday, January 27, 2013 11:53 PM
    Tuesday, January 22, 2013 12:24 PM
  • Is Powering off the computer akin to pulling the power plug, or to shutting down the OS?

    When a machine is powered down, there's a chance for DHCP to reassign the IP Address for that computer, if it's not powered back on in a certain period of time.

    • Proposed as answer by Mike FengModerator Wednesday, January 23, 2013 10:52 AM
    • Marked as answer by ScottQ Sunday, January 27, 2013 11:53 PM
    Tuesday, January 22, 2013 5:20 PM

All replies

  • The answer is complicated and not as simple as ethernet plug removed.  In most cases there shouldn't be any difference between turning a computer off and unplugging the ethernet connector.  There will be a difference if the Port Number is already being used.  There can only be one connection with the following 3 properties

         a) Source IP address

          b) Desination IP address

          c) Port number

    If you unplug the ethernet plug while a connection exists the connection will not be terminated in most cases unless the keep alive property is enabled.  So unplugging the cable and then trying to make the same connection will give an error (actively refuse connection).  When turning of a computer the connection may end (depending on the properties in the software) up getting closed

    which will give different results then disconnecting the cable.

    The answer depends on the protocols that is being used. For example the following will effect your results

    1) The network and the type of client (TCP or UDP). 

    2) If you are using fixed IP address or if DNS is running to resolve machine names.

    3) If you are using the machine name or an IP address to make the connection

    4) If the machine name is in the ARP table.  The ARP table holds an Mahine Name/IP address for 30 minutes.  So if the machine was recently turned off the machine name may still be in the ARP table.

    You probably have DNS runnings which is used to assigned IP addresses rather than fixed IP addrress.  When using DNS an ARP Request is sent using the Machine Name to get the IP address if the name isn't in the ARP table already.

    There is a difference between UDP and TCP.  TCP is reliable and every message gets acknowledged by the receiving end while UDP does not have any acknoweledgement.  so UDP will give diffferent results from TCP.


    jdweng

    • Proposed as answer by Mike FengModerator Wednesday, January 23, 2013 10:52 AM
    • Marked as answer by ScottQ Sunday, January 27, 2013 11:53 PM
    Tuesday, January 22, 2013 12:24 PM
  • Is Powering off the computer akin to pulling the power plug, or to shutting down the OS?

    When a machine is powered down, there's a chance for DHCP to reassign the IP Address for that computer, if it's not powered back on in a certain period of time.

    • Proposed as answer by Mike FengModerator Wednesday, January 23, 2013 10:52 AM
    • Marked as answer by ScottQ Sunday, January 27, 2013 11:53 PM
    Tuesday, January 22, 2013 5:20 PM