WO2016188189A1 - 网络测速的方法及装置 - Google Patents

网络测速的方法及装置 Download PDF

Info

Publication number
WO2016188189A1
WO2016188189A1 PCT/CN2016/076090 CN2016076090W WO2016188189A1 WO 2016188189 A1 WO2016188189 A1 WO 2016188189A1 CN 2016076090 W CN2016076090 W CN 2016076090W WO 2016188189 A1 WO2016188189 A1 WO 2016188189A1
Authority
WO
WIPO (PCT)
Prior art keywords
hgu
speed measurement
rate
network
network speed
Prior art date
Application number
PCT/CN2016/076090
Other languages
English (en)
French (fr)
Inventor
王丽艳
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016188189A1 publication Critical patent/WO2016188189A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for network speed measurement.
  • the detection method of network speed has great deficiencies in terms of ease of use and extensiveness; another traditional method for detecting network speed is direct speed measurement of APP on mobile phones, but the principle is that the speed between mobile phone and speed website will exist.
  • the network impact between the mobile phone and the Home Gateway Unit (HGU), the speed measurement results will be very unsatisfactory.
  • the result is a decline in customer satisfaction in broadband networks. Therefore, if you can solve the shortcomings in ease of use and extensiveness, you will be able to improve customer satisfaction.
  • the detection method of the network rate has not proposed an effective solution.
  • the present invention provides a method and apparatus for network speed measurement to at least solve the problems of the network rate detection method in the related art.
  • a method for network speed measurement comprising: a home gateway unit HGU receiving indication information for performing network speed measurement; and the HGU according to the indication information to data between the HGU and a server The transmission rate is tested, and the data transmission rate obtained by the test is used as the test rate of the current network to which the server belongs; the HGU sends the test rate to the terminal corresponding to the HGU.
  • the receiving, by the home gateway unit HGU, the indication information for performing network speed measurement comprises: receiving, by the HGU, an address of the server.
  • the HGU before the HGU tests the data transmission rate between the HGU and the server according to the indication information, the HGU includes: determining, by the HGU, a mode of the terminal access channel; where the mode is a routing mode.
  • the HGU directly tests the rate of the current network.
  • the mode is the bridge mode
  • the HGU accesses the current network according to the obtained verification information, and accesses the current network. After testing.
  • the receiving, by the home gateway unit HGU, the indication information for performing network speed measurement comprises: receiving, by the HGU, a speed measurement period for instructing the HGU to perform network speed measurement.
  • a method for network speed measurement including: the terminal sends indication information for performing network speed measurement to a home gateway unit HGU; and the terminal receives a test rate sent by the HGU, where The test rate is obtained by testing, by the HGU, a data transmission rate between the HGU and the server according to the indication information.
  • a device for network speed measurement is provided, the device being applied to a home gateway unit HGU, the device comprising: a receiving module configured to receive indication information for performing network speed measurement; a test module, setting The data transmission rate between the HGU and the server is tested according to the indication information, and the data transmission rate obtained by the test is used as a test rate of the current network to which the server belongs; and the sending module is configured to set the test rate. Send to the terminal corresponding to the HGU.
  • the receiving module is further configured to receive an address of the server.
  • the device further includes: a determining module, configured to determine a mode of the terminal access channel; and the testing module is further configured to directly directly rate the current network when the mode is a routing mode The test is performed; in the case that the mode is the bridge mode, the current network is accessed according to the obtained verification information, and the test is performed after accessing the current network.
  • a determining module configured to determine a mode of the terminal access channel
  • the testing module is further configured to directly directly rate the current network when the mode is a routing mode The test is performed; in the case that the mode is the bridge mode, the current network is accessed according to the obtained verification information, and the test is performed after accessing the current network.
  • the receiving module is further configured to receive a speed measurement period for instructing the HGU to perform network speed measurement.
  • a device for network speed measurement is further provided, the device is applied to a terminal, and the device includes: a sending module, configured to send indication information for performing network speed measurement to the home gateway unit HGU;
  • the receiving module is configured to receive a test rate sent by the HGU, where the test rate is obtained by testing, by the HGU, a data transmission rate between the HGU and the server according to the indication information.
  • the home gateway unit HGU receives the indication information for performing network speed measurement; the HGU tests the data transmission rate between the HGU and the server according to the indication information, and uses the tested data transmission rate as the current network to which the server belongs. Test rate; the HGU sends the test rate to the terminal corresponding to the HFU.
  • the problem of detecting the network rate in the related art is solved, thereby providing the ease of use and extensiveness of the network rate test.
  • FIG. 1 is a flow chart of a method for network speed measurement according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of an apparatus for network speed measurement according to an embodiment of the present invention.
  • FIG. 3 is a structural block diagram (1) of an apparatus for network speed measurement according to an embodiment of the present invention.
  • FIG. 4 is a flowchart (1) of a method for network speed measurement according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram (2) of an apparatus for network speed measurement according to an embodiment of the present invention.
  • FIG. 6 is a general architectural diagram of a network speed measurement system according to an embodiment of the present invention.
  • FIG. 7 is a flow chart of network speed measurement interaction according to an embodiment of the present invention.
  • FIG. 8 is a flow chart of interaction between a HGU and a download server in accordance with an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for network speed measurement according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 the home gateway unit HGU receives the indication information for performing network speed measurement
  • Step S104 The HGU tests the data transmission rate between the HGU and the server according to the indication information, and uses the tested data transmission rate as the test rate of the current network to which the server belongs.
  • step S106 the HGU sends the test rate to the terminal corresponding to the HGU.
  • the HGU receives the indication information for performing network speed measurement, tests the rate of the network according to the indication information, specifically tests the data transmission rate between the HGU and the server, and uses the measured data transmission rate as the data transmission rate.
  • the test rate of the current network to which the server belongs solves the problem of the detection method of the network rate in the related technology, thereby providing the ease of use and extensiveness of the network rate test.
  • step S102 involves the home gateway unit HGU receiving the indication information for performing network speed measurement.
  • the indication information may include an address of the HGU receiving server.
  • the HGU can access the server according to the address of the server.
  • the HGU determines the mode of the terminal access channel before the HGU tests the data transmission rate between the HGU and the server according to the indication information.
  • the HGU determines the mode of the terminal access channel before the HGU tests the data transmission rate between the HGU and the server according to the indication information.
  • the HGU determines the mode of the terminal access channel.
  • the mode is a routing mode
  • the HGU directly tests the rate of the current network.
  • the HGU accesses the current network according to the obtained verification information, and performs testing after accessing the current network.
  • the foregoing verification information may be a dialed account and password required for accessing the network.
  • step S102 involves the home gateway unit HGU receiving the indication information for performing the network speed measurement.
  • the indication information may include the speed measurement period for the HGU to receive the network speed measurement by the HGU.
  • a device for measuring the speed of the network is also provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 2 is a structural block diagram of an apparatus for network speed measurement according to an embodiment of the present invention, which is applied to a home gateway unit HGU, as shown in FIG. 2, the device includes: a receiving module 22, configured to receive indication information for performing network speed measurement; and a testing module 24 configured to test the data transmission rate between the HGU and the server according to the indication information And the test data transmission rate is used as the test rate of the current network to which the server belongs; the sending module 26 is configured to send the test rate to the terminal corresponding to the HGU.
  • the receiving module 22 is further configured to receive an address of the server.
  • the device further includes: a determining module 32, configured to determine a mode of the terminal access channel; and the test module 24 is further configured to In the case that the mode is the routing mode, the rate of the current network is directly tested; if the mode is the bridge mode, the current network is accessed according to the obtained verification information, and the test is performed after accessing the current network. .
  • FIG. 4 is a flowchart (1) of a method for network speed measurement according to an embodiment of the present invention. As shown in FIG. 4, the process includes the following steps:
  • Step S402 the terminal sends indication information for performing network speed measurement to the home gateway unit HGU;
  • Step S404 The terminal receives the test rate sent by the HGU, where the test rate is obtained by testing, by the HGU, the data transmission rate between the HGU and the server according to the indication information.
  • the HGU receives the indication information sent by the terminal for performing network speed measurement, tests the rate of the network according to the indication information, specifically tests the data transmission rate between the HGU and the server, and tests the obtained data.
  • the transmission rate is used as the test rate of the current network to which the server belongs, which solves the problem of the detection method of the network rate in the related art, and further provides the ease of use and extensiveness of the network rate test.
  • the receiving module 22 is further configured to receive a speed measurement period for instructing the HGU to perform network speed measurement.
  • FIG. 5 is a structural block diagram (2) of an apparatus for network speed measurement according to an embodiment of the present invention.
  • the apparatus is applied to a terminal.
  • the apparatus includes: a sending module 52, configured to send to the home gateway unit HGU for
  • the receiving module 54 is configured to receive a test rate sent by the HGU, where the test rate is obtained by testing, by the HGU, the data transmission rate between the HGU and the server according to the indication information.
  • the optional embodiment provides a method for connecting a home gateway through a mobile APP to trigger a home gateway to perform network.
  • the speed measurement method can put the speed measurement client on the HGU without using a computer, instead of the PC or mobile phone connected to the HGU, which can detect the current network more simply, conveniently, diversifiedly and truly. rate.
  • the mobile APP connects to the HGU through the TCP protocol packet, triggers the HGU to perform the network speed measurement, and the mobile APP sends the download server address and the speed measurement time used by the network speed measurement to the HGU;
  • the HGU determines the mode of the Internet access channel.
  • the HGU pushes the dialed account number and password page to the mobile APP, after which the mobile APP transmits the account and password to the HGU, and the HGU dials the received account and password, and then proceeds to the next step to perform network speed measurement;
  • the HGU starts the speed downloading process, and connects to the download server for downloading through HTTP or FTP protocol, and the HGU starts the network speed measuring timer;
  • the HGU returns the number of bytes of the downloaded message or the download rate per second to the mobile APP, and reports it once every second until the timer expires;
  • the mobile APP converts the number of bytes returned by the HGU into a download rate per second, and the mobile APP displays the speed measurement result, including the maximum rate and the average rate, and draws a speed rate map.
  • FIG. 6 is a general structural diagram of a network speed measurement system according to an embodiment of the present invention. As shown in FIG. 6, the main equipment involved in the network speed measurement system of the mobile phone APP connecting the HGU is covered, and the three involved in the speed measurement process of the HGU processing network are included. Module.
  • FIG. 7 is a flow chart of network speed measurement interaction according to an embodiment of the present invention. As shown in FIG. 7, the interaction process of the entire process of the mobile phone APP connecting the HGU to the network speed measurement is described, including the basic flow of the inter-system interaction message.
  • FIG. 8 is a flow chart of interaction between a HGU and a download server according to an embodiment of the present invention. As shown in FIG. 8, a flow of interaction between the HGU and the download server is described. The connection between the HGU and the download server, downloading, and connection is described in more detail. the process of. Specifically, the following steps are included:
  • Step S802 the HGU establishes a connection with the server
  • Step S804 the HGU downloads data from the server and starts timing
  • Step S806 it is determined whether the timer time is reached, if the determination result is yes, step S808 is performed; if the determination result is no, step S810 is performed;
  • Step S808 stopping downloading data
  • step S810 the data is continuously downloaded.
  • Mobile APP connects HGU to the overall structure of the network speed measurement system:
  • the mobile phone APP connects to the HGU to carry out the network speed measurement system.
  • the overall architecture diagram includes the mobile phone APP, the HGU and the download server.
  • the module of the HGU network speed measurement includes the local management module (including the functions of the receiving module 22 and the sending module 26) and data.
  • the module including some of the functions of the test module 24 described above
  • the application service module including the functions of the above-described judging module 32 and some of the functions of the test module 24 described above).
  • the mobile APP communicates with the local management module of the HGU through TCP to perform message interaction;
  • the data module of the HGU receives the downloaded data packet, and transmits the number of download packets per second or the download rate to the mobile APP through the local management module;
  • the application service module of HGU completes the functions of channel type detection, communication with the download server, and speed measurement.
  • a) Channel type detection means that after the HGU receives the network speed measurement command of the mobile APP, the application service module detects the current network type of the HGU. If it is the routing mode, the network speed is directly measured; if it is the bridge mode, the HGU pushes the dialed account number and password page to the mobile APP, and the mobile APP transmits the account and password to the HGU, and the HGU dials the received account and password, and then proceeds.
  • Network speed measurement
  • the communication with the download server means that the application service module connects to the download server through HTTP or FTP protocol, and performs data downloading;
  • Speed measurement which means that the application service module calculates the speed measurement time by starting the speed measurement timer
  • the mobile APP connects to the HGU to perform the network speed measurement interaction process:
  • the mobile APP determines whether the HGU is reachable, and if it is reachable, directly accesses the HGU locally;
  • the mobile phone APP interacts with the local management module of the HGU through the TCP mode.
  • the mobile phone APP triggers the network speed measurement function of the HGU by sending the configuration parameters of the network speed measurement.
  • the configuration parameters delivered by the mobile APP include the download server address and the speed measurement used by the network speed measurement. time;
  • the HGU After receiving the speed measurement request sent by the mobile APP, the HGU needs to store the download server address and the speed measurement time to the application service module, and complete the channel type detection through the application service module.
  • the HGU pushes the page of dialing the account number and password to the mobile phone APP.
  • the user inputs the dialing account number and password through the mobile phone APP, and the mobile phone APP transmits the dialing account number and password to the HGU through the TCP message, and the HGU uses the received Dial the account and password to dial the operation, then go to the next step to perform network speed measurement;
  • the application service module of the HGU connects to the download server specified by the server address through HTTP or FTP protocol, and downloads the data. At the same time, the timer for starting the network speed measurement starts to be timed;
  • the HGU transmits the downloaded data to the data module of the HGU.
  • the data module temporarily stores the data received every second in a buffer, and transmits the number of downloaded messages or the download rate to the mobile phone through the local management module every second. APP, then clear the data in the buffer;
  • the application service module of the HGU ends the connection with the download server, and stops the data download;
  • the data module of the HGU stops transmitting the number of downloaded messages or the download rate to the mobile APP, and the local management module of the HGU disconnects from the mobile APP;
  • the mobile APP performs the calculation of the download rate according to the number of bytes of the downloaded message received per second, and displays the calculation result.
  • the result includes the maximum rate and the average rate, and plots the rate of velocity;
  • the application service module of the HGU connects to the download server through HTTP or FTP protocol, and establishes a connection in tone;
  • the application service module of HGU enables the network speed download process. At this time, HGU downloads data from the download server as a client, and starts the timer of the network speed measurement at the same time. In order to achieve better speed measurement effect, HGU's application service module can enable multi-process simultaneous download, simulate the actual operation, and can test the current network rate more realistically and efficiently;
  • the HGU transmits the downloaded data to the data module of the HGU.
  • the data module temporarily stores the data packet received every second in a buffer.
  • the data module does not store the data permanently, but is used to calculate the download message per second.
  • the number of bytes, and the number of downloaded message bytes or download rate per second is transmitted to the mobile phone APP through the local management module, and then the data in the buffer is cleared. This mechanism saves the storage space of the HGU and reduces the running load of the HGU.
  • the advantages The application service module of the HGU determines whether the speed measurement time is reached by continuously reading the timer time, thereby determining whether to continue downloading the data;
  • the HGU continues to download data from the download server and repeats step 3 above; if the timer time reaches the speed measurement time, the application service module of the HGU stops downloading data from the download server. And ending the HTTP or FTP connection with the download server, and the HGU completes the connection process with the download server;
  • the present invention provides a method for connecting a home gateway through a mobile APP to trigger a home gateway to perform network speed measurement.
  • the HGU speed measurement system is compatible with the application of the mobile APP, and the utility model is omitted.
  • the use of PC in the traditional network speed measurement method solves the shortcomings of the traditional two network rate detection methods in terms of ease of use, extensiveness and authenticity of the speed measurement result, and is more innovative and efficient, and also saves equipment maintenance. Cost and time have greatly improved customer satisfaction.
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the method and apparatus for network speed measurement provided by the embodiments of the present invention have the following beneficial effects: the present invention solves the problem of the network rate detection method in the related art, thereby improving the ease of use of the network rate test. And extensive.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明提供了一种网络测速的方法及装置,其中,该方法包括:家庭网关单元HGU接收用于进行网络测速的指示信息;HGU依据指示信息对HGU与服务器之间的数据传输速率进行测试,并将测试得到的数据传输速率作为该服务器所属当前网络的测试速率;HGU将测试速率发送给与HGU对应的终端。通过本发明解决了相关技术中网络速率的检测方式存在的问题,进而提高了网络速率测试的易用性和广泛性。

Description

网络测速的方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种网络测速的方法及装置。
背景技术
随着宽带网络通信技术的迅速发展和终端(例如:手机应用程序APP)的广泛应用,越来越多的用户逐渐使手机来替代电脑进行各种娱乐和工作,手机和宽带网络的结合将会有更广泛的应用前景。而在目前宽带网络使用中,由于网络传输和互通情况复杂,经常导致网络响应超时。一方面客户对服务质量的期望越来越高,一方面传统的检测网络速率的方法有很多不足,一种传统的检测网络速率的方法是通过一台电脑连接到测速网站进行网络测速,这样的网络速率的检测方式在易用性和广泛性方面的有很大的不足;另外一种传统的检测网络速率的方法是手机上APP直接测速,但原理是手机与测速网站之间测速,会存在手机与家庭网关单元(Home Gateway Unit,简称为HGU)之间的网络影响,测速结果会很不理想。最终导致宽带网络客户满意度的下降。因此,如果能够解决在易用性和广泛性存在的不足,将能够很好的提高客户满意度。
针对相关技术中,网络速率的检测方式存在的问题,还未提出有效的解决方案。
发明内容
本发明提供了一种网络测速的方法及装置,以至少解决相关技术中网络速率的检测方式存在的问题。
根据本发明的一个方面,提供了一种网络测速的方法,包括:家庭网关单元HGU接收用于进行网络测速的指示信息;所述HGU依据所述指示信息对所述HGU与服务器之间的数据传输速率进行测试,并将测试得到的数据传输速率作为所述服务器所属当前网络的测试速率;所述HGU将所述测试速率发送给与所述HGU对应的终端。
可选地,家庭网关单元HGU接收用于进行网络测速的指示信息包括:所述HGU接收所述服务器的地址。
可选地,所述HGU依据所述指示信息对所述HGU与服务器之间的数据传输速率进行测试之前包括:所述HGU判断所述终端上网通道的模式;在所述模式为路由模式的情况下,所述HGU直接对所述当前网络的速率进行测试;在所述模式为桥接模式的情况下,所述HGU依据获取的验证信息接入所述当前网络,并在接入所述当前网络后进行测试。
可选地,家庭网关单元HGU接收用于进行网络测速的指示信息包括:所述HGU接收用于指示所述HGU进行网络测速的测速时间段。
根据本发明的另一个方面,还提供了一种网络测速的方法,包括:终端向家庭网关单元HGU发送用于进行网络测速的指示信息;所述终端接收所述HGU发送的测试速率,其中,所述测试速率为所述HGU依据所述指示信息对所述HGU与服务器之间的数据传输速率进行测试得到的。
根据本发明的一个方面,提供了一种网络测速的装置,所述装置应用于家庭网关单元HGU,所述装置包括:接收模块,设置为接收用于进行网络测速的指示信息;测试模块,设置为依据所述指示信息对所述HGU与服务器之间的数据传输速率进行测试,并将测试得到的数据传输速率作为所述服务器所属当前网络的测试速率;发送模块,设置为将所述测试速率发送给与所述HGU对应的终端。
可选地,所述接收模块还设置为接收所述服务器的地址。
可选地,所述装置还包括:判断模块,设置为判断所述终端上网通道的模式;所述测试模块还用于在所述模式为路由模式的情况下,直接对所述当前网络的速率进行测试;在所述模式为桥接模式的情况下,依据获取的验证信息接入所述当前网络,并在接入所述当前网络后进行测试。
可选地,所述接收模块还设置为接收用于指示所述HGU进行网络测速的测速时间段。
根据本发明的另一个方面,还提供了一种网络测速的装置,所述装置应用于终端,所述装置包括:发送模块,设置为向家庭网关单元HGU发送用于进行网络测速的指示信息;接收模块,设置为接收所述HGU发送的测试速率,其中,所述测试速率为所述HGU依据所述指示信息对所述HGU与服务器之间的数据传输速率进行测试得到的。
通过本发明,采用家庭网关单元HGU接收用于进行网络测速的指示信息;HGU依据指示信息对HGU与服务器之间的数据传输速率进行测试,并将测试得到的数据传输速率作为该服务器所属当前网络的测试速率;HGU将测试速率发送给与该HFU对应的终端。解决了相关技术中网络速率的检测方式存在的问题,进而提供了网络速率测试的易用性和广泛性。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的网络测速的方法的流程图;
图2是根据本发明实施例的网络测速的装置的结构框图;
图3是根据本发明实施例的网络测速的装置的结构框图(一);
图4是根据本发明实施例的网络测速的方法的流程图(一);
图5是根据本发明实施例的网络测速的装置的结构框图(二);
图6是根据本发明实施例的网络测速系统总体构架图;
图7是根据本发明实施例的网络测速交互流程图;
图8是根据本发明实施例的HGU与下载服务器交互流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在本实施例中提供了一种网络测速的方法,图1是根据本发明实施例的网络测速的方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,家庭网关单元HGU接收用于进行网络测速的指示信息;
步骤S104,HGU依据指示信息对该HGU与服务器之间的数据传输速率进行测试,并将测试得到的数据传输速率作为该服务器所属当前网络的测试速率;
步骤S106,HGU将测试速率发送给与该HGU对应的终端。
通过上述步骤,HGU接收用于进行网络测速的指示信息,根据指示信息对网络的速率进行测试,具体的将该HGU与服务器之间的数据传输速率进行测试,并将测试得到的数据传输速率作为该服务器所属当前网络的测试速率,解决了相关技术中网络速率的检测方式存在的问题,进而提供了网络速率测试的易用性和广泛性。
上述步骤S102涉及家庭网关单元HGU接收用于进行网络测速的指示信息,在一个可选实施例中,上述指示信息可以包括HGU接收服务器的地址。进而HGU可以根据该服务器的地址接入该服务器。
在一个可选实施例中,HGU依据指示信息对该HGU与服务器之间的数据传输速率进行测试之前,HGU判断终端上网通道的模式。在另一个可选实施例中,在该模式为路由模式的情况下,HGU直接对该当前网络的速率进行测试。在再一个可选实施例中,在该模式为桥接模式的情况下,HGU依据获取的验证信息接入该当前网络,并在接入该当前网络后进行测试。其中,上述的验证信息可以是接入网络需要的拨号的账号和密码。
上述步骤S102涉及家庭网关单元HGU接收用于进行网络测速的指示信息,在一个可选实施例中,上述指示信息可以包括HGU接收用于指示该HGU进行网络测速的测速时间段。
在本实施例中还提供了一种网络测速的装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是根据本发明实施例的网络测速的装置的结构框图,该装置应用于家庭网关单元 HGU,如图2所示,该装置包括:接收模块22,设置为接收用于进行网络测速的指示信息;测试模块24,设置为依据指示信息对该HGU与服务器之间的数据传输速率进行测试,并将测试得到的数据传输速率作为该服务器所属当前网络的测试速率;发送模块26,设置为将测试速率发送给与HGU对应的终端。
可选地,接收模块22还设置为接收上述服务器的地址。
图3是根据本发明实施例的网络测速的装置的结构框图(一),如图3所示,该装置还包括:判断模块32,设置为判断终端上网通道的模式;测试模块24还设置为在该模式为路由模式的情况下,直接对当前网络的速率进行测试;在该模式为桥接模式的情况下,依据获取的验证信息接入该当前网络,并在接入该当前网络后进行测试。
在另一个实施例中还提供了另一种网络测速的方法,图4是根据本发明实施例的网络测速的方法的流程图(一),如图4所示,该流程包括如下步骤:
步骤S402,终端向家庭网关单元HGU发送用于进行网络测速的指示信息;
步骤S404,终端接收HGU发送的测试速率,其中,该测试速率为HGU依据指示信息对该HGU与服务器之间的数据传输速率进行测试得到的。
通过上述步骤,HGU接收终端发送的用于进行网络测速的指示信息,根据指示信息对网络的速率进行测试,具体的将该HGU与服务器之间的数据传输速率进行测试,并将测试得到的数据传输速率作为该服务器所属当前网络的测试速率,解决了相关技术中网络速率的检测方式存在的问题,进而提供了网络速率测试的易用性和广泛性。
可选地,接收模块22还设置为接收用于指示所述HGU进行网络测速的测速时间段。
图5是根据本发明实施例的网络测速的装置的结构框图(二),该装置应用于终端,如图5所示,该装置包括:发送模块52,设置为向家庭网关单元HGU发送用于进行网络测速的指示信息;接收模块54,设置为接收HGU发送的测试速率,其中,该测试速率为HGU依据指示信息对该HGU与服务器之间的数据传输速率进行测试得到的。
针对相关技术中存在的上述问题,下面结合具体的可选实施例进行说明,在下述的可选实施例中结合了上述可选实施例及其可选实施方式。
针对传统的两种网络速率的检测方式在易用性、广泛性和测速结果的真实性等方面存在的问题,本可选实施例提供了一种通过手机APP连接家庭网关,触发家庭网关进行网络测速的方法,在不需要使用电脑的情况下,把测速的客户端放在HGU上,而不是HGU下挂的PC或者手机上,能够更加简单、方便、多样化和真实的检测出当前的网络速率。
本可选实施例提供的一种手机APP连接家庭网关进行网络测速的实现方法包括以下步骤:
1、手机APP通过TCP协议报文连接HGU,触发HGU进行网络测速,手机APP向HGU发送网络测速使用的下载服务器地址和测速时间;
2、HGU收到手机APP的网络测速指令后,HGU判断上网通道的模式。
1)如果是路由模式,直接进入下一步,进行网络测速;
2)如果是桥接模式,HGU给手机APP推送拨号的帐号和密码页面,之后手机APP将帐号和密码传输给HGU,HGU使用收到的帐号和密码进行拨号,之后进入下一步,进行网络测速;
3、HGU启动测速下载进程,通过HTTP或者FTP协议来连接下载服务器进行下载, 同时HGU启动网络测速定时器;
4、HGU将每秒的下载报文字节数或者下载速率返回给手机APP,每秒上报一次,直到达到定时器的时间;
5、手机APP将HGU返回的报文字节数换算成每秒的下载速率,手机APP上显示测速结果,包括最大速率和平均速率,并且绘制测速速率图。
图6是根据本发明实施例的网络测速系统总体构架图,如图6所示,涵盖了手机APP连接HGU进行网络测速系统所涉及的主要设备,及HGU处理网络测速过程中所涉及的三个模块。
图7是根据本发明实施例的网络测速交互流程图,如图7所示,描述了手机APP连接HGU进行网络测速的整个过程的交互流程,包括系统间交互消息的基本流程。
图8是根据本发明实施例的HGU与下载服务器交互流程图,如图8所示,描述HGU与下载服务器之间进行交互的流程,更加详细的描述了HGU与下载服务器连接、下载和连接结束的过程。具体包括如下步骤:
步骤S802,HGU与服务器建立连接;
步骤S804,HGU从服务器下载数据,并开始计时;
步骤S806,判断是否到定时器时间,在判断结果为是的情况下,执行步骤S808;在判断结果为否的情况下,执行步骤S810;
步骤S808,停止下载数据;
步骤S810,继续下载数据。
手机APP连接HGU进行网络测速系统总体构架:
手机APP连接HGU进行网络测速系统总体构架图包括手机APP、HGU和下载服务器三部分组成,而HGU涉及网络测速的模块包含本地管理模块(包含了上述接收模块22和发送模块26的功能)、数据模块(包含了上述测试模块24的部分功能)和应用服务模块(包含了上述判断模块32的功能和上述测试模块24的部分功能)。
1、手机APP通过TCP方式与HGU的本地管理模块通讯,进行消息的交互;
2、HGU的数据模块接收下载的数据包,并将每秒的下载报文字节数或者下载速率通过本地管理模块传给手机APP;
3、HGU的应用服务模块完成通道类型的检测、与下载服务器的通信和测速计时等功能。
a)通道类型的检测,是指HGU收到手机APP的网络测速命令后,应用服务模块检测HGU当前的网络类型。如果是路由模式,直接进行网络测速;如果是桥接模式,HGU给手机APP推送拨号的帐号和密码页面,手机APP将帐号和密码传输给HGU,HGU使用收到的帐号和密码进行拨号,之后进行网络测速;
b)与下载服务器的通讯,是指应用服务模块通过HTTP或者FTP协议连接下载服务器,并进行数据下载;
c)测速计时,是指应用服务模块通过启动测速定时器来计算测速时间;
手机APP连接HGU进行网络测速交互流程:
1、手机APP判断HGU是否可达,如果可达,直接本地访问HGU;
2、手机APP通过TCP方式和HGU的本地管理模块进行交互,手机APP通过发送网络测速的配置参数,触发HGU的网络测速功能,手机APP下发的配置参数包括网络测速使用的下载服务器地址和测速时间;
3、HGU收到手机APP发送的测速请求后,需要存储下载服务器地址和测速时间到应用服务模块,并且通过应用服务模块来完成通道类型的检测。
a)如果通道是路由模式,直接进入下一步,进行网络测速;
b)如果通道是桥接模式,HGU向手机APP推送拨号帐号和密码的页面,用户通过手机APP输入拨号帐号和密码,手机APP将拨号帐号和密码通过TCP报文传送给HGU,HGU使用收到的拨号帐号和密码进行拨号操作,然后进入下一步,进行网络测速;
4、HGU的应用服务模块通过HTTP或者FTP协议连接下载服务器地址所指定的下载服务器,并进行数据下载。同时启动网络测速的定时器开始计时;
5、HGU将下载的数据传给HGU的数据模块,数据模块将每秒收到的数据临时存放在一个buffer内,并且每秒将下载报文字节数或者下载速率通过本地管理模块传输给手机APP,然后清除掉buffer内的数据;
6、当定时器时间达到设定的测速时间,HGU的应用服务模块结束与下载服务器的连接,停止数据下载;
7、HGU的数据模块停止向手机APP传输下载报文字节数或者下载速率,HGU的本地管理模块断开与手机APP的连接;
8、手机APP根据每秒收到的下载报文字节数进行下载速率的计算,并将计算结果显示出 来,结果中包括最大速率和平均速率,并且绘制测速速率图;
HGU与下载服务器交互流程:
1、HGU的应用服务模块通过HTTP或者FTP协议连接下载服务器,并语气建立连接;
2、HGU的应用服务模块启用网络测速下载进程,HGU这时作为一个客户端从下载服务器下载数据,同时启动网络测速的定时器进行计时。为了达到更优的测速效果,HGU的应用服务模块可以启用多进程同时进行下载,模拟实际使用中的操作情况,可以更真实和高效的测试出当前的网络速率;
3、HGU将下载的数据传输给HGU的数据模块,数据模块将每秒收到的数据包临时存放在一个buffer内,数据模块并不对数据进行永久存储,只是用于计算每秒的下载报文字节数,并且每秒将下载报文字节数或者下载速率通过本地管理模块传输给手机APP,然后清除掉buffer内的数据,这样的机制具有节省HGU的存储空间和减小HGU的运行负担的优点。HGU的应用服务模块通过不断的读取定时器的时间来判断是否达到测速时间,从而确定是否继续进行数据的下载;
4、如果定时器时间未达到测速时间,HGU继续从下载服务器上进行数据的下载,并重复执行上述步骤3;如果定时器时间达到测速时间时,HGU的应用服务模块停止从下载服务器上下载数据,并且结束与下载服务器的HTTP或者FTP的连接,HGU完成与下载服务器的连接过程;
综上所述,本发明提供了一种通过手机APP连接家庭网关,触发家庭网关进行网络测速的方法,与传统网络测速方法相比,通过HGU的测速系统来兼容手机APP的应用,省去了传统网络测速方法中PC的使用,解决了传统的两种网络速率的检测方式在易用性、广泛性和测速结果的真实性等方面存在的不足,更加创新和高效,也节省了设备的维护成本和时间,大大提高了客户满意度。
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员 来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
如上所述,本发明实施例提供的一种网络测速的方法及装置具有以下有益效果:通过本发明解决了相关技术中网络速率的检测方式存在的问题,进而提高了网络速率测试的易用性和广泛性。

Claims (10)

  1. 一种网络测速的方法,包括:
    家庭网关单元HGU接收用于进行网络测速的指示信息;
    所述HGU依据所述指示信息对所述HGU与服务器之间的数据传输速率进行测试,并将测试得到的数据传输速率作为所述服务器所属当前网络的测试速率;
    所述HGU将所述测试速率发送给与所述HGU对应的终端。
  2. 根据权利要求1所述的方法,其中,家庭网关单元HGU接收用于进行网络测速的指示信息包括:
    所述HGU接收所述服务器的地址。
  3. 根据权利要求1所述的方法,其中,所述HGU依据所述指示信息对所述HGU与服务器之间的数据传输速率进行测试之前包括:
    所述HGU判断所述终端上网通道的模式;
    在所述模式为路由模式的情况下,所述HGU直接对所述当前网络的速率进行测试;在所述模式为桥接模式的情况下,所述HGU依据获取的验证信息接入所述当前网络,并在接入所述当前网络后进行测试。
  4. 根据权利要求1至3中任一项所述的方法,其中,家庭网关单元HGU接收用于进行网络测速的指示信息包括:
    所述HGU接收用于指示所述HGU进行网络测速的测速时间段。
  5. 一种网络测速的方法,包括:
    终端向家庭网关单元HGU发送用于进行网络测速的指示信息;
    所述终端接收所述HGU发送的测试速率,其中,所述测试速率为所述HGU依据所述指示信息对所述HGU与服务器之间的数据传输速率进行测试得到的。
  6. 一种网络测速的装置,所述装置应用于家庭网关单元HGU,所述装置包括:
    接收模块,设置为接收用于进行网络测速的指示信息;
    测试模块,设置为依据所述指示信息对所述HGU与服务器之间的数据传输速率进行测试,并将测试得到的数据传输速率作为所述服务器所属当前网络的测试速率;
    发送模块,设置为将所述测试速率发送给与所述HGU对应的终端。
  7. 根据权利要求6所述的装置,其中,所述接收模块还设置为接收所述服务器的地址。
  8. 根据权利要求6所述的装置,其中,所述装置还包括:判断模块,设置为判断所述终端上网通道的模式;
    所述测试模块还设置为在所述模式为路由模式的情况下,直接对所述当前网络的速率进行测试;在所述模式为桥接模式的情况下,依据获取的验证信息接入所述当前网络,并在接入所述当前网络后进行测试。
  9. 根据权利要求6至8中任一项所述的装置,其中,所述接收模块还设置为接收用于指示所述HGU进行网络测速的测速时间段。
  10. 一种网络测速的装置,所述装置应用于终端,所述装置包括:
    发送模块,设置为向家庭网关单元HGU发送用于进行网络测速的指示信息;
    接收模块,设置为接收所述HGU发送的测试速率,其中,所述测试速率为所述HGU依据所述指示信息对所述HGU与服务器之间的数据传输速率进行测试得到的。
PCT/CN2016/076090 2015-05-22 2016-03-10 网络测速的方法及装置 WO2016188189A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510268677.8A CN106301977A (zh) 2015-05-22 2015-05-22 网络测速的方法及装置
CN201510268677.8 2015-05-22

Publications (1)

Publication Number Publication Date
WO2016188189A1 true WO2016188189A1 (zh) 2016-12-01

Family

ID=57392594

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076090 WO2016188189A1 (zh) 2015-05-22 2016-03-10 网络测速的方法及装置

Country Status (2)

Country Link
CN (1) CN106301977A (zh)
WO (1) WO2016188189A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245668A (zh) * 2018-12-28 2020-06-05 中国信息通信研究院 一种宽带网络速率测试方法和系统
CN112910730A (zh) * 2021-01-28 2021-06-04 千居智人工智能科技昆山有限公司 一种通信网络实时预警监测系统及其监测方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107046694A (zh) * 2017-01-22 2017-08-15 广州成上计算机技术有限公司 一种wifi测速方法及其系统
CN111294670A (zh) * 2020-01-20 2020-06-16 中天通信技术有限公司 一种光网络终端设备的测速方法、装置、设备及介质
CN112671606B (zh) * 2020-12-16 2022-11-25 深圳创维数字技术有限公司 一种网络测速方法和装置、系统、存储介质及网关设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868566A (zh) * 2011-07-05 2013-01-09 彭俊 网络设备远端测速的方法
CN103107910A (zh) * 2011-11-10 2013-05-15 中国电信股份有限公司 宽带测速方法、系统及宽带接入终端
JP2013121012A (ja) * 2011-12-06 2013-06-17 Nippon Telegr & Teleph Corp <Ntt> ユーザ品質状態監視システム及び方法
CN103532774A (zh) * 2013-01-24 2014-01-22 成都网丁科技有限公司 一种智能测速客户端及其智能测速方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868566A (zh) * 2011-07-05 2013-01-09 彭俊 网络设备远端测速的方法
CN103107910A (zh) * 2011-11-10 2013-05-15 中国电信股份有限公司 宽带测速方法、系统及宽带接入终端
JP2013121012A (ja) * 2011-12-06 2013-06-17 Nippon Telegr & Teleph Corp <Ntt> ユーザ品質状態監視システム及び方法
CN103532774A (zh) * 2013-01-24 2014-01-22 成都网丁科技有限公司 一种智能测速客户端及其智能测速方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245668A (zh) * 2018-12-28 2020-06-05 中国信息通信研究院 一种宽带网络速率测试方法和系统
CN111245668B (zh) * 2018-12-28 2020-11-06 中国信息通信研究院 一种宽带网络速率测试方法和系统
CN112910730A (zh) * 2021-01-28 2021-06-04 千居智人工智能科技昆山有限公司 一种通信网络实时预警监测系统及其监测方法
CN112910730B (zh) * 2021-01-28 2022-08-26 小帆科技(广东)有限公司 一种通信网络实时预警监测系统及其监测方法

Also Published As

Publication number Publication date
CN106301977A (zh) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2016188189A1 (zh) 网络测速的方法及装置
Goel et al. Survey of end-to-end mobile network measurement testbeds, tools, and services
EP1316187B1 (en) Method and system for testing a contents server
CN104780004B (zh) 一种家庭网关的带宽测速系统及方法
CN100466551C (zh) 一种实现负载均衡的方法和一种负载均衡设备
CN105898790B (zh) 一种网速测量方法及设备
CN101005411B (zh) 电路型数据业务自动化测试系统、装置及方法
US11996999B2 (en) System and method for testing and/or monitoring broadband internet connectivity
WO2017201961A1 (zh) 识别wifi类型的方法和装置
CN104079571A (zh) 一种识别Android模拟器的方法及装置
CN105634849A (zh) 一种数据流量统付业务的拨测方法及装置
CN110336713B (zh) 一种检测蜂窝物联网端到端时延和速率的方法及终端设备
CN206313803U (zh) 一种用于实现网游加速的路由器
CN110169134A (zh) 无线质量支持视频体验的检测方法及装置
WO2011009339A1 (zh) 一种数据传输的方法、系统和装置
CN114071544A (zh) 网络测试方法、装置和电子设备
CA2672224C (en) Application specific, network performance measurement system and method for applications
JP5625940B2 (ja) 監視プログラム、監視装置、及び監視方法
JP5913562B2 (ja) モバイルネットワークのトラフィックを測定する方法および装置
CN105610937A (zh) 获取访客和接入设备信息的系统及方法
Sieczkowski et al. A method for real-time data acquisition using Matlab software
CN109146617A (zh) 一种业务审批方法、服务器、客户端及存储介质
KR101999619B1 (ko) 무선 인터넷 접속 공유 서비스 시스템 및 그 공유 서비스 방법
WO2023202037A1 (zh) 业务测试方法、装置及相关设备
WO2023169261A1 (zh) 一种数据上传方法、装置、设备和介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16799078

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16799078

Country of ref document: EP

Kind code of ref document: A1