CN117014369A - Message processing method and device, storage medium and program product thereof - Google Patents

Message processing method and device, storage medium and program product thereof Download PDF

Info

Publication number
CN117014369A
CN117014369A CN202210460693.7A CN202210460693A CN117014369A CN 117014369 A CN117014369 A CN 117014369A CN 202210460693 A CN202210460693 A CN 202210460693A CN 117014369 A CN117014369 A CN 117014369A
Authority
CN
China
Prior art keywords
target
information
message
indicator
sent
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
CN202210460693.7A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202210460693.7A priority Critical patent/CN117014369A/en
Priority to PCT/CN2022/143461 priority patent/WO2023207196A1/en
Publication of CN117014369A publication Critical patent/CN117014369A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Abstract

The invention provides a message processing method and a device thereof, a storage medium and a program product, wherein the message processing method comprises the following steps: determining whether the target condition of using the combined indicator in the message is met according to the information type of the information to be transmitted and the sequence to be processed of the information to be transmitted; when the target condition is determined to be met, determining a target indicator combination according to the information type and the sequence to be processed; generating a target message carrying the combination of the information to be sent and the target indicator; and sending the target message to the receiving node, so that the receiving node performs data processing on the information to be sent according to the target indicator combination, namely, under the condition that the target condition is met is determined, the target indicator combination can be determined according to the information type and the sequence to be processed, the target message carrying the information to be sent and the target indicator combination is generated, and the requirements of the message based on the information type, the information carrying repeatedly and processing repeatedly and the information processing sequence can be determined through the target indicator combination.

Description

Message processing method and device, storage medium and program product thereof
Technical Field
Embodiments of the present invention relate to, but are not limited to, the field of communications technologies, and in particular, to a method and apparatus for processing a message, a storage medium, and a program product.
Background
In MPLS (Multi-Protocol Label Switching, multiprotocol Label switching) technology, an indicator in a stack is generally organized by using a Label bit (32 bits) as a basic unit, that is, the indicator occupies the position of one or more labels, for example, SPL (Special Purpose Label, special Label)/eSPL (Extended Special-Purpose Label) is used to indicate information, or one common Label is used to indicate that a device forwards or processes a message. The correspondence of the indicator to the information may be one-to-one, i.e. one tag value indicates that it has the function of indicating one kind of information, or one-to-many, i.e. one tag value indicates that it has the function of indicating a plurality of kinds of information. However, in the related art, for the case that the correspondence between the indicator and the information is one-to-one or one-to-many, no solution has been proposed for determining the type of information in the message, carrying and processing the information repeatedly, and processing the information sequentially through the indicator.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention provides a message processing method, a device thereof, a storage medium and a program product, which can determine the requirements of a message based on information types, repeated carrying and repeated processing of information and information processing sequence.
In a first aspect, an embodiment of the present invention provides a method for processing a packet, including:
determining whether a target condition using a combined indicator in a message is met according to the information type of the information to be sent and the sequence to be processed of the information to be sent; when the target condition is determined to be met, determining a target indicator combination according to the information type and the to-be-processed sequence; generating a target message carrying the combination of the information to be sent and the target indicator; and sending the target message to a receiving node, so that the receiving node carries out data processing on the information to be sent according to the target indicator combination.
In a second aspect, an embodiment of the present invention provides a method for processing a packet, including:
receiving a target message from a transmitting node, wherein the target message comprises information to be transmitted and a target indicator combination, and the target indicator combination is an indicator combination obtained according to the information type and the sequence to be processed when the target condition which is in accordance with a combined indicator used in the message is determined according to the information type of the information to be transmitted and the sequence to be processed of the information to be transmitted; and carrying out data processing on the information to be sent according to the target indicator combination in the target message.
In a third aspect, an embodiment of the present invention further provides a packet processing device, including: memory, a processor and a computer program stored on the memory and executable on the processor, which processor implements the message processing method as described above when executing the computer program.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium storing computer-executable instructions for performing a method for processing a message as described above.
In a fifth aspect, embodiments of the present invention further provide a computer program product, including a computer program or computer instructions, the computer program or computer instructions being stored in a computer readable storage medium, a processor of a computer device reading the computer program or the computer instructions from the computer readable storage medium, the processor executing the computer program or the computer instructions, causing the computer device to perform a message processing method as described above.
The embodiment of the invention comprises the following steps: determining whether the target condition of using the combined indicator in the message is met according to the information type of the information to be transmitted and the sequence to be processed of the information to be transmitted; when the target condition is determined to be met, determining a target indicator combination according to the information type and the sequence to be processed; generating a target message carrying the combination of the information to be sent and the target indicator; and sending the target message to the receiving node, so that the receiving node performs data processing on the information to be sent according to the target indicator combination, namely, under the condition that the target condition is met is determined, the target indicator combination can be determined according to the information type and the sequence to be processed, the target message carrying the information to be sent and the target indicator combination is generated, and the requirements of the message based on the information type, the information carrying repeatedly and processing repeatedly and the information processing sequence can be determined through the target indicator combination.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate and do not limit the invention.
FIG. 1 is a flow chart of a message processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a target indicator including four second data identification bits according to one embodiment of the present invention;
FIG. 3 is a schematic diagram of an indicator in a stack provided by one embodiment of the invention;
FIG. 4 is a schematic diagram of a post stack indicator provided by one embodiment of the invention;
FIG. 5 is a flow chart of another specific method of step S120 in FIG. 1;
FIG. 6 is a flow chart of one specific method of step S130 in FIG. 1;
FIG. 7 is a flow chart of a specific method of step S330 in FIG. 6;
FIG. 8 is a flow chart of another specific method of step S330 in FIG. 7;
FIG. 9 is a flowchart of a message processing method according to another embodiment of the present invention;
FIG. 10 is a flow chart of a specific method of step S620 in FIG. 9;
FIG. 11 is a schematic diagram of the structure of a target indicator provided by a specific example of the present invention;
FIG. 12 is a schematic diagram of a target message with target indicators sequentially and consecutively populated into candidate messages according to one embodiment of the present invention;
FIG. 13 is a schematic diagram of a target message with target indicators orderly and discontinuously populated into candidate messages according to one embodiment of the present invention;
FIG. 14 is a schematic diagram of a target message with target indicators orderly and discontinuously populated into candidate messages according to another embodiment of the present invention;
FIG. 15 is a schematic diagram of the structure of an in-stack indicator provided by one specific example of the present invention;
FIG. 16 is a schematic diagram of a post stack indicator provided by one specific example of the present invention;
FIG. 17 is a schematic diagram of a target message provided by a specific example of the present invention;
FIG. 18 is a schematic diagram of a target indicator provided by another specific example of the present invention;
FIG. 19 is a schematic diagram of a target message provided by another embodiment of the present invention;
FIG. 20 is a schematic diagram of the structure of a target indicator provided by another specific example of the present invention;
FIG. 21 is a schematic diagram of a network topology for performing a message processing method according to another specific example of the present invention;
FIG. 22 is a schematic diagram of a target message provided by another specific example of the present invention;
FIG. 23 is a schematic diagram of a target message provided by another specific example of the present invention;
FIG. 24 is a schematic diagram of a target message obtained after a first data processing according to another embodiment of the present invention;
FIG. 25 is a schematic diagram of a target message obtained after a second data processing according to another embodiment of the present invention;
fig. 26 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It should be noted that although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different from that in the flowchart. In the description of the specification, claims and drawings, the meaning of a plurality (or a plurality of) is two or more, and it is to be understood that greater than, less than, exceeding, etc. does not include the present number, and that above, below, within, etc. are to be interpreted as including the present number. If any, the terms "first," "second," etc. are used for distinguishing between technical features only, and should not be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
The invention provides a message processing method and a device, a storage medium and a program product thereof, which determine whether a target condition of using a combined indicator in a message is met according to the information type of the information to be sent and the sequence to be processed of the information to be sent; when the target condition is determined to be met, determining a target indicator combination according to the information type and the sequence to be processed; generating a target message carrying the combination of the information to be sent and the target indicator; and sending the target message to the receiving node, so that the receiving node performs data processing on the information to be sent according to the target indicator combination, namely, under the condition that the target condition is met is determined, the target indicator combination can be determined according to the information type and the sequence to be processed, the target message carrying the information to be sent and the target indicator combination is generated, and the requirements of the message based on the information type, the information carrying repeatedly and processing repeatedly and the information processing sequence can be determined through the target indicator combination.
Embodiments of the present invention will be further described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of a message processing method according to an embodiment of the present invention, where the message processing method may include, but is not limited to, step S110, step S120, step S130, and step S140.
Step S110: and determining whether the target condition using the combined indicator in the message is met or not according to the information type of the information to be transmitted and the sequence to be processed of the information to be transmitted.
Note that the target condition may be that the number of information to be transmitted having the same information type is plural; or the different to-be-processed sequences of the information to be sent correspond to different business logic or processing results; or the number of the information to be transmitted with the same information type is a plurality of, and different sequences to be processed of the information to be transmitted correspond to different business logic or processing results, which are not particularly limited according to the actual situation. For example, assuming that information to be transmitted has information a1, information a2, and information b, wherein the information a1 and the information a2 are the same information, since the information to be transmitted has two information of the same information type, it is possible to determine that the target condition using the combination indicator in the message is met; or, assuming that the order to be transmitted of the information to be transmitted is information c, information b and information a in sequence, and the order to be processed has service logic or processing result corresponding to the order to be processed, it is possible to determine that the target condition using the combination indicator in the message is met; or, the information to be transmitted includes information a1, information a2 and information b, the information a1 and the information a2 are the same information, the order to be transmitted is information b, information a1 and information a2 in turn, and the order to be processed has corresponding business logic or processing result, so that it is determined that the target condition using the combination indicator in the message is met, and it is noted that the information a1 and the information a2 are the same information.
Step S120: and when the target condition is determined to be met, determining a target indicator combination according to the information type and the order to be processed.
It should be noted that, the target indicator combination may include a plurality of target indicators, and when the plurality of target indicators are filled in the target packet, each target indicator may include at least one of a first data identification bit and a second data identification bit, where the first data identification bit is used to characterize whether the target information to be sent can be obtained through the target packet, the target information to be sent is expressed through the first data identification bit, and the target packet does not additionally carry the target information to be sent; the second data identification bit is used for representing whether the target message carries the corresponding information to be sent, and is not particularly limited herein. It should be noted that, the target indicator may be filled in the label stack of the target message, or may be filled in the label stack of the target message; the second data identification bit can be used for representing whether the label stack of the target message carries the corresponding information to be sent or not, and can also be used for representing whether the label stack of the target message carries the corresponding information to be sent or not.
It should be further noted that each target indicator may further include a data reading identifier bit and a stack bottom identifier bit, where the stack bottom identifier bit is used to indicate whether the current target indicator is at the bottom of the label stack, and the data reading identifier bit is used to indicate whether to continue reading the next target indicator, which is not limited herein.
It should be noted that, the number of the first data identification bits and the second data identification bits in each target indicator is not limited, and may be one or more, and is selected according to practical situations, and is not particularly limited herein.
Step S130: and generating a target message carrying the combination of the information to be sent and the target indicator.
Step S140: and sending the target message to the receiving node, so that the receiving node performs data processing on the information to be sent according to the target indicator combination.
It should be noted that, when the target indicator combination includes a plurality of target indicators, the receiving node is configured to read a predetermined number of target indicators, which is not particularly limited herein.
In this embodiment, by adopting the message processing method including the steps S110 to S140, whether the target condition of using the combined indicator in the message is met is determined according to the information type of the information to be sent and the sequence to be processed of the information to be sent, when the target condition is determined to be met, the target indicator combination can be determined according to the information type and the sequence to be processed, then, a target message carrying the information to be sent and the target indicator combination is generated, and finally, the target message is sent to the receiving node, so that the receiving node performs data processing on the information to be sent according to the target indicator combination, that is, in the case that the target condition is determined to be met, the target indicator combination can be determined according to the information type and the sequence to be processed, the target message carrying the information to be sent and the target indicator combination is generated, and the requirement of the information type, the information carrying and the repeated processing and the information processing sequence can be determined according to the target indicator combination.
In an embodiment, when the target indicator combination includes a plurality of target indicators and the plurality of target indicators are filled in a label stack of the target message, each target indicator includes a first data identification bit, a plurality of second data identification bits, a stack bottom identification bit and a data reading identification bit, where the second data identification bits are used to characterize whether the label stack of the target message carries corresponding information to be sent, as shown in fig. 2, fig. 2 is a schematic diagram of the target indicator, where the target indicator includes four second data identification bits as an example. It should be noted that each of the first data identification bits and the second data identification bits may be three, four, or more.
In an embodiment, as shown in fig. 3 and fig. 4, when the target indicator combination includes a plurality of target indicators, and a part of target indicators may be filled in a label stack of the target message, and another part of target indicators are filled behind the label stack of the target message, wherein the target indicators filled behind the label stack of the target message are set as post-stack indicators and the target indicators filled in the label stack of the target message are set as post-stack indicators, and the post-stack indicators each include a data reading identification bit and a plurality of second data identification bits. It should be noted that, the data reading identification bit is used to characterize whether to continue reading the next target indicator; in the stack indicator, the second data identification bit is used for representing whether the label stack carries corresponding information to be sent or not, or is used for representing whether the label stack carries the corresponding information to be sent or not; in the post-stack indicator, the second data identification bit is used for representing whether the label stack carries corresponding information to be sent. It should be noted that the number of the second data identification bits is not limited, and may be 3, 4 or more, which are not listed here.
In one embodiment, further describing step S120, step S120 may include, but is not limited to, the following steps:
and determining the target indicator combination according to the information type, the order to be processed and the preset combination rule.
In this embodiment, the target indicator combination may be determined according to the information type, the order to be processed, and the preset combination rule, so as to improve the accuracy of data indication.
In one embodiment, as shown in fig. 5, step S120 is further described, and step S120 may include, but is not limited to, step S210 and step S220.
Step S210: and determining target indicator information according to the information type and the to-be-processed sequence, wherein the target indicator information comprises at least one of the number of indicators, the information indicated by each indicator, the position of each indicator in the label stack and the position of the information indicated by each indicator in the label stack.
It should be noted that the number of the indicators is not limited, and may be one, two, three or more, and is not listed here.
It should be noted that, the information indicated by the indicator may include at least one of information to be transmitted, an information type of the information to be transmitted, an order of the information to be transmitted, whether the information to be transmitted is repeatedly carried or whether the information to be transmitted is repeatedly processed, and the like, which is not limited herein.
It should be noted that the target indicator information may also include whether other tags exist between the indicators, the position of the indicators after the tag stack, or the position of the information indicated by the indicators after the tag stack, and the like, which is not particularly limited herein.
Step S220: a target indicator combination is determined from the target indicator information.
In this embodiment, by adopting the message processing method including the above steps S210 and S220, the target indicator information can be determined according to the information type and the order to be processed, the target indicator combination can be determined according to the target indicator information, and the requirement based on the information type, the information repetition carrying and the repetition processing, and the information processing order in the message can be determined by the target indicator combination. The target indicator information includes at least one of the number of indicators, information indicated by each indicator, a position of each indicator in the label stack, and a position of information indicated by each indicator in the label stack, and is not particularly limited herein.
In an embodiment, as shown in fig. 6, in the case that the target indicator combination includes a plurality of target indicators, step S130 is further described, and the step S130 may include, but is not limited to, step S310, step S320, and step S330.
Step S310: generating a candidate message;
step S320: and carrying out parameter setting processing on the indication bits corresponding to the target indicators according to the information required to be indicated by the target indicators.
The parameter setting processing is performed on the indication bits corresponding to the target indicators in many ways, for example, the indication bits corresponding to the target indicators are set to 1 or 0, wherein the indication bits corresponding to the target indicators are set to 1 and the indication bits corresponding to the target indicators are set to 0, respectively, which represent opposite meanings. For example, assuming that each target indicator includes a first data identification bit, the first data identification bit is used for representing whether target information to be sent can be obtained through a target message, the target information to be sent is expressed through the first data identification bit, and the target message does not additionally carry the target information to be sent, when the first data identification bit is 1, the target information to be sent can be obtained through the target message, the target information to be sent is expressed through the first data identification bit, and the target message does not additionally carry the target information to be sent; when the first data identifier is at the position 0, it is characterized that the target information to be sent cannot be obtained through the target message, and the target information to be sent cannot be expressed through the first data identifier, which is not particularly limited in this embodiment, other parameter setting processing may be performed on the indication bits corresponding to each target indicator, where the parameter may be 2, 3, 7, 8, and the like, and a corresponding meaning is given to the parameter, and no particular limitation is made herein.
Step S330: and filling the information to be sent and each target indicator subjected to parameter setting processing into the candidate message to obtain a target message.
It should be noted that the number of information to be transmitted is plural, for example, 1, 3 or more, and the position order of each information to be transmitted in the target message corresponds to the position order of each indication bit corresponding to each target indicator.
It should be noted that, there are many ways to obtain the target message by filling the information to be sent and the target indicators subjected to the parameter setting processing into the candidate message, for example, the method may be to fill the information to be sent and the target indicators subjected to the parameter setting processing into a label stack of the candidate message to obtain the target message; or filling the information to be sent and each target indicator subjected to parameter setting processing into a label stack of the candidate message to obtain a target message; or, a part of the information to be sent and each target indicator subjected to the parameter setting process are filled into the label stack of the candidate message, and the other part of the information to be sent and each target indicator subjected to the parameter setting process are filled into the label stack of the candidate message, which is not particularly limited herein.
In this embodiment, by adopting the message processing method including the steps S310 to S330, firstly, a candidate message is generated, secondly, according to the information required to be indicated by each target indicator, parameter setting processing is performed on the indication bits corresponding to each target indicator, and finally, the information to be sent and each target indicator subjected to the parameter setting processing are filled into the candidate message, so as to obtain a target message, and a receiving node can conveniently read the target message according to the target indicator to obtain the information.
It should be noted that, the target indicator combination and the information to be sent corresponding to the target indicator combination may form data combination information, the target message is repeatedly filled with a plurality of data combination information, and when each receiving node processes the corresponding data combination information, the data combination information is in the readable tag depth of the corresponding receiving node. It should also be noted that the readable tag depth may be different for each receiving node.
In one embodiment, as shown in fig. 7, step S330 is further described, and step S330 may include, but is not limited to, step S410 and step S420.
Step S410: orderly and continuously filling each target indicator subjected to parameter setting processing into a candidate message;
Step S420: the candidate messages are sequentially and continuously filled with the respective information to be transmitted immediately after all the target indicators.
In this embodiment, by adopting the message processing method including the above steps S410 and S420, each target indicator subjected to the parameter setting processing is first sequentially and continuously filled into the candidate message, and then each information to be sent is sequentially and continuously filled into the candidate message immediately after all the target indicators, so as to prepare for the subsequent generation of the target message.
It should be noted that, the target indicator combination and the information to be sent corresponding to the target indicator combination may form data combination information, the target message is repeatedly filled with a plurality of data combination information, and when each receiving node processes the corresponding data combination information, the data combination information is in the readable tag depth of the corresponding receiving node. It should also be noted that the readable tag depth may be different for each receiving node.
In one embodiment, as shown in fig. 8, step S330 is further described, and step S330 may include, but is not limited to, step S510 and step S520.
Step S510: and orderly and discontinuously filling each target indicator subjected to parameter setting processing into the candidate message.
It should be noted that other labels may or may not exist between the target indicators, and the present invention is not limited thereto.
Step S520: the corresponding information to be transmitted is filled into the candidate message immediately after each target indicator.
In this embodiment, by adopting the message processing method including the above steps S510 and S520, each target indicator subjected to the parameter setting processing is first filled in the candidate message in order and discontinuously, and then the corresponding information to be transmitted is filled in the candidate message immediately after each target indicator, so as to prepare for generating the target message.
It should be noted that, the target indicator combination and the information to be sent corresponding to the target indicator combination form data combination information, the target message is repeatedly filled with a plurality of data combination information, and each receiving node processes the corresponding data combination information, where the data combination information is in the readable label depth of the corresponding receiving node. It should also be noted that the readable tag depth may be different for each receiving node.
In an embodiment, in the case that the target indicator combination includes a plurality of target indicators, before performing step S140, the message processing method may further include, but is not limited to, the following steps:
The number of target indicators read is agreed with the receiving node.
In this embodiment, assuming that the target indicator includes a plurality of target indicators, the transmitting node and the receiving node may agree on the number of target indicators to be read before transmitting the target message to the receiving node, so as to indicate how many target indicators the receiving node needs to read to perform data processing on the information to be transmitted.
In addition, fig. 9 is a schematic diagram of a message processing method according to another embodiment of the present invention, where the message processing method may include, but is not limited to, step S610 and step S620.
Step S610: and receiving the target message from the transmitting node.
It should be noted that, the target message includes information to be transmitted and a target indicator combination, and the target indicator combination is an indicator combination obtained according to the information type and the order to be processed when the target condition that the combined indicator is used in the message is determined to be met according to the information type of the information to be transmitted and the order to be processed of the information to be transmitted.
Note that the target condition may be that the number of information to be transmitted having the same information type is plural; or the different to-be-processed sequences of the information to be sent correspond to different business logic or processing results; or the number of the information to be transmitted with the same information type is a plurality of, and different sequences to be processed of the information to be transmitted correspond to different business logic or processing results, which are not particularly limited according to the actual situation. For example, assuming that information to be transmitted has information a1, information a2, and information b, wherein the information a1 and the information a2 are the same information, since the information to be transmitted has two information of the same information type, it is possible to determine that the target condition using the combination indicator in the message is met; or, assuming that the order to be transmitted of the information to be transmitted is information c, information b and information a in sequence, and the order to be processed has service logic or processing result corresponding to the order to be processed, it is possible to determine that the target condition using the combination indicator in the message is met; or, the information to be sent includes information a1, information a2 and information b, the information a1 and the information a2 are the same information, the order to be sent is information b, information a1 and information a2 in turn, and the order to be processed has corresponding business logic or processing result, so that the target condition meeting the use of the combined indicator in the message can be determined.
In an embodiment, the target indicator combination may include a plurality of target indicators, the number of information to be sent may be a plurality of, and the position sequence of each information to be sent in the target message corresponds to the position sequence of each indicating bit corresponding to each target indicator, which is not limited herein.
Step S620: and carrying out data processing on the information to be transmitted according to the target indicator combination in the target message.
In this embodiment, by adopting the message processing method including the steps S610 to S620 described above, the target message from the transmitting node is first received, wherein the target message includes the information to be transmitted and the target indicator combination, which is an indicator combination obtained according to the information type and the order to be processed in the message, in the case where the target condition using the combination indicator in the message is determined to be met according to the information type of the information to be transmitted and the order to be processed of the information to be transmitted, and then the data processing is performed on the information to be transmitted according to the target indicator combination in the target message, so that each receiving node can determine the requirements of the message based on the information type, the information carrying and the processing repeatedly, and the information processing order by the target indicator combination.
It should be noted that, the target indicator combination and the information to be sent corresponding to the target indicator combination form data combination information, the target message is repeatedly filled with a plurality of data combination information, and when the data combination information is processed by the corresponding node, the data combination information is located in the readable label depth of the corresponding node, which is not particularly limited herein. It should also be noted that the readable tag depth may be different for each receiving node.
In an embodiment, as shown in fig. 10, in the case that the target indicator combination includes a plurality of target indicators and the amount of information to be transmitted is a plurality, step S620 is further described, and step S620 may include, but is not limited to, step S710, step S720, and step S730.
Step S710: and reading a first target indicator from the label stack top of the target message, determining information to be transmitted corresponding to the first target indicator, and determining whether to continue reading a next target indicator according to the first target indicator.
It should be noted that the target indicator combination may include a plurality of target indicators, and each target indicator includes a data read identification bit, where the data read identification bit is used to indicate whether to continue to read the next target indicator.
Step S720: when the next target indicator is determined to be continuously read according to the first target indicator, the next target indicator is read, information to be transmitted corresponding to the next target indicator is determined, and all target indicators to be read are read until the reading is completed;
step S730: and carrying out data processing on all the determined information to be transmitted according to the sequence of all the read target indicators.
It should be noted that, the data processing may be performed on all the determined information to be sent, which may be performed on all the determined information to be sent after all the target indicators to be read are read; alternatively, after reading each target indicator, the determined corresponding information to be transmitted is subjected to data processing, which is not particularly limited herein.
In this embodiment, after receiving the target packet, the receiving node starts to read the first target indicator from the label stack top of the target packet, determines the information to be sent corresponding to the first target indicator, determines whether to continue to read the next target indicator according to the first target indicator, and when it is determined to continue to read the next target indicator according to the first target indicator, reads the next target indicator, determines the information to be sent corresponding to the next target indicator until all the target indicators to be read are read, and finally performs data processing on all the determined information to be sent according to the sequence of all the read target indicators.
In an embodiment, in the case that the target indicator combination includes a plurality of target indicators, before performing step S610, the message processing method may further include, but is not limited to, the following steps:
the number of target indicators read is agreed with the transmitting node.
In this embodiment, in the case where the target indicator combination includes a plurality of target indicators, the receiving node may agree with the number of target indicators read by the transmitting node before receiving the target message from the transmitting node, so that the receiving node may process the information to be transmitted in a subsequent step.
In an embodiment, where the target indicator combination includes a plurality of target indicators, step S620 is further described, and step S620 may include, but is not limited to, the following steps:
and reading a preset number of target indicators, and performing data processing on the information to be transmitted.
In this embodiment, in the case where the target indicator combination includes a plurality of target indicators, the receiving node may read a preset number of target indicators configured in advance to perform data processing on information to be transmitted.
It should be noted that, the target indicator combination may include a plurality of target indicators, and when the plurality of target indicators are filled in the target packet, each target indicator may include at least one of a first data identification bit and a second data identification bit, where the first data identification bit is used to characterize whether the target information to be sent can be obtained through the target packet, the target information to be sent is expressed through the first data identification bit, and the target packet does not additionally carry the target information to be sent; the second data identification bit is used for representing whether the target message carries the corresponding information to be sent, and is not particularly limited herein. It should be noted that, the target indicator may be filled in the label stack of the target message, or may be filled in the label stack of the target message; the second data identification bit can be used for representing whether the label stack of the target message carries the corresponding information to be sent or not, and can also be used for representing whether the label stack of the target message carries the corresponding information to be sent or not.
It should be further noted that each target indicator may further include a data reading identifier bit and a stack bottom identifier bit, where the stack bottom identifier bit is used to indicate whether the current target indicator is at the bottom of the label stack, and the data reading identifier bit is used to indicate whether to continue reading the next target indicator, which is not limited herein.
It should be noted that, the number of the first data identification bits and the second data identification bits in each target indicator is not limited, and may be one or more, and is selected according to practical situations, and is not particularly limited herein.
In an embodiment, when the target indicator combination includes a plurality of target indicators and the plurality of target indicators are filled in a label stack of the target message, each target indicator includes a first data identification bit, a plurality of second data identification bits, a stack bottom identification bit and a data reading identification bit, where the second data identification bits are used to characterize whether corresponding information to be sent is carried in the label stack of the target message, it should be noted that, as shown in fig. 2, fig. 2 is a schematic diagram of the target indicator including four second data identification bits as an example.
In an embodiment, as shown in fig. 3 and fig. 4, when the target indicator combination includes a plurality of target indicators, and a part of target indicators may be filled in a label stack of the target message, and another part of target indicators are filled behind the label stack of the target message, where, assuming that the target indicators filled behind the label stack of the target message are post-stack indicators, the target indicators filled in the label stack of the target message are post-stack indicators, and the post-stack indicators each include a data reading identification bit and a plurality of second data identification bits. It should be noted that, the data reading identification bit is used to characterize whether to continue reading the next target indicator; in the stack indicator, the second data identification bit is used for representing whether the label stack carries corresponding information to be sent or not, or is used for representing whether the label stack carries the corresponding information to be sent or not; in the post-stack indicator, the second data identification bit is used for representing whether the label stack carries corresponding information to be sent. It should be noted that the number of the second data identification bits is not limited, and may be 3, 4 or more, which are not listed here.
For the message processing method provided in the foregoing embodiment, the following details are described by using specific examples:
Example one:
in one embodiment, the target indicator combination includes a plurality of target indicators, each target indicator including a first data identification bit, a plurality of second data identification bits, and a data read identification bit, where the target indicators are shown in fig. 11, A1 represents the first data identification bit, B1/B2 represents either B1 or B2, where B1 represents the second data identification bit corresponding to information B1, B2 represents the second data identification bit corresponding to information B2, C1 represents the second data identification bit corresponding to information C, S represents the stack bottom identification bit, X1 represents the data read identification bit, Y1 represents the second data identification bit corresponding to information Y, and Z1 represents the second data identification bit corresponding to information Z. Assuming that according to the order to be sent, the information to be sent carries information B1, information a, information B2 and information C in turn, and the information B1 and the information B2 are the same information, wherein the information a is only expressed through a first data identification position, and the target message does not additionally carry information a, the information type of the information to be sent and the order to be sent of the information to be sent can determine that the target condition of using the combined indicator in the message is met, and two target indicators are determined, namely a first target indicator and a second target indicator, respectively, according to the information required to be indicated by each target indicator, parameter setting processing is performed on the indication position corresponding to each target indicator, namely the second data identification position B1 corresponding to the information B1 in the first target indicator (the second data identification position B1 characterizes the information B1), the data reading identification position X1 in the label stack, the rest of the data identification position 0, the first data identification position A1 corresponding to the information a of the second target indicator (the second data identification position A1) can be obtained through the first data identification position A1 corresponding to the information a, the rest of the second data identification position C1 corresponding to the information B1 in the second target indicator (the second data identification position B1) and the rest of the information B1 is characterized by the second data identification position, the rest position C is carried in the label stack, and the rest position information C is continuously marked by the second data identification position corresponding to the second data identification position B1 corresponding to the information B1 in the first data identification position, and the rest position C is continuously indicated by the information B1, and the rest position is marked by the rest of the information B1, and the rest of the information B1 identification information is carried by the information, and the rest is indicated by the information, and the information B1, and the rest is carried by the information, and the rest information, and the information is the information, and the information is indicated and the information, and the information is, and sequentially and continuously filling the candidate message with the information b1, the information b2 and the information c immediately after all the target indicators to obtain a target message, wherein the target message is shown in fig. 12. It should be noted that, the data reading identification bit X1 is set to 1, and the representation continues to read the next target indicator; the data reading identification bit X1 is set to 0, and represents that reading of the next target indicator is stopped; the bottom identifier S is 0 to indicate that the current target indicator is not at the bottom of the label stack, which is exemplified by the specific meaning of each identifier by setting, or by other means, which is not specifically limited herein.
Example two:
in one embodiment, the target indicator combination includes a plurality of target indicators, each including a first data identification bit, a plurality of second data identification bits, and a data read identification bit, where the target indicators are shown in fig. 11, A1 represents the first data identification bit, B1/B2 represents either B1 or B2, where B1 represents the second data identification bit corresponding to information B1, B2 represents the second data identification bit corresponding to information B2, C1 represents the second data identification bit corresponding to information C, S represents the stack bottom identification bit, X1 represents the data read identification bit, Y1 represents the second data identification bit corresponding to information Y, and Z1 represents the second data identification bit corresponding to information Z. It is assumed that according to the order to be transmitted, the information to be transmitted sequentially carries information B1, information a, information B2 and information C, where the information B1 and the information B2 are the same information, so that two target indicators, namely, a first target indicator and a second target indicator, can be determined, according to the information required to be indicated by each target indicator, parameter setting processing is performed on the indication bits corresponding to each target indicator, that is, the second data identification bit B1 corresponding to the information B1 in the first target indicator is set 1 (the second data identification bit B1 is used for representing the information B1 in the tag stack), the data reading identification bit X1 is set 1, the rest of bits identify the position 0, and the first data identification bit A1 corresponding to the information a in the second target indicator is set 1 (the first data identification bit A1 is used for representing the information a can be obtained through the target message, the information a is expressed by a first data identification bit A1, the target message does not additionally carry the information a), a second data identification bit B2 corresponding to the information B2 is set 1 (the second data identification bit B2 is set 1 to represent the information B2 in the label stack), a second data identification bit C1 corresponding to the information C is set 1 (the second data identification bit C1 is set 1 to represent the information C in the label stack), the rest bit identifies the position 0, then the first target indicator and the second target indicator which are subjected to parameter setting processing are orderly and discontinuously filled into the candidate message, the corresponding information B1 is filled into the candidate message immediately after the first target indicator, the corresponding information B2 and the information C1 are sequentially filled into the candidate message immediately after the second target indicator, and the target message is obtained, in the case that no other tag exists between the first target indicator and the second target indicator, the target message is as shown in fig. 13; in the case where there are other labels between the first target indicator and the second target indicator, the target message is as shown in fig. 14. It should be noted that, the data reading identification bit X1 is set to 1, and the representation continues to read the next target indicator; the data reading identification bit X1 is set to 0, and represents that reading of the next target indicator is stopped; the stack bottom identification position S is 0, which indicates that the current target indicator is not at the bottom of the label stack, and can also set specific meanings of other parameter characterization identification positions.
Example three:
in one embodiment, the in-stack indicator is shown in fig. 15, S represents a stack bottom identification bit, X2 represents a data read identification bit, Y2 represents a second data identification bit corresponding to information Y, and Z2 represents a second data identification bit corresponding to information Z; the post-stack indicator is shown in fig. 16, X3/X4 represents X3 or X4, wherein X3 and X4 each represent a data read identification bit, A2 represents a second data identification bit corresponding to information a, B3 represents a second data identification bit corresponding to information B, and C2 represents a second data identification bit corresponding to information C. As shown in fig. 17, it is assumed that the label stack in the target packet sequentially carries information y in the label stack, information b after the label stack, information a after the label stack, and an indicator in the stack, a first post-stack indicator, and a second post-stack indicator. A data reading identification bit X2 in the indicator in the stack is set to 1 (indicating that reading of the indicator in the next stack is stopped), a second data identification bit Y2 is set to 1 (indicating that the label stack carries corresponding information Y), and a second data identification bit Z2 is set to 1 (indicating that the label stack carries data); and the data reading identification bit X3 is set to 0 in the first post-stack indicator (representing that the next post-stack indicator is continuously read), and the second data identification bit B3 corresponding to the information B in the first post-stack indicator is set to 1 (the second data identification bit B3 is set to 1 representing that the label stack carries the corresponding information B); the data read flag bit X4 of the second post-stack indicator is set to 1 (characterizing the stop reading the next post-stack indicator), and the second data flag bit A2 corresponding to information a in the second post-stack indicator is set to 1 (the second data flag bit A2 is set to 1 characterizing the tag stack to carry the corresponding information a). After receiving the target message, the receiving node firstly reads the indicator in the stack, according to the data reading identification bit X2 in the indicator in the stack, the next indicator in the stack is stopped, according to the second data identification bit Y2 in the indicator in the stack, the information Y carried in the label stack needs to be subjected to data processing, then according to the second data identification bit Z2, the label stack carries data, then the receiving node carries out data processing on the information Y, and then sequentially reads the first post-stack indicator and the second post-stack indicator, according to the second data identification bit B3 corresponding to the information B in the first post-stack indicator, the information B carried after the label stack needs to be subjected to data processing, according to the data reading identification bit X3 of the first post-stack indicator, the second post-stack indicator is continuously read, then according to the second data identification bit A2 corresponding to the information a in the second post-stack indicator, the information a needs to be carried after the label stack, the data processing is carried out on the information a after the label stack, the next post-stack is repeatedly carried out, the next step is stopped, the information B is sequentially read, the node B is not required to be subjected to data processing after the information B is repeatedly read, and the information B is sequentially received, and the node is sequentially processed, and after the information B is continuously subjected to the information processing is stopped. The embodiment of the invention takes the concrete meaning of each identification bit as an example by a setting mode, and can also represent the concrete meaning of each identification bit by other modes, and the concrete meaning is not limited herein.
Example four:
in an example, as shown in fig. 18, A3 represents a second data identification bit corresponding to information a, B4 represents a second data identification bit corresponding to information B, C3 represents a second data identification bit corresponding to information C, S represents a stack bottom identification bit, X5/X6 represents X5 or X6, wherein X5 and X6 each represent a data reading identification bit, Y3 represents a second data identification bit corresponding to information Y, and Z3 represents a second data identification bit corresponding to information Z. As shown in fig. 19, it is assumed that the label stack in the target packet sequentially carries information a in the label stack, information c after the label stack, and information b in the label stack, and the target packet carries two target indicators, namely a first target indicator and a second target indicator, according to the order to be sent of the information to be sent. In the first target indicator, a second data identification bit A3 corresponding to the information a is set to 1 (the label stack of the target message is characterized by carrying the corresponding information a), a second data identification bit C3 corresponding to the information C is set to 1 (the label stack of the target message is characterized by carrying the corresponding information C), a data reading identification bit X5 is set to 1 (the label stack of the target message is characterized by stopping reading the next target indicator), the rest of bits identify position 0, and in the second target indicator, a second data identification bit B4 corresponding to the information B is set to 1 (the label stack of the target message is characterized by carrying the corresponding information B), a data reading identification bit X6 is set to 0 (the label stack of the target message is characterized by continuing reading the next target indicator), and the rest of bits identify position 0. After receiving the target message, the receiving node starts to read a first target indicator from the label stack top of the target message, determines whether to continue to read the next target indicator according to the first target indicator, determines whether to stop reading the second target indicator according to the data reading identification bit X5, determines to continue reading the next target indicator according to the data reading identification bit X6 of the second target indicator, then sequentially reads the next target indicator according to the second data identification bit A3 corresponding to the information a in the first target indicator and the second data identification bit C3 corresponding to the information C, determines that the information a and the information C need to be sequentially processed, determines whether to sequentially process the information B according to the second data identification bit B4 corresponding to the information B in the second target indicator, sequentially processes the information a, the information C and the information B according to the data reading identification bit X5, and then strips the first label, and then sequentially forwards the second label to the receiving node after stripping, which is located at the next receiving node, and then does not repeat the steps to the receiving node.
Example five:
as shown in fig. 20, fig. 20 is a schematic diagram of the target indicator, A4 represents a second data identification bit corresponding to the information a, B5/B6 represents B5 or B6, B5 represents a second data identification bit corresponding to the information B1, B6 represents a second data identification bit corresponding to the information B2, S represents a stack bottom identification bit, and X7/X8 represents X7 or X8, wherein X7 or X8 represents a data reading identification bit. As shown in fig. 21, the first receiving node is denoted by P1, the second receiving node is denoted by P2, the third receiving node is denoted by P3, and the transmitting node is denoted by D, assuming that the receiving node includes a first receiving node 110, a second receiving node 120, and a third receiving node 130, the readable tag depth of the first receiving node 110 is 7 layers, the readable tag depths of the second receiving node 120 and the third receiving node 130 are 10 layers, the first receiving node 110, the second receiving node 120, and the third receiving node 130 each need to sequentially read information B1, information a, and information B2, and the information B1 and the information B2 are the same information, it is known that the first target indicator and the second target indicator are carried in the target message, and the second data identification bit B5 corresponding to the information B1 in the first target indicator is set to 1, and the data reading identification bit X7 is set to 1 (indicating that the next target indicator is continuously read), the remaining positions 0, 1 in the second data identification bit A4 of the corresponding information a in the second target indicator, and 1 in the second data identification bit B6 of the corresponding information B2 in the second target indicator, and 0, when the transmitting node 100 fills both the first target indicator and the second target indicator at a position after the first tag, the second tag, and the third tag, the data combination information (i.e., the first target indicator, the second target indicator, the information B1, the information a, the information B2) is at a position between the fourth layer and the eighth layer in the tag stack, the data combination information exceeds the readable tag depth of the corresponding first receiving node 110, as shown in fig. 22, and thus, 2 data combination information needs to be repeatedly filled in the tag stack, filling the first data combination information at a position after the first tag and the second tag, the third tag is filled to a position after the first data combination information, and the second data combination information is filled to a position after the third tag, as shown in fig. 23.
After the first receiving node 110 receives the target packet, data processing is performed on the information to be sent (i.e., the information b1, the information a, the information b 2) corresponding to the target packet according to the target packet combination (i.e., the first target packet and the second target packet), and then, stripping processing is performed on the first label to obtain a target packet after the first stripping processing, and the target packet after the first stripping processing is forwarded to the second receiving node 120, where the target packet after the first stripping processing is shown in fig. 24, and the information b1 and the information b2 may be the same information.
As shown in fig. 24, after receiving the target packet after the first stripping processing, the second receiving node 120 performs data processing on the information to be sent (i.e., the information b1, the information a, the information b 2) corresponding to the target packet according to the target packet combination (i.e., the first target packet and the second target packet), and then performs stripping processing on the second label, where the first target packet is located at the top of the label stack after the stripping processing, and because the first target packet, the second target packet, the information b1, the information a, and the information b2 are a set of data combination information, stripping processing is performed on both the second label and the first data combination information to obtain the target packet after the second stripping processing, and forwarding the target packet after the second stripping processing to the third receiving node 130, where the target packet after the second stripping processing is shown in fig. 25.
The third receiving node 130 continues to process the third tag and the second set of data combination information according to the previous steps after receiving the target packet after the second stripping process, which is not described herein again.
It will be appreciated that the value and corresponding meaning of the flag bit in all the above examples may be selected according to practical situations, for example, in some embodiments, the data reading flag bit may be set to 0 to indicate that the next target indicator is to be read continuously, and in other embodiments, the data reading flag bit may be set to 1 to indicate that the next target indicator is to be read continuously, which is not particularly limited herein.
In addition, referring to fig. 26, an embodiment of the present invention further provides a message processing apparatus, where the message processing apparatus 200 includes a memory 202, a processor 201, and a computer program stored on the memory 202 and executable on the processor 201.
The processor 201 and the memory 202 may be connected by a bus or other means.
Memory 202 acts as a non-transitory computer readable storage medium that can be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, memory 202 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 202 may optionally include memory located remotely from processor 201, which may be connected to processor 201 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 non-transitory software program and instructions required to implement the message processing method of the above-described embodiments are stored in the memory 202, and when executed by the processor 201, the message processing method of the above-described embodiments is performed, for example, the method steps S110 to S140 in fig. 1, the method steps S210 to S220 in fig. 5, the method steps S310 to S330 in fig. 6, the method steps S410 to S420 in fig. 7, the method steps S510 to S520 in fig. 8, the method steps S610 to S620 in fig. 9, and the method steps S710 to S730 in fig. 10 described above are performed.
The above described embodiments of the apparatus are only illustrative, wherein the units described as separate components may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor or a controller, for example, by one of the processors in the above-described device embodiments, which may cause the processor to perform the message processing method in the above-described embodiment, to perform the method steps S110 to S140 in fig. 1, the method steps S210 to S220 in fig. 5, the method steps S310 to S330 in fig. 6, the method steps S410 to S420 in fig. 7, the method steps S510 to S520 in fig. 8, the method steps S610 to S620 in fig. 9, and the method steps S710 to S730 in fig. 10, which are described above.
Furthermore, an embodiment of the present invention provides a computer program product, including a computer program or computer instructions, where the computer program or computer instructions are stored in a computer readable storage medium, and where a processor of a computer device reads the computer program or computer instructions from the computer readable storage medium, and where the processor executes the computer program or computer instructions, so that the computer device performs the message processing method in the above embodiment, for example, performs the method steps S110 to S140 in fig. 1, the method steps S210 to S220 in fig. 5, the method steps S310 to S330 in fig. 6, the method steps S410 to S420 in fig. 7, the method steps S510 to S520 in fig. 8, the method steps S610 to S620 in fig. 9, and the method steps S710 to S730 in fig. 10 described above.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
While the preferred embodiment of the present invention has been described in detail, the present invention is not limited to the above embodiment, and various equivalent modifications and substitutions can be made by those skilled in the art without departing from the spirit of the present invention, and these equivalent modifications and substitutions are intended to be included in the scope of the present invention as defined in the appended claims.

Claims (27)

1. A message processing method comprises the following steps:
determining whether a target condition using a combined indicator in a message is met according to the information type of the information to be sent and the sequence to be processed of the information to be sent;
when the target condition is determined to be met, determining a target indicator combination according to the information type and the to-be-processed sequence;
generating a target message carrying the combination of the information to be sent and the target indicator;
and sending the target message to a receiving node, so that the receiving node carries out data processing on the information to be sent according to the target indicator combination.
2. The message processing method according to claim 1, wherein the target condition includes at least one of:
the number of the information to be transmitted with the same information type is a plurality;
The different sequences to be processed of the information to be sent correspond to different business logic or processing results.
3. The method according to claim 1, wherein said determining a target indicator combination according to the information type and the order to be processed comprises:
and determining a target indicator combination according to the information type, the order to be processed and a preset combination rule.
4. The method according to claim 1, wherein said determining a target indicator combination according to the information type and the order to be processed comprises:
determining target indicator information according to the information type and the to-be-processed sequence, wherein the target indicator information comprises at least one of the number of indicators, information indicated by each indicator, the position of each indicator in a label stack and the position of the information indicated by each indicator in the label stack;
and determining a target indicator combination according to the target indicator information.
5. The message processing method of claim 1, wherein the target indicator combination comprises a plurality of target indicators; the generating a target message carrying the combination of the information to be sent and the target indicator includes:
Generating a candidate message;
according to the information required to be indicated by each target indicator, carrying out parameter setting processing on indication bits corresponding to each target indicator;
and filling the information to be sent and the target indicators subjected to parameter setting processing into the candidate message to obtain a target message.
6. The method according to claim 5, wherein the number of the information to be sent is plural, and the position order of each information to be sent in the target message corresponds to the position order of each indication bit corresponding to each target indicator.
7. The method according to claim 6, wherein the populating the candidate message with the information to be transmitted and the respective target indicators subjected to the parameter setting process includes:
sequentially and continuously filling each target indicator subjected to parameter setting processing into the candidate message;
each of the information to be transmitted is sequentially and continuously filled into the candidate message immediately after all the target indicators.
8. The method according to claim 6, wherein the populating the candidate message with the information to be transmitted and the respective target indicators subjected to the parameter setting process includes:
Orderly and discontinuously filling each target indicator subjected to parameter setting processing into the candidate message;
and filling the corresponding information to be transmitted into the candidate message immediately after each target indicator.
9. The message processing method according to claim 7 or 8, wherein the target indicator combination and the information to be transmitted corresponding to the target indicator combination form data combination information, the target message is repeatedly filled with a plurality of data combination information, and each receiving node processes the corresponding data combination information, and the data combination information is within a readable tag depth of the corresponding receiving node.
10. The method for processing a message according to claim 5, wherein the step of filling the candidate message with the information to be sent and the target indicators subjected to the parameter setting processing to obtain a target message includes at least one of:
filling the information to be sent and the target indicators subjected to parameter setting processing into a label stack of the candidate message to obtain a target message;
and filling the information to be sent and the target indicators subjected to parameter setting processing into a label stack of the candidate message to obtain a target message.
11. The message processing method of claim 1, wherein the target indicator combination comprises a plurality of target indicators; before the target message is sent to the receiving node, the message processing method further includes:
the number of the target indicators read is agreed with the receiving node.
12. The message processing method according to claim 1, wherein the target indicator combination comprises a plurality of target indicators, and the receiving node is configured to read a preset number of the target indicators.
13. The message processing method according to claim 1, wherein the target indicator combination comprises a plurality of target indicators, the plurality of target indicators being populated with the target message, each of the target indicators comprising at least one of:
the first data identification bit is used for representing whether the target information to be sent can be obtained through the target message, the target information to be sent is expressed through the first data identification bit, and the target message does not additionally carry the target information to be sent;
and the second data identification bit is used for representing whether the target message carries the corresponding information to be sent or not.
14. The message processing method of claim 13, wherein each of the target indicators further comprises:
a data read flag bit to characterize whether to continue reading the next target indicator.
15. A message processing method comprises the following steps:
receiving a target message from a transmitting node, wherein the target message comprises information to be transmitted and a target indicator combination, and the target indicator combination is an indicator combination obtained according to the information type and the sequence to be processed when the target condition which is in accordance with a combined indicator used in the message is determined according to the information type of the information to be transmitted and the sequence to be processed of the information to be transmitted;
and carrying out data processing on the information to be sent according to the target indicator combination in the target message.
16. The message processing method according to claim 15, wherein the target condition includes at least one of:
the number of the information to be transmitted with the same information type is a plurality;
the different sequences to be processed of the information to be sent correspond to different business logic or processing results.
17. The message processing method according to claim 15, wherein the target indicator combination includes a plurality of target indicators, and the number of information to be transmitted is a plurality;
The data processing for the information to be sent according to the target indicator combination in the target message comprises the following steps:
reading a first target indicator from the label stack top of the target message, determining information to be sent corresponding to the first target indicator, and determining whether to continue reading a next target indicator according to the first target indicator;
when the next target indicator is determined to be continuously read according to the first target indicator, the next target indicator is read, and information to be sent corresponding to the next target indicator is determined until all target indicators to be read are read;
and carrying out data processing on all the determined information to be transmitted according to the sequence of all the read target indicators.
18. The method for processing a message according to claim 17, wherein the data processing of all the determined information to be transmitted according to the order of all the read target indicators includes:
after all target indicators to be read are read, carrying out data processing on all determined information to be sent;
or,
After each target indicator is read, data processing is carried out on the determined corresponding information to be sent.
19. The method according to claim 15, wherein the target indicator combination includes a plurality of target indicators, the number of the information to be transmitted is a plurality, and a position order of each of the information to be transmitted in the target message corresponds to a position order of each of the indication bits corresponding to each of the target indicators.
20. The message processing method according to claim 19, wherein the target indicator combination and the information to be transmitted corresponding to the target indicator combination form data combination information, the target message is repeatedly filled with a plurality of data combination information, and the data combination information is within a readable tag depth of a corresponding node when the data combination information is processed by the corresponding node.
21. The message processing method of claim 15, wherein the target indicator combination comprises a plurality of target indicators; before receiving the target message from the sending node, the message processing method further includes:
The number of the target indicators read is agreed with the transmitting node.
22. The method according to claim 15, wherein the target indicator combination includes a plurality of target indicators, and the data processing of the information to be sent according to the target indicator combination in the target message includes:
and reading a preset number of preset target indicators to perform data processing on the information to be sent.
23. The message processing method according to claim 15, wherein the target indicator combination comprises a plurality of target indicators, the plurality of target indicators populating the target message, each of the target indicators comprising at least one of:
the first data identification bit is used for representing whether the target information to be sent can be obtained through the target message, the target information to be sent is expressed through the first data identification bit, and the target message does not additionally carry the target information to be sent;
and the second data identification bit is used for representing whether the target message carries the corresponding information to be sent.
24. The message processing method of claim 23, wherein each of the target indicators further comprises:
A data read flag bit to characterize whether to continue reading the next target indicator.
25. A message processing apparatus, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the message processing method according to any one of claims 1 to 24 when executing the computer program.
26. A computer readable storage medium storing computer executable instructions for performing the message processing method of any one of claims 1 to 24.
27. A computer program product comprising a computer program or computer instructions, characterized in that the computer program or the computer instructions are stored in a computer readable storage medium, from which the computer program or the computer instructions are read by a processor of a computer device, which processor executes the computer program or the computer instructions, so that the computer device performs the message processing method according to any one of claims 1 to 24.
CN202210460693.7A 2022-04-28 2022-04-28 Message processing method and device, storage medium and program product thereof Pending CN117014369A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210460693.7A CN117014369A (en) 2022-04-28 2022-04-28 Message processing method and device, storage medium and program product thereof
PCT/CN2022/143461 WO2023207196A1 (en) 2022-04-28 2022-12-29 Message processing method and apparatus, and storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210460693.7A CN117014369A (en) 2022-04-28 2022-04-28 Message processing method and device, storage medium and program product thereof

Publications (1)

Publication Number Publication Date
CN117014369A true CN117014369A (en) 2023-11-07

Family

ID=88517170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210460693.7A Pending CN117014369A (en) 2022-04-28 2022-04-28 Message processing method and device, storage medium and program product thereof

Country Status (2)

Country Link
CN (1) CN117014369A (en)
WO (1) WO2023207196A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108574632B (en) * 2017-03-10 2020-06-02 华为技术有限公司 Message processing method, device and system
CN110224934B (en) * 2018-03-01 2021-11-09 中兴通讯股份有限公司 Method and device for processing message by using unified SR label stack
WO2020011143A1 (en) * 2018-07-13 2020-01-16 Huawei Technologies Co., Ltd. Mpls extension headers for in-network services
CN109144736A (en) * 2018-09-30 2019-01-04 新华三信息安全技术有限公司 A kind of method and device exporting alert message
CN113973082A (en) * 2020-07-06 2022-01-25 华为技术有限公司 Message processing method and network equipment

Also Published As

Publication number Publication date
WO2023207196A1 (en) 2023-11-02

Similar Documents

Publication Publication Date Title
US20110235656A1 (en) Method and device for allocating mac addresses in a carrier-current communication network
CN106161256B (en) A kind of processing method and processing device of Border Gateway Protocol (BGP) routing
US20170048878A1 (en) Resource reuse method and apparatus
CN109120067B (en) Event sequence record reporting method, device, equipment and readable storage medium
US10880119B2 (en) Method for removing data frame redundancy in network environment, and device and computer program for carrying out same
CN105722040A (en) Service message transmission method, apparatus and system
CN110620739B (en) BFD message sending method and device
CN109861869B (en) Configuration file generation method and device
CN113904985B (en) Segment list acquisition method, message forwarding method, device and electronic equipment
CN114844842A (en) Data transmission method and device, electronic equipment and readable storage medium
CN112491647B (en) Switch message testing method, system and related device
CN106201735A (en) Method for message transmission and system
CN112075102A (en) Low-power Bluetooth networking method, electronic equipment, network and storage medium
CN117014369A (en) Message processing method and device, storage medium and program product thereof
CN106790354B (en) Communication method and device for preventing data congestion
CN112039835B (en) Adaptive polling time estimation method, device, equipment and storage medium
US11309974B2 (en) Quantum channel routing utilizing a quantum channel measurement service
CN115065637B (en) Method and device for transmitting computing power resource information and electronic equipment
CN111200640A (en) Uploading method based on client and client
CN110290068A (en) A kind of sending method, method of reseptance and the equipment of adhesion label
CN107493308B (en) Method and device for sending message and distributed equipment cluster system
CN108196859A (en) A kind of Shipborne terminal remote upgrade method based on AIS communications
CN114827156A (en) Message scheduling method, device, equipment and storage medium
CN103442386A (en) Fault detecting method and node equipment
CN107547421A (en) Asynchronous communication method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication