WO2011116614A1 - 一种访问网络设备的方法、***及装置 - Google Patents

一种访问网络设备的方法、***及装置 Download PDF

Info

Publication number
WO2011116614A1
WO2011116614A1 PCT/CN2010/079779 CN2010079779W WO2011116614A1 WO 2011116614 A1 WO2011116614 A1 WO 2011116614A1 CN 2010079779 W CN2010079779 W CN 2010079779W WO 2011116614 A1 WO2011116614 A1 WO 2011116614A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication address
temporary communication
network device
address
temporary
Prior art date
Application number
PCT/CN2010/079779
Other languages
English (en)
French (fr)
Inventor
薛洋
徐承浩
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011116614A1 publication Critical patent/WO2011116614A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method, system and device for accessing a network device.
  • the access terminal first discovers and establishes a communication link with the network device through the search operation, that is, the access terminal searches for the network device, obtains the address information of the network device, and establishes according to the local address information and the address information of the network device.
  • IP Internet Protocol
  • one-to-many communication scenarios include: broadcast communication, or multicast communication.
  • the host in the broadcast communication mode uses "a pair of all, the communication mode, the signal sent by each host, all other hosts in the local area network can receive.
  • the scheme is simple and easy, with Strong operability, but because the range of broadcast transmission is uncontrollable, all network devices in the LAN will receive direct communication information from any other network device. As a result, information security is not guaranteed, and the load on the LAN is also increased.
  • the receiving object of the message in the multicast communication mode is limited to being a member of the multicast group, and the controllability is stronger.
  • the message of the search network device is received by all the network devices in the same multicast group, and the message for configuring or updating the information of the network device is sent and received for a single network device, which requires communication.
  • the method can provide differentiated services, and the multicast communication method cannot provide such services.
  • IM instant messaging
  • feiq although after launching a search, you can get multiple communicable objects and select one of them for peer-to-peer communication.
  • IM software does not guarantee the enforceability of operations. For example, when the access device and the network device are not on the same network segment as the local area network, that is, the IP address of the access terminal is different from the network address of the IP address of the network device.
  • the feiq is run on the access terminal of the different network segment, the local area network cannot be searched.
  • the rest of the network devices that is, the IP address of the network device cannot be obtained; or when there are conflicts between the IP addresses of multiple network devices in the LAN, there is no guarantee that all network devices with the same IP can be searched.
  • the above situation is likely to occur when multiple network devices with completely random system information are simultaneously connected to the local area network, especially when starting the architecture device, it is a problem that must be considered.
  • the current network device access process has inconvenient inefficiency, low security, and poor enforceability.
  • An embodiment of the present invention provides a method for accessing a network device, including:
  • the network device receives the multicast message sent by the access terminal in the agreed multicast group, where the multicast message includes the first temporary communication address of the local network card generated by the access terminal;
  • the network device generates a second temporary communication address of the local network card according to the first temporary communication address in the received multicast message, where the second temporary communication address is in the same network segment as the first temporary communication address; as well as
  • the network device establishes a communication link that communicates with the access terminal according to the second temporary communication address and the first temporary communication address, and returns a link establishment message to the access terminal through the communication link, so that After the access terminal receives the link setup message, accessing the network device through the communication link.
  • the present invention also provides a system for accessing a network device, including: an access terminal and at least one network device, wherein the access terminal and the network device are in an agreed multicast group, where
  • the access terminal is configured to: generate a first temporary communication address of the local network card, and send the inclusion Transmitting the multicast message of the first temporary communication address to the agreed multicast group, and after receiving the link establishment message returned by the network device in the agreed multicast group through the corresponding communication link, passing the communication link Accessing the network device;
  • the network device is configured to: generate a second temporary communication address of the local network card according to the first temporary communication address in the received multicast message, where the second temporary communication address is the same as the first temporary communication address
  • the network segment establishes a communication link with the access terminal according to the second temporary communication address and the first temporary communication address, and returns a link establishment message to the access terminal through the communication link.
  • the invention also provides an access terminal, comprising:
  • a generating unit configured to generate a first temporary communication address of the local network card
  • a communication unit configured to: send a multicast message to the agreed multicast group, where the multicast message includes the first temporary communication address, and, after receiving the network device in the agreed multicast group, After the link establishment message returned by the corresponding communication link, the network device is accessed through the communication link.
  • the invention also provides a network device, comprising:
  • a receiving unit configured to receive a multicast message sent by the accessing end in the agreed multicast group, where the multicast message includes a first temporary communication address of the local network card generated by the accessing end;
  • a generating unit configured to generate a second temporary communication address of the local network card according to the first temporary communication address in the multicast message received by the receiving unit, where the second temporary communication address and the first temporary communication address Same network segment;
  • the method for accessing the network device may search for each network device at one time, and perform communication configuration operations separately. It does not depend on whether the network device and the access end are in the same network segment, and improves the efficiency of the network device access process; and, in the process of searching and configuring the entire network device, the communication link responsible for transmitting data is bound to the temporary of both parties. Communication address, guaranteed search operation Operability and ease of use. Compared with the broadcast communication mode and the pure multicast communication mode, the access scheme provided by the embodiment of the present invention does not generate redundant communication, minimizes the load of network transmission, and improves the execution efficiency of the search operation.
  • FIG. 1 is a flowchart of accessing a network device according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of accessing a network device according to Embodiment 1 of the present invention.
  • FIG. 3 is a structural diagram of a system for accessing a network device according to an embodiment of the present invention.
  • FIG. 4 is a structural diagram of an access end according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram of a network device according to an embodiment of the present invention.
  • the network device is applied to a device in the Internet, and the information of the device needs to be configured or updated, for example, a reader/writer in a local area network.
  • the information of the device needs to be configured or updated, for example, a reader/writer in a local area network.
  • the address information of each network device that is, the IP address, can be accessed.
  • the access end may be in the same network segment as the searched network device, or the access terminal and the searched network device are in the same network segment of the local area network, and are in different network segments from the other network devices being searched.
  • the process of accessing the network device is shown in FIG. 1 , and includes:
  • Step 101 The access end generates a first temporary communication address of the local network card.
  • the access terminal determines a local network card according to the saved network connection information list, and then generates a first temporary communication address according to the set address generation scheme, and binds the first temporary communication address to the local network card.
  • the first temporary communication address includes: an IP address of the temporary communication, and a subnet mask. The first temporary communication address is different from the actual communication address of the access terminal in the local area network.
  • the network number of the IP address of the temporary communication can be directly defined. And the number of subnet masks, and the host number of the IP address of the temporary communication can also be determined by a setting algorithm.
  • the set address generation scheme includes: limiting the network number of the temporary communication IP address to the private address range, setting the number of the subnet mask to the default subnet mask number of each type of address or other subnet. The number of masks.
  • the actual IP address of the access end in the LAN is 10.86.50.6
  • the subnet mask is
  • the generated first temporary communication address includes: the IP address is 10.14.7.53, the mask is 255.255.0.0; or the generated first temporary communication address includes: IP address The ratio is 10.14.7.53 and the mask is 255.0.0.0.
  • the access end may have only one network card or multiple network cards.
  • the saved network connection information list has only one network connection information, so that the network card corresponding to the network connection information is determined as the local network card.
  • the access terminal When the access terminal starts up, it can obtain network connection information, and then generate and save a list of network connection information according to the network connection information.
  • Step 102 The accessing end sends a multicast message to the agreed multicast group, where the multicast message includes the first temporary communication address. Both the access end and the network device being searched have joined a contracted multicast group, so that each network device in the agreed-upon group can receive the multicast message sent by the access terminal.
  • Step 103 The network device in the multicast group is configured to generate a second temporary communication address of the local network card according to the first temporary communication address in the received multicast message.
  • the second temporary communication address and the first temporary communication address are in the same network segment, that is, the second temporary communication address and the first temporary communication address have the same network number.
  • Each network device in the agreed multicast group can receive the multicast message, so that each network device decodes the received multicast message to obtain the first temporary communication address, and then each network device is configured according to The set address generation scheme generates a second temporary communication address corresponding to the same network segment as the first temporary communication address, and binds the second temporary communication address to the local network card.
  • the second temporary communication address also includes: an IP address of the temporary communication, and a subnet mask.
  • directly defining the network number of the temporary communication IP address in the second temporary communication address is consistent with the network number of the temporarily communicated IP address in the first temporary communication address, and directly defining the subnet mask The number can also be determined by a setting algorithm to determine the host number of the IP address of the temporary communication.
  • the IP address of the temporary communication generated by each network device has independence and complete randomness, and there is a possibility that the temporary IP address generated by two or more network devices may collide, and the probability is received in the local area network.
  • the number of multicast network devices is positively correlated and negatively related to the number of IP addresses in the LAN segment. For example: 253 network devices are connected to a Class C LAN segment, and the default subnet mask is used by the access terminal to be 24 bits, that is, 255.255.255.0.
  • the subnet mask of the IP address of the temporary communication of the access terminal can relax to 8 bits, that is, 255.0.0.0.
  • the IP address of the temporary communication randomly generated by the network device is also 255.0. .0.0 is used as the subnet mask, so that it can be hashed within the range of 256 3 , and the probability of generating temporary IP collisions is negligible under the order of hundreds of network devices. Therefore, in the preferred embodiment, the subnet mask can be defined as 255.0.0.0 in the set address generation scheme.
  • Step 104 The network device establishes a corresponding communication link with the access terminal according to the second temporary communication address and the first temporary communication address.
  • Each network device in the multicast group has generated a second temporary communication address of the local network card, so that each network device uses the second temporary communication address as a source address and the first temporary communication address as a target address.
  • a communication link between the network device and the access terminal Here, you can use the Transmission Control Protocol (TCP) chain-building operation.
  • TCP Transmission Control Protocol
  • Step 105 The network device returns a link establishment message to the access terminal through the corresponding communication link.
  • the link establishment message includes: an actual communication address of the network device in the local area network and other related information.
  • the network device After three times of handshake, the network device establishes a communication link with the access terminal, and returns a link establishment message through the communication link.
  • the link setup message includes: the actual communication address of the network device in the local area network, that is, the link establishment message includes the actual IP address and subnet mask of the network device in the local area network.
  • the link establishment message further includes information such as a network device identification number, a network device media access control (MAC) address, and a network device serial number.
  • Step 106 After receiving the link establishment message, the accessing end accesses the network device through the corresponding communication link.
  • the access end After receiving the link setup message, the access end obtains the actual communication address of the corresponding network device and other related information. Therefore, the access terminal operates on the GUI interface and accesses the network device through the corresponding communication link.
  • information may be read from the network device, or information may be written to the network device, thereby implementing configuration or update of the network device information.
  • the network device receives the multicast message sent by the access end in the agreed multicast group, where the multicast message includes the local generated by the access end. a first temporary communication address of the network card; then, the network device generates a second temporary communication address of the local network card according to the first temporary communication address in the received multicast message, wherein the second temporary communication address is in communication with the first temporary communication address The address is in the same network segment; finally, the network device establishes a communication link with the access terminal according to the second temporary communication address and the first temporary communication address, and returns a link establishment message to the access terminal through the communication link, so that the access terminal After receiving the link setup message, the network device is accessed through the communication link.
  • the communication link established between the network device and the access terminal is in a long connection mode, and the access terminal and the network device periodically send heartbeat signals to independently maintain the communication link.
  • the access terminal When the access terminal exits or the network device is removed from the local area network, the corresponding communication link will be broken. In addition, when the access end re-initiates the search operation, it will actively disconnect all current communication links established with the network device. When the network device receives the new multicast search information, the current link is disconnected and the current second temporary communication address is deleted. Therefore, in the embodiment of the present invention, the access terminal receives the chain returned by the network device through the corresponding communication link. After the road establishes the message, it includes:
  • the corresponding network device deletes the corresponding second temporary communication address, where the communication link is disconnected, including: the access terminal or the network device exits the agreed multicast group, and the access terminal resends the multicast message.
  • the network device receives one or more of the new multicast messages.
  • the system for accessing the network device includes: the access terminal and the at least one network device, and the access terminal and all the network devices are in the agreed multicast group, so that the process of accessing the network device includes:
  • the access end generates a first temporary communication address of the local network card, and sends a multicast message to the agreed multicast.
  • the network device in the multicast group generates a second temporary communication address of the local network card according to the first temporary communication address in the received multicast message, where the second temporary communication address is in the same network segment as the first temporary communication address;
  • the network device After the network device establishes a communication link with the access terminal according to the second temporary communication address and the first temporary communication address, returning a link establishment message to the access terminal through the communication link;
  • the access terminal After receiving the link establishment message, the access terminal accesses the network device through the communication link.
  • the network device is a reader/writer, and the access terminal and the reader/writer 1 reader/writer 2 reader/writer 3 jointly access the network, wherein the LAN gateway is 10.86.10.1; the IP address of the access terminal is
  • the mask is 255.255.255.0, the gateway is 10.86.10.1; the IP address of reader 2 is 10.86.10.3, the mask is 255.255.255.0, the gateway is 10.86.10.1, ie reader 2 and read and write
  • the communication address of the device 1 is exactly the same; the IP address of the reader 3 is 20.86.10.2, the mask is 255.255.255.0, and the gateway is 20.86.10.1, that is, the access terminal and the reader/writer 3 are in different network segments.
  • the purpose of the visit is to obtain at the same time
  • the communication configuration information of the three readers is changed separately.
  • the process of accessing the reader includes:
  • Step 201 The access end acquires the local network connection, obtains the only available network card, and randomly generates the first temporary communication address according to the set address generation scheme.
  • the network address of the IP address defining the temporary communication in the set address generation scheme is 10, and the netmask is 255.0.0.0. Therefore, among the generated first temporary communication addresses, the IP address is 10.14.3.69, and the subnet is masked. The code is 255.0.0.0. Add the first temporary mailing address to the only available network card.
  • the embodiment of the present invention does The method of setting the host number of the IP address of the temporary communication is not limited to this, and other similar methods are possible.
  • Step 202 After the local end network card is bound, the access terminal sends a multicast message to the multicast group 230.2.2.2.
  • the multicast message includes the first temporary communication address, the IP address is 10.14.3.69, and the subnet mask is 255.0. .0.0, and after that, locally listen to the pre-agreed reader link destination port (4088).
  • Step 203 Each reader receives a multicast message, and generates a second temporary communication address of the local network card according to the first temporary communication address of the multicast message, where each second temporary communication address is associated with the first temporary The communication address is on the same network segment.
  • the multicast address itself belongs to the class D address. After the multicast member joins, it can receive the message in the group. This is independent of whether the address is repeated across network segments. Therefore, all three readers receive the multicast message sent by the access terminal. After decoding the message body, the first temporary communication address of the access terminal is obtained, and the second temporary communication address of the same network segment is generated respectively. And add to their respective network card.
  • the network address of the IP address defining the temporary communication in the set address generation scheme is 10, and the netmask is 255.0.0.0. Therefore, among the second temporary communication addresses generated by the reader/writer 1, the IP address: 10.251.33.81 Subnet mask: 255.0.0.0; The second temporary communication address generated by reader/writer 2, IP address: 10.41.30.159, subnet mask: 255.0.0.0; second temporary communication address generated by reader/writer 3. Medium, IP address: 10.70.20.50, Subnet mask: 255.0.0.0.
  • Step 204 After each reader is bound to the second temporary communication address generated by the local machine, the first temporary communication address is used as a target, a communication link with the access terminal is established, and a link establishment message is sent.
  • the TCP chain-building operation is performed with the target of 10.14.3.69: 4088.
  • the reader reports the link establishment message.
  • the link establishment includes: information about the communication configuration that is in effect on the local machine, for example: the actual IP address and subnet mask of the reader in the local area network, the device identification number, the device MAC address, and the device serial number. Taking the reader 1 as an example, the reported content is 10.86.10.3 and the mask is 255.255.255.0, instead of 10.251.33.81 bound by the TCP link.
  • Step 205 After the access terminal listens to the link establishment message from port 4088, it decodes and displays it on the GUI interface to complete a successful reader search operation.
  • the access GUI does not display any information about the temporary communication addresses of both parties, so that the operator does not completely see the temporary communication addresses of both parties.
  • Interview After the request end the configuration message is sent and the reader returns the configuration response message, which is transmitted through the established communication link.
  • the corresponding reader/writer when the established communication link is disconnected, the corresponding reader/writer will delete the second temporary communication address of the local network card.
  • the reader/writer 2 When the reader/writer 2 exits the local area network, the reader/writer 2 deletes the second temporary communication address in the local network card, that is, the IP address: 10.41.30.159, subnet mask: 255.0.0.0 j divided.
  • a system for accessing a network device includes: an access terminal 100 and at least one network device 200, where the access terminal 100 and all network devices 200 are in an agreed-upon group, where
  • the access terminal 100 is configured to generate a first temporary communication address of the local network card, and send the multicast message to the agreed multicast group, and, after receiving the network device 200 in the agreed multicast group, return through the corresponding communication link. After the link setup message, the network device 200 is accessed through the communication link.
  • the network device 200 is configured to generate a second temporary communication address of the local network card according to the first temporary communication address in the received multicast message, where the second temporary communication address is in the same network segment as the first temporary communication address And establishing, according to the second temporary communication address and the first temporary communication address, a communication link that communicates with the access terminal 100, and returns a link establishment message to the access terminal 100 through the communication link.
  • the access terminal 100 determines a local network card according to the saved network connection information list, generates a first temporary communication address according to the set address generation scheme, and binds the first temporary communication address to the local network card.
  • the access terminal 100 is further configured to acquire network connection information of the access terminal 100 at startup, and generate and save a network connection information list according to the network connection information.
  • the network device 200 is configured to generate the second temporary communication address by: performing a decoding operation on the multicast message, acquiring a first temporary communication address, and generating and the first according to the set address generation scheme.
  • the temporary communication address is the second temporary communication address of the network segment, and the second temporary communication address is bound to the local network card.
  • the network device 200 is further configured to delete the corresponding second temporary communication address after the communication link is disconnected, wherein the disconnection of the communication link comprises: the access terminal 100 or the network device 200 exiting
  • the multicast group is configured, the access terminal 100 resends the multicast message, and the network device 200 receives one or more of the new multicast messages.
  • the access end in the embodiment of the present invention includes: a generating unit 410 and a communication unit.
  • the generating unit 410 is arranged to generate a first temporary communication address of the local network card.
  • the communication unit 420 is configured to send a multicast message to the agreed multicast group, where the multicast message includes the first temporary communication address, and after receiving the link establishment message returned by the network device through the corresponding communication link Accessing the network device through the communication link.
  • the generating unit 410 includes:
  • a subunit is determined which is arranged to determine a local network card based on the saved list of network connection information.
  • the binding subunit is configured to generate a first temporary communication address according to the set address generation scheme, and bind the first temporary communication address to the local network card determined by the determining subunit.
  • the access side also includes:
  • An obtaining unit configured to obtain network connection information of the accessing end when starting.
  • a saving unit configured to generate and save a list of network connection information according to the network connection information.
  • the network device in the embodiment of the present invention includes: a receiving unit 510, a generating unit 520, and a link establishing unit 530.
  • the receiving unit 510 is configured to receive the multicast message sent by the accessing end in the agreed multicast group, where the multicast message includes the first temporary communication address of the local network card generated by the accessing end.
  • a generating unit 520 configured to generate a second temporary communication address of the local network card according to the first temporary communication address in the received multicast message, where the second temporary communication address is the same as the first temporary communication address network segment.
  • the generating unit 510 includes:
  • Decoding a subunit configured to perform a decoding operation on the multicast message to obtain a first temporary communication address
  • a binding subunit configured to generate a second temporary communication address in the same network segment as the first temporary communication address according to the set address generation scheme, and bind the second temporary communication address to the local network card .
  • the network device also includes:
  • a deleting unit configured to delete the second temporary communication address after the communication link is disconnected, wherein the disconnecting the communication link comprises: the accessing end or the network device exiting the agreed multicast group The access end resends the multicast message, and the network device receives one or more of the new multicast messages.
  • the access end generates a first temporary communication address of the local network card, and sends a multicast message to the agreed multicast group, where each network device in the multicast group receives the first message according to the received multicast message.
  • a temporary communication address generating a second temporary communication address of the corresponding local network card, wherein each second temporary communication address is in the same network segment as the first temporary communication address; and each network device is in accordance with the corresponding second temporary
  • the method for accessing the network device can search for each network device at a time and perform communication configuration operations separately, without relying on Whether the network device and the access end are in the same network segment; For the access terminal that accesses different networks by multiple network cards, the network card can be selected for the limited search operation to facilitate group management of the network device.
  • the communication link responsible for transmitting data is bound to the temporary communication address of both parties, and only the query and configuration data transmission between the access terminal and the network device is performed, and the operation is performed. After the completion, the communication link and temporary communication address are cleared. After the network device has established a communication link with the access terminal and is performing a business operation, the two operations are performed in parallel through respective communication links, thereby ensuring the operability and ease of use of the search operation.
  • the access scheme provided by the embodiment of the present invention is not compared with the broadcast communication mode and the pure multicast communication mode. Redundant traffic is generated, which minimizes the load on the network transmission and improves the efficiency of the search operation.
  • the present invention can search for each network device at a time and perform communication configuration operations separately, and does not depend on whether the network device and the access end are in the same network segment, thereby improving the efficiency of the network device access process;
  • the communication link responsible for transmitting the data is bound to the temporary communication address of the two parties, which ensures the operability and ease of use of the search operation.
  • the access provided by the embodiment of the present invention is provided. The solution does not generate redundant traffic, which minimizes the load on the network transmission and improves the efficiency of the search operation.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种访问网络设备的方法,用以提高现有技术中网络设备访问过程的效率,安全性,以及执行性。该方法包括:网络设备接收约定组播组中的访问端发送的组播消息,其中,所述组播消息中包括访问端生成的本地网卡的第一临时通讯地址;所述网络设备根据接收到的组播消息中的第一临时通讯地址,生成本地网卡的第二临时通讯地址,其中,所述第二临时通讯地址与所述第一临时通讯地址同网段;所述网络设备根据所述第二临时通讯地址,以及第一临时通讯地址建立与所述访问端通讯的通讯链路,并通过所述通讯链路向所述访问端返回链路建立消息,使所述访问端接到所述链路建立消息后,通过所述通讯链路访问所述网络设备。

Description

一种访问网络设备的方法、 ***及装置
技术领域
本发明涉及网络通讯技术领域, 特别涉及一种访问网络设备的方法、 系 统及装置。
背景技术
经常需要对局域网中的一些网络设备的信息进行配置或更新等操作。 例 如: 对新加入局域网中的读写器进行信息的配置。 一般用户可以通过访问端 的图形用户界面(Graphical User Inferface, GUI )对网络设备进行访问, 实现 对网络设备的维护和更新。 访问端一般为本地计算机。 该访问过程包括: 访 问端先通过搜索操作发现网络设备并与之建立通讯链路, 即访问端搜索网络 设备, 获取网络设备的地址信息, 并根据本地的地址信息以及网络设备的地 址信息, 建立与该网络设备的通讯链路, 其中, 该地址一般为互联网协议 ( Internet Protocol, IP )地址, 然后通过该通讯链路对网络设备进行访问。 其 中, 访问端与网络设备之间的通讯过程为一对多的通讯场景。
目前, 一对多的通讯场景包括: 广播通讯方式, 或组播通讯方式。 其中, 广播通讯方式中的主机之间釆用 "一对所有,,的通讯模式, 每一台主机发出的 信号, 该局域网中其他的所有主机都可以接收到。 该方案简便易行, 具有较 强的可操作性, 但是由于广播发送的范围不可控, 导致局域网内所有网络设 备都会接收到其他任一网络设备直接的通讯信息, 这样, 信息安全没有保障, 此外也加重了局域网的负荷。
与广播通讯相比, 组播通讯方式中的消息的接收对象限定为加入了组播 组的成员, 可控性更强。 但是在进行网络设备访问的过程中, 搜索网络设备 的消息的接收对象为同一组播组中的所有网络设备, 配置或更新网络设备的 信息的消息却是针对单个网络设备进行收发, 这要求通讯方式能提供差异化 服务, 而组播通讯方式无法提供该种服务。
另外, 对于局域网内的一些即时通讯(Instant Messaging, IM )类软件, 例如: feiq, 虽然在发起一次搜索后, 可以获取到多个可通讯对象, 并选择其 中一个对象进行点对点通讯。 但是在比较复杂的网络环境下, 此类 IM软件 并不能保证操作的可执行性。 例如: 当访问端与网络设备不处于局域网同网 段时, 即该访问端的 IP地址与网络设备的 IP地址的网络号不同, 在该异网 段的访问端上运行 feiq时, 不能搜索到局域网内其余网络设备, 即不能获取 网络设备的 IP地址; 或者局域网内存在多个网络设备 IP地址冲突的情况下, 也无法保证可以搜索到全部同 IP的网络设备。 以上情况在多个***信息完全 随机的网络设备同时接入局域网的情况下是有可能出现的, 特别是在开局架 构设备时, 更是必须要考虑到的问题。
综上所述, 目前的网络设备访问过程, 存在着效率差, 安全性低, 以及 可执行性差等不便。
发明内容
本发明的目的是提供一种访问网络设备的方法, 用以提高现有技术中网 络设备访问过程的效率, 安全性, 以及执行性。
本发明实施例提供一种访问网络设备的方法, 包括:
网络设备接收约定组播组中的访问端发送的组播消息, 其中, 所述组播 消息中包括访问端生成的本地网卡的第一临时通讯地址;
所述网络设备根据接收到的组播消息中的第一临时通讯地址, 生成本地 网卡的第二临时通讯地址, 其中, 所述第二临时通讯地址与所述第一临时通 讯地址同网段; 以及
所述网络设备根据所述第二临时通讯地址, 以及第一临时通讯地址建立 与所述访问端通讯的通讯链路, 并通过所述通讯链路向所述访问端返回链路 建立消息, 使所述访问端接到所述链路建立消息后, 通过所述通讯链路访问 所述网络设备。
本发明还提供一种访问网络设备的***, 包括: 访问端和至少一个网络 设备, 所述访问端和网络设备处于约定组播组中, 其中,
所述访问端设置成: 生成本地网卡的第一临时通讯地址, 并发送包含所 述第一临时通讯地址的组播消息到约定组播组, 以及, 在接收到所述约定组 播组中的网络设备通过对应的通讯链路返回的链路建立消息后, 通过该通讯 链路访问所述网络设备;
所述网络设备设置成: 根据接收到的组播消息中的第一临时通讯地址, 生成本地网卡的第二临时通讯地址, 其中, 所述第二临时通讯地址与所述第 一临时通讯地址同网段, 根据所述第二临时通讯地址和第一临时通讯地址建 立与所述访问端通讯的通讯链路, 并通过该通讯链路向所述访问端返回链路 建立消息。
本发明还提供一种访问端, 包括:
生成单元, 其设置成生成本地网卡的第一临时通讯地址; 以及
通信单元, 其设置成: 发送组播消息到约定组播组, 其中, 所述组播消 息中包括所述第一临时通讯地址, 以及, 在接收到所述约定组播组中的网络 设备通过对应的通讯链路返回的链路建立消息后, 通过该通讯链路访问所述 网络设备。
本发明还提供一种网络设备, 包括:
接收单元, 其设置成接收约定组播组中的访问端发送的组播消息, 其中, 所述组播消息中包括访问端生成的本地网卡的第一临时通讯地址;
生成单元, 其设置成根据接收单元接收到的组播消息中的第一临时通讯 地址, 生成本地网卡的第二临时通讯地址, 其中, 所述第二临时通讯地址与 所述第一临时通讯地址同网段; 以及
链路建立单元, 其设置成根据所述第二临时通讯地址, 以及第一临时通 讯地址建立与所述访问端通讯的通讯链路, 并通过所述通讯链路向所述访问 端返回链路建立消息。 本发明实施例中, 局域网内接入多个任意 IP地址的网络设备后, 釆用本 发明实施例所述的访问网络设备的方法可以一次性搜索到各个网络设备, 并 分别进行通讯配置操作, 并不依赖于网络设备与访问端是否处于同一网段, 提高网络设备访问过程的效率; 并且, 在整个对网络设备搜索和配置的过程 中, 负责传输数据的通讯链路绑定于双方的临时通讯地址, 保证了搜索操作 的可操作性和易用性。 与广播通讯模式和纯组播通讯模式相比, 本发明实施 例所提供的访问方案不会产生冗余通讯量, 最大程度上降低了网络传输的负 荷, 提高了搜索操作的执行效率。
附图概述
图 1为本发明实施例中访问网络设备的流程图;
图 2为本发明实施例一中访问网络设备的流程图;
图 3为本发明实施例中访问网络设备***的架构图;
图 4为本发明实施例中访问端的结构图;
图 5为本发明实施例中网络设备的结构图。
本发明的较佳实施方式
本发明实施例中, 网络设备为应用于互联网中的设备, 该设备的信息需 要被配置或更新, 例如: 局域网中的读写器。 局域网中有一个或多个这样的 网络设备, 对于局域网来说, 每个网络设备的地址信息, 即 IP地址, 可以是 进行访问。 其中, 访问端可以与被搜索的网络设备处于局域网同网段, 或者, 访问端与被搜索的一些网络设备处于局域网同网段, 而与被搜索的另一些网 络设备处于异网段。
本发明实施例中, 访问端与被搜索的网络设备加入约定组播组后, 访问 网络设备的过程参见图 1 , 包括:
步骤 101 : 访问端生成本地网卡的第一临时通讯地址。
访问端根据保存的网络连接信息列表, 确定一个本地网卡, 然后, 根据 设定的地址生成方案, 生成第一临时通讯地址, 并将该第一临时通讯地址与 所述本地网卡进行绑定。其中,第一临时通讯地址包括: 临时通讯的 IP地址, 以及子网掩码。 第一临时通讯地址与访问端在局域网中实际通讯地址不同。
在设定的地址生成方案中, 可以直接定义临时通讯的 IP地址的网络号, 以及子网掩码数 ,还可以通过一个设定算法确定临时通讯的 IP地址的主机号。 其中, 设定的地址生成方案包括: 将临时通讯的 IP地址的网络号限定为私有 地址范围, 将子网掩码数设定为各类地址的默认的子网掩码数或者其他的子 网掩码数。
例如: 访问端在局域网中的实际 IP 地址为 10.86.50.6 , 子网掩码为
255.255.255. 0, 那根据设定的地址生成方案, 生成的第一临时通讯地址包括: IP地址为 10.14.7.53 ,掩码为 255.255.0.0;或者生成的第一临时通讯地址包括: IP地址为 10.14.7.53 , 掩码为 255.0.0.0。
访问端可能只有一个网卡, 也可能有多个网卡。 当访问端只有一个网卡 时, 保存的网络连接信息列表也只有一个网络连接信息, 这样将该网络连接 信息对应的网卡确定为本地网卡。 当访问端有多个网卡时, 则要在保存的网 络连接信息列表中选择一个网络连接信息, 将该网络连接信息对应的网卡确 定为本地网卡。
访问端在启动时, 即可以获取网络连接信息, 然后, 根据该网络连接信 息, 生成并保存网络连接信息列表。
步骤 102: 访问端发送组播消息到约定组播组, 其中, 组播消息中包括 第一临时通讯地址。 访问端与被搜索的网络设备都加入了一个约定组播组, 这样, 该约定组 播组中的每个网络设备都能收到访问端发送的组播消息。
步骤 103: 约定组播组中的网络设备根据接收到的组播消息中的第一临 时通讯地址, 生成本地网卡的第二临时通讯地址。 其中, 第二临时通讯地址 与第一临时通讯地址同网段, 即第二临时通讯地址与第一临时通讯地址具有 相同的网络号。
约定组播组中的每个网络设备都可以接收到组播消息, 这样, 每个网络 设备对各自接收到的组播消息进行解码操作, 获取第一临时通讯地址, 然后, 每个网络设备根据设定的地址生成方案, 生成对应的与该第一临时通讯地址 同网段的第二临时通讯地址,并将该第二临时通讯地址与本地网卡进行绑定。
这里,第二临时通讯地址同样包括: 临时通讯的 IP地址, 以及子网掩码。 在设定的地址生成方案中 , 直接定义第二临时通讯地址中临时通讯的 IP地址 的网络号与第一临时通讯地址中临时通讯的 IP地址的网络号一致, 并可以直 接定义子网掩码数,还可以通过一个设定算法确定临时通讯的 IP地址的主机 号。
本发明实施例中,各个网络设备生成临时通讯的 IP地址具有独立性和完 全随机性,存在两个以上的网络设备生成的临时 IP地址也有发生冲突的可能 性, 这一概率与局域网内收到组播的网络设备数目正相关, 与局域网段 IP地 址数目负相关。 例如: 一个 C类局域网段内接入 253台网络设备, 访问端釆 用默认的子网掩码, 为 24位, 即 255.255.255.0, 则此时网络设备生成的临时 通讯的 IP地址的冲突概率为 100%。 因此, 为解决此问题, 可以放宽访问端 临时通讯的 IP地址的子网掩码, 将其改为 8位, 即 255.0.0.0, 则此时网络设 备随机生成的临时通讯的 IP地址也以 255.0.0.0作为子网掩码,这样,可以在 2563范围内进行散列, 上百个网络设备的数量级下, 生成临时 IP冲突的概率 可以忽略不计。 因此, 较佳实施例中, 设定的地址生成方案中可以定义子网 掩码为 255.0.0.0。
步骤 104: 网络设备根据第二临时通讯地址, 以及第一临时通讯地址建 立对应的与访问端通讯的通讯链路。
组播组中的每个网络设备都已生成了本地网卡的第二临时通讯地址, 这 样, 每个网络设备以该第二临时通讯地址为源地址, 以第一临时通讯地址为 目标地址, 建立该网络设备与访问端间通讯的通讯链路。 这里, 可以釆用传 输控制协议 ( Transmission Control Protocol, TCP )建链操作。
步骤 105: 网络设备通过对应的通讯链路向访问端返回链路建立消息。 其中, 链路建立消息中包括: 网络设备在局域网中实际通讯地址以及其他的 相关信息。
网络设备经过三次握手后, 与访问端建立通讯链路成功, 通过该通讯链 路返回链路建立消息。 链路建立消息中包括: 网络设备在局域网中实际通讯 地址, 即链路建立消息包括了该网络设备在局域网中的实际 IP地址和子网掩 码。 当然, 链路建立消息中还包括了网络设备标识号、 网络设备媒体访问控 制 (Media Access Control, MAC )地址、 网络设备序列号等信息。 步骤 106: 访问端接收到链路建立消息后, 通过对应的通讯链路访问网 络设备。
访问端接收到链路建立消息后, 获取到了对应网络设备的实际通讯地址 以及其他的相关信息, 因此, 在 GUI界面上操作, 通过对应的通讯链路访问 网络设备。 这里, 可以从网络设备中读取信息, 也可以向网络设备写入信息, 从而实现了网络设备信息的配置或更新。
因此, 本发明实施例中, 访问端与网络设备加入约定组播组中后, 网络 设备接收约定组播组中的访问端发送的组播消息, 其中, 组播消息中包括访 问端生成的本地网卡的第一临时通讯地址; 然后, 网络设备根据接收到的组 播消息中的第一临时通讯地址, 生成本地网卡的第二临时通讯地址, 其中, 该第二临时通讯地址与第一临时通讯地址同网段; 最后, 网络设备根据第二 临时通讯地址, 以及第一临时通讯地址建立与访问端通讯的通讯链路, 并通 过该通讯链路向访问端返回链路建立消息, 使访问端接到链路建立消息后, 通过该通讯链路访问网络设备。
本发明实施例中, 网络设备与访问端建立的通讯链路为长连接模式, 访 问端和网络设备各自周期性发送心跳信号, 独立维护通讯链路。
当访问端退出或网络设备从局域网内移除, 相应的通讯链路会断链; 此 夕卜, 当访问端重新发起搜索操作时, 会主动断开当前所有与网络设备建立的 通讯链路, 网络设备收到新的组播搜索信息时, 断开当前链路并删除当前的 第二临时通讯地址, 因此, 本发明实施例中, 访问端接收到网络设备通过对 应的通讯链路返回的链路建立消息后, 包括:
当通讯链路断开后, 对应的网络设备删除对应的第二临时通讯地址, 其 中, 通讯链路断开包括: 访问端或网络设备退出所述约定组播组, 访问端重 新发送组播消息, 网络设备接收到新的组播消息中的一种或多种。
本发明实施例中, 访问网络设备的***, 包括: 访问端和至少一个网络 设备, 访问端和所有的网络设备处于约定组播组中, 这样, 访问网络设备的 过程包括:
访问端生成本地网卡的第一临时通讯地址, 并发送组播消息到约定组播 约定组播组中的网络设备根据接收到的组播消息中的第一临时通讯地 址, 生成本地网卡的第二临时通讯地址, 其中, 第二临时通讯地址与第一临 时通讯地址同网段;
网络设备根据第二临时通讯地址, 以及第一临时通讯地址建立与访问端 通讯的通讯链路后, 通过该通讯链路向访问端返回链路建立消息;
访问端接收到链路建立消息后, 通过该通讯链路访问网络设备。
下面结合说明书附图对本发明实施例作进一步详细描述。
实施例一, 本实施例中, 网络设备为读写器, 访问端和读写器 1读写器 2读写器 3共同接入网络,其中局域网网关为 10.86.10.1 ; 访问端的 IP地址为
10.86.10.2, 掩码为 255.255.255.0, 网关为 10.86.10.1 ; 读写器 1的 IP地址为
10.86.10.3 , 掩码为 255.255.255.0, 网关为 10.86.10.1 ; 读写器 2的 IP地址为 10.86.10.3 , 掩码为 255.255.255.0, 网关为 10.86.10.1 , 即读写器 2与读写器 1 的通讯地址完全相同;读写器 3的 IP地址为 20.86.10.2,掩码为 255.255.255.0, 网关为 20.86.10.1 , 即访问端与读写器 3处于异网段。访问目的是同时获取到
3台读写器的通讯配置信息, 并且分别对其进行^ ί 改。
访问端, 以及读写器接入局域网后, 加入预先约定组播组进行注册, 此 处约定组播组 IP为 230.2.2.2。 参见图 2, 访问读写器的过程包括:
步骤 201 : 访问端获取本机网络连接, 获取到唯一可用网卡, 并根据设 定的地址生成方案, 随机生成第一临时通讯地址。
这里,设定的地址生成方案中定义临时通讯的 IP地址的网络号为 10, 网 掩码为 255.0.0.0, 因此, 生成的第一临时通讯地址中, I P地址为 10.14.3.69, 子网掩码为 255.0.0.0。 将该第一临时通讯地址添加至唯一可用的网卡。
其中, 可以通过一个设定算法确定临时通讯的 IP地址的主机号, 例如: 主机号形式若为 A.B.C, 让八、 B、 C各自在 0~255间随机取个整数, 若取到 的 3个数均是 0, 则将 C=C+2, A、 B再各自重新取一次, ABC三个整数构 成 A.B.C主机号; 若 ABC第一次随机取到的均是 255, 则 C=C-2,, A、 B再 各自重新取一次, ABC三个整数构成 A.B.C主机号。 当然, 本发明实施例确 定临时通讯的 IP地址的主机号的方法不限于此, 其他类似的方法都可以。 步骤 202: 访问端进行本机网卡绑定后, 向组播组 230.2.2.2发送组播消 息, 组播消息中包括了第一临时通讯地址, IP地址为 10.14.3.69, 子网掩码为 255.0.0.0, 并在此之后, 本地监听事先约定的读写器建链目标端口 (4088 ) 。
步骤 203: 每个读写器接收组播消息, 并根据组播消息的第一临时通讯 地址, 生成本地网卡的第二临时通讯地址, 其中, 每个第二临时通讯地址与 所述第一临时通讯地址同网段。
组播地址本身属于 D类地址, 组播成员加入后可以接收到组内消息, 这 与是否跨网段, 地址是否重复无关。 因此, 3 个读写器都会收到访问端发送 的组播消息, 对消息体进行解码操作后, 获取到访问端的第一临时通讯地址, 分别生成与之同网段的第二临时通讯地址, 并添加至各自的网卡。
这里,设定的地址生成方案中定义临时通讯的 IP地址的网络号为 10, 网 掩码为 255.0.0.0, 因此, 读写器 1 生成的第二临时通讯地址中, IP地址: 10.251.33.81 , 子网掩码: 255.0.0.0; 读写器 2生成的第二临时通讯地址中, IP地址: 10.41.30.159, 子网掩码: 255.0.0.0; 读写器 3生成的第二临时通讯 地址中, IP地址: 10.70.20.50, 子网掩码: 255.0.0.0。
步骤 204: 每个读写器绑定本机生成的第二临时通讯地址后, 以第一临 时通讯地址为目标, 建立与访问端的通讯链路, 并上 ^艮链路建立消息。
这里, 读写器绑定本机生成的第二临时通讯地址后, 以 10.14.3.69: 4088 为目标进行 TCP建链操作, 经 3次握手建立通讯链成功后, 读写器上报链路 建立消息。 该链路建立消包括: 本机正在生效的通讯配置相关信息, 例如: 该读写器在局域网中的实际 IP地址和子网掩码, 设备标识号、 设备 MAC地 址、 以及设备序列号等信息。 以读写器 1为例, 上报内容为 10.86.10.3 , 掩码 255.255.255.0, 而不是 TCP建链所绑定的 10.251.33.81。
步骤 205: 访问端从 4088端口监听到链路建立消息后, 进行解码并显示 在 GUI界面, 完成一次成功的读写器搜索操作。
在上述搜索、 建立通讯链路的过程中, 访问端 GUI不会显示任何有关双 方临时通讯地址的信息, 这样, 操作者完全不可见双方的临时通讯地址。 访 问端之后下发配置消息以及读写器返回配置响应消息均通过建立的通讯链路 传输。
当然, 本发明实施例中, 当建立的通讯链路断开后, 对应的读写器会将 本地网卡的第二临时通讯地址删除。 例如: 读写器 2退出了局域网, 则读写 器 2将本地网卡中的第二临时通讯地址删除, 即将 IP地址: 10.41.30.159, 子 网掩码: 255.0.0.0 j除。
参见图 3 , 本发明实施例中, 访问网络设备的***, 包括: 访问端 100 和至少一个网络设备 200, 所述访问端 100和所有网络设备 200处于约定组 播组中, 其中,
访问端 100设置成生成本地网卡的第一临时通讯地址, 并发送组播消息 到约定组播组, 以及, 在接收到所述约定组播组中的网络设备 200通过对应 的通讯链路返回的链路建立消息后, 通过该通讯链路访问所述网络设备 200。
网络设备 200设置成根据接收到的组播消息中的第一临时通讯地址, 生 成本地网卡的第二临时通讯地址, 其中, 所述第二临时通讯地址与所述第一 临时通讯地址同网段, 并根据所述第二临时通讯地址和第一临时通讯地址建 立与所述访问端 100通讯的通讯链路, 通过该通讯链路向所述访问端 100返 回链路建立消息。
访问端 100根据保存的网络连接信息列表, 确定一个本地网卡, 根据设 定的地址生成方案, 生成第一临时通讯地址, 并将该第一临时通讯地址与所 述本地网卡进行绑定。
访问端 100还设置成在启动时, 获取该访问端 100的网络连接信息, 并 根据所述网络连接信息, 生成并保存网络连接信息列表。
网络设备 200是设置成通过如下方式生成所述第二临时通讯地址: 对所 述组播消息进行解码操作, 获取第一临时通讯地址, 并根据设定的地址生成 方案, 生成与所述第一临时通讯地址同网段的第二临时通讯地址, 并将所述 第二临时通讯地址与本地网卡进行绑定。
网络设备 200还设置成当所述通讯链路断开后, 删除对应的第二临时通 讯地址, 其中, 通讯链路断开包括: 所述访问端 100或网络设备 200退出所 述约定组播组, 所述访问端 100重新发送组播消息, 所述网络设备 200接收 到新的组播消息中的一种或多种。
参见图 4, 本发明实施例中的访问端, 包括: 生成单元 410和通信单元
420。
生成单元 410设置成生成本地网卡的第一临时通讯地址。
通信单元 420设置成发送组播消息到约定组播组, 其中, 所述组播消息 中包括所述第一临时通讯地址, 并接收到网络设备通过对应的通讯链路返回 的链路建立消息后, 通过该通讯链路访问所述网络设备。
其中, 生成单元 410包括:
确定子单元, 其设置成根据保存的网络连接信息列表, 确定一个本地网 卡。
绑定子单元, 其设置成根据设定的地址生成方案, 生成第一临时通讯地 址, 并将该第一临时通讯地址与确定子单元确定的本地网卡进行绑定。
该访问端还包括:
获取单元, 其设置成在启动时, 获取该访问端的网络连接信息。
保存单元, 其设置成根据所述网络连接信息, 生成并保存网络连接信息 列表。
参见图 5 , 本发明实施例中的网络设备, 包括: 接收单元 510, 生成单元 520和链路建立单元 530。
接收单元 510 , 其设置成接收约定组播组中的访问端发送的组播消息, 其中, 所述组播消息中包括访问端生成的本地网卡的第一临时通讯地址。
生成单元 520, 其设置成根据接收到的组播消息中的第一临时通讯地址, 生成本地网卡的第二临时通讯地址, 其中, 所述第二临时通讯地址与所述第 一临时通讯地址同网段。
链路建立单元 530 , 其设置成根据所述第二临时通讯地址, 以及第一临 时通讯地址建立与所述访问端通讯的通讯链路, 并通过所述通讯链路向所述 访问端返回链路建立消息。 生成单元 510包括:
解码子单元, 其设置成对所述组播消息进行解码操作, 获取第一临时通 讯地址;
绑定子单元, 其设置成根据设定的地址生成方案, 生成与所述第一临时 通讯地址同网段的第二临时通讯地址, 并将所述第二临时通讯地址与本地网 卡进行绑定。
该网络设备还包括:
删除单元, 其设置成当所述通讯链路断开后, 删除所述第二临时通讯地 址, 其中, 所述通讯链路断开包括: 所述访问端或网络设备退出所述约定组 播组, 所述访问端重新发送组播消息, 所述网络设备接收到新的组播消息中 的一种或多种。
本发明实施例中, 访问端生成本地网卡的第一临时通讯地址, 并发送组 播消息到约定组播组, 所述组播组中的每个网络设备根据接收到的组播消息 中的第一临时通讯地址, 生成对应的本地网卡的第二临时通讯地址, 其中, 每个第二临时通讯地址与所述第一临时通讯地址同网段; 并且, 每个网络设 备根据对应的第二临时通讯地址, 以及第一临时通讯地址建立对应的与所述 访问端通讯的通讯链路后 ,通过该通讯链路向所述访问端返回链路建立消息; 所述访问端接收到每个链路建立消息后, 通过所述通讯链路访问对应的网络 设备。 这样, 局域网内接入多个任意 IP地址的网络设备后, 釆用本发明实施 例所述的访问网络设备的方法可以一次性搜索到各个网络设备, 并分别进行 通讯配置操作, 并不依赖于网络设备与访问端是否处于同一网段; 对以多个 网卡分别接入不同网络的访问端, 可以通过选择网卡进行范围限定性搜索操 作, 方便对网络设备进行分组管理。
在整个对网络设备搜索和配置的过程中, 负责传输数据的通讯链路绑定 于双方的临时通讯地址, 只进行本次与访问端与网络设备之间的查询和配置 数据传输, 并且在操作完毕后, 该通讯链路和临时通讯地址都被清除。 在网 络设备已经和访问端建立通讯链路后并正在执行业务操作的情况下, 双方操 作分别通过各自的通讯链路并行执行,保证了搜索操作的可操作性和易用性。 与广播通讯模式和纯组播通讯模式相比, 本发明实施例所提供的访问方案不 会产生冗余通讯量, 最大程度上降低了网络传输的负荷, 提高了搜索操作的 执行效率。 发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要 求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。
工业实用性
与现有技术相比, 本发明可以一次性搜索到各个网络设备, 并分别进行 通讯配置操作, 并不依赖于网络设备与访问端是否处于同一网段, 提高了网 络设备访问过程的效率; 并且, 在整个对网络设备搜索和配置的过程中, 负 责传输数据的通讯链路绑定于双方的临时通讯地址, 保证了搜索操作的可操 作性和易用性; 本发明实施例所提供的访问方案不会产生冗余通讯量, 最大 程度上降低了网络传输的负荷, 提高了搜索操作的执行效率。

Claims

权 利 要 求 书
1、 一种访问网络设备的方法, 包括:
网络设备接收约定组播组中的访问端发送的组播消息, 其中, 所述组播 消息中包括访问端生成的本地网卡的第一临时通讯地址;
所述网络设备根据接收到的组播消息中的第一临时通讯地址, 生成本地 网卡的第二临时通讯地址, 其中, 所述第二临时通讯地址与所述第一临时通 讯地址同网段; 以及
所述网络设备根据所述第二临时通讯地址, 以及第一临时通讯地址建立 与所述访问端通讯的通讯链路, 并通过所述通讯链路向所述访问端返回链路 建立消息, 使所述访问端接到所述链路建立消息后, 通过所述通讯链路访问 所述网络设备。
2、 如权利要求 1所述的方法, 还包括: 所述访问端通过如下方式生成本 地网卡的第一临时通讯地址:
根据保存的网络连接信息列表, 确定一个本地网卡; 以及
根据设定的地址生成方案, 生成第一临时通讯地址, 并将该第一临时通 讯地址与所确定的本地网卡进行绑定。
3、 如权利要求 1所述的方法, 其中, 所述网络设备根据接收到的组播消 息中的第一临时通讯地址, 生成本地网卡的第二临时通讯地址的步骤包括: 所述网络设备对所述组播消息进行解码操作, 获取第一临时通讯地址; 以及
所述网络设备根据设定的地址生成方案, 生成与所述第一临时通讯地址 同网段的第二临时通讯地址, 并将所述第二临时通讯地址与本地网卡进行绑 定。
4、如权利要求 1所述的方法, 其在所述网络设备通过所述通讯链路向所 述访问端返回链路建立消息的步骤之后, 还包括:
当所述通讯链路断开后, 所述网络设备删除所述第二临时通讯地址, 其 中, 所述通讯链路断开包括以下情形中的一种或多种: 所述访问端或网络设 备退出所述约定组播组, 所述访问端重新发送组播消息, 以及所述网络设备 接收到新的组播消息。
5、 一种访问网络设备的***, 包括: 访问端和至少一个网络设备, 所述 访问端和网络设备处于约定组播组中, 其中,
所述访问端设置成: 生成本地网卡的第一临时通讯地址, 并发送包含所 述第一临时通讯地址的组播消息到约定组播组, 以及, 在接收到所述约定组 播组中的网络设备通过通讯链路返回的链路建立消息后, 通过该通讯链路访 问所述网络设备;
所述网络设备设置成: 根据接收到的组播消息中的第一临时通讯地址, 生成本地网卡的第二临时通讯地址, 其中, 所述第二临时通讯地址与所述第 一临时通讯地址同网段, 根据所述第二临时通讯地址和第一临时通讯地址建 立与所述访问端通讯的通讯链路, 并通过该通讯链路向所述访问端返回链路 建立消息。
6、 如权利要求 5所述的***, 其中,
所述访问端是设置成通过如下方式生成本地网卡的第一临时通讯地址: 根据保存的网络连接信息列表, 确定一个本地网卡, 根据设定的地址生成方 案, 生成第一临时通讯地址, 并将该第一临时通讯地址与所确定的本地网卡 进行绑定。
7、 如权利要求 5所述的***, 其中,
所述网络设备是设置成通过如下方式生成本地网卡的第二临时通讯地 址: 对所接收到的组播消息进行解码操作, 获取第一临时通讯地址, 并根据 设定的地址生成方案, 生成与所述第一临时通讯地址同网段的第二临时通讯 地址, 并将所述第二临时通讯地址与本地网卡进行绑定。
8、 如权利要求 5所述的***, 其中,
所述网络设备还设置成当所述通讯链路断开后, 删除所述第二临时通讯 地址, 其中, 所述通讯链路断开包括以下情形中的一种或多种: 所述访问端 或网络设备退出所述约定组播组, 所述访问端重新发送组播消息, 以及, 所 述网络设备接收到新的组播消息。
9、 一种访问端, 包括:
生成单元, 其设置成生成本地网卡的第一临时通讯地址; 以及
通信单元, 其设置成: 发送组播消息到约定组播组, 其中, 所述组播消 息中包括所述第一临时通讯地址, 以及, 在接收到所述约定组播组中的网络 设备通过通讯链路返回的链路建立消息后, 通过该通讯链路访问所述网络设 备。
10、 如权利要求 9所述的访问端, 其中, 所述生成单元包括:
确定子单元, 其设置成根据保存的网络连接信息列表, 确定一个本地网 卡; 以及
绑定子单元, 其设置成根据设定的地址生成方案, 生成第一临时通讯地
11、 一种网络设备, 包括:
接收单元, 其设置成接收约定组播组中的访问端发送的组播消息, 其中, 所述组播消息中包括访问端生成的本地网卡的第一临时通讯地址;
生成单元, 其设置成根据接收单元接收到的组播消息中的第一临时通讯 地址, 生成本地网卡的第二临时通讯地址, 其中, 所述第二临时通讯地址与 所述第一临时通讯地址同网段; 以及
链路建立单元, 其设置成根据所述第二临时通讯地址, 以及第一临时通 讯地址建立与所述访问端通讯的通讯链路, 并通过所述通讯链路向所述访问 端返回链路建立消息。
12、 如权利要求 11所述的网络设备, 其中, 所述生成单元包括: 解码子单元, 其设置成对所述组播消息进行解码操作, 获取第一临时通 讯地址; 以及
绑定子单元, 其设置成根据设定的地址生成方案, 生成与所述第一临时 通讯地址同网段的第二临时通讯地址, 并将所述第二临时通讯地址与本地网 卡进行绑定。
13、 如权利要求 11所述的网络设备, 还包括: 删除单元, 其设置成当所述通讯链路断开后, 删除所述第二临时通讯地 址, 其中, 所述通讯链路断开包括以下情形的一种或多种: 所述访问端或网 络设备退出所述约定组播组, 所述访问端重新发送组播消息, 以及, 所述网 络设备接收到新的组播消息。
PCT/CN2010/079779 2010-03-23 2010-12-14 一种访问网络设备的方法、***及装置 WO2011116614A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010101406349A CN102202103A (zh) 2010-03-23 2010-03-23 一种访问网络设备的方法、***及装置
CN201010140634.9 2010-03-23

Publications (1)

Publication Number Publication Date
WO2011116614A1 true WO2011116614A1 (zh) 2011-09-29

Family

ID=44662493

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079779 WO2011116614A1 (zh) 2010-03-23 2010-12-14 一种访问网络设备的方法、***及装置

Country Status (2)

Country Link
CN (1) CN102202103A (zh)
WO (1) WO2011116614A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113625589A (zh) * 2021-09-15 2021-11-09 云茂互联智能科技(厦门)有限公司 一种设备控制方法、装置、电子设备和存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106535170A (zh) * 2016-10-31 2017-03-22 上海斐讯数据通信技术有限公司 一种无线接入设备发现云ac的方法及***
CN106604354A (zh) * 2016-11-29 2017-04-26 上海斐讯数据通信技术有限公司 无线连接方法及***、发现无线控制器的方法及***
CN107453898A (zh) * 2017-07-21 2017-12-08 郑州云海信息技术有限公司 一种网络***及其网络配置方法
CN114422481B (zh) * 2021-12-13 2024-03-15 科华数据股份有限公司 一种网络设备管理方法及相关装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859444A (zh) * 2006-03-03 2006-11-08 华为技术有限公司 一种ipv6网络中主机地址的自动配置方法
CN201332404Y (zh) * 2009-01-22 2009-10-21 深圳华为通信技术有限公司 一种网卡设备升级的***及设备
CN101674303A (zh) * 2009-07-31 2010-03-17 厦门敏讯信息技术股份有限公司 嵌入式网络产品烧写设备及方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1429523A1 (en) * 2002-12-13 2004-06-16 Alcatel Public addressing supported by temporary private addressing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859444A (zh) * 2006-03-03 2006-11-08 华为技术有限公司 一种ipv6网络中主机地址的自动配置方法
CN201332404Y (zh) * 2009-01-22 2009-10-21 深圳华为通信技术有限公司 一种网卡设备升级的***及设备
CN101674303A (zh) * 2009-07-31 2010-03-17 厦门敏讯信息技术股份有限公司 嵌入式网络产品烧写设备及方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113625589A (zh) * 2021-09-15 2021-11-09 云茂互联智能科技(厦门)有限公司 一种设备控制方法、装置、电子设备和存储介质
CN113625589B (zh) * 2021-09-15 2023-12-12 云茂互联智能科技(厦门)有限公司 一种设备控制方法、装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN102202103A (zh) 2011-09-28

Similar Documents

Publication Publication Date Title
JP3254434B2 (ja) データ通信装置
CN102291320B (zh) Mac地址学习方法和边缘设备
CA2611146C (en) Method for data communication and system thereof
CN106789526B (zh) 多***网络连接的方法及装置
EP1742430A1 (en) Router redundancy in data communication networks
EP2816772A1 (en) Lacp negotiation processing method, relay node and system
CN110224935B (zh) 一种处理组播数据报文的方法及装置
US10834542B2 (en) Method and system for inter-group communication in a wireless P2P network
JP4628938B2 (ja) データ通信システム、端末装置およびvpn設定更新方法
KR20100103639A (ko) 다중 무선 네트워크에 동시 액세스하기 위한 장치 및 방법
RU2712813C1 (ru) Способ и система для обработки уведомления о регистрации узла
WO2011116614A1 (zh) 一种访问网络设备的方法、***及装置
WO2013004093A1 (zh) 一种无线接入控制器切换方法和无线接入点
CN113055295A (zh) 通信方法、通信设备和通信***
CN102025799A (zh) 一种发现及自动配置设备的ip地址的方法
CN110635942A (zh) 设备发现方法、物联网设备、物联网服务器
JP2012104970A (ja) 通信装置、および、その制御方法
CN113992434B (zh) 通信方法、***、电子设备及可读存储介质
JP2004072565A (ja) 無線lan通信方法、無線lan通信システムおよび当該システムに用いられる無線端末、無線lan通信装置、通信制御プログラム、ならびに当該プログラムを記録した記録媒体
CN102447703B (zh) 一种热备份方法和***、cgn设备
US10103930B1 (en) Method and apparatus of providing emergency communication services
CN101702820B (zh) 一种无线PPPoE握手报文代答的方法及设备
CN109981315B (zh) 一种anima网络的信息处理方法、设备及***
JP2004129159A (ja) パケット変換方法、パケット通信システム、パケット変換装置、パケット変換プログラムおよび記録媒体
US8036218B2 (en) Technique for achieving connectivity between telecommunication stations

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10848276

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10848276

Country of ref document: EP

Kind code of ref document: A1