Networking method and system

The networking device generates a set of hardware addresses and sends verification values, so that the devices to be entered can generate network addresses by themselves, solving the problem of low network efficiency and improving the success rate and efficiency of networking.

CN120434839APending Publication Date: 2025-08-05ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510562542.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

In centralized and decentralized networks, the problem of low network efficiency caused by the allocation of network addresses to the devices to be accessed is caused by the networking equipment.

Method used

The networking device obtains the hardware address of the device to be entered, generates a set of hardware addresses, and generates a verification value through the set to send it to the device to be entered, so that it generates a network address.

Benefits of technology

It improves the success rate and efficiency of networking, reduces the number of packet interactions and networking time, and is suitable for batch networking equipment in decentralized networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120434839A_ABST
    Figure CN120434839A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a networking method and system, networking equipment obtains hardware addresses of equipment to be accessed to the network and generates a first hardware address set, and the first hardware address set comprises the hardware address of at least one piece of equipment to be accessed to the network; the networking device generates a first verification value through the first hardware address set; and the networking device sends the first verification value to the to-be-accessed device, so that the to-be-accessed device generates a network address through the first verification value. Through application of the method and the device, the problem of relatively low networking efficiency caused by the fact that the networking equipment allocates the network address for the equipment to be accessed to the network in the related technology is solved, and the effect of improving the networking success rate is further achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of wireless network technology, and in particular to a networking method and system. Background Art

[0002] Wireless networks include centralized networks and decentralized networks. The difference between decentralized networks and centralized networks is that there is no central gateway to manage the information of the entire network (including no gateway to manage the entry of new nodes into the network), and every node participating in the network has an equal identity.

[0003] In existing networking methods for both centralized and decentralized networks, the networking device typically assigns network addresses to devices waiting to join the network. When multiple devices need to join the network simultaneously, the networking device must sequentially assign corresponding network addresses to each device, resulting in a large number of data packet exchanges and prolonged network establishment time.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] The embodiments of the present invention provide a networking method and system to at least solve the problem of low networking efficiency caused by the networking equipment allocating network addresses to devices to be connected to the network in the related art.

[0006] According to one embodiment of the present invention, a networking method is provided, including: a networking device obtains the hardware address of a device to be connected to the network, and generates a first hardware address set, wherein the first hardware address set includes the hardware address of at least one of the devices to be connected to the network; the networking device generates a first verification value through the first hardware address set; the networking device sends the first verification value to the device to be connected to the network, so that the device to be connected to the network generates a network address through the first verification value.

[0007] In an exemplary embodiment, after the networking device sends the first verification value to the device to be networked, the method further includes: the first device to be networked determines whether the first verification value is consistent with a second verification value stored locally, wherein the first device to be networked is any of the devices to be networked in the decentralized network; if they are consistent, the first device to be networked generates a first network address.

[0008] In an exemplary embodiment, the first device to be networked generates a first network address, including: determining the serial number of the hardware address of the first device to be networked in the first hardware address set as the first network address, wherein the hardware addresses in the first hardware address set are arranged in sequence; or, performing hashing on the hardware address of the first device to be networked to obtain a hash value; and if the hash value is not assigned the network address, determining the hash value as the first network address.

[0009] In an exemplary embodiment, before the first device to be connected to the network determines whether the first verification value is consistent with the locally stored second verification value, the method further includes: the first device to be connected to the network receives the hardware addresses of other devices to be connected to the network, and generates a second hardware address set, wherein the other devices to be connected to the network are the devices to be connected to the network in the decentralized network except the first device to be connected to the network, and the second hardware address set includes the hardware address of the first device to be connected to the network, and the hardware addresses of the other devices to be connected to the network; the first device to be connected to the network generates the second verification value through the second hardware address set.

[0010] In an exemplary embodiment, the network access device includes a network access device that participates in the negotiation of networking and / or a network access device that does not participate in the negotiation of networking.

[0011] In an exemplary embodiment, a networking device obtains the hardware address of a device to be networked, including: the networking device receives a first network access request from the device to be networked that participates in the negotiated networking, wherein the first network access request carries the hardware address of the device to be networked that participates in the negotiated networking; and / or the networking device receives a second network access request from the device to be networked that does not participate in the negotiated networking, wherein the second network access request carries the hardware address of the device to be networked that does not participate in the negotiated networking.

[0012] In an exemplary embodiment, the method further includes: in the event of inconsistency, the first device to be networked sends a third network access request to the networking device, wherein the third network access request carries the hardware address of the first device to be networked.

[0013] According to another embodiment of the present invention, a networking system is provided, including: a networking device, used to obtain the hardware address of a device to be networked, and generate a first hardware address set, wherein the first hardware address set includes the hardware address of at least one of the devices to be networked; the networking device generates a first verification value through the first hardware address set; the first verification value is sent to the device to be networked; the device to be networked, used to receive the first verification value sent by the networking device, and generate a network address through the first verification value.

[0014] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0015] According to another embodiment of the present invention, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0016] According to yet another embodiment of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0017] The present invention solves the problem of low networking efficiency caused by the networking device allocating network addresses to devices in the related art, thereby improving the success rate of networking. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a hardware structure block diagram of a mobile terminal in a networking method according to an embodiment of the present invention;

[0019] Figure 2 A flowchart of a networking method according to an embodiment of the present invention;

[0020] Figure 3 is a flow chart according to an embodiment of the present invention;

[0021] Figure 4 is a structural block diagram of a networking system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0022] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with embodiments.

[0023] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0024] The technical background related to the embodiments of the present invention is as follows:

[0025] Decentralized network: refers to a network without a central gateway. That is, there is no central gateway used to manage the information of the entire network (including no gateway to manage the entry of new nodes into the network). Every node participating in the network has an equal identity.

[0026] Decentralized mesh networks: Decentralized networks are generally multi-hop mesh networks. Since there is no central gateway, nodes can communicate with any number of devices, and data packets are transmitted across the entire network through multiple hops.

[0027] Device Media Access Control (MAC) / Extended Unique Identifier (EUI): Used to identify a device's unique hardware address and is generally required when setting up a network. Gateways or network operators assign network addresses based on the MAC / EUI.

[0028] Network address: When a decentralized network is formed, each successfully connected device will be assigned a unique address for inter-network communication. Generally speaking, the sign of successful network access is the assignment of a unique unified network key and a unique network address.

[0029] Network address calculation method: This is the process where a device knows the MAC / EUI addresses of all devices to be added to the network and uses this MAC / EUI address to calculate a short address using a certain algorithm. This algorithm ensures that the short address corresponding to each corresponding MAC / EUI is unique.

[0030] Decentralized network construction and access: Because the network lacks a central gateway, the initial network formation process generally involves a large number of nodes seeking to be networked, using an algorithm to negotiate a network administrator, who then assigns addresses to all devices waiting to join. After the network administrator is negotiated, the network administrator must allocate network addresses sequentially to multiple devices simultaneously accessing the network, resulting in a large number of data packet exchanges and prolonged network construction time.

[0031] The problem to be solved by the embodiments of the present invention is that in decentralized networks and centralized networks, after a group of devices waiting to join the network have negotiated a temporary network builder, the remaining devices waiting to join the network can complete the batch network access function (mainly assigning unique network addresses). In other words, no matter how many devices are waiting to join the network, only one network access reply frame is needed to complete the networking process for all devices waiting to join the network. This can reduce the number of data packets (including requests and replies) on the network (too many numbers may cause the network to crash and affect the success rate of networking), and can also reduce the time of networking. This speeds up the success rate and efficiency of networking.

[0032] The networking method embodiment provided in the embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG is a hardware structure diagram of a mobile terminal of a networking method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown) a processor 102 (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA and other processing devices) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.

[0033] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the networking method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above-mentioned method. The memory 104 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory of a remote device relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0034] The transmission device 106 is used to receive or send data via a network. A specific example of the aforementioned network may include a wireless network provided by the mobile terminal's communications provider. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0035] In this embodiment, a networking method running on the above mobile terminal or network architecture is provided. Figure 2 A flowchart of a networking method according to an embodiment of the present invention is shown in FIG. Figure 2As shown, the process includes the following steps:

[0036] Step S202: The networking device obtains the hardware address of the device to be networked and generates a first hardware address set, wherein the first hardware address set includes the hardware address of at least one of the devices to be networked;

[0037] The above-mentioned networking device is a temporary networking member negotiated out from the devices to be networked. During the process of negotiating the network, all the devices to be networked periodically send network access request frames carrying their own device Media Access Control (MAC) / Extended Unique Identifier (EUI) addresses. The devices to be networked that are not participating in the network can directly send network access requests in a loop, and the network access request frames will also carry MAC / EUI addresses. The above-mentioned networking device obtains the hardware address of the device to be networked and obtains the above-mentioned first hardware address set. The above-mentioned first hardware address set may include the hardware address of one device to be networked or the hardware addresses of multiple devices to be networked.

[0038] The aforementioned devices to be networked include devices to be networked that participate in the negotiation networking and / or devices to be networked that do not participate in the negotiation networking.

[0039] The above-mentioned devices to be networked may include devices to be networked that have negotiated networking, devices to be networked that have not participated in negotiated networking, or devices to be networked that have negotiated networking and those that have not participated in negotiated networking. That is, whether a device participates in the negotiated networking process does not affect its network access.

[0040] In this embodiment, the networking device receives a first network access request from the device to be networked that participates in the negotiated networking, wherein the first network access request carries the hardware address of the device to be networked that participates in the negotiated networking; and / or, the networking device receives a second network access request from the device to be networked that does not participate in the negotiated networking, wherein the second network access request carries the hardware address of the device to be networked that does not participate in the negotiated networking.

[0041] During the process of network negotiation, the devices participating in the network negotiation periodically send network access request frames carrying their own MAC / EUI addresses, i.e., the first network access requests. The devices not participating in the network can directly send network access requests in a loop, i.e., the second network access requests, and the network access request frames will also carry MAC / EUI addresses.

[0042] Step S204: the networking device generates a first check value using the first hardware address set;

[0043] After the above-mentioned networking device selects the network parameters, it calculates the check value of the above-mentioned first hardware address set using the collected MAC / EUI address set (the above-mentioned first hardware address set). In this embodiment, the specific check algorithm is not specified, and it can be a checksum, a cyclic redundancy check (CRC), a secure hash algorithm 256-bit (SHA256), etc.

[0044] In step S206, the networking device sends the first verification value to the device to be networked, so that the device to be networked generates a network address according to the first verification value.

[0045] The above-mentioned networking device puts the above-mentioned first check value in the networking reply and sends it to the device to be networked. The device to be networked that receives the above-mentioned networking reply calculates the address set check value in the networking reply it received, and determines whether it is consistent with its own address set check value (second check value).

[0046] Specifically, after the networking device sends the first verification value to the device to be networked, the first device to be networked determines whether the first verification value is consistent with the second verification value stored locally, wherein the first device to be networked is any of the devices to be networked in the decentralized network; if they are consistent, the first device to be networked generates a first network address.

[0047] Before the first device to be networked determines whether the first verification value is consistent with the second verification value stored locally, the first device to be networked receives the hardware addresses of other devices to be networked and generates a second hardware address set, wherein the other devices to be networked are the devices to be networked in the decentralized network except the first device to be networked, and the second hardware address set includes the hardware address of the first device to be networked and the hardware addresses of the other devices to be networked; the first device to be networked generates the second verification value through the second hardware address set.

[0048] In this embodiment, when all devices waiting to join the network receive frames carrying MAC / EUI from other devices, they collect and store the corresponding MAC / EUI in a certain order (for example, in ascending order). That is, after the first device waiting to join the network receives the hardware addresses of the other devices waiting to join the network, it generates the second hardware address set. The first device waiting to join the network calculates the second check value using the same method as the networking device to calculate the check value and stores it locally. Therefore, in this embodiment, all devices waiting to join the network have a locally stored second check value for comparison with the first check value in the networking reply sent by the networking device.

[0049] The first device to be networked that receives the networking reply carrying the first verification value verifies the second verification value stored locally using the same method as the verification value calculated by the networking device to determine whether the first verification value is consistent with the second verification value stored locally. If they are consistent, it means that the first device to be networked can complete the networking and directly calculate its own network address, that is, the first network address, through a unified network address calculation method.

[0050] In this embodiment, there are two feasible methods for calculating a unique network address when a MAC / EUI address set is known. The specific methods are as follows.

[0051] Optionally, the serial number of the hardware address of the first device to be networked in the first hardware address set is determined as the first network address, wherein the hardware addresses in the first hardware address set are arranged in sequence.

[0052] Specifically, based on the sequence number in the MAC / EUI address set, the sequence number is the network address (the first network address mentioned above). For example, after a device collects a MAC / EUI address set, the network address of the device with the first MAC is 1, the network address of the device with the second MAC is 2, and so on.

[0053] Optionally, the hardware address of the first device to be networked is hashed to obtain a hash value; if the hash value is not assigned the network address, the hash value is determined as the first network address.

[0054] Specifically, a hash table is used to hash the MAC / EUI. If the hashed value has not been assigned, the address is the network address of the device (the first network address mentioned above). If the hashed value has been assigned as a network address, it is rehashed until an empty network address is assigned.

[0055] At this point, all devices waiting to join the network with the same MAC / EUI address set checksum have completed the network access process and can directly carry out data communication.

[0056] Optionally, in the case of inconsistency, the first device to be networked sends a third network access request to the networking device, wherein the third network access request carries the hardware address of the first device to be networked.

[0057] In this embodiment, if some devices have not received the networking frame carrying the MAC / EUI address set check value, or their own MAC / EUI address set check value is inconsistent with the received check value, they will have to abandon the batch network access function and send a separate network access request carrying the hardware address (the third network access request). The network provider will respond individually or in batches.

[0058] Figure 3 is a flow chart according to an embodiment of the present invention, such as Figure 3 As shown, the process includes the following steps:

[0059] S301, the network builder collects all MAC addresses received by the network to be connected and generates an address set according to certain rules. The network device to be connected collects all MAC addresses received by the network to be connected and generates an address set according to certain rules.

[0060] Specifically, during the negotiation process, all devices seeking to join the network periodically send access request frames carrying their own MAC / EUI addresses. Those not participating in the negotiation process simply send access request frames in a loop, which also carry MAC / EUI addresses. Upon receiving frames carrying MAC / EUI addresses from other devices, all devices seeking to join the network collect and store the corresponding MAC / EUI addresses in a specific order (e.g., ascending order).

[0061] S302, the network provider calculates the MAC address set check value;

[0062] Specifically, after the temporary networker selects the network parameters, he will calculate the check value of the MAC / EUI address set he has collected (the specific check algorithm is not specified, it can be a checksum, CRC, SHA256, etc., which can be determined according to the computing power of the device), and put the MAC address set check value in the network response.

[0063] S303, the network provider sends a networking frame carrying the value to the device to be networked;

[0064] S304, the device to be connected to the network receives the networking frame carrying the check value;

[0065] Specifically, all nodes that receive the network-joining response calculate the address set checksum in the response and compare it with their own. If they match, they can complete the network-joining process. Using a unified network address calculation method, they calculate their own address. At this point, all network-joining devices with consistent MAC / EUI address set checksums have completed the network joining process and can now directly communicate with the network.

[0066] S305, the device to be connected to the network determines whether the MAC address set check value is consistent; if it is consistent, the address set is used to calculate the network address of its own MAC; if it is inconsistent, the network connection request is made again, and the process jumps to S306;

[0067] S306: The device waiting to access the network receives the response and obtains the network address.

[0068] Specifically, if some devices have not received the networking frame carrying the MAC / EUI address set check value, or their own MAC / EUI address set check value is inconsistent with the received check value, they will have to abandon the batch network access function and send network access requests individually, and the network provider will respond individually or in batches.

[0069] Optionally, the execution entity of the above steps can be a background processor, or other devices with similar processing capabilities, or a machine that integrates at least an image acquisition device and a data processing device, wherein the image acquisition device may include a graphics acquisition module such as a camera, and the data processing device may include a computer, a mobile phone and other terminals, but is not limited to this.

[0070] Through the above steps, the problem of low networking efficiency caused by the networking equipment allocating network addresses to the devices to be connected to the network in the related art is solved, and the success rate of networking is improved.

[0071] In this embodiment, the focus is on the batch networking process, and the encryption, key exchange, specific address allocation algorithm, and verification calculation method in the networking process are not concerned, as all of these have known solutions.

[0072] This embodiment can ensure batch networking during the first networking. The reason why all devices can be assigned unique addresses is that everyone's initial data is consistent and the network address calculation method is consistent, so the final calculated results are also consistent. The only difference is whether this calculation is run on the network builder or on the device to be added to the network.

[0073] This embodiment is also suitable for centralized networks (that is, devices with a central gateway), but it is only suitable for situations where the central gateway has no nodes already joined. For example, there is a centralized gateway that currently has no nodes joined (i.e., no node addresses have been assigned). In the same time period, many devices waiting to join the network initiate network access at the same time, and this solution is also effective. However, if the gateway already has a node that has joined the network (i.e., it already has an address for joining the network), then this solution will no longer be suitable. This is because the network address calculated by the gateway for a certain MAC may be inconsistent with the address calculated by the device waiting to join the network.

[0074] The advantage of this embodiment is that, by using the MAC / EUI address set to be networked that has been collected in the early stage, the network builder only needs to send one networking frame to complete the networking of all devices in the MAC / EUI address set. Regardless of the scale of the devices to be networked (whether it is 10 nodes, 100 nodes, 1000 nodes or even more), fast and batch networking can be completed. This improves the efficiency and success rate of the network. In other words, regardless of the scale of the network, the networking time is fixed, rather than growing linearly with the scale of the devices to be networked. In other words, the algorithm complexity of this solution is O(1), rather than O(n) or higher of the traditional solution.

[0075] The key points of this embodiment are as follows:

[0076] 1. The initial gateway in the decentralized network and the centralized network. When the network builders first build the network, they complete the batch networking plan for a large number of devices to be connected to the network.

[0077] 2. The traditional network access process, which requires one-to-one or one-to-many data exchange, is abandoned. Instead, this process uses a unified data set and algorithm set, allowing distributed calculations to be performed independently. This is different from all known one-to-one and batch networking solutions, greatly improving networking efficiency.

[0078] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0079] This embodiment also provides a networking system for implementing the above-mentioned embodiments and preferred embodiments. Details already described will not be repeated. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the systems described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.

[0080] Figure 4 is a structural block diagram of a networking system according to an embodiment of the present invention, such as Figure 4As shown, the system includes a networking device 402, which is used to obtain the hardware address of the device to be connected to the network and generate a first hardware address set, wherein the first hardware address set includes the hardware address of at least one of the devices to be connected to the network; the networking device generates a first verification value through the first hardware address set; and sends the first verification value to the device to be connected to the network; the device to be connected to the network 404 is used to receive the first verification value sent by the networking device and generate a network address through the first verification value. In an exemplary embodiment, the first device to be connected to the network determines whether the first verification value is consistent with the second verification value stored locally, wherein the first device to be connected to the network is any of the devices to be connected to the network in the decentralized network; if they are consistent, the first device to be connected to the network generates a first network address.

[0081] In an exemplary embodiment, the first device to be networked determines the serial number of the hardware address of the first device to be networked in the first hardware address set as the first network address, wherein the hardware addresses in the first hardware address set are arranged in sequence; or, hashes the hardware address of the first device to be networked to obtain a hash value; and when the hash value is not assigned the network address, determines the hash value as the first network address.

[0082] In an exemplary embodiment, the first device to be networked receives the hardware addresses of other devices to be networked and generates a second hardware address set, wherein the other devices to be networked are the devices to be networked in the decentralized network other than the first device to be networked, and the second hardware address set includes the hardware address of the first device to be networked and the hardware addresses of the other devices to be networked; the first device to be networked generates the second verification value through the second hardware address set.

[0083] In an exemplary embodiment, the above-mentioned networking device receives a first network access request from the device to be networked that participates in the negotiated networking, wherein the first network access request carries the hardware address of the device to be networked that participates in the negotiated networking; and / or, the above-mentioned networking device receives a second network access request from the device to be networked that does not participate in the negotiated networking, wherein the second network access request carries the hardware address of the device to be networked that does not participate in the negotiated networking.

[0084] In an exemplary embodiment, in the case of inconsistency, the first device to be networked sends a third network access request to the networking device, wherein the third network access request carries the hardware address of the first device to be networked.

[0085] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0086] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0087] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0088] An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0089] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0090] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.

[0091] An embodiment of the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method described in each embodiment of the present application.

[0092] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, can be centralized on a single computing device, or can be distributed across a network of multiple computing devices. They can be implemented using program code executable by the computing device, and thus, can be stored in a storage device and executed by the computing device. In some cases, the steps shown or described herein can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0093] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention are intended to be within the scope of protection of the present invention.

Claims

1. A networking method, characterized in that: include: The networking device obtains the hardware address of the device to be networked, and generates a first hardware address set, wherein the first hardware address set includes the hardware address of at least one of the devices to be networked; The networking device generates a first check value through the first hardware address set; The networking device sends the first verification value to the device to be networked, so that the device to be networked generates a network address according to the first verification value.

2. The method according to claim 1, characterized in that After the networking device sends the first verification value to the device to be networked, the method further includes: The first device to be networked determines whether the first verification value is consistent with a second verification value stored locally, wherein the first device to be networked is any device to be networked in the decentralized network; If they are consistent, the first device to be connected to the network generates a first network address.

3. The method according to claim 2, characterized in that The first device to be connected to the network generates a first network address, including: Determine the serial number of the hardware address of the first device to be networked in the first hardware address set as the first network address, wherein the hardware addresses in the first hardware address set are arranged in sequence; or The hardware address of the first device to be networked is hashed to obtain a hash value; if the hash value is not assigned the network address, the hash value is determined as the first network address.

4. The method according to claim 2, characterized in that Before the first network access device determines whether the first verification value is consistent with the locally stored second verification value, the method further includes: The first device to be networked receives hardware addresses of other devices to be networked, and generates a second set of hardware addresses, wherein the other devices to be networked are the devices to be networked in the decentralized network other than the first device to be networked, and the second set of hardware addresses includes the hardware address of the first device to be networked and the hardware addresses of the other devices to be networked; The first device to be networked generates the second verification value through the second hardware address set.

5. The method according to claim 1, wherein The devices to be networked include devices to be networked that participate in the negotiation networking and / or devices to be networked that do not participate in the negotiation networking.

6. The method according to claim 5, characterized in that The networking device obtains the hardware address of the device to be connected to the network, including: The networking device receives a first network access request from the device to be networked that participates in the negotiation network, wherein the first network access request carries the hardware address of the device to be networked that participates in the negotiation network; and / or The networking device receives a second network access request from the device to be networked that does not participate in the negotiation networking, wherein the second network access request carries the hardware address of the device to be networked that does not participate in the negotiation networking.

7. The method according to claim 2, characterized in that The method further comprises: In case of inconsistency, the first device to be networked sends a third network access request to the networking device, wherein the third network access request carries the hardware address of the first device to be networked.

8. A networking system, characterized in that: include: A networking device, configured to obtain a hardware address of a device to be networked, generate a first hardware address set, wherein the first hardware address set includes the hardware address of at least one of the devices to be networked; the networking device generates a first check value based on the first hardware address set; and send the first check value to the device to be networked; The device to be networked is configured to receive a first verification value sent by the networking device and generate a network address based on the first verification value.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.

11. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.