CN105553752B - The method that tests the speed online for home gateway, test the speed platform and gateway device - Google Patents
The method that tests the speed online for home gateway, test the speed platform and gateway device Download PDFInfo
- Publication number
- CN105553752B CN105553752B CN201510870247.3A CN201510870247A CN105553752B CN 105553752 B CN105553752 B CN 105553752B CN 201510870247 A CN201510870247 A CN 201510870247A CN 105553752 B CN105553752 B CN 105553752B
- Authority
- CN
- China
- Prior art keywords
- speed
- home gateway
- gateway
- information
- platform
- 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
- 238000012360 testing method Methods 0.000 title claims abstract description 193
- 238000000034 method Methods 0.000 title claims abstract description 73
- 230000005540 biological transmission Effects 0.000 claims description 33
- 238000012795 verification Methods 0.000 claims description 29
- 238000010276 construction Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 description 22
- 238000010586 diagram Methods 0.000 description 18
- 230000000694 effects Effects 0.000 description 13
- 230000006870 function Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 238000013461 design Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000006185 dispersion Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- 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
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/283—Processing of data at an internetworking point of a home automation network
- H04L12/2834—Switching of information between an external network and a home network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Environmental & Geological Engineering (AREA)
- Computing Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of method to test the speed online for home gateway, test the speed platform and gateway device, and method includes:Receive the support routing quantity information for the home gateway that home gateway reports and gateway signing rate information;According to routing quantity information is supported, the source IP address of identical quantity is constructed;The gateway signing rate of acquisition is average to each source IP address, obtain the Mean Speed of each source IP address;In preset time, the data packet of default size is sent from each source IP address to the corresponding purpose IP address of home gateway according to Mean Speed;Receive the data packet total quantity received from each source IP address that home gateway reports;Using data packet total quantity divided by preset time as the on-line velocity of home gateway.The method provided by the invention to be tested the speed online for home gateway, test the speed platform and gateway device, and network rate in existing net can be monitored, and do not depend on the behavior of user completely at any time by effectively realizing operator, meet the requirement that existing net tests the speed.
Description
Technical field
The present invention relates to network communication technology fields, and in particular to a kind of method to test the speed online for home gateway is surveyed
Fast platform and gateway device.
Background technology
With the rapid development of science and technology, the use of internet is more and more universal, and ordinary user is to from operator Shen
The fixed broadband access rate that please be arrived is also more and more sensitive, and the O&M department of domestic telecommunication operator needs to grasp national model in real time
The access bandwidth of interior all users is enclosed, needs to dispose the function of testing the speed in the access gateway of ordinary user.
In the prior art, it is to the method that gateway tests the speed:User downloads and tests the speed in client to PC or smart mobile phone, client
End using multithreading download (P2P) pattern, by the file (such as 100M) of a fixed size with HTTP technologies it is locally downloading after
Download time is calculated, the broadband access rate of user is obtained by file size divided by time.
However, during the technical program is implemented, inventor has found that the prior art has the following problems:The mistake to test the speed
Journey places one's entire reliance upon the behavior of user, and operator can not monitor the network rate in existing net.
Invention content
A kind of method to test the speed online for home gateway of present invention offer, test the speed platform and gateway device, can be long-term
All information that tests the speed, and morpheme of the process to test the speed independent of user are now netted in monitoring, meet the requirement of operator.
An aspect of of the present present invention is to provide for a kind of method to test the speed online for home gateway, including:
Receive the support routing quantity information for the home gateway that home gateway reports and gateway signing rate information;
It supports to route quantity information according to described, constructs the source IP address of identical quantity;
The gateway signing rate of acquisition is average to each source IP address, obtain the Mean Speed of each source IP address;
In preset time, according to the Mean Speed from each source IP address to the corresponding mesh of the home gateway
IP address send the data packet of default size;
Receive the data packet total quantity received from each source IP address that the home gateway reports;
Using the data packet total quantity divided by the preset time as the on-line velocity of home gateway.
Another aspect of the present invention also for a kind of method to be tested the speed online for home gateway, including:
Receive the support routing quantity information of the acquisition home gateway for platform transmission of testing the speed and gateway signing rate information
Indicate information;
According to the instruction information, the support routing quantity information and net of the home gateway are sent to the platform that tests the speed
Signing rate information is closed, so that described test the speed platform according to the source IP that routing quantity information is supported to construct identical quantity
Location, and gateway signing rate is average to each source IP address, obtain the Mean Speed of each source IP address;
Platform is tested the speed described in reception in preset time, according to the Mean Speed from each source IP address to described
The data packet of default size that the corresponding purpose IP address of home gateway is sent, and obtain the number received from each source IP address
According to packet total quantity;
The data packet total quantity is sent to the platform that tests the speed, so that the platform that tests the speed is by the data packet total quantity
Divided by on-line velocity of the preset time as home gateway.
Another aspect of the present invention be in order to which one kind tests the speed platform, including:
First receiving module, for receiving the support for the home gateway that home gateway reports routing quantity information and net
Close signing rate information;
Source IP builds module, for supporting to route quantity information according to described, constructs the source IP address of identical quantity;
Mean Speed acquisition module, for the gateway obtained signing rate is average to each source IP address, acquisition is often
The Mean Speed of a source IP address;
First sending module, in preset time, according to the Mean Speed from each source IP address to institute
State the data packet that the corresponding purpose IP address of home gateway sends default size;
First receiving module, is additionally operable to receive that the home gateway reports is received from each source IP address
Data packet total quantity;
Speed acquiring module, for using the data packet total quantity divided by the preset time as the online of home gateway
Speed.
Another aspect of the invention be for a kind of gateway device, including:
Second receiving module, for receiving the support routing quantity information of the acquisition home gateway for platform transmission of testing the speed and net
Close the instruction information of signing rate information;
Second sending module, for according to the instruction information, the branch of the home gateway to be sent to the platform that tests the speed
Routing quantity information and gateway signing rate information are held, so that the platform that tests the speed is supported to route quantity information, structure according to described
Make the source IP address of identical quantity;The gateway of acquisition signing rate is average to each source IP address, with obtaining each source IP
The Mean Speed of location;
Data reception module, for receive it is described test the speed platform in preset time, according to the Mean Speed from each
The data packet of default size that the source IP address is sent to the corresponding purpose IP address of the home gateway, and obtain from each
Source IP address received data packet total quantity;
Data transmission blocks, for sending the data packet total quantity to the platform that tests the speed, so that the platform that tests the speed
Using the data packet total quantity divided by the preset time as the on-line velocity of home gateway.
The method provided by the invention to be tested the speed online for home gateway, test the speed platform and gateway device, passes through and obtains branch
Routing quantity information is held, the source IP address of identical quantity is constructed, and gateway signing rate is average to each source IP address, obtains
The Mean Speed of each source IP address is obtained, and is obtained in home gateway institute to source IP address transmission data packet according to Mean Speed
The data packet total amount of data of report, you can the on-line velocity of home gateway is obtained according to preset time, effectively realizes operator
The network rate in existing net can be monitored at any time, and does not depend on the behavior of user completely, meets the requirement that existing net tests the speed, and improved
The convenient and efficient degree and accuracy that existing net tests the speed.
Description of the drawings
Fig. 1 is the flow diagram of method to test the speed online for home gateway given by one embodiment of the invention;
Fig. 2 is the flow diagram of method to test the speed online for home gateway given by further embodiment of this invention;
Fig. 3 is the flow diagram of method to test the speed online for home gateway given by yet another embodiment of the invention;
Fig. 4 is the flow diagram of method to test the speed online for home gateway given by another embodiment of the present invention;
Fig. 5 is the flow diagram of method to test the speed online for home gateway given by another embodiment of the present invention;
Fig. 6 is the structure diagram of the platform that tests the speed given by one embodiment of the invention;
Fig. 7 is the structure diagram of the platform that tests the speed given by further embodiment of this invention;
Fig. 8 is the structure diagram of the gateway device given by one embodiment of the invention;
Fig. 9 is the structure diagram of the gateway device given by further embodiment of this invention.
In figure:
1st, the first receiving module;2nd, source IP structure module;
3rd, Mean Speed acquisition module;4th, the first sending module;
5th, speed acquiring module;6th, authentication module;
7th, the second receiving module;8th, the second sending module;
9th, data reception module;10th, data transmission blocks;
11st, test the speed command reception module.
Specific embodiment
With reference to the accompanying drawings and examples, the specific embodiment of the present invention is described in further detail.Following instance
For illustrating the present invention, but it is not limited to the scope of the present invention.
Fig. 1 is the flow diagram of method to test the speed online for home gateway given by an embodiment;Refer to the attached drawing 1
It is found that an aspect of of the present present invention provides a kind of method to test the speed online for home gateway, this method is made with the platform that tests the speed
The process interacted for executive agent, with the home gateway in gateway device, specifically includes:
S101:Receive the support routing quantity information for the home gateway that home gateway reports and gateway signing rate information;
Wherein, the support routing quantity information and the acquisition modes of gateway signing rate information reported for home gateway is not
It limits, routing quantity information and/or gateway signing rate information can will such as be supported to be set as being stored in advance in home gateway
It is interior, it may be set to be home gateway and be communicatively coupled with Carrier administrative server, obtain the support road of the home gateway
By quantity information and gateway signing rate information;Routing quantity information and gateway signing rate information can also will be supported to be set as
Home gateway is sent to by the gateway management platform being connected with home gateway, and gateway management platform can be with managing in operation
Server is communicatively coupled, and obtains above- mentioned information etc., those skilled in the art can carry out according to specific design requirement
Setting, details are not described herein.
S102:According to routing quantity information is supported, the source IP address of identical quantity is constructed;
Wherein, it is home gateway, and then realize a plurality of source IP with the purpose IP address of the source IP address maps mutually of construction
Address corresponds to the communication structure of a purpose IP address;In addition, the concrete mode side of the source IP address for constructing identical quantity
Method does not limit, and those skilled in the art may be used the prior art and be constructed, as long as can realize, constructs and family
The source IP address of the identical quantity of support routing quantity of front yard gateway.
S103:The gateway signing rate of acquisition is average to each source IP address, obtain being averaged for each source IP address
Rate;
Wherein, for each source IP address and gateway signing rate averagely is obtained the methods of Mean Speed not
Limit, several source IP address of construction can be accordingly to be regarded as identical, then Mean Speed be gateway signing rate divided by
The number of source IP address;Those skilled in the art can also obtain Mean Speed in other way, as long as can obtain
The Mean Speed of each source IP address.
S104:In preset time, according to Mean Speed from each source IP address to the corresponding destination IP of home gateway
Location sends the data packet of default size;
Wherein, preset time be now net test the speed process duration, and for preset time specific range not
It limits, such as preset time can be set as 5s, 10s, 30s, 1min or 5min, wherein, in order to ensure that existing net tests the speed
Stability and accuracy, preset time is set greater than or equal to 10s, the more common time is 30s or 1min, ability
Field technique personnel can be configured according to the specific demand of testing the speed, and details are not described herein;Wherein, for the size of data packet not
It limits, data packet can be such as set as to any one in 64-1518 byte data packets, it under normal circumstances, can be by number
The data packet of 512 bytes is configured as according to packet, of course, those skilled in the art are also an option that the data packet of other sizes,
As long as home gateway on-line velocity can be obtained;Details are not described herein;By home gateway according to support in the technical program
Source IP address (routing table) quantity dispersion transmission data packet quantity, effectively reduce measure on-line velocity error, Jin Erti
The high accuracy and reliability to test the speed online.
S105:Receive the data packet total quantity received from each source IP address that home gateway reports;
Wherein, due in data transmission procedure, consumption or other reasons of each source IP address there are communication line, meeting
So that each source IP address is less than or equal to the number received by each source IP address to the data packet number that home gateway is sent
According to packet quantity, therefore, in order to ensure the accuracy to test the speed online, using the data packet total quantity that home gateway receives as testing the speed
Parameter, and the data packet total quantity received by home gateway is sent to the data packet number of home gateway for each source IP address
The sum of.
S106:Using data packet total quantity divided by preset time as the on-line velocity of home gateway.
The method provided by the invention to test the speed online for home gateway supports routing quantity information, construction by obtaining
The source IP address of identical quantity, and gateway signing rate is average to each source IP address, obtain the flat of each source IP address
Equal rate, and the data packet total amount of data reported according to Mean Speed to source IP address transmission data packet, acquisition home gateway,
The on-line velocity of home gateway can be obtained according to preset time, effectively realizing operator can at any time monitor in existing net
Network rate, and do not depend on the behavior of user completely, meets the requirement that existing net tests the speed, improve existing net test the speed it is convenient and efficient
Degree and accuracy.
Fig. 2 is the flow diagram of method to test the speed online for home gateway given by another embodiment, above-mentioned
On the basis of embodiment, with continued reference to attached drawing 1-2 it is found that when the platform that tests the speed is interacted with home gateway, the platform that tests the speed exists
Before receiving the support routing quantity information for the home gateway that home gateway reports and gateway signing rate information, further include:
S001:The connectivity request message that home gateway is sent is received, and is sent according to connectivity request message to home gateway
Checking solicited message;
S002:The verification information that home gateway is sent is received, and home gateway is verified according to verification information;
S003:If being verified, establish and connect with home gateway, and the branch for obtaining home gateway is sent to home gateway
Hold the instruction information of routing quantity information and gateway signing rate information.
Wherein, the specific form and content of verification information are not limited, those skilled in the art can be according to tool
The design requirement of body is configured, such as can by the username information of verification information content including home gateway, encrypted message,
MAC Address or IP address etc., as long as home gateway can be identified, details are not described herein;In addition, for home gateway
It can not only include supporting routing quantity information and gateway signing rate information in the instruction information of acquisition, it can also be included
His information, such as the session number of threads that CPU is supported, this is closely related with specific test method with testing scheme;This
Outside, the platform that tests the speed in the technical program not only includes identification man according to the process that verification information verifies home gateway
Front yard gateway further includes and the instruction of testing the speed of home gateway is identified, in order to the relevant operation tested the speed with home gateway;
And the procedure specifically verified according to verification information to home gateway is not specifically limited, it can will such as obtain
Verification information in home gateway characteristic information (such as username and password information, mac address information or IP address information
Deng), the characteristic information of acquisition with the standard feature information to prestore is compared, if matching, is verified, you can will be surveyed
Fast platform is established with home gateway and is connected.
S004:If mismatching, illustrate that verification does not pass through, then return to failure information, and stop test the speed platform and home network
Process is established in the connection of pass.
Before being tested the speed online, the platform that tests the speed verifies home gateway according to the verification information of home gateway
Afterwards, and know the instruction of testing the speed of home gateway;The safe coefficient for testing the speed and being connected between platform and home gateway is effectively guaranteed,
And so that the platform that tests the speed only is attached with receiving the home gateway for instruction of testing the speed, reduce logical with other home gateways
Letter process, and then ensure that the speed being connect with home gateway, improve the reliability of online operation of testing the speed.
Fig. 3 is the flow diagram of method to test the speed online for home gateway given by another embodiment, and reference is attached
Fig. 3 provides a kind of method to test the speed online for home gateway it is found that another aspect of the present invention, and this method is with net
The process that the home gateway in equipment is interacted as executive agent, with the platform that tests the speed is closed, is specifically included:
S201:Receive the support routing quantity information of the acquisition home gateway for platform transmission of testing the speed and gateway signing rate letter
The instruction information of breath;
Wherein, the specific form and content of the instruction information are not limited, those skilled in the art can basis
Specific respective demand is configured, as long as can realize that the instruction information can give expression to the branch for needing to obtain home gateway
Routing quantity information and gateway signing rate information are held, details are not described herein;In addition, for gateway contract rate information and
Speech, proportional with bandwidth information that operator signs with home gateway, that is, the bandwidth signed is bigger, and gateway rate of contracting is got over
Greatly, and for the bandwidth information of signing, with operator be specially home gateway provide actual provision bandwidth without direct
Relationship, if home gateway and operator's signing bandwidth information are 10M, in specific application, supplier is visitor sometimes for guarantee
The accuracy of family provision bandwidth may be the bandwidth of 11M that the home gateway of user provides, to reserve the loss in transmission
Amount;Or operator only provides the bandwidth of 10M for the home gateway of user;It is online for more accurate measurement home gateway
Rate, using the signing rate of home gateway as factor of judgment.
S202:According to instruction information, send the support routing quantity information of home gateway to the platform that tests the speed and gateway is contracted
Rate information, so that the platform that tests the speed constructs the source IP address of identical quantity, and gateway is contracted according to support routing quantity information
Rate is average to each source IP address, obtains the Mean Speed of each source IP address;
Wherein, home gateway is sent and routing quantity information and the concrete mode of gateway signing rate information is supported not to do
It limits, those skilled in the art can carry out arbitrary setting according to its design requirement, as long as the platform that enables to test the speed receives
Support routing quantity information and gateway signing rate information, in addition, for the platform architecture source IP address that tests the speed method not
It limits, the process realized and the realization process of the construction source IP address in embodiment corresponding to function and Fig. 1 are made with function
With identical, above statement content is specifically referred to, details are not described herein.
S203:Reception tests the speed platform in preset time, according to Mean Speed from each source IP address to home gateway pair
The data packet for the default size that the purpose IP address answered is sent, and obtain from each source IP address received data packet sum
Amount;
Wherein, home gateway receives the data packet that platform is sent by several source IP address that tests the speed, by several sources
IP address be sent to home gateway data packet carry out summation process, obtain data packet total quantity, this above-mentioned process be in order to
The handling capacity of home gateway is obtained, to obtain the on-line velocity of home gateway.
S204:To the platform transmission data packet total quantity that tests the speed so that test the speed platform by data packet total quantity divided by it is default when
Between on-line velocity as home gateway.
The method provided by the invention to test the speed online for home gateway supports routing quantity information, construction by obtaining
The source IP address of identical quantity, and gateway signing rate is average to each source IP address, obtain the flat of each source IP address
Equal rate, and the data packet total amount of data reported according to Mean Speed to source IP address transmission data packet, acquisition home gateway,
The on-line velocity of home gateway can be obtained according to preset time, effectively realizing operator can at any time monitor in existing net
Network rate, and do not depend on the behavior of user completely, meets the requirement that existing net tests the speed, improve existing net test the speed it is convenient and efficient
Degree and accuracy.
Fig. 4 is the flow diagram of method to test the speed online for home gateway given by another embodiment, above-mentioned
On the basis of embodiment, refer to the attached drawing 3-4 is it is found that the support for the acquisition home gateway of platform transmission that tests the speed in home gateway reception
It route before the instruction information of quantity information and gateway signing rate information, further includes:
S301:The online command information that tests the speed that gateway management platform is sent is received, so that home gateway is surveyed according to online
Fast command information, to testing the speed, platform sends connectivity request message, and the platform that tests the speed is sent out according to the connectivity request message to home gateway
Send checking solicited message;
S302:Connectivity request message is sent to prefectures and cities' platform that tests the speed according to the online command information that tests the speed;
S303:Receive the checking solicited message for platform transmission of testing the speed;
S304:According to checking solicited message, to testing the speed, platform sends verification information, so that the platform that tests the speed is believed according to verification
Breath verifies home gateway.
Wherein, the detailed process verified to home gateway in the present embodiment and function are related to the above right
Detailed process and function in the embodiment that home gateway is verified is identical, and particular content can refer to above-mentioned implementation
The description content of example, details are not described herein;By the platform that will test the speed with being communicatively coupled by the home gateway of verification, effectively
The generation for avoiding test the speed platform and other home gateways and being communicatively coupled situation, effectively save the occupancy of the platform that tests the speed
Resource, and then ensure that the reliability to test the speed to home gateway, improve the accuracy tested the speed online.
Fig. 5 is the flow diagram of method to test the speed online for home gateway given by another embodiment, and reference is attached
Fig. 5 it is found that in home gateway support routing quantity information and gateway signing rate information specific source do not limit,
It could be provided as being stored in advance in home gateway or home gateway directly carry out communication link with Carrier administrative server
It connects, and then obtains and support routing quantity information and gateway signing rate information, wherein, more preferably, gateway is contracted rate
It is sent at home gateway by gateway management platform with support routing quantity information, effectively saves home gateway in this way
Memory space, and then reduce the hardware requirement to home gateway;Specifically,
Before the online command information that tests the speed that gateway management platform is sent is received, further include:
S401:The support routing quantity information for obtaining home gateway and gateway signing rate letter are sent to gateway management platform
The solicited message of breath;
S402:Gateway management platform receives solicited message, and the support being obtained ahead of time is route quantity according to solicited message
Information and gateway signing rate information are sent to home gateway.
It is obtained by gateway management platform to Carrier administrative server and supports routing quantity information and gateway signing rate
Information, and routing quantity information and gateway signing rate information will be supported to be stored in local, receiving home gateway transmission
After solicited message, routing quantity information and gateway signing rate information will be supported to be sent to home gateway, so that home gateway
Above- mentioned information is transmitted to the platform that tests the speed, and home gateway is allowd not store above- mentioned information content, is effectively reduced pair
The hardware requirement of home gateway, and then effectively raise the practicability of this method.
Fig. 6 is the structure diagram of the platform that tests the speed given by an embodiment, and refer to the attached drawing 6 is it is found that the present invention's is another
Aspect provides one kind and tests the speed platform, which is holding for the side of method implementing to test the speed online for home gateway
Row main body carries out communication interaction with the home gateway in gateway device, specifically includes:
First receiving module 1, for receiving the support for the home gateway that home gateway reports routing quantity information and gateway
Signing rate information;
Source IP builds module 2, for according to routing quantity information is supported, constructing the source IP address of identical quantity;
Mean Speed acquisition module 3, for the gateway obtained signing rate is average to each source IP address, acquisition is often
The Mean Speed of a source IP address;
First sending module 4, in preset time, according to Mean Speed from each source IP address to home gateway pair
The purpose IP address answered sends the data packet of default size;
First receiving module 1 is additionally operable to receive the data packet received from each source IP address the sum that home gateway reports
Amount;
Speed acquiring module 5, for the on-line velocity using data packet total quantity divided by preset time as home gateway.
Wherein, the concrete structure for above-mentioned modules and connection mode do not limit, as long as can realize above-mentioned
Function, in addition, the first receiving module 1, source IP structure module 2, Mean Speed acquisition module 3, first in the present embodiment
Step process that sending module 4 and speed acquiring module 5 are realized and functional effect are with above-mentioned using the platform that tests the speed as holding
The functional effect of specific steps process and each step in the method to test the speed online for home gateway of row main body is identical,
Above statement content is specifically referred to, details are not described herein.
The platform provided by the invention that tests the speed is obtained by the first receiving module 1 and routing quantity information, source IP is supported to build mould
Block 2 constructs the source IP address of identical quantity, Mean Speed acquisition module 3, and gateway signing rate is average to each source IP
Location, obtains the Mean Speed of each source IP address, and passes through the first sending module 4 and send number to source IP address according to Mean Speed
The data packet total amount of data that is reported of home gateway is obtained according to packet, the first receiving module 1, you can by speed acquiring module 5
The on-line velocity of home gateway is obtained according to preset time, it is fast effectively to realize the network that operator can be monitored at any time in existing net
Rate, and do not depend on the behavior of user completely, meets the requirement that existing net tests the speed, improve convenient and efficient degree that existing net tests the speed and
Accuracy effectively raises the practicability for the platform that tests the speed, and is conducive to the popularization and application in market.
Fig. 7 is the structure diagram of the platform that tests the speed given by another embodiment, on the basis of above-described embodiment, is continued
Refer to the attached drawing 6-7 is it is found that further include:
First receiving module 1, be additionally operable in the support routing quantity information for receiving the home gateway that reports of home gateway and
Before gateway signing rate information, the connectivity request message that home gateway is sent is received, and according to connectivity request message to family
Gateway sends checking solicited message;
Authentication module 6 for receiving the verification information of home gateway transmission, and carries out home gateway according to verification information
Verification;
First sending module 4 if being additionally operable to be verified, is established with home gateway and is connected, and sent to home gateway
Obtain the support routing quantity information of home gateway and the instruction information of gateway signing rate information.
Wherein, the concrete structure and connection mode of authentication module 6 in this present embodiment are not limited, as long as can
Realize above-mentioned functional effect;In addition, the first receiving module 1, the authentication module 6 and first in the embodiment are sent
Tool in the embodiment that related to the above pair of the detailed process and functional effect that module 4 is realized and home gateway are verified
Body process and functional effect are identical, and particular content can refer to above statement content, and details are not described herein.
Before being tested the speed online, home gateway is carried out according to the verification information of home gateway by authentication module 6
After verification, and know the instruction of testing the speed of home gateway;It is effectively guaranteed the safety for testing the speed and being connected between platform and home gateway
Degree, and cause test the speed platform only be attached with receiving the home gateway for instruction of testing the speed, reduce and other home networks
The communication resource occupied required for being attached is closed, and then ensure that the speed being connect with home gateway, improves and tests the speed online
The reliability of operation.
Fig. 8 is the structure diagram of the gateway device given by an embodiment, and refer to the attached drawing 8 is it is found that the present invention's is another
Aspect provides a kind of gateway device, which is set as holding for the side of method for implementing to test the speed online for home gateway
Row main body, platform carries out communication interaction with testing the speed;It specifically includes:
Second receiving module 7, for receive test the speed platform transmission acquisition home gateway support routing quantity information and
The instruction information of gateway signing rate information;
Second sending module 8, for according to instruction information, the support routing quantity letter of home gateway to be sent to the platform that tests the speed
Breath and gateway signing rate information, so that the platform that tests the speed constructs the source IP address of identical quantity according to routing quantity information is supported;
The gateway signing rate of acquisition is average to each source IP address, obtain the Mean Speed of each source IP address;
Data reception module 9 tests the speed platform in preset time for receiving, according to Mean Speed from each source IP address
The data packet of default size sent to the corresponding purpose IP address of home gateway, and obtain what is received from each source IP address
Data packet total quantity;
Data transmission blocks 10, for the platform transmission data packet total quantity that tests the speed, so that the platform that tests the speed is total by data packet
The on-line velocity of quantity divided by preset time as home gateway.
Wherein, the concrete structure and connection mode of above-mentioned modules in this present embodiment are not limited, ability
Field technique personnel can be configured according to the function of its realization, as long as the function that above-mentioned modules should be realized can be realized
Effect;In addition, for the second receiving module 7, the second sending module 8, data reception module 9 and data transmission blocks 10
Realization step detailed process and functional effect it is related to the above using gateway device as executive agent side be directed to family
The implementation procedure of each step and functional effect are identical in the method that front yard gateway tests the speed online, and particular content can refer to above-mentioned old
Content is stated, details are not described herein.
Gateway device provided by the invention is sent to the platform that tests the speed by the second sending module 7 and supports routing quantity information
It contracts rate information with gateway, so that the source IP address of the identical quantity of the platform architecture that tests the speed, and gateway signing rate is average extremely
Each source IP address, obtains the Mean Speed of each source IP address, and according to Mean Speed to source IP address transmission data packet,
By data transmission blocks 10 to the platform transmission data packet total amount of data that tests the speed, you can obtain home gateway according to preset time
On-line velocity, network rate in existing net can be monitored, and do not depend on the row of user completely at any time by effectively realizing operator
To meet the requirement that existing net tests the speed, improving convenient and efficient degree and accuracy that existing net tests the speed.
Fig. 9 is the structure diagram of the gateway device given by another embodiment, on the basis of above-described embodiment, is continued
Refer to the attached drawing 8-9 is it is found that further include:
The command reception module that tests the speed 11, for routeing quantity in the support for the acquisition home gateway for receiving platform transmission of testing the speed
Before the instruction of information and gateway signing rate information, the online command information that tests the speed that gateway management platform is sent is received;
Second receiving module 7 is additionally operable to receive the checking solicited message for platform transmission of testing the speed;
Second sending module 8, is additionally operable to according to checking solicited message, and to testing the speed, platform sends verification information, so that surveying
Fast platform verifies home gateway according to verification information.
Wherein, the concrete structure and connection mode of above-mentioned modules in this present embodiment are not limited, ability
Field technique personnel can be configured according to the function of its realization, as long as the function that above-mentioned modules should be realized can be realized
Effect;In addition, the realization step for the second receiving module 7, the second sending module 8 and the command reception module 11 that tests the speed
Detailed process and functional effect it is related to the above using gateway device as executive agent side for home gateway it is online
The implementation procedure and functional effect for the method and step that the method to test the speed verifies home gateway are identical, and particular content can join
It is admitted to and states those set forth, details are not described herein.
Verification information is sent to the platform that tests the speed by the second sending module 8, so that test the speed platform and the family by verification
Gateway is communicatively coupled, and effectively avoids the generation that the platform that tests the speed is communicatively coupled situation with other home gateways, has
Effect saves the occupancy resource for the platform that tests the speed, and then ensure that the reliability to test the speed to home gateway, improves
The accuracy that line tests the speed.
During specific design, in order to solve the above-mentioned technical problem of the application, it is also contemplated that using that will test the speed, client is transplanted to
On home gateway, but if tested in this way, have the following problems:Common home gateway is using embedding
Enter based on formula Linux, the client that tests the speed transplanting is difficult;Multithreading HTTP is supported to download, it is more demanding to CPU, RAM, cause
Cost increase;If the file download that will test the speed requires to improve, leads to cost increase to family's intra-gateway to Flash.
Therefore, the technical program is effectively realized on the basis of meeting existing net and testing the speed, and reduces commonly connect as far as possible
The hardware requirement of function Access Gateway reduces hardware cost, in order to more be apparent from the process of the technical program, enumerates following implementation
Example illustrates, and specifically includes:
1) home gateway point-to-point connection protocol PPPoE from Broadband Remote Access Server BRAS certifications registration after, with
The gateway management platform now netted is connected, and gateway management platform (refers to the existing system total management of operator, be as fortune from backstage
Seek the base support management platform of quotient) it gets the signing rate of home gateway and supports routing quantity information, then it is handed down to
Home gateway, where it is assumed that the signing rate of home gateway is 10M;
2) after home gateway receives the instruction of the on-line testing of gateway management platform transmission, testing the speed to prefectures and cities first
Platform sends connectivity request message, and is authenticated that (specific authentication method could be provided as user name and close to home gateway
Code authentication);
3) when after certification, when testing the speed, platform is attached with home gateway, and the platform that tests the speed is sent out to home gateway
The basic performance of home gateway is sent to obtain information, wherein, basic performance includes supporting routing quantity information and gateway signing rate
Information etc.;
4) home gateway replys the performance information of home gateway to the platform that tests the speed, including supporting routing quantity information, operation
The gateway signing rate information (such as 10M) that quotient is written in advance, the platform that tests the speed, which obtains, supports routing quantity information and gateway signing
Start formally to test the speed after rate information;
5) quantity information is route according to the support of home gateway, constructs the source IP address of identical quantity, can support more
Few item routing, with regard to how many source IP address, 100 are set as by the routing quantity of support;
6) platform that tests the speed will obtain every after the quantity (100) of gateway signing rate information (10M) divided by source IP address
The Mean Speed 10M/100=0.1M of routing, while simulate and 512 bytes are sent to every source IP address with the Mean Speed of 0.1M
Data packet, wherein, since the size of the data packet of 1 512 byte is about 4Kb, that is, obtain and test the speed platform transmission data
The rate of packet is about n=0.1M/4k=25/second, and sets the duration as 10s;
7) after duration 10s, home gateway obtains the data packet number that every source IP address is sent, and obtains
Obtain received data packet total quantity (the sum of data packet that every source IP is sent to home gateway), it is assumed that data packet total quantity
It it is 248000, and to the platform reported data packet total quantity that tests the speed, you can obtain home gateway is probably exactly to count in line rate
According to packet total quantity size 248000*4kb divided by duration 10s, compare for the ease of analysis, it can be to acquisition in line rate
Unit conversion is carried out, i.e. overall process is 248000*4kb/10s*1000*1000=9.96M.
The technical program is that traditional HTTP is downloaded application and tested the speed to become simple TCP/UDP packets and forward to test the speed, by 4 layers
Application layer protocol support becomes 3 layers of packet forwarding and supports, and since home gateway just supports 3 layers of packet forwarding of high-speed originally, from
And it avoids the need for home gateway subsequent development and supports that application layer protocol supports the loss with multiple threads, therefore for family
No longer it is that bottleneck (because three layers of TCP packets are forwarded by hardware, generally all can by transfer capability for the CPU processing capacities of gateway
More than 800M).
Meanwhile can not need to install in the technical program specific client (traditional client that tests the speed needs to be adapted to,
Requirement is proposed to Flash and CPU simultaneously);Also, the process of testing the speed in the technical program is based on the specific rate hair of user
It send rather than is attempted based on maximum, that is, reach the specific rate requirement of user, avoid the higher consumption to resource.
In addition, the technical program route quantity to disperse the packet quantity sended and received according to the support of home gateway, have
The reduction error of effect, that is,:Only there are one route in the prior art, then home gateway needs to calculate in a routing
24800 packets;And be after data packet is distributed to 100 routing tables in this technology, it just only needs to calculate every routing table 248
Packet;Above two technical solution when there is physical circuit noise or hardware handles problem, is distributed to the skill of 100 routing tables
The whole result influence that art scheme tests the speed online on home gateway is smaller, so that the online result that tests the speed is more accurate, effectively carries
The high accuracy tested the speed online.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to
Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical features into
Row equivalent replacement;And these modifications or replacement, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
- A kind of 1. method to test the speed online for home gateway, which is characterized in that including:Receive the support routing quantity information for the home gateway that home gateway reports and gateway signing rate information;It supports to route quantity information according to described, constructs the source IP address of identical quantity;The gateway signing rate of acquisition is average to each source IP address, obtain the Mean Speed of each source IP address;In preset time, according to the Mean Speed from each source IP address to the corresponding destination IP of the home gateway Address sends the data packet of default size;Receive the data packet total quantity received from each source IP address that the home gateway reports;Using the data packet total quantity divided by the preset time as the on-line velocity of home gateway.
- 2. the method according to claim 1 to test the speed online for home gateway, which is characterized in that receive on home gateway Before the support routing quantity information of the home gateway of report and gateway signing rate information, further include:The connectivity request message that the home gateway is sent is received, and is tested according to the connectivity request message to home gateway transmission Demonstrate,prove solicited message;The verification information that the home gateway is sent is received, and home gateway is verified according to the verification information;If being verified, establish and connect with the home gateway, and sent to the home gateway and obtain the home gateway Support routing quantity information and gateway signing rate information instruction information.
- 3. the method according to claim 1 or 2 to test the speed online for home gateway, which is characterized in that when described default Between be greater than or equal to 10s.
- A kind of 4. method to test the speed online for home gateway, which is characterized in that including:Receive the instruction of the support routing quantity information and gateway signing rate information of the acquisition home gateway for platform transmission of testing the speed Information;According to the instruction information, the support routing quantity information of the home gateway and gateway label are sent to the platform that tests the speed About rate information, so that the platform that tests the speed route the source IP address of the identical quantity of quantity information construction according to the support, and Gateway signing rate is average to each source IP address, obtain the Mean Speed of each source IP address;Platform is tested the speed described in reception in preset time, according to the Mean Speed from each source IP address to the family The data packet of default size that the corresponding purpose IP address of gateway is sent, and obtain from each source IP address received data packet Total quantity;Send the data packet total quantity to the platform that tests the speed so that the platform that tests the speed by the data packet total quantity divided by On-line velocity of the preset time as home gateway.
- 5. the method according to claim 4 to be tested the speed online for home gateway, which is characterized in that test the speed platform in reception Before the support routing quantity information of the acquisition home gateway of transmission and the instruction information of gateway signing rate information, further include:Receive the online command information that tests the speed that gateway management platform is sent;Connectivity request message is sent to the platform that tests the speed according to the online command information that tests the speed;The checking solicited message that the platform that tests the speed described in reception is sent;According to the checking solicited message, verification information is sent to the platform that tests the speed, so that the platform that tests the speed is according to institute Verification information is stated to verify the home gateway.
- 6. the method according to claim 5 to test the speed online for home gateway, which is characterized in that receiving gateway management Before the online command information that tests the speed that platform is sent, further include:The support routing quantity information for obtaining the home gateway and gateway signing rate information are sent to gateway management platform Solicited message;Gateway management platform receives the solicited message, and is believed the support being obtained ahead of time routing quantity according to the solicited message Breath and gateway signing rate information are sent to the home gateway.
- The platform 7. one kind tests the speed, which is characterized in that including:First receiving module, for receiving the support for the home gateway that home gateway reports routing quantity information and gateway label About rate information;Source IP builds module, for supporting to route quantity information according to described, constructs the source IP address of identical quantity;Mean Speed acquisition module, for averagely to each source IP address, the gateway obtained signing rate to be obtained each source The Mean Speed of IP address;First sending module, in preset time, according to the Mean Speed from each source IP address to the family Gateway corresponding purpose IP address in front yard sends the data packet of default size;First receiving module is additionally operable to receive the data received from each source IP address that the home gateway reports Packet total quantity;Speed acquiring module, for using the data packet total quantity divided by the preset time as home gateway in linear speed Degree.
- 8. the platform according to claim 7 that tests the speed, which is characterized in that including:First receiving module is additionally operable to route quantity information in the support for receiving the home gateway that home gateway reports Before gateway signing rate information, the connectivity request message that the home gateway is sent is received, and according to the connection request Information sends checking solicited message to home gateway;Authentication module, for receiving the verification information that the home gateway is sent, and according to the verification information to home gateway It is verified;First sending module if being additionally operable to be verified, is established with the home gateway and is connected, and to the home network Close the instruction information for sending the support routing quantity information for obtaining the home gateway and gateway signing rate information.
- 9. a kind of gateway device, which is characterized in that including:Second receiving module, for receiving the support routing quantity information of the acquisition home gateway for platform transmission of testing the speed and gateway label The about instruction information of rate information;Second sending module, for according to the instruction information, the support road of the home gateway to be sent to the platform that tests the speed By quantity information and gateway signing rate information, so that the platform that tests the speed is supported to route quantity information according to described, phase is constructed With the source IP address of quantity;The gateway signing rate of acquisition is average to each source IP address, obtain each source IP address Mean Speed;Data reception module, for receive it is described test the speed platform in preset time, according to the Mean Speed from each described The data packet of default size that source IP address is sent to the corresponding purpose IP address of the home gateway, and obtain from each source IP Address received data packet total quantity;Data transmission blocks, for sending the data packet total quantity to the platform that tests the speed, so that the platform that tests the speed is by institute State the on-line velocity of data packet total quantity divided by the preset time as home gateway.
- 10. gateway device according to claim 9, which is characterized in that further include:Test the speed command reception module, for receive test the speed platform transmission acquisition home gateway support routing quantity information and Before the instruction of gateway signing rate information, the online command information that tests the speed that gateway management platform is sent is received;Second sending module is additionally operable to send connection request to the platform that tests the speed according to the online command information that tests the speed Information;Second receiving module is additionally operable to the checking solicited message that platform is sent that tests the speed described in reception;Second sending module is additionally operable to according to the checking solicited message, and verification information is sent to the platform that tests the speed, with So that the platform that tests the speed verifies home gateway according to the verification information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510870247.3A CN105553752B (en) | 2015-12-02 | 2015-12-02 | The method that tests the speed online for home gateway, test the speed platform and gateway device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510870247.3A CN105553752B (en) | 2015-12-02 | 2015-12-02 | The method that tests the speed online for home gateway, test the speed platform and gateway device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105553752A CN105553752A (en) | 2016-05-04 |
CN105553752B true CN105553752B (en) | 2018-07-03 |
Family
ID=55832692
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510870247.3A Active CN105553752B (en) | 2015-12-02 | 2015-12-02 | The method that tests the speed online for home gateway, test the speed platform and gateway device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105553752B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105791059B (en) * | 2016-05-12 | 2019-02-19 | 中国联合网络通信集团有限公司 | A kind of broadband speed-measuring method, device, system |
CN105978754B (en) * | 2016-05-13 | 2019-05-17 | 中国联合网络通信集团有限公司 | A kind of network quality detection method and gateway |
CN106302493B (en) * | 2016-08-23 | 2020-03-20 | 王志强 | Method, system and equipment for realizing note-recording communication through multiple verification |
CN111147323A (en) * | 2019-12-17 | 2020-05-12 | 中国联合网络通信集团有限公司 | Speed measuring method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1744535A (en) * | 2005-10-14 | 2006-03-08 | 中国移动通信集团公司 | WAP gateway performance test method |
CN102932218A (en) * | 2012-11-21 | 2013-02-13 | 成都市迅电网络技术有限公司 | Method and system for acquiring maximum bandwidth of network physical line |
CN103107910A (en) * | 2011-11-10 | 2013-05-15 | 中国电信股份有限公司 | Method and system of broadband speed measurement and broadband access terminal |
CN104601493A (en) * | 2014-12-03 | 2015-05-06 | 中国联合网络通信集团有限公司 | Bandwidth adjustment method and system and intelligent pipe platform |
-
2015
- 2015-12-02 CN CN201510870247.3A patent/CN105553752B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1744535A (en) * | 2005-10-14 | 2006-03-08 | 中国移动通信集团公司 | WAP gateway performance test method |
CN103107910A (en) * | 2011-11-10 | 2013-05-15 | 中国电信股份有限公司 | Method and system of broadband speed measurement and broadband access terminal |
CN102932218A (en) * | 2012-11-21 | 2013-02-13 | 成都市迅电网络技术有限公司 | Method and system for acquiring maximum bandwidth of network physical line |
CN104601493A (en) * | 2014-12-03 | 2015-05-06 | 中国联合网络通信集团有限公司 | Bandwidth adjustment method and system and intelligent pipe platform |
Also Published As
Publication number | Publication date |
---|---|
CN105553752A (en) | 2016-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105553752B (en) | The method that tests the speed online for home gateway, test the speed platform and gateway device | |
CN103236941B (en) | A kind of link discovery method and device | |
CN105743670B (en) | Access control method, system and access point | |
CN107800603B (en) | Intranet user accesses the method and storage medium of headend equipment based on VPN | |
CN110430096A (en) | A kind of gateway test method and equipment | |
CN105227406A (en) | A kind of method of testing of router combination property | |
CN104202398B (en) | The method of remote control, apparatus and system | |
CN105049280B (en) | The interface Behavior modeling test macro and method of Business Management Platform | |
CN104202178B (en) | The communication means of intelligent optical distribution network Intelligent management terminal and network management system | |
CN103716213A (en) | Method for operation in fixed access network and method for operation in user equipment | |
CN104144096A (en) | Virtual network layer construction method, device and system | |
CN108965036A (en) | Configure across public network equipment exchanging visit method, system, server and storage medium | |
CN105376754A (en) | Method for testing number of connectable wireless users of router | |
CN105577273A (en) | Method for testing ONU data forwarding function in batches | |
CN110098988A (en) | For handling the method and system of Internet Protocol packet | |
CN104486151A (en) | Method and device for carrying out production testing on access terminal product | |
CN206313803U (en) | A kind of router for realizing network game acceleration | |
CN101626343B (en) | Method and apparatus for exchanging data packet, and communication device | |
CN102984034B (en) | A kind of test structure | |
CN107332689A (en) | Embedded PON terminal devices TR069 protocol interconnections simulation system and method | |
CN105072212B (en) | To code method and to code system | |
TWI538444B (en) | IPv6 CE standard automated test system | |
CN103220374B (en) | A kind of method of client access network, device | |
CN110233799A (en) | A kind of method and communication equipment of port configuration | |
CN108134711A (en) | Method, analogue simulation appliance system and the storage medium tested terminal APP |
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 |