Traffic forwarding method, device and equipment of orthogonal split device and medium
By implementing a custom message parsing and forwarding process on a programmable switching chip, the problem of traditional aggregation, filtering, and distribution equipment being unable to iterate quickly is solved, enabling flexible control of messages and improving the adaptability of the equipment.
Patent Information
- Application Number
- CN202211503322.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-28
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2042-11-28
AI Technical Summary
Traditional convergence, filtering and splitting devices cannot keep up with the rapid development of network protocols, resulting in their inability to support new tunnels and user-defined protocols, and thus failing to meet the needs of actual application scenarios and customers.
This paper provides a traffic forwarding method for orthogonal splitter devices. It implements a customizable packet parsing, forwarding, and modification process through a programmable switching chip, without relying on chip designers, and uses proprietary packet header encapsulation and stripping technology for traffic forwarding.
It enables reconfigurable control over processes such as message parsing and forwarding, meeting users' personalized needs for switching chips and improving the adaptability and flexibility of the equipment.
Smart Images

Figure CN115865837B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of network communication, and in particular to a traffic forwarding method and device of an orthogonal split device, equipment and a medium. BACKGROUND
[0002] Traditional aggregation filtering split devices use traditional fixed function switch chips, and the functions such as message analysis and forwarding have been fixed at the time of factory shipment. With the rapid development of network protocols, the traditional aggregation filtering split device has been unable to quickly iterate and follow up the development of the protocol, resulting in that some new tunnels, user-defined and other new protocols cannot be supported on the traditional aggregation filtering split device, so that these traditional aggregation filtering split devices cannot meet the actual application scenarios and customer needs. SUMMARY
[0003] The purpose of the present application is to provide a traffic forwarding method, device, equipment and medium of an orthogonal split device, which can implement a self-defined control process for message analysis, forwarding, message modification and the like, and no longer depends on the design personnel of the chip, so as to realize the reconfiguration of the message analysis, forwarding and the like process of the entire switch chip by the user.
[0004] In a first aspect, the present application provides a traffic forwarding method of an orthogonal split device. The method is applied to a programmable orthogonal split device. The method comprises the following steps: after detecting that traffic information is accessed, adding the traffic information to a private message header, and encapsulating the private message header to an original message to obtain a to-be-forwarded message; forwarding the to-be-forwarded message carrying the traffic information to a switch card; based on the switch card, performing secondary forwarding on the to-be-forwarded message to a target service card; performing private message header stripping processing on the to-be-forwarded message forwarded to the target service card, and outputting the stripped original message to a target port of the target service card.
[0005] In an optional implementation, after detecting that the traffic information is accessed, the traffic information is added to the private message header, and the private message header is encapsulated to the original message to obtain the to-be-forwarded message, which comprises the following steps: after detecting that the traffic information is accessed, it is judged whether the traffic information is cross-board card traffic; if yes, the traffic information is added to the private message header based on cross-board card information of the target port, and the private message header is encapsulated to the original message to obtain the to-be-forwarded message.
[0006] In an optional implementation, when the to-be-forwarded message carrying the traffic information is forwarded to the switch card backboard, the method further comprises: forwarding the to-be-forwarded message carrying the traffic information to the current service card.
[0007] In an optional implementation, the method further comprises: if the traffic information is non-cross-board card traffic, the traffic information is directly balanced output at one or more output ports of the current service card.
[0008] In an optional embodiment, before forwarding the to-be-forwarded packet carrying the traffic information to the switching card, the method further comprises: performing private packet header matching on the current service card, and when the matched traffic information is cross-board card traffic, forwarding the traffic information to the backboard port of the current service card and the switching card.
[0009] In an optional embodiment, the method further comprises: after the traffic information reaches the target service card through the backboard, matching the private packet header information in the traffic information on the target service card, and outputting from the designated output port after matching.
[0010] In an optional embodiment, the encapsulation format of the private packet header comprises a fixed field and a cross-board information field.
[0011] In a second aspect, the application provides a traffic forwarding device of a cross-traffic device, which is applied to a programmable cross-traffic device; the device comprises: an encapsulation module, which is used to add traffic information to a private packet header and encapsulate the private packet header to an original packet to obtain a to-be-forwarded packet after detecting that the traffic information is accessed; a first forwarding module, which is used to forward the to-be-forwarded packet carrying the traffic information to a switching card; a second forwarding module, which is used to perform secondary forwarding of the to-be-forwarded packet to a target service card based on the switching card; and an output module, which is used to perform private packet header stripping processing on the to-be-forwarded packet forwarded to the target service card and output the stripped original packet to a target port of the target service card.
[0012] In a third aspect, the application provides an electronic device, which comprises a processor and a memory, the memory stores computer executable instructions capable of being executed by the processor, and the processor executes the computer executable instructions to implement the traffic forwarding method of the cross-traffic device according to any one of the foregoing embodiments.
[0013] In a fourth aspect, the application provides a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions, when called and executed by a processor, cause the processor to implement the traffic forwarding method of the cross-traffic device according to any one of the foregoing embodiments.
[0014] The application provides a traffic forwarding method, device and equipment of a cross-flow device and a medium. The method is applied to a programmable cross-flow device. When traffic information is detected, the traffic information is first added to a private message header, and the private message header is encapsulated to an original message to obtain a to-be-forwarded message. Then, the to-be-forwarded message carrying the traffic information is forwarded to a switching card, and the to-be-forwarded message is forwarded to a target service card based on the switching card. Finally, the to-be-forwarded message forwarded to the target service card is subjected to private message header stripping processing, and the original message after stripping is output to a target port of the target service card. The above method can be programmed on a data plane through a switching chip, and the implementation of a custom control process such as message analysis, forwarding and message modification of the message is no longer dependent on a designer of the chip, and the user can reconfigure the message analysis and forwarding process of the entire switching chip. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the specific embodiments or prior art of the present application, the drawings needed in the specific embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0016] Figure 1 A CLOS cross-flow device architecture machine frame schematic diagram provided by the embodiment of the present application;
[0017] Figure 2 A flowchart of a traffic forwarding method of a cross-flow device provided by the embodiment of the present application;
[0018] Figure 3 An encapsulation format of a private message header provided by the embodiment of the present application;
[0019] Figure 4 A system structure schematic diagram of a cross-flow device access traffic cross-board forwarding provided by the embodiment of the present application;
[0020] Figure 5 A structure diagram of a traffic forwarding device of a cross-flow device provided by the embodiment of the present application;
[0021] Figure 6 A structure diagram of an electronic device provided by the embodiment of the present application. DETAILED DESCRIPTION
[0022] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will be combined with the drawings in the embodiments of the present application to make a clear and complete description of the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. The components of the embodiments of the present application described and shown in the drawings can be arranged and designed in various different configurations.
[0023] Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor are within the scope of protection of the present application.
[0024] It should be noted that: similar reference numbers and letters represent similar items in the following drawings, therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0025] The embodiments of the present application provide a flow forwarding method of a cross-flow device, the method is applied to a programmable cross-flow device. The cross-flow device exists in a CLOS cross architecture in terms of device form, including a plurality of service cards and switch cards, and the output of the flow accessed by one service card can be on another service card or a plurality of service cards, Figure 1 A CLOS cross-flow device architecture chassis schematic diagram is shown.
[0026] Referring to Figure 2 As shown, the method mainly includes the following steps:
[0027] Step S202, after detecting the access of the flow information, the flow information is added to a private message header, and the private message header is encapsulated to an original message to obtain a to-be-forwarded message.
[0028] Step S204, the to-be-forwarded message carrying the flow information is forwarded to a switch card.
[0029] Step S206, based on the switch card, the to-be-forwarded message is forwarded for a second time to a target service card.
[0030] Step S208, the to-be-forwarded message forwarded to the target service card is subjected to private message header stripping processing, and the stripped original message is output to a target port of the target service card.
[0031] The flow forwarding method of the orthogonal flow splitting device provided by the embodiments of the present application can realize self-defined control flow of message analysis, forwarding, message modification and the like through programmability of the data plane of the switching chip, and no longer depends on the designers of the chip, thereby realizing reconfiguration of the message analysis, forwarding and the like of the entire switching chip by the user.
[0032] For the convenience of understanding, the flow forwarding method of the orthogonal flow splitting device provided by the embodiments of the present application is described in detail below.
[0033] In an optional embodiment, after detecting the access of the flow information, the flow information is added to the private message header, and the private message header is encapsulated to the original message to obtain a to-be-forwarded message. In the specific implementation, the following steps 1.1) to 1.3) can be included:
[0034] Step 1.1), after detecting the access of the flow information, it is judged whether the flow information is cross-board card flow.
[0035] Step 1.2), if the flow information is cross-board card flow, the flow information is added to the private message header based on the cross-board card information of the target port, and the private message header is encapsulated to the original message to obtain a to-be-forwarded message.
[0036] Step 1.3), if the flow information is non-cross-board card flow, the flow information is evenly output at one or more output ports of the current service card.
[0037] Further, when the flow information is cross-board flow, the above-mentioned to-be-forwarded message carrying the flow information is forwarded to the current service card when the to-be-forwarded message carrying the flow information is forwarded to the backboard of the switching card.
[0038] In an optional embodiment, before the to-be-forwarded message carrying the flow information is forwarded to the switching card, the above-mentioned method further includes: performing matching of the private message header on the current service card, and when the matching hits the flow information that needs cross-board card flow, the flow information is evenly forwarded to the current service card and the backboard port of the switching card.
[0039] Further, after the flow information reaches the target service card through the backboard, the private message header information in the flow information is matched on the target service card, and is output from the specified output port after the matching hits.
[0040] In an optional embodiment, the encapsulation format of the private message header includes a fixed field and a cross-board information field, as shown in FIG. Figure 3
[0041] Figure 4 A system structure schematic diagram of orthogonal split-flow device access flow cross-board forwarding is shown, and the system comprises a self-defined private message header information marking unit, a self-defined private message header backboard forwarding unit, a self-defined private message header switch card forwarding unit, a self-defined private message header message output unit and a self-defined private message header automatic stripping unit.
[0042] In the execution of the above method, in combination with the system, the following steps 2.1) to 2.5) can be included:
[0043] Step 2.1), after the flow is accessed from one of the service card panel ports, the information of the output port of the flow cross-board forwarding is added to the user-defined private message header by the self-defined private message header information marking unit, the private message header is encapsulated into the message, and then the flow is forwarded together;
[0044] Step 2.2), after the self-defined private message header encapsulation of the access flow cross-board forwarding is completed, the flow is evenly forwarded to the backboard of the current service card and the switch card by the self-defined private message header backboard forwarding unit, and the first cross-board forwarding of the flow is completed;
[0045] Step 2.3), after the access flow is cross-board forwarded to the switch card, the flow output to the backboard port of the corresponding service card is output by the self-defined private message header switch card forwarding unit, and the second cross-board forwarding of the access flow is completed;
[0046] Step 2.4), after the access flow is cross-board forwarded to the target service card, the access flow is finally output to the corresponding output port by the self-defined private message header message output unit;
[0047] Step 2.5), when the access flow is output at the output port of the target service card, the self-defined private message header is also carried, and at this time the self-defined private message header needs to be output stripped by the self-defined private message header automatic stripping unit to output the original message.
[0048] Specifically, in one embodiment, after the flow is accessed from the service card panel port, the flow needs to be forwarded to a target port or evenly output to multiple target ports, if the flow is not cross-board flow, it is directly output from the board card, and if it is cross-board flow, the cross-board card information of the target port needs to be encapsulated in the self-defined message header.
[0049] After the custom packet header encapsulation of the cross-board target port information is completed, the private packet header needs to be matched on the current service card. When the matched traffic is the traffic that needs to be cross-boarded, the traffic is evenly forwarded to the backboard port of the current service card and the switching card to complete the first cross-board forwarding of the access traffic. If the traffic is directly output on the current service card, the private packet header does not need to be encapsulated, and the traffic can be directly output from one port or multiple ports.
[0050] After the traffic is cross-boarded to the switching card, the private packet header information needs to be matched on the switching card. After the matching, the traffic is evenly forwarded to the backboard port of the switching card corresponding to the service card slot, so that the second cross-board forwarding of the access traffic is completed.
[0051] After the traffic reaches the target service card through the backboard, the private packet header information in the traffic needs to be matched on the target service card. After the matching, the traffic is output from the specified output ports.
[0052] When the access traffic is output from the target output port, the private packet header needs to be automatically stripped during the output, so that the normal output of the access traffic from the output port of the current access board card and the output port of the cross-board service card is realized.
[0053] In summary, the embodiment of the application can realize the output of the traffic from a single port or multiple ports of the target service card after the cross-boarding, and can also realize the simultaneous and even output of the ports of the current card and the target card.
[0054] Based on the above method embodiment, the embodiment of the application further provides a traffic forwarding device of a cross-orthogonal splitting device. The device is applied to a programmable cross-orthogonal splitting device. As shown in Figure 5 The device mainly includes the following parts:
[0055] The encapsulation module 52 is configured to add the traffic information to the private packet header and encapsulate the private packet header to the original packet after detecting the access of the traffic information, to obtain a to-be-forwarded packet.
[0056] The first forwarding module 54 is configured to forward the to-be-forwarded packet carrying the traffic information to the switching card.
[0057] The second forwarding module 56 is configured to perform secondary forwarding of the to-be-forwarded packet based on the switching card to the target service card.
[0058] The output module 58 is configured to perform private packet header stripping processing on the to-be-forwarded packet forwarded to the target service card, and output the stripped original packet to the target port of the target service card.
[0059] The flow forwarding device of the orthogonal distribution equipment provided by the embodiment of the application can be programmed through the exchange chip, and the implementation of the self-defined control process of message analysis, forwarding, message modification and the like is no longer dependent on the designers of the chip, and the user can reconfigure the message analysis, forwarding and the like process of the entire exchange chip.
[0060] In some embodiments, the encapsulation module 52 is further configured to: after detecting that the flow information is accessed, determine whether the flow information is cross-board card flow; if yes, add the flow information to the private message header based on the cross-board card information of the target port, and encapsulate the private message header to the original message to obtain a to-be-forwarded message.
[0061] In some embodiments, when forwarding the to-be-forwarded message carrying the flow information to the exchange card backboard, the first forwarding module 54 is further configured to: forward the to-be-forwarded message carrying the flow information to the current service card.
[0062] In some embodiments, the device further includes a direct output module configured to: if the flow information is non-cross-board card flow, directly balance output the flow information at one or more output ports of the current service card.
[0063] In some embodiments, before forwarding the to-be-forwarded message carrying the flow information to the exchange card, the device further includes a balance forwarding module configured to: perform matching of the private message header on the current service card, and when the matched flow information is cross-board card flow, balance forward the flow information to the current service card and the backboard port of the exchange card.
[0064] In some embodiments, the device further includes a matching output module configured to: after the flow information reaches the target service card through the backboard, match the private message header information in the flow information on the target service card, and output from the specified output ports after matching.
[0065] In some embodiments, the encapsulation format of the private message header includes a fixed field and a cross-board information field.
[0066] The flow forwarding device of the orthogonal distribution equipment provided by the embodiment of the application has the same implementation principle, technical effects and the foregoing method embodiments, and for brevity of description, the embodiment of the flow forwarding device of the orthogonal distribution equipment is not mentioned in the foregoing flow forwarding method embodiments, and the corresponding content can be referred to in the foregoing flow forwarding method embodiments.
[0067] The embodiment of the application further provides an electronic device, such as Figure 6As shown, the electronic device 100 includes a processor 61 and a memory 60, the memory 60 storing computer executable instructions capable of being executed by the processor 61, and the processor 61 executes the computer executable instructions to implement the flow forwarding method of any of the orthogonal split devices.
[0068] In Figure 6 In the illustrated embodiment, the electronic device further includes a bus 62 and a communication interface 63, wherein the processor 61, the communication interface 63 and the memory 60 are connected through the bus 62.
[0069] The memory 60 can include a high-speed random access memory (RAM) and can also include a non-volatile memory such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 63 (which can be wired or wireless), and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used. The bus 62 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, etc. The bus 62 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or only one type of bus.
[0070] The processor 61 can be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method can be completed by the integrated logic circuit of hardware in the processor 61 or the instruction in the form of software. The processor 61 described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory or an electrically erasable programmable memory, a register, etc. The storage medium in the art. The storage medium is located in the memory, and the processor 61 reads the information in the memory, and combines the hardware to complete the steps of the flow forwarding method of the orthogonal flow splitting device described above.
[0071] The embodiment of the present application also provides a computer readable storage medium, which stores computer executable instructions. When the computer executable instructions are called and executed by a processor, the computer executable instructions cause the processor to implement the flow forwarding method of the orthogonal flow splitting device described above. For specific implementation, refer to the foregoing method embodiments, which will not be described here.
[0072] The computer program product of the flow forwarding method, device, equipment and medium of the orthogonal flow splitting device provided by the embodiment of the present application includes a computer readable storage medium storing program codes. The instructions included in the program codes can be used to execute the method described in the foregoing method embodiments. For specific implementation, refer to the method embodiments, which will not be described here.
[0073] Unless otherwise specifically stated, the relative steps, numerical expressions and numerical values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0074] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a nonvolatile computer readable storage medium executable by a processor. Based on this understanding, the technical solutions of the present application or the part of the prior art that essentially contributes to the prior art or the part of the technical solutions can be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various storage medium that can store program codes.
[0075] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship when the product is usually placed, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", "third" and the like are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0076] In addition, the terms "horizontal", "vertical", "overhanging" and the like do not mean that the components must be absolutely horizontal or overhanging, but can be slightly inclined. For example, "horizontal" only means that its direction is more horizontal relative to "vertical", and does not mean that the structure must be completely horizontal, but can be slightly inclined.
[0077] In the description of the present application, it should be noted that, unless otherwise explicitly specified and limited, the terms "set", "mount", "connected", "connected" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium; it can be the communication between the two elements inside. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0078] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A traffic forwarding method for an orthogonal splitter device, characterized in that, The method is applied to a programmable orthogonal splitter device; the method includes: After detecting the traffic information access, the traffic information is added to the private message header, and the private message header is encapsulated into the original message to obtain the message to be forwarded; wherein, the encapsulation format of the private message header includes fixed fields and cross-board information fields; Perform private message header matching on the current service card. When the matched traffic information is traffic that needs to cross the card, forward the traffic information evenly to the backplane ports of the current service card and the switching card. Forward the packet to be forwarded carrying the traffic information to the switching card, and forward the packet to be forwarded carrying the traffic information to the current service card; The switching card performs a secondary forwarding of the message to be forwarded, and forwards it to the target service card. The private header of the message to be forwarded to the target service card is stripped, and the stripped original message is output to the target port of the target service card.
2. The traffic forwarding method for the orthogonal splitter according to claim 1, characterized in that, Upon detecting incoming traffic information, the traffic information is added to a private header, and the private header is encapsulated into the original packet to obtain the packet to be forwarded, including: After detecting the traffic information, determine whether the traffic information is cross-board traffic; If so, the traffic information is added to the private message header based on the cross-board information of the target port, and the private message header is encapsulated into the original message to obtain the message to be forwarded.
3. The traffic forwarding method for the orthogonal splitter according to claim 2, characterized in that, The method further includes: If the traffic information is not cross-board traffic, the traffic information is output evenly to one or more output ports of the current service card.
4. The traffic forwarding method for the orthogonal splitter according to claim 1, characterized in that, The method further includes: After the traffic information reaches the target service card through the backplane, the private message header information in the traffic information is matched on the target service card, and output from the designated output ports after a match is found.
5. A flow forwarding device for an orthogonal flow splitting equipment, characterized in that, The device is applied to a programmable orthogonal splitter device to implement the method of claim 1; the device comprises: The encapsulation module is used to add the traffic information to a private packet header after detecting the traffic information access, and encapsulate the private packet header into the original packet to obtain the packet to be forwarded; The first forwarding module is used to forward the packet to be forwarded, carrying the traffic information, to the switching card; The second forwarding module is used to forward the message to be forwarded a second time based on the switching card to the target service card; The output module is used to strip the private header of the message to be forwarded to the target service card, and output the stripped original message to the target port of the target service card.
6. An electronic device, characterized in that, It includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, the processor executing the computer-executable instructions to implement the traffic forwarding method of the orthogonal splitter device according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the traffic forwarding method of the orthogonal splitter device according to any one of claims 1 to 4.
Citation Information
Patent Citations
Message forwarding method, switching card, service card and distributed switch
CN108173753A
Flow message forwarding method and system
CN114745323A