Apparatus and method for establishing network
First Claim
1. A method of connecting a device to a network, comprising:
- presetting a plurality of TCP/IP addresses in the device;
plugging the device into the network;
determining whether any of the preset TCP/IP addresses are usable on the network;
if the preset TCP/IP addresses are not usable, performing an address resolution protocol (ARP) request with at least one other device connected to the network or with another device having an address preset in the device;
receiving an ARP response to the ARP request from a correspondent device, the correspondent device corresponding to one of the at least one other device and the another device;
determining whether it is possible to access the network with a preset TCP/IP address having a predetermined relationship relative to a TCP/IP address included in the ARP response;
if access to the network is possible with the preset TCP/IP address having said predetermined relationship relative to a TCP/IP address included in the ARP response, establishing a network connection;
if access to the network is not possible with the preset TCP/IP address having said predetermined relationship relative to a TCP/IP address included in the ARP response, determining whether it is possible to access the network with another preset TCP/IP address;
if access to the network is possible with the another preset TCP/IP address, establishing the network connection; and
if access to the network is not possible with any preset TCP/IP address, indicating that a network connection attempt has failed.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of a method and apparatus can establish a network using pre-set IP information when a host is coupled to a network. In an embodiment of a network establishment method, ARP response information can be compared with pre-stored set information using a predetermined calculation so to decide a set, an ARP can be broadcasted to determine whether the decided set is applicable to a network, and, if a response for one or more ARP is received, the decided set can be established as a network. In another embodiment of a network establishment method, an ARP can be broadcasted using pre-stored set information, and if a response for the ARP is received, a network can be established. According to embodiments of the invention, by applying an appropriate available setting among pre-set TCP/IP settings without manually establishing a TCP/IP connection, direct connection (e.g., Plug-and-Play) of a network can be performed.
-
Citations
4 Claims
-
1. A method of connecting a device to a network, comprising:
-
presetting a plurality of TCP/IP addresses in the device; plugging the device into the network; determining whether any of the preset TCP/IP addresses are usable on the network; if the preset TCP/IP addresses are not usable, performing an address resolution protocol (ARP) request with at least one other device connected to the network or with another device having an address preset in the device; receiving an ARP response to the ARP request from a correspondent device, the correspondent device corresponding to one of the at least one other device and the another device; determining whether it is possible to access the network with a preset TCP/IP address having a predetermined relationship relative to a TCP/IP address included in the ARP response; if access to the network is possible with the preset TCP/IP address having said predetermined relationship relative to a TCP/IP address included in the ARP response, establishing a network connection; if access to the network is not possible with the preset TCP/IP address having said predetermined relationship relative to a TCP/IP address included in the ARP response, determining whether it is possible to access the network with another preset TCP/IP address; if access to the network is possible with the another preset TCP/IP address, establishing the network connection; and if access to the network is not possible with any preset TCP/IP address, indicating that a network connection attempt has failed.
-
-
2. A method of establishing a connection of a device to a network, comprising:
-
presetting a plurality of TCP/IP addresses in the device; plugging the device into the network; determining whether the network is available to the device; if the network is not available, determining whether an address resolution protocol (ARP) packet from other device already connected to the network has been received by the device; if the ARP packet from the other device has been received by the device, determining whether a TCP/IP address within the received ARP packet falls within a range of preset TCP/IP addresses; if the TCP/IP address within the received ARP packet falls within the range of preset TCP/IP addresses, establishing a detection priority order where a preset TCP/IP address closest to the TCP/IP address within the ARP packet is given a highest priority; performing an ARP request process with at least one other device connected to the network or with another device with preset TCP/IP addresses in accordance with the detection priority order; receiving an ARP response to the ARP request process from a correspondent device, the correspondent device corresponding to one of the at least one other device and the another device; determining whether it is possible to access the network by the device with a preset TCP/IP address having a predetermined relationship relative to a TCP/IP address included in the ARP response; if access to the network is possible with the preset TCP/IP address having said predetermined relationship relative to a TCP/IP address included in the ARP response, establishing a network connection; if access to the network is not possible with the preset TCP/IP address having said predetermined relationship relative to a TCP/IP address included in the ARP response, determining whether it is possible to access the network with another preset TCP/IP address; if access to the network is possible with the another preset TCP/IP address, establishing the network connection; and if access to the network is not possible with any preset TCP/IP address, indicating that a network connection attempt has failed.
-
-
3. A computer device comprising a processor and a memory, the memory encoded with instructions configured to cause the processor to execute a method of connecting a device to a network, the method comprising:
-
presetting a plurality of TCP/IP addresses in the device; plugging the device into the network; determining whether any of the preset TCP/IP addresses are usable on the network; if the preset TCP/IP addresses are not usable, performing an address resolution protocol (ARP) request with at least one other device connected to the network or with another device having an address preset in the device; receiving an ARP response to the ARP request from a correspondent device, the correspondent device corresponding one of the at least one other device and the another device; determining whether it is possible to access the network with a preset TCP/IP address closest to a TCP/IP address included in the ARP response; if access to the network is possible with the preset TCP/IP address closest to a TCP/IP address included in the ARP response, establishing a network connection; if access to the network is not possible with the preset TCP/IP address closest to a TCP/IP address included in the ARP response, determining whether it is possible to access the network with another preset TCP/IP address; if access to the network is possible with the another preset TCP/IP address, establishing the network connection; and if access to the network is not possible with any preset TCP/IP address, indicating that a network connection attempt has failed.
-
-
4. A computer device comprising a processor and a memory, the memory encoded with instructions configured to cause the processor to execute a method of connecting a device to a network, the method comprising:
-
presetting a plurality of TCP/IP addresses in the device; plugging the device into the network; determining whether the network is available to the device; if the network is not available, determining whether an address resolution protocol (ARP) packet from other device already connected to the network has been received by the device; if the ARP packet from the other device has been received by the device, determining whether a TCP/IP address within the received ARP packet falls within a range of preset TCP/IP addresses; if the TCP/IP address within the received ARP packet falls within the range of preset TCP/IP addresses, establishing a detection priority order where a preset TCP/IP address closest to the TCP/IP address within the ARP packet is given a highest priority; performing an ARP request process with at least one other device connected to the network or with another device with preset TCP/IP addresses in accordance with the detection priority order; receiving an ARP response to the ARP request process from a correspondent device, the correspondent device corresponding one of the at least one other device and the another device; determining whether it is possible to access the network by the device with a preset TCP/IP address closest to a TCP/IP address included in the ARP response; if access to the network is possible with the preset TCP/IP address closest to a TCP/IP address included in the ARP response, establishing a network connection; if access to the network is not possible with the preset TCP/IP address closest to a TCP/IP address included in the ARP response, determining whether it is possible to access the network with another preset TCP/IP address; if access to the network is possible with the another preset TCP/IP address, establishing the network connection; and if access to the network is not possible with any preset TCP/IP address, indicating that a network connection attempt has failed.
-
Specification