Specific implementation mode
In order to make technical problems, technical solutions and advantageous effects to be solved by the present invention be more clearly understood, below in conjunction with
Accompanying drawings and embodiments, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used
To explain the present invention, it is not intended to limit the present invention.
Fig. 1 is the schematic diagram of the system of testing characteristics of network provided in an embodiment of the present invention, as shown in Figure 1, the system packet
Include first server 110, test terminal 120, second server 130, third server 140 and display terminal 150.
First server 110 is used to distribute Internet protocol address using preset procotol.
Internet protocol address (Internet Protocol Address, referred to as IP address), Internet protocol (IP
Agreement) provide a kind of unified address format, it on internet each network and each host assignment one patrol
Address is collected, the difference of physical address is shielded with this.
For the performance of test network, needs to use many test terminals, many test datas are sent out, according to network
Transmit response condition when these test datas, it may be determined that the performance of the network.
Before carrying out network test, need to testing terminal distribution IP address, the prior art generally requires manually right
The terminal distribution IP address for accessing network, when there is a large amount of test terminals, this method of salary distribution efficiency is too low.
In the embodiment of the present invention, first server distributes Internet protocol address using dynamic host configuration protocol.
Dynamic host configuration protocol (Dynamic Host Configuration Protocol, referred to as DHCP) is RFC
The standard agreement that 1541 (protocol number is replaced by RFC 2131) defined, the agreement allow server to be dynamically distributed to client
IP address and configuration information.
Specifically, DHCP protocol supports C/S (client/server) framework, wherein dhcp client is usually in network
The terminal devices such as PC, printer, use the IP information, including IP address, DNS etc. distributed from Dynamic Host Configuration Protocol server.DHCP
Server manages all IP network set informations concentratedly, and handles the DHCP request of client.
Specifically the method for salary distribution is:First server is established with test terminal and is connected, in the discovery report for receiving test terminal
Wen Hou sends to test terminal and provides message, provides the Internet protocol address that message includes predistribution, and test terminal is being received
To after being provided message, however, it is determined that use Internet protocol address, then send Internet protocol address, the first clothes to first server
Device be engaged in after receiving Internet protocol address, Internet protocol address is distributed into test terminal.
Since various messages are sent in the form of broadcast, test terminal, may after sending discovery message
The IP address of multiple servers predistribution is received, test terminal can only receive first IP address, concurrently send to be elected and select message, select
Message includes the IP address tested terminal and received, and server determines the IP address distributing to survey after receiving selection message
Try terminal.
The mode of this distribution IP address greatly improves the efficiency of distribution IP address, and test terminal can receive one
Random not used IP address, when there is multiple servers to be ready to provide IP address, test terminal only chooses therein one
A, non-selected IP address can be reassigned to other-end by server, not cause the waste of IP address.
After distributing IP address, first server tests terminal and server according to the MAC type classifications of equipment,
After completing address distribution, automatic test script can be issued according to testing engineering and configured according to test content compilation testing engineering
Multiple second servers 130 are set in the case where testing terminal there are magnanimity to test terminal and server, eventually to test
End is grouped, and corresponding different second servers 130, enhances concurrent test performance.
Terminal 120 (including multiple test terminals 121 to 12N, Fig. 1 in be not shown) is tested for obtaining first server to divide
The Internet protocol address matched generates and receives and dispatches test data.
Test terminal 120 records fault data in network failure, and according to failure after detecting that network recovery is normal
Data generate test data and send test data.
Test terminal 120 has the generation of IP data, transmission, reception and statistical function, supports the multiple types such as TCP and UDP
Data message supports the format for generating different messages according to configuration order, while also supporting wireless level relevant information, such as wireless
The record of signal strength, channel information etc., and related data is supported to be sent to data logger server.
Second server 130 is used for internet protocol-based address, and the test data that multiple test terminals are sent out is synthesized
Data flow, to carry out the test of network performance.
Second server can have it is multiple, when test terminal it is more, test data quantity is larger when, can be by multiple second
Server carries out the generation of data flow.
Second server 130 can support multiple IP traffics to generate terminals while send, receive and statistical function, in net
Under network fault condition, network condition can be detected and be recorded, legacy data is executed automatically after network recovery and generates sending function,
The multiple types of data message such as TCP and UDP is supported simultaneously, and supports to generate the format of different messages according to configuration order;It supports
The status information, including processor utilization, memory usage and network utilization etc. of data generating server are recorded, and is supported
Related data is sent to data logger server.
Third server 140 generates during the test for analyzing first server, test terminal and second server
Operation data.
Operation data may include test data and daily record etc., and third server 140 can receive the survey of test terminal 120
Try the log daily record datas of data and first server 110, second server 130 and the network equipment), and when can pass through
Between, the location information of Internet protocol address and test equipment closes test terminal, first server and second server
Connection analysis.For example, the daily record by analyzing first server and second server in each period, and test the test of terminal
Data can quickly test the network condition of each period, to judge in the time of network failure, or analysis different zones
The daily record of first server and second server, and the test data of terminal is tested, it can quickly test the net of specific region
Network situation, to judge the region of network failure.
Further, third server 140 can be filtered and count to operation data, and by the operation number after statistics
According to being sent to display terminal 150.The mode of statistics can be in the table of similar excel, according to dimensions such as time and addresses
Record corresponding test data and daily record.Preferably, the operation data after statistics can also be converted networking by third server 140
Page (Web) format, in this way can be in order to checking on network.
Display terminal 150 is for showing test data.
Display terminal 150 can be PC, tablet computer or mobile phone etc., that is, have data receiver, data processing
With the terminal device of data display function.In order to more easily check that test case, display terminal 150 can be with Telnets first
Server starts dependence test engineering, while can show service by browser access second server web data, in real time
Observe the test case of multiple test terminals.
The test data of network and the operation data of equipment are placed in different server in the embodiment of the present invention, are mitigated
Each server performance pressure, and then the concurrent test of magnanimity test terminal may be implemented.
Third server records test terminal, the data of first server and second server simultaneously, while recording network
On device data, can quick locating network fault by association analysis.
Fig. 2 is the schematic diagram of the system for the testing characteristics of network that the preferred embodiment of the present invention provides, in this preferred embodiment
In, first server 110 can be test/acquisition control server 210, and test terminal 120 can be mobile phone 220, the second clothes
Business device 130 can be that data flow generates server 230, and third server 140 can be data logger server 240, and display is eventually
End 150 can be PC 250.
Test/acquisition control server 210 generates server 230, data logger server according to mobile phone 220, data flow
240 and the MAC types of PC 250 distinguish, and distribute IP address respectively, and by the operation data in operational process
It is sent to data logger server 240.220 automatic generating network data on flows of mobile phone records wireless as test data
Network condition, including radio link layer signal strength and/or using channel (such as service set (Service Set
Identifier, referred to as SSID) or cell ID) etc., and related data is sent to data logger server 240.Data flow
The network flow data generated data stream that server 230 generates mobile phone 220 is generated, to carry out the concurrent test of network, and will
Operation data in operational process is sent to data logger server 240.Data logger server 240 is according to mobile phone 220 and respectively
The data that server is sent, carry out filtering, the statistics and analysis of data, obtain the analysis result of network condition, and by the result
It is presented in the form of visualization interface on PC 250.
By the preferred embodiment, network condition, timely awareness network failure can be easily analyzed.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different functions
Unit is completed, i.e., the internal structure of device is divided into different functional units or module, with complete it is described above whole or
Person's partial function.Each functional unit in embodiment can be integrated in a processing unit, can also be that each unit is independent
It is physically present, can also be during two or more units be integrated in one unit, above-mentioned integrated unit both may be used firmly
The form of part is realized, can also be realized in the form of SFU software functional unit.In addition, the specific name of each functional unit is also
For the ease of mutually distinguishing, the protection domain being not intended to limit this application.The specific work process of unit in above-mentioned apparatus, can
With with reference to the corresponding process in aforementioned device embodiment, details are not described herein.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician
Described function can be realized using different device to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device and system can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of module or unit, only
For a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine
Or it is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed phase
Coupling or direct-coupling or communication connection between mutually can be by some interfaces, the INDIRECT COUPLING or communication of device or unit
Connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, and be shown as unit
Component may or may not be physical unit, you can be located at a place, or may be distributed over multiple networks
On unit.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the embodiment of the present invention
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product
To be stored in a computer read/write memory medium.Based on this understanding, the technical solution essence of the embodiment of the present invention
On all or part of the part that contributes to existing technology or the technical solution can be with the shape of software product in other words
Formula embodies, which is stored in a storage medium, including some instructions are used so that a calculating
It is real that machine equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
Apply all or part of step of each embodiment device of example.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only storage
Device (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or light
The various media that can store program code such as disk.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments
Invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each implementation
Technical solution recorded in example is modified or equivalent replacement of some of the technical features;And these modification or
It replaces, the spirit and scope of each embodiment technical solution of the embodiment of the present invention that it does not separate the essence of the corresponding technical solution.
The above is merely preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
All any modification, equivalent and improvement made by within principle etc., should all be included in the protection scope of the present invention.