Message processing method and device, storage medium and program product
By enabling the BIER function on certain boards in the network device and processing BIER packets according to the board status, the problem of reduced forwarding performance caused by loopback processing in the G-BIER network is solved, thus protecting the overall forwarding performance of the device.
Patent Information
- Application Number
- CN202410601738.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2025-11-18
AI Technical Summary
In G-BIER networks, loopback processing degrades the forwarding performance of individual boards, affecting overall forwarding services and consequently impacting other services.
Enable BIER function on certain boards in the specified network device. Determine whether the board where the BIER packet's output port is located has BIER function enabled. If it is enabled, forward the packet; otherwise, discard the BIER packet.
It reduces the impact on the overall forwarding performance of network devices, ensuring that the forwarding services of other boards are not affected, and is suitable for systems with high traffic volume and complex networking scenarios.
Smart Images

Figure CN120980004A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of communication, and particularly relates to a message processing method and device, a storage medium and a program product. BACKGROUND
[0002] In a Generalized Bit Index Explicit Replication (G-BIER) network, a loopback process is needed for forwarding a downlink (i.e. a process of transmitting a message from an upstream router to a downstream router). The loopback process has a high requirement for the forwarding performance of a single board. In actual measurement, the forwarding performance of a single board for G-BIER loopback processing is reduced by about 40%. Therefore, enabling the G-BIER function has a great impact on other services running on the single board, and further causes the forwarding services of the whole machine to be affected. SUMMARY
[0003] Embodiments of the present disclosure provide a message processing method and device, a storage medium and a program product, which can perform loopback processing of BIER traffic by specifying a single board, and reduce the impact on the forwarding services of the whole machine.
[0004] In one aspect, a message processing method is provided, applied to a network device, including: receiving a BIER message; determining a single board where an out port of the BIER message is located; determining a target operation for the BIER message based on whether the single board where the out port of the BIER message is located enables a BIER function; and performing the target operation on the BIER message.
[0005] In another aspect, a message processing device is provided, applied to a network device, including:
[0006] A communication module is configured to receive a BIER message.
[0007] A determination module is configured to determine a single board where an out port of the BIER message is located.
[0008] The determination module is further configured to determine a target operation for the BIER message based on whether the single board where the out port of the BIER message is located enables a Bit Index Explicit Replication (BIER) function.
[0009] A processing module is configured to perform the target operation on the BIER message.
[0010] In yet another aspect, a communication device is provided, including a memory and a processor, the memory and the processor are coupled, the memory is configured to store a computer program, and the processor is configured to implement the message processing method of any of the above embodiments when executing the computer program.
[0011] In yet another aspect, a computer-readable storage medium is provided, and the computer-readable storage medium has stored thereon computer program instructions which, when executed by a processor, implement the packet processing method of any of the above embodiments.
[0012] In yet another aspect, a computer program product is provided, and the computer program product includes computer program instructions which, when executed by a processor, implement the packet processing method of any of the above embodiments.
[0013] The packet processing method provided by the embodiments of the present disclosure can specify part of the single boards in the network device to start the BIER function and perform the forwarding of the BIER traffic. After receiving the BIER packet, the network device first determines whether the single board where the out port of the BIER packet is located starts the BIER function. If yes, the network device performs the forwarding through the single board where the out port of the BIER packet is located. If no, the network device discards the BIER packet. In this way, compared with the method of performing the load sharing forwarding to all the single boards in the network device without distinction in the related art, the method provided by the embodiments of the present disclosure can not affect the forwarding service and the forwarding performance of other single boards on the network device, and has less impact on the forwarding performance of the whole network device. BRIEF DESCRIPTION OF DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the present disclosure, the drawings needed to be used in some embodiments of the present disclosure will be briefly introduced as follows. Obviously, the drawings in the following description are only some drawings of the present disclosure, and other drawings can also be obtained by those skilled in the art according to these drawings.
[0015] Figure 1 A schematic diagram of the architecture of a BIER network provided by some embodiments of the present disclosure is shown.
[0016] Figure 2 A flow of the packet processing method provided by some embodiments of the present disclosure is shown. Figure 1 ;
[0017] Figure 3 A flow of the packet processing method provided by some embodiments of the present disclosure is shown. Figure 2 ;
[0018] Figure 4 A flow of the packet processing method provided by some embodiments of the present disclosure is shown. Figure 3 ;
[0019] Figure 4 A flow of the packet processing method provided by some embodiments of the present disclosure is shown. Figure 6 ;
[0020] Figure 7A single board configuration schematic diagram of a network device provided for some embodiments of the present disclosure;
[0021] Figure 8 An encapsulation schematic diagram of a G-BIER network provided for some embodiments of the present disclosure;
[0022] Figure 9 A structure schematic diagram of a packet processing apparatus provided for some embodiments of the present disclosure;
[0023] Figure 1 A structure schematic diagram of a communication apparatus provided for some embodiments of the present disclosure. DETAILED DESCRIPTION
[0024] The technical solutions in the present disclosure will be described clearly and completely below in conjunction with the drawings in the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, but not all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present disclosure.
[0025] It should be noted that in the present disclosure, the words such as "exemplary" or "for example" are used to mean as an example, instance, or illustration. Any embodiment or design solution described as "exemplary" or "for example" in the present disclosure should not be interpreted as being more preferred or having more advantages than other embodiments or design solutions. In fact, the words such as "exemplary" or "for example" are used to present the relevant concept in a specific manner.
[0026] Hereinafter, the terms "first", "second" are only used for description purpose, and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features.
[0027] In the description of the present disclosure, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this document is only a description of the association between the associated objects, which means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. In addition, "at least one" means one or more, and "multiple" means two or more.
[0028] Hereinafter, first, some concepts related to the present disclosure are explained and described.
[0029] 1、Bit Index Explicit Replication (BIER) is a new multicast technology. A set of destination nodes of a BIER packet is encapsulated in a BIER header of the BIER packet in the form of a Bit String (BS) at ingress nodes of a multicast network, so that intermediate nodes of the network do not need to perceive multicast services, do not need to establish a multicast distribution tree using a protocol, and do not need to maintain a multicast flow state, and only according to the BS in the BIER header, the replication and forwarding of multicast services can be implemented, and the scalability of multicast services is enhanced.
[0030] The BIER technology identifies an associated mapping through a bit (bit) flag and an Internet Protocol (IP) address of a router, that is, each egress router corresponds to a unique flag bit in a bit string. The egress router advertises the association between the bit and the router identifier to all other routers in a multicast domain, and other routers learn a next hop to the egress router.
[0031] G-BIER is a standard BIER header defined in RFC, which is adaptively modified to achieve better integration of the BIER network and the IPv6 network.
[0032] 2、Bit Forwarding Router (BFR) is a router with BIER capability, and a domain formed by BFRs is referred to as a BIER network (or a BIER domain).
[0033] 3、Bit Forwarding Ingress Router (BFIR) is a node through which multicast data traffic enters a BIER domain, and is responsible for G-BIER encapsulation of a packet entering the G-BIER network. Each BFIR is identified by a unique BFR ID.
[0034] 4、Bit Forwarding Egress Router (BFER) is a node through which multicast data traffic leaves a G-BIER domain, and is responsible for G-BIER packet decapsulation and forwarding to multicast receivers. Each BFER is also identified by a unique BFR ID.
[0035] 5、Bit Index Forwarding Table (BIFT) is generated by a BFR in a BIER domain by running a control plane protocol to exchange information such as an identifier of the BFR, a BIER subdomain where the BFR is located, and a BIER forwarding capability, and based on the information. The BIFT table is composed of a forwarding bit mask (F-BM) and a BFR neighbor.
[0036] 6、F-BM, used to represent the forwarding status of each BFR in the BIER domain. Each bit of the F-BM represents a unique BFR in the BIER domain. When a certain BFR needs to receive the traffic of a certain multicast group, the corresponding position in the F-BM will be set to 1, otherwise 0. In this way, by checking the F-BM, the BFR can know which BFR needs to receive the traffic of a certain multicast group, and make forwarding decisions accordingly.
[0037] 7、Bit String Label (BSL), the BIER domain can be divided into multiple sub-domains to optimize network size and performance. There can be multiple BFRs in each sub-domain, and the BSL is used to identify these sub-domains. Through the BSL, the BFR can understand the sub-domain to which the data packet belongs, and make correct forwarding decisions. In the BIER forwarding process, when a BFR receives a data packet, it first checks the BSL of the data packet, and determines whether to forward the data packet to the next sub-domain according to the value of the BSL. If the BSL of the data packet does not match the sub-domain label of the BFR, the BFR may forward the data packet to the corresponding sub-domain exit; if it matches, the BFR may decide whether to forward the data packet to other BFRs in the same sub-domain according to the F-BM.
[0038] The use of BSL helps to achieve scalable BIER forwarding in large networks by dividing the network into smaller sub-domains to reduce the size and complexity of the F-BM, thereby improving forwarding efficiency. At the same time, BSL also enables network administrators to more flexibly manage and configure BIER networks.
[0039] In the related art, when a multicast message enters a multicast domain, the BFIR decides the BFER to which the multicast message needs to be sent, re-encapsulates the multicast message with BIER header information to obtain a BIER message. The BIER header information carries bit string information identifying the corresponding BFER, and each BFER corresponds to a unique flag bit in the bit string information. After receiving the BIER message, the BFR finds the next hop router according to the bit string information carried in the header information of the BIER message and forwards the BIER message, until it reaches the corresponding exit router.
[0040] The above is an introduction to some concepts involved in the embodiments of the present disclosure, which will not be described below.
[0041] As in the background, in the G-BIER network, the forwarding of the downstream (i.e. the process of transmitting the message from the upstream router to the downstream router) needs to be processed by the loopback, and the loopback processing has a high requirement on the forwarding performance of the single board. In the actual measurement, the forwarding performance of the single board as the G-BIER loopback processing is reduced by about 40%, therefore, the opening of the G-BIER function has a great influence on the other services running on the single board, and further causes the influence on the forwarding service of the whole machine.
[0042] In view of the above technical problems, the embodiment of the present disclosure provides a message processing method, the idea of which is to specify part of the single board in the network device to open the BIER function and perform the forwarding of the BIER flow. After receiving the BIER message, the network device first determines whether the single board where the out port of the BIER message is located opens the BIER function, if yes, the forwarding is performed through the single board where the out port of the BIER message is located, if not, the BIER message is discarded. In this way, compared with the method of equally load sharing and forwarding to all single boards in the network device in the related art, the method provided by the embodiment of the present disclosure can not affect the forwarding service and the forwarding performance of the other single boards on the network device, and has a smaller influence on the forwarding performance of the whole network device.
[0043] The network architecture related to the message processing method provided by the embodiment of the present disclosure will be described in detail below in combination with the drawings of the specification.
[0044] Referring to Figure 1 , a schematic diagram of a BIER network architecture provided by the embodiment of the present disclosure is shown. As Figure 1 shown, the BIER network includes a multicast source, a network device R1, a network device R2, a network device R3, a network device R4, a multicast receiving device 1 and a multicast receiving device 2.
[0045] Among them, the multicast source is the sender of the multicast data (i.e. the multicast message). One multicast source can send multicast messages to multiple multicast groups at the same time, and multiple multicast sources can also send multicast messages to one multicast group at the same time.
[0046] For example, the multicast source can be a single host or a group of hosts, which is not limited by the embodiment of the present disclosure.
[0047] Among them, the network device R4 is a BFIR, which is the entry node of the multicast message entering the BIER network, and is responsible for BIER encapsulation of the multicast message entering the BIER network to obtain the BIER message.
[0048] For example, the BFR ID of the network device R4 is 4 (1000).
[0049] The network device R3 is a BFR, which is an intermediate node for forwarding the BIER packet in the BIER network, and is responsible for forwarding the BIER packet.
[0050] For example, the BFR ID of the network device R3 is 3 (0100).
[0051] The network device R2 and the network device R1 are BFERs, which are exit nodes of the BIER packet out of the BIER network, and are responsible for decapsulating the BIER packet and forwarding the BIER packet to a receiving device.
[0052] For example, the BFR ID of the network device R2 is 2 (0010), and the BFR ID of the network device R1 is 1 (0001).
[0053] The address of the BFIR, the BFR, and the BFER can be an Internet Protocol version 4 (IPv4) or an Internet Protocol version 6 (IPv6) loopback address.
[0054] In some embodiments, the network device is configured to Figure 1 The network configuration of the BIER network shown includes:
[0055] 1. An IP address or an IPv6 address is allocated to a network interface of the network device (for example, the above-mentioned BFIR, BFR, and BFER), so that the network device can be identified, accessed, and communicated on the network.
[0056] 2. The network device is configured with basic network configuration.
[0057] 3. The network device enables the BIER function.
[0058] In some embodiments, the network device enters a BIER configuration mode in response to a received command, configures BIER parameters, and enables the BIER function.
[0059] For example, the configuration of the BIER parameter includes at least one of the following:
[0060] The BIER sub-domain ID is configured, and the related network devices use the same sub-domain ID;
[0061] The BSL is configured as 256;
[0062] The encapsulation type is configured as G-BIER;
[0063] The BFR-id is configured.
[0064] 4. The network device enables the ISIS routing protocol and configures the IPv6 address family.
[0065] In some embodiments, for the BFIR, BFER nodes in the network device, a sub domain (SD) of the BIER is bound to the ISIS routing protocol.
[0066] 5. According to the network design and requirements, the SD forwarding domain is divided to ensure that the data is transmitted in the correct forwarding domain.
[0067] 6. On the BFIR, BFER nodes in the network device, a virtual routing and forwarding (VRF) instance is created and configured, and a border gateway protocol (BGP) related function is configured.
[0068] For example, the BGP related function includes at least one of the following:
[0069] Configuring the BGP routing protocol in the VRF instance;
[0070] Configuring the BGP router ID, local network address;
[0071] Configuring the BGP routing policy and routing attribute;
[0072] Enabling and configuring the multicast virtual private network (MVPN) related address family in the BGP;
[0073] Configuring the BGP to publish and receive BIER related routing information.
[0074] 7. On the BFIR, BFER nodes in the network device, configure the multicast function, configure the virtual private network (VPN) multicast tunnel type as BIER, and enable the multicast support function for BIER.
[0075] Among them, configuring the multicast function includes: configuring the protocol independent multicast (PIM) and the internet group management protocol (IGMP).
[0076] It can be understood that the multicast support function for BIER is enabled to ensure that the multicast traffic can be transmitted through the BIER tunnel.
[0077] After completing the networking configuration of the BIER network, the BIER message can be transmitted based on the BIER network.
[0078] It can be understood that the application scenarios of the embodiments of the present disclosure are not limited. The system architecture and business scenarios described in the embodiments of the present disclosure are for more clearly illustrating the technical solutions of the present disclosure, and do not constitute a limitation on the technical solutions provided by the present disclosure. It can be known by those skilled in the art that, with the evolution of network architecture and the appearance of new business scenarios, the technical solutions provided by the present disclosure are also applicable to similar technical problems.
[0079] The packet processing method provided by the embodiments of the present disclosure will be described in detail below.
[0080] The present disclosure provides a packet processing method, which is applied to a network device as shown in Figure 2 It can be understood that the network device is a BFIR, a BFR or a BFER.
[0081] As shown in Figure 1 , the packet processing method comprises the following steps:
[0082] S201, receiving a BIER packet.
[0083] As a possible implementation manner, in the case that the network device is a BFIR, the above step S201 comprises: receiving a multicast packet sent by a multicast source, performing BIER encapsulation on the multicast packet to obtain a BIER packet.
[0084] As another possible implementation manner, in the case that the network device is a BFR, the above step S201 comprises: receiving a BIER packet sent by a BFIR.
[0085] As another possible implementation manner, in the case that the network device is a BFER, the above step S201 comprises: receiving a BIER packet sent by a BFR.
[0086] S202, determining a single board where the out port of the BIER packet is located.
[0087] In some embodiments, the network device determines the single board where the out port of the BIER packet is located according to a routing table (for example, a BIFT). For example, when the network device receives a BIER packet, it first checks the destination address of the BIER packet, and then determines a routing entry matching the destination address of the BIER packet according to a routing table. The routing entry comprises one or more out port information, and the out port information can be used to determine the single board where the out port is located.
[0088] In some embodiments, the network device can further perform forwarding of the BIER packet based on a Multi-Protocol Label Switching (MPLS) technology, so that the BIER packet can be more efficiently guided to perform forwarding in the network, and the transmission efficiency of multicast traffic and the overall performance of the network can be improved.
[0089] S203, determining a target operation for the BIER packet based on whether a single board where an out port of the BIER packet is located enables the BIER function.
[0090] In some embodiments, the step S203 can be implemented as: in a case where the single board where the out port of the BIER packet is located enables the BIER function, determining that the target operation is to send the BIER packet through the single board where the out port of the BIER packet is located. It can be understood that the forwarding of the BIER packet through the single board enabling the BIER function does not affect the forwarding service and performance of other single boards on the network device, and has less impact on the overall forwarding performance of the network device.
[0091] In some embodiments, the step S203 can be implemented as: in a case where the single board where the out port of the BIER packet is located does not enable the BIER function, determining that the target operation is to discard the BIER packet. It can be understood that in the case where the single board where the out port of the BIER packet is located does not enable the BIER function, the BIER packet is discarded to prevent the BIER packet from affecting other services of the network device.
[0092] S204, performing the target operation on the BIER packet.
[0093] In some embodiments, in a case where the single board where the out port of the BIER packet is located enables the BIER function, the BIER packet is sent through the single board where the out port of the BIER packet is located; and in a case where the single board where the out port of the BIER packet is located does not enable the BIER function, the BIER packet is discarded.
[0094] For example, based on the BIER network shown in FIG. 1, when the network device R3 forwards the BIER packet from the network device R4 to the network device R1, the network device R3 checks whether the single board where the out port of the BIER packet is located enables the BIER function. If yes, the network device R3 forwards the BIER packet to the network device R1; if not, the network device R3 discards the BIER packet. Figure 3
[0095] It can be understood that, compared with the method of load sharing forwarding all single boards in the network device without distinction in the related art, the method provided by the embodiments of the present disclosure can specify part of the single boards in the network device to start the BIER function and perform the forwarding of the BIER traffic. After receiving the BIER packet, it is first determined whether the single board where the out port of the BIER packet is located starts the BIER function, if yes, the forwarding is performed through the single board where the out port of the BIER packet is located, if not, the BIER packet is discarded. In this way, the forwarding service and the forwarding performance of other single boards on the network device are not affected, and the influence on the overall forwarding performance of the network device is small.
[0096] The method provided by the embodiments of the present disclosure can be applied to the scene of adding the BIER function service in a system with large traffic, and can simplify the environment building and maintenance work for complex networking scenes.
[0097] In some embodiments, after step S202, the above method further includes: determining whether the single board where the out port of the BIER packet is located starts the BIER function. For example, as shown in Figure 4 , it can be implemented as the following steps:
[0098] S301, determining whether the target single board includes the single board where the out port of the BIER packet is located.
[0099] The target single board is a single board in the network device that is specified to process the BIER traffic.
[0100] In some embodiments, the network device can determine whether the target single board includes the single board where the out port of the BIER packet is located through the microcode lookup table. For example, a lookup table process is added in the microcode, after receiving the BIER packet, based on the identifier of the single board where the out port of the BIER packet is located, the target single board list (a list composed of the identifiers of the target single boards) is queried to determine whether the target single board includes the single board where the out port of the BIER packet is located.
[0101] S302, based on the target single board including the single board where the out port of the BIER packet is located, determining that the single board where the out port of the BIER packet is located starts the BIER function.
[0102] S303, based on the target single board not including the single board where the out port of the BIER packet is located, determining that the single board where the out port of the BIER packet is located does not start the BIER function.
[0103] In some embodiments, before the above step S201, the above method further includes: configuring the target single board in the network device for processing the BIER traffic. For example, as shown in Figure 5 , it can be implemented as the following steps:
[0104] S401, determine a target single board in the network device designated for processing BIER traffic.
[0105] As a possible implementation manner, as shown in Figure 6 the foregoing step S401 can be implemented as the following steps:
[0106] S4011, receive a configuration instruction, the configuration instruction being used for configuring at least one single board to start BIER function.
[0107] The configuration instruction can include at least one of the following: chassis number of the single board starting BIER function, slot number of the single board starting BIER function, and sub-card number of the single board starting BIER function.
[0108] S4012, determine the target single board based on the configuration instruction.
[0109] It can be understood that the user can plan the single board starting BIER function in the network device according to actual needs, generate and send a configuration instruction to the network device, so that the network device determines the target single board according to the configuration instruction. Thus, when performing loopback processing of BIER traffic subsequently, the BIER traffic can be forwarded through the target single board, without affecting the forwarding service and performance of other single boards on the network device, and the influence on the overall forwarding performance of the network device is small.
[0110] S402, configure BIER function for the target single board.
[0111] For example, as shown in Figure 7 , the single board (Xgei-0 / 1 / 1 / 2) with chassis number 0, slot number 1, sub-card number 1 and port number 2 in the BFIR node (node identifier F6-1), and the single board (cgei-0 / 7 / 0 / 1) with chassis number 0, slot number 7, sub-card number 0 and port number 1 are configured with BIER function. The single board (Xgei-0 / 1 / 1 / 2) can be used as a single board for receiving BIER packets in the BFIR node, and the single board (cgei-0 / 7 / 0 / 1) can be used as a single board for sending BIER packets in the BFIR node.
[0112] The single board (cgei-0 / 5 / 0 / 3) with chassis number 0, slot number 5, sub-card number 0 and port number 3 in the BFR node (node identifier F6-2), and the single board (Xgei-0 / 5 / 1 / 5) with chassis number 0, slot number 5, sub-card number 1 and port number 5 are configured with BIER function. The single board (cgei-0 / 5 / 0 / 3) can be used as a single board for receiving BIER packets in the BFR node, and the single board (Xgei-0 / 5 / 1 / 5) can be used as a single board for sending BIER packets in the BFR node.
[0113] Configure the BIER function for the single board (Xgei-0 / 4 / 0 / 7) with chassis number 0, slot number 4, sub-card number 0, and port number 7 in the BFER node (the node identifier is F3-1), and the single board identifier is sg101 single board (sg101). The single board (Xgei-0 / 4 / 0 / 7) can be used as the single board for receiving the BIER packet in the BFER node, and the single board (sg101) can be used as the single board for sending the BIER packet in the BFER node.
[0114] In some embodiments, if the target single board in the network device is unplugged, the network device does not have forwarding conditions and cannot forward the BIER packet. If there is no backup single board set in the network device and the forwarding requirement still exists, a single board that meets the forwarding condition can be selected from other single boards of the network device to start the BIER function.
[0115] For ease of understanding, the packet processing method is described in the form of examples as follows.
[0116] As shown in Figure 7 , it is an encapsulation schematic diagram of a G-BIER network provided by an embodiment of the present disclosure. As shown in Figure 7 , the G-BIER network includes a multicast source, a network device A, a network device B, a network device C, a network device D, a network device E, a network device F, and a multicast receiving device. The network devices have completed network configuration.
[0117] As an example, based on the G-BIER network as shown in Figure 7 , assuming that the network device A is a BIFR, the network device B and the network device C are BFRs, and the network device E, the network device D, and the network device F are BFERs, the packet processing method can be implemented as the following steps.
[0118] Step a1, after receiving the multicast packet sent by the multicast source, the network device A determines the BFER to which the multicast packet is to be sent according to the destination address of the multicast packet, re-encapsulates the multicast packet with BIER header information to obtain a BIER packet.
[0119] As an example, assuming that the BFER to which the BIER packet is to be sent is the network device E and the network device D.
[0120] Step a2, the network device A determines whether the single board where the out port of the BIER packet is located starts the BIER function.
[0121] In the case where the single board where the out port of the BIER packet is located does not start the BIER function, the network device A discards the BIER packet.
[0122] Step a3, in the case that the single board where the out port of the BIER message is located starts the BIER function, the network device A sends the BIER message to the network device B through the single board where the out port of the BIER message is located.
[0123] For example, the format of the BIER message sent by the network device A to the network device B can be the payload ② as shown in the following table. Figure 7 The header information of the BIER message includes the source address and the target address of the BIER message, and the BIER message further includes the following information: BSL information, SD information, sub identify (SI) information, Time To Live (TTL) information, entropy, Differentiated Services Code Point (DSCP), etc.
[0124] It should be noted that when the network devices forward the BIER message, only the state of the next hop network device is concerned, and the type and quantity of the single board on the next hop network device are not concerned.
[0125] Step a4, after receiving the BIER message, the network device B determines the single board where the out port of the BIER message is located according to the destination address of the BIER message and the BIFT (as shown in the following table, the BIFT includes the F-BM and the BFR neighbor). Figure 8
[0126] Step a5, the network device B determines whether the single board where the out port of the BIER message is located starts the BIER function.
[0127] In the case that the single board where the out port of the BIER message is located does not start the BIER function, the network device B discards the BIER message.
[0128] Step a6, in the case that the single board where the out port of the BIER message is located starts the BIER function, the network device B changes the header information of the BIER message, and sends the changed BIER message to the network device C and the network device E through the single board where the out port of the BIER message is located.
[0129] The network device B changes the header information of the BIER message refers to adding the identifier of the network device B in the header information of the BIER message to indicate that the BIER message passes through the network device B.
[0130] Step a7, after receiving the BIER message, the network device E determines the single board where the out port of the BIER message is located according to the destination address of the BIER message and the BIFT.
[0131] Step a8, the network device E determines whether the single board where the out port of the BIER message is located opens the BIER function.
[0132] In the case that the single board where the out port of the BIER message is located does not open the BIER function, the network device E discards the BIER message.
[0133] Step a9, in the case that the single board where the out port of the BIER message is located opens the BIER function, the BIER message is sent to the multicast receiving device through the single board where the out port of the BIER message is located.
[0134] Step a10, after receiving the BIER message, the network device C determines the single board where the out port of the BIER message is located according to the destination address and the BIFT of the BIER message.
[0135] Step a11, the network device C determines whether the single board where the out port of the BIER message is located opens the BIER function.
[0136] In the case that the single board where the out port of the BIER message is located does not open the BIER function, the network device C discards the BIER message.
[0137] Step a12, in the case that the single board where the out port of the BIER message is located opens the BIER function, the network device C changes the header information of the BIER message, and sends the changed BIER message to the network device D through the single board where the out port of the BIER message is located.
[0138] Wherein, the network device C changing the header information of the BIER message means adding the identifier of the network device C in the header information of the BIER message to indicate that the BIER message has passed through the network device C.
[0139] Step a13, after receiving the BIER message, the network device D determines the single board where the out port of the BIER message is located according to the destination address and the BIFT of the BIER message.
[0140] Step a14, the network device D determines whether the single board where the out port of the BIER message is located opens the BIER function.
[0141] In the case that the single board where the out port of the BIER message is located does not open the BIER function, the network device D discards the BIER message.
[0142] Step a15, in the case that the single board where the out port of the BIER message is located opens the BIER function, the BIER message is sent to the multicast receiving device through the single board where the out port of the BIER message is located.
[0143] The above describes the scheme of the embodiments of the present disclosure mainly from the perspective of the method. It can be understood that, in order to implement the above functions, the packet processing apparatus includes at least one of the hardware structure and the software module for executing the respective functions. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, the embodiments of the present disclosure can be implemented in the form of hardware or the combination of hardware and computer software. Whether a certain function is implemented in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of the present disclosure.
[0144] The embodiments of the present disclosure can divide the packet processing apparatus into functional modules according to the above method embodiments. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one functional module. The above integrated module can be implemented in the form of hardware or software. It should be noted that the division of the modules in the embodiments of the present disclosure is illustrative, and is only a logical functional division. When actually implemented, there can be another division manner. The following takes the example of dividing each functional module according to each function.
[0145] Figure 8 FIG. 6 is a structural schematic diagram of a packet processing apparatus provided by the embodiments of the present disclosure. The packet processing apparatus is applied to a network device and can execute the packet processing method provided by the above method embodiments. As shown in FIG. 6, the packet processing apparatus 600 includes a communication module 601, a determination module 602, and a processing module 603. Figure 9
[0146] The communication module 601 is configured to receive a BIER packet.
[0147] The determination module 602 is configured to determine a single board on which an out port of the BIER packet is located.
[0148] The determination module 602 is further configured to determine a target operation for the BIER packet based on whether the single board on which the out port of the BIER packet is located starts the BIER function.
[0149] The processing module 603 is configured to execute the target operation on the BIER packet.
[0150] In some embodiments, the determination module 602 is specifically configured to, in a case where the single board on which the out port of the BIER packet is located starts the BIER function, determine that the target operation is to send the BIER packet through the single board on which the out port of the BIER packet is located.
[0151] In some embodiments, the determining module 602 is specifically configured to determine that the target operation is discarding the BIER packet in a case where a single board where the out port of the BIER packet is located does not start the BIER function.
[0152] In some embodiments, the determining module 602 is further configured to determine whether the single board where the out port of the BIER packet is located is included in a target single board, the target single board being a single board in the network device that is designated to process the BIER traffic; determine that the single board where the out port of the BIER packet is located starts the BIER function based on the single board where the out port of the BIER packet is located being included in the target single board; and determine that the single board where the out port of the BIER packet is located does not start the BIER function based on the single board where the out port of the BIER packet is located not being included in the target single board.
[0153] In some embodiments, the determining module 602 is further configured to determine a target single board in the network device that is designated to process the BIER traffic; and configure the target single board with the BIER function.
[0154] In some embodiments, the communication module 601 is further configured to receive a configuration instruction, the configuration instruction being used to configure at least one single board to start the BIER function; and the determining module 602 is specifically configured to determine the target single board based on the configuration instruction.
[0155] In some embodiments, the configuration instruction includes at least one of the following: a chassis number of a single board that starts the BIER function, a slot number of a single board that starts the BIER function, and a sub-card number of a single board that starts the BIER function.
[0156] In some embodiments, the network device is a BFIR, a BFR, or a BFER.
[0157] In a case where the functions of the above-mentioned integrated modules are implemented in the form of hardware, the embodiments of the present disclosure provide a possible structure of the communication apparatus involved in the above-mentioned embodiments. As shown in FIG. 8, the communication apparatus 800 includes a processor 802 and a bus 804. Optionally, the communication apparatus can further include a memory 801; and optionally, the communication apparatus 800 can further include a communication interface 803. Figure 9
[0158] The processor 802 can be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array, or other programmable logic device, transistor logic, hardware components, or any combination thereof. The processor 802 can implement or execute various exemplary logical blocks, modules, and circuits described in connection with the embodiments of the present disclosure. The processor 802 can also be a combination of computing functionality, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
[0159] The communication interface 803 is configured to connect with other devices through a communication network. The communication network can be an Ethernet, a radio access network, a wireless local area network (WLAN), and the like.
[0160] The memory 801 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a magnetic disk storage medium, or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
[0161] As a possible implementation, the memory 801 can exist independently of the processor 802, and the memory 801 can be connected to the processor 802 through the bus 804, for storing instructions or program codes. When the processor 802 invokes and executes the instructions or program codes stored in the memory 801, the packet processing method provided by the embodiments of the present disclosure can be implemented. In another possible implementation, the memory 801 can also be integrated with the processor 802.
[0162] The bus 804 can be an extended industry standard architecture (EISA) bus or the like. The bus 804 can be divided into an address bus, a data bus, a control bus, and the like. For the convenience of representation, Only one thick line is used in the figure to represent the bus, but it does not mean that there is only one bus or only one type of bus.
[0163] Some embodiments of the present disclosure provide a computer readable storage medium (for example, a non-transitory computer readable storage medium) having stored computer program instructions, which when executed on a computer, cause the computer to perform the packet processing method according to any one of the above embodiments.
[0164] For example, the computer readable storage medium described above can include, but is not limited to, a magnetic storage device (for example, a hard disk, a floppy disk, or a magnetic tape, etc.), an optical disc (for example, a compact disc (CD), a digital versatile disc (DVD), etc.), a smart card, and a flash memory device (for example, an erasable programmable read-only memory (EPROM), a card, a stick, or a key drive, etc.). The various computer readable storage media described in the present disclosure can represent one or more devices and / or other machine readable storage media for storing information. The term "machine readable storage medium" can include, but is not limited to, a wireless channel and various other media capable of storing, containing, and / or carrying instructions and / or data.
[0165] The embodiments of the present disclosure provide a computer program product containing instructions, which when executed on a computer, cause the computer to perform the packet processing method according to any one of the above embodiments.
[0166] The above is merely specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and any changes or replacements within the technical scope disclosed by the present disclosure should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A message processing method, characterized in that, Applied to network devices, the method includes: Explicitly copy the BIER message using the received bit index; Determine the board on which the BIER message originates; Based on whether the board where the output port of the BIER message is located has enabled the bit index explicit copy BIER function, determine the target operation for the BIER message. Perform the target operation on the BIER message.
2. The method according to claim 1, characterized in that, The determination of the target operation for the BIER message based on whether the board where the output port of the BIER message is located has enabled the BIER function includes: If the BIER function is enabled on the board where the BIER message output port is located, the target operation is determined to be sending the BIER message through the board where the BIER message output port is located.
3. The method according to claim 1, characterized in that, The determination of the target operation for the BIER message based on whether the board where the output port of the BIER message is located has enabled the BIER function includes: If the board where the output port of the BIER message is located does not have the BIER function enabled, the target operation is determined to be to discard the BIER message.
4. The method according to claim 1, characterized in that, After determining the board where the BIER message output port is located, the method further includes: Determine whether the target board includes the board where the BIER message output port is located. The target board is the board in the network device designated to handle BIER traffic. Based on the target board containing the output port of the BIER message, determine the board where the output port of the BIER message is located to enable the BIER function. Based on the fact that the target board does not include the board where the BIER message output port is located, it is determined that the board where the BIER message output port is located does not have the BIER function enabled.
5. The method according to claim 1, characterized in that, Before receiving the BIER message, the method further includes: Identify the target board in the network device designated for handling BIER traffic; Configure the BIER function for the target board.
6. The method according to claim 5, characterized in that, The step of determining the target board in the network device designated for processing BIER traffic includes: Receive a configuration instruction, which is used to configure at least one board to enable the BIER function; Based on the configuration instructions, the target board is determined.
7. The method according to claim 6, characterized in that, The configuration instructions include at least one of the following: the chassis number of the board with the BIER function enabled, the slot number of the board with the BIER function enabled, and the sub-card number of the board with the BIER function enabled.
8. The method according to claim 1, characterized in that, The network device is a bit forwarding ingress router (BFIR), a bit forwarding router (BFR), or a bit forwarding egress router (BFER).
9. A communication device, characterized in that, include: Memory and processor; Memory and processor are coupled; The memory is used to store instructions that can be executed by the processor; When the processor executes the instruction, it performs the message processing method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the message processing method as described in any one of claims 1 to 8.
11. A computer program product, characterized in that, The computer program product includes a computer program that, when run on an electronic device, causes the electronic device to perform the message processing method as described in any one of claims 1 to 8.