CN112073267A - Bandwidth measuring method and device, gateway equipment and gateway system - Google Patents

Bandwidth measuring method and device, gateway equipment and gateway system Download PDF

Info

Publication number
CN112073267A
CN112073267A CN202010921556.XA CN202010921556A CN112073267A CN 112073267 A CN112073267 A CN 112073267A CN 202010921556 A CN202010921556 A CN 202010921556A CN 112073267 A CN112073267 A CN 112073267A
Authority
CN
China
Prior art keywords
gateway
measurement
measured
results
bandwidth
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.)
Pending
Application number
CN202010921556.XA
Other languages
Chinese (zh)
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 CN202010921556.XA priority Critical patent/CN112073267A/en
Publication of CN112073267A publication Critical patent/CN112073267A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention provides a bandwidth measuring method, a bandwidth measuring device, gateway equipment and a gateway system. The method comprises the following steps: the control gateway controls the measured gateway to establish communication connection with the measurement gateway so as to enable the measured gateway to execute a preset script; wherein the preset script is used for: controlling the measured gateway to download each test file from the test file set stored in the measurement gateway respectively to obtain a plurality of corresponding download results; the measured gateway uploads the downloaded test files to the measurement gateway respectively to obtain a plurality of corresponding uploading results; sending the plurality of downloading results and the plurality of uploading results to the control gateway; and the control gateway determines a bandwidth measurement result according to the plurality of downloading results and the plurality of uploading results. The invention realizes the automatic measurement of the bandwidth between the hosts, improves the bandwidth measurement efficiency and obviously reduces the workload of maintenance personnel.

Description

Bandwidth measuring method and device, gateway equipment and gateway system
Technical Field
The present application relates to the field of computer networks, and in particular, to a method and an apparatus for bandwidth measurement, a gateway device, and a gateway system.
Background
With the development of the internet, the requirements of users on network performance are higher and higher, and the network transmission capability directly affects the network performance and user experience.
In the prior art, bandwidth measurement software is usually used to measure the bandwidth between hosts, an operator needs to have the user authority of each host to be measured to perform software deployment, and respectively start a client and a server on different hosts, and finally connect the client and the server to complete bandwidth measurement, and the bandwidth measurement result is printed on the screen of each host or stored in a local hard disk.
However, when the number of hosts to measure the bandwidth increases, the workload of the operator is multiplied, and the efficiency and convenience of bandwidth measurement are low.
Disclosure of Invention
The embodiment of the invention provides a bandwidth measuring method, a device, gateway equipment and a gateway system, which realize the automatic measurement of the bandwidth between hosts, thereby improving the bandwidth measuring efficiency.
In a first aspect, an embodiment of the present invention provides a bandwidth measurement method, including:
the control gateway controls the measured gateway to establish communication connection with the measurement gateway so as to enable the measured gateway to execute a preset script;
wherein the preset script is used for: controlling the measured gateway to download each test file from the test file set stored in the measurement gateway respectively to obtain a plurality of corresponding download results; the measured gateway uploads the downloaded test files to the measurement gateway respectively to obtain a plurality of corresponding uploading results; sending the plurality of downloading results and the plurality of uploading results to the control gateway;
and the control gateway determines a bandwidth measurement result according to the plurality of downloading results and the plurality of uploading results.
In an optional embodiment, before controlling the measured gateway to execute the preset script, the controlling gateway is further configured to:
judging whether a test file set is stored in the measurement gateway or not;
and if not, sending a pre-stored test file set to the measurement gateway.
In an optional embodiment, the preset script is further configured to:
and controlling the measured gateway to perform pretesting.
Further, the controlling is performed by the measured gateway to perform a pretest, including:
controlling the measured gateway to download the pretest file from the measurement gateway and obtaining a download pretest result;
controlling the measured gateway to upload the pretest file to the measurement gateway and obtaining an upload pretest result;
the pre-test files are pre-stored in the test file set and accord with preset file configuration, and the downloaded pre-test results and the uploaded pre-test results are used for obtaining a plurality of test files used in testing through screening from the test file set.
In an optional embodiment, the determining, by the control gateway, a bandwidth measurement result according to the multiple download results and the multiple upload results includes:
determining a maximum download rate from the plurality of download results, determining a maximum upload rate from the plurality of upload results, the maximum download rate and the maximum upload rate forming a bandwidth measurement result.
In an optional embodiment, the bandwidth measurement method further includes:
and the control gateway controls the measured gateway to disconnect the communication connection with the measurement gateway and resets the measured gateway.
In an optional embodiment, the controlling gateway controls the measured gateway to establish a communication connection with the measurement gateway, including:
the control gateway respectively determines the communication protocols of the measured gateway and the measurement gateway and obtains at least one shared communication protocol of the measured gateway and the measurement gateway;
and controlling the measured gateway and the measuring gateway to select a shared communication protocol with the highest priority from the at least one shared communication protocol to establish communication connection according to the preset communication protocol priority.
In an optional embodiment, the control gateway and the measurement gateway are integrated in the same device;
alternatively, the control gateway and the measurement gateway are integrated in different devices.
In a second aspect, the present invention provides a measured gateway, comprising: the processor is used for receiving a communication connection establishment instruction and establishing communication connection with the measurement gateway according to the communication connection establishment instruction;
executing a preset script according to the received script instruction;
wherein the preset script is used for: respectively downloading each test file from a test file set stored in a measurement gateway to obtain a plurality of corresponding downloading results; uploading the downloaded test files to the measurement gateway respectively to obtain a plurality of corresponding uploading results; and sending the plurality of downloading results and the plurality of uploading results to a control gateway so that the control gateway can determine a bandwidth measuring result according to the plurality of downloading results and the plurality of uploading results.
In a third aspect, an embodiment of the present invention provides a measurement gateway, including: a memory and a processor, the processor to:
receiving a communication connection establishment request initiated by a measured gateway, and establishing communication connection with the measured gateway;
respectively sending each stored test file to a measured gateway so that the measured gateway can obtain a plurality of corresponding downloading results; the gateway is also used for receiving each test file uploaded by the measured gateway so that the measured gateway can obtain a plurality of corresponding uploading results; the plurality of download results and the plurality of upload results are used to determine a bandwidth measurement result.
In a fourth aspect, an embodiment of the present invention provides a control gateway, including: a memory and a processor for
Controlling a measured gateway to establish communication connection with a measurement gateway so that the measured gateway executes a preset script;
wherein the preset script is used for: controlling the measured gateway to download each test file from the test file set stored in the measurement gateway respectively to obtain a plurality of corresponding download results; the measured gateway uploads the downloaded test files to the measurement gateway respectively to obtain a plurality of corresponding uploading results; sending the plurality of downloading results and the plurality of uploading results to the control gateway;
and determining a bandwidth measurement result according to the plurality of downloading results and the plurality of uploading results.
In a fifth aspect, an embodiment of the present invention provides a gateway device, including the measured gateway described in the second aspect.
In a sixth aspect, an embodiment of the present invention provides a gateway device, including the measurement gateway in the third aspect.
In a seventh aspect, an embodiment of the present invention provides a gateway device, including the control gateway in the fourth aspect.
In an eighth aspect, an embodiment of the present invention provides a gateway device, which includes the control gateway described in the fourth aspect and the measurement gateway described in the third aspect.
In a ninth aspect, an embodiment of the present invention provides a gateway system, which includes the gateway device in the fifth aspect, the sixth aspect, and the seventh aspect.
In a tenth aspect, an embodiment of the present invention provides a gateway system, including the gateway device in the fifth aspect and the eighth aspect.
The embodiment of the invention provides a bandwidth measuring method, a measured gateway, a measuring gateway, a control gateway, gateway equipment and a gateway system. According to the scheme provided by the invention, the communication connection between the measured gateway and the measurement gateway is controlled by the control gateway, the test file set is uploaded and downloaded, the uploading rate and the downloading rate are respectively calculated, and then the uploading bandwidth and the downloading bandwidth are obtained.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of a network architecture upon which the present disclosure is based;
fig. 2 is a flowchart of bandwidth measurement data interaction provided by the present disclosure;
fig. 3 is a flowchart of a bandwidth measurement method provided by an embodiment of the present disclosure;
fig. 4 is a flowchart of another bandwidth measurement method provided by the embodiment of the present disclosure;
fig. 5 is a flowchart of another bandwidth measurement method provided by an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a measured gateway according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a gateway system according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of another gateway system provided in the embodiment of the present disclosure.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of systems and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the internet era, the frequency of using the network by the user is higher and higher, the performance of the network directly affects the use experience of the user, and a large part of the performance of the network is determined by the network bandwidth, wherein the network bandwidth refers to the amount of data that can be transmitted in a unit time (generally, 1 second), and therefore the network bandwidth needs to be measured to monitor the network quality.
In practice, data transmission between user hosts through a network is an important way for a user to use the network, for example, when the user performs data backup from one host to another host in different places, the backup consumes a lot of time and even fails due to the small bandwidth between the hosts. In the network maintenance process, maintenance personnel need to measure the bandwidth to ensure that the transmission capability of the network can meet the requirements of users. In the prior art, maintenance personnel need to deploy bandwidth measurement software on hosts to be measured for measurement and gather bandwidth measurement results on the hosts, so that the workload of the maintenance personnel is large, the measurement efficiency is extremely low, and especially when the number of hosts needing to measure bandwidth is increased, the workload of the maintenance personnel is multiplied.
In view of these problems, the inventor has found that a host can be set in a network environment as a control center, software and files required for measuring bandwidth are all deployed on the host, after deployment is completed, bandwidth between the host and other hosts can be measured, bandwidth between other hosts can also be measured through the host, and it is not necessary for maintenance personnel to deploy bandwidth testing software on each host to be tested, thereby reducing workload of maintenance personnel. The bandwidth test method adopts a file transmission method, and calculates the transmission rate of the file according to the transmission time of the test file between the hosts to be tested and the size of the test file, namely the transmission rate can be approximate to the network bandwidth. In addition, the automation of the measurement process is realized in a preset script control mode, manual operation of maintenance personnel is not needed, and the bandwidth measurement efficiency is further improved. According to the scheme of the invention, the automatic bandwidth measurement is carried out by presetting the script and the control host, so that the working efficiency of maintenance personnel is greatly reduced, and the efficiency of bandwidth measurement is improved.
Fig. 1 is a schematic diagram of a network architecture based on the present disclosure, and as shown in fig. 1, the network architecture includes 4 regions, which are region a, region B, region C, and region D, respectively, and 12 hosts disposed in the 4 regions, which are host a1, host a2, host A3, host B1, host B2, host B3, host C1, host C2, host C3, host D1, host D2, and host D3, respectively.
It should be noted that the Area is a logical concept, and may be a geographic Area, such as a building, a floor, a machine room, and the like, or a physical networking structure, such as a different Network segment, a Virtual Local Area Network (VLAN), and the like. Physical direct connection is not required between areas or between hosts, and only network access is required, and specific connection modes are not limited.
Specifically, any one of the 12 hosts is set as a control host, software and files required for measuring bandwidth are deployed on the control host, the bandwidth between the host and any other host can be measured, and the bandwidth between any other host and any other host can also be measured through the host.
For example, fig. 2 is a bandwidth measurement data interaction flowchart provided by the present disclosure, where a host a1 is a control host, software and files required for measuring a bandwidth are deployed on a host a1, when a network bandwidth between a host B1 and a host C1 is measured through a host a1, if a FTP server is started by a host B1, the host C1 is remotely controlled through a host a1, and logs in the FTP server of the host B1 through an FTP client of the host C1, the host a1 sends a pre-stored test file set to the host B1, the host C1 downloads and uploads a test file in a host B1, obtains a download result and an upload result, and sends the download result and the upload result to the host a1, and the host a1 determines a bandwidth measurement result according to the received download result and upload result.
It should be noted that the above-mentioned number of zones and number of hosts are only an exemplary description, and are not limited herein, as long as the hosts or inter-zone networks are accessible.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 3 is a flowchart of a bandwidth measurement method provided in an embodiment of the present disclosure, and as shown in fig. 3, the method of this embodiment may include:
s21, the control gateway controls the measured gateway to establish communication connection with the measurement gateway so as to enable the measured gateway to execute the preset script;
in this embodiment, the control gateway remotely logs in the measurement gateway and is connected to the data transmission server of the measured gateway through the data transmission client of the measurement gateway, where the data transmission client of the measurement gateway and the data transmission server of the measured gateway need to share the same transmission protocol, so that data transmission can be performed between the measured gateway and the measurement gateway.
For example, the control gateway a logs in the measurement gateway B through the remote connection software, and logs in the FTP server of the measurement gateway C through the FTP client of the measurement gateway B, where FTP is a set of standard protocols for file transfer over the network, allowing a user to communicate with another host in a file operation manner (such as addition, deletion, modification, check, transfer, etc. of files). After logging in the FTP server of the measured gateway C, the measurement gateway B can perform file transfer with the measured gateway C.
It should be noted that the control gateway and the measurement gateway are integrated in the same device; alternatively, the control gateway and the measurement gateway are integrated in different devices.
In one possible embodiment, the controlling gateway controls the measured gateway to establish a communication connection with the measuring gateway, and includes:
the control gateway respectively determines the communication protocols of the measured gateway and the measurement gateway and obtains at least one shared communication protocol of the measured gateway and the measurement gateway;
specifically, the communication protocol may be one or more of FTP, SFTP, SCP, HTTP/HTTPs and TCP, and only under the condition that the communication protocols of the measured gateway and the measurement gateway are the same, the file transmission can be performed, so as to measure the bandwidth between the measured gateway and the measurement gateway.
For example, the communication protocols of the measurement gateway B are FTP and SFTP, the communication protocols of the measured gateway C are SFTP and SCP, and SFTP is a common communication protocol for the measurement gateway B and the measured gateway C, and file transfer is performed by SFTP.
And controlling the measured gateway and the measuring gateway to select a shared communication protocol with the highest priority from the at least one shared communication protocol to establish communication connection according to the preset communication protocol priority.
Specifically, the priority of the transmission protocol in the scheme sequentially from left to right is as follows: FTP, SFTP, SCP, HTTP/HTTPS and TCP, when there are several communication protocols shared by the measured gateway and the measuring gateway, the highest priority in the communication protocols is selected to establish the communication connection.
For example, the communication protocol of the measurement gateway B is FTP, SFTP and SCP, the communication protocol of the measurement gateway C is also FTP, SFTP and SCP, and because the FTP priority is the highest, FTP is selected to establish the communication connection.
S22, the preset script is used for: controlling the measured gateway to download each test file from the test file set stored in the measurement gateway respectively to obtain a plurality of corresponding download results; the measured gateway uploads the downloaded test files to the measurement gateway respectively to obtain a plurality of corresponding uploading results; sending the plurality of downloading results and the plurality of uploading results to the control gateway;
in this embodiment, the test file set includes a plurality of test files with different sizes, and the test files can be used in their entirety or in part, and are selected according to actual situations. The downloading result is determined according to the size of each downloaded test file and the downloading time corresponding to each test file, the downloading result is obtained by dividing the size of each downloaded test file and the downloading time corresponding to each test file, and the uploading result is the same.
For example, the test file set comprises test files with different sizes such as 0.5MB, 1MB, 5MB, 20MB, 50MB, 500MB and the like, the test files of 20MB and 50MB are selected for testing, the measured gateway downloads the test files of 20MB and 50MB from the measurement gateway, the downloading time is 2s and 6s respectively, and the downloading results are 10MB/s and 8.3 MB/s; and the measured gateway uploads the downloaded 20MB and 50MB test files to the measurement gateway respectively, the uploading time is 3s and 8s respectively, and the uploading results are 6.7MB/s and 6.3 MB/s.
However, the measurement gateway may not store the test file set, and needs to obtain the test file set from other locations, and in a possible implementation, the control gateway is further configured to:
judging whether a test file set is stored in the measurement gateway or not;
and if not, sending a pre-stored test file set to the measurement gateway.
Specifically, the control gateway has generated a test file set when deploying the bandwidth measurement software, and the test file set is stored in a default location of the control gateway, and the default location can be set by a user for use in bandwidth testing. In the test process, a part of the measurement gateways already receive the test file set sent by the control gateway, and a part of the measurement gateways do not receive the test file set sent by the control gateway, so that whether the test file set is stored in the measurement gateway or not is judged to avoid repeated sending.
And S23, the control gateway determines a bandwidth measurement result according to the plurality of downloading results and the plurality of uploading results.
In one possible embodiment, the determining, by the control gateway, a bandwidth measurement result according to the plurality of download results and the plurality of upload results includes:
determining a maximum download rate from the plurality of download results, determining a maximum upload rate from the plurality of upload results, the maximum download rate and the maximum upload rate forming a bandwidth measurement result.
For example, the download results are 10MB/s and 8.3MB/s, the upload results are 6.7MB/s and 6.3MB/s, the maximum download rate is determined to be 10MB/s and the maximum upload rate is determined to be 6.7MB/s, and the bandwidth measurement results are the maximum download rate is 10MB/s and the maximum upload rate is determined to be 6.7 MB/s.
According to the scheme provided by the embodiment of the disclosure, the control gateway controls the measured gateway and the measurement gateway to establish communication connection, the test file set is uploaded and downloaded, the maximum uploading rate and the maximum downloading rate are respectively obtained, and then the uploading bandwidth and the downloading bandwidth are obtained, so that the automatic measurement of the bandwidth between hosts is realized, and the bandwidth measurement efficiency is improved.
In an alternative embodiment, on the basis of the above-mentioned embodiment of fig. 3, fig. 4 is a flowchart of another bandwidth measurement method provided by the embodiment of the present disclosure, as shown in fig. 4, on the basis of fig. 3, the preset script is further configured to:
and S24, controlling the measured gateway to execute pretest.
Different from the foregoing embodiment, in the present embodiment, since the bandwidth test needs to download and upload a plurality of test files with different sizes of the test file set, and the size of each test file does not meet the test requirement, a lot of invalid test data may be generated, and in order to further improve the bandwidth test efficiency, the test files meeting the bandwidth test requirement are screened according to the pretest result in a pretest manner.
In one possible embodiment, the controlling is performed by a measurement gateway to perform a pretest, including:
controlling the measured gateway to download the pretest file from the measurement gateway and obtaining a download pretest result;
controlling the measured gateway to upload the pretest file to the measurement gateway and obtaining an upload pretest result;
the pre-test files are pre-stored in the test file set and accord with preset file configuration, and the downloaded pre-test results and the uploaded pre-test results are used for obtaining a plurality of test files used in testing through screening from the test file set.
Specifically, the test file conforming to the preset file configuration refers to a test file which can be normally downloaded and uploaded, the size of the test file meets the transmission time requirement, the download rate is obtained through pretesting, the approximate value of the bandwidth size can be estimated, and the test files with proper size and quantity are selected from the test file set according to the approximate value of the bandwidth size and the scheduled bandwidth measurement time.
For example, the test file set includes test files of different sizes, such as 0.5MB, 1MB, 5MB, 20MB, 50MB, 500MB, etc., the pre-test does not require much time, and it is not desirable to select too large test files, so 5MB test files are selected. And the measured gateway downloads a 5MB test file from the measurement gateway, the time consumed for downloading is 0.5s, the approximate value of the obtained bandwidth size is 10MB/s, and the time consumed for the planned bandwidth test is about 10s, and a 50MB test file is selected for performing the bandwidth test.
It should be noted that, the number of the pretest files is not limited, and the number of downloading and uploading the pretest is also not limited, and can be determined according to the test requirement.
According to the scheme provided by the embodiment of the disclosure, the test file with the proper size is selected according to the result of the pretest, so that invalid test data is reduced, and the efficiency of bandwidth test is further improved.
In an alternative embodiment, on the basis of the foregoing embodiment of fig. 2, fig. 5 is a flowchart of another bandwidth measurement method provided in the embodiment of the present disclosure, and as shown in fig. 5, on the basis of fig. 2, after the controlling gateway determines a bandwidth measurement result according to the multiple download results and the multiple upload results, the method further includes:
and S25, the control gateway controls the measured gateway to disconnect the communication connection with the measurement gateway and resets the measured gateway and the measurement gateway.
Specifically, in the bandwidth measurement process, a preset script file needs to be run on a measured gateway and a measurement gateway, a data transmission server and a data transmission client are started, and downloading and uploading of a test file are performed; after the bandwidth measurement is finished, the measured gateway and the measurement gateway both need to be restored to the state before the test, and no test trace is left.
For example, the measured gateway and the measurement gateway are in communication connection with an FTP client through an FTP server, a preset script file controls the measured gateway to upload and download test files of 20MB and 50MB, and the measured gateway and the measurement gateway are reset after measurement is completed, including: and disconnecting the communication connection between the FTP server and the FTP client, stopping and deleting the preset script file, and deleting the 20MB and 50MB test files.
According to the scheme provided by the embodiment of the disclosure, the measured gateway and the measurement gateway after the measurement is completed are reset, no test trace is left, and the normalization of the bandwidth measurement work is ensured.
Fig. 6 is a schematic structural diagram of a measured gateway provided in an embodiment of the present disclosure, and as shown in fig. 6, the measured gateway in this embodiment may include: a memory 61 and a processor 62, the processor 62 being configured to:
receiving a communication connection establishment instruction, and establishing communication connection with a measurement gateway according to the communication connection establishment instruction;
executing a preset script according to the received script instruction;
wherein the preset script is used for: respectively downloading each test file from a test file set stored in a measurement gateway to obtain a plurality of corresponding downloading results; uploading the downloaded test files to the measurement gateway respectively to obtain a plurality of corresponding uploading results; and sending the plurality of downloading results and the plurality of uploading results to a control gateway so that the control gateway can determine a bandwidth measuring result according to the plurality of downloading results and the plurality of uploading results.
Optionally, the preset script is further configured to:
and controlling the measured gateway to perform pretesting.
In a possible implementation manner, the preset script is specifically configured to:
and controlling the measured gateway to download the pretest file from the measurement gateway and obtain a pretest result.
The embodiment of the invention provides a measured gateway, which downloads and uploads each test file from the measurement gateway by establishing communication connection with the measurement gateway and executing a preset script to obtain a plurality of corresponding downloading results and uploading results, and sends the plurality of downloading results and uploading results to a control gateway.
The embodiment of the present disclosure further provides a measurement gateway, where the measurement gateway structure is similar to the measured gateway structure, and includes: a memory and a processor, the processor to:
receiving a communication connection establishment request initiated by a measured gateway, and establishing communication connection with the measured gateway;
respectively sending each stored test file to a measured gateway so that the measured gateway can obtain a plurality of corresponding downloading results; the gateway is also used for receiving each test file uploaded by the measured gateway so that the measured gateway can obtain a plurality of corresponding uploading results; the plurality of download results and the plurality of upload results are used to determine a bandwidth measurement result.
The embodiment of the invention provides a measurement gateway, which is used for respectively sending each stored test file to a measured gateway and receiving each test file uploaded by the measured gateway by establishing communication connection with the measured gateway so as to enable the measured gateway to obtain a plurality of corresponding downloading results and uploading results.
An embodiment of the present disclosure further provides a control gateway, including: a memory and a processor, the processor to:
controlling a measured gateway to establish communication connection with a measurement gateway so that the measured gateway executes a preset script;
wherein the preset script is used for: controlling the measured gateway to download each test file from the test file set stored in the measurement gateway respectively to obtain a plurality of corresponding download results; the measured gateway uploads the downloaded test files to the measurement gateway respectively to obtain a plurality of corresponding uploading results; sending the plurality of downloading results and the plurality of uploading results to the control gateway;
and determining a bandwidth measurement result according to the plurality of downloading results and the plurality of uploading results.
Optionally, the processor is specifically configured to: determining communication protocols of a measured gateway and a measuring gateway, and obtaining at least one shared communication protocol of the measured gateway and the measuring gateway;
and controlling the measured gateway and the measuring gateway to select a shared communication protocol with the highest priority from the at least one shared communication protocol to establish communication connection according to the preset communication protocol priority.
Optionally, the processor is specifically configured to: judging whether a test file set is stored in the measurement gateway or not;
and if not, sending a pre-stored test file set to the measurement gateway.
Optionally, the processor is specifically configured to: determining a maximum download rate from the plurality of download results, determining a maximum upload rate from the plurality of upload results, the maximum download rate and the maximum upload rate forming a bandwidth measurement result.
Optionally, the processor is further configured to: and controlling the measured gateway to disconnect the communication connection with the measurement gateway and reset the measured gateway.
The embodiment of the invention provides a control gateway, which is used for controlling a measured gateway to establish communication connection with a measurement gateway so as to enable the measured gateway to execute a preset script, receiving a plurality of downloading results and uploading results obtained by the measured gateway and determining a bandwidth measurement result according to the plurality of downloading results and the uploading results.
The embodiment of the present application further provides a gateway device, which includes the measured gateway described in the foregoing embodiment.
The gateway device of this embodiment may execute the technical solution of the measured gateway, and the specific implementation process and technical principle of the gateway device refer to the related description in the measured gateway, which is not described herein again.
The embodiment of the present application further provides another gateway device, which includes the measurement gateway described in the foregoing embodiment.
The gateway device of this embodiment may execute the technical solution of the measurement gateway, and the specific implementation process and technical principle of the gateway device refer to the related description in the measurement gateway, which is not described herein again.
The embodiment of the present application further provides another gateway device, which includes the control gateway described in the foregoing embodiment.
The gateway device of this embodiment may execute the technical solution of the control gateway, and specific implementation processes and technical principles thereof refer to the related description in the control gateway, which is not described herein again.
The embodiment of the present application further provides another gateway device, which includes the control gateway and the test gateway described in the foregoing embodiment.
The gateway device of this embodiment may execute the technical solutions of the control gateway and the test gateway, and specific implementation processes and technical principles thereof refer to the related descriptions in the control gateway and the test gateway, which are not described herein again.
Fig. 7 is a schematic structural diagram of a gateway system provided in an embodiment of the present disclosure, and as shown in fig. 7, the gateway system of this embodiment includes the gateway device including the measured gateway, the gateway device including the measurement gateway, and the gateway device including the control gateway described in the foregoing embodiment.
Fig. 8 is a schematic structural diagram of another gateway system provided in the embodiment of the present disclosure, and as shown in fig. 8, the gateway system of this embodiment includes the gateway device including the measured gateway and the gateway device including the control gateway and the measurement gateway described in the foregoing embodiment.
In addition, embodiments of the present application further provide a computer-readable storage medium, in which computer-executable instructions are stored, and when at least one processor of the user equipment executes the computer-executable instructions, the user equipment performs the above-mentioned various possible methods.
Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in user equipment. Of course, the processor and the storage medium may reside as discrete components in a communication device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (17)

1. A method of bandwidth measurement, comprising:
the control gateway controls the measured gateway to establish communication connection with the measurement gateway so as to enable the measured gateway to execute a preset script;
wherein the preset script is used for: controlling the measured gateway to download each test file from the test file set stored in the measurement gateway respectively to obtain a plurality of corresponding download results; the measured gateway uploads the downloaded test files to the measurement gateway respectively to obtain a plurality of corresponding uploading results; sending the plurality of downloading results and the plurality of uploading results to the control gateway;
and the control gateway determines a bandwidth measurement result according to the plurality of downloading results and the plurality of uploading results.
2. The method according to claim 1, wherein the controlling gateway, before controlling the measured gateway to execute the preset script, is further configured to:
judging whether a test file set is stored in the measurement gateway or not;
and if not, sending a pre-stored test file set to the measurement gateway.
3. The method of claim 1, wherein the pre-set script is further configured to:
and controlling the measured gateway to execute the downloading pretest and the uploading pretest.
4. The method according to claim 1, wherein the controlling the measured gateway to perform the download pretest and the upload pretest comprises:
controlling the measured gateway to download the pretest file from the measurement gateway and obtaining a download pretest result;
controlling the measured gateway to upload the pretest file to the measurement gateway and obtaining an upload pretest result;
the pre-test files are pre-stored in the test file set and accord with preset file configuration, and the downloaded pre-test results and the uploaded pre-test results are used for obtaining a plurality of test files used in testing through screening from the test file set.
5. The method of claim 1, wherein the determining, by the control gateway, the bandwidth measurement result according to the plurality of download results and the plurality of upload results comprises:
determining a maximum download rate from the plurality of download results, determining a maximum upload rate from the plurality of upload results, the maximum download rate and the maximum upload rate forming a bandwidth measurement result.
6. The method of claim 1, further comprising:
and the control gateway controls the measured gateway to disconnect the communication connection with the measurement gateway and resets the measured gateway.
7. The bandwidth measurement method according to any one of claims 1 to 6, wherein the controlling gateway is configured to control the measured gateway to establish a communication connection with the measuring gateway, and includes:
the control gateway respectively determines the communication protocols of the measured gateway and the measurement gateway and obtains at least one shared communication protocol of the measured gateway and the measurement gateway;
and controlling the measured gateway and the measuring gateway to select a shared communication protocol with the highest priority from the at least one shared communication protocol to establish communication connection according to the preset communication protocol priority.
8. The method according to claim 1, wherein the control gateway is integrated with the measurement gateway in the same device;
alternatively, the control gateway and the measurement gateway are integrated in different devices.
9. A measured gateway, comprising: a memory and a processor, the processor to: receiving a communication connection establishment instruction, and establishing communication connection with a measurement gateway according to the communication connection establishment instruction;
executing a preset script according to the received script instruction;
wherein the preset script is used for: respectively downloading each test file from a test file set stored in a measurement gateway to obtain a plurality of corresponding downloading results; uploading the downloaded test files to the measurement gateway respectively to obtain a plurality of corresponding uploading results; and sending the plurality of downloading results and the plurality of uploading results to a control gateway so that the control gateway can determine a bandwidth measuring result according to the plurality of downloading results and the plurality of uploading results.
10. A measurement gateway, characterized by a memory and a processor, the processor being configured to:
receiving a communication connection establishment request initiated by a measured gateway, and establishing communication connection with the measured gateway;
respectively sending each stored test file to a measured gateway so that the measured gateway can obtain a plurality of corresponding downloading results; the gateway is also used for receiving each test file uploaded by the measured gateway so that the measured gateway can obtain a plurality of corresponding uploading results; the plurality of download results and the plurality of upload results are used to determine a bandwidth measurement result.
11. A control gateway, characterized by a memory and a processor for
Controlling a measured gateway to establish communication connection with a measurement gateway so that the measured gateway executes a preset script;
wherein the preset script is used for: controlling the measured gateway to download each test file from the test file set stored in the measurement gateway respectively to obtain a plurality of corresponding download results; the measured gateway uploads the downloaded test files to the measurement gateway respectively to obtain a plurality of corresponding uploading results; sending the plurality of downloading results and the plurality of uploading results to the control gateway;
and determining a bandwidth measurement result according to the plurality of downloading results and the plurality of uploading results.
12. A gateway device, characterized in that it comprises a measured gateway according to claim 9.
13. A gateway device, characterized in that it comprises a measurement gateway according to claim 10.
14. A gateway device, characterized in that it comprises a control gateway according to claim 11.
15. A gateway device, characterized in that it comprises a control gateway according to claim 11 and a measurement gateway according to claim 10.
16. A gateway system, characterized in that it comprises the gateway device of claim 12, the gateway device of claim 13 and the gateway device of claim 14.
17. A gateway system comprising the gateway device of claim 12 and the gateway device of claim 15.
CN202010921556.XA 2020-09-04 2020-09-04 Bandwidth measuring method and device, gateway equipment and gateway system Pending CN112073267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010921556.XA CN112073267A (en) 2020-09-04 2020-09-04 Bandwidth measuring method and device, gateway equipment and gateway system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010921556.XA CN112073267A (en) 2020-09-04 2020-09-04 Bandwidth measuring method and device, gateway equipment and gateway system

Publications (1)

Publication Number Publication Date
CN112073267A true CN112073267A (en) 2020-12-11

Family

ID=73666501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010921556.XA Pending CN112073267A (en) 2020-09-04 2020-09-04 Bandwidth measuring method and device, gateway equipment and gateway system

Country Status (1)

Country Link
CN (1) CN112073267A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209004A (en) * 2010-03-30 2011-10-05 中华电信股份有限公司 Network transmission rate testing method
CN103001835A (en) * 2012-12-29 2013-03-27 电信科学技术第一研究所 Network bandwidth test method and system based on data transmission
CN105978754A (en) * 2016-05-13 2016-09-28 中国联合网络通信集团有限公司 Network quality detection method and gateway equipment
WO2017113940A1 (en) * 2015-12-31 2017-07-06 北京金山安全软件有限公司 Method, apparatus and electronic device for testing network speed

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209004A (en) * 2010-03-30 2011-10-05 中华电信股份有限公司 Network transmission rate testing method
CN103001835A (en) * 2012-12-29 2013-03-27 电信科学技术第一研究所 Network bandwidth test method and system based on data transmission
WO2017113940A1 (en) * 2015-12-31 2017-07-06 北京金山安全软件有限公司 Method, apparatus and electronic device for testing network speed
CN105978754A (en) * 2016-05-13 2016-09-28 中国联合网络通信集团有限公司 Network quality detection method and gateway equipment

Similar Documents

Publication Publication Date Title
KR100571140B1 (en) Communication control apparatus, communication control method, and computer readable medium
US20060287001A1 (en) Wireless application installation, configuration and management tool
US8331350B2 (en) IP telephone auto configuration system and method
CN108667638B (en) Network service configuration method and network management equipment
AU2014218467A1 (en) A portable testing apparatus and method
JP2019501553A (en) Cloud-based system and method for managing test configurations of cable test devices
KR20100057915A (en) Apparatus and methods for determining voice and/or data processing performance of a wireless device
CN111274153A (en) Automatic testing method and device and electronic equipment
CN105388861A (en) Method and system for controlling devices in internet of things
CN112737847A (en) Node upgrading method and device, storage medium and electronic device
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
CN112073267A (en) Bandwidth measuring method and device, gateway equipment and gateway system
CN102045402A (en) Data acquisition method and data acquisition system of distributed file system
US20170187575A1 (en) System and method for customizing standard device-orientated services within a high scale deployment
CN114390574B (en) Wireless network throughput test method, device and computer readable storage medium
CN104065527A (en) Method And Device For Testing Broadband Network Performance
CN115801653A (en) Network detection method, system, electronic device and readable storage medium
CN112751716B (en) Test method and system for controlling response of file server and electronic equipment
CN111163486B (en) D2D communication simulation and performance test system and method
CN110650071B (en) Access management method and device of user equipment and management server
CN110769487B (en) Method for accessing terminal equipment, manager and power peak regulation system
CN110557563A (en) Remote communication method and system for network camera
JP2004021525A (en) Load test system for network server
CN115473799B (en) System and method for automatically deploying micro-service application of virtual machine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201211

RJ01 Rejection of invention patent application after publication