CN112564999A - Network measurement method, measurement management server, system and storage medium - Google Patents

Network measurement method, measurement management server, system and storage medium Download PDF

Info

Publication number
CN112564999A
CN112564999A CN202011204971.XA CN202011204971A CN112564999A CN 112564999 A CN112564999 A CN 112564999A CN 202011204971 A CN202011204971 A CN 202011204971A CN 112564999 A CN112564999 A CN 112564999A
Authority
CN
China
Prior art keywords
measurement
parameter
identifier
parameters
node
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
CN202011204971.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.)
Southwest University of Science and Technology
Peng Cheng Laboratory
Southern University of Science and Technology
Original Assignee
Southwest University of Science and Technology
Peng Cheng Laboratory
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 Southwest University of Science and Technology, Peng Cheng Laboratory filed Critical Southwest University of Science and Technology
Priority to CN202011204971.XA priority Critical patent/CN112564999A/en
Publication of CN112564999A publication Critical patent/CN112564999A/en
Priority to PCT/CN2021/104569 priority patent/WO2022088742A1/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/50Testing arrangements
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a network measurement method, a measurement management server, a system and a storage medium, wherein the method comprises the following steps: acquiring a measurement task to be executed, wherein the measurement task comprises a plurality of measurement parameters; determining a measurement identifier corresponding to the measurement parameter according to the measurement parameter, and storing the measurement parameter and a parameter mapping relation between the measurement parameter and the measurement identifier into a pre-connected data server; generating a command string corresponding to the measurement task according to the measurement identifier, wherein the command string comprises the measurement identifier; and according to the measurement node parameters in the measurement parameters, the command character strings are sent to the measurement nodes corresponding to the measurement node parameters, so that the measurement nodes can obtain the corresponding measurement parameters from the data server according to the command character strings and carry out network measurement. The invention simplifies the text sent to the measuring node, thereby reducing the broadband occupation and improving the space utilization rate of the measuring node.

Description

Network measurement method, measurement management server, system and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a network measurement method, a measurement management server, a system, and a storage medium.
Background
Most of the current network measurements are based on direct connection measurements. The measurement management platform can be connected with a plurality of terminals, and the terminals send the storage configuration information request and the measurement task issuing request to the measurement management platform. The storage configuration information request comprises configuration information to be stored, and the issued measurement task request comprises specific content of a measurement task. For example, a user first sends a request for storing configuration information to the measurement management platform, where the configuration information includes measurement tool parameters and the like, and the measurement management platform stores the configuration information locally. And then, the user sends a measurement task issuing request on the basis, and the measurement management platform packs useful data in the configuration information according to the measurement task issuing request to generate a JSON format text. The measurement management platform is directly connected with all the measurement nodes, so that the measurement tasks can be directly issued to the measurement nodes in the form of the JSON format text, and the measurement nodes measure the measurement target according to the JSON Object numbered Notation (JSON) format text.
However, the text sent by the measurement management platform is very long, and needs to occupy a certain bandwidth and consume a large amount of network traffic, thereby reducing the network transmission efficiency to a certain extent. And with the increase of measurement targets, the issued text is more and more bloated, so that each measurement node stores a lot of unnecessary data. In addition, after receiving the JSON text sent by the measurement management platform, the measurement node stores the JSON text, but many measurement targets, measurement parameters, measurement tool parameters, and the like are repeated, so that the measurement node stores the same data locally and repeatedly, which causes congestion of a storage space.
Disclosure of Invention
The invention mainly aims to provide a network measurement method, a measurement management server, a system and a storage medium, and aims to solve the problem that the broadband occupancy rate is too high when an instruction text is issued in the network measurement process in the prior art.
In order to achieve the above object, the present invention provides a network measurement method, which includes the following steps:
acquiring a measurement task to be executed, wherein the measurement task comprises a plurality of measurement parameters;
determining a measurement identifier corresponding to the measurement parameter according to the measurement parameter, and storing the measurement parameter and a parameter mapping relation between the measurement parameter and the measurement identifier into a pre-connected data server;
generating a command string corresponding to the measurement task according to the measurement identifier, wherein the command string comprises the measurement identifier;
and sending the command character string to a measuring node corresponding to the measuring node parameter according to the measuring node parameter in the measuring parameters, so that the measuring node can obtain the corresponding measuring parameter from the data server according to the command character string and carry out network measurement.
In addition, to achieve the above object, the present invention further provides a measurement management server, wherein the measurement management server includes: a memory, a processor and a network measurement program stored on the memory and executable on the processor, the network measurement program when executed by the processor implementing the steps of the network measurement method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium, wherein the storage medium stores a network measurement program, and the network measurement program implements the steps of the network measurement method as described above when executed by a processor.
In addition, in order to achieve the above object, the present invention further provides a network measurement system, which includes a data server, a plurality of measurement nodes, and the measurement management server as described above;
each measuring node is in communication connection with the data server and the measurement management server, and the data server is in communication connection with the measurement management server;
the data server is used for storing the parameter mapping relation among the measurement parameters, the measurement parameters and the measurement identifiers;
the measurement node is used for acquiring corresponding measurement parameters from the data server according to the command character string when receiving the command character string; and
and carrying out network measurement on the measurement target according to the measurement parameters.
Optionally, the measurement management server includes an issuing module, a management sub-server, and a command sub-server;
the issuing module is used for acquiring a measurement task to be executed, wherein the measurement task comprises a plurality of measurement parameters;
the management sub-server is used for generating a corresponding measurement text according to the measurement parameters and sending the measurement text to the command sub-server, wherein the measurement text comprises a measurement identifier corresponding to the measurement parameters; and
sending the measurement parameters and the parameter mapping relation between the measurement parameters and the measurement identifiers to the data server for storage by the data server;
and the command sub-server is used for generating a corresponding command character string according to the measurement text and sending the command character string to the measurement node when receiving the measurement text.
Optionally, the generating a corresponding measurement text according to the measurement parameter and sending the measurement text to the command sub-server specifically includes:
generating a corresponding measurement identifier according to the measurement parameter;
and writing the measurement identifier into a preset template file according to the type of the measurement parameter to generate a measurement text corresponding to the measurement task.
Optionally, wherein the measurement parameters further include a measurement target parameter, a measurement tool parameter, a measurement type parameter, and a measurement operation parameter;
the measurement identifier includes a measurement target identifier corresponding to the measurement target parameter, a measurement node identifier corresponding to the measurement node parameter, a measurement tool parameter identifier corresponding to the measurement tool parameter, a measurement type identifier corresponding to the measurement type parameter, and a measurement operation identifier corresponding to the measurement operation parameter.
Optionally, the generating a corresponding command character string according to the measurement text and sending the command character string to the measurement node specifically includes:
acquiring measurement node parameters from the data server according to the measurement node identifier;
when the parameter measurement node parameter is detected, generating a corresponding command identifier according to the measurement node parameter;
and writing the command identifier, the measuring tool parameter identifier, the measuring target identifier, the measuring type identifier and the measuring operation identifier into a preset template character string according to a preset command character string format, generating a command character string corresponding to the measuring node parameter and sending the command character string to a corresponding measuring node.
Optionally, wherein the measurement node is further configured to:
and deleting the measurement parameters and the command character string after the network measurement of the measurement target is finished.
Optionally, the obtaining, according to the command character string, the corresponding measurement parameter from the data server specifically includes:
when the measurement identifier is a measurement tool parameter identifier, matching the measurement tool parameter identifier with a comparison identifier, wherein the comparison identifier is a measurement tool identifier in a comparison character string, and the comparison character string is a command character string for which network measurement is not finished;
when the matching is successful, determining the test tool parameters corresponding to the comparison identifier as measurement tool parameters;
and when the matching fails, acquiring the measuring tool parameters corresponding to the measuring tool parameters from the data server according to the measuring tool parameter identifier.
In the invention, when a measurement task to be executed is acquired, because the measurement task comprises a plurality of measurement parameters, a measurement identifier corresponding to each measurement parameter is generated, and the measurement parameters and a parameter mapping relation between the measurement parameters and the measurement identifiers are stored in a data server connected in advance. At the same time, a command string is generated based on the measurement identifier. Since the command string no longer contains measurement parameters, but rather measurement identifiers that are more compact relative to the measurement parameters, the command string is more compact than conventional JSON text. And issuing the command character string to the measuring node, thereby reducing the broadband occupancy rate. And the measuring node acquires corresponding measuring parameters from the data server according to the command character string and performs network measurement.
Drawings
FIG. 1 is a flow diagram of a conventional network measurement method;
FIG. 2 is an exemplary diagram of JSON text in a conventional network measurement method;
FIG. 3 is a flow chart of a preferred embodiment of the network measurement method of the present invention;
FIG. 4 is a diagram illustrating an operating environment of a measurement management server according to a preferred embodiment of the present invention;
FIG. 5 is a first flowchart of a measurement management system according to a preferred embodiment of the present invention;
FIG. 6 is a diagram illustrating a second exemplary process flow of the measurement management system according to the preferred embodiment of the present invention;
FIG. 7 is a diagram illustrating an exemplary measurement document in accordance with the preferred embodiment of the measurement management system;
FIG. 8 is a schematic diagram of a command string in the measurement management system according to the preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1 and 2, line 1 in JSON text is used to describe the measurement task unique identifier for the measurement task; line 2 describes the unique identifier issued by the measurement task, and the identifier is used for tracing the issuing condition as one measurement task may be issued for multiple times; line 4 depicts measurement target identifiers used to associate a set of measurement targets; lines 6-20 are used to describe specific measurement target parameters; line 21 depicts a measurement node identifier for associating a set of measurement nodes; lines 22-37 describe specific parameters of specific measurement tool parameters; line 38 is used to describe the execution parameters of the periodic task; line 39 is used to describe the measurement task execution timeout; line 40 is used to describe the number of retry times of the measurement task failure; line 41 is used to describe the current measurement type, including periodic measurement, non-periodic measurement, and stop measurement; line 42 describes the specific time of issue of the measurement task.
As shown in fig. 3, the network measurement method according to the preferred embodiment of the present invention is applied to a network measurement system, which includes a measurement management server and a plurality of measurement nodes. The network measurement method executed by the measurement management server specifically comprises the following steps:
step S100, a measurement task to be executed is acquired.
In this embodiment, the user first sends a request for issuing a measurement task to the measurement management server according to the terminal and other modes. The measurement task issuing request includes a plurality of measurement parameters, such as a measurement node parameter, a measurement target parameter, a measurement tool parameter, a measurement type parameter, and a measurement operation parameter.
The measurement target parameter refers to a target parameter of a website that a user desires to measure, and generally takes an Internet Protocol Address (IP Address) of the website as a specific parameter. The measurement node parameter refers to a node parameter of a target measurement node that a user wishes to subsequently measure a measurement target, for example, an address of the target measurement node. Measurement tool parameters refer to a measurement tool parameter data packet for a tool that a user wishes to subsequently perform a measurement. The measurement type parameter refers to the type of measurement that needs to be performed, including periodic measurement, ordinary measurement, and stop measurement. The measurement operation parameters include retry times and timeout time, and if the measurement type is periodic measurement, the measurement operation parameters further include period duration.
In addition, the measurement node parameter and the measurement target parameter input by the user may correspond to a single measurement node or a measurement target, or may correspond to parameters corresponding to a plurality of measurement node sets and parameters corresponding to a plurality of measurement target sets. For example, the measurement parameter is in the form of an array, and when the measurement node parameter corresponds to a node parameter of a measurement node, only one value is in the array; when the measured node parameter corresponds to the node parameters of a plurality of measured nodes, a plurality of values exist in the array.
In addition, the measurement management server may further receive a request for storing configuration information, where the request for storing configuration information also includes a plurality of configuration parameters, but generally the request for storing configuration information only includes measurement tool parameters, measurement operation parameters, and the like, but does not include measurement node parameters and measurement target parameters, and the request is mainly used for the measurement management server to store the measurement parameters to the data server.
And step S200, determining a measurement identifier corresponding to the measurement parameter according to the measurement parameter.
Specifically, after obtaining the measurement task, the measurement management server generates a measurement identifier corresponding to each measurement parameter. In this embodiment, the measurement identifier includes a measurement target identifier corresponding to the measurement target parameter, a measurement node identifier corresponding to the measurement node parameter, a measurement tool parameter identifier corresponding to the measurement tool parameter, a measurement type identifier corresponding to the measurement type parameter, and a measurement operation identifier corresponding to the measurement operation parameter.
The manner of generating the measurement identifier corresponding to the measurement parameter includes many ways, and the embodiment provides two ways.
In a first generation, the measurement management server stores in advance an identifier library in a local or connected data server, the identifier library including a plurality of different types of parameter identifier sub-libraries. Each parameter identifier sub-library comprises a plurality of parameters and identifiers corresponding to the parameters. For example, the measurement target parameter is the address of the website a, the address of the website a is matched with the measurement target identifier sub-library in the identifier library, and when the matching is successful, the identifier corresponding to the matched parameter is used as the measurement target identifier corresponding to the website a as the measurement target parameter. And when the matching fails, generating identifiers different from other identifiers in the parameter identifier sub-library on the basis of the original identifiers of the parameter identifier sub-library, matching the identifiers with the measurement target parameters and storing the identifiers in a local or data server, wherein the newly generated identifiers are the measurement target identifiers corresponding to the measurement target parameters.
In the second generation method, each time the measurement management server receives a measurement parameter, a measurement identifier corresponding to the measurement parameter is generated for each measurement parameter. The measurement parameters and the parameter mapping relationship between the measurement parameters and the measurement identifiers are then sent to a data server.
Step S300, according to the measurement identifier, generating a command character string corresponding to the measurement task.
Specifically, upon obtaining the measurement identifier, the measurement management server may generate a corresponding command string. One way of generating the measurement task is to arrange the measurement identifiers in a certain order and generate a command string corresponding to the measurement task. In addition, the numerical length corresponding to different measurement identifiers may be preset, for example, the measurement identifier corresponding to the measurement target identifier is 8 bits, and the measurement identifier corresponding to the measurement type parameter is 2 bits.
Step S400, according to the measurement node parameters in the measurement parameters, the command character string is sent to the target measurement node corresponding to the measurement node, so that the target measurement node can obtain the corresponding measurement parameters from the data server according to the command character string and perform network measurement.
Specifically, the measurement parameters include measurement node parameters, and in this embodiment, the measurement node parameters are addresses of target measurement nodes. Therefore, after the measurement management server generates the command string, the command string can be sent to the target measurement node according to the measurement node parameters. As long as the measurement management server and the measurement node agree on the format of the command string, the measurement node can analyze the command string and obtain each measurement identifier. In this embodiment, the data server stores the measurement parameters and the parameter mapping relationship between the measurement parameters and the measurement identifiers, so that after the measurement node obtains the command character string, the measurement node can search and obtain the corresponding measurement parameters from the data server according to each measurement identifier in the command character string. And finally, the measurement node measures the measurement target corresponding to the measurement target parameter in the measurement parameters according to the measurement parameters.
Further, as shown in fig. 4, based on the network measurement method, the present invention also provides a measurement management server, which includes a processor 10, a memory 20 and a display 30. Fig. 4 shows only some of the components of the measurement management server, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 20 may in some embodiments be an internal storage unit of the measurement management server, such as a hard disk or a memory of the measurement management server. In other embodiments, the memory 20 may also be an external storage device of the measurement management server, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the measurement management server. Further, the memory 20 may also include both an internal storage unit of the measurement management server and an external storage device. The memory 20 is used for storing application software installed in the measurement management server and various types of data, such as program codes of the installation measurement management server. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a network measurement program 40, and the network measurement program 40 can be executed by the processor 10 to implement the network measurement method of the present application.
The processor 10 may be, in some embodiments, a Central Processing Unit (CPU), a microprocessor or other data Processing chip, which is used to run program codes stored in the memory 20 or process data, such as executing the network measurement method.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 30 is used for displaying information at the measurement management server and for displaying a visual user interface. The components 10-30 of the measurement management server communicate with each other via a system bus.
In one embodiment, the following steps are implemented when the processor 10 executes the network measurement program 40 in the memory 20:
acquiring a measurement task to be executed, wherein the measurement task comprises a plurality of measurement parameters;
determining a measurement identifier corresponding to the measurement parameter according to the measurement parameter, and storing the measurement parameter and a parameter mapping relation between the measurement parameter and the measurement identifier into a pre-connected data server;
generating a command string corresponding to the measurement task according to the measurement identifier, wherein the command string comprises the measurement identifier;
and sending the command character string to a measuring node corresponding to the measuring node parameter according to the measuring node parameter in the measuring parameters, so that the measuring node can obtain the corresponding measuring parameter from the data server according to the command character string and carry out network measurement.
The present invention also provides a storage medium, wherein the storage medium stores a network measurement program, and the network measurement program realizes the steps of the network measurement method as described above when being executed by a processor.
Further, as shown in fig. 5, the present invention further provides a network measurement system, which includes a data server, a plurality of measurement nodes, and the measurement management server.
Each measuring node is in communication connection with the data server and the measurement management server, and the data server is in communication connection with the measurement management server;
the data server is used for storing the parameter mapping relation among the measurement parameters, the measurement parameters and the measurement identifiers;
the measurement node is used for acquiring corresponding measurement parameters from the data server according to the command character string parameters when receiving the command character string; and
and carrying out network measurement on the measurement target according to the measurement parameters.
Specifically, based on the network measurement method, the present embodiment provides a network measurement system, which includes a data server, a plurality of measurement nodes, and a measurement management server.
And the user sends a measurement task issuing request to the measurement management server. The measurement management server executes the network measurement method and stores the measurement parameters and the parameter mapping relation between the measurement parameters and the measurement identifiers into the data server.
And after the measurement management server generates a command character string, sending the command character string to a measurement node. And when the command character string is received, the measuring node acquires corresponding measuring parameters from the data server to the measuring node according to the command character string and the parameter mapping relation stored in the data server. And finally, the measurement node performs network measurement on the measurement target according to the measurement parameters.
Further, the measurement management server has the functions of generating a measurement identifier and generating a command string, in order to share the working pressure and improve the efficiency, as shown in fig. 6, in this embodiment, the measurement management server includes an issuing module, a management sub-server and a command sub-server;
the issuing module is used for acquiring a measurement task to be executed, wherein the measurement task comprises a plurality of measurement parameters;
the management sub-server is used for generating a corresponding measurement text according to the measurement parameters and sending the measurement text to the command sub-server, wherein the measurement text comprises a measurement identifier corresponding to the measurement parameters; and
and sending the measurement parameters and the parameter mapping relation between the measurement parameters and the measurement identifiers to the data server for storage by the data server.
Specifically, an issuing module in the measurement management server first acquires a measurement task including a plurality of measurement parameters. And the management sub-server generates a corresponding measurement identifier according to each measurement parameter. The generation method may be similar to that in the network measurement method, and is not described herein again. Referring to fig. 7, according to the type of the measurement parameter, the measurement identifier is written in a preset template file, and a measurement text corresponding to the measurement task is generated. The character string before each measurement identifier in the figure represents the measurement parameter type corresponding to the measurement identifier, where "taskId" represents a measurement operation identifier, "workGroup" represents a measurement node identifier, "tools" represents a measurement tool parameter identifier, "taskOrder" represents a measurement type identifier, "pushTime" represents a push time, and "targetGroup" represents a measurement target identifier. Wherein the push time may be written according to the measured text generation time. In addition, after determining the parameter mapping relationship between the measurement identifier and the measurement parameter, the measurement management server sends the measurement parameter and the parameter mapping relationship between the measurement parameter and the measurement identifier to the data server for storage by the data server.
And the command sub-server in the measurement management server is used for generating a corresponding command character string according to the measurement text and sending the command character string to the measurement node when receiving the measurement text.
Further, the measurement parameters comprise a measurement target parameter, a measurement node parameter, a measurement tool parameter, a measurement type parameter and a measurement operation parameter; the measurement identifier includes a measurement target identifier corresponding to the measurement target parameter, a measurement node identifier corresponding to the measurement node parameter, a measurement tool parameter identifier corresponding to the measurement tool parameter, a measurement type identifier corresponding to the measurement type parameter, and a measurement operation identifier corresponding to the measurement operation parameter.
Further, since the measurement text is still a text file in the JSON format, in order to further reduce the size of data sent to the measurement node, the command sub-server receives the measurement text sent by the management sub-server, reduces the measurement text into a command character string, and sends the command character string to the measurement node. Besides the way of generating the command string in the network measurement method, another way of generating the command string is also provided, and the specific steps are as follows:
acquiring measurement node parameters from the data server according to the measurement node identifier;
when the measurement node parameters are detected, generating command identifiers corresponding to the measurement nodes according to the measurement node parameters;
and writing the command identifier, and a measurement tool parameter identifier, a measurement target identifier, a measurement type identifier and a measurement operation identifier in the measurement parameters into a preset template character string according to a preset command character string format, generating a command character string corresponding to each target measurement node and sending the command character string to the target measurement node.
Specifically, after receiving the measurement text, the command sub-server obtains the measurement node parameters from the data server according to the measurement node identifier in the measurement text. In this embodiment, the measurement node parameters include node parameters of a plurality of measurement nodes, and the data server may store the node parameters of the plurality of measurement nodes in a list, so that the sub-server is instructed to finally obtain a measurement node list storing the measurement node parameters.
And the command sub-server generates a corresponding command identifier according to the node parameter of each measuring node in the measuring node parameters. The command identifier is used for marking each command character string, and the command identifier is different from the command identifier to the command character string, the command identifier has uniqueness and can be used for tracing each measurement result.
Referring to fig. 8, the command string may be mainly divided into four data areas of a measurement operation block, a measurement target block, a measurement tool parameter block, and a measurement type block. Wherein the measurement operation block stores a measurement operation identifier, the measurement target block stores a measurement target identifier, the measurement tool parameter block stores a measurement tool parameter identifier, and the measurement type block stores a measurement type identifier. In this embodiment, since there are a plurality of measurement tool parameters in the measurement server, a plurality of measurement tool parameter identifiers may be included in the measurement tool parameter block.
In order to save the size of the command string, the embodiment also provides a template string of the command string, different data areas are separated by "|", and a plurality of identifiers in the same area are separated by "&". The template character string is specifically as follows: "| command identifier | measurement operation identifier | measurement target identifier | measurement tool parameter identifier number & measurement tool parameter identifier 1& measurement tool parameter identifier 2& … & measurement tool parameter identifier 3| measurement type identifier | issue time < CR >", wherein the measurement operation identifier takes an 8-bit number, and when the measurement operation identifier generated by the measurement management server is less than 8 bits, the measurement operation identifier is guaranteed to be an 8-bit number by complementing 0 on the left side. Similarly, the parameter identifier of the measuring tool is 2 digits, and when the parameter identifier is less than 2 digits, 0 is supplemented on the left side to ensure 2 digits. The issuing time can be in the form of a timestamp, so that the accuracy and the safety are improved. The measurement type identifier may take values of 1, 2, and 3, where 1 is periodic execution; 2 is normal execution; and 3 is stop. Finally the termination of the command text is indicated with "< CR >". For example, the generated command string is "123124 |00000053|00000029|2&14&12|1|1587527682< CR >".
In order to reduce broadband occupation, after network measurement is finished on a measurement target, the measurement node deletes the measurement parameter and the command character string.
And after receiving the command identifier, the measurement node analyzes the command identifier to obtain a plurality of measurement parameter identifiers. The measurement parameters received by the measurement node may be one after another, or another command string may be received when the measurement task corresponding to the command string has not been completed. In the latter case, the measurement tool parameters corresponding to different command strings are the same. Because the data of the measurement target parameter, the measurement operation parameter and the measurement type parameter are all small, the measurement node directly acquires the data and does not occupy too much broadband. However, the measurement tool parameters are generally large, such as a ping command parsing tool pingparsing and a TCP (Transmission Control Protocol) based detection packet loss, disorder and delay tool tcpprobe, where the former is used to parse ping commands, and the latter is used to perform TCP layer detection on detection objects and analyze network packet loss, disorder and delay conditions. Therefore, if the measurement node acquires a command string, the measurement tool parameters are acquired from the data server, which causes a certain waste of resources. Therefore, in this embodiment, in the process that the measurement node generates a measurement parameter request according to the command string and sends the measurement parameter request to the data server, the method further includes:
when the measurement identifier is a measurement tool parameter identifier, matching the measurement tool parameter identifier with a comparison identifier, wherein the comparison identifier is a measurement tool identifier in a comparison character string, and the comparison character string is a command character string for which network measurement is not finished;
when the matching is successful, determining the test tool parameters corresponding to the comparison identifier as measurement tool parameters;
and when the matching fails, acquiring the measuring tool parameters corresponding to the measuring tool parameters from the data server according to the measuring tool parameter identifier.
Specifically, in this embodiment, when the measurement node obtains a certain command string, it parses the command string, and obtains a corresponding measurement parameter to perform network measurement. If the time required for the network measurement is long, for example, the number of measurement targets is large, and the measurement type parameter is periodic measurement, the measurement node deletes the relevant data only after the network measurement is finished, so that the command string will be stored locally. If the measurement node obtains another command character string, for the convenience of distinguishing, the former command character string is the command character string a, the latter command character string is the command character string B, and after the command character string B is analyzed, the measurement tool identifier in the command character string a is matched with the measurement tool identifier in the command character string a, namely the comparison identifier.
If the matching is successful, it indicates that the measurement node currently stores the measurement tool parameters corresponding to the measurement tool identifier, and in order to distinguish the measurement tool parameters stored by the measurement node from the measurement tool parameters issued by the data server, the measurement tool parameters locally stored by the measurement node are named as test tool parameters. Therefore, according to the correspondence between the comparison identifier and the test tool parameter, the test tool parameter corresponding to the measurement tool identifier is determined as the measurement tool parameter. In addition, the measurement node acquires corresponding measurement parameters from the data server according to other measurement identifiers in the command string B to perform network measurement.
If the matching fails, it indicates that the measurement node does not currently store the measurement tool parameters corresponding to the measurement tool identifier, and therefore, according to each measurement identifier, the measurement parameters corresponding to the measurement identifier are obtained from the data server to perform network measurement.
Further, when the measurement type corresponding to the measurement type identifier is periodic measurement, the measurement node generates a measurement parameter request according to the measurement operation identifier, where the measurement parameter request includes a periodic parameter in addition to the timeout time and the repetition number in the conventional measurement operation. In addition, if the measurement type is periodic measurement, after the measurement node acquires the measurement tool parameters, the measurement tool parameters are also stored locally as a test tool.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A network measurement method, characterized in that the network measurement method comprises:
acquiring a measurement task to be executed, wherein the measurement task comprises a plurality of measurement parameters;
determining a measurement identifier corresponding to the measurement parameter according to the measurement parameter, and storing the measurement parameter and a parameter mapping relation between the measurement parameter and the measurement identifier into a pre-connected data server;
generating a command string corresponding to the measurement task according to the measurement identifier, wherein the command string comprises the measurement identifier;
and sending the command character string to a measuring node corresponding to the measuring node parameter according to the measuring node parameter in the measuring parameters, so that the measuring node can obtain the corresponding measuring parameter from the data server according to the command character string and carry out network measurement.
2. A measurement management server, characterized in that the measurement management server comprises: memory, a processor and a network measurement program stored on the memory and executable on the processor, the network measurement program when executed by the processor implementing the steps of the network measurement method as claimed in claim 1.
3. A storage medium, characterized in that the storage medium stores a network measurement program, which when executed by a processor implements the steps of the network measurement method according to claim 1.
4. A network measurement system comprising a data server, a number of measurement nodes and a measurement management server according to claim 2;
each measuring node is in communication connection with the data server and the measurement management server, and the data server is in communication connection with the measurement management server;
the data server is used for storing the parameter mapping relation among the measurement parameters, the measurement parameters and the measurement identifiers;
the measurement node is used for acquiring corresponding measurement parameters from the data server according to the command character string when receiving the command character string; and
and carrying out network measurement on the measurement target according to the measurement parameters.
5. The network measurement system of claim 4, wherein the measurement management server comprises an issuing module, a management sub-server and a command sub-server;
the issuing module is used for acquiring a measurement task to be executed, wherein the measurement task comprises a plurality of measurement parameters;
the management sub-server is used for generating a corresponding measurement text according to the measurement parameters and sending the measurement text to the command sub-server, wherein the measurement text comprises a measurement identifier corresponding to the measurement parameters; and
sending the measurement parameters and the parameter mapping relation between the measurement parameters and the measurement identifiers to the data server for storage by the data server;
and the command sub-server is used for generating a corresponding command character string according to the measurement text and sending the command character string to the measurement node when receiving the measurement text.
6. The network measurement system according to claim 5, wherein the generating a corresponding measurement text according to the measurement parameter and sending the measurement text to the command sub-server specifically includes:
generating a corresponding measurement identifier according to the measurement parameter;
and writing the measurement identifier into a preset template file according to the type of the measurement parameter to generate a measurement text corresponding to the measurement task.
7. The network measurement system of claim 5, wherein the measurement parameters further include a measurement target parameter, a measurement tool parameter, a measurement type parameter, and a measurement operation parameter;
the measurement identifier includes a measurement target identifier corresponding to the measurement target parameter, a measurement node identifier corresponding to the measurement node parameter, a measurement tool parameter identifier corresponding to the measurement tool parameter, a measurement type identifier corresponding to the measurement type parameter, and a measurement operation identifier corresponding to the measurement operation parameter.
8. The network measurement system according to claim 7, wherein the generating a corresponding command string according to the measurement text and sending the command string to the measurement node specifically includes:
acquiring measurement node parameters from the data server according to the measurement node identifier;
when the parameter measurement node parameter is detected, generating a corresponding command identifier according to the measurement node parameter;
and writing the command identifier, the measuring tool parameter identifier, the measuring target identifier, the measuring type identifier and the measuring operation identifier into a preset template character string according to a preset command character string format, generating a command character string corresponding to the measuring node parameter and sending the command character string to a corresponding measuring node.
9. The network measurement system of claim 7, wherein the measurement node is further configured to:
and deleting the measurement parameters and the command character string after the network measurement of the measurement target is finished.
10. The network measurement system of claim 9, wherein the obtaining the corresponding measurement parameter from the data server according to the command string comprises:
when the measurement identifier is a measurement tool parameter identifier, matching the measurement tool parameter identifier with a comparison identifier stored locally, wherein the comparison identifier is a measurement tool identifier in a comparison character string, and the comparison character string is a command character string for which network measurement is not finished;
when the matching is successful, determining the test tool parameters corresponding to the comparison identifier as measurement tool parameters;
and when the matching fails, acquiring the measuring tool parameters corresponding to the measuring tool parameters from the data server according to the measuring tool parameter identifier.
CN202011204971.XA 2020-11-02 2020-11-02 Network measurement method, measurement management server, system and storage medium Pending CN112564999A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011204971.XA CN112564999A (en) 2020-11-02 2020-11-02 Network measurement method, measurement management server, system and storage medium
PCT/CN2021/104569 WO2022088742A1 (en) 2020-11-02 2021-07-05 Network measurement method, measurement management server, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011204971.XA CN112564999A (en) 2020-11-02 2020-11-02 Network measurement method, measurement management server, system and storage medium

Publications (1)

Publication Number Publication Date
CN112564999A true CN112564999A (en) 2021-03-26

Family

ID=75041642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011204971.XA Pending CN112564999A (en) 2020-11-02 2020-11-02 Network measurement method, measurement management server, system and storage medium

Country Status (2)

Country Link
CN (1) CN112564999A (en)
WO (1) WO2022088742A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022088742A1 (en) * 2020-11-02 2022-05-05 鹏城实验室 Network measurement method, measurement management server, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183973A (en) * 2007-12-06 2008-05-21 中兴通讯股份有限公司 Method of implementing command line configuration distribution in distributed system
CN106776277A (en) * 2016-11-18 2017-05-31 乐视控股(北京)有限公司 A kind of method of striding course test, device and electronic equipment
CN109873731A (en) * 2017-12-05 2019-06-11 北京京东尚科信息技术有限公司 Test method, device and system
CN110730111A (en) * 2019-10-23 2020-01-24 北京锐安科技有限公司 Network quality monitoring method, device, server and medium
US20200106773A1 (en) * 2018-09-29 2020-04-02 Fortinet, Inc. Device integration for a network access control server based on device mappings and testing verification

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4167876B2 (en) * 2002-10-03 2008-10-22 株式会社日立製作所 Network measurement setting device
CN101072130A (en) * 2006-05-12 2007-11-14 华为技术有限公司 Network performance measuring method and system
US10394759B2 (en) * 2016-03-14 2019-08-27 Airmagnet, Inc. System and method to configure distributed measuring devices and treat measurement data
CN109218133B (en) * 2018-09-27 2022-04-01 深圳市网心科技有限公司 Network speed testing system, method, device and computer readable storage medium
CN112564999A (en) * 2020-11-02 2021-03-26 鹏城实验室 Network measurement method, measurement management server, system and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183973A (en) * 2007-12-06 2008-05-21 中兴通讯股份有限公司 Method of implementing command line configuration distribution in distributed system
CN106776277A (en) * 2016-11-18 2017-05-31 乐视控股(北京)有限公司 A kind of method of striding course test, device and electronic equipment
CN109873731A (en) * 2017-12-05 2019-06-11 北京京东尚科信息技术有限公司 Test method, device and system
US20200106773A1 (en) * 2018-09-29 2020-04-02 Fortinet, Inc. Device integration for a network access control server based on device mappings and testing verification
CN110730111A (en) * 2019-10-23 2020-01-24 北京锐安科技有限公司 Network quality monitoring method, device, server and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022088742A1 (en) * 2020-11-02 2022-05-05 鹏城实验室 Network measurement method, measurement management server, system and storage medium

Also Published As

Publication number Publication date
WO2022088742A1 (en) 2022-05-05

Similar Documents

Publication Publication Date Title
CN109144696B (en) Task scheduling method and device, electronic equipment and storage medium
CN113900982B (en) Distributed heterogeneous acceleration platform communication method, system, device and medium
CN102404306B (en) Protocol configuration method and device
CN111490908B (en) Network speed measurement method, device, equipment, medium and speed measurement system
CN113890879A (en) Load balancing method and device for data access, computer equipment and medium
CN111273869A (en) Distributed storage system performance optimization method, system, electronic device and medium
CN112564999A (en) Network measurement method, measurement management server, system and storage medium
JP5581470B2 (en) Device sharing system, device sharing server, device sharing client, and device sharing method
CN111224878A (en) Route forwarding method and device, electronic equipment and storage medium
CN113238856B (en) RDMA-based memory management method and device
US20220272009A1 (en) Incorporation of a trace visualization with a traffic graph visualization in a service mesh
US11537485B2 (en) Test sequencing method, configuration generating method, and configuration generating apparatus for testing devices according to their communication protocols
CN107357853B (en) Method and device for operating REDIS console and computer system
CN112910910B (en) Method, device, equipment and storage medium for processing OPCDA protocol message
CN110311977B (en) Form verification platform based on cloud computing and method thereof
CN116389357B (en) Hole address processing method, device, equipment and medium based on network on chip
JP2015072531A (en) Test support method, test support device, and program
CN116915875B (en) General method for analyzing modbus equipment by Internet of things and modbus system
CN103812893A (en) Virtual desktop external equipment transmission method and system
CN115543755B (en) Performance supervision method, device, system, equipment and medium
CN113407504B (en) Data processing method, user space file system and storage medium
CN108600402B (en) Internet access method and device, intelligent terminal and storage medium
KR20040011072A (en) File update system and method
CN115481706A (en) Vehicle machine activation method and device and electronic equipment
CN117938944A (en) Communication method and device for realizing dynamic connection of electronic devices

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210326