CN116405802A - Telemetry data acquisition method and related equipment - Google Patents

Telemetry data acquisition method and related equipment Download PDF

Info

Publication number
CN116405802A
CN116405802A CN202111626989.3A CN202111626989A CN116405802A CN 116405802 A CN116405802 A CN 116405802A CN 202111626989 A CN202111626989 A CN 202111626989A CN 116405802 A CN116405802 A CN 116405802A
Authority
CN
China
Prior art keywords
file information
collector
object information
network equipment
information
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
CN202111626989.3A
Other languages
Chinese (zh)
Inventor
杨子尧
张德智
汤健
梁真铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111626989.3A priority Critical patent/CN116405802A/en
Priority to PCT/CN2022/112660 priority patent/WO2023124109A1/en
Publication of CN116405802A publication Critical patent/CN116405802A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Radar Systems Or Details Thereof (AREA)
  • Radio Relay Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The disclosure provides a telemetry data acquisition method, device, equipment and storage medium, and relates to the technical field of communication. The method comprises the following steps: before a telemetry subscription request is sent to network equipment, first file information from the network equipment is received, wherein the first file information comprises acquisition object information corresponding to the network equipment; and updating second file information based on the acquired object information corresponding to the network equipment, wherein the second file information is acquired object information stored in the acquirer.

Description

Telemetry data acquisition method and related equipment
Technical Field
The disclosure relates to the field of communication technologies, and in particular, to a telemetry data acquisition method and related equipment.
Background
Telemetry is a remote, high-speed data collection technology from physical or virtual devices. The device periodically and actively transmits information such as interface flow statistics, CPU (Central processing Unit) or memory data and the like of the device to the collector through the push mode, and compared with the one-to-one interaction of the traditional pull mode, the device has the function of acquiring data more in real time and at higher speed.
At present, in the interaction process of the Telemetry protocol network device and the collector, the problem that analysis cannot be performed sometimes occurs.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure provides a Telemetry data acquisition method, apparatus, device and storage medium, which at least solve the problem that in the interaction process between a telemet protocol network device and an acquirer in the related art, sometimes an unresolved problem occurs.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to one aspect of the present disclosure, there is provided a telemetry data acquisition method, for use with an acquisition unit, the method comprising:
before a telemetry subscription request is sent to network equipment, first file information from the network equipment is received, wherein the first file information comprises acquisition object information corresponding to the network equipment;
and updating second file information based on the acquired object information corresponding to the network equipment, wherein the second file information is acquired object information stored in the acquirer.
In one embodiment of the disclosure, the acquired object information corresponding to the network device includes first object information;
updating second file information based on the acquired object information corresponding to the network device, including:
when the second file information does not contain the second object information, the second object information is stored in the second file information, and the second object information is acquisition object information corresponding to the first object information.
In one embodiment of the present disclosure, the method further comprises:
when the second object information is included in the second file information, the second file information is not updated.
In one embodiment of the present disclosure, the method further comprises:
receiving encapsulated telemetry data sent by network equipment;
and analyzing the encapsulated telemetry data based on the updated second file information.
In one embodiment of the present disclosure, the method further comprises:
outputting telemetry data when the parsed telemetry data is subscribed data in the telemetry subscription request.
In one embodiment of the present disclosure, the method further comprises:
and sending a telemetry subscription request to the network equipment so that the network equipment encapsulates the acquired telemetry data based on the first file information and sends the encapsulated telemetry data to the acquirer.
According to another aspect of the present disclosure, there is provided a telemetry data acquisition method applied to a network device, the method comprising:
the method comprises the steps that first file information is sent to a collector, the first file information comprises collection object information corresponding to network equipment, so that the collector updates second file information based on the collection object information corresponding to the network equipment, and the second file information is collection object information stored in the collector;
and after the collector updates the second file information, receiving a telemetry subscription request sent by the collector.
In one embodiment of the present disclosure, the method further comprises:
packaging the acquired telemetry data based on the first file information;
and sending the encapsulated telemetry data to a collector so that the collector analyzes the encapsulated telemetry data based on the updated second file information.
According to another aspect of the present disclosure there is provided a telemetry data collector, the collector comprising:
the information receiving module is used for receiving first file information from the network equipment before sending a telemetry subscription request to the network equipment, wherein the first file information comprises acquisition object information corresponding to the network equipment;
the information updating module is used for updating second file information based on the acquired object information corresponding to the network equipment, wherein the second file information is acquired object information stored in the acquirer.
According to another aspect of the present disclosure, there is provided a network device comprising:
the information sending module is used for sending first file information to the collector, wherein the first file information comprises collection object information corresponding to the network equipment, so that the collector updates second file information based on the collection object information corresponding to the network equipment, and the second file information is collection object information stored in the collector;
and the subscription request receiving module is used for receiving the telemetry subscription request sent by the collector after the collector updates the second file information.
According to still another aspect of the present disclosure, there is provided an electronic apparatus including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the telemetry data acquisition method described above via execution of the executable instructions.
According to yet another aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the telemetry data acquisition method described above.
According to the telemetry data acquisition method provided by the embodiment of the disclosure, before the acquisition device sends a telemetry subscription request to the network device, the network device sends first file information to the acquisition device, wherein the first file information comprises acquisition object information corresponding to the network device; thus, the collector can update the second file information based on the collected object information corresponding to the network equipment. Thus, the updated second file information contains information corresponding to all the acquired object information in the first file information, and the telemetry data packaged by the network equipment can be analyzed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 is a schematic diagram of a system architecture in an embodiment of the disclosure;
FIG. 2 is a schematic diagram of a Telemetry static subscription flow in an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a dynamic subscription flow of a telemet in an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a collector interfacing with multiple OLT devices in an embodiment of the present disclosure;
FIG. 5 is a schematic flow chart of a telemetry data acquisition method according to an embodiment of the present disclosure;
FIG. 6 is a second schematic flow chart of a telemetry data acquisition method according to an embodiment of the disclosure;
FIG. 7 is a third schematic flow chart of a telemetry data acquisition method according to an embodiment of the disclosure;
FIG. 8 is a schematic diagram of a telemetry data acquisition method according to an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a telemetry data collector in an embodiment of the present disclosure;
FIG. 10 is a schematic diagram of a network device in an embodiment of the disclosure; and
FIG. 11 is a block diagram of a computer device in an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
The embodiment of the disclosure can be applied to network systems such as an operator network or a data center network.
In particular, embodiments of the present disclosure may also be applied in telemetry scenarios, where telemetry is a technique that transmits close range measurements of an object parameter to a remote measurement station to effect remote measurements.
Fig. 1 is a schematic diagram of a system architecture to which embodiments of the present disclosure may be applied, including at least one network device and a collector. The collector is used for monitoring and measuring the network equipment. The network device may be a router, switch, or the like. The network device is applied in a telemetry scenario, which may also be referred to as a telemetry device.
The collector acquires various statistical data on the network equipment so that operation and maintenance personnel can monitor the performance and faults of the network through the statistical data acquired by the data collector, display the running state of the network and plan and optimize the network.
Based on the background, the problem that the analysis cannot be performed sometimes occurs in the interaction process of the telemet protocol network device and the collector in the related art.
Specifically, the telemet acquisition data adopts an efficient and flexible Protocol Buffers binary coding mode, and a data structure is described through a proto file; the network equipment automatically generates a message packaging code based on the proto file, and automatically performs collected data serialization (packaging into a binary message) and continuously pushes data in a streaming mode; and the collector receives the auto-generated analysis code based on the proto file to analyze.
At present, in the interaction process of the Telemetry protocol network device and the collector, no matching checking mechanism of the proto files of the two parties exists, and if the proto files of the two parties are not matched, the analysis or the analysis of the output result error can not be performed.
Based on the above, the present disclosure provides a telemetry data collection method, where the collector automatically generates an analysis code based on the updated collector proto file and decides whether to output based on the type of the matching result, without affecting the equipment data encapsulation step and the analysis of other equipment data by the collector. In case of mismatching of the device and the collector proto file, the device collected data can also be resolved correctly.
For ease of understanding, the principle of telemet and related technical terms are first described below.
Telemetry is a remote, high-speed data collection technology from physical or virtual devices. The device periodically and actively transmits information such as optical link information, interface flow statistics, CPU or memory data and the like of the device to the collector through a Push Mode (Push Mode), and compared with one-to-one interaction of the traditional Pull Mode (Pull Mode), the device provides a data collection function with higher real time and higher speed.
And (3) carrying out static subscription on the telemet, wherein the equipment is used as a client, the collector is used as a server, and the equipment actively initiates connection to the collector to carry out data collection and uploading.
The narrow-definition telemet is a device characteristic, the broad-definition telemet is a closed-loop automatic operation and maintenance system, and the system consists of components such as network equipment, a collector, an analyzer, a controller and the like, and is divided into a network management side and a device side, as shown in fig. 2.
The telemet network management side and the equipment side cooperatively operate, and five operation steps are needed to be sequentially executed to complete the overall telemet static subscription:
static configuration: the controller configures equipment supporting the technology through a command line, subscribes to a data source, and completes data acquisition.
Pushing sample data or custom events: the network equipment reports the collected data or the custom event to the collector for receiving and storing according to the configuration requirement of the controller.
Reading data: the analyzer reads the sampled data or custom events stored by the collector.
Analysis data: the analyzer analyzes the read sampling data or the custom event and sends the analysis result to the controller, so that the controller can conveniently perform configuration management on the network and timely tune the network.
Adjusting network parameters: the controller issues the configuration which needs to be adjusted to the network equipment; after the configuration is released and takes effect, new sampling data or a custom event is reported to the collector, at the moment, the telemet network management side can analyze whether the regulated network effect accords with the expectation or not until the regulation is completed, and the whole business process forms a closed loop.
And (3) dynamically subscribing the telemet, wherein the equipment is used as a server, the collector is used as a client to initiate connection to the equipment, and the equipment performs data collection and uploading.
The narrow-definition telemet is a device characteristic, the broad-definition telemet is a closed-loop automatic operation and maintenance system, and the system consists of components such as network equipment, a collector, an analyzer, a controller and the like, and is divided into a network management side and a device side, as shown in fig. 3.
The telemet network management side and the equipment side cooperatively operate, and five operation steps are needed to be sequentially executed to complete the overall telemet dynamic subscription:
dynamic configuration: after relevant configuration of GRPC service is completed, equipment supporting Telemetry is configured to the equipment in a starting state by a collector, and data collection is completed.
Pushing sampling data: the network equipment reports the acquired data to the collector for receiving and storing according to the configuration requirement of the collector.
Reading data: the analyzer reads the sampled data stored by the collector.
Analysis data: the analyzer analyzes the read sampling data and sends the analysis result to the controller, so that the controller can conveniently perform configuration management on the network and timely adjust and optimize the network.
Adjusting network parameters: the controller issues the configuration which needs to be adjusted to the network equipment; after the configuration is released and takes effect, new sampling data can be reported to the collector, at the moment, the network management side of the telemet can analyze whether the network effect after the tuning meets the expectations or not, and until the tuning is completed, the whole business process forms a closed loop.
For the telemet device side: telemet=raw data+data model+coding format+transport protocol;
for the telemet network management side: telemet=collection system+storage system+application analysis system.
Raw data. The original data of the telemet sampling can come from a forwarding plane, a control plane and a management plane of the network equipment, and information such as interface flow statistics, CPU or memory data of the acquisition equipment is supported at present.
Coding format, supporting GPB (Google Protocol Buffer) coding format.
The GPB coding format is a serialization structure data format which is irrelevant to languages, platform and expansibility and is used for communication protocols and data storage.
The elemet provides a flexible, efficient and automatic structure data serialization mechanism by using the GPB coding format (the file name suffix of the GPB coding format is proto), and belongs to binary coding, and the device has good performance and high efficiency.
GPB describes a dictionary, i.e., a data structure description, used by the code through a ". Proto" file. The user can automatically generate codes (such as java codes) according to the proto file by using Protoc and other tool software (such as Protoc-3.0.2-windows-x86_64.Exe files), and then the user performs secondary development based on the automatically generated codes to encode and decode GPB, so that the docking with the equipment is realized.
In some embodiments, the collector may interface with multiple OLT (optical line terminal ) devices, as shown in fig. 4, the collector needs to be responsible for analyzing all OLT reporting data based on the analysis code generated by the proco 1 in the collector, and the processing efficiency of the collector by the test second level collection is very high, and running multiple sets of analysis codes in the collector and analyzing strategies separately according to different proco devices in the collector does not meet the performance requirement.
The proto file may be a unique number (key) defined for each data (value) to be collected, and specifically, may be tag+value in a message. For example, the optical module temperature is 40 ℃; the device package message may be "2" + "4000" (unit 0.01 ℃); when the collector analyzes according to the same proto file, the temperature is analyzed according to '2', and '4000' is analyzed to 40 ℃.
Fig. 5 shows a flowchart of a telemetry data acquisition method according to an embodiment of the present disclosure, and as shown in fig. 5, the telemetry data acquisition method provided in the embodiment of the present disclosure includes the following steps:
step S502, the network equipment sends first file information to the collector, wherein the first file information comprises collection object information corresponding to the network equipment;
in step S504, the collector updates the second file information based on the collection object information corresponding to the network device, where the second file information is the collection object information stored in the collector.
It should be noted that, after the above step S504, the collector may send a telemetry subscription request to the network device, and then may perform subscription normally according to a scheme in the related art.
The "subscription" herein may be a terleary static subscription or a terleary dynamic subscription as described above.
The following describes the above steps in detail, as follows:
the details of the "network device" and the "collector" are described in the foregoing, and are not described herein.
The "first file information" in the above steps may be a "network device proto file", and the "second file information" may be a "collector proto file".
The process of updating the second file information in step S504 described above will be described in detail with reference to a specific example.
In some embodiments, the acquired object information corresponding to the network device includes first object information. The step S504 may specifically include:
when the second file information does not contain the second object information, the second object information is stored in the second file information, and the second object information is acquisition object information corresponding to the first object information.
As one example, the first file information may be as follows:
Figure BDA0003439911960000081
the collected object information corresponding to the network device may include "optical module temperature in 0.1 ℃," bias current in 0.01mA "," transmission power in 0.01dBm ", and so on in the above examples.
The second file information may be as follows:
Figure BDA0003439911960000091
the collection object information stored in the collector may include "optical module temperature in 0.1 ℃," optical module power supply voltage in 0.01V "," optical power at idle time in 0.01dBm ", and so on in the above examples.
When the second file information does not contain the second object information, the second object information is stored in the second file information, and the second object information is acquisition object information corresponding to the first object information.
Here, the second document information does not include "bias current in 0.01mA", and at this time "bias current in 0.01mA" may be stored in the second document information. That is, in this example, the second object information is the same as the first object information.
The second object information is acquisition object information corresponding to the first object information, and the second object information may be the same or different from the first object information.
Here, taking the first file information and the second file information in the above example as an example, the updated second file information may be as follows:
Figure BDA0003439911960000092
in the embodiment of the present disclosure, the process of updating the second file information may be understood as a matching process of the second file information and the first file information, and updating the second file information based on a matching result. After the matching process is finished, the data output result is correspondingly transformed.
In some embodiments, the "first file information" is a "network device proto file" and the "second file information" is a "collector proto file", based on which, in conjunction with table 1, the matching process in the present disclosure is described in detail.
TABLE 1 File information matching procedure
Figure BDA0003439911960000101
As shown in table 1, the above-described matching process may include four types as follows:
type 1: the key value pairs of the proto file are the same, namely the acquired object information is the same, the matching is successful, and the acquired object information is output after analysis;
type 2: the network equipment proto is provided with a collector proto, a corresponding key value pair (collecting object information) is added to a file of the collector proto, whether the corresponding key value pair is needed or not is judged, and whether the corresponding key value pair is output or not is determined;
type 3: the collector proto is provided with no network equipment proto, no reported data and no output result;
type 4: the key values of the two are different in representation, are not matched, and are discarded after analysis.
In some embodiments, the matching result in table 1 may be determined based on the telemetry subscription request, and when the parsed telemetry data is subscribed data in the telemetry subscription request, that is, the matching result, the telemetry data is output.
In some embodiments, the above method may further comprise the steps of:
the network equipment encapsulates the acquired telemetry data based on the first file information and sends the encapsulated telemetry data to the acquirer;
the collector receives the encapsulated telemetry data sent by the network equipment;
the collector analyzes the encapsulated telemetry data based on the updated second file information.
As one example, the encapsulated "device package data" is as follows:
Figure BDA0003439911960000111
port name: {"1"+"1.7.1"}
Figure BDA0003439911960000112
Optical module temperature: {"2"+"150"}
Figure BDA0003439911960000113
Bias current: {"4"+"500"}
Figure BDA0003439911960000114
Transmit optical power: {"5"+"120"}
First file information and second file information, see examples above. Based on this, the matching results are shown in table 2:
table 2 matching results
Key with a key “1” “2” “3” “4” “5”
Results Type 1 Type 1 Type 3 Type 2 Type 4
The updated second file information is as follows:
Figure BDA0003439911960000115
based on the data output policy in table 1, the output data in this example is as follows:
Figure BDA0003439911960000121
port name: {"1"+"1.7.1"}
Figure BDA0003439911960000122
Optical module temperature: {"2"+"150"}
Figure BDA0003439911960000123
Bias current: { "4" + "500" } (if the acquisition determines that no bias current is being acquired, then this data is discarded)
In a specific example, the "first file information" is a "network device proco file" and the "second file information" is a "collector proco file", please refer to fig. 6, and the telemetry data collecting method provided in the embodiment of the disclosure may include the following steps:
step S602, the proto file information of the network equipment is reported to a collector;
step S604, the collector generates a matching result based on a matching strategy;
step S606, the collector issues a collection subscription,
step S608, the network device performs data packet based on the code automatically generated by the network device proto;
step S610, the network equipment reports the collected data message;
in step S612, the collector automatically generates a code based on the collector proco to parse and generate a parsing result.
In step S604, if the proto files do not match, the problem of erroneous output results cannot be resolved or resolved. Specific matching strategies are detailed in table 1 above.
In the related art, the telemet mainly solves the problem that the equipment supports a telemet function related method or a method for flexibly and rapidly processing data after a collector finishes data analysis, and if the proto files of the two parties are not matched, analysis or analysis of an output result is not possible. According to the telemetry data acquisition method, on the basis of not changing the network equipment data encapsulation flow and the automatic process of generating and analyzing the analysis code by the acquisition device proto file, the matching processing of the unmatched proto file is realized, and the correct analysis and presentation of the data are ensured.
Fig. 7 shows a flowchart of a telemetry data acquisition method according to an embodiment of the present disclosure, which may be applied to a collector, as shown in fig. 7, where the telemetry data acquisition method provided in the embodiment of the present disclosure includes the following steps:
step S702, before a telemetry subscription request is sent to a network device, receiving first file information from the network device, wherein the first file information comprises acquisition object information corresponding to the network device;
step S704, based on the collection object information corresponding to the network device, updates the second file information, where the second file information is the collection object information stored in the collector.
Before a collector sends a telemetry subscription request to network equipment, the network equipment firstly sends first file information to the collector, wherein the first file information comprises acquisition object information corresponding to the network equipment; thus, the collector can update the second file information based on the collected object information corresponding to the network equipment. Thus, the updated second file information contains information corresponding to all the acquired object information in the first file information, and the telemetry data packaged by the network equipment can be analyzed.
In some embodiments, the acquired object information corresponding to the network device includes first object information;
accordingly, the above step S704 may be specifically implemented as follows:
when the second file information does not contain the second object information, the second object information is stored in the second file information, and the second object information is acquisition object information corresponding to the first object information.
In some embodiments, when the second object information is included in the second file information, the second file information is not updated.
In some embodiments, the method may further comprise the following steps, based on the steps above:
receiving encapsulated telemetry data sent by network equipment;
and analyzing the encapsulated telemetry data based on the updated second file information.
In some embodiments, telemetry data is output when parsed telemetry data is data subscribed to in a telemetry subscription request.
In some embodiments, the method may further comprise the following steps, based on the steps above:
and sending a telemetry subscription request to the network equipment so that the network equipment encapsulates the acquired telemetry data based on the first file information and sends the encapsulated telemetry data to the acquirer.
Based on the same inventive concept, the embodiment of the present disclosure further provides a telemetry data acquisition method applied to a network device, as shown in fig. 8, where the method includes:
step S802, first file information is sent to a collector, the first file information comprises collection object information corresponding to network equipment, so that the collector updates second file information based on the collection object information corresponding to the network equipment, and the second file information is collection object information stored in the collector;
step S804, after the collector updates the second file information, a telemetry subscription request sent by the collector is received.
In some embodiments, the method may further comprise the following steps, based on the steps above:
packaging the acquired telemetry data based on the first file information;
and sending the encapsulated telemetry data to a collector so that the collector analyzes the encapsulated telemetry data based on the updated second file information.
Based on the same inventive concept, there is also provided in embodiments of the present disclosure a telemetry data collector, as described in the following embodiments. Since the principle of the telemetry data collector embodiment for solving the problem is similar to that of the method embodiment, the implementation of the telemetry data collector embodiment can be referred to the implementation of the method embodiment, and the repetition is omitted.
Fig. 9 illustrates a telemetry data collector in an embodiment of the present disclosure, as shown in fig. 9, the telemetry data collector 900 includes:
an information receiving module 902, configured to receive, before sending a telemetry subscription request to a network device, first file information from the network device, where the first file information includes acquisition object information corresponding to the network device;
the information updating module 904 is configured to update second file information based on acquisition object information corresponding to the network device, where the second file information is the acquisition object information stored in the acquirer.
In some embodiments, the acquired object information corresponding to the network device includes first object information;
accordingly, the information updating module 904 is specifically configured to store the second object information in the second file information when the second file information does not include the second object information, where the second object information is collected object information corresponding to the first object information.
In some embodiments, the information updating module 904 is further configured to not update the second file information when the second file information includes the second object information.
In some embodiments, the telemetry data collector 900 may further include:
the data receiving module is used for receiving the encapsulated telemetry data sent by the network equipment;
and the data analysis module is used for analyzing the encapsulated telemetry data based on the updated second file information.
In some embodiments, the telemetry data collector 900 may further include:
and the data output module is used for outputting the telemetry data when the parsed telemetry data is subscribed data in the telemetry subscription request.
In some embodiments, the telemetry data collector 900 may further include:
the subscription request sending module is used for sending a telemetry subscription request to the network equipment so that the network equipment encapsulates the acquired telemetry data based on the first file information and sends the encapsulated telemetry data to the acquirer.
The telemetry data collector provided in the embodiment of the present application may be used to execute the telemetry data collecting method provided in the above method embodiments, and its implementation principle and technical effects are similar, and for the sake of brevity, it is not repeated here.
Based on the same inventive concept, there is also provided a network device in an embodiment of the present disclosure, as shown in fig. 10, the network device 1000 includes:
the information sending module 1002 is configured to send first file information to the collector, where the first file information includes collection object information corresponding to the network device, so that the collector updates second file information based on the collection object information corresponding to the network device, where the second file information is collection object information stored in the collector;
the subscription request receiving module 1004 is configured to receive a telemetry subscription request sent by the collector after the collector updates the second file information.
In some embodiments, the network device 1000 may further include:
the data packaging module is used for packaging the acquired telemetry data based on the first file information;
and the data transmitting module is used for transmitting the encapsulated telemetry data to the collector so that the collector analyzes the encapsulated telemetry data based on the updated second file information.
The network device provided in the embodiment of the present application may be used to execute the telemetry data acquisition method provided in the above embodiments of the method, and its implementation principle and technical effects are similar, and for the sake of brevity, it is not repeated here.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 1100 according to such an embodiment of the present disclosure is described below with reference to fig. 11. The electronic device 1100 shown in fig. 11 is merely an example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in fig. 11, the electronic device 1100 is embodied in the form of a general purpose computing device. Components of electronic device 1100 may include, but are not limited to: the at least one processing unit 1110, the at least one memory unit 1120, a bus 1130 connecting the different system components, including the memory unit 1120 and the processing unit 1110.
Wherein the storage unit stores program code that is executable by the processing unit 1110 such that the processing unit 1110 performs steps according to various exemplary embodiments of the present disclosure described in the above-described "exemplary methods" section of the present specification. For example, the processing unit 1110 may perform the steps of the method embodiments described above.
The storage unit 1120 may include a readable medium in the form of a volatile storage unit, such as a Random Access Memory (RAM) 11201 and/or a cache memory 11202, and may further include a Read Only Memory (ROM) 11203.
The storage unit 1120 may also include a program/utility 11204 having a set (at least one) of program modules 11205, such program modules 11205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The bus 1130 may be a local bus representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a bus using any of a variety of bus architectures.
The electronic device 1100 may also communicate with one or more external devices 1140 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1100, and/or any devices (e.g., routers, modems, etc.) that enable the electronic device 1100 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 1150. Also, electronic device 1100 can communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 1160. As shown, network adapter 1160 communicates with other modules of electronic device 1100 via bus 1130. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 1100, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium, which may be a readable signal medium or a readable storage medium, is also provided. On which a program product is stored which enables the implementation of the method described above of the present disclosure. In some possible implementations, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device.
More specific examples of the computer readable storage medium in the present disclosure may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In this disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Alternatively, the program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In particular implementations, the program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the description of the above embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (12)

1. A telemetry data acquisition method for use with a collector, the method comprising:
before a telemetry subscription request is sent to network equipment, first file information from the network equipment is received, wherein the first file information comprises acquisition object information corresponding to the network equipment;
updating second file information based on the acquired object information corresponding to the network equipment, wherein the second file information is acquired object information stored in the acquirer.
2. The method according to claim 1, wherein the acquired object information corresponding to the network device includes first object information;
the updating the second file information based on the collected object information corresponding to the network device includes:
and when the second file information does not contain second object information, storing the second object information in the second file information, wherein the second object information is acquisition object information corresponding to the first object information.
3. The method according to claim 2, wherein the method further comprises:
when the second file information contains second object information, the second file information is not updated.
4. A method according to any one of claims 1-3, wherein the method further comprises:
receiving encapsulated telemetry data sent by the network equipment;
and analyzing the encapsulated telemetry data based on the updated second file information.
5. The method according to claim 4, wherein the method further comprises:
and outputting the telemetry data when the parsed telemetry data is subscribed data in the telemetry subscription request.
6. The method according to claim 1, wherein the method further comprises:
and sending a telemetry subscription request to network equipment so that the network equipment encapsulates the acquired telemetry data based on the first file information and sends the encapsulated telemetry data to the acquirer.
7. A telemetry data acquisition method for use with a network device, the method comprising:
the method comprises the steps that first file information is sent to a collector, the first file information comprises collection object information corresponding to network equipment, so that the collector updates second file information based on the collection object information corresponding to the network equipment, and the second file information is collection object information stored in the collector;
and after the collector updates the second file information, receiving a telemetry subscription request sent by the collector.
8. The method of claim 7, wherein the method further comprises:
packaging the acquired telemetry data based on the first file information;
and sending the packaged telemetry data to the collector, so that the collector analyzes the packaged telemetry data based on the updated second file information.
9. A telemetry data collector, the collector comprising:
the information receiving module is used for receiving first file information from the network equipment before sending a telemetry subscription request to the network equipment, wherein the first file information comprises acquisition object information corresponding to the network equipment;
and the information updating module is used for updating second file information based on the acquired object information corresponding to the network equipment, wherein the second file information is acquired object information stored in the acquirer.
10. A network device, the network device comprising:
the information sending module is used for sending first file information to the collector, wherein the first file information comprises collection object information corresponding to the network equipment, so that the collector updates second file information based on the collection object information corresponding to the network equipment, and the second file information is collection object information stored in the collector;
and the subscription request receiving module is used for receiving the telemetry subscription request sent by the collector after the collector updates the second file information.
11. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the telemetry data acquisition method of any one of claims 1-8 via execution of the executable instructions.
12. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the telemetry data acquisition method of any one of claims 1 to 8.
CN202111626989.3A 2021-12-28 2021-12-28 Telemetry data acquisition method and related equipment Pending CN116405802A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111626989.3A CN116405802A (en) 2021-12-28 2021-12-28 Telemetry data acquisition method and related equipment
PCT/CN2022/112660 WO2023124109A1 (en) 2021-12-28 2022-08-16 Telemetry data collection method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111626989.3A CN116405802A (en) 2021-12-28 2021-12-28 Telemetry data acquisition method and related equipment

Publications (1)

Publication Number Publication Date
CN116405802A true CN116405802A (en) 2023-07-07

Family

ID=86997388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111626989.3A Pending CN116405802A (en) 2021-12-28 2021-12-28 Telemetry data acquisition method and related equipment

Country Status (2)

Country Link
CN (1) CN116405802A (en)
WO (1) WO2023124109A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116760463A (en) * 2023-08-09 2023-09-15 中国电信股份有限公司 Optical fiber cable monitoring method and device, storage medium and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9258132B2 (en) * 2013-06-06 2016-02-09 Alcatel Lucent NETCONF SNMP gateway
CN108737453B (en) * 2018-08-29 2020-07-21 山东网智物联网科技有限公司 Telemetry data organization method and device for communication of Internet of things
CN111049698B (en) * 2018-10-15 2022-04-29 华为技术有限公司 Telemetering data acquisition method and device
CN110398985B (en) * 2019-08-14 2022-11-11 北京信成未来科技有限公司 Distributed self-adaptive unmanned aerial vehicle measurement and control system and method
CN112671818A (en) * 2019-10-16 2021-04-16 华为技术有限公司 Data subscription method, device and system
CN113784237B (en) * 2020-06-09 2022-08-02 中国电信股份有限公司 Method, device, network equipment and computer medium for reporting collected data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116760463A (en) * 2023-08-09 2023-09-15 中国电信股份有限公司 Optical fiber cable monitoring method and device, storage medium and electronic equipment
CN116760463B (en) * 2023-08-09 2023-11-10 中国电信股份有限公司 Optical fiber cable monitoring method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2023124109A1 (en) 2023-07-06

Similar Documents

Publication Publication Date Title
US11146286B2 (en) Compression of JavaScript object notation data using structure information
CN109495392B (en) Message conversion processing method and device, electronic equipment and storage medium
CN110457176B (en) Monitoring method and device for distributed system, storage medium and electronic equipment
CN111309550A (en) Data acquisition method, system, equipment and storage medium of application program
US11645166B2 (en) Method, device and computer program product for backuping data
CN116405802A (en) Telemetry data acquisition method and related equipment
US8244844B2 (en) Tool for data generation for simple network management protocol (SNMP)
CN114928574B (en) Information transmission method, apparatus, electronic device, and computer-readable medium
CN114040485A (en) Method for remote unit open station, base band unit, communication system and medium
US20070220157A1 (en) Simple network management protocol (SNMP) agent system and method
CN112583743A (en) Distributed file exchange method and device
CN117014527A (en) Data processing method and device, storage medium and electronic equipment
CN113377363B (en) Cloud implementation method for automatically generating source codes for various electric control end private protocols
CN112416739A (en) Test method and device and electronic equipment
CN114416597A (en) Test case record generation method and device
CN110548285B (en) Game communication control method and device, medium and electronic equipment
CN113923100A (en) Alarm acquisition method, alarm acquisition system, storage medium and electronic device
CN115437906A (en) Test method and device
CN113760680A (en) Method and device for testing system pressure performance
CN112433752A (en) Page parsing method, device, medium and electronic equipment
CN111367791A (en) Method, device, medium and electronic equipment for generating test case
WO2024119917A1 (en) Sensing measurement method and apparatus, and related device
CN113850988B (en) Key value correction method, device, equipment and computer readable medium
CN117176835A (en) Network data acquisition method and device, readable storage medium and electronic equipment
CN110727391A (en) Transaction data storage method and device, block chain system, medium and electronic equipment

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