CN119697812A - A local area network AP self-organizing network method and storage medium - Google Patents
A local area network AP self-organizing network method and storage medium Download PDFInfo
- Publication number
- CN119697812A CN119697812A CN202411818699.2A CN202411818699A CN119697812A CN 119697812 A CN119697812 A CN 119697812A CN 202411818699 A CN202411818699 A CN 202411818699A CN 119697812 A CN119697812 A CN 119697812A
- Authority
- CN
- China
- Prior art keywords
- message
- aps
- local area
- election
- lan
- 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
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a local area network AP ad hoc network method, which is used for configuration in the same local area network when AP equipment of different manufacturers is accessed to the same local area network, and comprises the following steps of S10, performing AC election by all APs after all APs of different manufacturers are accessed to the same local area network, determining the AP with the largest equipment parameter integral as the AC in the local area network according to equipment parameter integral comparison of all APs, and controlling the APs through the AC after the AC election in the local area network is determined. According to the invention, a new AC is negotiated between the AP devices of different manufacturers to independently manage the AP devices, and meanwhile, the relation between the AP devices and the original AC is not influenced, so that the compatibility and flexibility of the network are improved, and a more convenient and efficient network management scheme is provided for users.
Description
Technical Field
The invention relates to the technical field of local area network communication, in particular to a local area network AP (access point) ad hoc network method and a storage medium.
Background
In the field of modern wireless network communications, wireless Local Area Networks (WLANs) have become an integral part of enterprise and home users. Among them, AC (Access Controller ) +ap (wireless Access Point) networking system is one of the mainstream architectures for constructing WLAN. In the architecture, the AC is used as a core management node of the network and is responsible for controlling and managing all APs in the local area network, so as to realize the coverage of wireless signals and the access of network users. The AP serves as a transmitting end of the wireless signal and is responsible for transmitting the wireless network signal to the end user device.
However, there are some significant limitations to conventional ac+ap networking systems. First, the roles of AC and AP are fixed at the time of shipment, which means that the functions and roles of AC and AP cannot be dynamically adjusted according to the actual demands of the network. This fixed architecture limits the flexibility and extensibility of the network, making it difficult for network administrators to quickly respond and adapt in the face of network environment changes or business demand adjustments.
Second, communication between the AC and the AP is typically performed using individual vendor defined proprietary control protocols. These proprietary protocols, while capable of meeting the communication needs between specific vendor devices, limit interoperability between different vendor devices. In practice, a user may need to access AP devices of different vendors to an existing network to meet specific business needs or cost considerations. However, due to the existence of proprietary protocols, these different vendor AP devices often cannot be effectively managed and controlled by existing ACs, resulting in increased complexity and cost of network management.
In addition, when a user purchases an AP device of a different manufacturer from the AC, there is a problem that it cannot be managed. This not only affects the user experience, but also limits the expandability and flexibility of the wireless network. The user has to face the problem of compatibility of the devices, the advantages of the devices of different manufacturers cannot be fully utilized, and the optimal configuration and performance exertion of the network devices cannot be realized. Therefore, a user needs a more flexible, open and intelligent networking scheme to realize compatibility and management of different manufacturer devices and improve the expandability and management efficiency of the network.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides an AP ad hoc network method of a local area network, wherein an AC is negotiated through each AP, so that a user can conveniently use the AC to manage the APs, the relation between each AP and the original AC is not influenced, and the compatibility and the flexibility of the local area network are improved.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows:
A local area network AP ad hoc network method is used for accessing AP devices of different manufacturers to the same local area network for configuration, and comprises the following steps:
S10, after all APs of different manufacturers are accessed to the same local area network, all APs perform AC election, and the AP with the largest equipment parameter integral is determined to be the AC in the local area network according to the equipment parameter integral comparison of each AP;
And S20, after the AC election in the local area network is determined, other APs are connected with the AC, and the APs are controlled by the AC.
Specifically, the process of performing AC election by all APs in step S10 includes:
S11, any AP sends an election message containing self equipment parameter information into the local area network;
s12, after receiving the election message, other APs select a first waiting time for random dormancy and then respond to the corresponding election message;
S13, after any AP receives the competitive messages sent by other APs, extracting the equipment parameter information of the corresponding AP, calculating equipment parameter integral, comparing the equipment parameter integral with the equipment parameter integral of the AP, and if the equipment parameter integral of the AP is the largest, using the AP as a candidate AC, and continuously sending the competitive messages twice at intervals of second waiting time;
And S14, after the candidate AC continuously transmits the election message twice, if the election message with the equipment parameter integral larger than the election message is not received, the candidate AC is successfully elected, and the candidate AC is determined to be the AC in the local area network.
The second waiting time is longer than the first waiting time, so that the accuracy of the competing result is ensured.
Specifically, the device parameter information in the election message at least includes a command code, a device MAC address, a device IP address, a device gateway address, a protocol version number, and a device total memory size.
The calculation mode of the device parameter integration is that N times of the value of the protocol version number is added with the value of the total memory size of the device, wherein N is a fixed parameter.
Specifically, when at least two APs perform equipment parameter integral comparison, if the equipment parameter integral is the same, continuing to compare the equipment item parameter integral;
The calculation mode of the equipment subentry parameter integration is that the last 2 bytes of the equipment MAC address is added with the low 2 bytes of the equipment IP address.
Specifically, in the step S20, the process of connecting the other APs to the AC includes:
S21, the AP sends a connection request to the AC;
s22, the AC issues an RSA public key;
S23, the AP generates an AES password and encrypts a message by using an RSA public key;
S24, the AC decrypts the message to obtain an AES password of the AP;
S25, the AP sends hello keep-alive messages;
S26, the AC responds to the hello keep-alive message and issues an AP configuration file;
s27, the AP applies the configuration file and reports the WIFI parameter information to the AC.
Specifically, after determining the AC in the local area network in the step S10, broadcasting an AC declaration message to the local area network every third waiting time of the AC;
after the AP monitors the AC statement message, an AC request message is sent according to the information in the AC statement message; and the AC responds to the AC response message after receiving the AC request message, so as to realize AC verification.
Further, when a new AP accesses the local area network, the new AP monitors a fourth waiting time of the network, the fourth waiting time is larger than the third waiting time, whether the local area network has an AC or not is judged, if yes, checksum connection is performed according to an AC checksum AC connection process, and if not, AC election is participated according to a step S10 process.
Further, when the new AP accesses the local area network with the AC, the new AP performs AC election by comparing respective equipment parameter integral with the current AC, wherein if the equipment parameter integral of the current AC is large, the AC identity is reserved, otherwise, the new AP acts as the AC in the local area network.
Still further, the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the local area network AP ad hoc network method described above.
Compared with the prior art, the invention has the following beneficial effects:
According to the invention, a new AC is negotiated between the AP devices of different manufacturers to independently manage the AP devices, and meanwhile, the relation between the AP devices and the original AC is not influenced, so that the compatibility and flexibility of the network are improved, a more convenient and efficient network management scheme is provided for users, the self-management and self-configuration of the AP devices are realized, the cost of the users for deploying the wireless network is reduced, and the problems of confusion of wireless resource division and conflict of resource use are solved. The implementation of the invention brings revolutionary changes to the construction and management of the wireless network, provides more efficient, reliable and convenient wireless network service for users, and has important practical value and market prospect.
Drawings
FIG. 1 is a schematic overall flow chart of an embodiment of the present invention.
Fig. 2 is a schematic flow chart of AC election in an embodiment of the present invention.
Fig. 3 is a schematic flow chart of an AC connection in an embodiment of the present invention.
Detailed Description
The invention will now be further described with reference to the accompanying drawings and examples, embodiments of which include, but are not limited to, the following examples.
Examples
As shown in fig. 1 to 3, the AP ad hoc network method for a local area network is configured in the same local area network when AP devices of different manufacturers access, wherein data packets agree that the auction data adopts UDP, fixed password, AES encryption, the AP connection AC adopts TCP, RSA negotiation password, AES encryption, and because of the problem of the private protocol limitation of different manufacturers in the prior art, the present invention is usually integrated or installed in the AP devices of corresponding manufacturers in the form of plug-in modules. The method specifically comprises the following steps:
S10, after all APs of different manufacturers are accessed to the same local area network, all APs perform AC election, and the AP with the largest equipment parameter integral is determined to be the AC in the local area network according to equipment parameter integral comparison of each AP.
The process of performing AC election by all the APs comprises the following steps:
S11, any AP sends an election message containing the parameter information of the equipment to the local area network. The device parameter information in the election message at least comprises a command code, a device MAC address, a device IP address, a device gateway address, a protocol version number, a device total memory size, information about whether configured, device random value information, running time information and the like.
For example, the content of the election message:
{"cmd":"ac_bid","mac":"00:11:22:33:44:55","ip":"192.168.1.3","gw":"192.168.1.254","proto_version":1,"total_mem":256,"version":"1.0.1","product":"NAP830","score":100256,"sub_score":100,"is_ac":0,"configed":0,"ac_magic":"12345678","client_cnt":0,"my_seq":100}
Wherein cmd is a command code, all messages contain the field for distinguishing the command of the received message, MAC represents the device MAC address, IP represents the device IP address, gw represents the device gateway address, proto_version represents the protocol version number, total_mem represents the total memory size of the device, version represents the device system version, product represents the device model number configed represents whether the current device has been configured, ac_mac represents the random value information of the current device, random generation is performed after starting, the current device is unified to be the same as AC after networking, client_cnt represents the client count, my_seq represents the system starting time uptime value for avoiding replay attack in the network, monotonically increasing, and when responding to a certain message, my_seq is the local terminal seq, and y_seq is the my_seq of the received message.
S12, after receiving the election message, other APs select a first waiting time for random dormancy and then respond to the corresponding election message, wherein the first waiting time is generally 1-251ms and is used for staggering the response time among the APs and avoiding network congestion caused by a large number of data messages.
And S13, after any AP receives the election messages sent by other APs, extracting the equipment parameter information of the corresponding AP, calculating equipment parameter integral, comparing the equipment parameter integral with the equipment parameter integral of the AP, and if the equipment parameter integral of the AP is the largest, using the AP as a candidate AC, and continuously sending the election messages twice at intervals of second waiting time, wherein the second waiting time is longer than the first waiting time, and is generally about 1S, so that the dormant AP responds in time, and the accuracy of the election result is ensured.
Specifically, the device parameter integration is calculated by adding N times the value of the protocol version number to the value of the total memory size of the device, where N is a fixed parameter, typically N is much larger than the value of the total memory size of the device, for example 100000, where the total memory size of the device is typically denoted as MB, and its values, for example 256, 512, 1024, etc., so as to ensure that the first choice is the protocol version number when the protocol version number, the higher version may be able to manage more configuration parameters, and the second choice is the total memory size of the device, and the more memory may represent higher device performance.
And when the equipment parameter integral comparison is carried out by at least two APs, if the equipment parameter integral is the same, continuing to compare the equipment subentry parameter integral, wherein the equipment subentry parameter integral is calculated in a mode of adding the value of the last 2 bytes of the equipment MAC address to the value of the last 2 bytes of the equipment IP address. For example (0 x4455< < 16) |0x0103.
And S14, after the candidate AC continuously transmits the election message twice, if the election message with the equipment parameter integral larger than the election message is not received, the candidate AC is successfully elected, and the candidate AC is determined to be the AC in the local area network.
Specifically, after determining the AC in the local area network in step S10, the AC broadcasts an AC declaration message to the local area network every third waiting time, where the third waiting time may be 2S.
The AC declaration message may be as follows:
{"cmd":"ac_announce","mac":"00:11:22:33:44:55","ip":"192.168.1.3","gw":"192.168.1.254","proto_version":1,"total_mem":256,"version":"1.0.1","product":"NAP830","score":100256,"sub_score":100,"is_ac":1,"configed":0,"ac_magic":"12345678","client_cnt":0,"my_seq":100}
the keywords to be sent are the same as the election message for simplicity, except that the command codes are different.
After the AP monitors the AC statement message, an AC request message is sent according to the information in the AC statement message; and the AC responds to the AC response message after receiving the AC request message, so as to realize AC verification.
The AC request message may be as follows:
{"cmd":"ac_request","mac":"00:11:22:33:44:55","ip":"192.168.1.3","gw":"192.168.1.254","proto_version":1,"total_mem":256,"version":"1.0.1","product":"NAP830","score":100256,"sub_score":100,"is_ac":1,"configed":0,"ac_magic":"12345678","client_cnt":0,"my_seq":100}
the AC response message may be as follows:
{"cmd":"ac_response","mac":"00:11:22:33:44:55","ip":"192.168.1.3","gw":"192.168.1.254","proto_version":1,"total_mem":256,"version":"1.0.1","product":"NAP830","score":100256,"sub_score":100,"is_ac":1,"configed":0,"ac_magic":"12345678","client_cnt":0,"my_seq":100,"you_seq":100}
Wherein, the value of you_seq is equal to the value of my_seq in the AC request message, thereby enhancing security.
When a new AP is accessed to the local area network, the new AP monitors fourth waiting time of the network, the fourth waiting time is larger than the third waiting time, for example, the fourth waiting time is 5S, whether the local area network has AC or not is judged, if yes, checksum connection is carried out according to an AC checksum AC connection process, and if not, AC election is participated according to a step S10 process.
Further, when the new AP accesses the local area network with the AC, the new AP performs AC election by comparing respective equipment parameter integral with the current AC, wherein if the equipment parameter integral of the current AC is large, the AC identity is reserved, otherwise, the new AP acts as the AC in the local area network.
When there is a high version of the AP in the network, an AC handoff is necessary because the high version may be able to manage more configuration parameters.
And S20, after the AC election in the local area network is determined, other APs are connected with the AC, and the APs are controlled by the AC.
Specifically, the process of connecting other APs to the AC includes:
s21, the AP sends a connection request to the AC.
The AP connection request message may be as follows:
{"cmd":"ac_connect'","mac":"00:11:22:33:44:55","ip":"192.168.1.3","gw":"192.168.1.254","proto_version":1,"total_mem":256,"version":"1.0.1","product":"NAP830","score":100256,"sub_score":100,"is_ac":1,"configed":0,"ac_magic":"12345678","client_cnt":0,"my_seq":100}
s22, the AC issues an RSA public key.
The AC RSA public key message may be as follows:
{“cmd”:”ac_rsa”,“rsa”:“xxxxxxxxxxx”,“your_seq”:100}
wherein, the AP needs to check you_seq.
S23, the AP generates an AES password and encrypts the message by using the RSA public key.
The AP AES cipher message may be as follows:
{“cmd”:“ac_pwd”,“pwd”:”0123456789123456”,“my_seq”:101}
Wherein pwd is the random password generated by AP and used for subsequent AES encryption, the length is 16, and the message is encrypted and sent by the RSA public key of the received AC.
S24, the AES password of the AP is obtained by the AC decryption message.
S25, the AP sends hello keep-alive messages.
The hello keep-alive message for the AP to AC can be as follows:
{“cmd”:“ac_hello”,“my_seq”:102,“md5”:”1234567890123456”}
From the message, the subsequent messages are encrypted by using an AES128CBC encryption mode, md5 represents a parameter file md5 of the AP, and the AC can know whether the parameters of the AP and the AP are the same through the md 5.
S26, the AC responds to the hello keep-alive message and issues an AP configuration file.
The hello keep-alive message for the AC to the AP can be as follows:
{“cmd”:“ac_hello”,“my_seq”:101,“your_seq”:102}
Wherein the AP needs to check you_seq.
When AC parameter md5 is different from AP, ac_para is transmitted, for example:
{“cmd”:“ac_para”,“data”:”xxxxxxxxxxxx”,“my_seq”:102,“md5”:“1234567890123456”}
and after the AP receives the parameters, the parameters are applied, so that the purpose of AP synchronous AC parameter configuration is realized.
S27, the AP applies the configuration file and reports the WIFI parameter information to the AC.
When some data of the AP changes, the information can be actively reported to the AC, such as the current channel of the WIFI and other parameter information.
The active report message from AP to AC may be as follows:
{“cmd”:“ac_upload_data”,“data”:”xxxxxxxxx”,“my_seq”:105}
After the AP is started, a random magic number is generated. After networking, ac_magic of all APs is set to ac magic, and only then will the same device be networked. The mac of the AP may report to the AC by active reporting.
When the user enables the function of prohibiting other devices from accessing, the mac of all the currently online ap lists and the private mac of the ap are saved. The subsequently accessed AP requires the user to manually allow the new device to access to synchronize the parameters. Thus, for an already stable layout point, the acquisition of parameters by unfamiliar device access can be avoided.
In another embodiment, the present invention further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements the steps of the local area network AP ad hoc network method described above.
The computer storage media of embodiments of the application may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or FLASH memory FLASH), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Through the setting, the AP equipment of different factories can be conveniently and uniformly managed by a user.
The above embodiments are only preferred embodiments of the present invention, and not intended to limit the scope of the present invention, but all changes made by adopting the design principle of the present invention and performing non-creative work on the basis thereof shall fall within the scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411818699.2A CN119697812A (en) | 2024-12-11 | 2024-12-11 | A local area network AP self-organizing network method and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411818699.2A CN119697812A (en) | 2024-12-11 | 2024-12-11 | A local area network AP self-organizing network method and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN119697812A true CN119697812A (en) | 2025-03-25 |
Family
ID=95036654
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411818699.2A Pending CN119697812A (en) | 2024-12-11 | 2024-12-11 | A local area network AP self-organizing network method and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN119697812A (en) |
-
2024
- 2024-12-11 CN CN202411818699.2A patent/CN119697812A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11140172B2 (en) | Method for automatically applying access control policies based on device types of networked computing devices | |
| US12501237B2 (en) | Communication system, method and device for miniature intelligent sensor | |
| EP1872250B1 (en) | Wireless device discovery and configuration | |
| US9407507B2 (en) | Topology discovery in a hybrid network | |
| JP2019509703A (en) | Cloud-based control of Wi-Fi networks | |
| WO2020056558A1 (en) | Bluetooth cluster online upgrade method and apparatus | |
| JP2010200306A (en) | Reduced power state network processing | |
| CN112566113B (en) | Key generation and terminal network distribution method, device and equipment | |
| KR20060121952A (en) | Method and system for optimizing data transfer between network devices | |
| CN101288063B (en) | Wireless device discovery and configuration | |
| CN106792694B (en) | An access authentication method and access device | |
| CN110326262A (en) | Wireless device is abstracted as Virtual Ethernet | |
| CN119697812A (en) | A local area network AP self-organizing network method and storage medium | |
| CN120416876A (en) | Star Flash MESH networking device access configuration method, equipment, system and media | |
| CN119696872A (en) | A local area network AC fixed access method and storage medium | |
| WO2025060265A1 (en) | Device discovery method and apparatus, and electronic device and storage medium | |
| US20240073783A1 (en) | Ble link cluster control and management | |
| CN119697138A (en) | A local area network AP self-organizing network recovery method and storage medium | |
| US9923810B1 (en) | Application update using multiple disparate networks | |
| JP5915755B2 (en) | Information processing device | |
| CN115514587A (en) | Communication device, method, electronic device and storage medium | |
| JP2003258817A (en) | Wireless communication device, control method thereof, and program for realizing the control method | |
| US12184494B2 (en) | Methods and systems for automatic open shortest path first (OSPF) configuration | |
| CN119729477B (en) | Terminal networking method, device, computer equipment and storage medium | |
| CN103200707B (en) | A kind of middleware of the meteorological data observation system based on wireless sensor network |
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 |