CN105898790A - Internet speed measuring method and equipment - Google Patents

Internet speed measuring method and equipment Download PDF

Info

Publication number
CN105898790A
CN105898790A CN201610173641.6A CN201610173641A CN105898790A CN 105898790 A CN105898790 A CN 105898790A CN 201610173641 A CN201610173641 A CN 201610173641A CN 105898790 A CN105898790 A CN 105898790A
Authority
CN
China
Prior art keywords
speed
tests
server
hgu
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610173641.6A
Other languages
Chinese (zh)
Other versions
CN105898790B (en
Inventor
张英华
陈勇
张志强
郭以平
王小雨
左爽
黄荣誉
李展翔
任宝春
程学武
孙永钢
刘洪声
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201610173641.6A priority Critical patent/CN105898790B/en
Publication of CN105898790A publication Critical patent/CN105898790A/en
Application granted granted Critical
Publication of CN105898790B publication Critical patent/CN105898790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention, which relates to the technical field of communication, discloses an internet speed measuring method and equipment. Therefore, the user operation during the speed measuring process is simplified and the speed measuring efficiency is improved. The method comprises: a home gateway unit (HGU) is connected with a mobile terminal by a WLAN; after registration in a network, if a speed measuring indication sent by a mobile terminal or an RMS server is received, a signing rate and a URL address of file downloading by the HGU are obtained from the speed measuring server; according to the URL address, a speed measuring request is initiated to a speed measuring server side to start speed measuring file downloading from the speed measuring server, and a data transmission rate for speed measuring file downloading from the speed measuring server is calculated; and a ratio of the data transmission rate to the signing rate is calculated to obtain a speed measuring qualification rate, and then the speed measuring qualification rate is sent to the mobile terminal. The method and equipment are used for fire-to-the-home (FTTH) installation and maintenance processes.

Description

A kind of network speed measuring method and equipment
Technical field
The present invention relates to communication technical field, particularly relate to a kind of network speed measuring method and equipment.
Background technology
During the dress carrying out fiber to the home (Fiber To The Home, FTTH) is tieed up, need Commissioning staff has configured home gateway unit (Home by external equipment (such as notebook) Gateway Unit, HGU) registration, and after registration complete, sign in website of testing the speed carry out broadband Network speed is tested.
Wherein, completing HGU to after the registration of network, external equipment needs login to test the speed website, By testing the speed, website sends, to the server that tests the speed, the request of testing the speed, and sets up transmission with the server that tests the speed and controls Agreement (Transmission Control Protocol, TCP) connects, and by the tcp connection Test the speed process to the server request that tests the speed.
But, there is the problem that external equipment is by website and the server interaction of testing the speed of testing the speed During carrying out network speed measurement, need commissioning staff at external equipment repetition measurement last time speed server Responding each time, the user operation during testing the speed is loaded down with trivial details, and it is inefficient to test the speed.
Summary of the invention
Embodiments of the invention provide a kind of network speed measuring method and equipment, can simplify the process of testing the speed In user operation, improve and test the speed efficiency.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
The first aspect of the embodiment of the present invention, it is provided that a kind of network speed measuring method, it is characterised in that Being applied to home gateway unit HGU, described HGU is whole with mobile by WLAN WLAN End connects, and described method includes:
After described HGU is registered to network, if receiving described mobile terminal or fixed network terminal is long-range Management system RMS server send instruction of testing the speed, then from test the speed server obtain signing speed with Described HGU downloads the uniform resource position mark URL address of file;
Described HGU initiates, to the described server end that tests the speed, the request of testing the speed according to described URL address, To start to download, from the described server that tests the speed, the file that tests the speed, and calculate from described server download of testing the speed Test the speed the data transfer rate of file;
Described HGU calculates described data transfer rate and the ratio of described signing speed, is tested the speed Qualification rate, and to the qualification rate that tests the speed described in the transmission of described mobile terminal.
In conjunction with first aspect, in the implementation that the first is possible, described HGU is from the service of testing the speed Device obtains signing speed and the uniform resource position mark URL address of described HGU download file, bag Include:
Described HGU obtains Point-to-Point Protocol over Ethernet PPPoE account and PPPoE password;
Described HGU sends described PPPoE account to the described server that tests the speed and described PPPoE is close Code so that described in test the speed server by remote customer dialing authentication service Radius server pair Described PPPoE account and described PPPoE password carry out authentication;
Described URL address and described signing that the server that tests the speed described in described HGU reception sends are fast Rate;
Wherein, described URL address and described signing speed be described in test the speed server described PPPoE account and described PPPoE password are by send after authentication, and described signing speed is The described server that tests the speed after described PPPoE account and described PPPoE password are by authentication, Obtain from the server lookup of business operation support system BOSS.
In conjunction with first aspect or implementation that the first is possible, in the realization side that the second is possible In formula, described HGU is registered to network, including:
Described HGU receives the registration request that described mobile terminal is sent by application APP client Message, carries the ONU logic mark in advance for described HGU configuration in described login request message Know LOID;
Described HGU, according to described LOID, is registered to network by described RMS server.
In conjunction with first aspect or implementation that the first is possible, in the realization side that the third is possible In formula, described HGU initiates, to the described server end that tests the speed, the request of testing the speed according to described URL address, To start to download, from the described server that tests the speed, the file that tests the speed, and calculate from described server download of testing the speed Test the speed the data transfer rate of file, including:
Described HGU and the described server that tests the speed set up N bar transmission control protocol (Transmission Control Protocol, TCP) connect, N >=1;
Described HGU, in i-th TCP connection, sends first survey to the described server end that tests the speed Speed request, described in the request of testing the speed comprises described URL address so that described in test the speed server end Test the speed according to the acquisition of described URL address file;
First response of testing the speed that the server end that tests the speed described in described HGU reception sends, and receive institute State the file that tests the speed described in server end transmission that tests the speed;
Described HGU tests the speed described in receive described first response of testing the speed that server end sends After, send a request of testing the speed every 1 second to the described server end that tests the speed, add up described HGU simultaneously Receive the size of the file that tests the speed in interval per second, and test the speed according to receiving in described interval per second The size of file tests the speed the actual transfer rate at file interval per second described in calculating, and ends described HGU Receive the K second after described first response of testing the speed;
After described HGU receives described first response of testing the speed according to described HGU, the M-K second In the actual transfer rate at interval per second, calculate the average transmission at interval per second in the described M-K second Speed, described average transmission rate is that described HGU downloads, from the described server that tests the speed, the file that tests the speed Data transfer rate.
In conjunction with first aspect or implementation that the first is possible, the 4th kind of possible realization side In formula, described HGU and described testing the speed are interacted by JSON form between server.
The second aspect of the embodiment of the present invention, it is provided that a kind of home gateway unit HGU, including:
Link block, for being connected with mobile terminal by WLAN WLAN;
Registering modules, is used for being registered to network;
Receiver module, for after described Registering modules is registered to network, receives described mobile terminal Or the instruction of testing the speed that fixed network terminal long-distance management system RMS server sends;
Acquisition module, if for described receiver module receive described in test the speed instruction, then from the clothes that test the speed Business device obtains signing speed and downloads the uniform resource position mark URL address of file;
Speed measuring module, please for testing the speed to described server end initiation of testing the speed according to described URL address Ask, to start to download, from the described server that tests the speed, the file that tests the speed, and calculate from the described server that tests the speed Download the data transfer rate of the file that tests the speed;
Computing module, for calculate described speed measuring module test the speed the described data transfer rate that obtains and The ratio of described signing speed, obtains the qualification rate that tests the speed;
Sending module, calculated described for sending described computing module to described mobile terminal Test the speed qualification rate.
In conjunction with second aspect, in the implementation that the first is possible, described acquisition module, specifically For:
Obtain Point-to-Point Protocol over Ethernet PPPoE account and PPPoE password;
Described PPPoE account and described PPPoE password is sent to the described server that tests the speed, so that The described server that tests the speed services Radius server to described PPPoE by remote customer dialing authentication Account and described PPPoE password carry out authentication;
The described URL address of the server that tests the speed described in reception transmission and described signing speed;
Wherein, described URL address and described signing speed be described in test the speed server described PPPoE account and described PPPoE password are by send after authentication, and described signing speed is The described server that tests the speed after described PPPoE account and described PPPoE password are by authentication, Obtain from the server lookup of business operation support system BOSS.
In conjunction with second aspect or implementation that the first is possible, in the implementation that the second is possible In, described Registering modules, specifically for:
Receive the login request message that described mobile terminal is sent by application APP client, described Login request message carries the ONU logical identifier LOID in advance for described HGU configuration;
According to described LOID, it is registered to network by described RMS server.
In conjunction with second aspect or implementation that the first is possible, in the implementation that the third is possible In, described speed measuring module, specifically for:
N bar transmission control protocol (Transmission Control is set up with the described server that tests the speed Protocol, TCP) connect, N >=1;
In i-th TCP connection, send first request of testing the speed to the described server end that tests the speed, Described test the speed request in comprise described URL address so that described in test the speed server end according to described Test the speed described in the acquisition of URL address file;
First response of testing the speed that the server end that tests the speed described in reception sends, and the clothes that test the speed described in reception Test the speed described in business device end transmission file;
After described first response of testing the speed that the server end that tests the speed described in receiving sends, every 1 Second sends a request of testing the speed to the described server end that tests the speed, and receives in adding up interval per second simultaneously Test the speed the size of file, and calculates institute according to the size receiving the file that tests the speed in described interval per second Stating the actual transfer rate at the file that tests the speed interval per second, cut-off receives described first response of testing the speed After the K second;
After receiving described first response of testing the speed, the actual biography at interval per second in the M-K second Defeated speed, calculates the average transmission rate at interval per second in the described M-K second, described average transmission Speed is to download the data transfer rate of the file that tests the speed from the described server that tests the speed.
In conjunction with second aspect or implementation that the first is possible, the 4th kind of possible implementation In, described HGU and described testing the speed are interacted by JSON form between server.
The network speed measuring method of embodiment of the present invention offer and equipment, HGU can be registered to network After, if receiving mobile terminal or the instruction of testing the speed of RMS server transmission, then from the service of testing the speed Device obtains signing speed and the URL address of HGU download file;According to URL address to the clothes that test the speed Business device end initiates the request of testing the speed, and to start to download, from the server that tests the speed, the file that tests the speed, and calculates from survey Speed server downloads the data transfer rate of the file that tests the speed;Calculate data transfer rate and signing speed Ratio, obtain the qualification rate that tests the speed, and to mobile terminal send described in test the speed qualification rate.
This programme is compared with prior art, it is not necessary to commissioning staff carries external equipment (notebook), And need not commissioning staff and reply the response of the server that tests the speed on mobile terminals;Have only to arbitrary Individual mobile terminal or the instruction of testing the speed that directly employing RMS server sends to HGU, HGU is just Can be spontaneous complete with the server that tests the speed mutual, initiate, to the server end that tests the speed, the request of testing the speed and obtain The result that must test the speed (i.e. test the speed qualification rate), and the result that will test the speed feeds back to mobile terminal.With existing Technology is compared, and simplifies the user operation during testing the speed, and manually grasps compared to commissioning staff Making to reply the response of server of testing the speed, what HGU was spontaneous complete and can the carrying alternately of the server that tests the speed Height tests the speed efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will The accompanying drawing used required in embodiment or description of the prior art is briefly described, it is clear that Ground, the accompanying drawing in describing below is only some embodiments of the present invention, skill common for this area From the point of view of art personnel, on the premise of not paying creative work, it is also possible to obtain according to these accompanying drawings Obtain other accompanying drawing.
A kind of network speed measuring method flow chart that Fig. 1 provides for the embodiment of the present invention;
The another kind of network speed measuring method flow chart that Fig. 2 provides for the embodiment of the present invention;
The another kind of network speed measuring method flow chart that Fig. 3 provides for the embodiment of the present invention;
The structure composition signal of a kind of home gateway unit HGU that Fig. 4 provides for the embodiment of the present invention Figure;
The structure composition of the another kind of home gateway unit HGU that Fig. 5 provides for the embodiment of the present invention shows It is intended to.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, to the technical scheme in the embodiment of the present invention It is clearly and completely described, it is clear that described embodiment is only that a part of the present invention is real Execute example rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill The every other embodiment that personnel are obtained under not making creative work premise, broadly falls into this The scope of invention protection.
A kind of network speed measuring method and equipment that the embodiment of the present invention provides can apply to fiber to the home During the dress dimension of (Fiber To The Home, FTTH).
Below in conjunction with the accompanying drawings, by specific embodiment and application scenarios thereof, the embodiment of the present invention is carried The network speed measuring method of confession and equipment are described in detail.
Embodiment one
The embodiment of the present invention provides a kind of network speed measuring method, is applied to home gateway unit (Home Gateway Unit, HGU), HGU passes through WLAN (Wireless LAN, WLAN) It is connected with mobile terminal, as it is shown in figure 1, this network speed measuring method includes:
After S101, HGU are registered to network, if receiving mobile terminal or fixed network terminal is remotely managed The instruction of testing the speed that reason system (Remote Management System, RMS) server sends, Then obtain signing speed and the URL of HGU download file from the server that tests the speed (Uniform Resource Locator, URL) address.
Wherein, HGU can receive mobile after commissioning staff completes the optical link jumper connection of user side The login request message that terminal is sent by application (Application, APP) client, registration please Ask and message carries (Optical Network Unit, the ONU) logic configured for HGU in advance Mark (Logical ONU ID, LOID);Then according to LOID, noted by RMS server Volume is to network.
Exemplary, HGU obtains signing speed and the URL of HGU download file from the server that tests the speed The method of address may include that HGU obtains Point-to-Point Protocol over Ethernet (Point-to-Point Protocol over Ethernet, PPPoE) account and PPPoE password;HGU is to the server that tests the speed Send PPPoE account and PPPoE password, so that the server that tests the speed is recognized by remote customer dialing Card service (Remote Authentication Dial In User Service, Radius) server pair PPPoE account and described PPPoE password carry out authentication.HGU receives the server that tests the speed and sends URL address and signing speed.
Wherein, signing speed passes through authentication for the server that tests the speed in PPPoE account and PPPoE password After certification, obtain from the server lookup of business operation support system BOSS.
S102, HGU initiate, to the server end that tests the speed, the request of testing the speed according to URL address, to start Download, from the server that tests the speed, the file that tests the speed, and calculate the data downloading the file that tests the speed from the server that tests the speed Transfer rate.
Wherein, URL address passes through authentication for the server that tests the speed in PPPoE account and PPPoE password Send after certification.
S103, HGU calculate data transfer rate and the ratio of signing speed, obtain the qualification rate that tests the speed, And send, to mobile terminal, the qualification rate that tests the speed.
Exemplary, it is the most qualified that the qualification rate that tests the speed may be used for characterizing current message transmission rate. The embodiment of the present invention can be tested the speed qualification rate and default qualification rate threshold value by contrast, when conjunction of testing the speed Lattice rate more than when presetting qualification rate threshold value, then may determine that current message transmission rate is qualified.
The network speed measuring method of embodiment of the present invention offer and equipment, HGU can be registered to network After, if receiving mobile terminal or the instruction of testing the speed of RMS server transmission, then from the service of testing the speed Device obtains signing speed and the URL address of HGU download file;According to URL address to the clothes that test the speed Business device end initiates the request of testing the speed, and to start to download, from the server that tests the speed, the file that tests the speed, and calculates from survey Speed server downloads the data transfer rate of the file that tests the speed;Calculate data transfer rate and signing speed Ratio, obtain the qualification rate that tests the speed, and to mobile terminal send described in test the speed qualification rate.
This programme is compared with prior art, it is not necessary to commissioning staff carries external equipment (notebook), And need not commissioning staff and reply the response of the server that tests the speed on mobile terminals;Have only to arbitrary Individual mobile terminal or the instruction of testing the speed that directly employing RMS server sends to HGU, HGU is just Can be spontaneous complete with the server that tests the speed mutual, initiate, to the server end that tests the speed, the request of testing the speed and obtain The result that must test the speed (i.e. test the speed qualification rate), and the result that will test the speed feeds back to mobile terminal.With existing Technology is compared, and simplifies the user operation during testing the speed, and manually grasps compared to commissioning staff Making to reply the response of server of testing the speed, what HGU was spontaneous complete and can the carrying alternately of the server that tests the speed Height tests the speed efficiency.
Embodiment two
The embodiment of the present invention provides a kind of network speed measuring method, as in figure 2 it is shown, this network speed measurement side Method includes:
S201, HGU receive the login request message that mobile terminal is sent, note by APP client Volume request message carries the LOID in advance for HGU configuration.
In embodiments of the present invention, mobile terminal is provided with may be used for carrying out HGU registration and The APP client that network speed is measured.This APP client can be to use B/S framework, based on Android (Android) platform or IO S platform are researched and developed.
It is envisioned that in embodiments of the present invention, mobile terminal can pass through APP client, Through WLAN to HGU initiate HTML (Hypertext Markup Language) (Hyper Text Transfer Protocol, HTTP) request, is connected with HGU foundation with request;HGU can respond the HTTP of mobile terminal Request, it is allowed to mobile terminal accesses this HGU.
After a connection setup, mobile terminal then can show register interface by APP client, with It is easy to commissioning staff to be inputted in advance for being somebody's turn to do by barcode scanning or the mode that is manually entered at this interface The LOID of HGU configuration, is triggered mobile terminal and is carried by the transmission of APP client HGU The login request message of LOID.
S202, HGU, according to LOID, are registered to network by RMS server.
Exemplary, HGU, according to LOID, is registered to network by RMS server the most permissible Including: the certification between HGU Yu optical line terminal (optical line terminal, OLT) is mutual And certification between HGU and RMS server is mutual.
Wherein, the certification between HGU and OLT and RMS server is used for determining this alternately Whether HGU can be with access network (being i.e. registered to network).Wherein, HGU is at OLT and RMS The original state of server side is unauthorized state (Unauthorized).
Certification interaction between HGU and OLT specifically may include that OLT passes through to HGU Send Auth_Request message, initiate the certification to HGU;HGU is receiving this After Auth_Request message, reply to OLT and carry the LOID configured for this HGU in advance Auth_Response message;Legitimacy and the correctness of this LOID are verified by OLT;If Being verified, OLT then sends Auth_Sucess message to HGU, and by the state of this HGU Licensing status (Authorized) is switched to by unauthorized state (Unauthorized).Wherein, OLT allows the HGU being in licensing status (Authorized) to carry out proper communication.
Certification interaction between HGU and RMS server specifically may include that HGU will be pre- First the LOID for this HGU configuration reports RMS server, and RMS server receives this Then this HGU can be authenticated binding and sending down service after LOID.
It should be noted that HGU is registered to the method for network and includes but do not limit in the embodiment of the present invention Method in examples detailed above, HGU is registered to the additive method of network and is referred in prior art Associated description, the embodiment of the present invention repeats no more here.
S203, HGU receive mobile terminal or the instruction of testing the speed of RMS server transmission.
Wherein, mobile terminal can receive the triggering of commissioning staff and send, to HGU, instruction of testing the speed;Or Person's RMS server can send, to HGU, instruction of testing the speed after HGU is registered to network.
It should be noted that in the embodiment of the present invention, HGU can be by the spy of testing the speed in HGU Needle system realizes the network speed in the embodiment of the present invention and measures.Wherein, the probe system that tests the speed in HGU Can be to use the design of C/S structure.
S204, HGU after receiving the instruction of testing the speed that mobile terminal or RMS server send, Signing speed and the URL address of HGU download file is obtained from the server that tests the speed.
Exemplary, HGU obtains the method tool of signing speed and URL address from the server that tests the speed Body can include S204a-S204f:
S204a, HGU obtain PPPoE account and PPPoE password.
Wherein, mobile terminal can receive the PPPoE account that commissioning staff is inputted by APP client Number and PPPoE password, then send PPPoE account and PPPoE password to HGU.
S204b, HGU send PPPoE account and PPPoE password to the server that tests the speed.
Exemplary, HGU can use JSON form to send PPPoE account to the server that tests the speed With PPPoE password.
S204c, the server that tests the speed send PPPoE account and PPPoE password to Radius server.
Exemplary, the server that tests the speed can use Socket form to send to Radius server PPPoE account and PPPoE password.
S204d, Radius server carries out authentication to PPPoE account and PPPoE password, Obtain authentication result.
S204e, Radius server sends authentication result to the server that tests the speed.
If S204f authentication result instruction authentication passes through, the server that tests the speed then obtains URL Address, and from business operation support system (Business&Operation Support System, BOSS) server lookup signing speed.
If the instruction authentication failure of authentication result, the server that tests the speed then can use JSON Form sends instruction authentication failure to HGU.
Exemplary, test the speed in S204f the server method from BOSS server lookup signing speed Specifically may include that
The server that tests the speed sends the speed inquiry request carrying PPPoE account to BOSS server;
The signing speed corresponding with this PPPoE account that BOSS server lookup is pre-configured with;
BOSS server sends the speed sound carrying the signing speed inquired to the server that tests the speed Answer message.
Exemplary, test the speed and Webservice between server and BOSS server, can be used to connect Mouth mode carries out data interaction.
Exemplary, in the embodiment of the present invention, " HGU sends out to the server end that tests the speed according to URL address Act the request of testing the speed, to start to download, from the server that tests the speed, the file that tests the speed, and calculate from the server that tests the speed Download the data transfer rate of file of testing the speed " specifically can include S205-S210:
S205, HGU and the server that tests the speed set up N bar transmission control protocol (Transmission Control Protocol, TCP) connect, N >=1.
S206, HGU, in i-th TCP connection, send first to the server end that tests the speed and test the speed Request, comprises URL address in the request of testing the speed.
S207, the server end that tests the speed obtain, according to URL address, the file that tests the speed.
S208, HGU receive first response of testing the speed that the server end that tests the speed sends, and start to receive The file that tests the speed that the server end that tests the speed sends.
After S209, HGU test the speed respond at first that receives server end transmission of testing the speed, every Within 1 second, send a request of testing the speed to the server end that tests the speed, receive in statistics HGU interval per second simultaneously To the size of the file that tests the speed, and test the speed according to the size calculating receiving the file that tests the speed in interval per second The actual transfer rate at file interval per second, cut-off HGU receives after first response of testing the speed the The K second.
After S210, HGU receive first response of testing the speed according to HGU, per second in the M-K second The actual transfer rate at interval, calculates the average transmission rate at interval per second in the M-K second, averagely Transfer rate is that HGU downloads the data transfer rate of the file that tests the speed from the server that tests the speed.
S211, HGU calculate data transfer rate and the ratio of signing speed, obtain the qualification rate that tests the speed, And send, to mobile terminal, the qualification rate that tests the speed.
Mobile terminal shows this qualification rate that tests the speed by the APP client of this mobile terminal.
Further, the server that tests the speed can carry out record to each HGU, in order to follow-up can To carry out Network Quality Analysis and statistics, the method for the embodiment of the present invention can also include S212:
S212, HGU send to the server that tests the speed and comprise the information of testing the speed, so that the server note that tests the speed Record this information that tests the speed.
Wherein, the information of testing the speed in the embodiment of the present invention may include that the qualification rate that tests the speed, PPPoE Account, the IP address of the user that tests the speed, speed of contracting, the IP address of the user that tests the speed, download file Size, the Mean Speed of download, the peak rate of download, download initial time and download cut-off Time etc..
The embodiment of the present invention provide network speed measuring method, HGU can after being registered to network, if Receive mobile terminal or the instruction of testing the speed of RMS server transmission, then obtain from the server that tests the speed Signing speed and HGU download the URL address of file;According to URL address to the server end that tests the speed The initiation request of testing the speed, to start to download, from the server that tests the speed, the file that tests the speed, and calculates from the service of testing the speed The data transfer rate of the file that tests the speed downloaded by device;Calculate data transfer rate and the ratio of signing speed, Obtain the qualification rate that tests the speed, and to the qualification rate that tests the speed described in mobile terminal transmission.
This programme is compared with prior art, it is not necessary to commissioning staff carries external equipment (notebook), And need not commissioning staff and reply the response of the server that tests the speed on mobile terminals;Have only to arbitrary Individual mobile terminal or the instruction of testing the speed that directly employing RMS server sends to HGU, HGU is just Can be spontaneous complete with the server that tests the speed mutual, initiate, to the server end that tests the speed, the request of testing the speed and obtain The result that must test the speed (i.e. test the speed qualification rate), and the result that will test the speed feeds back to mobile terminal.With existing Technology is compared, and simplifies the user operation during testing the speed, and manually grasps compared to commissioning staff Making to reply the response of server of testing the speed, what HGU was spontaneous complete and can the carrying alternately of the server that tests the speed Height tests the speed efficiency.
Embodiment three
The embodiment of the present invention provides a kind of home gateway unit HGU, as shown in Figure 4, this HGU Including: link block 31, Registering modules 32, receiver module 33, acquisition module 34, test the speed mould Block 35, computing module 36 and sending module 37.
Link block 31, for being connected with mobile terminal by WLAN WLAN.
Registering modules 32, is used for being registered to network.
Receiver module 33, for after described Registering modules 32 is registered to network, receives described movement The instruction of testing the speed that terminal or fixed network terminal long-distance management system RMS server send.
Acquisition module 34, if for described receiver module 33 receive described in test the speed instruction, then from survey Speed server obtains signing speed and downloads the uniform resource position mark URL address of file.
Speed measuring module 35, for initiating to test the speed to the described server end that tests the speed according to described URL address Request, to start to download, from the described server that tests the speed, the file that tests the speed, and calculates from the described service of testing the speed The data transfer rate of the file that tests the speed downloaded by device.
Computing module 36, the described data obtained for calculating described speed measuring module 35 to test the speed transmit speed Rate and the ratio of described signing speed, obtain the qualification rate that tests the speed.
Sending module 37, calculated for sending described computing module 36 to described mobile terminal The described qualification rate that tests the speed.
Further, described acquisition module 34, specifically for:
Obtain Point-to-Point Protocol over Ethernet PPPoE account and PPPoE password;
Described PPPoE account and described PPPoE password is sent to the described server that tests the speed, so that The described server that tests the speed services Radius server to described PPPoE by remote customer dialing authentication Account and described PPPoE password carry out authentication;
The described URL address of the server that tests the speed described in reception transmission and described signing speed.
Wherein, described URL address and described signing speed be described in test the speed server described PPPoE account and described PPPoE password are by send after authentication, and described signing speed is The described server that tests the speed after described PPPoE account and described PPPoE password are by authentication, Obtain from the server lookup of business operation support system BOSS.
Further, described Registering modules 33, specifically for:
Receive the login request message that described mobile terminal is sent by application APP client, described Login request message carries the ONU logical identifier LOID in advance for described HGU configuration;
According to described LOID, it is registered to network by described RMS server.
Further, described speed measuring module 35, specifically for:
N bar transmission control protocol (Transmission Control is set up with the described server that tests the speed Protocol, TCP) connect, N >=1;
In i-th TCP connection, send first request of testing the speed to the described server end that tests the speed, Described test the speed request in comprise described URL address so that described in test the speed server end according to described Test the speed described in the acquisition of URL address file;
First response of testing the speed that the server end that tests the speed described in reception sends, and the clothes that test the speed described in reception Test the speed described in business device end transmission file;
After described first response of testing the speed that the server end that tests the speed described in receiving sends, every 1 Second sends a request of testing the speed to the described server end that tests the speed, and receives in adding up interval per second simultaneously Test the speed the size of file, and calculates institute according to the size receiving the file that tests the speed in described interval per second Stating the actual transfer rate at the file that tests the speed interval per second, cut-off receives described first response of testing the speed After the K second;
After receiving described first response of testing the speed, the actual biography at interval per second in the M-K second Defeated speed, calculates the average transmission rate at interval per second in the described M-K second, described average transmission Speed is to download the data transfer rate of the file that tests the speed from the described server that tests the speed.
Further, described HGU and described testing the speed are handed over by JSON form between server Mutually.
The embodiment of the present invention also provides for a kind of HGU, as it is shown in figure 5, this HGU includes: storage Device 41, processor 42, receptor 43 and transmitter 44.Wherein, memorizer 41, processor 42, Receptor 43 connects and completes mutual communicating, wherein with transmitter 44 by bus 45:
Described memorizer 41 is used for storing executable program code, and described memorizer 31 is described HGU Computer-readable storage medium, described computer-readable storage medium may comprise high-speed RAM memorizer, also May also include nonvolatile memory (non-volatile memory), for example, at least one disk Memorizer.
Described processor 42 be probably a central processing unit (Central Processing Unit, CPU), or specific integrated circuit (Application Specific Integrated Circuit, ASIC), or be configured to implement the embodiment of the present invention one or more integrated circuits.
It should be noted that the processor 42 in the embodiment of the present invention can be to connect in above-described embodiment The merits such as connection module 31, Registering modules 32, acquisition module 34, speed measuring module 35, computing module 36 Can unit or functional module integrated, the most above-mentioned each functional unit can be integrated in this processor In 42.Receptor 43 can be the receiver module 33 of above-mentioned HGU, and transmitter 44 can be upper State the sending module 37 of HGU.Receptor 43 and transmitter 44 can also be the receipts of above-mentioned HGU Send out interface.Processor 42 may be used for controlling the transceiver interface of this HGU and carries out data or signaling disappears The transmitting-receiving of breath.
Processor 42, is used for performing described memorizer 41 storing said program code, and specifically for Control the network speed measuring method that the above-mentioned execution embodiment of the present invention provides.
Wherein, bus can be industry standard architecture (Industry Standard Architecture, ISA) bus, external equipment interconnection (Peripheral Component Interconnect, PCI) are always Line or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..This bus can be divided into address bus, data/address bus, control bus etc..For It is easy to represent, Fig. 5 only represents with a thick line, it is not intended that an only bus or one The bus of type.
It should be noted that specifically the retouching of part functional module in the HGU that provides of the embodiment of the present invention Stating the corresponding content being referred in embodiment of the method, the present embodiment is the most no longer described in detail.
The embodiment of the present invention provide network speed measuring method, HGU can after being registered to network, if Receive mobile terminal or the instruction of testing the speed of RMS server transmission, then obtain from the server that tests the speed Signing speed and HGU download the URL address of file;According to URL address to the server end that tests the speed The initiation request of testing the speed, to start to download, from the server that tests the speed, the file that tests the speed, and calculates from the service of testing the speed The data transfer rate of the file that tests the speed downloaded by device;Calculate data transfer rate and the ratio of signing speed, Obtain the qualification rate that tests the speed, and to the qualification rate that tests the speed described in mobile terminal transmission.
This programme is compared with prior art, it is not necessary to commissioning staff carries external equipment (notebook), And need not commissioning staff and reply the response of the server that tests the speed on mobile terminals;Have only to arbitrary Individual mobile terminal or the instruction of testing the speed that directly employing RMS server sends to HGU, HGU is just Can be spontaneous complete with the server that tests the speed mutual, initiate, to the server end that tests the speed, the request of testing the speed and obtain The result that must test the speed (i.e. test the speed qualification rate), and the result that will test the speed feeds back to mobile terminal.With existing Technology is compared, and simplifies the user operation during testing the speed, and manually grasps compared to commissioning staff Making to reply the response of server of testing the speed, what HGU was spontaneous complete and can the carrying alternately of the server that tests the speed Height tests the speed efficiency.
Through the above description of the embodiments, those skilled in the art it can be understood that Arrive, for convenience and simplicity of description, be only illustrated with the division of above-mentioned each functional module, In actual application, can as desired above-mentioned functions distribution be completed by different functional modules, The internal structure of device will be divided into different functional modules, with complete described above all or Person's partial function.The specific works process of the system of foregoing description, device and unit, is referred to Corresponding process in preceding method embodiment, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, dress Put and method, can realize by another way.Such as, device embodiment described above It is only schematically, such as, described module or the division of unit, it is only a kind of logic function Dividing, actual can have other dividing mode, the most multiple unit or assembly to tie when realizing Close or be desirably integrated into another system, or some features can be ignored, or not performing.Another Point, shown or discussed coupling each other or direct-coupling or communication connection can be to pass through The INDIRECT COUPLING of some interfaces, device or unit or communication connection, can be electrical, machinery or its Its form.
The described unit illustrated as separating component can be or may not be physically separate , the parts shown as unit can be or may not be physical location, i.e. may be located at One place, or can also be distributed on multiple NE.Can select according to the actual needs Select some or all of unit therein to realize the purpose of the present embodiment scheme.
Process single it addition, each functional unit in each embodiment of the present invention can be integrated in one In unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit collection Become in a unit.Above-mentioned integrated unit both can realize to use the form of hardware, it is also possible to The form using SFU software functional unit realizes.
If described integrated unit realizes and as independent product using the form of SFU software functional unit When selling or use, can be stored in a computer read/write memory medium.Based on such Understand, part that prior art is contributed by technical scheme the most in other words or Completely or partially can embodying with the form of software product of this technical scheme, this computer is soft Part product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) Perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium Including: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), with Machine access memorizer (RAM, Random Access Memory), magnetic disc or CD etc. are various The medium of program code can be stored.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not Be confined to this, any those familiar with the art in the technical scope that the invention discloses, Change can be readily occurred in or replace, all should contain within protection scope of the present invention.Therefore, originally The protection domain of invention should be as the criterion with described scope of the claims.

Claims (10)

1. a network speed measuring method, it is characterised in that be applied to home gateway unit HGU, institute Stating HGU to be connected with mobile terminal by WLAN WLAN, described method includes:
After described HGU is registered to network, if receiving described mobile terminal or fixed network terminal is long-range Management system RMS server send instruction of testing the speed, then from test the speed server obtain signing speed with Described HGU downloads the uniform resource position mark URL address of file;
Described HGU initiates, to the described server end that tests the speed, the request of testing the speed according to described URL address, To start to download, from the described server that tests the speed, the file that tests the speed, and calculate from described server download of testing the speed Test the speed the data transfer rate of file;
Described HGU calculates described data transfer rate and the ratio of described signing speed, is tested the speed Qualification rate, and to the qualification rate that tests the speed described in the transmission of described mobile terminal.
Method the most according to claim 1, it is characterised in that described HGU is from the clothes that test the speed Business device obtains signing speed and the uniform resource position mark URL address of described HGU download file, Including:
Described HGU obtains Point-to-Point Protocol over Ethernet PPPoE account and PPPoE password;
Described HGU sends described PPPoE account to the described server that tests the speed and described PPPoE is close Code so that described in test the speed server by remote customer dialing authentication service Radius server pair Described PPPoE account and described PPPoE password carry out authentication;
Described URL address and described signing that the server that tests the speed described in described HGU reception sends are fast Rate;
Wherein, described URL address and described signing speed be described in test the speed server described PPPoE account and described PPPoE password are by send after authentication, and described signing speed is The described server that tests the speed after described PPPoE account and described PPPoE password are by authentication, Obtain from the server lookup of business operation support system BOSS.
Method the most according to claim 1 and 2, it is characterised in that described HGU registers To network, including:
Described HGU receives the registration request that described mobile terminal is sent by application APP client Message, carries the optical network unit in advance for described HGU configuration in described login request message ONU logical identifier LOID;
Described HGU, according to described LOID, is registered to network by described RMS server.
Method the most according to claim 1 and 2, it is characterised in that described HGU according to The request of testing the speed is initiated, to the described server end that tests the speed, in described URL address, to start from the described clothes that test the speed The file that tests the speed downloaded by business device, and calculates the data transmission downloading the file that tests the speed from the described server that tests the speed Speed, including:
Described HGU sets up N bar transmission control protocol TCP with the described server that tests the speed and is connected, N >=1;
Described HGU, in i-th TCP connection, sends first survey to the described server end that tests the speed Speed request, described in the request of testing the speed comprises described URL address so that described in test the speed server end Test the speed according to the acquisition of described URL address file;
First response of testing the speed that the server end that tests the speed described in described HGU reception sends, and receive institute State the file that tests the speed described in server end transmission that tests the speed;
Described HGU tests the speed described in receive described first response of testing the speed that server end sends After, send a request of testing the speed every 1 second to the described server end that tests the speed, add up described HGU simultaneously Receive the size of the file that tests the speed in interval per second, and test the speed according to receiving in described interval per second The size of file tests the speed the actual transfer rate at file interval per second described in calculating, and ends described HGU Receive the K second after described first response of testing the speed;
After described HGU receives described first response of testing the speed according to described HGU, the M-K second In the actual transfer rate at interval per second, calculate the average transmission at interval per second in the described M-K second Speed, described average transmission rate is that described HGU downloads, from the described server that tests the speed, the file that tests the speed Data transfer rate.
Method the most according to claim 1 and 2, it is characterised in that described HGU and institute Stating tests the speed is interacted by JSON form between server.
6. a home gateway unit HGU, it is characterised in that including:
Link block, for being connected with mobile terminal by WLAN WLAN;
Registering modules, is used for being registered to network;
Receiver module, for after described Registering modules is registered to network, receives described mobile terminal Or the instruction of testing the speed that fixed network terminal long-distance management system RMS server sends;
Acquisition module, if for described receiver module receive described in test the speed instruction, then from the clothes that test the speed Business device obtains signing speed and downloads the uniform resource position mark URL address of file;
Speed measuring module, please for testing the speed to described server end initiation of testing the speed according to described URL address Ask, to start to download, from the described server that tests the speed, the file that tests the speed, and calculate from the described server that tests the speed Download the data transfer rate of the file that tests the speed;
Computing module, for calculate described speed measuring module test the speed the described data transfer rate that obtains and The ratio of described signing speed, obtains the qualification rate that tests the speed;
Sending module, calculated described for sending described computing module to described mobile terminal Test the speed qualification rate.
HGU the most according to claim 6, it is characterised in that described acquisition module, specifically For:
Obtain Point-to-Point Protocol over Ethernet PPPoE account and PPPoE password;
Described PPPoE account and described PPPoE password is sent to the described server that tests the speed, so that The described server that tests the speed services Radius server to described PPPoE by remote customer dialing authentication Account and described PPPoE password carry out authentication;
The described URL address of the server that tests the speed described in reception transmission and described signing speed;
Wherein, described URL address and described signing speed be described in test the speed server described PPPoE account and described PPPoE password are by send after authentication, and described signing speed is The described server that tests the speed after described PPPoE account and described PPPoE password are by authentication, Obtain from the server lookup of business operation support system BOSS.
8. according to the HGU described in claim 6 or 7, it is characterised in that described Registering modules, Specifically for:
Receive the login request message that described mobile terminal is sent by application APP client, described Login request message carries the optical network unit ONU logic mark in advance for described HGU configuration Know LOID;
According to described LOID, it is registered to network by described RMS server.
9. according to the HGU described in claim 6 or 7, it is characterised in that described speed measuring module, Specifically for:
Set up N bar transmission control protocol TCP with the described server that tests the speed to be connected, N >=1;
In i-th TCP connection, send first request of testing the speed to the described server end that tests the speed, Described test the speed request in comprise described URL address so that described in test the speed server end according to described Test the speed described in the acquisition of URL address file;
First response of testing the speed that the server end that tests the speed described in reception sends, and the clothes that test the speed described in reception Test the speed described in business device end transmission file;
After described first response of testing the speed that the server end that tests the speed described in receiving sends, every 1 Second sends a request of testing the speed to the described server end that tests the speed, and receives in adding up interval per second simultaneously Test the speed the size of file, and calculates institute according to the size receiving the file that tests the speed in described interval per second Stating the actual transfer rate at the file that tests the speed interval per second, cut-off receives described first response of testing the speed After the K second;
After receiving described first response of testing the speed, the actual biography at interval per second in the M-K second Defeated speed, calculates the average transmission rate at interval per second in the described M-K second, described average transmission Speed is to download the data transfer rate of the file that tests the speed from the described server that tests the speed.
10. according to the HGU described in claim 6 or 7, it is characterised in that described HGU with Described testing the speed is interacted by JSON form between server.
CN201610173641.6A 2016-03-24 2016-03-24 A kind of network speed measurement method and equipment Active CN105898790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610173641.6A CN105898790B (en) 2016-03-24 2016-03-24 A kind of network speed measurement method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610173641.6A CN105898790B (en) 2016-03-24 2016-03-24 A kind of network speed measurement method and equipment

Publications (2)

Publication Number Publication Date
CN105898790A true CN105898790A (en) 2016-08-24
CN105898790B CN105898790B (en) 2019-05-24

Family

ID=57014594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610173641.6A Active CN105898790B (en) 2016-03-24 2016-03-24 A kind of network speed measurement method and equipment

Country Status (1)

Country Link
CN (1) CN105898790B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107634880A (en) * 2017-09-25 2018-01-26 中国联合网络通信集团有限公司 Broadband speed-measuring method and broadband velocity-measuring system
CN107707423A (en) * 2017-08-30 2018-02-16 清华大学 Acquisition methods, system, equipment and the storage medium of network speed of download
CN108234229A (en) * 2016-12-15 2018-06-29 深圳市优朋普乐传媒发展有限公司 A kind of network speed measuring method and device
CN110661681A (en) * 2019-09-12 2020-01-07 北京市天元网络技术股份有限公司 Buried point design method and device
CN111147323A (en) * 2019-12-17 2020-05-12 中国联合网络通信集团有限公司 Speed measuring method and device
CN111245668A (en) * 2018-12-28 2020-06-05 中国信息通信研究院 Broadband network rate testing method and system
CN111294670A (en) * 2020-01-20 2020-06-16 中天通信技术有限公司 Speed measuring method, device, equipment and medium for optical network terminal equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103107910A (en) * 2011-11-10 2013-05-15 中国电信股份有限公司 Method and system of broadband speed measurement and broadband access terminal
CN104780004A (en) * 2015-05-05 2015-07-15 烽火通信科技股份有限公司 Bandwidth speed measurement system and method of home gateway

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103107910A (en) * 2011-11-10 2013-05-15 中国电信股份有限公司 Method and system of broadband speed measurement and broadband access terminal
CN104780004A (en) * 2015-05-05 2015-07-15 烽火通信科技股份有限公司 Bandwidth speed measurement system and method of home gateway

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘谦等: "宽带速率测试方法固定宽带接入", 《通信行业标准》 *
周淳: "天津联通宽带测速系统的设计与应用", 《万方学位论文》 *
朴永胜等: "中国联通家庭网关定制规范", 《中国联通企业标准》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234229A (en) * 2016-12-15 2018-06-29 深圳市优朋普乐传媒发展有限公司 A kind of network speed measuring method and device
CN107707423A (en) * 2017-08-30 2018-02-16 清华大学 Acquisition methods, system, equipment and the storage medium of network speed of download
CN107707423B (en) * 2017-08-30 2019-12-24 清华大学 Method, system, equipment and storage medium for acquiring network downloading speed
CN107634880A (en) * 2017-09-25 2018-01-26 中国联合网络通信集团有限公司 Broadband speed-measuring method and broadband velocity-measuring system
CN111245668A (en) * 2018-12-28 2020-06-05 中国信息通信研究院 Broadband network rate testing method and system
CN111245668B (en) * 2018-12-28 2020-11-06 中国信息通信研究院 Broadband network rate testing method and system
CN110661681A (en) * 2019-09-12 2020-01-07 北京市天元网络技术股份有限公司 Buried point design method and device
CN111147323A (en) * 2019-12-17 2020-05-12 中国联合网络通信集团有限公司 Speed measuring method and device
CN111294670A (en) * 2020-01-20 2020-06-16 中天通信技术有限公司 Speed measuring method, device, equipment and medium for optical network terminal equipment

Also Published As

Publication number Publication date
CN105898790B (en) 2019-05-24

Similar Documents

Publication Publication Date Title
CN105898790A (en) Internet speed measuring method and equipment
CN104144163B (en) Auth method, apparatus and system
EP3179758A1 (en) Building intercom method, nfc unlocking device and building intercom system
CN105025041A (en) File upload method, file upload apparatus and system
CN110178393A (en) A kind of method for down loading, equipment and the server of subscription data collection
CN107211001A (en) Forced gate flow is acted on behalf of for input-bound device
CN105991589A (en) Method, apparatus, and system for redirection
CN105228126B (en) A kind of method and system of network access point trustship
CN108270882A (en) The analysis method and device of domain name, storage medium, electronic device
CN102833777B (en) Method for testing PORTAL performance of access controller
CN108496380A (en) server, mobile terminal and program
CN103718517A (en) Information publishment method, device and network system
CN114124452B (en) Terminal authentication method, related equipment and authentication system
CN105791059B (en) A kind of broadband speed-measuring method, device, system
CN109087468A (en) A kind of aobvious code casting equipment, account binding and payment transaction processing method and processing device
CN111066014B (en) Apparatus, method, and program for remotely managing devices
CN105681258A (en) Session method and session device based on third-party server
CN106797329A (en) Special-purpose terminal and its operating method for measuring the Internet wire quality
CN104168322B (en) Car-mounted terminal data transmission method, application server, client and user terminal
CN107135506A (en) A kind of portal authentication methods, apparatus and system
CN105072082A (en) Method and device for transmitting verification code
CN103139758A (en) Mobile Socket type application system, server, method and wireless application protocol (WPA) gateway
CN103563338A (en) Accessing a communication system
CN110166518B (en) Session information transmission method, device, storage medium and electronic device
KR101521523B1 (en) Payment processing system in web site using plug-in of mobile device

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