CN114978985A - Message processing method and device, electronic equipment and storage medium - Google Patents

Message processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114978985A
CN114978985A CN202210553404.8A CN202210553404A CN114978985A CN 114978985 A CN114978985 A CN 114978985A CN 202210553404 A CN202210553404 A CN 202210553404A CN 114978985 A CN114978985 A CN 114978985A
Authority
CN
China
Prior art keywords
message
service function
processed
forwarding
function processing
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
CN202210553404.8A
Other languages
Chinese (zh)
Inventor
赵晓宇
徐洪磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202210553404.8A priority Critical patent/CN114978985A/en
Publication of CN114978985A publication Critical patent/CN114978985A/en
Pending legal-status Critical Current

Links

Images

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/16Multipoint routing

Abstract

The embodiment of the disclosure provides a message processing method and device, electronic equipment and a storage medium, and relates to the technical field of communication. A target transit forwarding router receives a message to be processed; respectively sending messages to be processed to the service function node and the plurality of bit forwarding outlet routers; the service function node performs service function processing on the message to be processed based on the service type field in the message to be processed, and forwards the message to be processed after the service function processing to the target transfer forwarding router; the target transit forwarding router is used for receiving the message to be processed after the service function processing from the service function node and sending the message to be processed after the service function processing to the multiple transit forwarding exit routers; and selecting a message matched with the label in the configuration instruction received in advance from the message to be processed and the message to be processed after the service function processing by the multiple-bit forwarding outlet router. Therefore, different BFERs can be selected according to requirements in the multicast process of the messages.

Description

Message processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a packet, an electronic device, and a storage medium.
Background
With the development of communication technology, the application of multicast technology is becoming more and more extensive. The BIER (Bit Index Explicit Replication) is a novel multicast technology, and in a BIER network, a set of destination nodes can be encapsulated in a packet header in a BS (Bit String) manner to be sent, so that an intermediate node of the network does not need to sense multicast services and maintain a multicast stream state, and only needs to implement Replication and forwarding of the multicast services according to the Bit String, thereby having good service scalability.
In the BIER network, a BFIR (Bit Forwarding Ingress Router) may encapsulate a packet entering the BIER network, a Transit BFR (Bit-Forwarding Router) is used to forward the packet, and a BFER (Bit Forwarding Egress Router) is used to decapsulate the packet and forward the decapsulated packet to a receiver of the multicast packet.
However, in the related art, in the multicast process of one message, each BFER can only receive the same message, and it is not possible to select different messages according to the requirements. For example, a part of the BFER may select a message processed by the service function, and a part of the BFER may select a message not processed by the service function.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a method and an apparatus for processing a packet, an electronic device, and a storage medium, which can implement that each BFER selects different packets according to requirements in a multicast process of the packets. The specific technical scheme is as follows:
in a first aspect of the embodiments of the present disclosure, a packet processing system is first provided, where the packet processing system includes a target forwarding bit forwarding router, a service function node, and a plurality of bit forwarding egress routers, where:
the target transfer forwarding router is used for receiving a message to be processed; respectively sending the messages to be processed to the service function node and the plurality of bit forwarding exit routers;
the service function node is used for performing service function processing on the message to be processed based on the service type field in the message to be processed and forwarding the message to be processed after the service function processing to the target transfer forwarding router; the message to be processed is sent to a service function processing device, wherein the service type field represents the type of service function processing required by the message to be processed;
the destination intermediate-position forwarding router is further configured to receive a to-be-processed packet after service function processing from the service function node, and send the to-be-processed packet after service function processing to the multiple-position forwarding exit routers;
and the multiple bit forwarding outlet routers are used for selecting the messages matched with the labels in the configuration instructions received in advance from the messages to be processed and the messages to be processed after the service function processing.
In a second aspect of the embodiments of the present disclosure, a method for processing a packet is provided, where the method is applied to a target transit forwarding router in a packet processing system, where the packet processing system further includes a plurality of bit forwarding egress routers and service function nodes, and the method includes:
receiving a message to be processed;
respectively sending the messages to be processed to the service function node and the plurality of bit forwarding exit routers; the service function node processes the message to be processed based on the service type field in the message to be processed, and forwards the message to be processed after the service function processing to the target transfer forwarding router; the message to be processed is sent to the service function processing field, wherein the service type field represents the type of service function processing required by the message to be processed;
and receiving the message to be processed after the service function processing from the service function node, and sending the message to be processed after the service function processing to the multiple bit forwarding outlet routers, so that the multiple bit forwarding outlet routers select the message matched with the label in the pre-received configuration instruction from the message to be processed and the message to be processed after the service function processing.
In some embodiments, before said sending said pending packet to said service function node and said plurality of bit forwarding egress routers, respectively, said method further comprises:
detecting whether a designated detection bit field in the message to be processed is a first preset value or not;
the sending the to-be-processed packet to the service function node and the plurality of bit forwarding egress routers, respectively, includes:
if the designated detection bit field in the message to be processed is a first preset value, respectively sending the message to be processed to the service function node and the multiple bit forwarding exit routers;
the method further comprises the following steps:
and if the specified detection bit field in the message to be processed is not a first preset value, sending the message to be processed to the multi-bit forwarding outlet router.
In some embodiments, before the detecting whether the pending message carries a specified detection bit field, the method further includes:
judging whether a service function starting instruction sent by a control node is received;
the detecting whether the specified detection bit field in the message to be processed is a first preset value includes:
under the condition of receiving the service function starting instruction, detecting whether a specified detection bit field in the message to be processed is a first preset value or not;
the method further comprises the following steps:
and under the condition that the service function opening instruction is not received, sending the message to be processed to the multiple-bit forwarding outlet router.
In a third aspect of the embodiments of the present disclosure, a method for packet processing is provided, where the method is applied to a target service function node in a packet processing system, where the packet processing system further includes a target intermediate-level forwarding router and a plurality of bit-level forwarding egress routers, and the method includes:
receiving an intermediate message; the intermediate message is a message to be processed, which is sent by the target transit forwarding router to a service function chain to which the target service function node belongs, or a message obtained by performing service function processing on the message to be processed based on a service type field in the message to be processed; the service type field represents the type of service function processing required by the message to be processed; the message to be processed is as follows: the target transit forwarding router sends the transit forwarding router to the service function chain; the destination intermediate-position forwarding router is further configured to send the to-be-processed packet to the multiple-position forwarding egress routers;
and performing service function processing on the intermediate message based on the service type field in the intermediate message, so that when the target transfer forwarding router receives the to-be-processed message processed by the service function of the service function chain, the target transfer forwarding router sends the to-be-processed message processed by the service function to the plurality of bit forwarding exit routers, and the plurality of bit forwarding exit routers select the message matched with the label in the pre-received configuration instruction from the to-be-processed message and the to-be-processed message processed by the service function.
In some embodiments, the performing service function processing on the intermediate packet based on the service type field in the intermediate packet includes:
judging whether business function processing supported by the intermediate message is included in the business function processing represented by the business type field in the intermediate message;
and if the intermediate message contains the service function processing supported by the intermediate message, performing service function processing on the intermediate message according to the service function processing supported by the intermediate message.
In some embodiments, the to-be-processed message further carries a remaining node field; the initial value of the remaining node field represents the total number of service function nodes in the service function chain;
before determining whether the service function processing indicated by the service type field in the intermediate message includes the service function processing supported by the intermediate message, the method further includes:
judging whether the residual node fields in the intermediate message are second preset values or not;
the judging whether the service function processing indicated by the service type field in the intermediate message includes the service function processing supported by the intermediate message includes:
under the condition that the residual node field in the intermediate message is the second preset value, judging whether the business function processing represented by the business type field in the intermediate message comprises business function processing supported by the intermediate message;
the method further comprises the following steps:
reducing the value of the residual node field in the intermediate message under the condition that the residual node field in the intermediate message is a second preset value;
if the service function processing represented by the service type field in the intermediate message does not include the service function processing supported by the intermediate message, and the numerical value of the remaining node field in the intermediate message is reduced to a third preset numerical value, sending the intermediate message to the target transit forwarding router; if the service function processing represented by the service type field in the intermediate message does not include the service function processing supported by the intermediate message, and the value of the field of the rest nodes in the intermediate message is reduced and is not a third preset value, sending the intermediate message to the next service function node in the service function chain;
if the service function processing represented by the service type field in the intermediate message comprises the service function processing supported by the intermediate message, and the value of the residual node field in the intermediate message is reduced to be a third preset value, sending the intermediate message after the service function processing to the target transit forwarding router; and if the service function processing represented by the service type field in the intermediate message comprises service function processing supported by the intermediate message, and the value of the field of the rest nodes in the intermediate message is reduced and is not a third preset value, sending the intermediate message after the service function processing to the next service function node in the service function chain.
In some embodiments, the method further comprises:
and under the condition that the residual node fields in the intermediate message are not the second preset value, discarding the intermediate message.
In a fourth aspect of the embodiments of the present disclosure, a method for processing a packet is provided, where the method is applied to a target bit forwarding egress router in a packet processing system, where the packet processing system further includes a service function node and a target bit forwarding egress router, and the method includes:
receiving a message to be processed and a message to be processed after service function processing; the message to be processed after the service function processing is as follows: the target intermediate transfer forwarding router receives the data from the service function node and sends the data to the target intermediate transfer forwarding outlet router; the message to be processed after the service function processing is as follows: after receiving a message to be processed sent by the target transfer forwarding router, the service function node performs service function processing on the message to be processed based on a service type field in the message to be processed, and forwards the message to the target transfer forwarding router; the service type field represents the type of service function processing required by the message to be processed; the message to be processed is as follows: the target intermediate transfer forwarding router sends the intermediate transfer forwarding router to the intermediate transfer forwarding egress router and the service function node respectively;
and selecting a message matched with the label in the configuration instruction received in advance from the message to be processed and the message to be processed after the service function processing.
In a fifth aspect of the embodiments of the present disclosure, there is provided a packet processing apparatus, where the apparatus is applied to a target transit forwarding router in a packet processing system, where the packet processing system further includes a service function node and multiple transit forwarding egress routers, and the apparatus includes:
the first receiving module is used for receiving the message to be processed;
a first sending module, configured to send the to-be-processed packet to the service function node and the plurality of bit forwarding egress routers, respectively; the service function node processes the message to be processed based on the service type field in the message to be processed, and forwards the message to be processed after the service function processing to the target transit forwarding router; the message to be processed is sent to a service function processing device, wherein the service type field represents the type of service function processing required by the message to be processed;
and the second receiving module is used for receiving the message to be processed after the service function processing from the service function node and sending the message to be processed after the service function processing to the multiple bit forwarding exit routers, so that the multiple bit forwarding exit routers select the message matched with the label in the configuration instruction received in advance from the message to be processed and the message to be processed after the service function processing.
In some embodiments, the apparatus further comprises:
a first detection module, configured to detect whether a specified detection bit field in the message to be processed is a first preset value before the message to be processed is sent to the service function node and the multiple-bit forwarding egress router, respectively;
the first sending module is specifically configured to:
if the designated detection bit field in the message to be processed is a first preset value, respectively sending the message to be processed to the service function node and the multiple bit forwarding exit routers;
the device further comprises:
and the second sending module is used for sending the message to be processed to the multi-bit forwarding outlet router if the specified detection bit field in the message to be processed is not the first preset numerical value.
In some embodiments, the apparatus further comprises:
a first judging module, configured to judge whether a service function start instruction sent by a control node is received before detecting whether the message to be processed carries an assigned detection bit field;
the first detection module is specifically configured to:
under the condition of receiving the service function starting instruction, detecting whether a specified detection bit field in the message to be processed is a first preset value or not;
the device further comprises:
and a third sending module, configured to send the to-be-processed packet to the multi-bit forwarding exit router when the service function opening instruction is not received.
In a sixth aspect of the embodiments of the present disclosure, a packet processing apparatus is provided, where the apparatus is applied to a target service function node in a packet processing system, and the packet processing system further includes a target transfer forwarding router and a plurality of bit forwarding egress routers, and the apparatus includes:
a third receiving module, configured to receive the intermediate packet; the intermediate message is a message to be processed, which is sent by the target transit forwarding router to a service function chain to which the target service function node belongs, or a message obtained by performing service function processing on the message to be processed based on a service type field in the message to be processed; the service type field represents the type of service function processing required by the message to be processed; the message to be processed is as follows: the target transit forwarding router sends the transit forwarding router to the service function chain; the destination intermediate-position forwarding router is further configured to send the to-be-processed packet to the multiple-position forwarding egress routers;
and the first service function processing module is used for performing service function processing on the intermediate message based on a service type field in the intermediate message, so that when the target transfer forwarding router receives a to-be-processed message processed by the service function of the service function chain, the target transfer forwarding router sends the to-be-processed message after service function processing to the plurality of bit forwarding egress routers, and the plurality of bit forwarding egress routers select a message matched with a label in a pre-received configuration instruction from the to-be-processed message and the to-be-processed message after service function processing.
In some embodiments, the first business function processing module comprises:
the judging submodule is used for judging whether business function processing supported by the judging submodule is included in the business function processing represented by the business type field in the intermediate message;
and the service function processing submodule is used for performing service function processing on the intermediate message according to the service function processing supported by the service function processing submodule if the service function processing supported by the service function processing submodule is included.
In some embodiments, the message to be processed further carries a remaining node field; the initial value of the remaining node field represents the total number of service function nodes in the service function chain;
the device further comprises:
a second judging module, configured to judge whether remaining node fields in the intermediate message are a second preset value before judging whether service function processing supported by the second judging module is included in the service function processing indicated by the service type field in the intermediate message;
the determining submodule is specifically configured to determine, when a remaining node field in the intermediate message is the second preset value, whether service function processing supported by the determining submodule is included in service function processing indicated by a service type field in the intermediate message;
the device further comprises:
the reducing module is used for reducing the value of the residual node field in the intermediate message under the condition that the residual node field in the intermediate message is a second preset value;
a fourth sending module, configured to send the intermediate packet to the destination transit forwarding router if the service function processing indicated by the service type field in the intermediate packet does not include service function processing supported by the fourth sending module, and the value of the remaining node field in the intermediate packet is reduced to a third preset value; if the service function processing represented by the service type field in the intermediate message does not include the service function processing supported by the intermediate message, and the value of the field of the rest nodes in the intermediate message is reduced and is not a third preset value, sending the intermediate message to the next service function node in the service function chain;
a fifth sending module, configured to send the intermediate packet after service function processing to the target transit forwarding router if the service function processing indicated by the service type field in the intermediate packet includes service function processing supported by the fifth sending module, and the value of the remaining node field in the intermediate packet is reduced to a third preset value; and if the service function processing represented by the service type field in the intermediate message comprises service function processing supported by the intermediate message, and the value of the field of the rest nodes in the intermediate message is reduced and is not a third preset value, sending the intermediate message after the service function processing to the next service function node in the service function chain.
In some embodiments, the apparatus further comprises:
and the discarding module is used for discarding the intermediate message under the condition that the residual node fields in the intermediate message are not the second preset numerical value.
In a seventh aspect of the embodiments of the present disclosure, there is provided a packet processing apparatus, where the apparatus is applied to a destination forwarding egress router in a packet processing system, where the packet processing system further includes a service function node and a destination forwarding egress router, and the apparatus includes:
the fourth receiving module is used for receiving the message to be processed and the message to be processed after the service function processing; the message to be processed after the service function processing is as follows: the target intermediate transfer forwarding router receives the data from the service function node and sends the data to the target intermediate transfer forwarding outlet router; the message to be processed after the service function processing is as follows: after receiving a message to be processed sent by the target transfer forwarding router, the service function node performs service function processing on the message to be processed based on a service type field in the message to be processed, and forwards the message to the target transfer forwarding router; the service type field represents the type of service function processing required by the message to be processed; the message to be processed is as follows: the target intermediate transfer forwarding router sends the intermediate transfer forwarding router to the intermediate transfer forwarding egress router and the service function node respectively;
and the selection module is used for selecting the message matched with the label in the configuration instruction received in advance from the message to be processed and the message to be processed after the service function processing.
In an eighth aspect of the embodiments of the present disclosure, an electronic device is provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the message processing method steps when executing the program stored in the memory.
In a ninth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when being executed by a processor, the computer program implements any of the message processing method steps described above.
The embodiments of the present disclosure also provide a computer program product containing instructions, which when run on a computer, causes the computer to execute any of the message processing methods described above.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other embodiments can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic structural diagram of a BIER network according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an SFC architecture provided by an embodiment of the present disclosure;
fig. 3 is an architecture diagram of a message processing system according to an embodiment of the present disclosure;
fig. 4 is an interaction diagram of a message processing method according to an embodiment of the present disclosure;
fig. 5 is an interaction diagram of another message processing method according to the embodiment of the present disclosure;
fig. 6 is a schematic diagram of a preset TLV format according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram illustrating a principle that a destination transit forwarding router processes a packet according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram illustrating a principle that a bit forwarding egress router processes a packet according to an embodiment of the present disclosure;
fig. 9 is a schematic flowchart of message processing according to an embodiment of the present disclosure;
fig. 10 is a schematic flow chart of another message processing provided in the embodiment of the present disclosure;
fig. 11 is a structural diagram of a message processing apparatus according to an embodiment of the present disclosure;
fig. 12 is a structural diagram of another message processing apparatus according to an embodiment of the present disclosure;
fig. 13 is a structural diagram of another message processing apparatus according to an embodiment of the present disclosure;
fig. 14 is a block diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments that can be derived from the disclosure by one of ordinary skill in the art based on the embodiments in the disclosure are intended to be within the scope of the disclosure.
First, concepts related in the present disclosure are briefly introduced.
In the BIER network, the set of destination nodes can be encapsulated in the header of the packet in a BitString manner for transmission, so that the intermediate node of the network does not need to sense the multicast service and maintain the state of the multicast stream, and only needs to copy and forward the multicast service according to the bit string, thereby having good service expansibility.
In the BIER network, each node may be configured with a BFR-ID value. In the BIER network, based on the BFR-ID information, a bit index forwarding table may be established at each node through flooding of an IGP (Interior Gateway Protocol) Protocol. After receiving the BIER packet with BitString, a node in the BIER network may forward the BIER packet based on the bit index forwarding table. For example, the BFR-ID may be represented by SI: xyz. Where SI represents the set identifier of the BFR-ID and xyz is a 4-bit string.
In some embodiments, referring to fig. 1, fig. 1 is a schematic structural diagram of a BIER network according to an embodiment of the present disclosure.
In fig. 1, a is a BFIR (Bit Forwarding Ingress Router) for performing BIER encapsulation on a packet entering a BIER network; b and C are Transit BFRs (Bit-Forwarding routers) used for multicasting messages entering the BIER network; D. e, F is a BFER (Bit Forwarding Egress Router) for decapsulating packets entering the BIER network. As shown in FIG. 1, A, E, F, D has BFR-IDs of 0:1000, 0:0100, 0:0010, 0:0001, respectively. Wherein, a numerical value 4 corresponding to a, a numerical value 3 corresponding to E, a numerical value 2 corresponding to F, and a numerical value 1 corresponding to D respectively represent the identifiers of the two in the bit index forwarding table.
SFC (Service Function Chaining) is a technology for providing ordered services to an application layer of a network. SFCs are used to logically join services on network devices to form an ordered combination of services. The SFC adds the service function chain path information in the original message to realize that the original message passes through the network equipment in sequence according to the specified path, thereby ensuring that the network can provide safe, quick and stable service for users according to the preset planning.
In some embodiments, referring to fig. 2, fig. 2 is a schematic diagram of an SFC architecture provided in an embodiment of the present disclosure.
As shown in fig. 2, the SFC architecture includes SDN-C (Software Defined Network-Controller), CF (ingress Classifier), and multiple SFFs (Service Function forwarding nodes) and SFs (Service Function nodes) associated with the SFFs. Fig. 2 illustrates an example including two SFFs (SFF1, SFF2) and two SFs (SF1, SF2), but is not limited thereto.
The CF entries represents a Classifier (Classifier) in an SFC framework, is connected with the SDN-C and is used for receiving configuration information issued by the SDN-C and forwarding a received message to the SFF according to the configuration information. Wherein, SFC Encap (SFC encapsulation) in fig. 2 indicates that when CF ingress forwards a passed packet, a new packet header is encapsulated in the packet. The SDN-C is connected with the CF ingress nodes and can also be connected with any node in the SFC architecture and used for issuing configuration information and calculating a transmission path of the message in the SFC architecture; the SFF is used to direct the received message to the SF associated with the SFF. The SF can perform service function processing on the received message, and different SFs can perform different service function processing. The service function nodes include a Network Address Translation (NAT) node, a firewall node, a load balancing (lb) (load balancer) node, an intrusion Prevention system (ips) (intrusion Prevention system) node, and the like in the Network. The service function node can detect and process the message. For example, the NAT node may perform network address translation on the packet to obtain a translated packet, that is, a packet after service function processing.
In the related art, in a multicast process of a message, each BFER can only receive the same message and cannot meet different requirements of each BFER on the message. For example, some BFERs need service function processing on the packets, and some BFERs do not need service function processing on the packets.
In order to solve the above problem, an embodiment of the present disclosure provides a message processing system, referring to fig. 3, fig. 3 is an architecture diagram of a message processing system provided in the embodiment of the present disclosure, where the message processing system includes a target transit egress router 301, a service function node 302, and a plurality of bit forwarding egress routers (including a bit forwarding egress router 3031, a bit forwarding egress router 3032, and a bit forwarding egress router 3033), and the diagram only illustrates that three bit forwarding egress routers are included, and the number of bit forwarding egress routers included in an actual message processing system is not limited thereto. Wherein:
the destination transit forwarding router 301 is configured to receive a to-be-processed packet; and respectively sending the messages to be processed to the service function node 302 and the plurality of bit forwarding egress routers.
And the service function node 302 is configured to perform service function processing on the message to be processed based on the service type field in the message to be processed.
The message to be processed is sent to the service function processing device, wherein the service type field indicates the type of service function processing required by the message to be processed.
The destination intermediate-order forwarding router 301 is further configured to receive the to-be-processed packet after the service function processing from the service function node 302, and send the to-be-processed packet after the service function processing to the multiple-order forwarding egress routers.
And the multiple bit forwarding outlet routers are used for selecting the messages matched with the labels in the configuration instructions received in advance from the messages to be processed and the messages to be processed after the service function processing.
In the message processing system provided by the embodiment of the disclosure, the service function node can perform service function processing on the message to be processed based on the service type field in the message to be processed. The transposition forwarding router in the target can forward the messages to be processed without service function processing and the messages to be processed after service function processing to the plurality of transposition forwarding outlet routers respectively, and correspondingly, each transposition forwarding outlet router can select the messages to be processed without service function processing or the messages to be processed after service function processing according to the labels in the configuration instructions received in advance, so that each transposition forwarding outlet router can select different messages according to requirements.
The message processing system may include a plurality of transfer forwarding routers, one of the target transfer forwarding routers is a target transfer forwarding router, and the target transfer forwarding router is connected to the service function node.
Based on the same inventive concept, the embodiment of the present disclosure further provides a message processing method, which may be applied to a target transit forwarding router, a target service function node, and a target transit forwarding egress router. The destination intermediate transfer forwarding router may be the destination intermediate transfer forwarding router 301 in the message processing system.
The message processing system may include one or more service function nodes; if the target service function node comprises a service function node, the target service function node can be the service function node; if the system comprises a plurality of service function nodes, the plurality of service function nodes can form a service function chain, the target service function node is any one service function node in the system, and correspondingly, the service function node connected with the target transit forwarding router in the service function chain can be called a first service function node. The message processing system may include a plurality of bit forwarding egress routers, and the target bit forwarding egress router is any one of the bit forwarding egress routers in the system.
Referring to fig. 4, fig. 4 is an interaction diagram of a message processing method according to an embodiment of the present disclosure, where the method may include the following steps:
s401: and the destination transit forwarding router receives the message to be processed.
S402: and the target transit forwarding router sends messages to be processed to the target service function node and the target transit forwarding exit router respectively.
S403: and the target service function node receives the intermediate message.
The intermediate message is a message to be processed, or a message obtained by performing service function processing on the message to be processed based on a service type field in the message to be processed. The service type field indicates the type of service function processing to be performed on the message to be processed.
S404: and the target service function node performs service function processing on the intermediate message based on the service type field in the intermediate message.
S405: and the target transit forwarding router sends the message to be processed after the service function processing to the target transit forwarding exit router.
S406: and the target bit forwarding outlet router selects a message matched with the label in the configuration instruction received in advance from the message to be processed and the message to be processed after the service function processing.
Based on the message processing method provided by the embodiment of the disclosure, the service function node can perform service function processing on the message to be processed based on the service type field in the message to be processed. The transposition forwarding router in the target can forward the messages to be processed without service function processing and the messages to be processed after service function processing to the plurality of transposition forwarding outlet routers respectively, and correspondingly, each transposition forwarding outlet router can select the messages to be processed without service function processing or the messages to be processed after service function processing according to the labels in the configuration instructions received in advance, so that each transposition forwarding outlet router can select different messages according to requirements.
The message to be processed indicates that the message which enters the BIER network currently needs to be multicast and sent to each forwarding outlet router.
The target transit forwarding router sends the messages to be processed to the service function nodes and the target transit forwarding exit router respectively, and correspondingly, the service function nodes in the service function chain can perform service function processing on the messages to be processed and send the messages to be processed after the service function processing to the target transit forwarding router. Then, the target transfer forwarding router sends the message to be processed after the service function processing to the target transfer forwarding outlet router, so that the target transfer forwarding outlet router can receive the message to be processed and can also receive the message to be processed after the service function processing.
If the message processing system comprises a service function node, the intermediate message is a message to be processed which is transmitted to the target service function node by the target transfer forwarding router. In this case, after performing the service function processing on the intermediate packet, the target service function node may send the intermediate packet after the service function processing, that is, the to-be-processed packet after the service function processing, to the target transit forwarding router.
And if the message processing system comprises a plurality of service function nodes and the target service function node is the first service function node, the intermediate message is a message to be processed. In this case, after the service function node in the service function chain performs service function processing on the intermediate packet, the last service function node (which may be referred to as a tail service function node) in the service function chain may transparently transmit the intermediate packet after the service function processing (i.e., the packet to be processed after the service function processing) to the destination transit forwarding router.
If the message processing system comprises a plurality of service function nodes, the target service function node is not the first service function node, and the service function node before the target service function node does not perform service function processing on the message to be processed, the intermediate message is the message to be processed.
If the message processing system comprises a plurality of service function nodes, the target service function node is not the first service function node, and the service function node before the target service function node performs service function processing on the message to be processed, the intermediate message is a message obtained by performing service function processing on the message to be processed based on the service type field in the message to be processed.
With respect to step S406, in some embodiments, the control node may issue a configuration instruction to the target bit forwarding egress router. The configuration instruction carries a label, and the label can indicate the type of the packet required by the target bit forwarding exit router. The type of the message represents a message after the service function processing, or a message without the service function processing.
In one implementation, the control node may be a node deployed with an SDN controller.
Based on the processing, each forwarding outlet router can be controlled by the SDN controller, and different service requirements of each forwarding outlet router are met.
And if the target bit forwarding outlet router determines the message to be processed after the service function processing is needed according to the configuration instruction, discarding the message to be processed and keeping the message to be processed after the service function processing. Correspondingly, the target bit forwarding outlet router can also forward the message to be processed after the service function processing to the receiver of the multicast message.
And if the target bit forwarding outlet router determines that the message to be processed which is not processed by the service function is required according to the configuration instruction, discarding the message to be processed after the service function processing, and keeping the message to be processed. Correspondingly, the target bit forwarding exit router can also forward the message to be processed to the receiver of the multicast message.
In some embodiments, before the step S402, the method may further include the steps of:
the method comprises the following steps: the target intermediate indexing forwarding router detects whether a specified detection bit field in the message to be processed is a first preset value.
Accordingly, step S402 may include the steps of:
step two: and if the designated detection bit field in the message to be processed is a first preset value, the transposition forwarding router in the target sends the message to be processed to the service function node and the plurality of bit forwarding outlet routers respectively.
Further, the method may further include the steps of:
step three: and if the specified detection bit field in the message to be processed is not the first preset value, the target transfer forwarding router sends the message to be processed to a plurality of bit forwarding exit routers.
In one implementation, the target transit forwarding router may detect whether a preset field in the message to be processed is a first preset value. For example, the specified detection bit field may be one of the preset TLVs in the pending message. The first preset value may be 1.
If the designated detection bit field in the message to be processed is the first preset value, the message to be processed can be processed with the service function through the service function node, so that the target transfer router can respectively send the message to be processed to the plurality of bit transfer egress routers and the service function node. Each forwarding outlet router can receive the message to be processed and can also receive the message to be processed after the service function processing.
If the designated detection bit field in the message to be processed is not the first preset value, the message to be processed does not need to be processed by the service function, so that the transposition forwarding router in the target only sends the message to be processed to the plurality of bit forwarding exit routers, and each bit forwarding exit router only can receive the message to be processed.
Based on the above processing, before the message to be processed enters the BIER network, the value of the designated detection bit field in the message to be processed can be set, so that the transposition forwarding router in the target performs different processing, and thus different message requirements can be met.
In some embodiments, before the first step, the method may further include the steps of: and the target transit forwarding router judges whether a service function starting instruction sent by the control node is received.
Accordingly, step one may comprise the steps of: and the target transit forwarding router detects whether a specified detection bit field in the message to be processed is a first preset value or not under the condition of receiving a service function starting instruction.
The method may further comprise the steps of: and the target transit forwarding router sends a message to be processed to the multi-bit forwarding exit router under the condition that the target transit forwarding router does not receive the service function opening instruction.
In some embodiments, the message processing system may also select whether to turn on the SFC function. For example, the control node may issue a service function opening instruction to the target transit forwarding router. Correspondingly, when the target transfer forwarding router receives the message to be processed, if a service function starting instruction is received, whether a specified detection bit field in the message to be processed is a first preset value or not can be detected, so as to perform corresponding processing; when the transposition forwarding router in the target receives the message to be processed, if the service function opening instruction is not received, the message to be processed is not required to be detected, and the message to be processed is directly sent to the multi-bit forwarding outlet router, namely, the service function processing is not required to be carried out on the message to be processed.
In one implementation, the control node may be a node deployed with an SDN controller.
Based on the processing, the message processing system can control whether the transposition forwarding router in the target detects the message to be processed through the SDN controller so as to select to perform service function processing or not, and meet different service requirements.
In some embodiments, referring to fig. 5, fig. 5 is an interaction diagram of another message processing method provided in the embodiment of the present disclosure, and on the basis of fig. 4, step S404 may include the following steps:
s4041: and the target service function node judges whether the service function processing represented by the service type field in the intermediate message contains the service function processing supported by the target service function node.
S4042: if the intermediate message contains the service function processing supported by the target service function node, the target service function node processes the intermediate message according to the service function processing supported by the target service function node.
The service type field may indicate one service function process or may indicate a plurality of different service function processes. The service function processes supported by different service function nodes in the service function chain may be different.
If the intermediate message contains the service function processing supported by the intermediate message, the intermediate message is processed based on the service function processing supported by the target service function node; if the service function processing supported by the node does not exist, the intermediate message is processed without the service function processing supported by the target service function node.
In an implementation manner, after the target service function node performs service function processing on the intermediate packet, a service function processing flag may be encapsulated outside a BIER Header (BIER packet Header) of the intermediate packet after the service function processing, so as to indicate that the packet is a packet after the service function processing. For example, the service function handling flag may be represented by a New Header.
Correspondingly, the multiple bit forwarding outlet routers judge whether the received message is a message which is not processed by the service function or a message which is processed by the service function based on the service function processing mark, so that the corresponding message is reserved according to a configuration instruction which is received in advance.
In an embodiment, a service node that performs service function processing on a first packet to be processed in a service function chain may add a service function processing flag to the packet to be processed. Correspondingly, when the subsequent service function node performs service function processing on the message to be processed after the service function processing mark is added, the service function processing mark does not need to be added again.
Based on the processing, the corresponding service function processing can be performed on the message to be processed by adding different service type fields to the message to be processed, so that the message to be processed after the service function processing is obtained, and therefore the requirement that the target bit forwarding outlet router can select the message matched with the label in the pre-received configuration instruction from the message to be processed and the message to be processed after the service function processing can be met.
In one implementation, the service type field may be one of preset TLVs in the pending message.
In some embodiments, the pending message also carries a remaining node field, and an initial value of the remaining node field indicates a total number of service function nodes in the service function chain. Prior to step S4041, the method may further include the steps of:
step 1: and the target service function node judges whether the residual node field in the intermediate message is a second preset value.
Accordingly, the step S4041 may include the steps of:
step 2: and under the condition that the residual node field in the intermediate message is a second preset value, the target service function node judges whether the service function process represented by the service type field in the intermediate message contains the service function process supported by the target service function node.
The method may further comprise the steps of:
and 3, step 3: and under the condition that the residual node fields in the intermediate message are the second preset numerical value, the target service function node reduces the numerical values of the residual node fields in the intermediate message.
And 4, step 4: if the service function processing represented by the service type field in the intermediate message does not include the service function processing supported by the target service function node, and the value of the remaining node field in the intermediate message is reduced to a third preset value, transparently transmitting the intermediate message to the target transit forwarding router; and if the service function processing represented by the service type field in the intermediate message does not comprise the service function processing supported by the target service function node, and the numerical value of the residual node field in the intermediate message is reduced and is not a third preset numerical value, sending the intermediate message to the next service function node in the service function chain.
And 5: if the service function processing represented by the service type field in the intermediate message comprises the service function processing supported by the target service function node, and the value of the residual node field in the intermediate message is reduced to be a third preset value, transparently transmitting the intermediate message after the service function processing to the target transit forwarding router; and if the service function processing represented by the service type field in the intermediate message comprises the service function processing supported by the target service function node, and the value of the field of the rest nodes in the intermediate message is reduced and is not a third preset value, sending the processed intermediate message to the next service function node in the service function chain.
In one implementation, the service function processing may be performed in an order of service function nodes in the service function chain.
The second predetermined value is determined based on a location of the target service function node in the service function chain. And according to the sequence of the positions of the service function nodes in the service function chain, the corresponding second preset values are sequentially decreased. For example, the service function chain includes 4 service function nodes, respectively A, B, C, D. Wherein, the first service function node is A, and the last service function node is D. The second preset value corresponding to the service function node a may be 4, the second preset value corresponding to the service function node B may be 3, the second preset value corresponding to the service function node C may be 2, and the second preset value corresponding to the service function node D may be 1.
If the remaining node field in the intermediate message is the second preset value, it indicates that the intermediate message is a normal message, and the target service function node may determine whether the service function processing indicated by the service type field in the intermediate message includes the service function processing supported by itself, so as to determine whether to perform the service function processing on the intermediate message by itself. In addition, the target service function node can also reduce the value of the remaining node fields in the intermediate message. For example, if the initial value of the remaining node field is the total number of the service function nodes in the service function chain, the target service function node may decrease the value of the remaining node field by one.
Correspondingly, if the value of the remaining node field in the intermediate message is reduced to be a third preset value, it indicates that the target service function node is the tail service function node. At this time, if the target service function node does not need to perform service function processing on the intermediate packet, the target service function node may directly pass through the intermediate packet to the target transit forwarding router, so that the target transit forwarding router sends the intermediate packet to the multiple forwarding egress routers.
If the target service function node is a tail service function node and the target service function node needs to perform service function processing on the intermediate message, the target service function node can perform service function processing on the intermediate message and transparently transmit the intermediate message after the service function processing (namely, the message to be processed after the service function processing) to the target transit forwarding router, so that the target transit forwarding router transmits the processed intermediate message to a plurality of forwarding outlet routers.
And if the value of the field of the rest nodes in the intermediate message is reduced and is not the third preset value, indicating that the target service function node is not the tail service function node. At this time, if the target service function node does not need to perform service function processing on the intermediate message, the target service function node sends the intermediate message to the next service function node.
If the target service function node is not the tail service function node and the target service function node needs to perform service function processing on the intermediate message, the target service function node may perform service function processing on the intermediate message and send the intermediate message after the service function processing (i.e., the message to be processed after the service function processing) to the next service function node.
In one implementation, the remaining node field may be one of preset TLVs in the pending message.
In some embodiments, the method may further comprise the steps of: and under the condition that the residual node fields in the intermediate message are not the second preset value, discarding the intermediate message.
When the remaining node field in the intermediate message is not the second preset value, it indicates that the intermediate message is an abnormal message, and therefore, the target service function node may discard the intermediate message.
According to whether the residual node field in the intermediate message is the second preset value or not, safety detection can be performed on the intermediate message, and network service errors are avoided.
Fig. 6 is a schematic diagram illustrating a format of a preset TLV according to an embodiment of the present disclosure. This preset TLV, which may be referred to as BIER Info-Sub-TLV, includes the following fields:
type (Type): length 8 bits and value may be 4. Wherein, the value of Type is not particularly limited.
Length (Length): the length is 8 bits, which represents the length of the message to be processed.
BFER-T: length 8 bits, which represents the total number of destination bit forwarding egress routers within the BIER sub-domain.
BFR-ID: length 16 bits, indicating the identity of the BFR in one sub-field.
Sub-TLVs: the length is 32 bits, and the BIER MPLS (Multi-Protocol Label Switching) encapsulation information is carried.
Wherein the SF field represents a designated detection bit field in embodiments of the present disclosure; the ST field represents a service type field in the embodiment of the present disclosure; the SF-Left field represents the remaining node field in the embodiments of the present disclosure.
The label (Tag) field of the message to be processed carries a length field SF-Len, a service type field ST and a residual node field SF-Left. Wherein, the SF-Len field is 8 bits, which represents the total number of the service function nodes in the service function chain, and the ST field and the SF-Left field are respectively 4 bits.
If the user does not need to perform service function processing on the message to be processed, the message to be processed may not carry the preset TLV, or the SF field, the ST field, and the SF-Left field may all be set to 0.
Wherein, the designated detection bit field SF, SF length field SF-Len, service type field ST and residual node field SF-Left are the fields which are newly added in advance in BIER-Info-Sub-TLV in the disclosure.
Based on the above processing, a preset TLV can be selected to be defined in the message to be processed, so that the method disclosed by the invention is easy to implement. On the other hand, if the user does not need to perform service function processing on the message to be processed, the preset TLV may not be carried by the message to be processed, so that the method disclosed by the present disclosure is not mandatory.
In some embodiments, the destination forwarding-in-transit router may send the pending packets to the multiple forwarding-in-transit egress routers based on the bit-index forwarding table, and send the pending packets after the service function processing to the multiple forwarding-in-transit egress routers based on the bit-index forwarding table.
In an implementation manner, referring to fig. 7, fig. 7 is a schematic diagram illustrating a principle that a destination transit forwarding router processes a packet according to an embodiment of the present disclosure.
As shown in fig. 7, the BIER transmission router (i.e. the destination intermediate-order forwarding router) receives the data packet (i.e. the pending packet), and reads the SF field (i.e. the specified detection bit field in the pending packet) of the Sub-TLVs.
If the SF field is 1, the BIER transmission router copies the packet and sends the packet to the BFER, and then directs the flow (i.e., the packet to be processed) to a VAS (Value Added Service), which is a Service function node in the embodiment of the present disclosure. Accordingly, the VAS can perform corresponding service function processing on the traffic based on the service type field of the traffic. If the SF field is 0, the BIER transmission router copies the data packet to be processed and sends the data packet to the BFER, and the data packet to be processed does not need to be sent to the service function node for service function processing.
The BIER transmission router receives the data packet processed by the VAS and copies the data packet to the BFER.
If the SF field is not 1, or 0, the packet is discarded.
In an implementation manner, referring to fig. 8, fig. 8 is a schematic diagram illustrating a principle that a bit forwarding egress router processes a packet according to an embodiment of the present disclosure.
As shown in fig. 8, the BFER egress router receives the data packet (including the message processed by the service function and the message not processed by the service function). If a data packet matched with a label in a configuration instruction received in advance in a BFER exit router needs to be processed by a VAS (namely a service function node), the BFER exit router decapsulates a message (namely a message processed by a service function) with a New Header, namely, the message processed by the service function is selected to be reserved, and an original message (namely, a message not processed by the service function) is discarded; if the data packet matched with the label in the configuration instruction received in advance in the BFER egress router does not need to be processed by the VAS, the BFER egress router cannot decapsulate the New Header, and thus, the packet after the service function processing can be discarded, and the original packet (i.e., the packet without the service function processing) is retained.
In an implementation manner, referring to fig. 9, fig. 9 is a schematic flowchart of a message processing method according to an embodiment of the present disclosure.
In fig. 9, an SDN controller (software defined network controller) is a control node in a packet processing system; b1 is a bit forwarding entry router in the BIER network; b2 is a transfer forwarding router in the target of the message processing system; b3 and B5 are transit forwarding entry routers in the BIER network; b4 and B6 are bit forwarding exit routers in the BIER network; the SF1, SF2 and SF3 are service function nodes in the message processing system, and form a service function chain in the SFC architecture. Wherein, SF1 is the first service function node, and SF3 is the last service function node. In fig. 12, B2 and SF1, SF2, and SF3 constitute SFC domains (SFC domains). 00101000, 00100000, and 00001000 denote BSs in a message to be processed during transmission, respectively.
As shown in fig. 9, a path L1 represents a transmission path from B1 to B4 for the pending packet; the path L2 represents the transmission path of the message to be processed from B1 to B6; the path L3 represents a transmission path from B1 to the service function node SF3, where the SF3 then transparently transmits the pending packets processed by the service function to B2, and from B2 to B6.
In an implementation manner, on the basis of fig. 9, fig. 10 is a schematic flowchart of another message processing method provided in the embodiment of the present disclosure.
In the message processing system, B1 receives a message to be processed (the message Header is IPv4 Playload), encapsulates a new message Header in the message to be processed, and sends the new message Header to B2.
When the message processing system does not need to perform service function processing on the message to be processed, B2 may send the message to be processed to B3 and B5 based on the BS (00101000) of the message to be processed and its own bit index forwarding table. Then, B3 sends the message to be processed to B4 based on the BS (00001000) of the message to be processed and the bit index forwarding table of the B3; b5 sends the message to be processed to B6 based on the BS (00100000) of the message and the bit index forwarding table of the B.
When the message processing system needs to perform service function processing on the message to be processed, the B2 may send the message to be processed to the B4, the B6, and the SF 1. Correspondingly, the SF1 determines whether the service function processing indicated by the service type field in the to-be-processed message includes the service function processing supported by itself. If yes, the SF1 performs corresponding service function processing on the to-be-processed message, and sends the processed to-be-processed message to the SF 2. If not, the SF1 does not perform service function processing on the message to be processed, and sends the message to be processed to the SF 2. Similarly, the SF2 and SF3 perform corresponding processing on the received message. The first service node performing service function processing on the message to be processed may encapsulate a New Header in the message to be processed after the service function processing. The SF3 may transparently transmit the message to be processed after the service function processing to the B2. Then, B2 sends the pending messages processed by the service function to B4 and B6, respectively. The message required by the B4 is a to-be-processed message which is not processed by the service function, the B4 cannot decapsulate the message Header New Header of the to-be-processed message which is processed by the service function, the to-be-processed message which is processed by the service function is selected to be discarded, and the to-be-processed message which is not processed by the service function is reserved. The message required by the bit forwarding exit router B6 is the message to be processed after the service function processing, B6 decapsulates the message Header New Header of the message to be processed after the service function processing, retains the message to be processed after the service function processing, and discards the message to be processed after the service function processing is not performed.
Based on the same inventive concept, the embodiment of the present disclosure further provides a packet processing apparatus, which is applied to a target transit forwarding router in a packet processing system, where the packet processing system further includes a service function node and a plurality of bit forwarding egress routers, referring to fig. 11, where fig. 11 is a structural diagram of the packet processing apparatus provided in the embodiment of the present disclosure, and the apparatus includes:
a first receiving module 1101, configured to receive a message to be processed;
a first sending module 1102, configured to send a to-be-processed packet to a service function node and a plurality of bit forwarding egress routers, respectively; the service function node processes the message to be processed based on the service type field in the message to be processed, and forwards the message to be processed after the service function processing to the target transfer forwarding router; the message processing method comprises the steps that a message to be processed is processed, wherein a service type field indicates the type of service function processing required by the message to be processed;
a second receiving module 1103, configured to receive, from the service function node, the to-be-processed packet after the service function processing, and send, to the multiple bit forwarding egress routers, the to-be-processed packet after the service function processing, so that the multiple bit forwarding egress routers select, from the to-be-processed packet and the to-be-processed packet after the service function processing, a packet that matches with a tag in a configuration instruction received in advance.
In some embodiments, the apparatus further comprises:
a first detection module, configured to detect whether a specified detection bit field in a message to be processed is a first preset value before the message to be processed is sent to the service function node and the multiple-bit forwarding egress router, respectively;
the first sending module 1102 is specifically configured to:
if the designated detection bit field in the message to be processed is a first preset value, respectively sending the message to be processed to the service function node and the plurality of bit forwarding outlet routers;
the device also includes:
and the second sending module is used for sending the message to be processed to the multi-bit forwarding outlet router if the specified detection bit field in the message to be processed is not the first preset numerical value.
In some embodiments, the apparatus further comprises:
a first judging module, configured to judge whether a service function start instruction sent by a control node is received before detecting whether the message to be processed carries an assigned detection bit field;
the first detection module is specifically configured to: under the condition of receiving a service function starting instruction, detecting whether a specified detection bit field in a message to be processed is a first preset value or not;
the device also includes:
and the third sending module is used for sending the message to be processed to the multi-bit forwarding outlet router under the condition that the service function opening instruction is not received.
The present disclosure further provides a packet processing apparatus, which is applied to a target service function node in a packet processing system, where the packet processing system further includes a target intermediate-position forwarding router and a plurality of position forwarding egress routers, referring to fig. 12, where fig. 12 is a structural diagram of another packet processing apparatus provided in the present disclosure, and the apparatus includes:
a third receiving module 1201, configured to receive the intermediate packet; the intermediate message is a message to be processed which is sent to a service function chain to which the target service function node belongs by the target transit forwarding router, or is a message obtained by performing service function processing on the message to be processed based on a service type field in the message to be processed; the service type field indicates the type of service function processing required by the message to be processed; the messages to be processed are: the target transfer forwarding router sends the transfer forwarding router to the service function chain; the target transit forwarding router is also used for sending messages to be processed to the multiple transit forwarding exit routers;
a first service function processing module 1202, configured to perform service function processing on the intermediate message based on a service type field in the intermediate message, so that when the target transit forwarding router receives a to-be-processed message processed by a service function of the service function chain, the target transit forwarding router sends the to-be-processed message after the service function processing to the multiple-bit forwarding egress routers, so that the multiple-bit forwarding egress routers select a message matched with a tag in a pre-received configuration instruction from the to-be-processed message and the to-be-processed message after the service function processing.
In some embodiments, the first business function processing module 1202 includes:
the judging submodule is used for judging whether business function processing supported by the judging submodule is included in the business function processing represented by the business type field in the intermediate message;
and the service function processing submodule is used for carrying out service function processing on the intermediate message according to the service function processing supported by the service function processing submodule if the service function processing supported by the service function processing submodule is included.
In some embodiments, the message to be processed also carries a field of a remaining node; the initial value of the remaining node field represents the total number of the service function nodes in the service function chain;
the device also includes:
a second judging module, configured to judge whether remaining node fields in the intermediate message are a second preset value before judging whether the service function processing supported by the second judging module is included in the service function processing indicated by the service type field in the intermediate message;
the judging submodule is specifically used for judging whether business function processing supported by the judging submodule is included in business function processing represented by a business type field in the intermediate message or not under the condition that the residual node field in the intermediate message is a second preset value;
the device also includes:
the reducing module is used for reducing the value of the residual node field in the intermediate message under the condition that the residual node field in the intermediate message is a second preset value;
a fourth sending module, configured to send the intermediate message to the destination transit forwarding router if the service function processing indicated by the service type field in the intermediate message does not include service function processing supported by the fourth sending module, and the value of the remaining node field in the intermediate message is reduced to a third preset value; if the service function processing represented by the service type field in the intermediate message does not include the service function processing supported by the intermediate message, and the value of the remaining node field in the intermediate message is reduced and is not a third preset value, sending the intermediate message to the next service function node in the service function chain;
a fifth sending module, configured to send the intermediate packet after service function processing to the target transit forwarding router if the service function processing indicated by the service type field in the intermediate packet includes service function processing supported by the fifth sending module, and the value of the remaining node field in the intermediate packet is reduced to a third preset value; and if the service function processing represented by the service type field in the intermediate message comprises the service function processing supported by the intermediate message, and the value of the field of the rest nodes in the intermediate message is reduced and is not a third preset value, sending the intermediate message after the service function processing to the next service function node in the service function chain.
In some embodiments, the apparatus further comprises:
and the discarding module is used for discarding the intermediate message under the condition that the residual node field in the intermediate message is not the second preset value.
The embodiment of the present disclosure further provides a packet processing apparatus, which is applied to a target bit forwarding exit router in a packet processing system, where the packet processing system further includes a service function node and a target transit bit forwarding router, refer to fig. 13, and fig. 13 is a structural diagram of another packet processing apparatus provided in the embodiment of the present disclosure, where the apparatus includes:
a fourth receiving module 1301, configured to receive a message to be processed and a message to be processed after service function processing; the message to be processed after the service function processing is as follows: the target transit forwarding router receives the data from the service function node and forwards the data to the target transit forwarding exit router; the message to be processed after the service function processing is as follows: after receiving the message to be processed sent by the target transfer forwarding router, the service function node performs service function processing on the message to be processed based on the service type field in the message to be processed, and forwards the message to the target transfer forwarding router; the service type field represents the type of service function processing required by the message to be processed; the messages to be processed are: the target transit forwarding router sends the transit forwarding router to the bit forwarding exit router and the service function node respectively.
The selecting module 1302 is configured to select, from the to-be-processed packet and the to-be-processed packet after the service function processing, a packet that matches a tag in a configuration instruction received in advance.
The embodiment of the present disclosure also provides an electronic device, as shown in fig. 14, which includes a processor 1401, a communication interface 1402, a memory 1403, and a communication bus 1404, wherein the processor 1401, the communication interface 1402, and the memory 1403 complete communication with each other through the communication bus 1404,
a memory 1403 for storing a computer program;
the processor 1401 is configured to implement any of the above-described message processing methods when executing the program stored in the memory 1403.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment provided by the present disclosure, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the message processing methods described above.
In yet another embodiment provided by the present disclosure, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the message processing methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the disclosure are all or partially produced when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, the computer-readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present disclosure, and is not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure are included in the scope of protection of the present disclosure.

Claims (19)

1. A message processing system, comprising a destination forwarding router, a service function node, and a plurality of bit forwarding egress routers, wherein:
the target transfer forwarding router is used for receiving a message to be processed; respectively sending the messages to be processed to the service function node and the plurality of bit forwarding exit routers;
the service function node is used for performing service function processing on the message to be processed based on the service type field in the message to be processed and forwarding the message to be processed after the service function processing to the target transfer forwarding router; the message to be processed is sent to a service function processing device, wherein the service type field represents the type of service function processing required by the message to be processed;
the destination intermediate-position forwarding router is further configured to receive a to-be-processed packet after service function processing from the service function node, and send the to-be-processed packet after service function processing to the multiple-position forwarding exit routers;
and the multiple bit forwarding outlet routers are used for selecting the messages matched with the labels in the configuration instructions received in advance from the messages to be processed and the messages to be processed after the service function processing.
2. A message processing method, applied to a destination intermediate-forwarding (ntp) router in a message processing system, the message processing system further including a service function node and a plurality of ntp egress routers, the method comprising:
receiving a message to be processed;
respectively sending the messages to be processed to the service function node and the plurality of bit forwarding exit routers; the service function node processes the message to be processed based on the service type field in the message to be processed, and forwards the message to be processed after the service function processing to the target transfer forwarding router; the message to be processed is sent to a service function processing device, wherein the service type field represents the type of service function processing required by the message to be processed;
and receiving the message to be processed after the service function processing from the service function node, and sending the message to be processed after the service function processing to the multiple bit forwarding outlet routers, so that the multiple bit forwarding outlet routers select the message matched with the label in the pre-received configuration instruction from the message to be processed and the message to be processed after the service function processing.
3. The method of claim 2, wherein prior to said sending said pending packets to said traffic function node and said plurality of bit forwarding egress routers, respectively, said method further comprises:
detecting whether a designated detection bit field in the message to be processed is a first preset value or not;
the sending the to-be-processed packet to the service function node and the plurality of bit forwarding egress routers, respectively, includes:
if the designated detection bit field in the message to be processed is a first preset value, respectively sending the message to be processed to the service function node and the multiple bit forwarding exit routers;
the method further comprises the following steps:
and if the specified detection bit field in the message to be processed is not a first preset value, sending the message to be processed to the multiple bit forwarding outlet routers.
4. The method according to claim 3, wherein before said detecting whether a specified detection bit field is carried in the pending message, the method further comprises:
judging whether a service function starting instruction sent by a control node is received;
the detecting whether the specified detection bit field in the message to be processed is a first preset value includes:
under the condition that the service function starting instruction is received, detecting whether a specified detection bit field in the message to be processed is a first preset value or not;
the method further comprises the following steps:
and under the condition that the service function opening instruction is not received, sending the message to be processed to the multiple-bit forwarding outlet router.
5. A message processing method, applied to a target service function node in a message processing system, wherein the message processing system further includes a target intermediate-forwarding-bit router and a plurality of bit-forwarding egress routers, and the method includes:
receiving an intermediate message; the intermediate message is a message to be processed, which is sent by the target transit forwarding router to a service function chain to which the target service function node belongs, or a message obtained by performing service function processing on the message to be processed based on a service type field in the message to be processed; the service type field represents the type of service function processing required by the message to be processed; the message to be processed is as follows: the target transit forwarding router sends the transit forwarding router to the service function chain; the destination intermediate-position forwarding router is further configured to send the to-be-processed packet to the multiple-position forwarding egress routers;
and performing service function processing on the intermediate message based on the service type field in the intermediate message, so that when the target transfer forwarding router receives the to-be-processed message processed by the service function of the service function chain, the target transfer forwarding router sends the to-be-processed message processed by the service function to the plurality of bit forwarding exit routers, and the plurality of bit forwarding exit routers select the message matched with the label in the pre-received configuration instruction from the to-be-processed message and the to-be-processed message processed by the service function.
6. The method according to claim 5, wherein the performing service function processing on the intermediate packet based on the service type field in the intermediate packet comprises:
judging whether business function processing supported by the intermediate message is included in the business function processing represented by the business type field in the intermediate message;
and if the intermediate message contains the service function processing supported by the intermediate message, performing service function processing on the intermediate message according to the service function processing supported by the intermediate message.
7. The method of claim 6, wherein the pending message further carries a remaining node field; the initial value of the remaining node field represents the total number of service function nodes in the service function chain;
before determining whether the service function processing indicated by the service type field in the intermediate message includes the service function processing supported by the intermediate message, the method further includes:
judging whether the residual node fields in the intermediate message are second preset values or not;
the judging whether the service function processing indicated by the service type field in the intermediate message includes the service function processing supported by the intermediate message includes:
under the condition that the residual node field in the intermediate message is the second preset value, judging whether the business function processing represented by the business type field in the intermediate message comprises business function processing supported by the intermediate message;
the method further comprises the following steps:
reducing the value of the residual node field in the intermediate message under the condition that the residual node field in the intermediate message is a second preset value;
if the service function processing represented by the service type field in the intermediate message does not include the service function processing supported by the intermediate message, and the numerical value of the remaining node field in the intermediate message is reduced to a third preset numerical value, sending the intermediate message to the target transit forwarding router; if the service function processing represented by the service type field in the intermediate message does not include the service function processing supported by the intermediate message, and the value of the field of the rest nodes in the intermediate message is reduced and is not a third preset value, sending the intermediate message to the next service function node in the service function chain;
if the service function processing represented by the service type field in the intermediate message comprises the service function processing supported by the intermediate message, and the value of the residual node field in the intermediate message is reduced to be a third preset value, sending the intermediate message after the service function processing to the target transit forwarding router; and if the service function processing represented by the service type field in the intermediate message comprises the service function processing supported by the intermediate message, and the value of the residual node field in the intermediate message is reduced and is not a third preset value, sending the intermediate message after the service function processing to the next service function node in the service function chain.
8. The method of claim 7, further comprising:
and under the condition that the residual node fields in the intermediate message are not the second preset value, discarding the intermediate message.
9. A message processing method is applied to a target bit forwarding exit router in a message processing system, the message processing system further comprises a service function node and a target bit forwarding router, and the method comprises the following steps:
receiving a message to be processed and a message to be processed after service function processing; the message to be processed after the service function processing is as follows: the target intermediate transfer forwarding router receives the data from the service function node and sends the data to the target intermediate transfer forwarding outlet router; the message to be processed after the service function processing is as follows: after receiving a message to be processed sent by the target transit forwarding router, the service function node performs service function processing on the message to be processed based on a service type field in the message to be processed, and forwards the message to the target transit forwarding router; the service type field represents the type of service function processing required by the message to be processed; the message to be processed is as follows: the target intermediate transfer forwarding router sends the intermediate transfer forwarding router to the intermediate transfer forwarding egress router and the service function node respectively;
and selecting a message matched with the label in the configuration instruction received in advance from the message to be processed and the message to be processed after the service function processing.
10. A message processing apparatus, wherein the apparatus is applied to a destination intermediate forwarding router in a message processing system, the message processing system further includes a service function node and a plurality of bit forwarding egress routers, and the apparatus comprises:
the first receiving module is used for receiving the message to be processed;
a first sending module, configured to send the to-be-processed packet to the service function node and the plurality of bit forwarding egress routers, respectively; the service function node processes the message to be processed based on the service type field in the message to be processed, and forwards the message to be processed after the service function processing to the target transfer forwarding router; the message to be processed is sent to a service function processing device, wherein the service type field represents the type of service function processing required by the message to be processed;
and the second receiving module is used for receiving the message to be processed after the service function processing from the service function node and sending the message to be processed after the service function processing to the multiple bit forwarding exit routers, so that the multiple bit forwarding exit routers select the message matched with the label in the configuration instruction received in advance from the message to be processed and the message to be processed after the service function processing.
11. The apparatus of claim 10, further comprising:
a first detection module, configured to detect whether a specified detection bit field in the message to be processed is a first preset value before the message to be processed is sent to the service function node and the multiple-bit forwarding egress router, respectively;
the first sending module is specifically configured to:
if the designated detection bit field in the message to be processed is a first preset value, respectively sending the message to be processed to the service function node and the multiple bit forwarding exit routers;
the device further comprises:
and the second sending module is used for sending the message to be processed to the multi-bit forwarding outlet router if the specified detection bit field in the message to be processed is not the first preset numerical value.
12. The apparatus of claim 11, further comprising:
a first judging module, configured to judge whether a service function start instruction sent by a control node is received before detecting whether the message to be processed carries an assigned detection bit field;
the first detection module is specifically configured to:
under the condition that the service function starting instruction is received, detecting whether a specified detection bit field in the message to be processed is a first preset value or not;
the device further comprises:
and a third sending module, configured to send the to-be-processed packet to the multi-bit forwarding exit router when the service function opening instruction is not received.
13. A message processing apparatus, wherein the apparatus is applied to a destination service function node in a message processing system, the message processing system further includes a destination intermediate-forwarding router and a plurality of bit-forwarding egress routers, and the apparatus comprises:
a third receiving module, configured to receive the intermediate packet; the intermediate message is a message to be processed, which is sent by the target transit forwarding router to a service function chain to which the target service function node belongs, or a message obtained by performing service function processing on the message to be processed based on a service type field in the message to be processed; the service type field represents the type of service function processing required by the message to be processed; the message to be processed is as follows: the target transit forwarding router sends the transit forwarding router to the service function chain; the destination intermediate-position forwarding router is further configured to send the to-be-processed packet to the multiple-position forwarding egress routers;
and the first service function processing module is used for performing service function processing on the intermediate message based on a service type field in the intermediate message, so that when the target transfer forwarding router receives a to-be-processed message processed by the service function of the service function chain, the target transfer forwarding router sends the to-be-processed message after service function processing to the plurality of bit forwarding egress routers, and the plurality of bit forwarding egress routers select a message matched with a label in a pre-received configuration instruction from the to-be-processed message and the to-be-processed message after service function processing.
14. The apparatus of claim 13, wherein the first service function processing module comprises:
the judging submodule is used for judging whether business function processing supported by the judging submodule is included in the business function processing represented by the business type field in the intermediate message;
and the service function processing submodule is used for performing service function processing on the intermediate message according to the service function processing supported by the service function processing submodule if the service function processing supported by the service function processing submodule is included.
15. The apparatus according to claim 14, wherein the pending message further carries a remaining node field; the initial value of the remaining node field represents the total number of service function nodes in the service function chain;
the device further comprises:
a second judging module, configured to judge whether remaining node fields in the intermediate message are a second preset value before judging whether service function processing supported by the second judging module is included in the service function processing indicated by the service type field in the intermediate message;
the determining submodule is specifically configured to determine, when a remaining node field in the intermediate message is the second preset value, whether service function processing supported by the determining submodule is included in service function processing indicated by a service type field in the intermediate message;
the device further comprises:
the reduction module is used for reducing the value of the residual node field in the intermediate message under the condition that the residual node field in the intermediate message is a second preset value;
a fourth sending module, configured to send the intermediate packet to the destination transit forwarding router if the service function processing indicated by the service type field in the intermediate packet does not include service function processing supported by the fourth sending module, and the value of the remaining node field in the intermediate packet is reduced to a third preset value; if the service function processing represented by the service type field in the intermediate message does not include the service function processing supported by the intermediate message, and the value of the field of the rest nodes in the intermediate message is reduced and is not a third preset value, sending the intermediate message to the next service function node in the service function chain;
a fifth sending module, configured to send, if the service function processing indicated by the service type field in the intermediate packet includes service function processing supported by the fifth sending module, and the value of the remaining node field in the intermediate packet is reduced to a third preset value, the intermediate packet after service function processing to the target transit forwarding router; and if the service function processing represented by the service type field in the intermediate message comprises service function processing supported by the intermediate message, and the value of the field of the rest nodes in the intermediate message is reduced and is not a third preset value, sending the intermediate message after the service function processing to the next service function node in the service function chain.
16. The apparatus of claim 15, further comprising:
and the discarding module is used for discarding the intermediate message under the condition that the residual node field in the intermediate message is not a second preset value.
17. A message processing apparatus, wherein the apparatus is applied to a destination bit forwarding egress router in a message processing system, the message processing system further includes a service function node and a destination bit forwarding egress router, and the apparatus includes:
the fourth receiving module is used for receiving the message to be processed and the message to be processed after the service function processing; the message to be processed after the service function processing is as follows: the target intermediate transfer forwarding router receives the data from the service function node and sends the data to the target intermediate transfer forwarding outlet router; the message to be processed after the service function processing is as follows: after receiving a message to be processed sent by the target transfer forwarding router, the service function node performs service function processing on the message to be processed based on a service type field in the message to be processed, and forwards the message to the target transfer forwarding router; the service type field represents the type of service function processing required by the message to be processed; the message to be processed is as follows: the target intermediate transfer forwarding router sends the intermediate transfer forwarding router to the intermediate transfer forwarding egress router and the service function node respectively;
and the selection module is used for selecting the message matched with the label in the configuration instruction received in advance from the message to be processed and the message to be processed after the service function processing.
18. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 2-4, 5-8 or 9 when executing a program stored in a memory.
19. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 2 to 4, 5 to 8 or 9.
CN202210553404.8A 2022-05-20 2022-05-20 Message processing method and device, electronic equipment and storage medium Pending CN114978985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210553404.8A CN114978985A (en) 2022-05-20 2022-05-20 Message processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210553404.8A CN114978985A (en) 2022-05-20 2022-05-20 Message processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114978985A true CN114978985A (en) 2022-08-30

Family

ID=82985970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210553404.8A Pending CN114978985A (en) 2022-05-20 2022-05-20 Message processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114978985A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491729A (en) * 2020-09-22 2021-03-12 中兴通讯股份有限公司 Data processing method and device, storage medium and electronic device
US20210152617A1 (en) * 2019-11-15 2021-05-20 Nokia Solutions And Networks Oy Multicast support
CN113055290A (en) * 2016-07-01 2021-06-29 华为技术有限公司 Message forwarding method, device and system based on Service Function Chain (SFC)
CN113691448A (en) * 2020-05-18 2021-11-23 华为技术有限公司 SRv6 method for forwarding message in service chain, SFF and SF device
CN114095305A (en) * 2020-07-21 2022-02-25 华为技术有限公司 BIER message forwarding method, equipment and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055290A (en) * 2016-07-01 2021-06-29 华为技术有限公司 Message forwarding method, device and system based on Service Function Chain (SFC)
US20210152617A1 (en) * 2019-11-15 2021-05-20 Nokia Solutions And Networks Oy Multicast support
CN113691448A (en) * 2020-05-18 2021-11-23 华为技术有限公司 SRv6 method for forwarding message in service chain, SFF and SF device
CN114095305A (en) * 2020-07-21 2022-02-25 华为技术有限公司 BIER message forwarding method, equipment and system
CN112491729A (en) * 2020-09-22 2021-03-12 中兴通讯股份有限公司 Data processing method and device, storage medium and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IJ. WIJNANDS, ED.等: "Multicast Using Bit Index Explicit Replication (BIER)", IETF RFC8279, 30 November 2017 (2017-11-30), pages 6 *

Similar Documents

Publication Publication Date Title
US11240065B2 (en) NSH encapsulation for traffic steering
US7675859B2 (en) Transmission apparatus and transmission system
US11258698B2 (en) Multicast forwarding method and related device
US8514713B2 (en) Flow control for multi-hop networks
US8009683B2 (en) IP network system
US9083602B2 (en) Communication system and communication device
US11962491B2 (en) Source routing tunnel ingress protection
JP5682568B2 (en) Node, monitoring management method used therefor, transfer system using the same, input circuit, output circuit
CN109525501B (en) Method and device for adjusting forwarding path
CN111801911B (en) Traffic function chain congestion tracking
US20200044964A1 (en) Defect detection in ip/mpls network tunnels
EP3439210B1 (en) Reliable cut-through switching for ieee 802.1 time sensitive networking standards
CN112737954A (en) Message processing method, device, system, equipment and storage medium
CN113950811B (en) Extending BGP protection for SR Path ingress protection
CN114978985A (en) Message processing method and device, electronic equipment and storage medium
CN112737889B (en) Flow processing method, flow monitoring method, device, system and storage medium
CN115883446A (en) Loop detection method and device
CN113055268A (en) Method, device, equipment and medium for tunnel traffic load balancing
WO2023078031A1 (en) Message sending method and apparatus
JP2003324463A (en) Communication path switching apparatus
WO2023005620A1 (en) Message processing method and apparatus, and communication system
WO2024083219A1 (en) Message processing method and apparatus, and device and storage medium
WO2019223435A1 (en) Multicast fast switching method, device, apparatus, and storage medium
CN115473847A (en) Forwarding method, forwarding system, electronic device, and computer-readable storage medium
JP2007274284A (en) Transfer device, transfer method, transfer system and program

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