CN105786428B - The method and device of the transmission rate of explicit routing device - Google Patents
The method and device of the transmission rate of explicit routing device Download PDFInfo
- Publication number
- CN105786428B CN105786428B CN201610086715.2A CN201610086715A CN105786428B CN 105786428 B CN105786428 B CN 105786428B CN 201610086715 A CN201610086715 A CN 201610086715A CN 105786428 B CN105786428 B CN 105786428B
- Authority
- CN
- China
- Prior art keywords
- moment
- transmission rate
- calculating
- current
- integrated flow
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0894—Packet rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/60—Router architectures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention is suitable for information technology field, provides the method and device of the transmission rate of explicit routing device.This method comprises: obtaining the transmission rate that router currently calculates the moment, the transmission rate includes uplink transmission rate and/or downlink transmission rate;By the corresponding curve graph of transmission rate of DHTML router described in dynamic generation in webpage, the curve graph includes the current transmission rate for calculating the moment and the transmission rate before the current calculating moment in predetermined time period.The present invention passes through the transmission rate curve graph corresponding with the transmission rate in predetermined time period before the current calculating moment that DHTML dynamic generation router in webpage currently calculates the moment, thus in a manner of intuitively explicit routing device transmission rate, and dedicated control is downloaded without user, special security setting is carried out in a browser without user, substantially increases the operation convenience of the transmission rate of explicit routing device.
Description
Technical field
The invention belongs to information technology field more particularly to the method and devices of the transmission rate of explicit routing device.
Background technique
In the prior art, if user wants to check the transmission rate of router, need to download dedicated control, and need
Special security setting is carried out, operation convenience is lower.
Summary of the invention
In consideration of it, the embodiment of the invention provides a kind of method and device of the transmission rate of explicit routing device, to solve
The prior art checks the lower problem of the operation convenience of the transmission rate of router.
In a first aspect, the embodiment of the invention provides a kind of methods of the transmission rate of explicit routing device, comprising:
Obtain router and currently calculate the transmission rate at moment, the transmission rate include uplink transmission rate and/or under
Row transmission rate;
Pass through the corresponding curve graph of transmission rate of DHTML router described in dynamic generation in webpage, the curve graph
Transmission rate including the current transmission rate for calculating the moment and before the current calculating moment in predetermined time period.
Second aspect, the embodiment of the invention provides a kind of devices of the transmission rate of explicit routing device, comprising:
Acquiring unit, the transmission rate at moment is currently calculated for obtaining router, and the transmission rate includes that uplink passes
Defeated rate and/or downlink transmission rate;
Curve graph generation unit, it is corresponding for the transmission rate by DHTML router described in dynamic generation in webpage
Curve graph, the curve graph include it is described it is current calculate the moment transmission rate and current the calculatings moment before preset when
Between transmission rate in length.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention is by obtaining router
The current transmission rate for calculating the moment, by DHTML, dynamic generation router currently calculates the transmission rate at moment in webpage
Curve graph corresponding with the transmission rate before the current calculating moment in predetermined time period, thus shows road in a manner of intuitively
Dedicated control is downloaded by the transmission rate of device, and without user, special safety is carried out in a browser without user and sets
It sets, substantially increases the operation convenience of the transmission rate of explicit routing device.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the method for the transmission rate of explicit routing device provided in an embodiment of the present invention;
Fig. 2 is the specific implementation stream of the method and step S101 of the transmission rate of explicit routing device provided in an embodiment of the present invention
Cheng Tu;
Fig. 3 is the specific implementation stream of the method and step S102 of the transmission rate of explicit routing device provided in an embodiment of the present invention
Cheng Tu;
Fig. 4 is to pass through DHTML in the method for the transmission rate of explicit routing device provided in an embodiment of the present invention in webpage
The schematic diagram of the corresponding curve graph of the downlink transmission rate of dynamic generation router;
Fig. 5 is to pass through DHTML in the method for the transmission rate of explicit routing device provided in an embodiment of the present invention in webpage
The schematic diagram of the corresponding curve graph of the uplink transmission rate of dynamic generation router;
Fig. 6 is the structural block diagram of the device of the transmission rate of explicit routing device provided in an embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 shows the implementation flow chart of the method for the transmission rate of explicit routing device provided in an embodiment of the present invention, in detail
It states as follows:
In step s101, the transmission rate that router currently calculates the moment is obtained, transmission rate includes uplink speed
Rate and/or downlink transmission rate;
In step s 102, by DHTML in webpage the corresponding curve graph of the transmission rate of dynamic generation router, it is bent
Line chart includes the current transmission rate for calculating the moment and the transmission rate before the current calculating moment in predetermined time period.
In embodiments of the present invention, the transmission rate that router currently calculates the moment is obtained with predeterminated frequency.For example, default
Every time for 5 seconds, then every five seconds obtains the transmission rate of router once to frequency, and the current calculating moment was separated by 5 with a upper calculating moment
Second.According to the transmission rate of the router continuously acquired, pass through DHTML (Dynamic HyperText Markup
Language, Dynamic Hyper Text Makeup Language) technology dynamic generation router in webpage the corresponding curve graph of transmission rate,
Thus the transmission rate of router is shown with intuitive way.
Fig. 2 shows the specific realities of the method and step S101 of the transmission rate of explicit routing device provided in an embodiment of the present invention
Existing flow chart, referring to Fig. 2:
In step s 201, acquisition router currently calculates moment corresponding integrated flow and a upper calculating moment is corresponding
Integrated flow;
In step S202, corresponding integrated flow of current calculating moment accumulative stream corresponding with a upper calculating moment was calculated
The difference in flow of amount;
In step S203, the current time difference for calculating moment and a upper calculating moment is calculated;
In step S204, the current transmission rate for calculating the moment is calculated according to difference in flow and time difference.
As an embodiment of the present invention, router is obtained with predeterminated frequency and currently calculates moment corresponding accumulative stream
Amount then currently calculates moment corresponding integrated flow every 5 seconds acquisition routers, specifically for example, predeterminated frequency is 5 seconds each
Ground, every the getNextData function of execution in 5 seconds, getNextData function passes through one XMLHttpRequest pairs
As accessing the getwandata.html page on the router, it is current that the getwandata.html page can return to the router
Receive the aggregate-value of byte number and the aggregate-value of the byte number sent out, i.e. uplink integrated flow and downlink integrated flow.Meter
It is poor to calculate the current uplink traffic for calculating moment corresponding uplink integrated flow uplink integrated flow corresponding with a upper calculating moment,
The current time difference for calculating moment and a upper calculating moment is calculated, by uplink traffic difference divided by time difference, available current meter
The average uplink transmission rate between moment and a upper calculating moment was calculated, and is approximately current meter by the average uplink transmission rate
Calculate the uplink transmission rate at moment.Under calculating current calculating moment corresponding downlink integrated flow is corresponding with a upper calculating moment
The downlink traffic of row integrated flow is poor, calculates the current time difference for calculating moment and a upper calculating moment, downlink traffic difference is removed
With the time difference, the available current average downlink transmission rate calculated between moment and a upper calculating moment, and this is averaged
Downlink transmission rate is approximately the current downlink transmission rate for calculating the moment.
Preferably, by DHTML, the corresponding curve graph of the transmission rate of dynamic generation router includes: in webpage
Using the time as the horizontal axis of curve graph, and using transmission rate as the longitudinal axis of curve graph;
With it is wide and it is high be that the DIV element of m pixel indicates a point, and indicate to route by point that DIV element indicates
Device is in a certain transmission rate for calculating the moment, wherein m is the integer more than or equal to 1.
Preferably, m is equal to 1.
In embodiments of the present invention, one in curve graph is usually indicated by the DIV of HTML (DIVision separates) member
Point.The position attribution of DIV element can be set to absolute fix mode or relative positioning mode.In relative positioning mode,
The coordinate position of each point is determined according to the relative coordinate position with a upper point.For convenience of calculation, implement in the present invention
Absolute fix mode can be used in example, the specific location of point is determined according to TOP value and LEFT value, for example, the TOP value of certain point is
193 pixels, LEFT value are 670 pixels.The color attribute of DIV element can also be set, to determine the color of curve in curve graph.
The width and height of DIV element are set, can determine size a little.Preferably, it is wide and it is high be 1.
It should be noted that in other examples, it can also be using transmission rate as the horizontal axis of curve graph, with the time
As the longitudinal axis of curve graph, details are not described herein.
Preferably, by DHTML, the corresponding curve graph of the transmission rate of dynamic generation router includes: in webpage
Upper one transmission rate for calculating the moment is obtained, and calculates the current transmission rate for calculating the moment and upper one and calculates the moment
Transmission rate speed difference;
It determines time difference corresponding abscissa range and the corresponding ordinate range of speed difference, and calculates ordinate range
With the ratio p of abscissa range;
If abscissa range is greater than or equal to ordinate range, above one moment corresponding horizontal axis picture is calculated on transverse axis
Plain position is starting point, every step increase by 1 pixel until reach it is current calculate moment corresponding horizontal axis location of pixels, and on longitudinal axis with
The upper one corresponding longitudinal axis location of pixels of transmission rate for calculating the moment is starting point, and every step increases p pixel until reaching current calculate
The corresponding longitudinal axis location of pixels of the transmission rate at moment;
If abscissa range is less than ordinate range, the transmission rate at the above calculating moment is corresponding vertical on longitudinal axis
Axis location of pixels is starting point, and every step increases by 1 pixel until reaching the current transmission rate corresponding longitudinal axis pixel position for calculating the moment
It sets, corresponding horizontal axis location of pixels of the above calculating moment is starting point on transverse axis, and every step increases 1/p pixel until reaching currently
Calculate moment corresponding horizontal axis location of pixels.
For example, currently calculating moment corresponding horizontal axis location of pixels is x2, upper one calculates moment corresponding horizontal axis pixel position
It is set to x1, the current corresponding longitudinal axis location of pixels of transmission rate for calculating the moment is y2, upper one calculates the transmission rate correspondence at moment
Longitudinal axis location of pixels be y1.Time difference corresponding abscissa range is x2-x1, the corresponding ordinate range of speed difference is y2-y1,
Ratio p=(y2-y1)/(x2-x1).If abscissa range is greater than or equal to ordinate range, with x1For starting point, every step increases by 1
Pixel is until reach x2, and on longitudinal axis with y1For starting point, every step increases p pixel until reaching y2;If abscissa range is less than vertical
Coordinate range, then on longitudinal axis with y1For starting point, every step increases by 1 pixel until reaching y2, on transverse axis with x1For starting point, every step
Increase 1/p pixel until reaching x2。
Fig. 3 shows the specific reality of the method and step S102 of the transmission rate of explicit routing device provided in an embodiment of the present invention
Existing flow chart, referring to Fig. 3:
In step S301, using the time as the horizontal axis of curve graph, and using transmission rate as the longitudinal axis of curve graph;
In step s 302, with it is wide and it is high be that the DIV element of 1 pixel indicates a point, and passes through what DIV element indicated
It puts to indicate router in a certain transmission rate for calculating the moment;
In step S303, upper one transmission rate for calculating the moment is obtained, and calculates the current transmission rate for calculating the moment
The speed difference for the transmission rate for calculating the moment with upper one;
In step s 304, time difference corresponding abscissa range and the corresponding ordinate range of speed difference are determined, and
Calculate the ratio p of ordinate range and abscissa range;
In step S305, if abscissa range is greater than or equal to ordinate range, on transverse axis when the above calculating
Carving corresponding horizontal axis location of pixels is starting point, and every step increases by 1 pixel and currently calculates moment corresponding horizontal axis pixel position until reaching
It sets, and the above one corresponding longitudinal axis location of pixels of transmission rate for calculating the moment is starting point on longitudinal axis, it is straight that every step increases p pixel
To the corresponding longitudinal axis location of pixels of transmission rate for reaching the current calculating moment;
In step S306, if abscissa range is less than ordinate range, above one biography for calculating the moment on longitudinal axis
The corresponding longitudinal axis location of pixels of defeated rate is starting point, and every step increases by 1 pixel until reaching the current transmission rate pair for calculating the moment
The longitudinal axis location of pixels answered, corresponding horizontal axis location of pixels of the above calculating moment is starting point on transverse axis, and every step increases 1/p picture
Element is until reach corresponding horizontal axis location of pixels of current calculating moment.
Fig. 4 is shown in the method for the transmission rate of explicit routing device provided in an embodiment of the present invention through DHTML in net
The schematic diagram of the corresponding curve graph of downlink transmission rate of dynamic generation router in page.In Fig. 4, the right end of horizontal axis is indicated
Current to calculate the moment, the 10.26KByte/s in bracket indicates that the current downlink transmission rate for calculating the moment is 10.26KByte/
s。
Fig. 5 is shown in the method for the transmission rate of explicit routing device provided in an embodiment of the present invention through DHTML in net
The schematic diagram of the corresponding curve graph of uplink transmission rate of dynamic generation router in page.In Fig. 5, the right end of horizontal axis is indicated
Current to calculate the moment, the 10.16KByte/s in bracket indicates that the current uplink transmission rate for calculating the moment is 10.16KByte/
s。
It should be understood that in embodiments of the present invention, magnitude of the sequence numbers of the above procedures are not meant to the elder generation of execution sequence
Afterwards, the execution sequence of each process should be determined by its function and internal logic, the implementation process structure without coping with the embodiment of the present invention
At any restriction.
The embodiment of the present invention currently calculates the transmission rate at moment by obtaining router, is moved in webpage by DHTML
State generates the transmission rate and the transmission rate before the current calculating moment in predetermined time period that router currently calculates the moment
Corresponding curve graph, thus in a manner of intuitively explicit routing device transmission rate, and download dedicated control without user,
Special security setting is carried out in a browser without user, and the operation for substantially increasing the transmission rate of explicit routing device is convenient
Property.
Fig. 6 shows the structural block diagram of the device of the transmission rate of explicit routing device provided in an embodiment of the present invention, the dress
Set can be used for running Fig. 1 to explicit routing device shown in fig. 5 transmission rate method.For ease of description, it illustrates only
Part related to the embodiment of the present invention.
Referring to Fig. 6, which includes:
Acquiring unit 61, the transmission rate at moment is currently calculated for obtaining router, and the transmission rate includes uplink
Transmission rate and/or downlink transmission rate;
Curve graph generation unit 62, for passing through the transmission rate pair of DHTML router described in dynamic generation in webpage
The curve graph answered, the curve graph are default before including the current transmission rate for calculating the moment and the current calculating moment
Transmission rate in time span.
Preferably, the acquiring unit 61 includes:
Subelement 611 is obtained, currently calculated moment corresponding integrated flow and a upper calculating moment for obtaining router
Corresponding integrated flow;
Difference in flow computation subunit 612, for calculating corresponding integrated flow of the current calculating moment and described upper one
Calculate the difference in flow of moment corresponding integrated flow;
Time difference computation subunit 613, for calculating the current time for calculating moment and a upper calculating moment
Difference;
Transmission rate computation subunit 614, for calculating the current calculating according to the difference in flow and the time difference
The transmission rate at moment.
Preferably, the curve graph generation unit 62 includes:
Reference axis determines subelement 621, for the horizontal axis using the time as the curve graph, and using transmission rate as institute
State the longitudinal axis of curve graph;
Point indicates subelement 622, for it is wide and it is high be that the DIV element of m pixel indicates one point, and described in passing through
DIV element indicate point come indicate the router it is a certain calculate the moment transmission rate, wherein m be more than or equal to 1
Integer.
Preferably, m is equal to 1.
Preferably, the curve graph generation unit 62 includes:
Speed difference computation subunit 623 calculates the transmission rate at moment for obtaining described upper one, and calculates described current
Calculated the transmission rate at moment and the speed difference of the transmission rate at a upper calculating moment;
Ratio calculation subelement 624, for determining the time difference corresponding abscissa range and the speed difference pair
The ordinate range answered, and calculate the ratio p of the ordinate range Yu the abscissa range;
First curve graph generates subelement 625, if being greater than or equal to the ordinate range for the abscissa range,
Moment corresponding horizontal axis location of pixels then is calculated as starting point using described upper one on transverse axis, and every step increases by 1 pixel until reaching institute
Corresponding horizontal axis location of pixels of current calculating moment was stated, and corresponding with the transmission rate at a upper calculating moment on longitudinal axis
Longitudinal axis location of pixels is starting point, and every step increases p pixel until reaching the current corresponding longitudinal axis of transmission rate for calculating the moment
Location of pixels;
Second curve graph generates subelement 626, if being less than the ordinate range for the abscissa range, vertical
Using the corresponding longitudinal axis location of pixels of transmission rate at a upper calculating moment as starting point on axis, every step increases by 1 pixel until arriving
Up to the current corresponding longitudinal axis location of pixels of transmission rate for calculating the moment, it is corresponding that the moment is calculated with described upper one on transverse axis
Horizontal axis location of pixels be starting point, every step increases 1/p pixel until reaching the current calculating moment corresponding horizontal axis pixel position
It sets.
The embodiment of the present invention currently calculates the transmission rate at moment by obtaining router, is moved in webpage by DHTML
State generates the transmission rate and the transmission rate before the current calculating moment in predetermined time period that router currently calculates the moment
Corresponding curve graph, thus in a manner of intuitively explicit routing device transmission rate, and download dedicated control without user,
Special security setting is carried out in a browser without user, and the operation for substantially increasing the transmission rate of explicit routing device is convenient
Property.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
It with the specific work process of unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of unit can be with
It is electrically mechanical 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
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
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.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. a kind of method of the transmission rate of explicit routing device characterized by comprising
The transmission rate that router currently calculates the moment is obtained, the transmission rate includes that uplink transmission rate and/or downlink pass
Defeated rate;
By the corresponding curve graph of transmission rate of DHTML router described in dynamic generation in webpage, the curve graph includes
The current transmission rate for calculating the moment and the transmission rate before the current calculating moment in predetermined time period;
The acquisition router currently calculates the transmission rate at moment and includes:
It obtains router and currently calculated moment corresponding integrated flow and corresponding integrated flow of the upper calculating moment;
Calculate the current flow for calculating moment corresponding integrated flow integrated flow corresponding with upper calculating moment
Difference;
Calculate the current time difference for calculating moment and a upper calculating moment;
The current transmission rate for calculating the moment is calculated according to the difference in flow and the time difference;
The acquisition router currently calculates moment corresponding integrated flow and upper one and calculates moment corresponding integrated flow, calculates
The current difference in flow for calculating moment corresponding integrated flow integrated flow corresponding with upper calculating moment, calculating institute
The current time difference for calculating moment and a upper calculating moment is stated, is worked as according to the difference in flow and time difference calculating
The preceding transmission rate for calculating the moment, comprising:
It obtains router and currently calculated moment corresponding uplink integrated flow and corresponding uplink integrated flow of the upper calculating moment,
Calculated the current moment corresponding uplink integrated flow uplink integrated flow corresponding with upper calculating moment of calculating
Uplink traffic is poor, calculates the current time difference for calculating moment and a upper calculating moment, the uplink traffic difference is removed
With the time difference, the current uplink transmission rate for calculating the moment is obtained;
It obtains router and currently calculated moment corresponding downlink integrated flow and corresponding downlink integrated flow of the upper calculating moment,
Calculated the current moment corresponding downlink integrated flow downlink integrated flow corresponding with upper calculating moment of calculating
Downlink traffic is poor, calculates the current time difference for calculating moment and a upper calculating moment, the downlink traffic difference is removed
With the time difference, the current downlink transmission rate for calculating the moment is obtained.
2. the method as described in claim 1, which is characterized in that described to be routed described in dynamic generation in webpage by DHTML
The corresponding curve graph of the transmission rate of device includes:
Using the time as the horizontal axis of the curve graph, and using transmission rate as the longitudinal axis of the curve graph;
With it is wide and it is high be that the DIV element of m pixel indicates a point, and indicate described by point that the DIV element indicates
Router is in a certain transmission rate for calculating the moment, wherein m is the integer more than or equal to 1.
3. method according to claim 2, which is characterized in that m is equal to 1.
4. method as claimed in claim 3, which is characterized in that described to be routed described in dynamic generation in webpage by DHTML
The corresponding curve graph of the transmission rate of device includes:
It obtains described upper one and calculates the transmission rate at moment, and calculate the current transmission rate and described upper one for calculating the moment
Calculate the speed difference of the transmission rate at moment;
It determines the time difference corresponding abscissa range and the corresponding ordinate range of the speed difference, and calculates described vertical
The ratio p of coordinate range and the abscissa range;
If the abscissa range is greater than or equal to the ordinate range, it is corresponding that the moment is calculated with described upper one on transverse axis
Horizontal axis location of pixels be starting point, every step increases by 1 pixel until reaching corresponding horizontal axis location of pixels of the current calculating moment,
And on longitudinal axis using the corresponding longitudinal axis location of pixels of transmission rate at a upper calculating moment as starting point, every step increases p pixel
Until reaching the current corresponding longitudinal axis location of pixels of transmission rate for calculating the moment;
If the abscissa range is less than the ordinate range, on longitudinal axis with the transmission rate at a upper calculating moment
Corresponding longitudinal axis location of pixels is starting point, and every step increases by 1 pixel until the transmission rate for reaching the current calculating moment is corresponding
Longitudinal axis location of pixels, calculate moment corresponding horizontal axis location of pixels as starting point using described upper one on transverse axis, every step increases 1/p
Pixel is until reach corresponding horizontal axis location of pixels of the current calculating moment.
5. a kind of device of the transmission rate of explicit routing device characterized by comprising
Acquiring unit, the transmission rate at moment is currently calculated for obtaining router, and the transmission rate includes uplink speed
Rate and/or downlink transmission rate;
Curve graph generation unit, for passing through the corresponding song of transmission rate of DHTML router described in dynamic generation in webpage
Line chart, the curve graph includes the current transmission rate for calculating the moment and preset time is long before the current calculating moment
Transmission rate in degree;
The acquiring unit includes:
Subelement was obtained, router currently calculates moment corresponding integrated flow and a upper calculating moment is corresponding tired for obtaining
Count flow;
Difference in flow computation subunit calculates the moment for calculating corresponding integrated flow of the current calculating moment and described upper one
The difference in flow of corresponding integrated flow;
Time difference computation subunit, for calculating the current time difference for calculating moment and a upper calculating moment;
Transmission rate computation subunit, for calculating the current biography for calculating the moment according to the difference in flow and the time difference
Defeated rate;
The acquisition subelement currently calculates moment corresponding uplink integrated flow and a upper calculating specifically for obtaining router
Moment corresponding uplink integrated flow;
Difference in flow computation subunit is specifically used for calculating corresponding uplink integrated flow of the current calculating moment and described upper one
The uplink traffic for calculating moment corresponding uplink integrated flow is poor;
Transmission rate computation subunit is specifically used for calculating the current calculating according to the uplink traffic difference and the time difference
The uplink transmission rate at moment;
The acquisition subelement currently calculates moment corresponding downlink integrated flow and a upper meter also particularly useful for router is obtained
Calculate moment corresponding downlink integrated flow;
Difference in flow computation subunit, also particularly useful for calculate current calculatings moment corresponding downlink integrated flow with it is described on
The one calculating moment downlink traffic of corresponding downlink integrated flow is poor;
Transmission rate computation subunit calculates the current meter also particularly useful for according to the downlink traffic difference and the time difference
Calculate the downlink transmission rate at moment.
6. device as claimed in claim 5, which is characterized in that the curve graph generation unit includes:
Reference axis determines subelement, for the horizontal axis using the time as the curve graph, and using transmission rate as the curve
The longitudinal axis of figure;
Point indicates subelement, for it is wide and it is high be that the DIV element of m pixel indicates a point, and passes through the DIV element table
The point shown indicates the router in a certain transmission rate for calculating the moment, wherein m is integer more than or equal to 1.
7. device as claimed in claim 6, which is characterized in that m is equal to 1.
8. device as claimed in claim 7, which is characterized in that the curve graph generation unit includes:
Speed difference computation subunit, for obtaining described upper one transmission rate for calculating the moment, and when calculating the current calculating
The speed difference of the transmission rate at quarter and the transmission rate at a upper calculating moment;
Ratio calculation subelement, for determining the time difference corresponding abscissa range and the corresponding vertical seat of the speed difference
Range is marked, and calculates the ratio p of the ordinate range Yu the abscissa range;
First curve graph generates subelement, if being greater than or equal to the ordinate range for the abscissa range, in cross
Moment corresponding horizontal axis location of pixels is calculated as starting point using described upper one on axis, and every step increases by 1 pixel until reaching described current
The corresponding longitudinal axis picture of transmission rate for calculating moment corresponding horizontal axis location of pixels, and calculating the moment on longitudinal axis with described upper one
Plain position is starting point, and every step increases p pixel until reaching the current transmission rate corresponding longitudinal axis pixel position for calculating the moment
It sets;
Second curve graph generate subelement, if for the abscissa range be less than the ordinate range, on longitudinal axis with
The described upper one corresponding longitudinal axis location of pixels of transmission rate for calculating the moment is starting point, and every step increases by 1 pixel until described in arrival
The current corresponding longitudinal axis location of pixels of transmission rate for calculating the moment calculates moment corresponding horizontal axis on transverse axis with described upper one
Location of pixels is starting point, and every step increases 1/p pixel until reaching corresponding horizontal axis location of pixels of the current calculating moment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610086715.2A CN105786428B (en) | 2016-02-16 | 2016-02-16 | The method and device of the transmission rate of explicit routing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610086715.2A CN105786428B (en) | 2016-02-16 | 2016-02-16 | The method and device of the transmission rate of explicit routing device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105786428A CN105786428A (en) | 2016-07-20 |
CN105786428B true CN105786428B (en) | 2019-03-08 |
Family
ID=56403404
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610086715.2A Active CN105786428B (en) | 2016-02-16 | 2016-02-16 | The method and device of the transmission rate of explicit routing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105786428B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110019061A (en) * | 2017-07-28 | 2019-07-16 | 中国移动通信有限公司研究院 | End-to-end QoS analysis method, terminal and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101969355A (en) * | 2009-07-27 | 2011-02-09 | 英业达股份有限公司 | Network transmission speed test method and network device thereof |
CN101986654A (en) * | 2010-10-20 | 2011-03-16 | 浪潮(北京)电子信息产业有限公司 | Method and equipment for processing system performance data |
CN102209004A (en) * | 2010-03-30 | 2011-10-05 | 中华电信股份有限公司 | Network transmission rate testing method |
CN103661484A (en) * | 2012-09-04 | 2014-03-26 | 深圳市赛格导航科技股份有限公司 | Principal curve extraction method based on slope drive |
CN105050133A (en) * | 2015-07-31 | 2015-11-11 | 腾讯科技(深圳)有限公司 | Method and device for detecting internet speed under Wi-Fi hotspot |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DK200900162A (en) * | 2009-02-03 | 2010-08-04 | Lanng Soeren | A new type of technical indicators called probability indicators |
-
2016
- 2016-02-16 CN CN201610086715.2A patent/CN105786428B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101969355A (en) * | 2009-07-27 | 2011-02-09 | 英业达股份有限公司 | Network transmission speed test method and network device thereof |
CN102209004A (en) * | 2010-03-30 | 2011-10-05 | 中华电信股份有限公司 | Network transmission rate testing method |
CN101986654A (en) * | 2010-10-20 | 2011-03-16 | 浪潮(北京)电子信息产业有限公司 | Method and equipment for processing system performance data |
CN103661484A (en) * | 2012-09-04 | 2014-03-26 | 深圳市赛格导航科技股份有限公司 | Principal curve extraction method based on slope drive |
CN105050133A (en) * | 2015-07-31 | 2015-11-11 | 腾讯科技(深圳)有限公司 | Method and device for detecting internet speed under Wi-Fi hotspot |
Also Published As
Publication number | Publication date |
---|---|
CN105786428A (en) | 2016-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104378304B (en) | The control method of gray scale publication, apparatus and system | |
CN104184832B (en) | Data submission method and device in network application | |
CN102156716B (en) | Method and device for re-typesetting web page | |
CN106612426A (en) | Method and device for transmitting multi-view video | |
CN106294664A (en) | A kind of method and apparatus generating mind map | |
EP2965229A1 (en) | Automatic alignment of a multi-dimensional layout | |
CN106997348A (en) | A kind of data method for drafting and device | |
CN103095684B (en) | Obtain and pay close attention to the method for user's aggregation information, Apparatus and system | |
CN106301864B (en) | Server system capacity expansion method and device and capacity expansion processing equipment | |
CN105786896A (en) | Color rendering method and device of page sidebar | |
CN107256259A (en) | Page display method, device, electronic equipment and storage medium | |
CN105786428B (en) | The method and device of the transmission rate of explicit routing device | |
CN107491305A (en) | Data analysis and visible processing method, device | |
CN103095825A (en) | Information management method and system of internet and server | |
CN102156724A (en) | Method and device for matching suffix of inquiry segment | |
CN104536964B (en) | Network data methods of exhibiting and device | |
EP3119044B1 (en) | Page insertion method and device | |
CN104506630B (en) | Permissions data generation method, server and system based on user role | |
US9525744B2 (en) | Determining a uniform user identifier for a visiting user | |
CN108664306A (en) | Browser vector graphics rendering intent and device based on canvas Yu R trees space | |
CN104331490B (en) | network data processing method and device | |
CN107634892A (en) | A kind of Xenserver realizes the method and device of console based on novnc | |
CN108108381A (en) | The monitoring method and device of the page | |
CN105162780A (en) | URL (Uniform Resource Locator) filter address setting method and URL filter address setting system | |
CN104090681B (en) | The method and system of touch-screen stabilization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |