CN110048908A - Instruction Network Test System Platform, network test method and device - Google Patents

Instruction Network Test System Platform, network test method and device Download PDF

Info

Publication number
CN110048908A
CN110048908A CN201910299829.9A CN201910299829A CN110048908A CN 110048908 A CN110048908 A CN 110048908A CN 201910299829 A CN201910299829 A CN 201910299829A CN 110048908 A CN110048908 A CN 110048908A
Authority
CN
China
Prior art keywords
network
client
module
information
service end
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.)
Granted
Application number
CN201910299829.9A
Other languages
Chinese (zh)
Other versions
CN110048908B (en
Inventor
黄德龙
李小立
毕文娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910299829.9A priority Critical patent/CN110048908B/en
Publication of CN110048908A publication Critical patent/CN110048908A/en
Application granted granted Critical
Publication of CN110048908B publication Critical patent/CN110048908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention discloses a kind of Instruction Network Test System Platform, network test method and devices.Wherein, which includes: at least one client, for obtaining configuration information from page management module;Network service end, it is connect at least one client, at least one client is tested for being connect according to configuration information at least one client, and by executing any one or more following operation: network parameter control, traffic statistics and information scratching;Server-side is controlled, is connect with network service end, network test is carried out at least one client for controlling network service end.The present invention, which solves existing Instruction Network Test System Platform, need to install peripheral hardware software, lead to the technical problem that network test is at high cost.

Description

Instruction Network Test System Platform, network test method and device
Technical field
The present invention relates to internet areas, in particular to a kind of Instruction Network Test System Platform, network test method and dress It sets.
Background technique
With the development of internet technology, network application is also more and more, and network test requirements also become more and more important. During testing network application, tester not only needs to test the function of network application, it is also necessary to Function, performance under various network environments (for example, network environment of the different parameters such as packet loss, delay, shake) to network application And response is tested, the network application for mobile device, it is also necessary to carry out traffic statistics and packet capturing analyzing and positioning.
The prior art generallys use the setting and simulation that the softwares such as packet catcher (for example, Fiddler) carry out network parameter. But this method needs to install software, also needs to be equipped with double physical network cards in the equipment (for example, computer) where software, is tested Running equipment where network application must access on network card interface specified by the installation machine such as packet catcher, and the whole series use stream Journey is accompanied with certain installation cost, equipment cost and deployment cost.
In addition, the microcomputer (for example, raspberry pie) with double physical network cards also can be used in the prior art, installation open source is soft The firmware of part, the running equipment where the network application tested must access on network card interface specified by microcomputer.It connects After entering, user carries out the setting and adjustment of network parameter using the particular address in network provided by access microcomputer.It should Method is accompanied with equipment cost and equipment firmware initial fabrication cost.
By above content as it can be seen that existing Instruction Network Test System Platform be required to equipment cost outside amount paid and software configuration at This.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of Instruction Network Test System Platform, network test method and devices, existing at least to solve Some Instruction Network Test System Platforms need to install peripheral hardware software, lead to the technical problem that network test is at high cost.
According to an aspect of an embodiment of the present invention, a kind of Instruction Network Test System Platform is provided, comprising: at least one client End, for obtaining configuration information from page management module;Network service end is matched at least one client communication for basis Confidence breath and at least one client communication, and by execute any one or more following operation at least one client into Row test: network parameter control, traffic statistics and information scratching;Server-side is controlled, is communicated with network service end, for controlling Network service end carries out network test at least one client.
Further, configuration information includes at least one following: configuration file and the corresponding mark of at least one client Know information, wherein network service end includes: authentication module, for examining to the corresponding identification information of at least one client It surveys, obtains testing result, and in the case where testing result instruction detects successful situation, with distributing subnet at least one client Location;Controlling server-side includes: information management module, for tying up the identification information of at least one client with subnet address It is fixed, binding relationship is obtained, and store binding relationship into first database.
Further, network service end includes: first network parameter control module, for the corresponding network ginseng of subnet address Number is adjusted;Controlling server-side includes: the second network parameter control module, for controlling first network parameter control module pair Network parameter is adjusted.
Further, network service end includes: first flow statistical module, is united for the corresponding flow of subnet address Meter, obtains statistical result;Controlling server-side includes: second flow statistical module, is carried out for controlling first flow statistical module Traffic statistics, and statistical result is stored into the second database, wherein the second database be with the type of first database not Same database.
Further, control server-side includes: the second information scratching module, for grabbing for the distribution of first information handling module Take mark;Network service end includes: first information handling module, for being identified according to crawl to the corresponding network number of subnet address According to progress grasping manipulation.
Further, Instruction Network Test System Platform further include: page management module is communicated with control server-side, for configuration Information is managed, wherein passes through public network based on virtual LAN access way between page management module and control server-side Connection.
According to another aspect of an embodiment of the present invention, a kind of network test method is additionally provided, comprising: obtain at least one The configuration information of client;Network service end and at least one client communication are controlled according to configuration information, and by executing such as At least one client is tested in any one or more lower operation: network parameter control, traffic statistics and information are grabbed It takes.
Further, network test method further include: the corresponding channel of each client is passed through based on virtual network card equipment Obtain the network parameter of subnet address corresponding to each client;The network parameter of subnet address is adjusted, is adjusted Whole result;Network parameter is regulated and controled by physical network card equipment and software firewall rule according to adjustment result.
Further, network test method further include: in the case where receiving packet capturing instruction, generate packet capturing task;Root Packet capturing processing is carried out according to the corresponding network parameter of subnet address of the packet capturing task to each client, obtains packet capturing result;According to The corresponding subnet address of each client generates task encoding, wherein task encoding is for identifying packet capturing task;To packet capturing knot The corresponding relationship of fruit, task encoding and packet capturing result and task encoding is stored.
Further, network test method further include: to the corresponding subnet of each client based on virtual network card equipment Location is monitored, and the corresponding flow information of subnet address is obtained;Flow information is stored into default file, wherein default file With mark corresponding with subnet address;The flow information in default file is obtained according to prefixed time interval, and flow is believed Breath is counted, and statistical result is obtained;Statistical result is stored and is shown.
According to another aspect of an embodiment of the present invention, a kind of network testing device is additionally provided, comprising: obtain module, use In the configuration information for obtaining at least one client;Test module, for according to configuration information control network service end and at least One client communication, and at least one client is tested by executing any one or more following operation: network State modulator, traffic statistics and information scratching.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which includes storage Program, wherein equipment where control storage medium executes network test method in program operation.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, which is used to run program, In, program executes network test method when running.
In embodiments of the present invention, in such a way that one-stop Instruction Network Test System Platform carries out network test to client, Since the control server-side in Instruction Network Test System Platform can control network service end to carry out network test, and network service to client End can carry out network parameter control, traffic statistics and the test of information scratching, therefore, net provided herein to client Network test platform can test client under various network environments, reach without being further added by additional equipment and software The purpose for carrying out network test to client has been arrived, to realize the technical effect for reducing network test cost, and then has been solved Existing Instruction Network Test System Platform need to install peripheral hardware software, lead to the technical problem that network test is at high cost.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of Instruction Network Test System Platform according to an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of optional Instruction Network Test System Platform according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of optional Instruction Network Test System Platform according to an embodiment of the present invention;
Fig. 4 is a kind of flow chart of network test method according to an embodiment of the present invention;
Fig. 5 is a kind of flow chart of optional network parameter control according to an embodiment of the present invention;
Fig. 6 is a kind of flow chart of optional information scratching according to an embodiment of the present invention;
Fig. 7 is a kind of flow chart of optional traffic statistics according to an embodiment of the present invention;And
Fig. 8 is a kind of schematic diagram of network testing device according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
According to embodiments of the present invention, a kind of embodiment of Instruction Network Test System Platform is provided, wherein Fig. 1 is according to the present invention The schematic diagram of the Instruction Network Test System Platform of embodiment, as shown in Figure 1, the Instruction Network Test System Platform includes: at least one (figure of client 10 One is illustrated only in 1), network service end 20, control server-side 30, page management module 40 and database 50.
Wherein, at least one client 10, for obtaining configuration information from page management module 40;Network service end 20, It at least one client communication, is used for according to configuration information and at least one client communication, and following any by executing At least one client is tested in one or more operations: network parameter control, traffic statistics and information scratching;Control Server-side 30, communicates with network service end, carries out network test at least one client for controlling network service end.
It should be noted that above-mentioned network parameter includes at least one following: network transfer speeds, network-induced delay, Network jitter situation and network packet loss rate;Above-mentioned configuration information includes at least one following: configuration file and at least one visitor The corresponding identification information in family end, wherein identification information includes but is not limited to the corresponding username and password of client.It is easy to pay attention to To since network service end is to be communicated according to configuration information with client, each client is corresponding to match confidence Breath is different, and therefore, in the case where client is multiple, network service end is that each client distributes a channel progress Communication, due to what is be mutually isolated between channel, thus it is guaranteed that during testing client, to client Operation isolation, ensure that safety in test process, reliability.
In addition, above-mentioned client can be network application, or the network equipment (for example, mobile phone, computer etc.).Network Server-side and control server-side can be the program unit operated in Instruction Network Test System Platform.It is easily noted that, due to net Network server-side can test multiple client under multiple network environments simultaneously, therefore, in this application, no longer need to pacify Additional software or hardware device are filled, the test to client can be realized, has achieved the purpose that save network test cost.
From the foregoing, it will be observed that in this application, the side of network test is carried out to client using one-stop Instruction Network Test System Platform Formula, since the control server-side in Instruction Network Test System Platform can control network service end to carry out network test, and network to client Server-side can carry out network parameter control, traffic statistics and the test of information scratching to client, therefore, provided herein Instruction Network Test System Platform without being further added by additional equipment and software, client can be surveyed under various network environments Examination has achieved the purpose that carry out network test to client, to realize the technical effect for reducing network test cost, in turn Peripheral hardware software need to be installed by solving existing Instruction Network Test System Platform, lead to the technical problem that network test is at high cost.
It in an alternative embodiment, can by Fig. 2 Fig. 2 shows a kind of schematic diagram of optional Instruction Network Test System Platform Know, network service end includes: authentication module, first network parameter control module, first flow statistical module and the first information Handling module;Control server-side include: information management module, the second network parameter control module, second flow statistical module with And the second information scratching module.Wherein, the modules in server-side are controlled to be used to control the modules in network service end.
Specifically, authentication module obtains detection knot for detecting to the corresponding identification information of at least one client Fruit, and in the case where testing result instruction detects successful situation, subnet address is distributed at least one client;Information management module For binding the identification information of at least one client with subnet address, binding relationship is obtained, and store binding relationship Into first database.
It should be noted that authentication module is communicated with information management module, authentication module is for verifying client institute Whether the username and password of offer is correct, to guarantee data security.In the feelings that the username and password of client is proved to be successful Under condition, network service end is that client distributes subnet address, and information management module is by the user name and subnet address of the client It is bound, then binding relationship is stored in first database, wherein first database can be but be not limited to MySQL Data-base cluster.
In addition, first network parameter control module is adjusted for the corresponding network parameter of subnet address;Second network Parameter control module is adjusted network parameter for controlling first network parameter control module.Optionally, first network is joined The order of the TC (Traffic Control, flow control) in linux system can be used to the subnet of user terminal in number control modules The network parameters such as bandwidth, packet loss, the delay of the upstream or downstream of location are adjusted limitation, and are controlled by the control of the second network parameter The control of module.
Further, first flow statistical module is counted for the corresponding flow of subnet address, obtains statistical result; Second flow statistical module carries out traffic statistics for controlling first flow statistical module, and statistical result is stored to the second number According in library, wherein database 50 includes first database and the second database, and the second database is the type with first database Different databases.Wherein, the second database can with but be not limited to Mongo data-base cluster.
Optionally, first flow statistical module can be based on the traffic monitoring order in linux system (for example, iftop is ordered Enable) traffic statistics are carried out to the subnet address of specified client, it is controlled by the control of second flow statistical module.Wherein, Collected data on flows is uploaded to control server-side every preset duration by first flow statistical module, and second flow counts mould Block in real time converts to data on flows, and scaling results (i.e. statistical result) are stored in the second database.Preferably, Two databases are mongo database.
It should be noted that different data are stored in different databases, can occur to avoid some database Failure leads to not the problem of carrying out network test, ensure that the safety of data.
Optionally, the second information scratching module is used for as first information handling module distribution crawl mark;The first information is grabbed Modulus block is used to carry out grasping manipulation to the corresponding network data of subnet address according to crawl mark.Wherein, the first information grabs The data grabber order (for example, tcpdump order) in linux system can be used to the subnet address of specified client in module Network data carry out packet capturing processing, be controlled by the control of the second information scratching module.
Specifically, the second information scratching module sends to first information handling module and grabs during information scratching Mark, filename of the first information handling module by crawl mark as information scratching, after information scratching, the second information Handling module routes the crawl result to first information handling module by communication link.
It should be noted that as shown in Fig. 2, information and the first flow statistics that first information handling module is grabbed The traffic statistics result that module obtains can be output in specified network by regional egress network.
In a kind of optional scheme, by Fig. 1 and Fig. 2 it is found that Instruction Network Test System Platform further include: page management module 40, It is communicated with control server-side, for being managed to configuration information, wherein be based between page management module and control server-side The access way of virtual LAN is connected by public network.Optionally, page management module can provide the UI platform interacted with user, The setting of network parameter, network packet capturing, traffic statistics can be completed according to guide clicking operation by page management module in user Function, simplify user's operation step, improve user carry out network test testing efficiency.
In another optional scheme, Instruction Network Test System Platform provided herein can also be achieved more ground multiple spot Multi net voting The deployment of environment.Instruction Network Test System Platform as shown in Figure 3 is it is found that control server-side can be separated with page management end and independent part Administration is on the server that one (or one group) possesses public network address, wherein passes through between control server-side and page management end HTTP-API standard interface is in communication with each other.In addition, user information relationship module, traffic statistics control module, crawl letter in Fig. 3 Cease control module respectively in Fig. 2 information management module, second flow statistical module and the second information scratching module it is opposite It answers.
Optionally, from the figure 3, it may be seen that corresponding privately owned network segment (1 He of privately owned network segment in such as Fig. 3 of the Intranet in each area Privately owned network segment 2), each privately owned network segment has a managed service end, which is managed controlled module, In, controlled module includes under network parameter control module, flow statistical module, information scratching module and each network environment Access network service end.
It should be noted that the intermodule of controlled module and control server-side can be used and set up VPN (Virtual Private Network, virtual private net) communication channel communicated, therefore, controlled module can permit be deployed in it is various It can be connected in the privately owned intranet environment of control server public network address.
According to embodiments of the present invention, a kind of network test method embodiment is additionally provided, it should be noted that network test Method can execute in above-mentioned Instruction Network Test System Platform.Wherein, Fig. 4 is the stream of network test method according to an embodiment of the present invention Cheng Tu, as shown in figure 4, this method comprises the following steps:
Step S402 obtains the configuration information of at least one client;
Step S404 controls network service end and at least one client communication according to configuration information, and by executing such as At least one client is tested in any one or more lower operation: network parameter control, traffic statistics and information are grabbed It takes.
It should be noted that it is flat for network test to execute the executing subject of scheme defined by step S402 to step S404 Platform, wherein above-mentioned configuration information includes at least one following: configuration file and the corresponding mark letter of at least one client Breath, identification information includes but is not limited to the corresponding username and password of client.In addition, above-mentioned client can answer for network With, or the network equipment (for example, mobile phone, computer etc.).Network service end and control server-side can be to operate in network Program unit on test platform.
It is easily noted that, since network service end is to be communicated according to configuration information with client, Mei Geke The corresponding configuration information in family end is different, and therefore, in the case where client is multiple, network service end is each client It distributes a channel to be communicated, due to what is be mutually isolated between channel, thus it is guaranteed that testing client In the process, to the isolation of the operation of client, safety in test process, reliability be ensure that.Since network service end is same When multiple client can be tested under multiple network environments, therefore, in this application, no longer need to additional soft of installation The test to client can be realized in part or hardware device, has achieved the purpose that save network test cost.
Based on scheme defined by above-mentioned steps S402 to step S404, can know flat using one-stop network test Platform carries out the mode of network test to client, since the control server-side in Instruction Network Test System Platform can control network service end pair Client carries out network test, and network service end can carry out network parameter control, traffic statistics and information to client and grab The test taken, therefore, Instruction Network Test System Platform provided herein, can be to clients without being further added by additional equipment and software End is tested under various network environments, has achieved the purpose that carry out network test to client, to realize reduction net The technical effect of network testing cost, and then solve existing Instruction Network Test System Platform peripheral hardware software need to be installed, lead to network test Technical problem at high cost.
In an alternative embodiment, Instruction Network Test System Platform can carry out network parameter control at least one client. Specifically, Instruction Network Test System Platform is right by each client institute of the corresponding channel acquisition of each client based on virtual network card equipment The network parameter for the subnet address answered, and the network parameter of subnet address is adjusted, it is adjusted as a result, finally according to tune Whole result is by physical network card equipment and software firewall rule to network parameter according to regulating and controlling.
Optionally, Fig. 5 shows the flow chart of network parameter control, and the authentication module in network service end passes through given Configuration file and specific account name, password verify client, in the case where being proved to be successful, and construct network service The connection of first network parameter control module in end and the second network parameter control module in control server-side.It is connecting into After function, network service end is that each client distributes subnet address, and in Fig. 5, each client is with different subnets Location.Then, network service end is routed to each client push overall situation so that the network parameter of client flows through network service End.Where the flow of final each client flows through first network parameter control module in virtual network card equipment tunX.Into one Step ground, the flow of virtual network card equipment tunX flow through network parameter control module (i.e. first network parameter control module), and first Network parameter controller in network parameter control module carries out network parameter control for each subnet address, then again will be every The corresponding network parameter of a subnet address is all routed to physical network card equipment, then is transmitted to destination address.Wherein, first network Parameter control module can provide control interface in a manner of HTTP-API, for the second network parameter control of control server-side Module is called.
It should be noted that being adjusted using network parameter control module to the network flow flowed through, net can achieve The purpose of network state modulator.
In an alternative embodiment, Instruction Network Test System Platform can carry out information scratching at least one client.Specifically , in the case where receiving packet capturing instruction, Instruction Network Test System Platform generates packet capturing task, and according to packet capturing task to each client The corresponding network parameter of the subnet address at end carries out packet capturing processing, obtains packet capturing result.Then, Instruction Network Test System Platform is according to each The corresponding subnet address of client generates task encoding, and to packet capturing result, task encoding and packet capturing result and task encoding Corresponding relationship stored.Wherein, task encoding is for identifying packet capturing task;
Optionally, user can pass through page management module logging in online test platform.Page management module tune when logging in With information management module, client is authenticated, and distributes the Token identifying code of of short duration validity period for each client, is protected There are in cookie.User can be modified by login account and/or password of the page management module to client, then be used The network service end in modified account and code entry Instruction Network Test System Platform can be used in family.In user's logging in online server-side Later, network service end according to the subnet address that the postposition hook (i.e. trigger) after logging in successfully distributes network service end with And username information is sent in information management module.Information management module binds subnet address and user name, and will Binding relationship records in the relation table of MySQL database, while setting online for the status indication position of the account.Then, page The api interface of face management module timing recalls information management module carries out page furbishing, when detecting that account is online, page pipe Reason module highlights the account name and icon of the account.User, which clicks the account name of corresponding account and icon, can enter packet capturing Operation pages.When user clicks packet capturing control, Instruction Network Test System Platform receives packet capturing instruction, generates packet capturing task, and information is grabbed The packet capturing task that modulus root tuber is generated according to the address of network service end, the corresponding subnet address of client and client, Xiang Xin It ceases management module and sends the corresponding task encoding of packet capturing task, which is stored in MySQL data by information management module In library, with quick search packet capturing situation, packet capturing result etc., while according to the uniqueness of packet capturing task identified to ensure task. After user clicks stopping control, Instruction Network Test System Platform suspends the packet capturing task that the user is chosen, and deletes packet capturing task Corresponding mark.After the stopping of packet capturing task, the second information scratching module will make page management module using the function of acting on behalf of of safety The result information of packet capturing is got in a secured manner.
Optionally, Fig. 6 shows the flow chart of information scratching.Specifically, client passes through dial-up connection network service end Afterwards, due to the VPN that network service end is the routing of full link, when client needs to request interviewed resource, all-network Parameter will pass through network service end.Wherein, the data packet of the interviewed resource of client request will be according to being routed through internet The physical network card equipment being routed on network service end, after physical network card equipment, data packet passes through the control of network service end Data are forwarded a packet to the virtual network equipment by device processed, controller.
It should be noted that data packet will be straight in the case where first information handling module is not present in network service end It connects and is routed to physical network device, then there is internet to be routed to interviewed resource again.There are the first letters in network service end In the case where ceasing handling module, first information handling module will increase by one between virtual network card equipment and physical network device Outpost, for recording the data packet each flowed through, to achieve the purpose that packet capturing.
In an alternative embodiment, Instruction Network Test System Platform can carry out traffic statistics at least one client.Specifically , Instruction Network Test System Platform is based on virtual network card equipment and monitors the corresponding subnet address of each client, with obtaining subnet Then the corresponding flow information in location stores flow information and obtains default file into default file, and according to prefixed time interval In flow information, flow information is counted, statistical result is obtained, finally statistical result is stored and shown.Its In, default file has mark corresponding with subnet address.
Optionally, Fig. 7 shows the flow chart of traffic statistics.Specifically, client is after being connected to network service end, All network flow routings are directed to network service end by default.Routing is by network flow by void inside network service end Quasi- network card equipment tunX is routed to the physical network card equipment of network service end, then again by the physical network card equipment of network service end On flow be routed to egress network.After enabling traffic statistic function, first flow statistical module is in network service end The virtual network card equipment of network service end is specified in virtual network card equipment to the physical network card device network stream of network service end TunX monitors corresponding device network IP.Wherein, the corresponding subnet address that iftop order is got can be used in network service end Flow information, and be recorded in subnet address information mark temporary file (i.e. default file) on, temporary file can quilt The acquisition of data collector timing cycle.Collection result is submitted to control server-side according to fixed time interval by data collector HTTP-API upload interface.The HTTP-API for controlling server-side uploads interface for persistence after collection result progress identity transformation Into mongoDB database.The corresponding flow displayed page of page management module can timing request HTTP-API query interface, Query interface obtains information by data processing module from mongoDB database, then calculate by unit conversion, numerical value and Regurgitant volume displayed page is fed back in data processing after format specification, and renders flow curve figure.
It should be noted that above-mentioned temporary file (i.e. default file) can be but be not limited to the file of .cap format, In, the preservation of the file of .cap format can be based on the read text of service of the static file http of nginx (proxy server) In part folder, so as to allow this document that can download acquisition by http mode.
Furthermore it should also be noted that, the network service end in the application can be VPN service terminal, page management module is WEB page management module.
As shown in the above, the Instruction Network Test System Platform based on VPN technologies provided according to the present invention, is managed using WEB The customized account of the page, each platform device accesses Instruction Network Test System Platform in such a way that the account connects VPN, due to VPN characteristic, So that Instruction Network Test System Platform provided herein can provide the network test environment to access equipment blocking, user be can be convenient Network parameter is adjusted in real time in WEB administration page, and the packet capturing analysis and traffic statistics of specified time can be carried out, is subtracted The network test cost of few user.In addition, Instruction Network Test System Platform provided herein can realize that network parameter control, information are grabbed It takes and the functions such as traffic statistics, saves the cost of network test.
According to embodiments of the present invention, a kind of network testing device embodiment is additionally provided, wherein Fig. 8 is according to the present invention The schematic diagram of the network testing device of embodiment, as shown in figure 8, the device includes: to obtain module 801 and test module 803.
Wherein, module 801 is obtained, for obtaining the configuration information of at least one client;Test module 803 is used for root According to configuration information control network service end and at least one client communication, and by executing any one or more following operation At least one client is tested: network parameter control, traffic statistics and information scratching.
Herein it should be noted that the step of above-mentioned acquisition module 801 and test module 803 correspond to above-described embodiment S402 to step S404, two modules are identical as example and application scenarios that corresponding step is realized, but are not limited to above-mentioned reality Apply a disclosure of that.
In addition it is also necessary to illustrate, above-mentioned network test is can be performed in network testing device provided by the present embodiment Method, detailed content are illustrated in the above-described embodiments, and details are not described herein.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which includes storage Program, wherein equipment where control storage medium executes above-mentioned network test method in program operation.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, which is used to run program, In, program executes above-mentioned network test method when running.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or client etc.) executes the whole or portion of each embodiment the method for the present invention Step by step.And storage medium above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory Various Jie that can store program code such as device (RAM, Random Access Memory), mobile hard disk, magnetic or disk Matter.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (13)

1. a kind of Instruction Network Test System Platform characterized by comprising
At least one client, for obtaining configuration information from page management module;
Network service end is used for at least one described client communication according to the configuration information and at least one described visitor The communication of family end, and at least one described client is tested by executing any one or more following operation: network is joined Number control, traffic statistics and information scratching;
Server-side is controlled, is communicated with the network service end, for controlling the network service end at least one described client End carries out network test.
2. Instruction Network Test System Platform according to claim 1, which is characterized in that the configuration information include it is following at least it One: configuration file and the corresponding identification information of at least one described client, wherein
The network service end includes: authentication module, for examining to the corresponding identification information of at least one described client It surveys, obtains testing result, and in the case where testing result instruction detects successful situation, at least one client distribution Subnet address;
The control server-side includes: information management module, for by the identification information of at least one client with it is described Subnet address is bound, and binding relationship is obtained, and stores the binding relationship into first database.
3. Instruction Network Test System Platform according to claim 2, which is characterized in that
The network service end includes: first network parameter control module, for the corresponding network parameter of the subnet address into Row adjustment;
The control server-side includes: the second network parameter control module, for controlling the first network parameter control module The network parameter is adjusted.
4. Instruction Network Test System Platform according to claim 2, which is characterized in that
The network service end includes: first flow statistical module, is counted, is obtained for the corresponding flow of the subnet address To statistical result;
The control server-side includes: second flow statistical module, carries out flow for controlling the first flow statistical module Statistics, and the statistical result is stored into the second database, wherein second database is and the first database Different types of database.
5. Instruction Network Test System Platform according to claim 2, which is characterized in that
The control server-side includes: the second information scratching module, for identifying for the distribution crawl of first information handling module;
The network service end includes: the first information handling module, for being identified to the subnet according to the crawl The corresponding network data in location carries out grasping manipulation.
6. Instruction Network Test System Platform according to claim 1, which is characterized in that the Instruction Network Test System Platform further include:
The page management module is communicated with the control server-side, for being managed to the configuration information, wherein institute It states and is connected based on the access way of virtual LAN by public network between page management module and the control server-side.
7. a kind of network test method characterized by comprising
Obtain the configuration information of at least one client;
Network service end and at least one described client communication are controlled according to the configuration information, and following any by executing At least one described client is tested in one or more operations: network parameter control, traffic statistics and information scratching.
8. the method according to the description of claim 7 is characterized in that carrying out network parameter control at least one described client System, comprising:
Based on virtual network card equipment by the corresponding channel of each client with obtaining subnet corresponding to each client The network parameter of location;
The network parameter of the subnet address is adjusted, result is adjusted;
The network parameter is regulated and controled by physical network card equipment and software firewall rule according to the adjustment result.
9. the method according to the description of claim 7 is characterized in that carrying out information scratching, packet at least one described client It includes:
In the case where receiving packet capturing instruction, packet capturing task is generated;
Packet capturing processing is carried out to the corresponding network parameter of the subnet address of each client according to the packet capturing task, obtains packet capturing As a result;
Task encoding is generated according to the corresponding subnet address of each client, wherein the task encoding is for identifying institute State packet capturing task;
The corresponding relationship of the packet capturing result, the task encoding and the packet capturing result and the task encoding is deposited Storage.
10. the method according to the description of claim 7 is characterized in that carrying out traffic statistics, packet at least one described client It includes:
The corresponding subnet address of each client is monitored based on virtual network card equipment, it is corresponding to obtain the subnet address Flow information;
The flow information is stored into default file, wherein the default file has mark corresponding with the subnet address Know;
The flow information in the default file is obtained according to prefixed time interval, and the flow information is counted, is obtained To statistical result;
The statistical result is stored and shown.
11. a kind of network testing device characterized by comprising
Module is obtained, for obtaining the configuration information of at least one client;
Test module for controlling network service end and at least one described client communication according to the configuration information, and is led to It crosses any one or more following operation of execution to test at least one described client: network parameter control, flow system Meter and information scratching.
12. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require any one of 7 to 10 described in network test method.
13. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 7 to 10 described in network test method.
CN201910299829.9A 2019-04-15 2019-04-15 Network test platform, network test method and device Active CN110048908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910299829.9A CN110048908B (en) 2019-04-15 2019-04-15 Network test platform, network test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910299829.9A CN110048908B (en) 2019-04-15 2019-04-15 Network test platform, network test method and device

Publications (2)

Publication Number Publication Date
CN110048908A true CN110048908A (en) 2019-07-23
CN110048908B CN110048908B (en) 2021-04-27

Family

ID=67277161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910299829.9A Active CN110048908B (en) 2019-04-15 2019-04-15 Network test platform, network test method and device

Country Status (1)

Country Link
CN (1) CN110048908B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110535726A (en) * 2019-09-02 2019-12-03 安徽嘉亨软件开发有限公司 A kind of internet test docking system
CN110674040A (en) * 2019-09-20 2020-01-10 广州虎牙科技有限公司 Application testing method, device, equipment and storage medium
CN110837476A (en) * 2019-11-14 2020-02-25 珠海西山居移动游戏科技有限公司 Application program testing method and device
CN111506502A (en) * 2020-04-13 2020-08-07 杭州涂鸦信息技术有限公司 System and method for testing mobile terminal UI automation distribution network process
CN112910725A (en) * 2021-01-18 2021-06-04 卓望数码技术(深圳)有限公司 Network flow detection method and device and computer readable storage medium
CN114172816A (en) * 2021-12-10 2022-03-11 北京触点互动信息技术有限公司 Network simulation test platform
CN115208749A (en) * 2022-06-21 2022-10-18 通号城市轨道交通技术有限公司 Network configuration method and device for urban rail sharing test platform

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724103A (en) * 2011-03-30 2012-10-10 国际商业机器公司 Proxy server, hierarchical network system and distributed workload management method
CN102799515A (en) * 2011-05-24 2012-11-28 腾讯科技(深圳)有限公司 Application program testing method and device
CN103618645A (en) * 2013-11-28 2014-03-05 武汉虹旭信息技术有限责任公司 Complex network environment test system and method with intelligent simulation function
CN105302727A (en) * 2015-11-17 2016-02-03 小米科技有限责任公司 Testing method, device and system
CN105491169A (en) * 2016-01-26 2016-04-13 苏州蜗牛数字科技股份有限公司 Data proxy method and system
CN105808427A (en) * 2016-03-02 2016-07-27 厦门美图移动科技有限公司 Test method, device and system of mobile terminal software
CN106101177A (en) * 2016-05-27 2016-11-09 北京小米移动软件有限公司 Network access method and device
CN107332715A (en) * 2017-08-14 2017-11-07 飞思达技术(北京)有限公司 Active Performance test plus the network application system and its implementation of passive shunting control
CN107547312A (en) * 2017-09-21 2018-01-05 广州四三九九信息科技有限公司 Applied program testing method and system
US10404548B2 (en) * 2016-08-29 2019-09-03 Cisco Technology, Inc. Control of network nodes in computer network systems

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724103A (en) * 2011-03-30 2012-10-10 国际商业机器公司 Proxy server, hierarchical network system and distributed workload management method
CN102799515A (en) * 2011-05-24 2012-11-28 腾讯科技(深圳)有限公司 Application program testing method and device
CN103618645A (en) * 2013-11-28 2014-03-05 武汉虹旭信息技术有限责任公司 Complex network environment test system and method with intelligent simulation function
CN105302727A (en) * 2015-11-17 2016-02-03 小米科技有限责任公司 Testing method, device and system
CN105491169A (en) * 2016-01-26 2016-04-13 苏州蜗牛数字科技股份有限公司 Data proxy method and system
CN105808427A (en) * 2016-03-02 2016-07-27 厦门美图移动科技有限公司 Test method, device and system of mobile terminal software
CN106101177A (en) * 2016-05-27 2016-11-09 北京小米移动软件有限公司 Network access method and device
US10404548B2 (en) * 2016-08-29 2019-09-03 Cisco Technology, Inc. Control of network nodes in computer network systems
CN107332715A (en) * 2017-08-14 2017-11-07 飞思达技术(北京)有限公司 Active Performance test plus the network application system and its implementation of passive shunting control
CN107547312A (en) * 2017-09-21 2018-01-05 广州四三九九信息科技有限公司 Applied program testing method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110535726A (en) * 2019-09-02 2019-12-03 安徽嘉亨软件开发有限公司 A kind of internet test docking system
CN110674040A (en) * 2019-09-20 2020-01-10 广州虎牙科技有限公司 Application testing method, device, equipment and storage medium
CN110837476A (en) * 2019-11-14 2020-02-25 珠海西山居移动游戏科技有限公司 Application program testing method and device
CN111506502A (en) * 2020-04-13 2020-08-07 杭州涂鸦信息技术有限公司 System and method for testing mobile terminal UI automation distribution network process
CN111506502B (en) * 2020-04-13 2023-05-12 杭州涂鸦信息技术有限公司 Mobile terminal UI automatic distribution network flow test system and method
CN112910725A (en) * 2021-01-18 2021-06-04 卓望数码技术(深圳)有限公司 Network flow detection method and device and computer readable storage medium
CN114172816A (en) * 2021-12-10 2022-03-11 北京触点互动信息技术有限公司 Network simulation test platform
CN115208749A (en) * 2022-06-21 2022-10-18 通号城市轨道交通技术有限公司 Network configuration method and device for urban rail sharing test platform

Also Published As

Publication number Publication date
CN110048908B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN110048908A (en) Instruction Network Test System Platform, network test method and device
KR102183897B1 (en) An apparatus for anomaly detecting of network based on artificial intelligent and method thereof, and system
CN106464577B (en) Network system, control device, communication device and communication control method
US7801985B1 (en) Data transfer for network interaction fraudulence detection
Garrett et al. Monitoring network neutrality: A survey on traffic differentiation detection
US10193908B2 (en) Data transfer for network interaction fraudulence detection
CN101960782B (en) In-bound mechanism that verifies end-to-end service configuration with application awareness
CN109802924A (en) A kind of method and device identifying encrypting traffic
CN109327342B (en) task-driven-based self-adaptive SDN simulation system and simulation platform
JP5111256B2 (en) Communication system and server device
US10009229B2 (en) Policy verification in a network
CN109644146A (en) By the variance analysis of TCP telemetering come locating network fault
CN104040538B (en) A kind of the Internet, applications exchange method, apparatus and system
Arahunashi et al. Performance analysis of various sdn controllers in mininet emulator
CN109274669A (en) One kind bypassing WAF reverse proxy method based on online traffic mirroring
CN107979506A (en) Flow obtains and high in the clouds display systems, method, apparatus and equipment
Petroulakis et al. Reactive security for SDN/NFV‐enabled industrial networks leveraging service function chaining
Borsatti et al. Performance of service function chaining on the OpenStack cloud platform
CN107026766A (en) A kind of assessment detection method and device of network quality
CN108279970B (en) The switching method and apparatus of browser kernel
CN107147585B (en) Flow control method and device
CN104601400B (en) Shunting device performance test methods, test client and test server
CN109906462A (en) The technology of analysis data collection for the policy control in large scale system
Solomon et al. Network traffic monitoring in an industrial environment
Doyen et al. An Orchestrated NDN Virtual Infrastructure Transporting Web Traffic: Design, Implementation, and First Experiments with Real End Users

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
GR01 Patent grant
GR01 Patent grant