Method and device for transmitting network measurement information, and computer-readable storage medium
By selecting the target measurement data from the target data window of the measurement data matrix in the switching device and constructing the target network measurement information, the problem of low network measurement accuracy is solved and more efficient network measurement and transmission are achieved.
Patent Information
- Application Number
- CN202410537588.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-04-30
AI Technical Summary
The accuracy of network measurement in the existing technology is low, mainly due to the inefficiency and inflexibility of the method of transmitting measurement data, which results in heavy network transmission burden and dilution of effective data.
In the switching equipment of the data transmission network, target measurement data that meets the measurement conditions are selected from the target data window of the measurement data matrix, constructed as target network measurement information, and transmitted to the measurement equipment, expanding the data selection range to reflect more accurately Exchange the network status of the device.
The accuracy of network measurement is improved, the burden of network transmission is reduced, and the selected data can better express the real situation of the switching equipment.
Smart Images

Figure CN118138496B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a method and apparatus for transmitting network measurement information, and a computer-readable storage medium. Background Art
[0002] During network measurement on a data transmission network, the switching equipment in the network transmits the collected measurement data to the analysis end for processing and network measurement. Transmitting measurement data will affect the transmission of service data in the network. Transmitting complete measurement data out of the network during the measurement process, or compressing the data matrix before transmitting it out of the network, are both inefficient methods. Transmitting all measurement data in its entirety significantly increases the network transmission burden. Compressing data transmission not only transmits some invalid data but also dilutes valid data. The current method for transmitting measurement data generally involves splitting the measurement data into column vectors on the switching equipment. After transmitting the column vectors out of the network, the analysis end reconstructs the measurement data based on the splitting method and updates it. However, this method has a fixed range of data transmitted and is inflexible. This significantly reduces the accuracy of network measurement results obtained based on relatively fixed data, affecting the effectiveness of network measurement.
[0003] Currently, no effective solution has been proposed to the problem of low accuracy of network measurement in related technologies. Summary of the Invention
[0004] The embodiments of the present application provide a method and apparatus for transmitting network measurement information, and a computer-readable storage medium, to at least solve the problem of low accuracy of network measurement in related technologies.
[0005] According to one embodiment of the present application, a method for transmitting network measurement information is provided, which is applied to a switching device in a data transmission network. The method includes: when a transmission timing of measurement data arrives, selecting target measurement data that meets measurement conditions from a data range of a target data window in a measurement data matrix to obtain a measurement data set, wherein the measurement data matrix is a data matrix of a first number of columns × a first number of rows, and the target data window is a data window of a second number of columns × a second number of rows, the measurement data matrix is used to record measurement data generated by the switching device during operation, the second number of columns is an integer greater than 1 and less than or equal to the first number of columns, and the second number of rows is an integer greater than 1 and less than or equal to the first number of rows; constructing the measurement data set into target network measurement information, wherein the target network measurement information also carries the data position of the target measurement data in the measurement data set in the measurement data matrix; and transmitting the target network measurement information to a measurement device in the data transmission network, wherein the measurement device is used to perform network measurement on the switching device based on the target network measurement information.
[0006] In an exemplary embodiment, selecting target measurement data that meets the measurement condition from a data range of a target data window in a measurement data matrix to obtain a measurement data set includes: determining the target data window of the second number of columns × the second number of rows; locating the data range of the target data window of the second number of columns × the second number of rows in the measurement data matrix of the first number of columns × the first number of rows; and selecting the target measurement data that meets the measurement condition from the data range to obtain the measurement data set.
[0007] In an exemplary embodiment, determining the target data window of the second number of columns × the second number of rows includes: determining the second number of columns based on the relationship between the first number of columns and a first threshold; determining the second number of rows within a range from greater than or equal to the second threshold to greater than or equal to the first number of rows, wherein the second threshold is greater than 1 and the second threshold is less than or equal to the first number of rows; and determining the data window of the second number of columns × the second number of rows as the target data window.
[0008] In an exemplary embodiment, determining the second column number based on the relationship between the first column number and the first threshold includes: when the first column number is less than or equal to the first threshold, determining that the second column number is equal to the first column number; when the first column number is greater than the first threshold, determining that the second column number is equal to the first threshold.
[0009] In an exemplary embodiment, determining the second column number based on the relationship between the first column number and the first threshold includes: when the first column number is less than or equal to the first row number, determining that the second column number is equal to the first column number, wherein the first threshold is the first row number; when the first column number is greater than the first row number, determining that the second column number is equal to the first row number, wherein the first threshold is the first row number.
[0010] In an exemplary embodiment, determining the second row number from a range greater than or equal to a second threshold to greater than or equal to the first row number includes one of the following: determining the second row number from a range greater than or equal to a second threshold to greater than or equal to the first row number based on the second column number and the first row number, wherein the product of the second column number and the second row number is greater than or equal to the first row number; and determining that the second row number is equal to the first row number.
[0011] In an exemplary embodiment, locating the data range of the target data window of the second number of columns × the second number of rows in the measurement data matrix of the first number of columns × the first number of rows includes: determining valid data information in a candidate data window that satisfies the second number of columns × the second number of rows in the measurement data matrix, wherein the valid data information is used to indicate the amount of valid data included in the data in the candidate data window; determining the candidate data window whose valid data information satisfies the target information condition as the target data window; and locating the target data window as the data range in the measurement data matrix.
[0012] In an exemplary embodiment, determining the candidate data window whose valid data information satisfies the target information condition as the target data window includes: searching the candidate data window whose data amount indicated by the valid data information is the largest from the candidate data windows to obtain a valid data window; and determining the valid data window as the target data window.
[0013] In an exemplary embodiment, determining the candidate data window whose valid data information meets the target information condition as the target data window includes: filtering out the candidate data window whose data amount indicated by the valid data information is greater than or equal to a data amount threshold from the candidate data window as a reference data window; and randomly selecting a data window from the reference data window as the target data window.
[0014] In an exemplary embodiment, determining the target data window of the second number of columns × the second number of rows includes: when the first number of columns is less than or equal to the first number of rows, determining that the second number of columns is equal to the first number of columns, or, when the first number of columns is greater than the first number of rows, determining that the second number of columns is equal to the first number of rows; determining that the second number of rows is equal to the first number of rows; and determining the data window of the second number of columns × the first number of rows as the target data window.
[0015] In an exemplary embodiment, locating the data range of the target data window of the second number of columns × the second number of rows in the measurement data matrix of the first number of columns × the first number of rows includes: when the second number of columns is equal to the first number of columns, determining the measurement data matrix as the target data window; when the second number of columns is equal to the first number of rows, selecting the target data window from the data window in the measurement data matrix that satisfies the first number of rows × the first number of rows.
[0016] In an exemplary embodiment, selecting the target measurement data that meets the measurement condition from the data range to obtain the measurement data set includes: randomly selecting a row of target measurement data from each column within the data range to obtain the measurement data set.
[0017] In an exemplary embodiment, constructing the measurement data set into target network measurement information includes: constructing the data position of the target measurement data in the measurement data set in the measurement data matrix into an information header; constructing the target measurement data in the measurement data set into a data vector; and splicing the information header and the data vector into the target network measurement information.
[0018] In an exemplary embodiment, constructing the data position of the target measurement data in the measurement data set in the measurement data matrix as an information header includes: selecting a row of the target measurement data from each column of the target data window, and when the second number of columns is equal to the first number of columns, recording the row information of the target measurement data in each column in the information header.
[0019] In an exemplary embodiment, constructing the data position of the target measurement data in the measurement data set in the measurement data matrix as an information header includes: selecting a row of the target measurement data from each column of the target data window, and when the second number of columns is less than the first number of columns, recording in the information header the register address corresponding to the first column of the second number of columns, the second number of columns, and row information of the target measurement data in each column.
[0020] In an exemplary embodiment, constructing the target measurement data in the measurement data set into a data vector includes: selecting a row of the target measurement data from each column of the target data window, and connecting the target measurement data into the data vector in the order of the second column number.
[0021] In an exemplary embodiment, selecting target measurement data that meets the measurement conditions from the data range of the target data window in the measurement data matrix includes: selecting a row of valid data from the valid data in each column within the data range of the target data window in the measurement data matrix as the target measurement data; and when a column does not include valid data, selecting a row of data from the data in the entire column as the target measurement data.
[0022] In an exemplary embodiment, before selecting a row of valid data from the valid data in each column within the data range of the target data window in the measurement data matrix as the target measurement data, the method further includes: marking unupdated data in the measurement data matrix as invalid data; obtaining updated data in the measurement data matrix; detecting whether the updated data satisfies the validity condition corresponding to the data type to which the updated data belongs; if the updated data satisfies the validity condition corresponding to the data type to which the updated data belongs, marking the updated data as valid data; if the updated data does not satisfy the validity condition corresponding to the data type to which the updated data belongs, marking the updated data as invalid data.
[0023] According to another embodiment of the present application, a network measurement information transmission device is provided, which is applied to a switching device in a data transmission network. The device includes: a selection module, configured to select target measurement data that meets measurement conditions from a data range of a target data window in a measurement data matrix when a transmission opportunity for the measurement data arrives, to obtain a measurement data set, wherein the measurement data matrix is a data matrix of a first number of columns × a first number of rows, and the target data window is a data window of a second number of columns × a second number of rows, the measurement data matrix is configured to record measurement data generated by the switching device during operation, the second number of columns is an integer greater than 1 and less than or equal to the first number of columns, and the second number of rows is an integer greater than 1 and less than or equal to the first number of rows; a construction module, configured to construct the measurement data set into target network measurement information, wherein the target network measurement information also carries the data position of the target measurement data in the measurement data set in the measurement data matrix; and a transmission module, configured to transmit the target network measurement information to a measurement device in the data transmission network, wherein the measurement device is configured to perform network measurement on the switching device based on the target network measurement information.
[0024] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.
[0025] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0026] According to another embodiment of the present application, a computer program product is provided, including a computer program, which implements the steps of any of the above method embodiments when executed by a processor.
[0027] Through this application, when the transmission time for measurement data arrives, a switching device in a data transmission network selects target measurement data from a certain data range (target data window) in a measurement data matrix to obtain a measurement data set. This measurement data set is then constructed as target network measurement information and transmitted to the measurement device in the data transmission network. The target data window has a certain row and column width, which expands the selection range of measurement data. The selected data can better reflect the network status of the switching device. Network measurements based on this target measurement data can more accurately measure the true status of the switching device. Therefore, the technical problem of low network measurement accuracy can be solved, achieving the technical effect of improving network measurement accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a schematic diagram of an operating scenario of a method for transmitting network measurement information according to an embodiment of the present application;
[0029] Figure 2 is a flowchart of a method for transmitting network measurement information according to an embodiment of the present application;
[0030] Figure 3 is a schematic diagram of a measurement data matrix according to an embodiment of the present application;
[0031] Figure 4 is a schematic diagram of constructing target network measurement information according to an embodiment of the present application;
[0032] Figure 5 is a schematic diagram of another embodiment of the present application for constructing target network measurement information;
[0033] Figure 6 This is a structural block diagram of a device for transmitting network measurement information according to an embodiment of the present application. DETAILED DESCRIPTION
[0034] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0035] It should be noted that the terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0036] The method embodiments provided in the embodiments of the present application can be executed on a switching device in a data transmission network. Figure 1 This is a schematic diagram of an operating scenario of a method for transmitting network measurement information according to an embodiment of the present application. Figure 1 As shown, the data transmission network includes a network device 102, a switching device 104 and a measuring device 106. The switching device 104 is used to realize data exchange between the network devices 102 and report the measurement data generated during the operation to the measuring device 106. The measuring device 106 is used to perform network measurement on the data transmission network according to the measurement data transmitted by the switching device 104.
[0037] In this embodiment, a method for transmitting network measurement information is provided, which is applied to a switching device in the above-mentioned data transmission network. Figure 2 is a flow chart of a method for transmitting network measurement information according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:
[0038] Step S202: When a transmission opportunity for measurement data is reached, target measurement data that meets the measurement condition is selected from a data range of a target data window in a measurement data matrix to obtain a measurement data set, wherein the measurement data matrix is a data matrix having a first number of columns and a first number of rows, and the target data window is a data window having a second number of columns and a second number of rows. The measurement data matrix is used to record measurement data generated during operation of the switching device, the second number of columns is an integer greater than 1 and is less than or equal to the first number of columns, and the second number of rows is an integer greater than 1 and is less than or equal to the first number of rows.
[0039] Step S204: construct the measurement data set into target network measurement information, wherein the target network measurement information also carries the data position of the target measurement data in the measurement data set in the measurement data matrix;
[0040] Step S206: Transmit the target network measurement information to a measurement device in the data transmission network, wherein the measurement device is configured to perform network measurement on the switching device according to the target network measurement information.
[0041] Through the above steps, when the transmission time for measurement data arrives, the switching device in the data transmission network selects target measurement data from a certain data range (target data window) in the measurement data matrix to obtain a measurement data set. This measurement data set is then constructed into target network measurement information and transmitted to the measurement device in the data transmission network. The target data window has a certain row and column width, which expands the selection range of measurement data. The selected data can better reflect the network status of the switching device. Network measurement based on this target measurement data can more accurately measure the actual status of the switching device. Therefore, the technical problem of low network measurement accuracy can be solved, achieving the technical effect of improving network measurement accuracy.
[0042] Optionally, in this embodiment, the switching device may include, but is not limited to, any device capable of data exchange, such as a switch, a router, etc. The data transmission network may include, but is not limited to, any network that uses a switching device for data exchange, such as a business network, a service network, an office network, etc.
[0043] Optionally, in this embodiment, the measurement data matrix may be implemented in the form of, but not limited to, a bucket table. Figure 3 is a schematic diagram of a measurement data matrix according to an embodiment of the present application, such as Figure 3As shown, the measurement data matrix takes the form of a bucket table, which is a matrix with d rows and w columns (equivalent to the number of columns x the number of rows). Each matrix element can be a bucket array. Each bucket array can contain, but is not limited to, one or more data elements, and each bucket can contain, but is not limited to, all network data types. The flow key in the data flow is mapped to the bucket using, but is not limited to, a hash function. The hash function used for each row of the matrix can be, but is not limited to, the same.
[0044] Optionally, in this embodiment, the measurement device may perform network measurement on the switching device in any manner that can measure the network status of the switching device using target network measurement information. For example, the network measurement method may be, but is not limited to, sketch measurement. The core concept of sketch measurement is to map flowkey information within a specific time window to multiple buckets (facilitating the storage of large amounts of data using a small amount of space). Sketch measurement involves two steps: updating and querying a bucket table. The update method varies for different data types. Sketch measurement may, but is not limited to, utilize in-band network telemetry technology, which issues a measurement instruction to the network and inserts the measured data into the data stream. The bucket table includes a bucket table within the switch (i.e., the switching device) and a bucket table on the analysis end (i.e., the measurement device). After the network completes the data measurement, it updates the data in the switch's bucket table and updates some of the data outside the switch to the analysis end's bucket table. Using this network measurement information transmission process can effectively reduce the burden on network transmission, enabling the sketch network measurement process to utilize more abundant and effective measurement data.
[0045] Optionally, in this embodiment, the measurement data may refer to, but is not limited to, bucket data in the bucket table. The data transmission is not limited to a single column, and the selection of buckets may be appropriately relaxed through the use of a data window. Buckets in different rows and columns may be selected, and the corresponding addresses of the buckets may be recorded.
[0046] In an optional example, in the above step S202, the target measurement data that meets the measurement conditions can be selected from the data range of the target data window in the measurement data matrix to obtain a measurement data set in the following manner, but is not limited to: determining the target data window of the second number of columns × the second number of rows; locating the data range of the target data window of the second number of columns × the second number of rows in the measurement data matrix of the first number of columns × the first number of rows; and selecting the target measurement data that meets the measurement conditions from the data range to obtain a measurement data set.
[0047] Optionally, in this embodiment, it is possible but not limited to first determining the target data window, then locating the data range that meets the target data window in the measurement data matrix, and finally selecting data from the data range according to the measurement conditions, thereby expanding the scope of data selection, so that the selected data can more truly and effectively reflect the actual situation and status of the network.
[0048] Optionally, in this embodiment, the target data window of the second number of columns × the second number of rows can be determined by, but is not limited to, reading the target data window from a configuration file by the switching device, or can be adaptively determined by the switching device based on current network conditions or information in the measurement data matrix. For example, the size of the target data window, i.e., the second number of columns and the second number of rows, can be configured by, but is not limited to, a network management account and written to a network configuration file. When selecting target measurement data, the switching device can read the configuration information indicating the size of the target data window from the network configuration file to determine the target data window of the second number of columns × the second number of rows. Alternatively, the switching device can autonomously configure the size of the target data window based on network conditions by detecting parameters of the current measurement data matrix.
[0049] In an optional example, the target data window of the second number of columns × the second number of rows can be determined in the following manner, but is not limited to: determining the second number of columns based on the relationship between the first number of columns and the first threshold; determining the second number of rows from a range between greater than or equal to the second threshold and greater than or equal to the first number of rows, wherein the second threshold is greater than 1 and the second threshold is less than or equal to the first number of rows; and determining the data window of the second number of columns × the second number of rows as the target data window.
[0050] Optionally, in this embodiment, the second column number can be but is not limited to being determined based on the first column number, and the first column number is compared with the first threshold to determine the situation of the first column number, and the value of the second column number is determined according to different situations of the first column number.
[0051] Optionally, in this embodiment, the second row number can be, but is not limited to, a value between the second threshold and the first row number, that is, the target measurement data can be, but is not limited to, selected from all rows of the measurement data matrix, and can also be, but is not limited to, selecting the target measurement data from part of the rows of the measurement data matrix.
[0052] In an optional example, the second column number can be determined based on the relationship between the first column number and the first threshold in the following manner, but is not limited to: when the first column number is less than or equal to the first threshold, the second column number is determined to be equal to the first column number; when the first column number is greater than the first threshold, the second column number is determined to be equal to the first threshold.
[0053] Optionally, in this embodiment, the first number of columns is compared with a first threshold. If the first number of columns is less than or equal to the first threshold, the measurement data matrix is considered to have a small number of columns, and the entire measurement data matrix can be used as the range for selecting target measurement data. If the first number of columns is greater than the first threshold, the measurement data matrix is considered to have a large number of columns. If the second number of columns in the target data window is also large, this may result in a large amount of data in the measurement data set, affecting network transmission. In this case, the first threshold can be used as the second number of columns to select target measurement data from a more appropriate data range.
[0054] In an optional example, the second column number can also be determined based on the relationship between the first column number and the first threshold in the following manner, but is not limited to: when the first column number is less than or equal to the first row number, the second column number is determined to be equal to the first column number, wherein the first threshold is the first row number; when the first column number is greater than the first row number, the second column number is determined to be equal to the first row number, wherein the first threshold is the first row number.
[0055] Optionally, in this embodiment, the first threshold value compared with the first number of columns may be, but is not limited to, the first number of rows of the measurement data matrix. If the first number of columns is less than or equal to the first number of rows, then all columns of the measurement data matrix may be used as the range for selecting target measurement data. If the first number of columns is greater than the first number of rows, then the second number of columns is determined to be equal to the first number of rows. Thus, selecting one target measurement data per column allows the selection of the first number of rows of target measurement data, ensuring that the amount of selected target measurement data is equivalent to the amount of data when selecting a single column of data, thereby avoiding increasing the burden on network transmission.
[0056] In an optional example, the second row number can be determined from a range greater than or equal to the second threshold to greater than or equal to the first row number in one of the following ways, but is not limited to: determining the second row number from a range greater than or equal to the second threshold to greater than or equal to the first row number based on the second column number and the first row number, wherein the product of the second column number and the second row number is greater than or equal to the first row number; and determining that the second row number is equal to the first row number.
[0057] Optionally, in this embodiment, one method for determining the second row number may be, but is not limited to, determining the second row number based on the second column number of the target data window and the first row number of the measurement data matrix. Alternatively, another method for determining the second row number may be, but is not limited to, directly determining the value of the first row number as the value of the second row number. For example, if the second column number is large (greater than a certain threshold) and the first row number is also large (greater than a certain threshold), then the second row number may be selected to be a smaller value (less than a certain threshold) relative to the first row number. If the second column number is large (greater than a certain threshold) but the first row number is also small (less than a certain threshold), then the second row number may be selected to be a larger value (greater than a certain threshold) relative to the first row number, or directly selected as the first row number. If the second column number is small (less than a certain threshold), then the second row number may be selected to be a larger value (greater than a certain threshold) relative to the first row number, or directly selected as the first row number. This ensures that the target measurement data selection has a sufficient variety of optional measurement data.
[0058] In an optional example, the data range of the target data window of the second number of columns × the second number of rows can be located in the measurement data matrix of the first number of columns × the first number of rows in the following manner: determining the valid data information in the candidate data window that meets the second number of columns × the second number of rows in the measurement data matrix, wherein the valid data information is used to indicate the amount of valid data included in the data in the candidate data window; determining the candidate data window whose valid data information meets the target information condition as the target data window; and locating the target data window as the data range in the measurement data matrix.
[0059] Optionally, in this embodiment, the position of the target data window can be determined based on, but not limited to, the amount of valid data falling into the target data window, and the target data window can be flexibly adjusted in the measurement data matrix to transmit more and more effective measurement data.
[0060] In an optional example, a candidate data window whose valid data information meets the target information condition can be determined as a target data window in the following manner, but is not limited to: searching for a candidate data window with the largest amount of data indicated by the valid data information from the candidate data windows to obtain a valid data window; and determining the valid data window as the target data window.
[0061] Optionally, in this embodiment, a method may be but is not limited to determining the candidate data window with the largest amount of valid data as the valid data window and determining it as the target data window, so that there is as much valid data as possible in the selection range of the target measurement data.
[0062] In an optional example, a candidate data window whose valid data information meets the target information condition can be determined as a target data window in the following manner, but is not limited to: screening out from the candidate data windows candidate data windows whose data volume indicated by the valid data information is greater than or equal to a data volume threshold as a reference data window; and randomly selecting a data window from the reference data window as the target data window.
[0063] Optionally, in this embodiment, another method may also be, but is not limited to, randomly selecting a target data window from a candidate data window with a large amount of valid data (greater than a certain data amount threshold), thereby increasing the generalization of the processing process while ensuring the amount of valid data.
[0064] In an optional example, the target data window of the second number of columns × the second number of rows can be determined in the following manner, but is not limited to: when the first number of columns is less than or equal to the first number of rows, determining that the second number of columns is equal to the first number of columns, or when the first number of columns is greater than the first number of rows, determining that the second number of columns is equal to the first number of rows; determining that the second number of rows is equal to the first number of rows; and determining the data window of the second number of columns × the first number of rows as the target data window.
[0065] Optionally, in this embodiment, the second number of columns is first determined based on the relationship between the first number of columns and the first number of rows. If the first number of columns is less than or equal to the first number of rows, the second number of columns is equal to the first number of columns. If the first number of columns is greater than the first number of rows, the second number of columns is equal to the first number of rows. The second number of rows is then determined to be equal to the first number of rows, thereby determining a target data window of the second number of columns × the first number of rows.
[0066] In an optional example, the data range of the target data window of the second number of columns × the second number of rows can be located in the measurement data matrix of the first number of columns × the first number of rows in the following manner: when the second number of columns is equal to the first number of columns, the measurement data matrix is determined as the target data window; when the second number of columns is equal to the first number of rows, the target data window is selected from the data window in the measurement data matrix that satisfies the first number of rows × the first number of rows.
[0067] Optionally, in this embodiment, if the second number of columns is equal to the first number of columns, the measured data matrix can be determined as the target data window. If the second number of columns is equal to the first number of rows, a data window that satisfies the first number of rows × the first number of rows can be flexibly selected from the measured data matrix as the target data window.
[0068] In an optional example, target measurement data meeting the measurement condition may be selected from the data range in the following manner, but is not limited to, to obtain a measurement data set: randomly selecting a row of target measurement data from each column in the data range to obtain a measurement data set.
[0069] Optionally, in this embodiment, one data item may be selected from each column in the target data window as target measurement data, thereby obtaining a measurement data set.
[0070] In an optional example, in the above step S204, the measurement data set can be constructed into the target network measurement information in the following manner, but is not limited to: the data position of the target measurement data in the measurement data set in the measurement data matrix is constructed as an information header; the target measurement data in the measurement data set is constructed as a data vector; and the information header and the data vector are spliced into the target network measurement information.
[0071] Optionally, in this embodiment, the data position of the target measurement data in the measurement data set in the measurement data matrix is recorded in the information header, so that the measuring device can find the corresponding measurement data in the measurement data matrix stored in the measuring device according to the information header and update it.
[0072] In an optional example, the data position of the target measurement data in the measurement data set in the measurement data matrix can be constructed as an information header in the following manner, but not limited to: when one row of target measurement data is selected from each column in the target data window, and when the number of the second columns is equal to the number of the first columns, the row information of the target measurement data in each column is recorded in the information header.
[0073] Optionally, in this embodiment, if one row of target measurement data is selected from each column of the target data window, and the number of the second columns is equal to the number of the first columns, that is, a method of selecting one measurement data from each column is adopted and the selected target data window is all columns of the measurement data matrix, then the information header only needs to record the row number of each data, that is, the above-mentioned row information. The row information can be represented by, but is not limited to, a row offset, thereby reducing the data volume of the target network measurement information.
[0074] In an optional example, the data position of the target measurement data in the measurement data set in the measurement data matrix can be constructed as an information header in the following manner, but not limited to: when one row of target measurement data is selected from each column in the target data window, and when the second number of columns is less than the first number of columns, the register address corresponding to the first column of the second number of columns, the second number of columns, and the row information of the target measurement data in each column are recorded in the information header.
[0075] Optionally, in this embodiment, if one row of target measurement data is selected from each column of the target data window, and the second number of columns is less than the first number of columns, that is, a method of selecting one measurement data from each column is adopted and the selected target data window is a partial column of the measurement data matrix, then the information header can record the position of the first column of the target data window in the measurement data matrix (that is, the register address corresponding to the first column of the second number of columns), the number of columns of the target data window (that is, the second number of columns), and the row number of each data (that is, the row information of the target measurement data in each column), thereby reducing the data volume of the target network measurement information.
[0076] In an optional example, the target measurement data in the measurement data set can be constructed into a data vector in the following manner, but is not limited to: when selecting a row of target measurement data from each column of the target data window, the target measurement data are connected into a data vector in the order of the second column number.
[0077] Optionally, in this embodiment, if a method of selecting one row of target measurement data from each column in the target data window is adopted, the target measurement data may be connected into a data vector in the order of the second column number.
[0078] In an optional embodiment, for the case where the target data window includes all columns of the measurement data matrix, Figure 4 is a schematic diagram of constructing target network measurement information according to an embodiment of the present application, such as Figure 4 As shown, if a bucket is selected from each address (i.e., the register address of the column) and the sklechlet (i.e., the target network measurement information) is constructed in order from left to right, it is not necessary to record the address in the data vector. Instead, only the offset of the bucket in row d (i.e., the row information) needs to be recorded.
[0079] If there are too many buckets horizontally, that is, if w (the number of the first column) is too large, using the above method to construct sketchlet will make the vector data too long, which may increase the pressure on network transmission. Figure 5 is a schematic diagram of another method for constructing target network measurement information according to an embodiment of the present application. Figure 5 As shown, the header can record a starting address addr (i.e., the register address corresponding to the first column of the second column number) and add a window length v (i.e., the second column number). These two items of data are placed before the data vector d offset (i.e., the row information of the target measurement data in each column). This expands the bucket selection and reduces the transmission pressure of the sketchlet address.
[0080] In an optional example, in the above step S202, target measurement data that meets the measurement conditions can be selected from the data range of the target data window in the measurement data matrix in the following manner, but is not limited to: selecting a row of valid data from the valid data in each column within the data range of the target data window in the measurement data matrix as the target measurement data; when a column does not include valid data, selecting a row of data from the data in the entire column as the target measurement data.
[0081] Optionally, in this embodiment, within a fixed window, one measurement data point is selected from each column (with the same address) to construct a data vector. This selection can be, but is not limited to, selecting from valid data points, or randomly selecting data points. Random selection improves model generalization and better accounts for all measurement data points. If a column contains entirely invalid data points, a single data point can be randomly selected from the entire column for transmission to ensure that the overall data vector remains unchanged.
[0082] In an optional example, before selecting a row of valid data from the valid data in each column within the data range of the target data window in the measurement data matrix as the target measurement data, the validity of the data can be marked in the following manner, but is not limited to: marking the unupdated data in the measurement data matrix as invalid data; obtaining the updated data in the measurement data matrix; detecting whether the updated data meets the validity conditions corresponding to the data type to which the updated data belongs; if the updated data meets the validity conditions corresponding to the data type to which the updated data belongs, marking the updated data as valid data; if the updated data does not meet the validity conditions corresponding to the data type to which the updated data belongs, marking the updated data as invalid data.
[0083] Optionally, in this embodiment, the key to detecting network status in the network measurement method lies in the transmitted data. To alleviate data transmission pressure, the network measurement process further reduces the amount of transmitted data. Therefore, transmitting some important measurement data is crucial. For example, the data stored in some switch-side buckets may not have changed, making transmitting this bucket data meaningless. Alternatively, some bucket data may have only minimal changes, or the changes in the bucket data may not clearly indicate any network status issues. This data can be considered invalid and not transmitted. In other words, it can be excluded from the optional data used to construct the sketchlet (target network measurement information).
[0084] Optionally, in this embodiment, the method for marking data validity may include, but is not limited to, reserving a bit at the end of the bucket of measurement data in the switch to store whether the switch considers the bucket to be valid (e.g., 1 for a valid bucket, 0 for an invalid bucket). The determination of valid and invalid buckets may be, but is not limited to, based on the following conditions:
[0085] Condition 1: Buckets whose stored data has not changed are listed as invalid bucket data.
[0086] Condition 2: Different data types are judged valid according to different validity criteria. As long as the entire measurement data includes data that is judged to be valid, it can be marked as valid. For example, bucket data stores different types of data and can be classified and judged according to different criteria, such as the max unit in a bucket. The method for updating the max unit on the analysis side (i.e., the measurement device) is very simple. When the output data max value is greater than the current max value in the bucket, the analysis side's sketch table is updated; otherwise, it is not updated. Therefore, if the bucket max data unit in the switch is not updated upward, it can be considered an invalid bucket. For the sum unit in the bucket, the analysis side updates the sum data unit when the incoming bucket data exceeds a certain threshold above the current data. Otherwise, it is not updated. Therefore, the switch can determine whether the bucket sum is valid by whether the change exceeds a certain threshold.
[0087] The aforementioned network measurement information transmission process not only expands bucket data selection but also adds bucket validity attributes, increasing the probability of valid buckets being transmitted and improving the accuracy of network status assessment by the analysis end. This process increases the horizontal window v (i.e., the column width of the target data window) when constructing network measurement information. This allows data vectors to select a wider range of buckets during transmission. A tag is also added to the bucket to indicate bucket validity. This ensures that valid bucket data is transmitted as much as possible when using the sketch method to transmit data vectors, reducing data transmission pressure while enabling more accurate network status assessment.
[0088] After the above step S206, the analysis end (i.e., the measurement device) can use the received target network measurement information to reconstruct and update the measurement data matrix stored in it. According to the horizontal size w of the bucket table, it can be seen that the register address address of the column is used to indicate the need to occupy The bit position of the data vector can be fixed The bit position is the address position. Similarly, assuming that the maximum value of the window of v is set to l, after The bits are used to store the size of the window v. Finally, the offset is stored. Each offset has the same fixed bit length p. The total number of bits required for the offset is After receiving the target network measurement information, the analysis end locates the position of the data vector transmission bucket in the bucket table according to the position of the information header address, window length and offset position, and updates the analysis end bucket table.
[0089] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the existing technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0090] This embodiment also provides a device for transmitting network measurement information, which is applied to a switching device in a data transmission network. This device is used to implement the above-mentioned embodiments and preferred implementations, and details already described are omitted. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0091] Figure 6 is a structural block diagram of a device for transmitting network measurement information according to an embodiment of the present application, such as Figure 6 As shown, the device includes:
[0092] a selection module 62 configured to, when a transmission opportunity for measurement data is reached, select target measurement data that meets the measurement condition from a data range of a target data window in a measurement data matrix to obtain a measurement data set, wherein the measurement data matrix is a data matrix having a first number of columns × a first number of rows, the target data window is a data window having a second number of columns × a second number of rows, the measurement data matrix is used to record measurement data generated during operation of the switching device, the second number of columns is an integer greater than 1 and less than or equal to the first number of columns, and the second number of rows is an integer greater than 1 and less than or equal to the first number of rows;
[0093] A construction module 64 is configured to construct the measurement data set into target network measurement information, wherein the target network measurement information also carries the data position of the target measurement data in the measurement data set in the measurement data matrix;
[0094] The transmission module 66 is configured to transmit target network measurement information to a measurement device in the data transmission network, wherein the measurement device is configured to perform network measurement on the switching device according to the target network measurement information.
[0095] With the above-described device, when the transmission time for measurement data arrives, a switching device in the data transmission network selects target measurement data from a certain data range (target data window) in the measurement data matrix to obtain a measurement data set. This measurement data set is then constructed into target network measurement information and transmitted to the measurement device in the data transmission network. The target data window has a certain row and column width, which expands the selection range of measurement data. The selected data can better reflect the network status of the switching device. Network measurements based on this target measurement data can more accurately measure the true status of the switching device. Therefore, the technical problem of low network measurement accuracy can be solved, achieving the technical effect of improving network measurement accuracy.
[0096] In an optional example, the selection module is used to: determine a target data window of the second number of columns × the second number of rows; locate a data range of the target data window of the second number of columns × the second number of rows in a measurement data matrix of the first number of columns × the first number of rows; and select target measurement data that meets the measurement conditions from the data range to obtain a measurement data set.
[0097] In an optional example, the selection module is used to: determine the second number of columns based on the relationship between the first number of columns and the first threshold; determine the second number of rows within a range from greater than or equal to the second threshold to greater than or equal to the first number of rows, wherein the second threshold is greater than 1 and the second threshold is less than or equal to the first number of rows; and determine a data window of the second number of columns × the second number of rows as a target data window.
[0098] In an optional example, the selection module is used to: determine that the second column number is equal to the first column number when the first column number is less than or equal to the first threshold; determine that the second column number is equal to the first threshold when the first column number is greater than the first threshold.
[0099] In an optional example, the selection module is used to: when the first column number is less than or equal to the first row number, determine that the second column number is equal to the first column number, wherein the first threshold is the first row number; when the first column number is greater than the first row number, determine that the second column number is equal to the first row number, wherein the first threshold is the first row number.
[0100] In an optional example, the selection module is used for one of the following: determining the second row number from a range greater than or equal to a second threshold to greater than or equal to the first row number based on the second column number and the first row number, wherein the product of the second column number and the second row number is greater than or equal to the first row number; and determining that the second row number is equal to the first row number.
[0101] In an optional example, the selection module is used to: determine the valid data information in the candidate data window that satisfies the second number of columns × the second number of rows in the measurement data matrix, wherein the valid data information is used to indicate the amount of valid data included in the data in the candidate data window; determine the candidate data window whose valid data information satisfies the target information condition as the target data window; and locate the target data window as the data range in the measurement data matrix.
[0102] In an optional example, the selection module is configured to: search for a candidate data window with the largest data amount indicated by valid data information from the candidate data windows to obtain a valid data window; and determine the valid data window as the target data window.
[0103] In an optional example, the selection module is used to: filter out candidate data windows whose data volume indicated by valid data information is greater than or equal to a data volume threshold from the candidate data windows as reference data windows; and randomly select a data window from the reference data windows as the target data window.
[0104] In an optional example, the selection module is used to: determine that the second number of columns is equal to the first number of columns when the first number of columns is less than or equal to the first number of rows, or determine that the second number of columns is equal to the first number of rows when the first number of columns is greater than the first number of rows; determine that the second number of rows is equal to the first number of rows; and determine a data window of the second number of columns × the first number of rows as the target data window.
[0105] In an optional example, the selection module is used to: determine the measurement data matrix as the target data window when the second number of columns is equal to the first number of columns; and select the target data window from the data window in the measurement data matrix that satisfies the first number of rows × the first number of rows when the second number of columns is equal to the first number of rows.
[0106] In an optional example, the selection module is used to randomly select a row of target measurement data from each column in the data range to obtain a measurement data set.
[0107] In an optional example, the construction module is used to: construct the data position of the target measurement data in the measurement data set in the measurement data matrix into an information header; construct the target measurement data in the measurement data set into a data vector; and splice the information header and the data vector into target network measurement information.
[0108] In an optional example, the construction module is configured to: when selecting a row of target measurement data from each column in the target data window and the second number of columns is equal to the first number of columns, record row information of the target measurement data in each column in the information header.
[0109] In an optional example, the construction module is used to: when selecting a row of target measurement data from each column in the target data window, and when the second number of columns is less than the first number of columns, record in the information header the register address corresponding to the first column of the second number of columns, the second number of columns, and the row information of the target measurement data in each column.
[0110] In an optional example, the construction module is configured to: when selecting a row of target measurement data from each column of the target data window, connect the target measurement data into a data vector in the order of the second column number.
[0111] In an optional example, the selection module is used to: select a row of valid data from the valid data in each column within the data range of the target data window in the measurement data matrix as the target measurement data; when a column does not include valid data, select a row of data from the data in the entire column as the target measurement data.
[0112] In an optional example, the above-mentioned device is also used to: before selecting a row of valid data from the valid data in each column within the data range of the target data window in the measurement data matrix as the target measurement data, mark the unupdated data in the measurement data matrix as invalid data; obtain the updated data in the measurement data matrix; detect whether the updated data meets the validity conditions corresponding to the data type to which the updated data belongs; if the updated data meets the validity conditions corresponding to the data type to which the updated data belongs, mark the updated data as valid data; if the updated data does not meet the validity conditions corresponding to the data type to which the updated data belongs, mark the updated data as invalid data.
[0113] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0114] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above method embodiments when run.
[0115] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0116] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0117] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0118] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0119] An embodiment of the present application further provides another computer program product, comprising a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above method embodiments are implemented.
[0120] An embodiment of the present application further provides a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any of the above method embodiments.
[0121] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.
[0122] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0123] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A method for transmitting network measurement information, characterized in that: A switching device applied to a data transmission network, the method comprising: When the transmission timing of the measurement data is reached, target measurement data satisfying the measurement condition is selected from the data range of the target data window in the measurement data matrix to obtain a measurement data set, wherein the measurement data matrix is a data matrix of a first number of columns×a first number of rows, the target data window is a data window of a second number of columns×a second number of rows, the measurement data matrix is used to record the measurement data generated by the switching device during operation, the second number of columns is an integer greater than 1, the second number of columns is less than or equal to the first number of columns, the second number of rows is an integer greater than 1, and the second number of rows is less than or equal to the first number of rows; constructing the measurement data set into target network measurement information, wherein the target network measurement information also carries the data position of the target measurement data in the measurement data set in the measurement data matrix; Transmitting the target network measurement information to a measurement device in the data transmission network, wherein the measurement device is used to perform network measurement on the switching device according to the target network measurement information; The step of selecting target measurement data satisfying the measurement condition from the data range of the target data window in the measurement data matrix to obtain the measurement data set comprises: determining the target data window of the second number of columns×the second number of rows; locating the data range of the target data window of the second number of columns×the second number of rows in the measurement data matrix of the first number of columns×the first number of rows; and selecting the target measurement data satisfying the measurement condition from the data range to obtain the measurement data set. Wherein, locating the data range of the target data window of the second number of columns × the second number of rows in the measured data matrix of the first number of columns × the first number of rows includes: determining valid data information in a candidate data window satisfying the second number of columns × the second number of rows in the measured data matrix, wherein the valid data information is used to indicate the amount of valid data included in the data in the candidate data window; determining the candidate data window whose valid data information satisfies the target information condition as the target data window; and locating the target data window as the data range in the measured data matrix.
2. The method according to claim 1, characterized in that The determining the target data window of the second number of columns×the second number of rows includes: determining the second number of columns according to a relationship between the first number of columns and a first threshold; Determine the second number of rows from a range between greater than or equal to a second threshold and greater than or equal to the first number of rows, wherein the second threshold is greater than 1 and the second threshold is less than or equal to the first number of rows; A data window of the second number of columns×the second number of rows is determined as the target data window.
3. The method according to claim 2, characterized in that The determining the second number of columns according to the relationship between the first number of columns and a first threshold comprises: When the first number of columns is less than or equal to the first threshold, determining that the second number of columns is equal to the first number of columns; When the first column number is greater than the first threshold, it is determined that the second column number is equal to the first threshold.
4. The method according to claim 2, characterized in that: The determining the second number of columns according to the relationship between the first number of columns and a first threshold comprises: When the first number of columns is less than or equal to the first number of rows, determining that the second number of columns is equal to the first number of columns, wherein the first threshold is the first number of rows; In a case where the first number of columns is greater than the first number of rows, it is determined that the second number of columns is equal to the first number of rows, wherein the first threshold is the first number of rows.
5. The method according to claim 2, characterized in that: Determining the second number of rows in a range from greater than or equal to a second threshold to greater than or equal to the first number of rows includes one of the following: Determine the second number of rows according to the second number of columns and the first number of rows, within a range from greater than or equal to a second threshold to greater than or equal to the first number of rows, wherein a product of the second number of columns and the second number of rows is greater than or equal to the first number of rows; It is determined that the second number of rows is equal to the first number of rows.
6. The method according to claim 1, characterized in that The step of determining the candidate data window whose valid data information satisfies the target information condition as the target data window comprises: Searching the candidate data window with the largest data amount indicated by the valid data information from the candidate data windows to obtain a valid data window; The valid data window is determined as the target data window.
7. The method according to claim 1, characterized in that The step of determining the candidate data window whose valid data information satisfies the target information condition as the target data window comprises: Filtering out, from the candidate data windows, the candidate data windows whose data amount indicated by the valid data information is greater than or equal to a data amount threshold as reference data windows; A data window is randomly selected from the reference data window as the target data window.
8. The method according to claim 1, characterized in that: The determining the target data window of the second number of columns×the second number of rows includes: When the first number of columns is less than or equal to the first number of rows, determining that the second number of columns is equal to the first number of columns, or when the first number of columns is greater than the first number of rows, determining that the second number of columns is equal to the first number of rows; Determine that the second number of rows is equal to the first number of rows; A data window of the second number of columns×the first number of rows is determined as the target data window.
9. The method according to claim 8, characterized in that The step of locating the data range of the target data window of the second number of columns×the second number of rows in the measurement data matrix of the first number of columns×the first number of rows comprises: When the second number of columns is equal to the first number of columns, determining the measurement data matrix as the target data window; When the second number of columns is equal to the first number of rows, the target data window is selected from a data window satisfying the first number of rows×the first number of rows in the measurement data matrix.
10. The method according to claim 9, characterized in that The step of selecting the target measurement data satisfying the measurement condition from the data range to obtain the measurement data set includes: A row of the target measurement data is randomly selected from each column within the data range to obtain the measurement data set.
11. The method according to claim 1, characterized in that: The step of constructing the measurement data set into target network measurement information includes: constructing the data position of the target measurement data in the measurement data set in the measurement data matrix as an information header; constructing the target measurement data in the measurement data set into a data vector; The information header and the data vector are concatenated into the target network measurement information.
12. The method according to claim 11, characterized in that The step of constructing the data position of the target measurement data in the measurement data set in the measurement data matrix as an information header comprises: When a row of the target measurement data is selected from each column of the target data window and the second number of columns is equal to the first number of columns, row information of the target measurement data in each column is recorded in the information header.
13. The method according to claim 11, characterized in that The step of constructing the data position of the target measurement data in the measurement data set in the measurement data matrix as an information header comprises: When a row of the target measurement data is selected from each column of the target data window and the second number of columns is less than the first number of columns, the register address corresponding to the first column of the second number of columns, the second number of columns, and row information where the target measurement data of each column is located are recorded in the information header.
14. The method according to claim 11, characterized in that The step of constructing the target measurement data in the measurement data set into a data vector comprises: In the case where one row of the target measurement data is selected from each column of the target data window, the target measurement data are connected into the data vector in the order of the second column numbers.
15. The method according to claim 1, characterized in that The step of selecting target measurement data satisfying the measurement conditions from the data range of the target data window in the measurement data matrix comprises: Selecting a row of valid data from valid data in each column within the data range of the target data window in the measurement data matrix as the target measurement data; When a column does not include valid data, a row of data is selected from the entire column of data as the target measurement data.
16. The method according to claim 15, characterized in that Before selecting a row of valid data from the valid data in each column within the data range of the target data window in the measurement data matrix as the target measurement data, the method further includes: Marking the unupdated data in the measurement data matrix as invalid data; Acquire updated data that is updated in the measurement data matrix; Detecting whether the updated data satisfies a valid condition corresponding to the data type to which the updated data belongs; In the case where the update data satisfies a validity condition corresponding to the data type to which the update data belongs, marking the update data as valid data; In the case that the update data does not satisfy the validity condition corresponding to the data type to which the update data belongs, the update data is marked as invalid data.
17. A device for transmitting network measurement information, characterized in that: A switching device applied to a data transmission network, the device comprising: A selection module, used for selecting target measurement data that meets the measurement condition from the data range of the target data window in the measurement data matrix when the transmission opportunity of the measurement data is reached, so as to obtain a measurement data set, wherein the measurement data matrix is a data matrix of a first number of columns×a first number of rows, the target data window is a data window of a second number of columns×a second number of rows, the measurement data matrix is used to record the measurement data generated by the switching device during operation, the second number of columns is an integer greater than 1, the second number of columns is less than or equal to the first number of columns, the second number of rows is an integer greater than 1, and the second number of rows is less than or equal to the first number of rows; A construction module, configured to construct the measurement data set into target network measurement information, wherein the target network measurement information also carries the data position of the target measurement data in the measurement data set in the measurement data matrix; A transmission module for transmitting the target network measurement information to a measurement device in the data transmission network, wherein the measurement device is used to perform network measurement on the switching device according to the target network measurement information; Wherein, the selection module is used to: determine the target data window of the second number of columns × the second number of rows; locate the data range of the target data window of the second number of columns × the second number of rows in the measurement data matrix of the first number of columns × the first number of rows; select the target measurement data that meets the measurement condition from the data range to obtain the measurement data set; Wherein, the selection module is used to: determine the valid data information in the candidate data window that satisfies the second number of columns × the second number of rows in the measurement data matrix, wherein the valid data information is used to indicate the amount of valid data included in the data in the candidate data window; determine the candidate data window whose valid data information satisfies the target information condition as the target data window; and locate the target data window as the data range in the measurement data matrix.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 16 when executed by a processor.
19. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 16 are implemented.
20. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 16 are implemented.
