Message processing method, electronic equipment and computer readable storage medium
By obtaining the access member mapping table in the VXLAN network and determining the target chip, packets are forwarded only on the target chip, solving the resource waste problem caused by broadcast, multicast, and unknown unicast traffic in the VXLAN network, saving resources and improving processing efficiency.
Patent Information
- Application Number
- CN202510897040.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-09-19
AI Technical Summary
In VXLAN networks, the processing of broadcast, multicast, and unknown unicast traffic results in a waste of device resources because each chip needs to perform unnecessary duplication operations.
By obtaining the access member mapping table, the target chip on the target board is determined, and the target message is forwarded only through the tunnel member port on the target chip, avoiding duplication operations on multiple chips.
This reduces unnecessary copy operations, saves resource consumption, and improves message processing efficiency.
Smart Images

Figure CN120675962A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to, but are not limited to, the field of data processing technology, and in particular to a message processing method, an electronic device, a computer-readable storage medium, and a computer program product. Background Art
[0002] In Virtual eXtensible Local Area Networks (VXLANs), handling broadcast, multicast, and unknown unicast traffic is a critical issue. Switches and routers transmit data between devices through tunnels. When forwarding broadcast, multicast, and unknown unicast traffic, each chip on the device must handle duplication, resulting in unnecessary resource consumption. Summary of the Invention
[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0004] The embodiments of the present application provide a message processing method, electronic device, computer-readable storage medium, and computer program product to reduce unnecessary copy operations and save copy resources.
[0005] In a first aspect, an embodiment of the present application provides a message processing method, the method comprising:
[0006] Acquire an access member mapping table, wherein the access member mapping table includes a correspondence between at least one broadcast domain and access members included in each broadcast domain;
[0007] Based on the access member mapping table, determining a target chip on a target board for forwarding a target message in each broadcast domain, wherein the target message is a message whose broadcast group member egress is a tunnel member port;
[0008] In response to receiving a first message from a first interface and one of the broadcast group member exits of the first message being a tunnel member port, the first message is forwarded through the tunnel member port on the target chip in the target broadcast domain to which the first interface belongs.
[0009] In a second aspect, an embodiment of the present application provides an electronic device, including:
[0010] at least one processor;
[0011] at least one memory for storing at least one program;
[0012] When at least one of the programs is executed by at least one of the processors, the message processing method described above is implemented.
[0013] In a third aspect, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the message processing method as described above.
[0014] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program or computer instructions, wherein the computer program or the computer instructions are stored in a computer-readable storage medium, and a processor of a computer device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, so that the computer device performs the message processing method as described above.
[0015] The embodiment of the present application includes: in the process of message processing, obtaining an access member mapping table, wherein the access member mapping table includes a correspondence between at least one broadcast domain and the access members contained in each broadcast domain; based on the access member mapping table, determining a target chip on a target board for forwarding a target message in each broadcast domain, wherein the target message is a message whose broadcast group member outlet is a tunnel member port; in response to receiving a first message from a first interface and one of the broadcast group member outlets of the first message is a tunnel member port, the first message can be forwarded through the tunnel member port on the target chip in the target broadcast domain to which the first interface belongs. According to the technical solution provided by the embodiment of the present application, in the process of message processing, based on the access member mapping table, determining a target chip on a target board for forwarding a target message in each broadcast domain, forwarding the first message through the tunnel member port on the target chip in the target broadcast domain to which the first interface belongs, does not require copying the message to the tunnel member ports of multiple chips when forwarding broadcast, multicast and unknown unicast traffic as in the past, but only copies and forwards the message based on the tunnel member port on the target chip, thereby reducing unnecessary copy operations and saving copy resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings are used to provide a further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0017] Figure 1 This is a schematic diagram of a network architecture for executing a message processing method provided by an embodiment of the present application;
[0018] Figure 2 This is a flowchart of a message processing method provided by an embodiment of the present application;
[0019] Figure 3 This is a flowchart of message forwarding provided by an embodiment of the present application;
[0020] Figure 4 This is a flowchart of message discarding provided by an embodiment of the present application;
[0021] Figure 5 This is a flowchart of adding message information provided by an embodiment of the present application;
[0022] Figure 6 This is a schematic diagram of a message processing process provided by an embodiment of the present application;
[0023] Figure 7 This is a flow chart of a tunnel member writing into a multicast replication table provided by an embodiment of the present application;
[0024] Figure 8 This is a schematic diagram of a message processing process provided by another embodiment of the present application;
[0025] Figure 9 is a flowchart of a message processing method provided by another embodiment of the present application;
[0026] Figure 10 This is a flowchart of updating the access member mapping table provided by an embodiment of the present application;
[0027] Figure 11 This is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0029] It should be noted that although the device schematics illustrate functional module divisions and the flowcharts illustrate logical sequences, in certain circumstances, the steps shown or described may be performed in a sequence that differs from the module divisions in the device or the sequence in the flowcharts. The terms "first," "second," and so on, in the specification, claims, and drawings, are used to distinguish similar items and are not necessarily used to describe a specific sequence or precedence.
[0030] In the description of this application, "several" means one or more, "many" means more than two, "greater than," "less than," and "exceed" are understood to exclude the number itself, while "above," "below," and "within" are understood to include the number itself. The terms "first" and "second" are used solely to distinguish technical features and are not to be construed as indicating or implying relative importance, or as implicitly specifying the number or order of the technical features indicated.
[0031] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, and connecting should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.
[0032] An embodiment of the present application provides a message processing method, an electronic device, a computer-readable storage medium, and a computer program product. During message processing, an access member mapping table is obtained, wherein the access member mapping table includes a correspondence between at least one broadcast domain and the access members contained in each broadcast domain; based on the access member mapping table, a target chip on a target board for forwarding a target message is determined in each broadcast domain, where the target message is a message whose broadcast group member outlet is a tunnel member port; in response to receiving a first message from a first interface and one of the broadcast group member outlets of the first message being a tunnel member port, the first message can be forwarded through the tunnel member port on the target chip in the target broadcast domain to which the first interface belongs. According to the technical solution provided in the embodiment of the present application, during the message processing process, based on the access member mapping table, the target chip on the target board used to forward the target message is determined in each broadcast domain, and the first message is forwarded through the tunnel member port on the target chip in the target broadcast domain to which the first interface belongs. Unlike in the past, when forwarding broadcast, multicast and unknown unicast traffic, it is not necessary to copy the message to the tunnel member ports of multiple chips. The message is only copied and forwarded based on the tunnel member port on the target chip, which reduces unnecessary copy operations and saves copy resources.
[0033] The embodiments of the present application are further described below with reference to the accompanying drawings.
[0034] like Figure 1 As shown, Figure 1 This is a schematic diagram of a network architecture for executing a message processing method according to an embodiment of the present application. Figure 1 In the example, the network architecture includes a VXLAN Tunnel Endpoint (VTEP) device. Figure 1 Two VTEP devices are shown, denoted as "VTEP1" and "VTEP2"; "VTEP1" and "VTEP2" are connected via a VXLAN tunnel. VTEP devices are key components in the VXLAN network architecture. They are responsible for encapsulating and decapsulating VXLAN packets, encapsulating Layer 2 Ethernet frames into Layer 3 User Datagram Protocol (UDP) packets, thereby achieving Layer 2 network extension across different networks. "VTEP1" is also connected to two attachment circuits (ACs). Figure 1In the figure, they are represented as "AC1" and "AC2". "VTEP3" is connected to an AC. Figure 1 Indicated as "AC3" in the VXLAN network architecture, the AC is the interface used to connect terminal devices to the VXLAN network and is responsible for connecting terminal device traffic to the VXLAN network. In the VXLAN network architecture, the AC works with the VTEP device. When a terminal device sends a data frame, the AC passes the frame to the VTEP device, which encapsulates the frame into a VXLAN tunnel and then transmits it to the target VTEP device over the Layer 3 network. When the target VTEP device receives the target frame, it decapsulates it and transmits it to the target AC, ultimately delivering it to the target terminal device.
[0035] It is worth noting that in some embodiments of the present application, "AC1" and "AC2" belong to the same broadcast domain. When a message enters "VTEP1" from "AC1", the message will be forwarded to "AC2" during the subsequent message forwarding process; similarly, when a message enters "VTEP1" from "AC2", the message will be forwarded to "AC1" during the subsequent message forwarding process.
[0036] The network architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of network architecture and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
[0037] It will be understood by those skilled in the art that Figure 1 The network architecture shown in the figure does not constitute a limitation on the embodiments of the present application, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0038] Based on the structure of the above-mentioned network architecture, various embodiments of the message processing method of the embodiments of the present application are proposed.
[0039] like Figure 2 As shown, Figure 2 1 is a flow chart of a message processing method provided by an embodiment of the present application. The message processing method includes but is not limited to step S100, step S200 and step S300.
[0040] Step S100: obtaining an access member mapping table, wherein the access member mapping table includes a correspondence between at least one broadcast domain and access members included in each broadcast domain;
[0041] Step S200, based on the access member mapping table, determining the target chip on the target board for forwarding the target message in each broadcast domain, where the target message is a message whose broadcast group member egress is a tunnel member port;
[0042] Step S300 : in response to receiving a first message from a first interface and one of the broadcast group member exits of the first message corresponding to a tunnel member port, forwarding the first message through the tunnel member port on a target chip in a target broadcast domain to which the first interface belongs.
[0043] In some embodiments of the present application, during message processing, an access member mapping table is obtained, wherein the access member mapping table includes a correspondence between at least one broadcast domain and the access members contained in each broadcast domain; based on the access member mapping table, a target chip on a target board for forwarding a target message is determined in each broadcast domain, wherein the target message is a message whose broadcast group member outlet is a tunnel member port; in response to receiving a first message from a first interface and one of the broadcast group member outlets of the first message corresponds to a tunnel member port, the first message can be forwarded through the tunnel member port on the target chip in the target broadcast domain to which the first interface belongs. According to the technical solution provided in the embodiment of the present application, during message processing, based on the access member mapping table, a target chip on a target board for forwarding a target message is determined in each broadcast domain, and the first message is forwarded through the tunnel member port on the target chip in the target broadcast domain to which the first interface belongs. As in the past, when forwarding broadcast, multicast, and unknown unicast traffic, it is not necessary to copy the message to the tunnel member ports of multiple chips. Instead, the message is copied and forwarded based on the tunnel member port on the target chip, thereby reducing unnecessary copy operations and saving copy resources. It is worth noting that before obtaining the access member mapping table, it is necessary to determine the broadcast domain members, and the corresponding access member mapping table can be obtained based on the determination of the broadcast domain members.
[0044] It is worth noting that the access member mapping table may include a correspondence between at least one broadcast domain and the access members contained in each broadcast domain; wherein, the access member mapping table also includes a mapping table identifier, each mapping table identifier corresponds one-to-one to each broadcast domain, and the access member mapping table is characterized as a mapping table between the mapping table identifier and the access members contained in each broadcast domain. When the access member mapping table is obtained, the target chip on the target board for subsequent forwarding of the target message can be selected in each broadcast domain according to the actual situation of the access member mapping table. Among them, the target message in the embodiment of the present application is a message whose broadcast group member exit is a tunnel member port. Through the above technical solution, there is no need to copy and forward the received message at the tunnel member ports on multiple chips, which saves copy resources well.
[0045] In some embodiments of the present application, the access member mapping table may be as follows:
[0046]
[0047] As shown in the above table, the access member mapping table includes 5 broadcast domains, and the mapping table ID corresponding to the first broadcast domain is 1. The first broadcast domain includes AC1 and AC2 access members, and the single board chip corresponding to AC1 is "single board 1 chip 0", and the single board chip corresponding to AC2 is "single board 2 chip 1". In the process of target chip selection, the single board chip corresponding to AC1 can be selected as the target chip, or the single board chip corresponding to AC2 can be selected as the target chip, or each single board selects its own target chip, single board 1 selects chip 0, and single board 2 selects chip 1; the mapping table ID corresponding to the second broadcast domain is 2, and the second broadcast domain includes AC3 and AC4 access members, and the single board chip corresponding to AC3 is "single board 3 chip 0", and the single board chip corresponding to AC4 is "single board 4 chip 2". In the process of target chip selection, the single board chip corresponding to AC3 can be selected as the target chip, or the single board chip corresponding to AC4 can be selected. The single board chip of AC5 is selected as the target chip; the mapping table ID corresponding to the third broadcast domain is 3, and the third broadcast domain contains AC5 and AC6 access members, and the single board chip corresponding to AC5 is "single board 5 chip 1", and the single board chip corresponding to AC6 is "single board 6 chip 2". In the process of selecting the target chip, the single board chip corresponding to AC5 can be selected as the target chip, or the single board chip corresponding to AC6 can be selected as the target chip; the fourth broadcast domain has no corresponding AC access member, but when the access member is a non-AC access member, the "single board 6 chip 1" corresponding to the mapping table ID4 can be selected as the target chip, because each single board can select the smallest chip number or the largest chip number as the target chip of each single board; the fifth broadcast domain has no corresponding AC access member, but when the access member is a non-AC access member, the "single board 5 chip 2" corresponding to the mapping table ID5 can also be selected as the target chip. Among them, the mapping table ID in the embodiment of the present application is the mapping table identifier in the above embodiment, AC1, AC2 and AC3, etc. are the access members in the above embodiment, AC1 and AC2 form a broadcast domain, AC3 and AC4 form a broadcast domain, AC5 and AC6 form a broadcast domain.
[0048] It is worth noting that the embodiment of the present application obtains the access member mapping table; based on the access member mapping table, determines the target chip in each broadcast domain of the access member mapping table, and subsequently forwards the target message based on the target chip, all of which are executed by the VTEP device. The VTEP device includes multiple boards, each of which can include multiple chips. The naming of the chips in the VTEP device is unique in the global network, for example, "Board 1 Chip 0", "Board 2 Chip 0" and "Board 3 Chip 1", etc. By selecting the specified chip in the access member mapping table, the globally unique chip can be located to prepare for the subsequent target message forwarding. When the first interface of the VTEP device receives the first message and one of the broadcast group member exports of the first message corresponds to a tunnel member port, the received first message will be forwarded and processed through the tunnel member port on the target chip in the target broadcast domain to which the first interface belongs, and the tunnel member ports on other chips will not forward and process the first message.
[0049] like Figure 3 As shown, the first message carries target board information and target chip information, and the above step S300 may include but is not limited to step S310 and step S320.
[0050] Step S310: For each access member in the target broadcast domain, in response to receiving the first message, matching each chip on each board corresponding to the current access member based on the target board information and the target chip information;
[0051] Step S320 , in response to a target chip on a target board corresponding to the target board information and the target chip information being matched on the current access member, forwarding the first message through a tunnel member port on the target chip on the current access interface.
[0052] In some embodiments of the present application, after determining the target broadcast domain, in response to the received first message, the target board information and target chip information carried by the first message will be matched with each chip on each board corresponding to the current access member; if the target chip on the target board corresponding to the target board information and target chip information is matched on the current access member, the first message will be forwarded through the tunnel member port on the target chip on the current access interface, wherein, if the target chip on the target board corresponding to the target board information and target chip information is matched on the current access member, each board on the current access member can be matched with the target board information first to determine the target board that matches the target board information, and then each chip on the target board can be matched with the target chip information to obtain the target board that matches the target chip information. Through the above technical solution, only when the target chip on the target board corresponding to the target board information and target chip information is matched on the current access member will the first message be forwarded through the tunnel member port on the target chip on the current access interface, which saves replication resources well.
[0053] It is worth noting that for a target broadcast domain, there can be multiple access members in a target broadcast domain. Among the multiple access members, the single-board chip corresponding to one access member is the target chip on the target single board. Given that the single-board chip is unique in the global network, the target single-board information and target chip carried by the first message are matched with each chip on each single board corresponding to the current access member. Only the single-board chip of one access member can be matched with the target single-board information and target chip information, and then the tunnel member port on the target chip corresponding to the access member can be used to forward the first message.
[0054] like Figure 4 As shown, after executing the above step S310, it may also include but not limited to step S330.
[0055] Step S330 : In response to the current access member not matching the target chip on the target board corresponding to the target board information and the target chip information, discard the first message.
[0056] In some embodiments of the present application, after determining the target broadcast domain, in response to the received first message, the target board information and target chip information carried by the first message will be matched with each chip on each board corresponding to the current access member; if the target chip on the target board corresponding to the target board information and target chip information is not matched on the current access member, the received first message will be discarded.
[0057] like Figure 5As shown, before executing the above step S310, it may also include but not be limited to step S301.
[0058] Step S301: Add target board information corresponding to the target board and target chip information corresponding to the target chip to the first message.
[0059] In some embodiments of the present application, before forwarding the first message through the tunnel member port on the target chip in the target broadcast domain to which the first interface belongs, the target board information corresponding to the target board in the target broadcast domain and the target chip information corresponding to the target chip need to be added to the first message, so as to prepare data for matching processing of each chip on each board corresponding to the current access member based on the target board information and the target chip information in response to the subsequent received first message.
[0060] For example, in a target broadcast domain, there are two access members, AC1 and AC2. The single-board chip corresponding to AC1 is "Single-board 1 Chip 0", and the single-board chip corresponding to AC2 is "Single-board 2 Chip 0". In the target broadcast domain, the single-board chip corresponding to AC1 is selected as the target chip on the target single board, so "Single-board 1 Chip 0" is added to the first message. Subsequently, during the forwarding of the first message, the target single-board information and target chip information carried by the first message will be matched with the single-board chip corresponding to AC1, and the target chip will be matched on AC1. Then, the first message can be forwarded through the tunnel member port on the target chip on AC1. However, when the target single-board information and target chip information carried by the first message are matched with the single-board chip corresponding to AC2, the target chip cannot be matched on the single-board chip corresponding to AC2, and the first message will be discarded.
[0061] For example, Figure 6This is a schematic diagram of the message processing process provided by an embodiment of the present application. The access members in the target broadcast domain in the embodiment of the present application include AC1 and AC2, wherein the "single board 1 chip 1" corresponding to AC1 is used as the target chip in the target single board; after selecting the "single board 1 chip 1" corresponding to AC1 as the target chip in the target single board, the "single board 1 chip 1" will be added to the message, and then the message will be sent to the "single board 1 chip 1" corresponding to AC1 and the "single board 2 chip 0" corresponding to AC2. Since the multicast replication table of each chip in each single board in the VTEP device is written into the tunnel member, there are two broadcast group members in the multicast replication table of the "single board 1 chip 1" corresponding to AC1, and there are also two broadcast group members in the multicast replication table of the "single board 2 chip 0" corresponding to AC2, so two copies of the message will be copied in the "single board 1 chip 1" and the "single board 2 chip 0". In "Single Board 1 Chip 1", AC1 will directly forward the message, match the target single board information and target chip information carried in the message with "Single Board 1 Chip 1", and match "Single Board 1 Chip 1" as the target chip, that is, "Single Board 1 Chip 1" is consistent with the target single board information and target chip information carried in the message, and will forward the message through the tunnel member port on "Single Board 1 Chip 1". In "Single Board 2 Chip 0", AC2 will also directly forward the message, match the target single board information and target chip information carried in the message with "Single Board 2 Chip 0", and will not be able to match the target chip, so it will discard the message and will not forward the message through the tunnel member port on "Single Board 2 Chip 0". The above technical solution effectively limits the sending of messages into the tunnel. Among them, when the target broadcast domain is determined, the message will only be sent to the single board and chip corresponding to the access member in the target broadcast domain; that is, the access members in the target broadcast domain in the embodiment of the present application include AC1 and AC2. Since the message will not be sent to the single board and chip corresponding to other access members that are not in the target broadcast domain, for example, AC3 corresponds to "single board 3 chip 0", but AC3 is not in the target broadcast domain, the message will not be sent to "single board 3 chip 0". In addition, when there is only one access member in the target broadcast domain, the message will only be sent to the target chip of the target single board corresponding to the access member, and the target single board information and target chip information corresponding to the access member will also be added to the message. When the target single board information and target chip information carried by the subsequent message match the target chip on the single board chip corresponding to the access member, the message will also be forwarded through the tunnel member port in the target chip on the target single board corresponding to the access member.
[0062] like Figure 7 As shown, after executing step S200, the process may also include but is not limited to step S210.
[0063] Step S210: Write the tunnel members only into the multicast replication table corresponding to the target chip of the target board.
[0064] In some embodiments of the present application, after determining the target chip on the target board used to forward the target message in each broadcast domain, the tunnel member can be written only into the multicast replication table corresponding to the target chip of the target board. Subsequently, the first message can be directly forwarded using the tunnel member port on the target chip. There is no need to add the target board information and the target chip information to the first message, and further, there is no need to match each chip on each board corresponding to the current access member based on the target board information and the target chip information. Since the tunnel member is written only into the multicast replication table on the target chip, the chips of other access members will not perform the action of copying the first message, which saves replication resources and greatly speeds up the transmission efficiency of the message, making the message forwarding process simpler.
[0065] For example, Figure 8 This is a schematic diagram of the message processing process provided by another embodiment of the present application. In the embodiment of the present application, the access members in the target broadcast domain include AC1 and AC2, wherein the "Single Board 1 Chip 1" corresponding to AC1 is used as the target chip in the target single board; the message is sent to the "Single Board 1 Chip 1" corresponding to AC1 and the "Single Board 2 Chip 0" corresponding to AC2. Since in the VTEP device, tunnel members are only written in the multicast replication table of the target chip of the target single board, therefore, there are only two broadcast group members in the multicast replication table of the "Single Board 1 Chip 1" corresponding to AC1, so two copies of the message are copied in the "Single Board 1 Chip 1"; there is one broadcast group member in the multicast replication table of the "Single Board 2 Chip 0" corresponding to AC2, so one copy of the message is copied in the "Single Board 2 Chip 0". In the "Single Board 1 Chip 1", AC1 will directly forward the message, and the tunnel member port on the "Single Board 1 Chip 1" will also directly forward the message, and there is no need to compare the single board information and the chip information. In "Chip 0 on Board 2," AC2 will also directly forward the message. This technical solution not only saves on replication resources but also significantly increases message transmission efficiency, making message forwarding easier and faster.
[0066] like Figure 9 As shown, in some embodiments of the present application, it may also include but not be limited to step S410 and step S420.
[0067] Step S410: In response to receiving a first message from a first interface, determining a target broadcast domain and other access link AC members in the target broadcast domain except the first interface according to an access member mapping table;
[0068] Step S420: Send the first message to other AC members.
[0069] In some embodiments of the present application, in response to receiving a first message from a first interface, the target broadcast domain and other access link AC members in the target broadcast domain other than the first interface can be determined according to the access member mapping table. Subsequently, the received first message can be sent to other AC members, and the other AC members can directly forward and process the received first message to greatly improve the forwarding efficiency of the message.
[0070] It is worth noting that there can be multiple access members in the target broadcast domain, and the first interface is one of the multiple access members. In the subsequent message forwarding process, in addition to forwarding the first message using the tunnel member port on the target chip in the target broadcast domain to which the first interface belongs, the first message will also be forwarded to other AC members that belong to the same target broadcast domain as the first interface. Subsequently, the received first message can be directly forwarded and processed by other AC members. For example, in a target broadcast domain, there are three access members, AC1, AC2, and AC3. Among them, when a message is received through AC1, it will be forwarded to AC2 and AC3 in the subsequent message forwarding process. AC2 and AC3 can directly forward and process the received message.
[0071] like Figure 10 As shown, in some embodiments of the present application, it may also include but not be limited to step S510 and step S520.
[0072] Step S510: When an access member in the broadcast domain changes, the access member mapping table is updated according to the changed access member to obtain a new access member mapping table;
[0073] Step S520: Based on the new access member mapping table, determine the target chip on the new target board for forwarding the target message in the broadcast domain where the access member has changed, where the target message is a message whose broadcast group member egress is a tunnel member port.
[0074] In some embodiments of the present application, when there is a change in the access members in the broadcast domain, it is necessary to update the access member mapping table according to the changed access members, thereby obtaining a new access member mapping table; subsequently, based on the new access member mapping table, the target chip on the new target board for forwarding the target message can be determined in the broadcast domain where the access members have changed, wherein the target message is a message whose broadcast group member exit is a tunnel member port. Through the above technical solution, when there is a change in the access members in the broadcast domain, the access members in the broadcast domain can be added or deleted, and the access member mapping table will be updated according to the changed access members, thereby obtaining a new access member mapping table; based on the new access member mapping table, the target chip on the new target board for forwarding the target message in the broadcast domain where the access members have changed is re-determined to facilitate the subsequent forwarding of the target message.
[0075] For example, a broadcast domain previously had access members including AC1, AC2, and AC3, with the board chip corresponding to AC1 serving as the target chip on the target board. When AC1 is removed from the broadcast domain's access members and AC4 is added, and the broadcast domain now includes AC2, AC3, and AC4, the access member mapping table needs to be updated. Then, based on the updated access member mapping table, the board chip corresponding to a new access member in the broadcast domain is re-determined as the target chip on the target board. Broadcast domains whose access member mapping table remains unchanged do not need to re-determine the target chip on the target board, thus reducing network burden.
[0076] In addition, if Figure 11 As shown, an embodiment of the present application further provides an electronic device 700, which includes:
[0077] The memory 720 , the processor 710 , and computer programs stored in the memory 720 and executable on the processor 710 .
[0078] The processor 710 and the memory 720 may be connected via a bus or other means.
[0079] It should be noted that the electronic device 700 in this embodiment and the message processing method in the above embodiments belong to the same inventive concept, so these embodiments have the same implementation principles and technical effects, which will not be described in detail here.
[0080] The non-transitory software program and instructions required to implement the message processing method of the above embodiment are stored in the memory 720. When executed by the processor 710, the message processing method of the above embodiment is executed.
[0081] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by a processor 710, for example, by a processor 710 in the above-mentioned electronic device 700 embodiment, so that the above-mentioned processor 710 can execute the message processing method in the above-mentioned embodiment.
[0082] In addition, an embodiment of the present application also provides a computer program product, including a computer program or computer instructions, wherein the computer program or the computer instructions are stored in a computer-readable storage medium, and the processor of a computer device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, so that the computer device executes the message processing method in the above embodiment.
[0083] Those skilled in the art will appreciate that all or some of the steps and systems in the method disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include computer storage media (or non-transitory media) and communication media (or temporary media). As known to those skilled in the art, the term computer storage media is included in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data) and is volatile and non-volatile, removable, and non-removable. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory, or other memory technology, CD-ROM, digital versatile disks (DVD), or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage, or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0084] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above implementation mode. Technical personnel familiar with the field can also make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A message processing method, the method comprising: Acquire an access member mapping table, wherein the access member mapping table includes a correspondence between at least one broadcast domain and access members included in each broadcast domain; Based on the access member mapping table, determining a target chip on a target board for forwarding a target message in each broadcast domain, wherein the target message is a message whose broadcast group member egress is a tunnel member port; In response to receiving a first message from a first interface and one of the broadcast group member exits of the first message being a tunnel member port, the first message is forwarded through the tunnel member port on the target chip in the target broadcast domain to which the first interface belongs.
2. The message processing method according to claim 1, characterized in that: The first message carries target board information and target chip information, and forwarding the first message through a tunnel member port on the target chip in the target broadcast domain to which the first interface belongs includes: For each access member in the target broadcast domain, in response to receiving the first message, matching each chip on each board corresponding to the current access member based on the target board information and the target chip information; In response to the target chip on the target board corresponding to the target board information and the target chip information being matched on the current access member, the first message is forwarded through a tunnel member port on the target chip on the current access interface.
3. The message processing method according to claim 2, characterized in that: The method further comprises: In response to the current access member not matching the target chip on the target board corresponding to the target board information and the target chip information, discarding the first message.
4. The message processing method according to claim 2, characterized in that: Before forwarding the first message through the tunnel member port on the target chip in the target broadcast domain to which the first interface belongs, the method further includes: The target board information corresponding to the target board and the target chip information corresponding to the target chip are added to the first message.
5. The message processing method according to claim 1, characterized in that: After determining, based on the access member mapping table, a target chip on a target board for forwarding a target message in each of the broadcast domains, the method further includes: The tunnel members are only written into the multicast replication table corresponding to the target chip of the target board.
6. The message processing method according to claim 1, characterized in that: The method further comprises: In response to receiving the first message from the first interface, determining the target broadcast domain and other access link AC members in the target broadcast domain except the first interface according to the access member mapping table; Send the first message to the other AC members.
7. The message processing method according to claim 1, characterized in that: The method further comprises: When the access member in the broadcast domain changes, the access member mapping table is updated according to the changed access member to obtain a new access member mapping table; Based on the new access member mapping table, the target chip on the new target board for forwarding the target message is determined in the broadcast domain where the access member has changed.
8. The message processing method according to claim 1, characterized in that: The access member mapping table further includes a mapping table identifier, each of the mapping table identifiers corresponds to each of the broadcast domains one by one, and the access member mapping table is characterized as a mapping table between the mapping table identifiers and the access members included in each of the broadcast domains.
9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the message processing method according to any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium storing computer-executable instructions, characterized in that: The computer-executable instructions are used to execute the message processing method according to any one of claims 1 to 8.