A kind of analogue simulation system and method for AP and STA
Technical field
The present invention relates to the communications fields, being applied to cloud AC (Access Conrroller, access control more particularly to one kind
Device processed) system the AP (Access Point, access node) and STA (Station, terminal) based on TR069 agreements emulation
Simulation system and method.
Background technology
For traditional WLAN since there is limitations, it is bigger to meet those wireless network scales,
And highly dependent upon the advanced level user of wireless traffic.These advanced enterprise customers propose the wireless network of a new generation new
Characteristic requirements.First, wireless network needs total solution, that is, the system that can be managed collectively;Secondly, wireless network is real
It applies simple, such as can automatically be obtained by tool where to place AP best, best using which frequency range;Again
Have, wireless network must be safe wireless network, this is most important;In addition, wireless network wants can to support voice and more
Business.Based on requirements above, the wireless network of new generation based on wireless controller is suggested.
Wireless controller (Wireless Access Point Controller) is a kind of network equipment, is used for centralization
Wireless aps are controlled, are the cores of a wireless network, all wireless aps being responsible in wireless network, to the management packet of AP
It includes:Issue configuration, modification relevant configured parameter, radio-frequency intelligent management, access security control etc..Currently, AC can generally be done
It is managed to 1024 AP.And the AC of large capacity can then reach 8192 AP of support.
Also, with based on virtualization technology software defined network SDN (Software Defined Network,
SDN) and network function virtualizes the development trend of NFV (Network Function Virtualization, NFV) increasingly
Clearly, numerous research institutions, communication equipment quotient, communications service provider begin one's study the network service function remodeling under traditional mode
Deployment is beyond the clouds.Such as:Deployment AC (Access Controller, access controller) beyond the clouds, referred to as cloud AC.High in the clouds portion
Administration AC has differences with traditional mode deployment, is concentrated mainly on access node AP and needs to be connected with AC across Internet.
Way relatively common at present is to transmit to be managed AP based on the message of TR069 agreements by long interface channel.
But based on the system of cloud AC, the manageable AP quantity of planning deployment can generally reach tens thousand of, even
It is hundreds of thousands platform.Every AP can provide tens access capabilities to hundreds of STA again.Therefore, reality exploitation test environment
In the so many AP and STA tests for carrying out true environment can not possibly be provided, so to cloud AC systems in the process of development be
System volume test proposes acid test.
Invention content
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide the analogue simulations of AP and STA a kind of
System and method in the cloud AC systems for solving the prior art, can not carry out the simulation test problem of extensive AP and STA.
In order to achieve the above objects and other related objects, the present invention provides a kind of analogue simulation system of AP and STA, application
In cloud AC systems, the analogue simulation system of the AP and STA include:One configuration management module and at least one AP and STA moulds
Quasi- module;The configuration management module inputs and parses the configuration file of AP and STA for selecting node deployment mode;It is described
AP and STA analog modules are used to be communicated with the cloud AC systems according to the node deployment mode and configuration file simulation
AP and STA.
Optionally, the configuration file is XML file, including need to simulate AP quantity, STA behavioral strategies, the cloud AC
The port numbers of the IP address of system and long Connection Service end.
Optionally, the configuration management module parses according to the configuration file and generates MAC Address collection and node IP address
Mapping relations, calculate the accessible maximum STA quantity of an AP.
Optionally, the node deployment mode includes single node deployment and distributed node deployment.
Optionally, under single node deployment, the configuration management module and all AP and STA analog modules
It is deployed on the same single node.
Optionally, under distributed node deployment, the configuration management module is deployed on configuration management node, often
One AP and STA analog module is deployed in respectively on different distributed nodes.
Optionally, AP the and STA analog modules include:Instance management submodule, connection management submodule, information receiving and transmitting
Submodule and STA dynamic behaviours manage submodule;The instance management submodule is used to be simulated according to the configuration file and generate
AP and the STA example of respective numbers, and preserve AP data, AP business configurations data and STA in AP the and STA analog modules
Data on flows;The connection management submodule is used for according to the AP and STA examples, the IP address of the cloud AC systems and long company
Port is connect, the long interface channel with the cloud AC systems is established;The information receiving and transmitting submodule is used for logical according to the long connection
Road receives the message that the cloud AC systems are sent, and the cloud AC systems are returned message to after simulation process;The STA dynamic rows
It is used to change the upper downtime of STA according to configuration file dynamic for management submodule and uses flow, and be uploaded to institute
State instance management submodule.
Optionally, the instance management submodule according to the IP address of this node from MAC Address collection and node IP address
The mapping relations obtain MAC Address collection, generate corresponding AP and STA examples.
Optionally, the AP and STA examples include the MAC Address of AP, the MAC Address of STA, SSID, AP types, AP or more
Row flow, STA use flow, the STA quantity of access, black and white lists, business configuration data and STA data.
The invention also discloses the simulation method of AP and STA a kind of, it is applied to cloud AC systems, the AP and STA's
Simulation method includes:Input configuration file;It parses the configuration file, generates reflecting for MAC Address collection and node IP address
Relationship is penetrated, and calculates the accessible maximum STA quantity of an AP;Decision node deployment way:It is disposed if it is single node, then
Configuration management module, all AP and STA analog modules are deployed on a single node;It is disposed if it is distributed node,
Then the configuration management module is deployed on configuration management node, each described AP and STA analog module is deployed in respectively
On different distributed nodes;For the single node or each described distributed node:According to the mapping relations, mould
Quasi- AP and the STA example for generating respective numbers;Establish the single node or the distributed node and the cloud AC systems
Long interface channel realizes that the single node or the distributed node and the message of the cloud AC systems transmit, and according to institute
The message of cloud AC systems is stated, simulation process is carried out;Wherein, it the upper downtime of STA and is managed by dynamic analog using flow.
As described above, the analogue simulation system and method for a kind of AP and STA of the present invention, provide complete set and effective
For test cloud AC systems can management capacity system and method, also, on the basis of single node is disposed, it is also proposed that
The deployment way of distributed node has effectively expanded the quantity of virtual AP and STA by the extension of distributed node, realizes
The simulation test of extensive AP and STA in cloud AC systems.
Description of the drawings
Fig. 1 is shown as the analogue simulation system of AP and STA disclosed by the embodiments of the present invention a kind of in single node deployment side
Structural schematic diagram under formula.
The analogue simulation system that Fig. 2 is shown as a kind of AP and STA disclosed by the embodiments of the present invention is disposed in distributed node
Structural schematic diagram under mode.
Fig. 3 is shown as a kind of flow diagram of the simulation method of AP and STA disclosed by the embodiments of the present invention.
Component label instructions
The analogue simulation system of 100 AP and STA
110 configuration management modules
120 AP and STA analog modules
121 instance management submodules
122 connection management submodules
123 information receiving and transmitting submodules
124 STA dynamic behaviours manage submodule
200 cloud AC systems
Specific implementation mode
Illustrate that embodiments of the present invention, those skilled in the art can be by this specification below by way of specific specific example
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the absence of conflict, following embodiment and implementation
Feature in example can be combined with each other.
Please refer to attached drawing.It should be noted that the diagram provided in following embodiment only illustrates this hair in a schematic way
Bright basic conception, then in schema only display and related component in the present invention rather than component count when according to actual implementation,
Shape and size are drawn, when actual implementation kenel, quantity and the ratio of each component can be a kind of random change, and its component
Being laid out kenel may also be increasingly complex.
Embodiment 1
In order to solve in reality exploitation test environment, the true environment of a large amount of AP and STA can not be provided for cloud AC systems
Test, present embodiment discloses a kind of analogue simulation systems of AP and STA applied to cloud AC systems.
The analogue simulation system of the AP and STA applied to cloud AC systems of the present embodiment is based on TR-069 agreements, with reality
The analog simulation test of cloud AC systems is now accessed to high-volume AP.Wherein, TR-069 agreements full name is that " CPE wide area network management is assisted
View ", it provides the general framework and agreement that configuration is managed to home network device in next generation network, is used for from network
Side carries out remote centralized management to equipment such as gateway, router, set-top boxes in home network.
As depicted in figs. 1 and 2, the analogue simulation system 100 of the AP and STA of the present embodiment include a configuration management module
110 and at least one AP and STA analog modules 120.Wherein,
Configuration management module 110 inputs and parses the configuration file of AP and STA for selecting node deployment mode.
Node deployment mode is divided into single node deployment and distributed node deployment:
Single node is disposed as shown in Figure 1, the configuration management module 110 of the present embodiment and all AP and STA analog modules
120 are deployed on the same single node, can only provide 60000 AP virtual analog energy;
Distributed node is disposed as shown in Fig. 2, the configuration management module 110 of the present embodiment is deployed in configuration management node again
On, each AP and STA analog module 120 is deployed on different distributed nodes respectively again.It is disposed using distributed node,
Millions of virtual AP analog capabilities can be provided according to the expansion energy of node.
Configuration file is XML file, and configuration file includes but not limited to the AP quantity that need to be simulated, STA behavioral strategies, cloud
The port numbers of the IP address of AC systems and long Connection Service end.Wherein, AP quantity maximum can reach millions of.
Configuration management module 110 is additionally operable to parsing configuration file:
1) it according to the STA behavioral strategies in configuration file, simulates downtime in the dynamic of STA and uses flow, from
And calculate the accessible STA maximum quantities of an AP;
2) parsing configuration file generates MAC (Media Access Control) address sets and the mapping of node IP address is closed
System.In the case where distributed node is disposed, the maximum port number of operating system is 65535, and an AP occupies a port,
Quantity of 60000 idle port numbers as the virtual AP on a node, 60000 AP can be simulated by a node in terms of
The quantity of distributed node needed for calculating, further distributes the IP address of each distributed node.
Further, in the case where distributed node is disposed, before distributed node is accessed configuration management node, match
Setting management module 110 must judge whether the IP address of the distributed node where AP and STA analog modules 120 meets from configuration text
The IP address parsed in part:If met, allow its access;If do not met, do not allow to access.
AP and STA analog modules 120 according to node deployment mode and profile module with cloud AC systems 200 for communicating
The AP and STA of letter.
In the present embodiment, as depicted in figs. 1 and 2, AP and STA analog modules 120 include instance management submodule 121,
Connection management submodule 122, information receiving and transmitting submodule 123 and STA dynamic behaviours manage submodule 124.
Instance management submodule 121 is used to simulate AP and the STA example for generating respective numbers according to configuration file, and preserves
AP data, AP business configurations data in analog module and STA flow amount data:
Instance management submodule 121 is according to the IP (Internet of node residing for AP and STA analog modules 120
Protocol) the mapping relations for the MAC Address collection and node IP address that address is parsed from configuration management module 110 obtain
Corresponding MAC Address collection, generates corresponding AP and STA examples.Wherein, AP and STA examples include but not limited to AP MAC Address,
The MAC Address (it is unique to generate MAC Address, will not be repeated) of STA, SSID (Service Set Identifier, services set
Mark), AP types, AP uplink and downlink flows, STA use flow, the STA quantity of access, the basic AP information such as black and white lists and
Business configuration data and STA data.
Further, instance management submodule 121, which also provides, can be read or change AP and the AP essential informations in STA examples
Interface give connection management submodule 122, information receiving and transmitting submodule 123 and STA dynamic behaviours management submodule 124 call.
Connection management submodule 122 is used for according to AP and STA examples, the IP address of cloud AC systems 200 and long connectivity port,
Establish the long interface channel with cloud AC systems 200:
Connection management submodule 122 triggers the long connection client of equal amount according to the AP quantity in configuration file, long
Port used in interface channel is port idle in 65535 operating system ports, and port point is carried out by sequence from small to large
Match.After the analogue simulation system of the present embodiment starts, cloud AC systems 200 are obtained in this module from configuration management module 110
IP address and long connectivity port, to establish and the long interface channels of cloud AC systems 200.
Information receiving and transmitting submodule 123 is used to receive the message that cloud AC systems 200 are sent according to long interface channel, and at simulation
Cloud AC systems 200 are returned message to after reason:
Information receiving and transmitting submodule 123 receives cloud AC systems 200 according to the long interface channel that connection management submodule is established
After message, analog service processing is carried out according to the type of message:If cloud AC systems 200 intentionally get the information of AP or business is matched
Data are set, information receiving and transmitting submodule 123 obtains this AP data from instance management submodule 121 and by corresponding long company
It connects road and is sent to cloud AC systems 200;If cloud AC systems 200 wish to change the business configuration data of AP, information receiving and transmitting submodule
Block 123 calls the corresponding interface in instance management submodule 121 to go modification AP business configuration data.In addition, information receiving and transmitting submodule
Block 123 can also actively send messages to cloud AC systems 200.
STA dynamic behaviours manage upper downtime and the use that submodule 124 is used to change according to configuration file dynamic STA
Flow, and it is uploaded to instance management submodule 121:
STA dynamic behaviours manage submodule 124 according to the behavioral strategy in the STA behavioral strategies in configuration file come dynamic
Simulation STA upper downtime and use flow.STA behavioral strategies can be divided into be commonly used, generally use and less use.
Defined according to the difference of STA behavioral strategies upper downtime frequency and using flow number.When STA reaches the standard grade, STA dynamics
This STA can be associated with corresponding AP by behavior management submodule 124 in real time, when STA is offline;STA dynamic behaviours manage submodule
124 can cancel and the association of corresponding AP in real time.STA reach the standard grade state when, STA dynamic behaviours manage submodule 124 also by mould
The data on flows drawn up is sent to instance management submodule 121 and is updated and preserves in real time.
In addition, in order to protrude the innovative part of the present invention, it will not be proposed by the invention with solution in the present embodiment
The less close unit of technical problem relationship introduces, but this does not indicate that there is no other units in the present embodiment.
Embodiment 2
The analogue simulation side of present embodiment discloses a kind of AP and STA applied to cloud AC systems based on TR-069 agreements
Method, to complete the analog simulation test that high-volume AP accesses cloud AC systems.
As shown in figure 3, AP the and STA simulation methods of the present embodiment include:
Input configuration file;Wherein, configuration file is XML file, the AP quantity that need to including but not limited to simulate, STA rows
For strategy, the port numbers of the IP address and long Connection Service end of cloud AC systems.
Configuration file is parsed, the mapping relations of MAC Address collection and node IP address are generated, and calculates what an AP can access
Maximum STA quantity;Wherein, maximum STA quantity is to simulate the dynamic of STA or more according to the STA behavioral strategies in configuration file
The line time and use flow, to calculate acquisition.
Decision node deployment way:
If it is single node dispose, then by configuration management module, all AP and STA analog modules be deployed in one it is single
On node;
It disposes, then the configuration management module is deployed on configuration management node if it is distributed node, each
AP the and STA analog modules are deployed in respectively on different distributed nodes.
For single node or each distributed node:
According to the mapping relations of MAC Address collection and node IP address, simulation generates AP and the STA example of respective numbers:Root
According to mapping relations, corresponding MAC Address collection is obtained, corresponding AP and STA examples are generated.Wherein, AP and STA examples include but unlimited
In the MAC Address of AP, the MAC Address (it is unique to generate MAC Address, will not be repeated) of STA, SSID, AP types, AP uplink and downlinks
Flow, STA use flow, the STA quantity of access, the basic AP information such as black and white lists and business configuration data and STA data.
The long interface channel of single node or distributed node and cloud AC systems is established, realizes single node or distributed section
Point and the message of cloud AC systems are transmitted, and according to the message of cloud AC systems, carry out simulation process;Wherein, the upper downtime of STA
With use flow to be managed by dynamic analog:According to the AP quantity in configuration file, the long connection client of equal amount is triggered, it is long
Port used in interface channel is port idle in 65535 operating system ports, and port point is carried out by sequence from small to large
Match.Also, after the message for receiving cloud AC systems, simulation process can be correspondingly carried out.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection domain of this patent
It is interior;To either adding inessential modification in algorithm in flow or introducing inessential design, but its algorithm is not changed
Core design with flow is all in the protection domain of the patent.
It is not difficult to find that the present embodiment is embodiment of the method corresponding to those in the first embodiment, the present embodiment can be with first in fact
Example is applied to work in coordination implementation.The relevant technical details mentioned in first embodiment are still effective in the present embodiment, in order to reduce
It repeats, which is not described herein again.Correspondingly, the relevant technical details mentioned in the present embodiment are also applicable in first embodiment.
In conclusion the analogue simulation system and method for a kind of AP and STA of the present invention, provide complete set and effective
For test cloud AC systems can management capacity system and method, also, on the basis of single node is disposed, it is also proposed that
The deployment way of distributed node has effectively expanded the quantity of virtual AP and STA by the extension of distributed node, realizes
The simulation test of extensive AP and STA in cloud AC systems.So the present invention effectively overcome it is in the prior art it is various lack
It puts and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology can all carry out modifications and changes to above-described embodiment without violating the spirit and scope of the present invention.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should by the present invention claim be covered.