CN106604312A - Router test data visualization method and system - Google Patents

Router test data visualization method and system Download PDF

Info

Publication number
CN106604312A
CN106604312A CN201610996844.5A CN201610996844A CN106604312A CN 106604312 A CN106604312 A CN 106604312A CN 201610996844 A CN201610996844 A CN 201610996844A CN 106604312 A CN106604312 A CN 106604312A
Authority
CN
China
Prior art keywords
test
data
unit
router
resolution chart
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
CN201610996844.5A
Other languages
Chinese (zh)
Other versions
CN106604312B (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.)
Beijing Haoding Hongfa Technology Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201610996844.5A priority Critical patent/CN106604312B/en
Publication of CN106604312A publication Critical patent/CN106604312A/en
Application granted granted Critical
Publication of CN106604312B publication Critical patent/CN106604312B/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/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a router test data visualization method, and the method comprises the following steps: respectively executing different testing scripts, obtaining the test data of all test projects of a to-be-tested router, and storing the test data in a database; receiving a data visualization access data of a user, and obtaining the test data of different testers and test projects from the database; respectively drawing different test graphs according to the test data and different testers and test projects, and displaying the test graphs. The invention also discloses a router test data visualization system, and the system comprises at least two testers, a storage module, a management module, and a drawing module. The storage module is connected with the testers, and the management module is connected with the storage module and the drawing module. From the aspect of testing and monitoring of the router, the method and system elaborate the specific implementation and detailed functions, achieve the visualization of test data, and improve the testing efficiency.

Description

A kind of router test data visualization method and system
Technical field
The present invention relates to test data is processed, more particularly to a kind of router test data visualization method and system.
Background technology
In wireless router test phase, long-term monitoring multinomial performance index incessantly is needed, such as equipment is remaining interior Deposit, operation hours, the parameter such as equipment residue CPU.Test phase can produce substantial amounts of data, and these data bulks are huge And similarity is high, legibility is poor, it is difficult to the characteristic of data be observed in the short time or is pinpointed the problems.Prior art be only to The method for going out wireless router stability test, but without the data that further effectively management test is produced, test data is easy The property read is poor.
The content of the invention
The present invention provides a kind of method and system of data visualization, to solve prior art in, the test of router Similarity is high because of substantial amounts for data, and legibility is poor, it is difficult to the characteristic of data be observed in the short time or is found different Normal problem, by the present invention, realizes data visualization, and legibility strengthens, and can in time report abnormal problem.
On the one hand, a kind of router test data visualization method of the invention, including step:
S100 performs respectively different test scripts, obtains the test data of each test event of router to be measured, and will be described Test data is stored in database;
S200 receive user data visualization access requests, from database the survey of different test machine and test events is obtained Examination data;
S300, by different test machine and test event, is depicted as respectively different test charts according to the test data Shape is simultaneously shown.
By the test data that will be obtained, according to different test machine and test event, drawn respectively, realized route The visualization of device test data, user observes the data of each test item from figure, and legibility is greatly enhanced, and is also easier to from figure Find out the characteristic of each data, improve testing efficiency.
Further, step S200 includes step:
S210 receive user data visualization access requests;
S220 is grouped each test event according to preset rules, and is pressed according to the size of each group request data quantity It is ranked up according to mode from small to large;
S230 takes successively the mode of ajax Asynchronous Requests to obtain from database described in each group and tests according to precedence The test data of project;
Step S300 also includes step:
S310, according to different test machine and test event, divides according to the sequencing of each test event group for getting It is not depicted as different resolution charts and is shown.
AJAX is " Asynchronous Javascript And XML " (asynchronous JavaScript and XML), refers to one kind Create the web development technologies of interaction network page application.Exchanged by carrying out low volume data with server on backstage, AJAX can be with Webpage is set to realize asynchronous refresh.This means to enter certain part of webpage in the case where whole webpage is not reloaded Row updates.Generally, synchronously refer to that sender is sent after data, wait recipient to beam back after response and just give a data The communication modes of bag, and it is asynchronous, then refer to that sender is sent after data, do not wait recipient to beam back response, then send next data The communication modes of bag.AJAX Asynchronous Requests, it is different threads to send and receive, it is not necessary to which waiting database to respond can continue to do Other things.
Using packet and the method for ajax Asynchronous Requests, before the little request of data volume is put, after the big request of data volume is put Face, and sending after one group of request without waiting for the response of database, can continue to send request below, and database also can be according to connecing The order of request is received, data feedback is given successively, because the little request of data volume is received at first, also can be returned at first, such page Face will not interim card, while user can soon see the effect of part figure, and be easy to the code maintenance in later stage.
Further, also including step:
The resolution chart that S400 is screened according to user, according to default refresh interval, refreshes the resolution chart.
Further, step S400 also includes step:
The screening instruction of S410 receive users, the resolution chart for filtering out is initialized, and caches what is obtained Former data;
According to the default refresh interval time, acquisition maximum time point on the resolution chart is nearest to be preset S420 The nearest new data of number;Or according to the default refresh interval time, obtain on the resolution chart of the database purchase All new datas after maximum time point;
The new data for getting is merged into data set by S430 with the former data of caching;
S440 draws the resolution chart after refreshing according to the data set after the merging.
Test is constantly carried out, and the test data of database also can be continuously increased, and the test chart that user selects constantly refreshes, from And show a width cardon to user.Generally, the interval of refreshing will consider test frequency and time delay, general meeting It is bigger than the conjunction of the two.Maximum time point on resolution chart, i.e., last time point on current resolution chart, due to this Individual data point and its data before are cached, therefore when refreshing, need to only obtain the final time updated on part, i.e. resolution chart New data after point.Data volume is little, substantially reduces the workload of system.
Further, step is also included after step S440:
After S445 judges to refresh, whether current resolution chart is filled with new data, if so, then enters into step S447;It is no Then, into step S446;
S446 judges data exception, warns user;
The time difference of beginning and ends of the S447 in current resolution chart, according to the frequency for updating, obtains theoretical Data volume, and the gross data amount is compared with actual amount of data, if difference enters into step beyond default scope S448;Otherwise, into step S449;
S448 judges shortage of data, reminds user;
S449 judges that data are normal.
Continuous acquisition data, refresh data, while, it is also desirable to data are monitored, this case is then the increase in data shape The judgement of state, during to find data exception or disappearance, informs in time user, and user experience is high.
Further, also including step:
The instruction of S500 receive users, and perform corresponding screening picture, derive form or preserve and survey according to the instruction Attempt the operation of shape.
According to the selection of user, support that variation is processed.
On the other hand, the present invention also provides a kind of router test data visual system, including at least two tests Machine, memory module, management module, graphics module;The memory module is connected with least two test machines, the management mould Block is connected respectively with the memory module and graphics module, wherein:
At least two test machines perform respectively different test scripts, obtain the survey of each test event of router to be measured Examination data, and the test data is stored in by database by memory module;
The management module receive user data visualization access request, obtains not from the database of the memory module The test data of test machine together and test event;
The test data that the graphics module is obtained according to the management module, by different test machine and test event, Different resolution charts are depicted as respectively and are shown.
The system can perform the method for the present invention, and the visualization of the test data of router is realized by the system, lead to Cross resolution chart perfection and represent test data, it is readable strong.
Further, the management module includes:Receiving unit, grouped element and acquiring unit, wherein, the packet Unit is connected respectively with the acquiring unit, the receiving unit, wherein:
The receiving unit receive user data visualization access request;
The grouped element is grouped each test event according to preset rules, and according to each group request data quantity Size be ranked up according to mode from small to large;
The acquiring unit takes successively the mode of ajax Asynchronous Requests that each group is obtained from database according to precedence The test data of the test event;
The sequencing of each test event group that the graphics module gets according to the acquiring unit, according to different Test machine and test event, are depicted as respectively different resolution charts and are shown.
Further, the management module also include initialization unit, refresh unit, the initialization unit respectively with institute State receiving unit, the refresh unit to be connected, the refresh unit is connected respectively with the acquiring unit, graphics module, wherein:
The screening instruction of the receiving unit receive user, the initialization unit holds the resolution chart for filtering out Row initialization, and the former data that caching has been obtained;
The refresh unit is obtained apart from the test chart according to the default refresh interval time by the acquiring unit The nearest new data of the nearest predetermined number of maximum time point in shape;Or the refresh unit according to default refresh interval when Between, all new number on the resolution chart of the database purchase after maximum time point is obtained by the acquiring unit According to;
The new data for getting is merged into data set by the refresh unit with the former data of caching;
The graphics module draws out the resolution chart after refreshing according to the data set that the refresh unit is merged into.
Further, the management module also includes judging unit, warning reminding unit, performance element;It is described to judge single Unit is connected respectively with the refresh unit, warning reminding unit, and the performance element is connected with the receiving unit;Wherein:
After the judging unit judges that the refresh unit refreshes, whether current resolution chart is filled with new data;If filling out Filled with new data, then the time difference of beginning and end of the judging unit in current resolution chart, according to what is updated Frequency, obtains gross data amount, and the gross data amount is compared with actual amount of data, if difference is beyond default model Enclose, then judge shortage of data, user is reminded by the warning reminding unit;Otherwise, data exception is judged;If current test chart Shape is not filled by new data, then the judging unit judges data exception, and by the warning reminding unit user is warned;
The receiving unit receive user instruction, the performance element performs phase according to the instruction that the receiving unit is received The screening picture answered, the operation for deriving form or preservation resolution chart.
It is contemplated that the visualization of data is monitored, the test data that will be obtained, according to different test machines and test Project, is drawn respectively so that tester more effectively observes the properties change of router, readable strong, improves Testing efficiency.During request of data is sent, the mode of packet transmission ajax Asynchronous Requests, acquisition speed are employed Hurry up, the page not interim card, while user can soon see the effect of partial test figure, improves Consumer's Experience, and after being easy to The code maintenance of phase.Additionally, present invention employs the former data of caching, the refreshing mode of new data is obtained, data acquisition amount is little, speed Degree is fast, is presented to the dynamic test chart of user, and the data for obtaining, and opens monitoring mode, and the shape of data is differentiated in time State, once abnormal or disappearance occur in data, notifies in time user.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, can be obtaining it according to these accompanying drawings His accompanying drawing.
Fig. 1 is a kind of flow chart of router test data visualization method embodiment one of the invention;
Fig. 2 is a kind of another embodiment flow chart of router test data visualization method of the invention;
Fig. 3 is a kind of another embodiment flow chart of router test data visualization method of the invention;
Fig. 4 is a kind of another embodiment flow chart of router test data visualization method of the invention;
Fig. 5 is a kind of visual flow chart of system embodiment one of router test data of the invention;
Fig. 6 is a kind of another embodiment flow chart of the visual system of router test data of the invention;
Fig. 7 is router test envelope structure chart in another embodiment of present system;
Fig. 8 is the test event list schematic diagram of router;
Fig. 9 is core schematic flow sheet in another embodiment of present system;
Figure 10 is the test design sketch after router test data visualization processing.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step ground is described in detail, it is clear that described embodiment is only present invention some embodiments, rather than the enforcement of whole Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
A kind of router test data visualization method of the present invention, embodiment one as shown in figure 1, including step:
S100 performs respectively different test scripts, obtains the test data of each test event of router to be measured, and will be described Test data is stored in database;
S200 receive user data visualization access requests, from database the survey of different test machine and test events is obtained Examination data;
S300, by different test machine and test event, is depicted as respectively different test charts according to the test data Shape is simultaneously shown.
The test of general router includes at least two test machines, and a main PC performs a script is used for test router Operation hours, free memory, the test event such as main steps of remaining CPU and current operation;Other tests PC holds Capable another script, is mainly used in the test of the network parameter of router, such as ping latency, ping packet loss, network interface card connection Speed, network interface card connection signal strength signal intensity, and the test event such as network interface card flow, main PC and other tests PC perform respective script and obtain To each test event test data all can be stored in database the inside.When user accesses checks these test datas, then System receive instruction after, test page load first basis static html and css, js file (html is some webpages Control;Css is Cascading Style Sheets codes, and it is a kind of script of enhancing expressive force that js is javascript, The stronger effect of many dynamics and interactivity can be made), and obtain from the main PC of data base call and other tests PC tests The test data of each test event, and each test event according to each test machine draws a test chart.Current skill Art is only the method for the test for providing wireless router stability etc., but without the number that further effectively management test is produced According to.The present embodiment is managed the data that test is produced, and realizes the visualization of data, by resolution chart, makes test Personnel more effectively observe the properties change of router.
A kind of another embodiment of router test data visualization method of the present invention, as shown in Fig. 2 including step Suddenly:
S100 performs respectively different test scripts, obtains the test data of each test event of router to be measured, and will be described Test data is stored in database;
S210 receive user data visualization access requests;
S220 is grouped each test event according to preset rules, and is pressed according to the size of each group request data quantity It is ranked up according to mode from small to large;
S230 takes successively the mode of ajax Asynchronous Requests to obtain from database described in each group and tests according to precedence The test data of project;
S310, according to different test machine and test event, divides according to the sequencing of each test event group for getting It is not depicted as different resolution charts and is shown.
In the present embodiment, after the viewable access for receiving user is asked, can be first according to default rule, will be all of Test event is grouped, and is then ranked up according to mode from small to large according to the size of the request data quantity of each group, with As a example by the stability test of router, such as operation hours, free memory, residue CPU, critical processes are divided into one by us Group, by network interface card flow be divided into one group, ping latency and ping packet loss be divided into one group, network interface card connection speed and network interface card connection signal Intensity is divided into one group, and one has 4 groups, and then this four groups are sorted from small to large according to data volume size, can be according to each survey The test frequency of test-run a machine execution script and each test item, with reference to each test item the master data size tested of single entering Row sequence;Also packet sequencing can be artificially configured in system, system is grouped and is sorted according to the rule of classification for arranging.Press Sort according to data volume from small to large, if first group be network interface card flow rate test item, second group be that ping latency and ping lose Bag rate test item, the 3rd group be network interface card connection speed and network interface card connection signal strength test item, the 4th group be operation hours, Free memory, residue CPU, critical processes test item;Then the data that first group is sent by the way of ajax Asynchronous Requests please Ask, then send out second group, the 3rd group, the 4th group;Mode due to using ajax Asynchronous Requests, therefore without waiting for rear number of units Also can continue to do thing below according to the response in storehouse.That is ajax Asynchronous Requests, i.e. front end have been sent out and have been asked to database, so Afterwards front end this why, the return of the response of monitor database is carried out by single thread.Database processing is over, before return End, front end received this by single thread and responds and process, and front end itself this do and do, it is not necessary to wait number According to the response and the delay of network in storehouse.Database also can successively enter after request of data is received according to the sequencing for receiving Row feedback respond, due to after packet sequence send request be according to data volume size sort, therefore, database response when, The little group of the data volume that first receives also can be replied quickly, in the test number of first group of test item for getting database return According to rear, front end then first can be drawn according to these test item datas.If we have 1 main test machine PC1 to survey router fortune The main steps test item of row time, free memory, remaining CPU and current operation;2 test machine PC2 are identical with PC3 execution Script test ping latency, ping packet loss, network interface card connection speed, network interface card connection signal strength signal intensity, and network interface card flow rate test item, So after the data back for receiving the first networking card flow rate test item, then PC2 network interface card flow rate test figures, PC3 can be in advance drawn Network interface card flow rate test figure;Then after the ping latency and ping packet loss test item test datas for receiving second group, draw The ping latency test chart of PC2, the ping packet loss test charts of PC2, the ping latency test chart of PC3, the ping packet loss of PC3 Test chart, by that analogy, the operation hours of the 4th group for finally receiving, free memory, residue CPU, critical processes test Test data, then finally draw the operation hours test chart of PC1, the equipment free memory test chart of PC1, PC1 The equipment critical processes test test chart of equipment residue cpu test figure, PC1.By packet sequencing by the maximum request of data volume Put behind.So the page will not interim card, while user can soon see the effect of part figure, and be easy to the code in later stage Safeguard.
A kind of another embodiment of router test data visualization method of the present invention, on the basis of above-described embodiment one On, step is also included after step S300:
The resolution chart that S400 is screened according to user, according to default refresh interval, refreshes the resolution chart.
Specifically, as shown in figure 3, the present embodiment method includes step:
S100 performs respectively different test scripts, obtains the test data of each test event of router to be measured, and will be described Test data is stored in database;
S200 receive user data visualization access requests, from database the survey of different test machine and test events is obtained Examination data;
S300, by different test machine and test event, is depicted as respectively different test charts according to the test data Shape is simultaneously shown;
The screening instruction of S410 receive users, the resolution chart for filtering out is initialized, and caches what is obtained Former data;
According to the default refresh interval time, acquisition maximum time point on the resolution chart is nearest to be preset S420 The nearest new data of number;Or according to the default refresh interval time, obtain on the resolution chart of the database purchase All new datas after maximum time point;
The new data for getting is merged into data set by S430 with the former data of caching;
S440 draws the resolution chart after refreshing according to the data set after the merging.
Because test data is constantly updated and increased, test chart also needs periodic refreshing, reaches Dynamic Display Effect.Test chart is first initialized when refreshing, and data during initialization are all cached, and according to script refreshing frequency is formulated, and is read The maximum time in current figure is taken, then with maximum time as starting point, is obtained locally more than the starting point and apart from this per figure is opened The new data of the nearest predetermined number of point, such as restriction number are 1 (when being so to consider network transfer delay and IO read-writes Prolong, because refreshing frequency is high, may not necessarily take if specifying and obtaining newest data).Can certainly be by obtaining current test All new datas that database after figure point of upper maximum time is present, the mode of acquisition can also adopt AJAX request, connect down The new data for getting is merged into into legacy data to concentrate, is filled in figure and is realized refreshing.Due to surveying to current during initialization Attempt upper existing data to be cached, therefore this partial data is without the need for obtaining to database again, need to only obtain newly-increased that Partial data, this also reduces workload, save energy consumption, improve efficiency.
A kind of another embodiment of router test data visualization method of the present invention, on the basis of above-described embodiment, After increased refreshing, the step of judgement one monitoring of data, as shown in figure 4, the present embodiment test data visualization method Including step:
S100 performs respectively different test scripts, obtains the test data of each test event of router to be measured, and will be described Test data is stored in database;
S200 receive user data visualization access requests, from database the survey of different test machine and test events is obtained Examination data;
S300, by different test machine and test event, is depicted as respectively different test charts according to the test data Shape is simultaneously shown;
The screening instruction of S410 receive users, the resolution chart for filtering out is initialized, and caches what is obtained Former data;
According to the default refresh interval time, acquisition maximum time point on the resolution chart is nearest to be preset S420 The nearest new data of number;Or according to the default refresh interval time, obtain on the resolution chart of the database purchase All new datas after maximum time point;
The new data for getting is merged into data set by S430 with the former data of caching;
S440 draws the resolution chart after refreshing according to the data set after the merging.
After S445 judges to refresh, whether current resolution chart is filled with new data, if so, then enters into step S447;It is no Then, into step S446;
S446 judges data exception, warns user;
The time difference of beginning and ends of the S447 in current resolution chart, according to the frequency for updating, obtains theoretical Data volume, and the gross data amount is compared with actual amount of data, if difference enters into step beyond default scope S448;Otherwise, into step S449;
S448 judges shortage of data, reminds user;
S449 judges that data are normal.
The present embodiment, after resolution chart is refreshed, also add a test and judge step, because test is continuous Carry out, then constantly there are data to increase newly, figure also can constantly have new data to increase after refreshing, and if (refreshing frequency after refreshing Rate is more than test and time delay frequency), be filled on resolution chart without new data, then exception is occurred in that, now need timely police Show user.If filling data whether the difference for determining whether gross data and real data is also required to default In difference range (consider time delay, the two is not necessarily equal), actual amount of data refers to after refreshing origin-to-destination on resolution chart Time period, the actual amount of test data for obtaining, if beyond difference range, needing to remind user to have shortage of data.Increase The step for, equivalent to increased a monitoring to refresh data, once pinpointing the problems, can in time report user.
Preferably, on the basis of above-mentioned all embodiments, also including step:
The instruction of S500 receive users, and perform corresponding screening picture, derive form or preserve and survey according to the instruction Attempt the operation of shape.
Instructed according to the screening of user, select a wherein width test chart, the test chart to be updated, make tester only See the figure dynamic of the test item oneself being concerned about.User can also carry out the screening of time, enable tester to observe the specified time Interval data.
Resolution chart can preserve into picture according to the instruction of user, it is also possible to which the test data of database is derived into form, For reporting or backing up.
Based on identical technology design, the embodiment of the present invention also provides a kind of router test data visual system, The executable said method embodiment of the system.System provided in an embodiment of the present invention is as shown in figure 5, including at least two test machines 100th, memory module 200, management module 300, graphics module 400;The memory module 200 and at least two test machines 100 are connected, and the management module 300 is connected respectively with the memory module 200 and graphics module 400, wherein:
At least two test machines 100 perform respectively different test scripts, obtain each test event of router to be measured Test data, and the test data is stored in by database by memory module 200;
The receive user data visualization access request of the management module 300, from the database of the memory module 200 The test data of the different test machine of acquisition and test event;
The test data that the graphics module 400 is obtained according to the management module 300, by different test machines and test Project, is depicted as respectively different resolution charts and is shown.
Generally, two test machines, a main test machine, perform script 1 are at least needed to be used for test router Main steps of performance test, including operation hours, free memory, remaining CPU and current operation etc., other test machines Perform script 2, for test network parameter, including timing ping outer nets and gateway ping latency and ping packet losses are obtained, and are obtained Network interface card connection speed and signal strength signal intensity, and the uplink traffic and downlink traffic of network interface card.It is usually in practice to employ 1 main survey Test-run a machine surveys performance, 3 auxiliary test machine test network parameters.The data of test can be continually stored in database, subsequently with When the viewable access of family, then these data are obtained from database, and according to test machine and test item, charted respectively.It is logical Crossing test chart allows user more intuitively to see test data, readable strong.
Another embodiment of present system, as shown in fig. 6, on the basis of above-described embodiment, the management module 300 is wrapped Include:Receiving unit 310, grouped element 320 and acquiring unit 330, wherein, the grouped element 320 obtains single with described respectively The unit 330, receiving unit 310 is connected, wherein:
The receive user data visualization access request of the receiving unit 310;
The grouped element 320 is grouped each test event according to preset rules, and according to each group number of request It is ranked up according to mode from small to large according to the size of amount;
The acquiring unit 330 takes successively the mode of ajax Asynchronous Requests to obtain from database respectively according to precedence The test data of the group test event;
The sequencing of each test event group that the graphics module 400 gets according to the acquiring unit 330, according to Different test machine and test event, are depicted as respectively different resolution charts and are shown.
Preferably, the management module 300 also includes initialization unit 340, refresh unit 350, the initialization unit 340 are connected respectively with the receiving unit 310, the refresh unit 350, the refresh unit 350 and the acquiring unit 330 It is connected, wherein:
The screening instruction of the receive user of the receiving unit 310, the initialization unit 340 is by the test for filtering out Figure performs initialization, and the former data that caching has been obtained;
The refresh unit 350 is obtained apart from described according to the default refresh interval time by the acquiring unit 330 The nearest new data of the nearest predetermined number of maximum time point on resolution chart;Or the refresh unit 350 is according to default brush New interval time, by the acquiring unit 330 obtain on the resolution chart of the database purchase maximum time point it All new datas afterwards;
The new data for getting is merged into data set by the refresh unit 350 with the former data of caching;
The graphics module 400 draws out the test chart after refreshing according to the data set that the refresh unit 350 is merged into Shape.
Preferably, the management module 300 also includes judging unit 360, warning reminding unit 370, performance element 380; The judging unit 360 is connected respectively with the refresh unit 350, warning reminding unit 370, the performance element 380 and institute State receiving unit 310 to be connected;Wherein:
After the judging unit 360 judges that the refresh unit 350 refreshes, whether current resolution chart is filled with new number According to;If being filled with new data, the time difference of beginning and end of the judging unit 360 in current resolution chart, According to the frequency for updating, obtain gross data amount, and the gross data amount compared with actual amount of data, if difference beyond Default scope, then judge shortage of data, and by the warning reminding unit 370 user is reminded;Otherwise, data exception is judged; If current resolution chart is not filled by new data, the judging unit 360 judges data exception, by the warning reminding unit 370 warning users;
The receive user of the receiving unit 310 is instructed, and the performance element 380 is received according to the receiving unit 310 Instruction performs corresponding screening picture, derives form or preserve the operation of resolution chart.
Another embodiment of present system, every test envelope single tests a wireless router, wherein comprising four Platform PC, structure is as shown in Figure 7.Wherein main PC perform scripts 1, the major function of script 1 is to obtain DUT (device under The main steps of operation hours test), free memory, remaining CPU and current operation.PC1, PC2, PC3 act on phase Together, perform same script --- script 2, the major function of script 2 is timing ping outer nets and gateway obtain ping latency and Ping packet losses, obtain network interface card connection speed and signal strength signal intensity, and the uplink traffic and downlink traffic of network interface card (every frequency is equal It is each for 30s).Detailed test item list is as shown in Figure 8.
The core process schematic diagram of the system is as shown in figure 9, detailed process is to configure simultaneously in Back Administration Module first Open test (related PC starts to perform correspondence script, obtains data write into Databasce).At this moment can see in test envelope original list To the test envelope currently tested, the current test accessed on this is clicked on, current test page loads first the quiet of basis State html and css, js file.Next start to draw fundamental figure, each test item shows on a figure, that is to say, that Current test page needs to show 19 figures, more crucially schemes all to include mass data substantially per.Processing method is front end In four times ajax Asynchronous Requests go to backstage to obtain total data, and the maximum request of data volume is put behind.So the page is not Meeting interim card, while user can soon see the effect of part figure, and is easy to the code maintenance in later stage.Actual effect figure is as schemed Shown in 10.
Because test data is constantly updated and increased, flushing policy need to be formulated in front end, reach Dynamic Display Effect.Data when flushing policy is initialization are all cached, and according to script refreshing frequency is formulated, and are read in current figure most The big time, then with maximum time as starting point, obtain locally more than the starting point and apart from the nearest new data of the starting point per a figure, It (is so to consider network transfer delay and IO read-write time delays, because refreshing frequency is high, if specify obtaining most that number is limited for 1 New data may not necessarily be taken).Next the new data for getting is merged into into legacy data to concentrate, is filled in figure and realizes brush Newly.Except when front test, also history test, its chart interface to currently test similar.
Other of stability monitoring module (equivalent to the control module in said system embodiment of the present invention) are several big important Function includes:
Shortage of data warning lamp, for detecting whether test phase data have disappearance.General principle is according in current figure Starting and terminal time difference and local data update frequency calculate gross data amount with currently practical data volume ratio Compared with difference beyond specified range, then warn by amber light;Red light is warned if current test refreshes and obtains less than data automatically.All are just Often show green light.
Figure screening, the selector of figure makes tester only see the figure dynamic of the test item oneself being concerned about.
Time screens, and enables tester to observe the data of specified time interval.
Report capability, one is the figure of test item to be preserved into into picture, and two is the data of test to be derived into form.For Report is backed up.
The present embodiment is tested and monitoring from wireless router, elaborates to implement and detailed functions, realizes prison The visualization of control, improves the efficiency of test.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising these changes and modification.

Claims (10)

1. a kind of router test data visualization method, it is characterised in that including step:
S100 performs respectively different test scripts, obtains the test data of each test event of router to be measured, and by the test Data storage is in database;
S200 receive user data visualization access requests, from database the test number of different test machine and test events is obtained According to;
S300, by different test machine and test event, is depicted as respectively different resolution charts simultaneously according to the test data Shown.
2. a kind of router test data visualization method according to claim 1, it is characterised in that the step S200 includes step:
S210 receive user data visualization access requests;
S220 is grouped each test event according to preset rules, and according to the size of each group request data quantity according to from It is little to be ranked up to big mode;
S230 takes successively the mode of ajax Asynchronous Requests that test event described in each group is obtained from database according to precedence Test data;
Step S300 also includes step:
S310, according to different test machine and test event, is painted respectively according to the sequencing of each test event group for getting Make different resolution charts and shown.
3. a kind of router test data visualization method according to claim 1, it is characterised in that also including step Suddenly:
The resolution chart that S400 is screened according to user, according to default refresh interval, refreshes the resolution chart.
4. a kind of router test data visualization method according to claim 3, it is characterised in that the step S400 also includes step:
The screening instruction of S410 receive users, the resolution chart for filtering out is initialized, and the former number that caching has been obtained According to;
S420 obtains the nearest predetermined number of maximum time point on the resolution chart according to the default refresh interval time Nearest new data;Or according to the default refresh interval time, obtain maximum on the resolution chart of the database purchase All new datas after time point;
The new data for getting is merged into data set by S430 with the former data of caching;
S440 draws the resolution chart after refreshing according to the data set after the merging.
5. a kind of router test data visualization method according to claim 4, it is characterised in that in the step Also include step after S440:
After S445 judges to refresh, whether current resolution chart is filled with new data, if so, then enters into step S447;Otherwise, enter Enter step S446;
S446 judges data exception, warns user;
The time difference of beginning and ends of the S447 in current resolution chart, according to the frequency for updating, obtains gross data Amount, and the gross data amount is compared with actual amount of data, if difference enters into step beyond default scope S448;Otherwise, into step S449;
S448 judges shortage of data, reminds user;
S449 judges that data are normal.
6. a kind of router test data visualization method according to claim 1, it is characterised in that also including step Suddenly:
The instruction of S500 receive users, and perform corresponding screening picture, derive form or preserve test chart according to the instruction The operation of shape.
7. the visual system of a kind of router test data, it is characterised in that including at least two test machines, memory module, Management module, graphics module;The memory module is connected with least two test machines, the management module respectively with it is described Memory module is connected with graphics module, wherein:
At least two test machines perform respectively different test scripts, obtain the test number of each test event of router to be measured According to, and the test data is stored in by database by memory module;
The management module receive user data visualization access request, obtains different from the database of the memory module The test data of test machine and test event;
The test data that the graphics module is obtained according to the management module, by different test machine and test event, difference It is depicted as different resolution charts and is shown.
8. a kind of visual system of router test data according to claim 1, it is characterised in that the management mould Block includes:Receiving unit, grouped element and acquiring unit, wherein, the grouped element respectively with the acquiring unit, described Receiving unit is connected, wherein:
The receiving unit receive user data visualization access request;
The grouped element is grouped each test event according to preset rules, and according to the big of each group request data quantity It is little to be ranked up according to mode from small to large;
The acquiring unit takes successively the mode of ajax Asynchronous Requests to obtain described in each group from database according to precedence The test data of test event;
The sequencing of each test event group that the graphics module gets according to the acquiring unit, according to different tests Machine and test event, are depicted as respectively different resolution charts and are shown.
9. a kind of visual system of router test data according to claim 7, it is characterised in that the management mould Block also include initialization unit, refresh unit, the initialization unit respectively with the receiving unit, the refresh unit phase Even, the refresh unit is connected respectively with the acquiring unit, graphics module, wherein:
The screening instruction of the receiving unit receive user, the initialization unit performs the resolution chart for filtering out just Beginningization, and the former data that caching has been obtained;
The refresh unit is obtained on the resolution chart according to the default refresh interval time by the acquiring unit The nearest new data of the nearest predetermined number of maximum time point;Or the refresh unit is according to the default refresh interval time, lead to Cross all new datas after maximum time point on the resolution chart of the acquiring unit acquisition database purchase;
The new data for getting is merged into data set by the refresh unit with the former data of caching;
The graphics module draws out the resolution chart after refreshing according to the data set that the refresh unit is merged into.
10. a kind of visual system of router test data according to claim 9, it is characterised in that the management Module also includes judging unit, warning reminding unit, performance element;The judging unit respectively with the refresh unit, warning Reminding unit is connected, and the performance element is connected with the receiving unit;Wherein:
After the judging unit judges that the refresh unit refreshes, whether current resolution chart is filled with new data;If being filled with New data, then the time difference of beginning and end of the judging unit in current resolution chart, according to the frequency for updating, Gross data amount is obtained, and the gross data amount is compared with actual amount of data, if difference is sentenced beyond default scope Disconnected shortage of data, by the warning reminding unit user is reminded;Otherwise, data exception is judged;If current resolution chart is not filled out New data is filled, then the judging unit judges data exception, user is warned by the warning reminding unit;
The receiving unit receive user instruction, the performance element performs corresponding according to the instruction that the receiving unit is received Screening picture, the operation for deriving form or preservation resolution chart.
CN201610996844.5A 2016-11-10 2016-11-10 Router test data visualization method and system Active CN106604312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610996844.5A CN106604312B (en) 2016-11-10 2016-11-10 Router test data visualization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610996844.5A CN106604312B (en) 2016-11-10 2016-11-10 Router test data visualization method and system

Publications (2)

Publication Number Publication Date
CN106604312A true CN106604312A (en) 2017-04-26
CN106604312B CN106604312B (en) 2020-12-22

Family

ID=58591307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610996844.5A Active CN106604312B (en) 2016-11-10 2016-11-10 Router test data visualization method and system

Country Status (1)

Country Link
CN (1) CN106604312B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451063A (en) * 2017-08-14 2017-12-08 凌云天博光电科技股份有限公司 A kind of script method of testing and device
CN107682276A (en) * 2017-09-15 2018-02-09 深圳市盛路物联通讯技术有限公司 The dispatching method and system of a kind of data flow
CN107966643A (en) * 2017-10-18 2018-04-27 中山大学 The Interactive Visualization device and its implementation of a kind of real-time testing data
CN108429655A (en) * 2018-02-27 2018-08-21 四川斐讯信息技术有限公司 A kind of projecting method and wireless router of wireless performance parameter
CN113411236A (en) * 2021-06-23 2021-09-17 中移(杭州)信息技术有限公司 Quality difference router detection method, quality difference router detection device, quality difference router detection equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020183995A1 (en) * 2001-06-05 2002-12-05 Alastair Veitch System and method for simulating railroad rail testing
CN101556666A (en) * 2009-05-21 2009-10-14 中国建设银行股份有限公司 Method, device and auditing system for establishing auditing model
CN101894058A (en) * 2010-05-31 2010-11-24 北京航空航天大学 Method and device for analyzing test coverage automatically aiming at automatic test system
CN102012861A (en) * 2010-11-01 2011-04-13 北京航空航天大学 Method and system for real-time embedded software test result data analysis
CN102904887A (en) * 2012-09-26 2013-01-30 东软集团股份有限公司 Method and system for data synchronization of Web client and server
CN103019728A (en) * 2012-12-20 2013-04-03 厦门亿力吉奥信息科技有限公司 Effective complex report parsing engine and parsing method thereof
CN103425573A (en) * 2012-05-24 2013-12-04 腾讯科技(深圳)有限公司 Code testing information collecting method and system
CN103699543A (en) * 2012-09-28 2014-04-02 南京理工大学 Information visualization method based on ground object classification of remote sensing image
CN104050214A (en) * 2013-03-13 2014-09-17 Abb研究有限公司 Industrial asset event chronology
CN104778525A (en) * 2014-01-15 2015-07-15 讯利电业股份有限公司 Quality control method by using test data
CN105224458A (en) * 2015-10-09 2016-01-06 上海瀚银信息技术有限公司 A kind of database method of testing and system
US20160224455A1 (en) * 2015-01-30 2016-08-04 Fujitsu Limited Method of verifying a set of tests, storage medium, and apparatus
CN105847088A (en) * 2016-05-18 2016-08-10 浪潮电子信息产业股份有限公司 Virtual machine performance test system based on cloud service

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020183995A1 (en) * 2001-06-05 2002-12-05 Alastair Veitch System and method for simulating railroad rail testing
CN101556666A (en) * 2009-05-21 2009-10-14 中国建设银行股份有限公司 Method, device and auditing system for establishing auditing model
CN101894058A (en) * 2010-05-31 2010-11-24 北京航空航天大学 Method and device for analyzing test coverage automatically aiming at automatic test system
CN102012861A (en) * 2010-11-01 2011-04-13 北京航空航天大学 Method and system for real-time embedded software test result data analysis
CN103425573A (en) * 2012-05-24 2013-12-04 腾讯科技(深圳)有限公司 Code testing information collecting method and system
CN102904887A (en) * 2012-09-26 2013-01-30 东软集团股份有限公司 Method and system for data synchronization of Web client and server
CN103699543A (en) * 2012-09-28 2014-04-02 南京理工大学 Information visualization method based on ground object classification of remote sensing image
CN103019728A (en) * 2012-12-20 2013-04-03 厦门亿力吉奥信息科技有限公司 Effective complex report parsing engine and parsing method thereof
CN104050214A (en) * 2013-03-13 2014-09-17 Abb研究有限公司 Industrial asset event chronology
CN104778525A (en) * 2014-01-15 2015-07-15 讯利电业股份有限公司 Quality control method by using test data
US20160224455A1 (en) * 2015-01-30 2016-08-04 Fujitsu Limited Method of verifying a set of tests, storage medium, and apparatus
CN105224458A (en) * 2015-10-09 2016-01-06 上海瀚银信息技术有限公司 A kind of database method of testing and system
CN105847088A (en) * 2016-05-18 2016-08-10 浪潮电子信息产业股份有限公司 Virtual machine performance test system based on cloud service

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵颖; 王权; 黄叶子; 吴青; 张胜: "多视图合作的网络流量时序数据可视分析", 《软件学报》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451063A (en) * 2017-08-14 2017-12-08 凌云天博光电科技股份有限公司 A kind of script method of testing and device
CN107451063B (en) * 2017-08-14 2021-04-27 凌云天博光电科技股份有限公司 Script testing method and device
CN107682276A (en) * 2017-09-15 2018-02-09 深圳市盛路物联通讯技术有限公司 The dispatching method and system of a kind of data flow
CN107682276B (en) * 2017-09-15 2021-06-22 深圳市盛路物联通讯技术有限公司 Data stream scheduling method and system
CN107966643A (en) * 2017-10-18 2018-04-27 中山大学 The Interactive Visualization device and its implementation of a kind of real-time testing data
CN107966643B (en) * 2017-10-18 2020-09-29 中山大学 Interactive visualization device for real-time test data and implementation method thereof
CN108429655A (en) * 2018-02-27 2018-08-21 四川斐讯信息技术有限公司 A kind of projecting method and wireless router of wireless performance parameter
CN113411236A (en) * 2021-06-23 2021-09-17 中移(杭州)信息技术有限公司 Quality difference router detection method, quality difference router detection device, quality difference router detection equipment and storage medium

Also Published As

Publication number Publication date
CN106604312B (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN106604312A (en) Router test data visualization method and system
CN103294711B (en) Method and device for determining page elements in web page
CN108829509A (en) Distributed container cluster framework resources management method based on domestic CPU and operating system
Atwood et al. Further explorations with a process model for water jug problems
CN106776337A (en) Performance analysis method and device and electronic equipment
CN110489464A (en) Heuristic figure fusion visualization method and device
CN109684576A (en) Web page resources lazyness loads monitoring method, device, equipment and storage medium
CN110413510B (en) Data processing method, device and equipment
CN110363427A (en) Model quality evaluation method and apparatus
CN111130842B (en) Dynamic network map database construction method reflecting network multidimensional resources
CN105867951A (en) Data processing method and device as well as screen designer
Farias et al. Regression based performance modeling and provisioning for NoSQL cloud databases
CN104301171B (en) A kind of network for formance measuring method and system based on DNS authority server
CN103607735A (en) Base station display method and device based on map
CN110442550A (en) The poly- screen real time visualized method of log and device
CN114791846A (en) Method for realizing observability aiming at cloud native chaos engineering experiment
CN105357637B (en) A kind of position and behavioural information forecasting system and method
CN117130768A (en) Frequency modulation relation table generation method and electronic equipment
CN111369031A (en) Bin division planning method and device
CN109597744A (en) Data unusual fluctuation analysis method and device
CN106020732A (en) Node disk space determining method and system
CN112423337A (en) Network coverage diagnosis model construction method, network coverage diagnosis method and device
CN115390972A (en) Method, device and medium for displaying relevant information of ubiquitous network equipment
GB2527672A (en) Measuring device performance
CN113342618A (en) Distributed monitoring cluster management method, device and computer readable storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20201028

Address after: No. 2-3167, zone a, Nonggang City, No. 2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Applicant after: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Applicant before: Phicomm (Shanghai) Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201203

Address after: No. 32123, jintangjian Town, Zhejiang Province

Applicant after: Wang Yunzhuo

Address before: No. 2-3167, zone a, Nonggang City, No. 2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Applicant before: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240701

Address after: Room 04-1272, 8th Floor, No. 18 Zhongguancun Street, Haidian District, Beijing, 100000

Patentee after: Beijing Haoding Hongfa Technology Co.,Ltd.

Country or region after: China

Address before: No.23 Datang Village, Majian Town, Lanxi City, Jinhua City, Zhejiang Province

Patentee before: Wang Yunzhuo

Country or region before: China

TR01 Transfer of patent right