CN117118920A - Message transmission method and device, nonvolatile storage medium and electronic equipment - Google Patents

Message transmission method and device, nonvolatile storage medium and electronic equipment Download PDF

Info

Publication number
CN117118920A
CN117118920A CN202311125689.6A CN202311125689A CN117118920A CN 117118920 A CN117118920 A CN 117118920A CN 202311125689 A CN202311125689 A CN 202311125689A CN 117118920 A CN117118920 A CN 117118920A
Authority
CN
China
Prior art keywords
message
telemetry
switch
band network
original
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
CN202311125689.6A
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 Intelligent Network Technology Co ltd
Original Assignee
China Telecom Intelligent Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Intelligent Network Technology Co ltd filed Critical China Telecom Intelligent Network Technology Co ltd
Priority to CN202311125689.6A priority Critical patent/CN117118920A/en
Publication of CN117118920A publication Critical patent/CN117118920A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/35Flow control; Congestion control by embedding flow control information in regular packets, e.g. piggybacking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/02Capturing of monitoring data

Abstract

The invention discloses a message transmission method and device, a nonvolatile storage medium and electronic equipment. Wherein the method comprises the following steps: the method comprises the steps that a preset exchanger obtains an original message and a first remote measurement message, wherein the original message comprises the following steps: the message forwarding method comprises a message header and a message body, wherein the message header is used for indicating a message forwarding path of an original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message header of a first telemetry message is the same as that of the original message; inserting in-band network telemetry data of a preset switch into a message body of the first telemetry message to generate a second telemetry message; and respectively transmitting the original message and the second telemetry message according to the message header. The invention solves the technical problem of low transmission efficiency of the second remote measurement message.

Description

Message transmission method and device, nonvolatile storage medium and electronic equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for transmitting a message, a nonvolatile storage medium, and an electronic device.
Background
In-band network telemetry is mainly applied to operation and maintenance in a data center network, and a traditional network is based on a passive operation and maintenance mode of CLI and SNMP mechanisms: the monitoring data of the equipment is obtained through a pull mode, and the fault positioning is slow; the acquisition precision is rough, only the acquisition of the minute level can be realized, and the monitored network node data is inaccurate; the lack of a query for device queue status information does not specify fault localization. In-band network telemetry (Inband Network Telemetry) is abbreviated as INT, key information of flow is directly collected by utilizing a switch chip, such as the queue condition of messages, port buffering when the messages are forwarded, and the like, and the collected telemetry messages are sent to an analysis system, so that real-time active network operation and maintenance are realized.
In-band network telemetry has two modes of message output of INT, namely End-to-End, namely telemetry data is added into an original message for transmission, and output is carried out on a last-hop switch. The other is Post-card mode, namely, the original message is not changed, the telemetering data is sent out from each exchanger independently, and although the mode solves the modification of the original message, each hop exchanger outputs the telemetering data, and the reorganization pressure on a back-end analysis system is high.
However, in the two second remote measurement message transmission modes, a large amount of load occupying the back-end analysis system is required for analysis, so that the problem of low second remote measurement message transmission efficiency is caused.
Aiming at the problem of low transmission efficiency of the second remote measurement message, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a message transmission method, a message transmission device, a nonvolatile storage medium and electronic equipment, which are used for at least solving the technical problem of low transmission efficiency of a second remote measurement message.
According to another aspect of the embodiment of the present invention, there is also provided a method for transmitting a message, including: the method comprises the steps that a preset exchanger obtains an original message and a first remote measurement message, wherein the original message comprises the following steps: the message head is used for indicating a message forwarding path of the original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message head of the first telemetry message is the same as that of the original message; inserting in-band network telemetry data of the preset switch into a message body of the first telemetry message to generate a second telemetry message; and respectively transmitting the original message and the second remote measurement message according to the message header.
Optionally, the obtaining, by the preset switch, the original message and the first telemetry message includes: receiving the original message generated by a message generating object under the condition that the preset switch is an access switch, wherein the access switch is used as an input node of the in-band network telemetry domain; copying the original message to generate an intermediate message; and deleting the message body of the intermediate message to generate the first remote measurement message.
Optionally, the obtaining, by the preset switch, the original message and the first telemetry message includes: and under the condition that the preset switch is a forwarding switch, receiving the original message and the first remote measurement message sent by a first switch, wherein the first switch comprises an access switch or other forwarding switches in the in-band network telemetry domain, the access switch is used as an input node of the in-band network telemetry domain, and the forwarding switch is used as a forwarding node of the in-band network telemetry domain.
Optionally, inserting in-band network telemetry data of the preset switch in the message body of the first telemetry message, and generating the second telemetry message includes: acquiring in-band network telemetry data of the preset switch; identifying a message body of the first remote measurement message; and inserting the in-band network telemetry data into the message main body of the first telemetry message to generate the second telemetry message.
Optionally, acquiring in-band network telemetry data of the preset switch includes: acquiring preconfigured in-band network telemetry data in a cache space of the preset switch; or analyzing the original message acquired by the preset switch to determine the in-band network telemetry data.
Optionally, the transmitting the original message and the second telemetry message according to the message header includes: identifying the message header and determining a message forwarding path under the condition that the preset switch is an access switch or a forwarding switch, wherein the access switch is used as an input node of the in-band network telemetry domain, and the forwarding switch is used as a forwarding node of the in-band network telemetry domain; and sending the original message and the second telemetry message to a second switch according to the message forwarding path, wherein the second switch comprises a boundary switch or other forwarding switches in the in-band network telemetry domain, and the boundary switch is used as an output node of the in-band network telemetry domain.
Optionally, the transmitting the original message and the second telemetry message according to the message header includes: identifying the message header to determine a message processing object for receiving the original message under the condition that the preset switch is a boundary switch, wherein the boundary switch is used as an output node of the in-band network telemetry domain; and sending the original message to the message processing object, and sending the second telemetry message to a back-end analysis object.
According to another aspect of the embodiment of the present invention, there is also provided a message transmission device, applied in a preset switch, including: the device comprises an acquisition module, a first remote measurement module and a second remote measurement module, wherein the acquisition module is used for acquiring an original message and a first remote measurement message, and the original message comprises: the message head is used for indicating a message forwarding path of the original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message head of the first telemetry message is the same as that of the original message; the inserting module is used for inserting in-band network telemetry data of the preset switch into the message body of the first telemetry message to generate a second telemetry message; and the transmission module is used for respectively transmitting the original message and the second remote measurement message according to the message header.
According to another aspect of the embodiment of the present invention, there is further provided a nonvolatile storage medium, where the nonvolatile storage medium is configured to store a program, and when the program runs, control a device where the nonvolatile storage medium is located to execute the foregoing method for transmitting a message.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device, including: the system comprises a memory and a processor, wherein the processor is used for running a program stored in the processor, and the message transmission method is executed when the program runs.
In the embodiment of the application, a preset switch acquires an original message and a first remote measurement message, wherein the original message comprises: the message forwarding method comprises a message header and a message body, wherein the message header is used for indicating a message forwarding path of an original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message header of a first telemetry message is the same as that of the original message; inserting in-band network telemetry data of a preset switch into a message body of the first telemetry message to generate a second telemetry message; respectively transmitting an original message and a second telemetry message according to the message header; the in-band network telemetry data of the original message can be transmitted through the telemetry message without changing the original message, and the original message and the telemetry message have the same message header, so that the telemetry message can be synchronously transmitted according to the message forwarding path of the original message in the in-band network telemetry domain, the in-band network telemetry data of each preset switch are not required to be transmitted respectively, the technical effect of improving the transmission efficiency of the second telemetry message is realized, and the technical problem of low transmission efficiency of the second telemetry message is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of a message transmission method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an End-to-End based message transmission according to the related art;
FIG. 3 is a schematic diagram of a packet transmission based on Post-card of the related art;
FIG. 4 is a schematic diagram of an in-band network telemetry method according to an embodiment of the invention;
fig. 5 is a schematic diagram of a message transmission device according to an embodiment of the present invention;
fig. 6 is a block diagram of a computer terminal according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the present invention, there is provided a message transmission method embodiment, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
Fig. 1 is a flowchart of a message transmission method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, a preset switch acquires an original message and a first remote measurement message, wherein the original message comprises: the message forwarding method comprises a message header and a message body, wherein the message header is used for indicating a message forwarding path of an original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message header of a first telemetry message is the same as that of the original message;
step S104, inserting in-band network telemetry data of a preset switch into a message body of the first telemetry message to generate a second telemetry message;
step S106, the original message and the second telemetry message are respectively transmitted according to the message header.
In the embodiment of the invention, a preset switch acquires an original message and a first remote measurement message, wherein the original message comprises: the message forwarding method comprises a message header and a message body, wherein the message header is used for indicating a message forwarding path of an original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message header of a first telemetry message is the same as that of the original message; inserting in-band network telemetry data of a preset switch into a message body of the first telemetry message to generate a second telemetry message; respectively transmitting an original message and a second telemetry message according to the message header; the in-band network telemetry data of the original message can be transmitted through the telemetry message without changing the original message, and the original message and the telemetry message have the same message header, so that the telemetry message can be synchronously transmitted according to the message forwarding path of the original message in the in-band network telemetry domain, the in-band network telemetry data of each preset switch are not required to be transmitted respectively, the technical effect of improving the transmission efficiency of the second telemetry message is realized, and the technical problem of low transmission efficiency of the second telemetry message is solved.
In step S102, the in-band network telemetry domain includes a plurality of preset switches, each of which is configured to transmit an original message and a telemetry message, and add in the telemetry message in-band network telemetry data of the preset switch, where the telemetry message may be a first telemetry message or a second telemetry message.
In step S102, the plurality of preset switches in the in-band network telemetry domain may employ a leaf ridge structure.
In the step S102, the original message and the telemetry message both have a message header and a message body, where the message header indicates a transmission path of the message, and the message body carries a payload of the message, and because the original message and the telemetry message have the same message header, the original message and the telemetry message may be transmitted in an in-band network telemetry domain according to the same message forwarding path, where the telemetry message may be a first telemetry message or a second telemetry message.
In the step S102, the in-band network telemetry domain includes an access switch, which is used as an input node of the in-band network telemetry domain and can be connected with a message generating object for generating an original message, and the original message is transmitted into the in-band network telemetry domain.
In step S104, the in-band network telemetry data is INT data.
Optionally, under the condition that the in-band network telemetry domain receives the original message for the first time, the in-band network telemetry domain does not have the telemetry message of the original message yet, and because the access switch is used as an input node of the in-band network telemetry domain, the access switch obtains the original message first, and then the access switch can generate the telemetry message according to the original message.
As an optional embodiment, the obtaining, by the preset switch, the original message and the first telemetry message includes: receiving an original message generated by a message generating object under the condition that a preset switch is an access switch, wherein the access switch is used as an input node of an in-band network telemetry domain; copying the original message to generate an intermediate message; deleting the message body of the intermediate message to generate a first remote measurement message.
According to the embodiment of the invention, after the access switch receives the original message, the original message can be duplicated to generate the intermediate message, then the intermediate message is modified, the message effective load stored in the message body of the intermediate message is deleted, and the first remote measurement message which has the same message head as the original message and has smaller message volume is obtained, so that the first remote measurement message and the original message have the same message synchronization, and the first remote measurement message can be synchronously transmitted according to the message forwarding path of the original message.
As an optional embodiment, the obtaining, by the preset switch, the original message and the first telemetry message includes: and receiving an original message and a first remote measurement message sent by a first switch under the condition that the preset switch is a forwarding switch, wherein the first switch comprises an access switch or other forwarding switches in an in-band network telemetry domain, the access switch is used as an input node of the in-band network telemetry domain, and the forwarding switch is used as a forwarding node of the in-band network telemetry domain.
In the above embodiment of the present invention, in the in-band network telemetry domain, a preset switch other than the access switch receives the original message, and also receives the telemetry message (i.e., the first telemetry message) simultaneously, so that the preset switch only needs to insert its in-band network telemetry data into the message body portion of the first telemetry message.
As an alternative embodiment, inserting in-band network telemetry data of a preset switch in a message body of a first telemetry message, and generating a second telemetry message includes: acquiring in-band network telemetry data of a preset switch; identifying a message body of the first remote measurement message; and inserting in-band network telemetry data into the message body of the first telemetry message to generate a second telemetry message.
In the above embodiment of the present invention, each preset switch for transmitting an original message has corresponding in-band network telemetry data, and in the process of generating a second telemetry message, the in-band network telemetry data of the preset switch may be inserted into a message body portion of a first telemetry message, and arranged behind existing in-band network telemetry data in the message body portion, so that a plurality of in-band network telemetry data may be sequentially inserted into a message body portion of a telemetry message (i.e., the first telemetry message or the second telemetry message).
As an alternative embodiment, acquiring in-band network telemetry data of a preset switch includes: acquiring preconfigured in-band network telemetry data in a cache space of a preset switch; or analyzing the original message acquired by the preset switch to determine in-band network telemetry data.
In the above embodiment of the present invention, in-band network telemetry data of each preset switch may be preconfigured, or may be generated in real time when an original message is received, and according to actual use conditions, in-band network telemetry data may be flexibly acquired in different modes.
As an alternative embodiment, transmitting the original message and the second telemetry message according to the message header includes: under the condition that a preset switch is an access switch or a forwarding switch, a message head is identified, and a message forwarding path is determined, wherein the access switch is used as an input node of an in-band network telemetry domain, and the forwarding switch is used as a forwarding node of the in-band network telemetry domain; and sending the original message and the second telemetry message to a second switch according to the message forwarding path, wherein the second switch comprises a boundary switch or other forwarding switches in an in-band network telemetry domain, and the boundary switch is used as an output node of the in-band network telemetry domain.
In the above embodiment of the present invention, when the preset switch is an access switch or a forwarding switch, the original message and the telemetry message (such as the second message) need to be transmitted in the in-band network telemetry domain, and further, by analyzing the message headers of the original message and the telemetry message (such as the second message), the message forwarding paths of the original message and the telemetry message can be determined.
As an alternative embodiment, transmitting the original message and the second telemetry message according to the message header includes: under the condition that a preset switch is a boundary switch, identifying a message processing object of which the message head is determined to receive an original message, wherein the boundary switch is used as an output node of an in-band network telemetry domain; and sending the original message to a message processing object, and sending the second remote measurement message to a back-end analysis object.
In the above embodiment of the present invention, since the boundary switch is used as the output node of the in-band network telemetry domain, in the case that the preset switch is the boundary switch, it indicates that the original message and the telemetry message (such as the second message) need to be output from the in-band network telemetry domain, and since the message bodies of the original message and the telemetry message (such as the second message) are different, the original message and the telemetry message (such as the second message) need to be processed by different terminals, and further the boundary switch can identify the message processing object of the received original message by identifying the message header and send the original message to the message processing object, and the telemetry message (such as the second message) needs to be analyzed by the back end analysis object, so that the boundary switch can send the telemetry message (such as the second message) to the back end analysis object, thereby implementing separation of the original message and the telemetry message (such as the second message) by the boundary switch.
The present invention also provides an alternative embodiment that provides an in-band network telemetry method.
Fig. 2 is a schematic diagram of End-to-End based packet transmission in the related art, as shown in fig. 2, taking a data center network as an example, after an in-band network telemetry Domain INT Domain is configured, each switch inserts INT telemetry data directly into an original packet, generally, the INT telemetry data is selectively inserted behind a 4-layer packet header, as the number of in-band network telemetry Domain INT Domian forwarding devices increases, the number of in-band network telemetry Domain INT telemetry data of the original packet increases, the number of packets also increases, the transmission is greatly affected, and meanwhile, the original packet is not protected from security detection and the like because the original packet is modified in the in-band network telemetry Domain INT Domain, so that erroneous judgment of security devices is prevented, discarding of the packet, and modification of the original packet is not allowed in sensitive services.
Fig. 3 is a schematic diagram of a packet transmission based on Post-card in the related art, as shown in fig. 3, taking a data center network as an example, after an in-band network telemetry Domain INT Domain is configured, after an INT is configured, each switch generates an INT telemetry data from a packet, and then the INT telemetry data is output separately, that is, one stream passes through several switches, so that several INT telemetry messages are generated, and a subsequent analysis system needs to perform a task of preprocessing a plurality of telemetry messages, for example, when the number of the INT telemetry messages is relatively large, a front-end probe or a splitter device needs to be deployed in a back-end analysis system to reduce the load for the subsequent analysis system.
In summary, there are two ways to output the message of INT by in-band network telemetry, one is End-to-End mode, namely, telemetry data is added into the original message to be transmitted, and output is performed at the last switch of one hop, so that the original message is changed, the length of the message is increased, and the transmission and security detection are affected; the other is Post-card mode, namely, the original message is not changed, the telemetering data is sent out from each exchanger independently, and although the mode solves the modification of the original message, each hop exchanger outputs the telemetering data, and the reorganization pressure on a back-end analysis system is high.
The in-band network telemetry scheme provided by the application integrates the advantages of the two schemes, namely discarding the original message changed by End-to-End, discarding the work of Post-Card requiring the back-End system to reorganize the message, greatly reducing the load of a subsequent analysis system and improving the efficiency of INT telemetry.
Fig. 4 is a schematic diagram of an in-band network telemetry method according to an embodiment of the present application, as shown in fig. 4, in an in-band network telemetry Domain INT Domain, an access switch (Source node) performs a replication operation on an original message that needs telemetry, when replication is performed, a Payload portion of a message body in the original message is cut off, only a layer 4 header is reserved, meanwhile, INT data of the Source node (i.e., the access switch) is inserted behind a replication message (e.g., a first telemetry message or a second telemetry message), the original message is not modified, the original message is continuously forwarded in a table according to an original procedure, so that a forwarding path of the replicated message (e.g., the first telemetry message or the second telemetry message) is the same as that of the original message, after the message is sent to a next switch node (tranit), the INT data of the original message is also inserted into a replication Wen Ru first telemetry message or a second telemetry message, after the original message is forwarded to a border switch (e.g., a second telemetry message) is forwarded to a normal network (e.g., a second telemetry node), and an object is analyzed after the replication is completed by the network (e.g., a second telemetry node).
Optionally, the access switch is generally configured with an access control list ACL for the top-frame ToR switch, for identifying a specific traffic (i.e. an original message), and the identification field may be a source destination IP, a protocol number, a TCP/UDP source destination port number, etc.
Optionally, in the process of generating the first remote measurement message, the original message may be subjected to a copying operation, and the load Paylaod of the message body in the copied message (equivalent to the intermediate message) is truncated, so that the message is truncated into a 64/128 byte message.
Alternatively, in-band network telemetry data, i.e., INT data, may be an in-interface, an out-interface, a switch ID, queue information, buffer cache information, etc. of the message.
According to the embodiment of the present invention, a message transmission device is provided, and it should be noted that the message transmission device may be used to execute the message transmission method in the embodiment of the present invention, where the message transmission method in the embodiment of the present invention may be executed in the message transmission device.
Fig. 5 is a schematic diagram of a message transmission device according to an embodiment of the present invention, where, as shown in fig. 5, the device is applied to a preset switch, and may include: the obtaining module 52 is configured to obtain an original message and a first remote measurement message, where the original message includes: the message forwarding method comprises a message header and a message body, wherein the message header is used for indicating a message forwarding path of an original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message header of a first telemetry message is the same as that of the original message; an inserting module 54, configured to insert in-band network telemetry data of a preset switch into a message body of the first telemetry message, and generate a second telemetry message; a transmission module 56, configured to transmit the original message and the second telemetry message according to the message header, respectively.
It should be noted that, the initiating module 72 in this embodiment may be used to perform step S102 in the embodiment of the present application, the starting module 74 in this embodiment may be used to perform step S104 in the embodiment of the present application, the sending module 76 in this embodiment may be used to perform step S106 in the embodiment of the present application, and the first closing module 78 in this embodiment may be used to perform step S108 in the embodiment of the present application. The above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments.
In the embodiment of the application, a preset switch acquires an original message and a first remote measurement message, wherein the original message comprises: the message forwarding method comprises a message header and a message body, wherein the message header is used for indicating a message forwarding path of an original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message header of a first telemetry message is the same as that of the original message; inserting in-band network telemetry data of a preset switch into a message body of the first telemetry message to generate a second telemetry message; respectively transmitting an original message and a second telemetry message according to the message header; the in-band network telemetry data of the original message can be transmitted through the telemetry message without changing the original message, and the original message and the telemetry message have the same message header, so that the telemetry message can be synchronously transmitted according to the message forwarding path of the original message in the in-band network telemetry domain, the in-band network telemetry data of each preset switch are not required to be transmitted respectively, the technical effect of improving the transmission efficiency of the second telemetry message is realized, and the technical problem of low transmission efficiency of the second telemetry message is solved.
As an alternative embodiment, the obtaining module includes: the first receiving unit is used for receiving an original message generated by a message generating object under the condition that a preset switch is an access switch, wherein the access switch is used as an input node of an in-band network telemetry domain; the copying unit is used for copying the original message and generating an intermediate message; and the deleting unit is used for deleting the message body of the intermediate message and generating a first remote measurement message.
As an alternative embodiment, the obtaining module includes: the second receiving unit is configured to receive, when the preset switch is a forwarding switch, an original message and a first remote measurement message sent by the first switch, where the first switch includes an access switch or another forwarding switch in an in-band network telemetry domain, the access switch is used as an input node in the in-band network telemetry domain, and the forwarding switch is used as a forwarding node in the in-band network telemetry domain.
As an alternative embodiment, the insertion module includes: the acquisition unit is used for acquiring in-band network telemetry data of a preset switch; the identification unit is used for identifying the message body of the first remote measurement message; the inserting module is used for inserting in-band network telemetry data into the message main body of the first telemetry message to generate a second telemetry message.
As an alternative embodiment, the acquisition unit comprises: the first acquisition subunit is used for acquiring preconfigured in-band network telemetry data in a cache space of a preset switch; or the second acquisition subunit is used for analyzing the original message acquired by the preset switch and determining in-band network telemetry data.
As an alternative embodiment, the transmission module includes: the first identification unit is used for identifying the message header and determining a message forwarding path under the condition that a preset switch is an access switch or a forwarding switch, wherein the access switch is used as an input node of an in-band network telemetry domain, and the forwarding switch is used as a forwarding node of the in-band network telemetry domain; the first sending unit is used for sending the original message and the second telemetry message to the second switch according to the message forwarding path, wherein the second switch comprises a boundary switch or other forwarding switches in an in-band network telemetry domain, and the boundary switch is used as an output node of the in-band network telemetry domain.
As an alternative embodiment, the transmission module includes: the second identifying unit is used for identifying a message processing object of the message header for determining to receive the original message under the condition that the preset switch is a boundary switch, and the boundary switch is used as an output node of an in-band network telemetry domain; and the second sending unit is used for sending the original message to the message processing object and sending the second remote measurement message to the back-end analysis object.
Embodiments of the present invention may provide a computer terminal, which may be any one of a group of computer terminals. Alternatively, in the present embodiment, the above-described computer terminal may be replaced with a terminal device such as a mobile terminal.
Alternatively, in this embodiment, the above-mentioned computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
In this embodiment, the computer terminal may execute the program code of the following steps in the message transmission method: the method comprises the steps that a preset exchanger obtains an original message and a first remote measurement message, wherein the original message comprises the following steps: the message forwarding method comprises a message header and a message body, wherein the message header is used for indicating a message forwarding path of an original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message header of a first telemetry message is the same as that of the original message; inserting in-band network telemetry data of a preset switch into a message body of the first telemetry message to generate a second telemetry message; and respectively transmitting the original message and the second telemetry message according to the message header.
Alternatively, fig. 6 is a block diagram of a computer terminal according to an embodiment of the present invention. As shown in fig. 6, the computer terminal 60 may include: one or more (only one is shown) processors 62, and memory 64.
The memory may be used to store software programs and modules, such as program instructions/modules corresponding to the message transmission method and apparatus in the embodiments of the present invention, and the processor executes the software programs and modules stored in the memory, thereby executing various functional applications and data processing, that is, implementing the message transmission method described above. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory remotely located with respect to the processor, which may be connected to the terminal 60 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: the method comprises the steps that a preset exchanger obtains an original message and a first remote measurement message, wherein the original message comprises the following steps: the message forwarding method comprises a message header and a message body, wherein the message header is used for indicating a message forwarding path of an original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message header of a first telemetry message is the same as that of the original message; inserting in-band network telemetry data of a preset switch into a message body of the first telemetry message to generate a second telemetry message; and respectively transmitting the original message and the second telemetry message according to the message header.
Optionally, the above processor may further execute program code for: receiving an original message generated by a message generating object under the condition that a preset switch is an access switch, wherein the access switch is used as an input node of an in-band network telemetry domain; copying the original message to generate an intermediate message; deleting the message body of the intermediate message to generate a first remote measurement message.
Optionally, the above processor may further execute program code for: and receiving an original message and a first remote measurement message sent by a first switch under the condition that the preset switch is a forwarding switch, wherein the first switch comprises an access switch or other forwarding switches in an in-band network telemetry domain, the access switch is used as an input node of the in-band network telemetry domain, and the forwarding switch is used as a forwarding node of the in-band network telemetry domain.
Optionally, the above processor may further execute program code for: acquiring in-band network telemetry data of a preset switch; identifying a message body of the first remote measurement message; and inserting in-band network telemetry data into the message body of the first telemetry message to generate a second telemetry message.
Optionally, the above processor may further execute program code for: acquiring preconfigured in-band network telemetry data in a cache space of a preset switch; or analyzing the original message acquired by the preset switch to determine in-band network telemetry data.
Optionally, the above processor may further execute program code for: under the condition that a preset switch is an access switch or a forwarding switch, a message head is identified, and a message forwarding path is determined, wherein the access switch is used as an input node of an in-band network telemetry domain, and the forwarding switch is used as a forwarding node of the in-band network telemetry domain; and sending the original message and the second telemetry message to a second switch according to the message forwarding path, wherein the second switch comprises a boundary switch or other forwarding switches in an in-band network telemetry domain, and the boundary switch is used as an output node of the in-band network telemetry domain.
Optionally, the above processor may further execute program code for: under the condition that a preset switch is a boundary switch, identifying a message processing object of which the message head is determined to receive an original message, wherein the boundary switch is used as an output node of an in-band network telemetry domain; and sending the original message to a message processing object, and sending the second remote measurement message to a back-end analysis object.
By adopting the embodiment of the invention, a message transmission scheme is provided. The method comprises the steps that a preset exchanger obtains an original message and a first remote measurement message, wherein the original message comprises the following steps: the message forwarding method comprises a message header and a message body, wherein the message header is used for indicating a message forwarding path of an original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message header of a first telemetry message is the same as that of the original message; inserting in-band network telemetry data of a preset switch into a message body of the first telemetry message to generate a second telemetry message; respectively transmitting an original message and a second telemetry message according to the message header; the in-band network telemetry data of the original message can be transmitted through the telemetry message without changing the original message, and the original message and the telemetry message have the same message header, so that the telemetry message can be synchronously transmitted according to the message forwarding path of the original message in the in-band network telemetry domain, the in-band network telemetry data of each preset switch are not required to be transmitted respectively, the technical effect of improving the transmission efficiency of the second telemetry message is realized, and the technical problem of low transmission efficiency of the second telemetry message is solved.
It will be appreciated by those skilled in the art that the configuration shown in fig. 6 is only illustrative, and the computer terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm-phone computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 6 is not limited to the structure of the electronic device. For example, the computer terminal 60 may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute on hardware associated with the terminal device, the program may be stored in a nonvolatile storage medium, and the nonvolatile storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
Embodiments of the present invention also provide a nonvolatile storage medium. Alternatively, in this embodiment, the above-mentioned nonvolatile storage medium may be used to store the program code executed by the message transmission method provided in the above-mentioned embodiment.
Alternatively, in this embodiment, the above-mentioned nonvolatile storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: the method comprises the steps that a preset exchanger obtains an original message and a first remote measurement message, wherein the original message comprises the following steps: the message forwarding method comprises a message header and a message body, wherein the message header is used for indicating a message forwarding path of an original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message header of a first telemetry message is the same as that of the original message; inserting in-band network telemetry data of a preset switch into a message body of the first telemetry message to generate a second telemetry message; and respectively transmitting the original message and the second telemetry message according to the message header.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: receiving an original message generated by a message generating object under the condition that a preset switch is an access switch, wherein the access switch is used as an input node of an in-band network telemetry domain; copying the original message to generate an intermediate message; deleting the message body of the intermediate message to generate a first remote measurement message.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: and receiving an original message and a first remote measurement message sent by a first switch under the condition that the preset switch is a forwarding switch, wherein the first switch comprises an access switch or other forwarding switches in an in-band network telemetry domain, the access switch is used as an input node of the in-band network telemetry domain, and the forwarding switch is used as a forwarding node of the in-band network telemetry domain.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: acquiring in-band network telemetry data of a preset switch; identifying a message body of the first remote measurement message; and inserting in-band network telemetry data into the message body of the first telemetry message to generate a second telemetry message.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: acquiring preconfigured in-band network telemetry data in a cache space of a preset switch; or analyzing the original message acquired by the preset switch to determine in-band network telemetry data.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: under the condition that a preset switch is an access switch or a forwarding switch, a message head is identified, and a message forwarding path is determined, wherein the access switch is used as an input node of an in-band network telemetry domain, and the forwarding switch is used as a forwarding node of the in-band network telemetry domain; and sending the original message and the second telemetry message to a second switch according to the message forwarding path, wherein the second switch comprises a boundary switch or other forwarding switches in an in-band network telemetry domain, and the boundary switch is used as an output node of the in-band network telemetry domain.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: under the condition that a preset switch is a boundary switch, identifying a message processing object of which the message head is determined to receive an original message, wherein the boundary switch is used as an output node of an in-band network telemetry domain; and sending the original message to a message processing object, and sending the second remote measurement message to a back-end analysis object.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a non-volatile storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a non-volatile storage medium, including instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned nonvolatile storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A method for transmitting a message, comprising:
the method comprises the steps that a preset exchanger obtains an original message and a first remote measurement message, wherein the original message comprises the following steps: the message head is used for indicating a message forwarding path of the original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message head of the first telemetry message is the same as that of the original message;
inserting in-band network telemetry data of the preset switch into a message body of the first telemetry message to generate a second telemetry message;
and respectively transmitting the original message and the second remote measurement message according to the message header.
2. The method of claim 1, wherein the obtaining, by the preset switch, the original message and the first telemetry message comprises:
receiving the original message generated by a message generating object under the condition that the preset switch is an access switch, wherein the access switch is used as an input node of the in-band network telemetry domain;
Copying the original message to generate an intermediate message;
and deleting the message body of the intermediate message to generate the first remote measurement message.
3. The method of claim 1, wherein the obtaining, by the preset switch, the original message and the first telemetry message comprises:
and under the condition that the preset switch is a forwarding switch, receiving the original message and the first remote measurement message sent by a first switch, wherein the first switch comprises an access switch or other forwarding switches in the in-band network telemetry domain, the access switch is used as an input node of the in-band network telemetry domain, and the forwarding switch is used as a forwarding node of the in-band network telemetry domain.
4. The method of claim 1, wherein inserting in-band network telemetry data of the preset switch in the message body of the first telemetry message comprises:
acquiring in-band network telemetry data of the preset switch;
identifying a message body of the first remote measurement message;
and inserting the in-band network telemetry data into the message main body of the first telemetry message to generate the second telemetry message.
5. The method of claim 4, wherein obtaining in-band network telemetry data of the preset switch comprises:
acquiring preconfigured in-band network telemetry data in a cache space of the preset switch; or (b)
And analyzing the original message acquired by the preset exchanger to determine the in-band network telemetry data.
6. The method of claim 1, wherein transmitting the original message and the second telemetry message, respectively, according to a message header comprises:
identifying the message header and determining a message forwarding path under the condition that the preset switch is an access switch or a forwarding switch, wherein the access switch is used as an input node of the in-band network telemetry domain, and the forwarding switch is used as a forwarding node of the in-band network telemetry domain;
and sending the original message and the second telemetry message to a second switch according to the message forwarding path, wherein the second switch comprises a boundary switch or other forwarding switches in the in-band network telemetry domain, and the boundary switch is used as an output node of the in-band network telemetry domain.
7. The method of claim 1, wherein transmitting the original message and the second telemetry message, respectively, according to a message header comprises:
identifying the message header to determine a message processing object for receiving the original message under the condition that the preset switch is a boundary switch, wherein the boundary switch is used as an output node of the in-band network telemetry domain;
and sending the original message to the message processing object, and sending the second telemetry message to a back-end analysis object.
8. The message transmission device is characterized by being applied to a preset switch and comprising the following components:
the device comprises an acquisition module, a first remote measurement module and a second remote measurement module, wherein the acquisition module is used for acquiring an original message and a first remote measurement message, and the original message comprises: the message head is used for indicating a message forwarding path of the original message in an in-band network telemetry domain, the in-band network telemetry domain comprises a plurality of preset switches, and the message head of the first telemetry message is the same as that of the original message;
the inserting module is used for inserting in-band network telemetry data of the preset switch into the message body of the first telemetry message to generate a second telemetry message;
And the transmission module is used for respectively transmitting the original message and the second remote measurement message according to the message header.
9. A non-volatile storage medium, wherein the non-volatile storage medium is configured to store a program, and when the program is executed, control a device in which the non-volatile storage medium is located to perform the method for transmitting a message according to any one of claims 1 to 7.
10. An electronic device, comprising: a memory and a processor for executing a program stored in the processor, wherein the program is executed to perform the message transmission method of any one of claims 1 to 7.
CN202311125689.6A 2023-08-31 2023-08-31 Message transmission method and device, nonvolatile storage medium and electronic equipment Pending CN117118920A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311125689.6A CN117118920A (en) 2023-08-31 2023-08-31 Message transmission method and device, nonvolatile storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311125689.6A CN117118920A (en) 2023-08-31 2023-08-31 Message transmission method and device, nonvolatile storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117118920A true CN117118920A (en) 2023-11-24

Family

ID=88803578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311125689.6A Pending CN117118920A (en) 2023-08-31 2023-08-31 Message transmission method and device, nonvolatile storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117118920A (en)

Similar Documents

Publication Publication Date Title
US11228515B2 (en) Data packet detection method, device, and system
CN112866075B (en) In-band network telemetering method, system and related device for Overlay network
US8310942B2 (en) Flow statistics aggregation
US8571032B2 (en) Testing packet fragmentation
EP3082293B1 (en) Switching device and packet loss method therefor
CN101542979A (en) MAC address overlap eliminating method, network device managing system, server, and information device
CN111147403B (en) Message processing method and device, storage medium and electronic device
CN109274522B (en) OAM information processing method, device, equipment and storage medium
CN107104782A (en) Data transmission method and device
CN101741745B (en) Method and system for identifying application traffic of peer-to-peer network
CN109379764A (en) File transmitting method and device
US8654643B2 (en) Wide field indexing for packet tracking
EP2517410B1 (en) Tracing support in a router
CN113364778B (en) Message processing method and device
CN101753456B (en) Method and system for detecting flow of peer-to-peer network
CN110784375B (en) Network data monitoring method and device, electronic equipment and storage medium
CN117118920A (en) Message transmission method and device, nonvolatile storage medium and electronic equipment
CN116781574A (en) In-band network telemetry method, in-band network telemetry device, in-band network telemetry equipment and storage medium
CN116319468B (en) Network telemetry method, device, switch, network, electronic equipment and medium
CN114189565B (en) Head area restoration system, method and related equipment
CN114301960B (en) Processing method and device for cluster asymmetric traffic, electronic equipment and storage medium
CN114244788B (en) Data response method, device and system
CN115150314B (en) Method and device for transmitting data packets across network domains, storage medium and electronic equipment
JP2006115397A (en) Log collection method, log collection system, log information notifying program, log information collecting program, and recording medium
JP2004328173A (en) Network, repeating installation, and path management method used therefor

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