A method for implementing a multimodal network and a routing device
By combining NP chips and FPGAs, the practical application of multimodal networks has been realized, filling the gap in the routing and switching field of multimodal networks. It enables multimodal network forwarding of Ethernet and non-Ethernet packets and supports flexible definition and programming interfaces for various application network modes.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2026-03-10
AI Technical Summary
In the current technology, multimodal networks have not yet been put into practical application in the field of routing and switching. Multimodal network technology is still in the theoretical stage and lacks practical implementation technology.
A method for implementing a multimodal network is provided. The method involves receiving and forwarding packets using an NP chip, obtaining a first identifier and a focus offset bit, determining the mode type and data content based on the identifier and offset bit, and performing mode recognition and conversion on non-Ethernet packets using a field-programmable gate array (FPGA) to process them into Ethernet packets, thereby realizing the forwarding of multimodal network packets.
It implements multimodal network technology using both Ethernet and non-Ethernet packets, supports flexible definition of various application network modes and programming of forwarding behavior, provides open programming interfaces, and realizes practical applications of multimodal networks.
Smart Images

Figure CN118646694B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of communication technology, and in particular to a method for implementing a multimodal network and a routing device. Background Technology
[0002] Multimodal networks separate physical infrastructure from specific application network modes, enabling the creation, deployment, and coexistence of multiple application network modes within the same physical network environment.
[0003] Currently, multimodal networks have not been specifically applied in the field of routing and switching. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this specification provides a method for implementing a multimodal network and a routing device.
[0005] According to a first aspect of the embodiments of this specification, a method for implementing a multimodal network is provided, the method being applied to an NP chip of a routing device, the method comprising:
[0006] Receive forwarded messages and obtain the first identifier and attention offset from the forwarded messages;
[0007] The modality type is determined based on the first identifier obtained, and the corresponding data content is determined based on the attention offset bit.
[0008] The data content is processed according to the modality type.
[0009] The forwarded message is of Ethernet message type, and the modal type includes Ethernet network modal.
[0010] The steps of determining the modality type based on the acquired first identifier and determining the corresponding data content based on the attention offset include:
[0011] Obtain the first identifier from the target bits of the forwarded message;
[0012] The modality type is obtained based on the matching result between the first identifier and the Ethernet type modality identification table;
[0013] The attention offset is obtained based on the matching results of the modality type and modality matching field definition table.
[0014] The step of processing the data content according to the modality type includes:
[0015] The modality forwarding table is matched with the data content, and the data content is forwarded according to the matching result.
[0016] Wherein, the forwarded message is a non-Ethernet message type, and the method further includes:
[0017] The first identifier in the forwarded message is identified by a field-programmable gate array (FPGA) and converted into an Ethernet message.
[0018] Secondary modality identification is performed on the Ethernet message to determine the modality type, and the corresponding data content is determined based on the attention offset bit.
[0019] As can be seen from the above embodiments, the above method realizes the multimodal network implementation technology based on NP architecture, laying the foundation for the transformation of multimodal network theory into implementation.
[0020] According to a second aspect of the embodiments of this specification, a routing device is provided, the routing device comprising: an NP chip, the NP chip comprising:
[0021] The receiving module is used to receive forwarded messages and obtain the first identifier and the attention offset bit from the forwarded messages;
[0022] The determination module is used to determine the modality type based on the acquired first identifier and to determine the corresponding data content based on the attention offset bit;
[0023] The processing module is used to process the data content according to the modality type.
[0024] The forwarded message is of Ethernet message type, and the modal type includes: Ethernet network modal.
[0025] Specifically, the determining module is used to obtain the first identifier from the target bit of the forwarded message;
[0026] The modality type is obtained based on the matching result between the first identifier and the Ethernet type modality identification table;
[0027] The attention offset is obtained based on the matching results of the modality type and modality matching field definition table.
[0028] Specifically, the processing module is used to match the modality and the data content to a modality forwarding table, and forward the data content according to the matching result.
[0029] Wherein, the forwarded message is a non-Ethernet message type, and the routing device further includes:
[0030] The Field Programmable Gate Array (FPGA) performs a modal identification on the first identifier in the forwarded message and converts it into an Ethernet message.
[0031] The Ethernet message is sent to the NP for secondary modality identification to determine the modality type, and the corresponding data content is determined based on the attention offset bit.
[0032] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this specification. Attached Figure Description
[0033] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this specification and, together with the description, serve to explain the principles of this specification.
[0034] Figure 1 This is a schematic diagram illustrating a type of multimodality according to an exemplary embodiment of this specification.
[0035] Figure 2 This is a flowchart illustrating an implementation method of a multimodal network according to an exemplary embodiment of this specification.
[0036] Figure 3 This is a schematic diagram of a network architecture illustrated in this specification according to an exemplary embodiment.
[0037] Figure 4 This is a schematic diagram illustrating a multimodal processing flow according to an exemplary embodiment of this specification.
[0038] Figure 5 This is a schematic diagram of a network architecture illustrated in this specification according to an exemplary embodiment. Detailed Implementation
[0039] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this specification as detailed in the appended claims.
[0040] The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of this specification. The singular forms “a,” “the,” and “the” as used in this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0041] It should be understood that although the terms first, second, third, etc., may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this specification, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0042] like Figure 1 As shown, network modes include IPv4 mode, IPv6 mode, geographic identification network mode, industrial control network mode, identity identification network mode, content identification network mode, etc., and can be non-IP packets, or even non-Ethernet packets.
[0043] For multimodal Ethernet packets, the network mode is generally identified by the Ethernet type. For network modes that are not Ethernet types, it is generally necessary to parse specific fields of the packet for identification.
[0044] However, multimodal network technology is currently in the theoretical stage, and there are no related implementation technologies yet.
[0045] To address the problems of existing technologies, this disclosure provides a method for implementing a multimodal network, wherein the method is applied to the NP chip of a routing device, such as... Figure 2 As shown, the method includes:
[0046] S201 receives forwarded messages and obtains the first identifier and attention offset from the forwarded messages;
[0047] S202 determines the modality type based on the acquired first identifier and the corresponding data content based on the attention offset bit;
[0048] S203 processes the data content according to the modality type.
[0049] The technical solution in this application can realize multimodal network technology for Ethernet format messages and non-Ethernet format messages, and realize functions such as flexible definition of modes, flexible programming of forwarding behavior, and open programming interface.
[0050] In step S201, the NP chip of the routing device receives the forwarding message, parses the forwarding message header, and obtains the first identifier in the target reserved bit.
[0051] In one embodiment, the forwarded packets are Ethernet type packets. The multimodal network implementation using Ethernet packet format may include three parts: a controller, a multimodal forwarding behavior programming interface, and a multimodal forwarding device, such as... Figure 3 As shown, the execution content of each part is as follows:
[0052] Among them, the controller:
[0053] 1. Define a modal identifier, identified by the Ether type.
[0054] 2. Define the modal forwarding matching field: packet offset + length.
[0055] 3. Generate a multimodal translation table.
[0056] Multimodal forwarding behavior programming interface exposed:
[0057] 1. Modality definition interface, including modality recognition and modality matching field definitions.
[0058] 2. Multimodal forwarding table interface, including matching fields and forwarding behavior.
[0059] Multimodal forwarding devices:
[0060] 1. Forwarding table design: Modality recognition table + Modality matching field definition table + Modality forwarding table
[0061] 2. Forwarding process design: When a packet enters the multimodal forwarding device, the mode type is identified by looking up the mode identification table according to the Ethernet type; then, the forwarding fields are extracted from the packet according to the mode matching field definition table; the extracted forwarding fields form the KEY of the mode forwarding table, the mode forwarding table is searched, and forwarding is performed according to the search results.
[0062] In this embodiment, when the forwarded message is of type Ethernet, the corresponding modal type includes: Ethernet network modal.
[0063] Among them, Ethernet-type network modes can include: IPv4 packets, IPv6 packets, IEEE 802.3 packets, etc.
[0064] In step S202, after obtaining the first identifier, the modality type is obtained based on the matching result between the first identifier and the Ethernet type modality identification table.
[0065] Then, obtain the attention offset based on the matching results of the modality type and modality matching field definition table.
[0066] For ease of explanation, this disclosure provides an example, such as... Figure 4 As shown in the example, modes 1, 2, and 3 are listed. Mode 3 will be used as an example for illustration.
[0067] First, the controller defines the modality, defines the identifier (first identifier) ETH TYPE = 0x1030, and sets the message forwarding attention offset:
[0068] Forward Key={offset=18, length=2; offset=24, length=4}.
[0069] Generate modal forwarding table KEY=0x1020 30405060, Result=Forward to port1.
[0070] Send the above modal forwarding table to each routing device.
[0071] When a routing device receives a forwarding packet, it determines the mode type using the mode identification table (Ethernet type mode identification table).
[0072] like Figure 3 As shown, the first identifier Key = 0x1030 is obtained and matched with the Ethernet type modality identification table to obtain Res = mode3, which is modality 3.
[0073] By matching Key=mode3 with the modal matching field definition table, we obtain Res={O=18, L=2; O=24, L=4}.
[0074] Modal forwarding table: Key = 0x1020 30405060; Res = Forward to port1.
[0075] As can be seen from the above method, for Ethernet message types, the modality type of the message can be obtained based on the first identifier, and the relevant field data content can be processed according to the matching field definition table and the matching modality forwarding table, thereby realizing the multimodal network implementation technology based on the NP architecture.
[0076] In this embodiment, the forwarded message can be a non-Ethernet message type. The multimodal network implementation technology for non-Ethernet message types is basically the same as that for Ethernet message types. The main difference is that since NP chips generally only recognize Ethernet messages, an FPGA is needed for secondary modal recognition processing. Figure 5 As shown, the specific implementation scheme is to add an FPGA chip to the hardware. The FPGA performs a first mode recognition on the first identifier in the forwarded message and converts it into an Ethernet message. The Ethernet message is then subjected to a second mode recognition to determine the mode type and the corresponding data content is determined according to the attention offset bit. Finally, the corresponding mode is forwarded at the NP.
[0077] As can be seen from the above embodiments, by implementing the design of a multimodal forwarding table and forwarding process based on the NP architecture, the design of an open multimodal programming interface, and the secondary modal recognition technology based on the NP architecture for non-Ethernet multimodal packets, multimodal forwarding processing for both Ethernet and non-Ethernet packet types can be achieved.
[0078] Based on the above method embodiments, this disclosure also provides a routing device, the routing device comprising: an NP chip, the NP chip comprising:
[0079] The receiving module is used to receive forwarded messages and obtain the first identifier and the attention offset bit from the forwarded messages;
[0080] The determination module is used to determine the modality type based on the acquired first identifier and to determine the corresponding data content based on the attention offset bit;
[0081] The processing module is used to process the data content according to the modality type.
[0082] The forwarded message is of Ethernet message type, and the modal type includes Ethernet network modal.
[0083] in,
[0084] The determining module is specifically used to obtain the first identifier from the target bits of the forwarded message;
[0085] The modality type is obtained based on the matching result between the first identifier and the Ethernet type modality identification table;
[0086] The attention offset is obtained based on the matching results of the modality type and modality matching field definition table.
[0087] Specifically, the processing module is used to match the modality and the data content to a modality forwarding table, and forward the data content according to the matching result.
[0088] Wherein, the forwarded message is a non-Ethernet message type, and the routing device further includes:
[0089] The Field Programmable Gate Array (FPGA) performs a modal identification on the first identifier in the forwarded message and converts it into an Ethernet message.
[0090] The Ethernet message is sent to the NP for secondary modality identification to determine the modality type, and the corresponding data content is determined based on the attention offset bit.
[0091] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of the solution in this specification according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0092] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0093] Other embodiments of this specification will readily occur to those skilled in the art upon consideration of the specification and practice of the invention claimed herein. This specification is intended to cover any variations, uses, or adaptations that follow the general principles of this specification and include common knowledge or customary techniques in the art not claimed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this specification are indicated by the following claims.
[0094] It should be understood that this specification is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this specification is limited only by the appended claims.
[0095] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.
Claims
1. A method of implementing a multi-modal network, the method comprising: The method is applied to an NP chip of a routing device, and the method comprises: receiving a forwarding packet, and obtaining a first identifier and a focus offset bit from the forwarding packet; determining a modal type according to the obtained first identifier, and determining corresponding data content according to the focus offset bit; processing the data content according to the modal type. The method further comprises: obtaining the first identifier from a target bit of the forwarding packet; obtaining the modal type according to a matching result of the first identifier and an Ethernet type modal identification table; obtaining the focus offset bit according to a matching result of the modal type and a modal matching field definition table.
2. The method of claim 1, wherein, The forwarding packet is an Ethernet packet type, and the modal type comprises an Ethernet type network modal.
3. The method of claim 1, wherein, The method further comprises: matching the modal and the data content with a modal forwarding table, and forwarding the data content according to a matching result.
4. The method of claim 1, wherein, The forwarding packet is a non-Ethernet packet type, and the method further comprises: performing first modal identification on the first identifier in the forwarding packet by using a field programmable gate array (FPGA), and converting the forwarding packet into an Ethernet packet; performing second modal identification on the Ethernet packet to determine the modal type, and determining the corresponding data content according to the focus offset bit.
5. A routing device, characterized by The routing device comprises an NP chip, and the NP chip comprises: a receiving module configured to receive a forwarding packet, and obtain a first identifier and a focus offset bit from the forwarding packet; a determining module configured to determine a modal type according to the obtained first identifier, and determine corresponding data content according to the focus offset bit; a processing module configured to process the data content according to the modal type. The determining module is specifically configured to: obtain the first identifier from a target bit of the forwarding packet; obtain the modal type according to a matching result of the first identifier and an Ethernet type modal identification table; 6. The routing device of claim 5, wherein, obtain the focus offset bit according to a matching result of the modal type and a modal matching field definition table. The forwarding packet is an Ethernet packet type, and the modal type comprises an Ethernet type network modal.
7. The routing device according to claim 5, wherein:
8. The routing device of claim 5, wherein, the processing module is specifically configured to match the modal and the data content with a modal forwarding table, and forward the data content according to a matching result. The forwarding packet is a non-Ethernet packet type, and the routing device further comprises: a field programmable gate array (FPGA) configured to perform first modal identification on the first identifier in the forwarding packet by using the FPGA, and convert the forwarding packet into an Ethernet packet; send the Ethernet packet to the NP to perform second modal identification to determine the modal type, and determine the corresponding data content according to the focus offset bit.
Citation Information
Patent Citations
Identifier management and optimal forwarding method and device in large-scale multi-mode network
CN115426312A
Scaleable and robust solution for reducing complexity of resource identifier distribution in a large network processor-based system
US20020154648A1