Background
The wireless router is applied to user internet and has a wireless coverage function.
The wireless router can be regarded as a repeater, and the broadband network signal connected to the wall of a home is forwarded to nearby wireless network devices, such as a notebook computer, a mobile phone supporting WIFI, a tablet and all devices with WIFI function, through an antenna.
At present, a wireless router generally supports four Access modes, namely, a private X digital Subscriber Line/Cable (xDSL/Cable), a Dynamic xDSL (X digital Subscriber Line/Cable), and a Point to Point tunneling Protocol (PPTP), and also has other network management functions, such as a Dynamic Host Configuration Protocol (DHCP) service, a Network Address Translation (NAT) firewall, a Media Access Control (MAC) address filtering, a domain name Dynamic function, and the like.
The wireless router is widely applied to various network environments such as families, enterprises and the like because of the mobility, simplicity and convenience of wireless internet access, and how many users can be accessed by the wireless router in wireless mode becomes an important index for measuring the performance of the router. More accurately, what users can be accessed by the router is not only simply connected to the wireless network, but also used to access the network wirelessly and occupy bandwidth resources, that is, the number of users that can be accessed on the premise of ensuring that each user still can maintain reasonable user experience and reasonable bandwidth is called the number of concurrent users.
The existing method for testing the concurrency of the wireless router is to use a real wireless client to connect the wireless router to surf the internet, browse a webpage, watch a video and the like, and see whether the number of terminals which can be supported can meet the product requirements. The method is influenced by the real network bandwidth and the performance of a website server and a video server during testing, and the number of concurrent users of the wireless router is difficult to accurately test; and a real user terminal is needed to be used, which may be dozens, dozens or even hundreds, and test resources are consumed; moreover, the operation of so many real terminals to surf the internet requires a certain number of testers and longer test time, which wastes manpower and time.
Based on the above disadvantages, it is necessary to design a time-saving and labor-saving test scheme for the number of concurrent users of a wireless router.
Disclosure of Invention
The invention discloses a system and a method for testing the number of concurrent users of a wireless router in multiple aspects, wireless terminal users are simulated through network flow simulation test software, a large number of real terminals are not needed, and test resources are saved; the operation is simple and convenient, only one client and one server are needed, and the labor and time cost are saved.
One aspect of the present invention provides a system for testing the number of concurrent users of a wireless router, comprising a wireless access node, a server and a client, wherein the client is wirelessly connected to a local area network side of the wireless access node, and the server is connected to a wide area network side of the wireless access node by wire,
the server is used for installing network flow simulation test software and creating a pair to communicate with the client; running network flow simulation test software to obtain the maximum throughput M; comparing M with N × mR, wherein N is the number of users requiring concurrency and is a positive integer, and mR is the bandwidth occupied by each user requiring concurrency; if M < N mR, judging the concurrency number which does not meet the requirement; if M is larger than or equal to N M, setting the upper and lower or downlink throughput mS of the pair as mR, and running the network flow simulation test software to obtain the real throughput mA of each user; comparing whether the mA and the mR are equal, and if the mA is equal to the mR, judging the number of the concurrent users meeting the requirement;
the client is used for installing network flow simulation test software, communicating with the server through the created pair, and completing the delivery and downlink flow test by matching the network flow simulation test software with the server.
Preferably, the server is further configured to determine that the required concurrency number is met if mA is less than mR, and mS is incremented by the step size of 0.1Mbps until mA is equal to mR, and determine that the required concurrency number cannot be met if mS is incremented by the step size of 0.1Mbps until mA is greater than M/N.
Preferably, the server and the client are respectively used for setting an IP address and script information of the pair.
Preferably, the IP address specifies which terminal of the server and the client is to initiate and send to.
Preferably, the server is a server PC, and the client is a client PC.
Preferably, the information of each pair represents the relevant information of one user, i.e. one wireless terminal user is simulated, and the pair is copied to N pieces, which represents that N users are simulated.
Another aspect of the present invention provides a method for testing the number of concurrent users of a wireless router, where a client is connected to a local area network side of a wireless access node through a wireless network, and a server is connected to a wide area network side of the wireless access node through a wired network, the method including:
installing network flow simulation test software in the client and the server, and creating a pair between the client and the server;
running network flow simulation test software to obtain the maximum throughput M;
comparing M with N × mR, wherein N is the number of users requiring concurrency and is a positive integer, and mR is the bandwidth occupied by each user requiring concurrency; if M < N mR, judging the concurrency number which does not meet the requirement;
if M is larger than or equal to N M, setting the upper and lower or downlink throughput mS of the pair as mR, and running the network flow simulation test software to obtain the real throughput mA of each user;
and comparing whether the mA and the mR are equal, and if the mA is equal to the mR, judging the number of the concurrent users meeting the requirement.
Preferably, the method further comprises:
if the mA is less than the mR, the mS is increased by the step length of 0.1Mbps until the mA is equal to the mR, and the concurrency number meeting the requirement is judged;
if the mS is increased to a value larger than M/N by the step length of 0.1Mbps, the mA still cannot be equal to the mR, and the required concurrency number cannot be met.
Preferably, the method further comprises:
and setting the IP address and the script information of the pair in the server side and the client side respectively.
Preferably, the IP address specifies which terminal of the server and the client is to initiate and send to.
Preferably, the information of each pair represents the relevant information of one user, i.e. one wireless terminal user is simulated, and the pair is copied to N pieces, which represents that N users are simulated.
Preferably, the step of running the network traffic simulation test software to obtain the maximum throughput M specifically includes:
and (3) adopting a TCP (transmission control protocol) network protocol, selecting a Throughput script, and running network flow simulation test software to obtain the maximum Throughput M.
The invention simulates wireless terminal users through network flow simulation test software, does not need a huge number of real terminals, and saves test resources; the operation is simple and convenient, only one client and one server are needed, and the labor and time cost are saved; the WAN port of the wireless router and the connected server can reach the maximum transmission speed such as 100Mbps or 1000Mbps, and the bandwidth of the WAN port of the wireless router cannot become a bottleneck for supporting the required number of concurrent users by the wireless router compared with the real network bandwidth according to the difference of the network ports of different products.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical solutions described herein are applicable to various communication systems, such as current 2G, 3G communication systems and next-generation communication systems, such as Global System for Mobile communication (GSM) System, Code Division Multiple Access (CDMA) System, Time Division Multiple Access (TDMA) System, Wideband Code Division Multiple Access (WCDMA) System, Frequency Division Multiple Access (FDMA) System, Orthogonal Frequency Division Multiple Access (OFDMA) System, General Packet Radio Service (GPRS, General Packet Radio Service) System, universal Mobile telecommunications System (umts), Long Term Evolution (LTE) System, and other communication systems.
Additionally, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
As shown in fig. 1, the structural schematic diagram of a system for testing the number of concurrent users of a wireless router according to an embodiment of the present invention is shown, where the system for testing the number of concurrent users of a wireless router includes an Access Point (AP) 10, a Server (Network Server)11, and a Client (Client)12, where the Server 11 may be a Server PC, and the Client 12 may be a Client PC. The client 12 is connected to a Local Area Network (LAN) side of the AP10 by wireless, and the server 11 is connected to a Wide Area Network (WAN) side of the AP10 by wire. Network traffic simulation test software and Endpoint software (Endpoint) are installed on the server 11 and the client 12, for example, the network traffic simulation test software may be ixchar software, and the network traffic simulation test software may also be other network test software as long as it can simulate traffic tests.
The server 11 is configured to install network traffic simulation test software, create a pair to communicate with the client 12; running network flow simulation test software to obtain the maximum throughput M; comparing M with N × mR, wherein N is the number of users requiring concurrency and is a positive integer, and mR is the bandwidth occupied by each user requiring concurrency; if M < N mR, judging the concurrency number which does not meet the requirement; if M is larger than or equal to N M, setting the downlink throughput mS of the pair as mR, and operating the network flow simulation test software to obtain the real throughput mA of each user; and comparing whether the mA and the mR are equal, and if the mA is equal to the mR, judging the number of the concurrent users meeting the requirement.
The client 12 is configured to install network traffic simulation test software, communicate with the server 11 through the created pair, and complete downlink traffic testing through cooperation of the network traffic simulation test software and the server 11.
In another embodiment of the present invention, the server 11 is further configured to determine that the mA meets the requirement if mA < mR, mS is incremented by the step size of 0.1Mbps until mA ═ mR, and determine that the mA cannot meet the requirement if mS is incremented by the step size of 0.1Mbps until mA is greater than M/N.
In another embodiment of the present invention, if the upstream traffic is to be tested, the functions of the server 11 and the client 12 are substantially the same, except that the upstream throughput mS of the pair is set to mR.
In another embodiment of the present invention, the server 11 is further configured to determine that the required concurrency number is satisfied if mA < mR, mS is incremented by 0.1Mbps until mA ═ mR, and if mS is incremented by 0.1Mbps until mA is greater than M/N, mA still cannot be equal to mR, the required concurrency number cannot be satisfied.
Fig. 2 is a schematic flow chart of a method for testing the number of concurrent users of a wireless router according to another embodiment of the present invention.
Before the test of the number of concurrent users of the wireless router, the IP addresses of the server and the client are respectively set, so that normal communication between the server and the client can be ensured, namely, the throughput test can be carried out when network flow simulation test software is operated.
For example, after the network traffic simulation test software is opened for the server and the client, respectively, a pair is created first, where the pair includes an uplink and a downlink, and relevant information of the pair is set, including an IP address and script information. When setting the IP address, the Endpoint 1to the Endpoint 2 designates which terminal in the server and the client initiates and sends to which terminal. By setting the IP addresses of Endpoint 1 and Endpoint 2, the throughput flow direction of the test, that is, from the client to the server or from the server to the client, that is, the commonly-referred uplink and downlink network flows, can be determined. In practical use, downlink flow accounts for a great proportion, and the flow direction can be set from a server side to a client side.
Step 201, running network flow simulation test software to obtain the maximum throughput M.
For example, a TCP network protocol is adopted, a Throughput script is selected, and network traffic simulation test software is run to obtain the maximum Throughput M.
Step 202, compare M and N × mR.
Wherein, N is the number of users requiring concurrency and is a positive integer, and mR is the bandwidth occupied by each user requiring concurrency. If M < N × mR, judging that the concurrency number does not meet the requirement (step 207), and then ending the process; if M is greater than or equal to N M, the test is continued and step 203 is executed.
And 204, setting the downlink throughput mS of the pair as the mR, and running the network flow simulation test software to obtain the real throughput mA of each user.
For example, a send _ data _ rate parameter (i.e., an mS parameter) in an edit script of the network traffic simulation test software is set, that is, the downlink throughput of this pair, and a value mS of the parameter is set to the bandwidth mR occupied by each user of the required concurrency number. The information of each pair represents the relevant information of one user, namely, a wireless terminal user is simulated, and the pair is copied to N pieces, which represents that N users are simulated. And after the configuration is finished, running the network flow simulation test software to obtain the real throughput mA of each user.
Step 204, compare if mA and mR are equal.
If mA is equal to mR, the number of the concurrent users meeting the requirement is determined, that is, step 208, the process is ended; if mA < mR, step 205 is performed.
Step 205 and 206, mS is increased by the step length of 0.1Mbps, and if mA is less than or equal to M/N, the step is switched to 204; if mA > M/N, the number of concurrent users not meeting the requirement is determined, step 207, and the process ends.
For example, mS is incremented by 0.1Mbps until mA ═ mR, which is the number of concurrences that meet the requirement, step 208, and the process ends; if mA still cannot be equal to mR when mS is incremented to a value greater than M/N by 0.1Mbps, the required number of concurrences cannot be met, step 207, and the process ends.
In another embodiment of the present invention, if an uplink traffic is to be tested, the working processes of the server and the client are substantially the same, except that the uplink throughput mS of the pair is set to the mR.
In summary, by the method and the system for testing the number of concurrent users of the wireless router, when the performance of the concurrent number of the wireless router is evaluated, the wireless terminal users are simulated by the network traffic simulation test software, so that a huge number of real terminals are not needed, and the test resources are saved; the operation is simple and convenient, only one client and one server are needed, and the labor and time cost are saved; the WAN port of the wireless router and the connected server can reach the maximum transmission speed such as 100Mbps or 1000Mbps, and the bandwidth of the WAN port of the wireless router cannot become a bottleneck for supporting the required number of concurrent users by the wireless router compared with the real network bandwidth according to the difference of the network ports of different products.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.