Wireless network deployment method and system
Technical Field
The invention relates to the technical field of wireless communication, in particular to a wireless network deployment technology.
Background
A wireless local area network WLAN (wireless local area network) provides a wireless connection service of a local area network, and a wireless Access Point (AP) is a wireless transceiver in the wireless local area network, and is used to convert data received from a wired network, such as the Internet, into a wireless signal for transmission, convert the received wireless signal into data, and forward the data to the wired network.
At present, the existing WiFi network with operation property is more and more common, and more nodes are provided for the AP, and centralized management of the AP becomes one of the most important characteristics. Usually, a WLAN wireless network is deployed in a small enterprise, the amount of demand of an AP is small, and an Access Controller (AC) and the AP are often deployed in the same two-layer network, and are easy to communicate and interconnect. When a large-medium enterprise deploys a wireless network, the number of APs is large, the network topology is complex, different AP subsets belong to different subnets, and how to quickly and effectively discover an AC by the APs is one of the important problems faced by network administrators.
The current AC discovery schemes mainly fall into the following categories:
(1) the discovery mode of DHCP Option 60 field is that the IP or domain name of AC is configured in the Option field of DHCP Server in network, and the IP address of AC is obtained while the IP address is distributed by DHCP Client of AP;
(2) a DNS discovery mode, namely, an IP address of the AC is obtained through a DNS request of the AP;
(3) an AP pre-configuration mode, namely, an IP address or a domain name of an AC is configured in an AP local file in advance;
(4) the broadcast discovery mode, i.e. the AP requests the AC to reply to its IP address by sending a broadcast message.
The above technical solution (1) requires that the AP and the AC belong to the same two-layer broadcast domain, otherwise they cannot operate. In addition, if the network does not support the DHCP Server or supports the DHCP Server but does not support the configuration Option field, the network can not work, and has considerable limitation; the technical scheme (2) requires the network to support DNS service, otherwise, the AC can not be found; according to the technical scheme (3), a configuration mode is pre-configured, when the IP or domain name of the AC is changed, each AP needs to be modified by a manual mode, and the method is very complicated and poor in maintainability; the technical scheme (4) has the same disadvantages as the scheme (1), namely, the AP and the AC both belong to a two-layer broadcast domain, and the message between the AP and the AC needs to be back and forth for at least two times to obtain the IP address or the domain name of the AC;
therefore, it is necessary to invent a new wireless network deployment technology to quickly discover the AC, so as to overcome the above-mentioned drawbacks of the prior art, and the problem to be overcome in the industry is really a challenge.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method and a system for deploying a wireless network to quickly discover an AC, so as to solve the problem that the AC cannot be quickly sent when the wireless network is deployed in the prior art.
To achieve the above and other objects, the present invention provides a wireless network deployment method, comprising: step S1: broadcasting a broadcast message containing a network address of the wireless controller in a broadcast domain periodically through a broadcasting module; step S2: the wireless access equipment in the broadcast domain receives the broadcast message; step S3: the wireless access equipment analyzes the broadcast message to obtain the network address of the wireless controller; and step S4: and the wireless access equipment initiates a connection request to the wireless controller according to the analyzed network address to request to access a wireless network.
Preferably, the radio control and the radio access device belong to a broadcast domain, and in step S1, the broadcast message is periodically broadcast through the radio controller.
Preferably, the broadcasting module is a personal computer loaded with message broadcasting software. Further, when the wireless controller and the wireless access device do not belong to the same broadcast domain, in step S1, the personal computer is used to access each sub-network respectively, so as to broadcast the broadcast message periodically in the broadcast domain of the sub-network.
Preferably, the broadcast module is a manager of a wireless access device, in step S1, the broadcast message is periodically broadcast through a management interface of the manager of any wireless access device logged in the wireless network, and other wireless access devices in the same broadcast domain receive the broadcast message.
The invention also proposes a wireless network deployment system for implementing the above method, said system comprising: the broadcast module is used for regularly broadcasting a broadcast message containing the network address of the wireless controller in a broadcast domain; the wireless access equipment is positioned in the broadcast domain, receives the broadcast message, analyzes the broadcast message to obtain the network address of the wireless controller, and sends a connection request to the wireless controller according to the network address; and the wireless controller receives the connection request and processes the connection request so as to enable the wireless access equipment to access the wireless network.
Compared with the prior art, the invention mainly broadcasts the network address of the wireless controller (AC) on the wireless network in a broadcast domain periodically through the broadcast module, such as a personal computer loaded with message broadcast software, an AP manager or the wireless controller AC, so that the wireless access equipment (AP) in the same broadcast domain can start to acquire the network address of the wireless controller, and then sends a connection request to the wireless controller to request to access the wireless network. The invention actively broadcasts the network address of the wireless controller AC through the broadcasting module, thereby not only reducing the mutual messages, but also enabling the wireless access equipment AP in the subnet of the same broadcasting domain to rapidly acquire the network address of the AC, thereby solving the problem that the AC is difficult to find when the existing wireless network is deployed.
Drawings
The above features, technical features, advantages and implementations of a wireless deployment system and method are further described in the following detailed description of preferred embodiments in a clearly understandable manner, in conjunction with the accompanying drawings.
FIG. 1 is a basic architecture diagram of a wireless deployment system of the present invention; and
fig. 2, 3 and 4 are flowcharts of a wireless deployment method according to the present invention.
The reference numbers illustrate:
10. broadcast module, 20 wireless access device, 30 wireless controller.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
Fig. 1 is a schematic diagram of a basic architecture of a wireless network deployment system according to the present invention. The system includes a broadcasting module 10, a wireless access device 20, and a wireless controller 30, and the present invention will be described in detail below. In the present invention, the number of wireless access devices 20 and wireless controllers 30 is not limited to the number shown in fig. 1, depending on the size of the wireless network to be deployed.
The broadcasting module 10 is configured to periodically broadcast a broadcast message including a network address of a wireless controller in a broadcast domain. The wireless access device 20 in the broadcast domain can receive the broadcast message after being powered on, analyze the broadcast message to obtain the network address of the wireless controller, and then send a connection request to the wireless controller 20 according to the network address to request to access the wireless network.
It should be noted that, the present invention uses the broadcast module to define the network address of the active broadcast wireless controller, so that the wireless access device can quickly discover the wireless controller and then access the network through the wireless controller.
In the case that the wireless access device (AP)20 and the wireless controller (AC)30 belong to a two-layer network, that is, the wireless access device 20 and the wireless controller 30 belong to a two-layer broadcast domain, the broadcast module 10 according to the present invention may be the wireless controller 30 itself, in which case, a method for deploying a wireless network by using the system according to the present invention is shown in fig. 2, and the method includes the following steps.
First, step S1 is executed: the radio controller is used to periodically send broadcast messages containing its network address. In this embodiment, the radio controller sends a specific multicast two-layer packet with a destination MAC address of 01:80: C2:01:01:01 through the ethernet interface every 3 seconds, and the packet field AC _ IP is its own IP address. Step S2 is then performed.
Step S2: and the wireless access equipment is electrified to receive the broadcast message and analyzes the network address related to the wireless controller. After the AC _ IP field of the message is analyzed to obtain the IP address of the AC, the AP can initiate connection to the AC and requires to access the network.
Step S3: and the wireless access equipment initiates a connection request to the wireless controller according to the analyzed network address to request to access a wireless network. The wireless controller then processes the request to access the wireless access device to the wireless network.
In another embodiment of the present invention, the broadcast module is a personal computer PC, and the PC is loaded with software capable of broadcasting the broadcast packet, so that when the wireless access device is not connected to the wireless controller network, the broadcast packet is periodically sent through the PC, and then wireless network deployment is performed, and a specific method of deployment is shown in fig. 3. The method described in this embodiment is a variation on the method shown in fig. 2, and includes the following steps:
first, step S1' is executed to broadcast the broadcast message periodically through the PC. The specific broadcasting method comprises the following steps: and accessing an exchanger port which is in the same broadcast domain with the wireless access equipment AP through an Ethernet port of the PC, opening broadcast message software of the PC, filling an IP address with a destination MAC address of 01:80: C2:01:01 and an AC _ IP field of AC, setting a sending frequency of one broadcast message for 3 seconds, and clicking to send, wherein the broadcast message is broadcasted to all wireless access equipment (AP) in the same broadcast domain.
Step S2: and the wireless access equipment in the broadcast domain receives the broadcast message and analyzes the broadcast message to acquire the network address of the wireless controller.
Step S3: and the wireless access equipment initiates a connection request to the wireless controller according to the analyzed network address to request to access a wireless network.
In other embodiments of the present invention, the wireless access device and the wireless controller belong to different subnets, that is, are not in the same broadcast domain, the PC may be used to access each subnet, and then the broadcast message software on the PC is used to execute the step S1', and then the steps S2 and S3 are sequentially executed to enable the wireless access device to quickly find the wireless controller, thereby completing the wireless network deployment.
In another embodiment of the present invention, the broadcast module 10 may be replaced with a manager of a wireless access device, and the detailed steps of implementing wireless network deployment by periodically broadcasting the broadcast messages using an active discovery function of the manager are shown in fig. 4, where the method includes the following steps.
Step S1 ″: logging in a WEB interface of a manager of the wireless access equipment by using a PC (personal computer), enabling an active discovery function of the wireless access equipment, filling in an IP address with a destination MAC address of 01:80: C2:01:01:01 and an AC _ IP field of AC, setting a sending frequency of a broadcast message of 3 seconds, and after the setting is finished, broadcasting the broadcast message by the wireless access equipment through a WAN (wide area network) port according to the setting.
Step S2: the other wireless access devices in the same broadcast domain as the wireless access device described in step S1 ″ receive the broadcast message, and analyze the AC _ IP field of the broadcast message to obtain the IP address of the AC.
Step S3: and the wireless access equipment initiates a connection request to the wireless controller according to the analyzed network address to request to access a wireless network.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.