CN112003776B - Message processing method and system - Google Patents

Message processing method and system Download PDF

Info

Publication number
CN112003776B
CN112003776B CN202010810013.0A CN202010810013A CN112003776B CN 112003776 B CN112003776 B CN 112003776B CN 202010810013 A CN202010810013 A CN 202010810013A CN 112003776 B CN112003776 B CN 112003776B
Authority
CN
China
Prior art keywords
message
telemetry
tunnel
information
switching device
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.)
Active
Application number
CN202010810013.0A
Other languages
Chinese (zh)
Other versions
CN112003776A (en
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.)
Guangdong Communications and Networks Institute
Original Assignee
Guangdong Communications and Networks Institute
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 Guangdong Communications and Networks Institute filed Critical Guangdong Communications and Networks Institute
Priority to CN202010810013.0A priority Critical patent/CN112003776B/en
Publication of CN112003776A publication Critical patent/CN112003776A/en
Application granted granted Critical
Publication of CN112003776B publication Critical patent/CN112003776B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a message processing method and a system, wherein the method comprises the following steps: after receiving an original message, the first switching equipment acquires telemetry information according to a preset telemetry task through a first in-band network telemetry module and adds the telemetry information to a packaged message; the first switching equipment takes the encapsulation message as a tunnel payload to carry out encapsulation to obtain a tunnel message and sends the tunnel message to the second switching equipment through a tunnel connection channel established in advance; the second switching equipment removes the tunnel header to obtain an encapsulated message, acquires the telemetering information through a second in-band network telemetering module, and adds the acquired second telemetering information into the encapsulated message; and the second switching equipment forwards the encapsulated message, or extracts all telemetering information in the encapsulated message and sends the telemetering information to the telemetering server. The present invention can apply the in-band network telemetry to the public packet network using the conventional switching device by applying the tunneling technique to the network telemetry system.

Description

Message processing method and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for processing a packet.
Background
With the advent of new business applications and the growing size of users, networks are characterized by "high-rate, large-scale, multiple-access, unpredictable". Traditional network management and control methods and means have been difficult to solve the challenges of existing networks and future networks. Therefore, a network manager needs to subvert the traditional network monitoring and fault removing method, and provides a real-time flexible measurement solution capable of dealing with scene use cases such as network state measurement, network failure detection, fault location and recovery.
In-band Network Telemetry (INT) is a framework for collecting and reporting Network status directly from the Network data plane without intervention of the Network control plane. In an in-band network Telemetry architecture, a switching device forwards and processes data packets carrying Telemetry instructions (telemetering instructions). These telemetry commands tell network devices with network telemetry capabilities what network state information should be collected and written to as the telemetry data packets pass through the device.
However, in the prior art, in order to use the telemetry function in the network, all the switching devices through which the message passes must support the in-band network telemetry technology, and for the conventional switching devices, the message is discarded when the unrecognizable INT Header and Metadata (telemetry information Metadata) are encountered.
For the inside of a data center, with the wide use of switching equipment supporting in-band network telemetry technology, the network state measurement, network failure detection, fault location and recovery and the like in the data center can be realized through the in-band network telemetry technology. The use of switching devices that support in-band network telemetry for public packet networks is still the phoenix unicorn.
With the faster popularization of distributed data/computing center architectures, more and more networks between data centers need to be accurately measured, and reliable basis is provided for reasonably and efficiently adjusting network routes. Therefore, how to apply the in-band network telemetry to the public packet network using the conventional switching device becomes a problem to be solved urgently.
Disclosure of Invention
Embodiments of the present invention provide a method and a system for processing a packet, so as to solve the above technical problem, and thereby apply an in-band network telemetry to a public packet network using a conventional switching device.
In order to solve the above technical problem, an embodiment of the present invention provides a message processing method, including the steps of:
after receiving an original message, a first switching device acquires telemetering information according to a preset telemetering task through a first in-band network telemetering module, and then adds the original message and the acquired first telemetering information to an encapsulated message; wherein the first switching device comprises the first in-band network telemetry module;
the first switching equipment takes the encapsulated message as a tunnel payload, adds a tunnel header for encapsulation to obtain a tunnel message, and sends the tunnel message to second switching equipment through a pre-established tunnel connection channel; wherein the second switching device comprises a second in-band network telemetry module;
the second switching equipment receives the tunnel message, removes the tunnel header to obtain the encapsulated message, acquires the telemetering information according to the telemetering task through the second in-band network telemetering module, and adds the acquired second telemetering information into the encapsulated message;
and the second switching equipment forwards the encapsulated message, or extracts all telemetering information in the encapsulated message and sends the telemetering information to a telemetering server.
Further, after receiving the original message, the first switching device collects telemetry information according to a preset telemetry task through a first in-band network telemetry module, and then adds the original message and the collected first telemetry information to the encapsulated message, specifically:
after receiving an original message, a first switching device inserts an INT head into the original message according to a preset telemetry task through a first in-band network telemetry module;
and acquiring telemetry information according to the instruction of the INT head, and inserting the acquired first telemetry information into the INT head to obtain the encapsulated message.
Further, the second switching device receives the tunnel message, removes the tunnel header, obtains the encapsulated message, acquires telemetry information according to the telemetry task through the second in-band network telemetry module, and adds the acquired second telemetry information to the encapsulated message, specifically:
and the second switching equipment receives the tunnel message, removes the tunnel header to obtain the encapsulated message, acquires the telemetering information according to the instruction of the INT header through the second in-band network telemetering module, and inserts the acquired second telemetering information into the encapsulated message.
Further, the second switching device receives the tunnel message and removes the tunnel header to obtain the encapsulated message, and performs telemetry information acquisition according to the instruction of the INT header by the second in-band network telemetry module, and inserts the acquired second telemetry information into the encapsulated message, specifically:
the second switching equipment receives the tunnel message and removes the tunnel header to obtain the encapsulation message;
performing type field matching on the INT head according to a preset telemetry task type through the second in-band network telemetry module;
and when the matching of the type fields is successful, acquiring the telemetry information according to the instruction of the INT head, and inserting the acquired second telemetry information into the packaging message.
Further, the second switching device forwards the encapsulated packet, or extracts all telemetry information in the encapsulated packet and sends the extracted telemetry information to a telemetry server, specifically:
the second switching equipment judges whether the second switching equipment is a telemetering terminal or not;
if not, forwarding the packaging message;
and if so, extracting all the telemetry information in the packaged message and sending the telemetry information to a telemetry server.
In order to solve the same technical problem, the invention also provides a message processing system, which comprises a first exchange device, a second exchange device and a remote measuring server;
the first switching equipment is used for acquiring telemetry information according to a preset telemetry task through a first in-band network telemetry module after receiving an original message, and then adding the original message and the acquired first telemetry information to an encapsulated message; wherein the first switching device comprises the first in-band network telemetry module;
the first switching device is further configured to use the encapsulation packet as a tunnel payload, add a tunnel header to perform encapsulation to obtain a tunnel packet, and send the tunnel packet to the second switching device through a pre-established tunnel connection channel; wherein the second switching device comprises a second in-band network telemetry module;
the second switching device is configured to receive the tunnel message, remove the tunnel header, obtain the encapsulated message, acquire telemetry information according to the telemetry task through the second in-band network telemetry module, and add the acquired second telemetry information to the encapsulated message;
the second switching device is further configured to forward the encapsulation message, or extract all telemetry information in the encapsulation message and send the telemetry information to the telemetry server.
Further, the first switching device is configured to, after receiving the original packet, perform telemetry information acquisition according to a preset telemetry task through a first in-band network telemetry module, and then add the original packet and the acquired first telemetry information to the encapsulated packet, specifically:
the first switching equipment is used for inserting an INT head into an original message through a first in-band network telemetry module according to a preset telemetry task after receiving the original message;
and acquiring telemetry information according to the instruction of the INT head, and inserting the acquired first telemetry information into the INT head to obtain the encapsulated message.
Further, the second switching device is configured to receive the tunnel packet and remove the tunnel header to obtain the encapsulated packet, acquire telemetry information according to the telemetry task through the second in-band network telemetry module, and add the acquired second telemetry information to the encapsulated packet, specifically:
the second switching device is configured to: and receiving the tunnel message, removing the tunnel header to obtain the encapsulated message, acquiring telemetry information through the second in-band network telemetry module according to the instruction of the INT header, and inserting the acquired second telemetry information into the encapsulated message.
Further, the second switching device is configured to receive the tunnel packet and obtain the encapsulated packet after removing the tunnel header, acquire telemetry information according to the instruction of the INT header by using the second in-band network telemetry module, and insert the acquired second telemetry information into the encapsulated packet, specifically:
the second switching device is configured to: receiving the tunnel message and removing the tunnel header to obtain the encapsulation message; performing type field matching on the INT head according to a preset telemetry task type through the second in-band network telemetry module; and when the matching of the type fields is successful, acquiring the telemetry information according to the instruction of the INT head, and inserting the acquired second telemetry information into the packaging message.
Further, the second switching device is configured to forward the encapsulation packet, or extract all telemetry information in the encapsulation packet and send the extracted telemetry information to a telemetry server, specifically:
the second switching equipment is used for judging whether the second switching equipment is a telemetering terminal;
if not, forwarding the packaging message;
and if so, extracting all the telemetry information in the packaged message and sending the telemetry information to a telemetry server.
Compared with the prior art, the invention has the following beneficial effects:
the embodiment of the invention provides a message processing method and a system, wherein the method comprises the following steps: after receiving the original message, the first switching equipment acquires telemetry information according to a preset telemetry task through a first in-band network telemetry module and adds the telemetry information to a packaged message; the first switching equipment takes the encapsulation message as a tunnel payload to carry out encapsulation to obtain a tunnel message and sends the tunnel message to the second switching equipment through a tunnel connection channel established in advance; the second switching equipment obtains an encapsulation message after removing the tunnel header, carries out telemetering information acquisition through a second in-band network telemetering module, and adds the acquired second telemetering information into the encapsulation message; and the second switching equipment forwards the encapsulated message, or extracts all the telemetering information in the encapsulated message and sends the telemetering information to the telemetering server. The present invention can apply the in-band network telemetry to the public packet network using the conventional switching device by applying the tunneling technique to the network telemetry system.
Drawings
Fig. 1 is a schematic flow chart of a message processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an in-band network telemetry system provided by an embodiment of the present invention;
fig. 3 is a schematic diagram of a tunneling principle provided by an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating an operating principle of a message processing method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a message processing method, including:
s1, after receiving the original message, the first exchange device collects the telemetering information through the first in-band network telemetering module according to the preset telemetering task, and then adds the original message and the collected first telemetering information to the encapsulated message; wherein the first switching device comprises the first in-band network telemetry module.
In the embodiment of the present invention, further, step S1 specifically includes:
after receiving an original message, a first switching device inserts an INT head into the original message according to a preset telemetry task through a first in-band network telemetry module;
and acquiring telemetry information according to the instruction of the INT head, and inserting the acquired first telemetry information into the INT head to obtain the encapsulated message.
S2, the first exchange device takes the encapsulation message as a tunnel payload, adds a tunnel header for encapsulation to obtain a tunnel message, and sends the tunnel message to a second exchange device through a pre-established tunnel connection channel; wherein the second switching device comprises a second in-band network telemetry module;
s3, the second exchange device receives the tunnel message, removes the tunnel header to obtain the encapsulated message, acquires the telemetering information according to the telemetering task through the second in-band network telemetering module, and adds the acquired second telemetering information into the encapsulated message;
in the embodiment of the present invention, further, step S3 specifically includes:
and the second switching equipment receives the tunnel message, removes the tunnel header to obtain the encapsulated message, acquires the telemetering information according to the instruction of the INT header through the second in-band network telemetering module, and inserts the acquired second telemetering information into the encapsulated message.
In this embodiment of the present invention, further, the second switching device receives the tunnel packet and removes the tunnel header to obtain the encapsulated packet, and performs telemetry information acquisition according to the instruction of the INT header by using the second in-band network telemetry module, and inserts the acquired second telemetry information into the encapsulated packet, specifically:
the second switching equipment receives the tunnel message and removes the tunnel header to obtain the encapsulation message;
performing type field matching on the INT head according to a preset telemetry task type through the second in-band network telemetry module;
and when the matching of the type fields is successful, acquiring the telemetry information according to the instruction of the INT head, and inserting the acquired second telemetry information into the packaging message.
S4, the second exchange equipment forwards the packaged message, or extracts all telemetering information in the packaged message and sends the telemetering information to a telemetering server.
In the embodiment of the present invention, further, in step S4, specifically, the step includes:
the second switching equipment judges whether the second switching equipment is a telemetering terminal or not;
if not, forwarding the packaging message;
and if so, extracting all the telemetry information in the packaged message and sending the telemetry information to a telemetry server.
It should be noted that, as shown in fig. 2, the packet processing flow of in-band network telemetry is as follows:
1) when a common data message reaches a first switching node of the in-band network telemetry system, the in-band network telemetry module matches and mirrors the message through a sampling mode set on switching equipment, an INT head is inserted after a four-layer head according to the requirement of a telemetry task, and telemetry information appointed by the INT head is packaged into MetaData (MetaData, MD) and inserted after the INT head; among them, OSI (open systems interconnection) divides a series of network protocols of internet connection into seven layers, of which the fourth layer is a transport layer, such as TCP or UDP. The head of the four layers is positioned between the packet head of the TCP or UDP and the packet data;
2) when the message is forwarded to the intermediate node, the switching equipment is inserted into the MD after the INT head is successfully matched; it should be noted that all switching devices participating in the telemetry task are uniformly paced, i.e., a controller notifies the switching device INT header format definitions uniformly in advance. When a message carrying an INT header and an MD is received, the switching device may compare the INT header format definition previously notified by the controller. If the matching is successful, the MD is continuously inserted as required, and if the matching is failed, the message is discarded;
3) when the message is forwarded to the last hop of the in-band network telemetry system, the switching equipment is matched with an INT head and inserted into the last MD, extracts all telemetry information and forwards the telemetry information to the telemetry server;
4) and the telemetry server analyzes the telemetry information in the telemetry message and reports the telemetry information to an upper layer telemetry application program.
Referring to fig. 3, it is additionally noted that tunneling is itself a way of communicating data between networks through the use of the infrastructure of a packet network. The data packets (or payloads) communicated using the tunnel may be data frames or messages of different protocols. The tunneling protocol re-encapsulates the data frames or packets of these other protocols in a new header for transmission. The new header provides routing information to enable the encapsulated payload data to be delivered over the packet network. The encapsulated packets are routed through the packet network between the two endpoints of the tunnel. The logical path through which an encapsulated packet travels over a packet network is called a tunnel. Once the network endpoint is reached, the data will be unpacked and forwarded to the final destination.
It can be understood that, in order to solve the problem in the prior art that the common message is discarded by the conventional switching device after adding the telemetry information, so as to achieve the purpose that the in-band network telemetry technology is applied to the packet network using the conventional switching device, the present invention provides a message processing method, which includes the following steps:
1. the method comprises the steps that a route between two switching devices with an in-band network remote control function is enabled to be accessible, and a tunnel connection is established, wherein a packet network passed by the tunnel comprises one or more switching devices (which can be traditional switching devices which do not support the in-band network remote control function); it should be noted that tunneling is a common technique, such as L2TP protocol used for tunneling at the second layer and IPSec and GRE used for tunneling at the third layer. In any protocol, the two ends of the tunnel only need to complete negotiation and fill the negotiation result in the tunnel header, and the content of the tunnel payload is not concerned. Therefore, the invention does not need to care which protocol is used for establishing tunnel connection, and only needs to put the message carrying the telemetering channel into the tunnel payload and completely send the message to the opposite end;
2. when a common data message reaches a first switching device supporting the In-band Network remote control function, an In-band Network remote control module matches and mirrors the message through a sampling mode set on the switching device, an INT (In-band Network remote control) head is inserted into the back of a four-layer head according to the requirement of a remote control task, and remote control information appointed by the INT head is encapsulated into MetaData (MetaData, MD) and inserted into the back of the INT head; if the data message is the data message inserted with the INT head, the in-band network telemetry module of the exchange equipment firstly performs INT head matching and then inserts an MD again after matching is successful;
for example, the result of the telemetry task is to check the time when the specified message passes through each switching device, and the result can be used to determine the time used by each path through which the message passes. Then INT may contain information such as the type of the telemetry task, and MD may fill in the precise time that the message has passed through the switching device. When the telemetry task is completed, the last MD comprises a plurality of time point information;
the controller informs all the switching devices to perform path time utilization telemetering once, then the switching device initiating the task reads a telemetering task type field in the INT head if the type of the telemetering task filled in a certain field in the INT head is path time utilization telemetering, and confirms that the type of the telemetering task is the same as the path time utilization telemetering notified by the controller before, matching is successful, and matching is failed if the type of the telemetering task is different;
the time difference between the messages respectively filled in the MD and the MD is the time for the path transmission between the two devices. Compared with other paths in use, the method can judge whether the path is fast or slow, thereby further providing basis for routing scheduling or network problem investigation;
3. the message packaged with the telemetering information is used as a tunnel payload, and a tunnel header is added to the message packaged by the first switching equipment and then the message is sent out through a tunnel;
4. when the message with the packaged telemetering information and the tunnel header is routed to a tunnel terminal point, namely a second switching device supporting the in-band network remote control function through a packet network, the tunnel header is removed and is delivered to an in-band network telemetering module in the switching device;
5. after the in-band network telemetry module of the second switching equipment supporting the in-band network telemetry function is successfully matched with the INT head, inserting an MD (telemetry information acquired by the second switching equipment), and then, if the switching equipment is a telemetry end point, extracting all the telemetry information and forwarding the telemetry information to a telemetry server, and meanwhile, continuously routing the original data message without any telemetry information to a final destination; if the switching equipment is not a remote measuring terminal, the switching equipment can be directly forwarded to the next switching equipment supporting the in-band network remote measuring function without extracting remote measuring information.
Referring to fig. 4, based on the above scheme, in order to more clearly describe the technical scheme of the present invention, the following description is made by taking specific examples:
the precondition is as follows:
1) both switching device 1 and switching device 2 (first switching device and second switching device) support in-band network telemetry and are configured with the same INT definition;
2) the route between switching device 1 and switching device 2 is reachable and a tunnel connection has been established in advance.
Step 1: the user 1 sends a message with the destination of the user 2, the message comprises a Header (Packet Header) and Data (Data), and the message reaches the switching equipment 1;
step 2: an in-band network telemetry module in the switching equipment 1 inserts INT Header and Metadata-1 into the message;
and step 3: the switching equipment 1 inserts a Tunnel Header in front of the message, and takes the whole message as a Tunnel message payload to finish Tunnel message encapsulation;
and 4, step 4: the switching equipment 1 sends the encapsulated tunnel message to the switching equipment 2 through a tunnel;
and 5: the switching equipment 2 receives the tunnel message from the tunnel;
step 6: the switching equipment 2 removes the Tunnel Header of the Tunnel message, reserves the Tunnel message payload and completes the Tunnel message restoration;
and 7: the switching equipment 2 inserts Metadata-2 into the restored message;
and step 8: the switching equipment 2 integrally separates the INT Header, the Metadata-1 and the Metadata-2 in the message and sends the INT Header, the Metadata-1 and the Metadata-2 to a telemetering server for processing;
and step 9: the message left after the separation of the telemetry data is the original message sent by the user 1, and is continuously forwarded to the user 2 by the switching equipment 2.
As can be seen from the implementation steps, in the case that the user 1 and the user 2 are unaware, the telemetry system completes the state telemetry of the whole route from the user 1 to the user 2, and the telemetry data can be used for network state measurement, network failure detection, fault location and recovery, and the like.
It should be noted that the above method or flow embodiment is described as a series of acts or combinations for simplicity, but those skilled in the art should understand that the present invention is not limited by the described acts or sequences, as some steps may be performed in other sequences or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are exemplary embodiments and that no single embodiment is necessarily required by the inventive embodiments.
In order to solve the same technical problem, the invention also provides a message processing system, which comprises a first exchange device, a second exchange device and a remote measuring server;
the first switching equipment is used for acquiring telemetry information according to a preset telemetry task through a first in-band network telemetry module after receiving an original message, and then adding the original message and the acquired first telemetry information to an encapsulated message; wherein the first switching device comprises the first in-band network telemetry module;
the first switching device is further configured to use the encapsulation packet as a tunnel payload, add a tunnel header to perform encapsulation to obtain a tunnel packet, and send the tunnel packet to the second switching device through a pre-established tunnel connection channel; wherein the second switching device comprises a second in-band network telemetry module;
the second switching device is configured to receive the tunnel message, remove the tunnel header, obtain the encapsulated message, acquire telemetry information according to the telemetry task through the second in-band network telemetry module, and add the acquired second telemetry information to the encapsulated message;
the second switching device is further configured to forward the encapsulation message, or extract all telemetry information in the encapsulation message and send the telemetry information to the telemetry server.
Further, the first switching device is configured to, after receiving the original packet, perform telemetry information acquisition according to a preset telemetry task through a first in-band network telemetry module, and then add the original packet and the acquired first telemetry information to the encapsulated packet, specifically:
the first switching equipment is used for inserting an INT head into an original message through a first in-band network telemetry module according to a preset telemetry task after receiving the original message;
and acquiring telemetry information according to the instruction of the INT head, and inserting the acquired first telemetry information into the INT head to obtain the encapsulated message.
Further, the second switching device is configured to receive the tunnel message, remove the tunnel header, obtain the encapsulated message, acquire telemetry information according to the telemetry task through the second in-band network telemetry module, and add the acquired second telemetry information to the encapsulated message, which specifically includes:
the second switching device is configured to: and receiving the tunnel message, removing the tunnel header to obtain the encapsulated message, acquiring telemetry information according to the instruction of the INT header by the second in-band network telemetry module, and inserting the acquired second telemetry information into the encapsulated message.
Further, the second switching device is configured to receive the tunnel packet and obtain the encapsulated packet after removing the tunnel header, acquire telemetry information according to the instruction of the INT header by using the second in-band network telemetry module, and insert the acquired second telemetry information into the encapsulated packet, specifically:
the second switching device is configured to: receiving the tunnel message and removing the tunnel header to obtain the encapsulation message; performing type field matching on the INT head according to a preset telemetry task type through the second in-band network telemetry module; and when the matching of the type fields is successful, acquiring the telemetry information according to the instruction of the INT head, and inserting the acquired second telemetry information into the packaging message.
Further, the second switching device is configured to forward the encapsulation packet, or extract all telemetry information in the encapsulation packet and send the extracted telemetry information to a telemetry server, specifically:
the second switching equipment is used for judging whether the second switching equipment is a telemetering terminal;
if not, forwarding the packaging message;
and if so, extracting all the telemetry information in the packaged message and sending the telemetry information to a telemetry server.
It can be understood that the above system item embodiments correspond to the method item embodiments of the present invention, and a message processing system provided in the embodiments of the present invention can implement the message processing method provided in any method item embodiment of the present invention.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A message processing method is characterized by comprising the following steps:
after receiving an original message, a first switching device acquires telemetering information according to a preset telemetering task through a first in-band network telemetering module, and then adds the original message and the acquired first telemetering information to an encapsulated message; wherein the first switching device comprises the first in-band network telemetry module;
the first switching equipment takes the encapsulated message as a tunnel payload, adds a tunnel header for encapsulation to obtain a tunnel message, and sends the tunnel message to second switching equipment through a pre-established tunnel connection channel; wherein the second switching device comprises a second in-band network telemetry module;
the second switching equipment receives the tunnel message, removes the tunnel header to obtain the encapsulated message, acquires the telemetering information according to the telemetering task through the second in-band network telemetering module, and adds the acquired second telemetering information into the encapsulated message;
and the second switching equipment forwards the encapsulated message, or extracts all telemetering information in the encapsulated message and sends the telemetering information to a telemetering server.
2. The message processing method according to claim 1, wherein after receiving the original message, the first switching device performs telemetry information acquisition according to a preset telemetry task through a first in-band network telemetry module, and then adds the original message and the acquired first telemetry information to the encapsulated message, specifically:
after receiving an original message, a first switching device inserts an INT head into the original message according to a preset telemetry task through a first in-band network telemetry module;
and acquiring telemetry information according to the instruction of the INT head, and inserting the acquired first telemetry information into the INT head to obtain the encapsulated message.
3. The message processing method according to claim 2, wherein the second switching device receives the tunnel message, removes the tunnel header to obtain the encapsulated message, acquires telemetry information according to the telemetry task through the second in-band network telemetry module, and adds the acquired second telemetry information to the encapsulated message, specifically:
and the second switching equipment receives the tunnel message, removes the tunnel header to obtain the encapsulated message, acquires the telemetering information according to the instruction of the INT header through the second in-band network telemetering module, and inserts the acquired second telemetering information into the encapsulated message.
4. The message processing method according to claim 3, wherein the second switching device obtains the encapsulated message after receiving the tunnel message and removing the tunnel header, performs telemetry information acquisition according to the instruction of the INT header by the second in-band network telemetry module, and inserts the acquired second telemetry information into the encapsulated message, specifically:
the second switching equipment receives the tunnel message and removes the tunnel header to obtain the encapsulation message;
performing type field matching on the INT head according to a preset telemetry task type through the second in-band network telemetry module;
and when the matching of the type fields is successful, acquiring the telemetry information according to the instruction of the INT head, and inserting the acquired second telemetry information into the packaging message.
5. The message processing method according to claim 1, wherein the second switching device forwards the encapsulated message, or extracts all telemetry information in the encapsulated message and sends the extracted telemetry information to a telemetry server, specifically:
the second switching equipment judges whether the second switching equipment is a telemetering terminal or not;
if not, forwarding the packaging message;
and if so, extracting all the telemetry information in the packaged message and sending the telemetry information to a telemetry server.
6. A message processing system is characterized by comprising a first switching device, a second switching device and a remote measuring server;
the first switching equipment is used for acquiring telemetry information according to a preset telemetry task through a first in-band network telemetry module after receiving an original message, and then adding the original message and the acquired first telemetry information to an encapsulated message; wherein the first switching device comprises the first in-band network telemetry module;
the first switching device is further configured to use the encapsulation packet as a tunnel payload, add a tunnel header to perform encapsulation to obtain a tunnel packet, and send the tunnel packet to the second switching device through a pre-established tunnel connection channel; wherein the second switching device comprises a second in-band network telemetry module;
the second switching device is configured to receive the tunnel message, remove the tunnel header, obtain the encapsulated message, acquire telemetry information according to the telemetry task through the second in-band network telemetry module, and add the acquired second telemetry information to the encapsulated message;
the second switching device is further configured to forward the encapsulation message, or extract all telemetry information in the encapsulation message and send the telemetry information to the telemetry server.
7. The message processing system according to claim 6, wherein the first switching device is configured to, after receiving the original message, perform telemetry information acquisition according to a preset telemetry task through a first in-band network telemetry module, and then add the original message and the acquired first telemetry information to the encapsulated message, specifically:
the first switching equipment is used for inserting an INT head into an original message through a first in-band network telemetry module according to a preset telemetry task after receiving the original message;
and acquiring telemetry information according to the instruction of the INT head, and inserting the acquired first telemetry information into the INT head to obtain the encapsulated message.
8. The message processing system according to claim 7, wherein the second switching device is configured to receive the tunnel message, remove the tunnel header to obtain the encapsulated message, perform telemetry information acquisition according to the telemetry task by using the second in-band network telemetry module, and add the acquired second telemetry information to the encapsulated message, specifically:
the second switching device is configured to: and receiving the tunnel message, removing the tunnel header to obtain the encapsulated message, acquiring telemetry information through the second in-band network telemetry module according to the instruction of the INT header, and inserting the acquired second telemetry information into the encapsulated message.
9. The message processing system according to claim 8, wherein the second switching device is configured to receive the tunnel message, remove the tunnel header to obtain the encapsulated message, perform telemetry information acquisition according to the instruction of the INT header by using the second in-band network telemetry module, and insert the acquired second telemetry information into the encapsulated message, specifically:
the second switching device is configured to: receiving the tunnel message and removing the tunnel header to obtain the encapsulation message; performing type field matching on the INT head according to a preset telemetry task type through the second in-band network telemetry module; and when the matching of the type fields is successful, acquiring the telemetry information according to the instruction of the INT head, and inserting the acquired second telemetry information into the packaging message.
10. The message processing system according to claim 6, wherein the second switching device is configured to forward the encapsulated message, or extract all telemetry information in the encapsulated message and send the extracted telemetry information to a telemetry server, and specifically:
the second switching equipment is used for judging whether the second switching equipment is a telemetering terminal;
if not, forwarding the packaging message;
and if so, extracting all the telemetry information in the packaged message and sending the telemetry information to a telemetry server.
CN202010810013.0A 2020-08-12 2020-08-12 Message processing method and system Active CN112003776B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010810013.0A CN112003776B (en) 2020-08-12 2020-08-12 Message processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010810013.0A CN112003776B (en) 2020-08-12 2020-08-12 Message processing method and system

Publications (2)

Publication Number Publication Date
CN112003776A CN112003776A (en) 2020-11-27
CN112003776B true CN112003776B (en) 2022-05-20

Family

ID=73464195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010810013.0A Active CN112003776B (en) 2020-08-12 2020-08-12 Message processing method and system

Country Status (1)

Country Link
CN (1) CN112003776B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328956B (en) * 2021-06-07 2022-07-01 新华三技术有限公司 Message processing method and device
CN113364778B (en) * 2021-06-07 2022-07-29 新华三技术有限公司 Message processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320909A (en) * 2008-03-28 2008-12-10 国电铭扬(北京)技术有限公司 Protector of transformer
CN102904790A (en) * 2012-09-28 2013-01-30 航天科工深圳(集团)有限公司 Remote control area network (CAN) bus communication system and implementation method thereof
CN108011837A (en) * 2017-11-21 2018-05-08 新华三技术有限公司 Message processing method and device
CN108259344A (en) * 2017-11-29 2018-07-06 新华三技术有限公司 Telemetering Telemetry method and apparatus
CN109194581A (en) * 2018-08-24 2019-01-11 新华三技术有限公司 Message processing method and device
CN111224839A (en) * 2019-12-26 2020-06-02 长沙星融元数据技术有限公司 Verification method and device for in-band network remote control function, storage medium and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070127420A1 (en) * 2005-12-05 2007-06-07 Paula Tjandra Method, system and apparatus for creating a reverse tunnel
CN111225031B (en) * 2019-12-17 2020-12-18 长沙星融元数据技术有限公司 Cloud data center virtual bottom layer network architecture and data transmission method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320909A (en) * 2008-03-28 2008-12-10 国电铭扬(北京)技术有限公司 Protector of transformer
CN102904790A (en) * 2012-09-28 2013-01-30 航天科工深圳(集团)有限公司 Remote control area network (CAN) bus communication system and implementation method thereof
CN108011837A (en) * 2017-11-21 2018-05-08 新华三技术有限公司 Message processing method and device
CN108259344A (en) * 2017-11-29 2018-07-06 新华三技术有限公司 Telemetering Telemetry method and apparatus
CN109194581A (en) * 2018-08-24 2019-01-11 新华三技术有限公司 Message processing method and device
CN111224839A (en) * 2019-12-26 2020-06-02 长沙星融元数据技术有限公司 Verification method and device for in-band network remote control function, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《无线遥测式数字地震仪关键技术》;李怀良;《地球物理学报》;20131115;第56卷(第11期);全文 *

Also Published As

Publication number Publication date
CN112003776A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN112866075B (en) In-band network telemetering method, system and related device for Overlay network
US10079748B2 (en) Supporting efficient and accurate sync/followup timestamps
EP4032207B1 (en) State machine handling at a proxy node in an ethernet-based fronthaul network
KR102342286B1 (en) DCN message processing method, network device, and network system
CN100382517C (en) Network QoS test method and system
CN111565113B (en) Flexible Ethernet network topology abstraction method and system for SDN controller
EP1766876B1 (en) Technique for transferring data over a packet switched network
CN112003776B (en) Message processing method and system
EP2398188A1 (en) Method of Remote Active Testing of a Device or Network
US8594098B2 (en) Method, apparatus and system for transmitting data
EP2434697A1 (en) Method for interconnecting multi-protocol label switching network and ethernet, thereof device and system
CN106385344A (en) Message monitoring method and device
CN113364778B (en) Message processing method and device
WO2015196636A1 (en) Packet collection method and system, network device and network management centre
CN113328956B (en) Message processing method and device
CN112804129A (en) Message transmission method and system, VPN (virtual private network) equipment at sending end and GRE (generic routing encapsulation) splicing equipment
EP3122005B1 (en) Routing system allowing the filtering of data for integrating and testing operational equipment
WO2020207429A1 (en) Message processing method and apparatus, and computer-readable storage medium
CN107835109B (en) Method and system for testing packet transport network defined by software
Min et al. The Processing Method of the Message Based on the In-band Network Telemetry Technology
JP3487551B2 (en) Monitor device, monitor method, and recording medium
JP2006050433A (en) Traffic monitoring apparatus, communication network traffic monitoring system and monitoring method
US12010000B2 (en) Message sampling method, decapsulation method, node, system and storage medium
US8891384B2 (en) Circuit emulation service for carrying time division multiplexed SCADA traffic
CN114338116B (en) Encryption transmission method and device and SD-WAN network system

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
GR01 Patent grant
GR01 Patent grant