CN112838949A - Network distribution method for gateway far end - Google Patents
Network distribution method for gateway far end Download PDFInfo
- Publication number
- CN112838949A CN112838949A CN202011624436.XA CN202011624436A CN112838949A CN 112838949 A CN112838949 A CN 112838949A CN 202011624436 A CN202011624436 A CN 202011624436A CN 112838949 A CN112838949 A CN 112838949A
- Authority
- CN
- China
- Prior art keywords
- gateway
- identification code
- mac address
- network distribution
- matched
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a network distribution method for a gateway far end, which comprises the steps of receiving a gateway identification code and a project name sent by a client, wherein the gateway identification code is generated by an MAC (media access control) address of a gateway through an encryption algorithm; searching the matched gateway by using the gateway identification code; if the matched gateway is found, the project name and the matched gateway are bound, and the project name is issued to the matched gateway, because the gateway identification code has randomness and uniqueness, the possibility of mistaken input at the client is reduced, and the reliability and the efficiency of network distribution of the gateway are improved.
Description
Technical Field
The invention relates to a network distribution method for a gateway, in particular to a network distribution method for a far end of the gateway.
Background
In the implementation process of a control system project, the intelligent equipment forms a local network through the gateway, and as the gateway does not join the network when the network is built, the network is distributed to the gateway through the cloud server, the gateway is connected to the network, and then other intelligent equipment is joined through the gateway, so that the control of the user on the intelligent equipment and the communication connection among the equipment are realized. In the process of network distribution of a general gateway, a complex authentication algorithm and a complex protocol are required to confirm the identity of the general gateway, and in a project debugging stage, the same gateway is required to be distributed for many times, so that the efficiency of the network distribution is low. If the gateway is configured to access the network by verifying the MAC address of the gateway device at the server side, because of the continuity of the MAC addresses, other different gateways may access the network due to the fact that the MAC addresses of other gateways are input by mistake, and the distribution network fails. How to realize safe and fast remote network distribution is a problem to be solved. .
Disclosure of Invention
Aiming at the problems, the invention provides a method for a gateway remote end to distribute a network, which comprises the following steps
Receiving a gateway identification code and a project name sent by a client, wherein the gateway identification code is generated by an MAC (media access control) address of a gateway through an encryption algorithm; searching the matched gateway by using the gateway identification code; if the matched gateway is found, the project name and the matched gateway are bound, and the project name is issued to the matched gateway.
Preferably, the gateway identification code is a hash value generated by hashing a MAC address of the gateway and a random number.
Preferably, the MAC address of the gateway and a random number are used to form a hash value and a check code through a hash operation.
Preferably, after receiving the gateway identification code and the item name sent by the client, the gateway identification code is verified first, and then the gateway identification code is used to search for a matching gateway.
Preferably, the searching for the matched gateway by the gateway identification code includes searching for the matched MAC address in the gateway identification code and the MAC address mapping table by the gateway identification code; and finding out the corresponding gateway according to the MAC address.
The invention also provides a network distribution method of the gateway far end, which comprises the steps of inputting a gateway identification code at the client, wherein the gateway identification code is generated by the MAC address of the gateway through an encryption algorithm; sending a gateway identification code and a project name to a server, wherein the server is used for inquiring a gateway matched with the gateway identification code, binding the project name and the matched gateway and issuing the project name to the matched gateway; the client displays the state that the gateway has been accessed to the network.
Preferably, the server pre-stores a mapping table of the gateway identification code and the MAC address, wherein the server finds the MAC address corresponding to the gateway identification code from the client by querying the mapping table of the gateway identification code and the MAC address.
Preferably, the gateway identification code and the MAC address are represented in the form of a two-dimensional code, and the user inputs the gateway identification code in a code scanning manner at the client.
According to the technical scheme, the remote network distribution of the gateway is realized by adopting the gateway identification code, the number of times of network distribution information interaction between the client side and the server side is reduced, the gateway equipment side does not need to perform excessive operation, the rapid network distribution is realized, and the user experience is improved. And because the gateway identification code is generated by the MAC address of the gateway through an encryption algorithm, the gateway identification code has randomness and uniqueness, the possibility of mistaken input at a client is reduced, and the reliability of a gateway distribution network is improved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the attached drawings
FIG. 1 is a schematic flow chart of a client of an embodiment of a remote network distribution network of a gateway according to the present invention;
fig. 2 is a schematic flow diagram of a server side of an embodiment of a remote network distribution of a gateway according to the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a schematic flow chart of a client in a network distribution at a far end of a gateway according to an embodiment of the present invention. Referring to fig. 1, a gateway identification code of a network to be distributed is input at a client; the gateway identification code is a unique code generated by an encryption algorithm, the unique code is unordered and random, and even if the unique code of one device is seen, the unique code cannot be guessed to other devices. In this embodiment, the gateway identification code is a unique code generated by a hash algorithm and corresponding to the gateway, but is not limited thereto, and only a corresponding unique code is generated by an adopted algorithm, for example, a symmetric and asymmetric encryption algorithm is adopted to generate the gateway identification code by performing encryption calculation on the MAC address and the key of the gateway; the method comprises the steps that a client sends gateway identification codes and item names to a cloud server, wherein a storage module in the server stores gateway identification codes and an MAC address mapping table in advance, each gateway identification code of the mapping table is obtained by Hash calculation of an MAC address and a random number of a gateway, each gateway identification code uniquely corresponds to one gateway MAC address and one random number, the item names represent names of intelligent control items constructed by a user, the control items generally comprise gateways, intelligent equipment such as lamps, sensors and switches, and the intelligent equipment is bound with the intelligent control items after the network is distributed so that the user can control the intelligent equipment; after the gateway identification code is verified by the server, the gateway is bound with the project name, and the gateway equipment acquires the project name sent by the server and then completes the distribution network;
client displays the network access state of the gateway
Fig. 2 is a flowchart of a server side of a gateway remote distribution network according to the present invention. Referring to fig. 2, after receiving a gateway identification code and an item name from a client, a server may first verify the gateway identification code, for example, the gateway identification code includes a verification code in addition to a hash value of an MAC address and a random number, verify the validity of the gateway identification code input by a user through the verification code, query the gateway identification code and an MAC address mapping relationship table with the gateway identification code after verification, if an MAC address matching the gateway identification code is found, allow a gateway device with a matching MAC address to join a network and bind with the item name, and issue the item name to the gateway with the MAC address, and change the gateway from an offline state to an online state at the cloud after the gateway device accesses the network; and if the matched MAC address is not found, the server refuses the gateway to access the network. In addition, the gateway identification code can be replaced by the unique secret information of the gateway, and the identity authentication can be performed by the unique secret information of each gateway.
The gateway identification code generated by the encryption algorithm can be printed or pasted on the gateway equipment in a two-dimensional code mode, and the gateway equipment can also dynamically display the gateway identification code, so that when a user inputs the gateway identification code on a client, the gateway identification code is input in a two-dimensional code scanning mode, and the operation of a user distribution network is more convenient.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Thus, it should be appreciated by those skilled in the art that while a number of exemplary embodiments of the invention have been illustrated and described in detail herein, many other variations or modifications consistent with the principles of the invention may be directly determined or derived from the disclosure of the present invention without departing from the spirit and scope of the invention. Accordingly, the scope of the invention should be understood and interpreted to cover all such other variations or modifications.
Claims (9)
1. A network distribution method at a gateway far end is characterized by comprising the following steps:
receiving a gateway identification code and an item name sent by a client, wherein the gateway identification code is generated by an MAC address of a gateway through an encryption algorithm
Searching the matched gateway by using the gateway identification code;
if the matched gateway is found, the project name and the matched gateway are bound, and the project name is issued to the matched gateway.
2. The method for the network distribution at the far end of the gateway, according to claim 1, wherein after receiving the gateway identification code and the project name sent by the client, the gateway identification code is verified first.
3. The gateway remote network distribution method of claim 2, wherein the finding a matching gateway using the gateway identification code comprises finding a matching MAC address using the gateway identification code in the gateway identification code and a MAC address mapping table; and finding out the corresponding gateway according to the MAC address.
4. The method for the remote network distribution of the gateway of claim 1, wherein the gateway identification code is a hash value formed by hashing a MAC address of the gateway and a random number.
5. The method for the remote network distribution of the gateway according to claim 1, wherein the gateway identification code is composed of a hash value and a validation code formed by hash operation of a MAC address of the gateway and a random number.
6. The gateway remote network distribution method according to claim 3, wherein the gateway identification code and the MAC address are represented by a two-dimensional code or a bar code.
7. A network distribution method at a gateway far end is characterized by comprising the following steps:
inputting a gateway identification code at a client, wherein the gateway identification code is generated by an MAC address of a gateway through an encryption algorithm;
sending a gateway identification code and a project name to a server, wherein the server is used for inquiring a gateway matched with the gateway identification code, binding the project name and the matched gateway and issuing the project name to the matched gateway;
the client displays the state that the gateway has been accessed to the network.
8. The gateway remote network distribution method of claim 7, wherein the server stores a mapping table of gateway identification codes and MAC addresses, and the server finds the MAC address corresponding to the gateway identification code from the client by querying the mapping table of gateway identification codes and MAC addresses.
9. The method for network distribution at the far end of the gateway, according to claim 8, wherein the gateway identification code is input at the client side in a code scanning manner, wherein the gateway identification code and the MAC address are expressed in a two-dimensional code form.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011624436.XA CN112838949A (en) | 2020-12-31 | 2020-12-31 | Network distribution method for gateway far end |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011624436.XA CN112838949A (en) | 2020-12-31 | 2020-12-31 | Network distribution method for gateway far end |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112838949A true CN112838949A (en) | 2021-05-25 |
Family
ID=75924367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011624436.XA Pending CN112838949A (en) | 2020-12-31 | 2020-12-31 | Network distribution method for gateway far end |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112838949A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113938391A (en) * | 2021-10-12 | 2022-01-14 | 北京自如信息科技有限公司 | Network distribution method and system for gateway equipment and electronic equipment |
CN116633697A (en) * | 2023-07-25 | 2023-08-22 | 苏州万店掌网络科技有限公司 | Equipment networking method, device, equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150106484A1 (en) * | 2013-10-16 | 2015-04-16 | Power-All Networks Limited | Gateway management system, and method thereof |
CN106953871A (en) * | 2017-03-31 | 2017-07-14 | 中国移动通信集团江苏有限公司 | gateway authentication method, device, gateway device and server |
CN109121136A (en) * | 2017-06-22 | 2019-01-01 | 中国电信股份有限公司 | Network insertion, terminal connection and verification method and terminal, gateway and system |
CN111741136A (en) * | 2020-08-25 | 2020-10-02 | 翱捷科技(深圳)有限公司 | Automatic network distribution method and system and server |
-
2020
- 2020-12-31 CN CN202011624436.XA patent/CN112838949A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150106484A1 (en) * | 2013-10-16 | 2015-04-16 | Power-All Networks Limited | Gateway management system, and method thereof |
CN104579723A (en) * | 2013-10-16 | 2015-04-29 | 宇宙互联有限公司 | Gateway configuration management system and method |
CN106953871A (en) * | 2017-03-31 | 2017-07-14 | 中国移动通信集团江苏有限公司 | gateway authentication method, device, gateway device and server |
CN109121136A (en) * | 2017-06-22 | 2019-01-01 | 中国电信股份有限公司 | Network insertion, terminal connection and verification method and terminal, gateway and system |
CN111741136A (en) * | 2020-08-25 | 2020-10-02 | 翱捷科技(深圳)有限公司 | Automatic network distribution method and system and server |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113938391A (en) * | 2021-10-12 | 2022-01-14 | 北京自如信息科技有限公司 | Network distribution method and system for gateway equipment and electronic equipment |
CN116633697A (en) * | 2023-07-25 | 2023-08-22 | 苏州万店掌网络科技有限公司 | Equipment networking method, device, equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108737418B (en) | Identity authentication method and system based on block chain | |
KR101781583B1 (en) | File management and search system based on block chain and file management and search method | |
CN106453415B (en) | Block chain-based equipment authentication method, authentication server and user equipment | |
US20180374097A1 (en) | A distributed user profile identity verification system for e-commerce transaction security | |
US8006084B2 (en) | Apparatus and method for managing plurality of certificates | |
CN103139172B (en) | A kind of service implementation method and device | |
CN110537346A (en) | Safe decentralization domain name system | |
JP2019512976A (en) | Identity registration method and device | |
CN110263579B (en) | Data processing method, system and related equipment | |
JP2009080829A (en) | Apparatus, method and system for tracking information access | |
CN104954359A (en) | Aggregate signing of data in content centric networking | |
CN105281908A (en) | USB Key and USB Key digital certificate write-in method and device | |
WO2019081816A1 (en) | Anonymity system for goods delivery | |
CN112838949A (en) | Network distribution method for gateway far end | |
CN104184583B (en) | Method and system for distributing IP address | |
CN105162604A (en) | Feature image identification based verification method and system, and verification server | |
CN110597922A (en) | Data processing method, device, terminal and storage medium | |
CN109120611A (en) | User authen method, equipment, system and the medium of server are generated for address | |
CN109769249B (en) | Authentication method, system and device | |
CN112150030A (en) | Account management method based on multiple units and multiple identities, terminal equipment and storage medium | |
CN102549593B (en) | Addressable file | |
CN114841697A (en) | Block chain based electronic contract chain on-line verification, signing and checking system and method | |
CN112035813B (en) | Method and computer readable medium for generating distributed identities based on fingerprint identification layering in blockchain | |
JP2017509275A (en) | System architecture and method for ensuring network information security | |
CN114365134A (en) | Secure identity card using unclonable functions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210525 |