An Ethernet message transmission method, a transmission chip, an electronic device, and a medium

By configuring message classification function and dedicated transmission channel in the message transmission chip, the problem of Ethernet message transmission being unable to balance reliability and low cost is solved, realizing efficient and low-cost transmission of high-throughput Ethernet messages.

CN122372492APending Publication Date: 2026-07-10SUZHOU CENTEC COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SUZHOU CENTEC COMM CO LTD
Filing Date
2026-05-07
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

Existing Ethernet packet transmission methods cannot balance reliability and low cost. High-throughput Ethernet transmission suffers from high latency and packet loss, and building a dedicated high-throughput Ethernet network increases cost and complexity.

Method used

The message classification function is configured on the ingress port of the message transmission chip to distinguish between high-throughput and standard Ethernet messages, and to transmit them using dedicated ingress and egress port transmission channels. The same routing table is used to allocate corresponding transmission channels for the two types of messages, thereby realizing dedicated transmission of high-throughput Ethernet messages.

Benefits of technology

It reduces message transmission costs, ensures the transmission efficiency and reliability of high-throughput Ethernet messages, and avoids the complexity and cost of building an additional high-throughput Ethernet network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122372492A_ABST
    Figure CN122372492A_ABST
Patent Text Reader

Abstract

This invention proposes an Ethernet packet transmission method, transmission chip, electronic device, and medium, relating to the field of network technology. The method includes: obtaining the packet type of a packet to be transmitted through an ingress port; the packet type includes high-throughput Ethernet packets and standard Ethernet packets; determining the corresponding ingress port transmission channel for the packet to be transmitted based on the packet type and a pre-configured routing table, and sending the packet to be transmitted to a packet processing component using the ingress port transmission channel; determining the corresponding egress port transmission channel based on the routing table and the packet type; and sending the packet to be transmitted in the packet processing component to the egress port through the corresponding egress port transmission channel. This invention can achieve the transmission of high-throughput Ethernet packets and standard Ethernet packets based on existing packet transmission chips, reducing transmission costs while ensuring packet transmission efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network technology, and more specifically, to an Ethernet packet transmission method, transmission chip, electronic device, and medium. Background Technology

[0002] Ethernet is a widely used local area network (LAN) technology. With the rapid development of network technology, the data volume of Ethernet packets has also exploded. Therefore, high-throughput Ethernet, as an Ethernet technology that supports higher data transmission rates, has emerged. However, the construction and maintenance costs of high-throughput Ethernet are relatively high. Although standard Ethernet is cheaper, it often cannot guarantee reliability when transmitting high-throughput Ethernet packets. Therefore, how to balance the reliability and low cost of Ethernet packet transmission has become an urgent problem to be solved. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to provide an Ethernet packet transmission method, transmission chip, electronic device and medium to solve the problem that the existing Ethernet packet transmission method cannot simultaneously achieve both reliability and low cost.

[0004] To achieve the above objectives, the technical solution adopted by the present invention is as follows: In a first aspect, the present invention provides an Ethernet packet transmission method applied to a packet transmission chip, the packet transmission chip comprising an input port, a packet processing component, and an output port sequentially connected in communication; a plurality of input port transmission channels are provided between the input port and the packet processing component; a plurality of output port transmission channels are provided between the packet processing component and the output port; the method includes: The message type of the message to be transmitted is obtained through the ingress port; the message type includes high-throughput Ethernet messages and standard Ethernet messages. Based on the message type and the pre-configured routing table, the message to be transmitted is determined to be transmitted through the corresponding ingress port channel, and the message to be transmitted is sent to the message processing component using the ingress port channel. Based on the routing table and the message type, determine the output port transmission channel corresponding to the ingress port transmission channel; The message to be transmitted in the message processing component is sent to the output port through the corresponding output port transmission channel.

[0005] In an optional implementation, the step of obtaining the message type of the message to be transmitted through the ingress port includes: Obtain the start-of-frame delimiter from the Ethernet preamble corresponding to the message to be transmitted; If the start-of-frame delimiter is of type 1, then the message to be transmitted is determined to be a high-throughput Ethernet message. If the start-of-frame delimiter is of type 2, then the message to be transmitted is determined to be a standard Ethernet message.

[0006] In an optional implementation, the routing table includes a channel port mapping table and a data source port table. After determining the transmission channel of the packet to be transmitted through the corresponding ingress port based on the packet type and the pre-configured routing table, the method includes: The system queries the channel port mapping table to find the physical transmission channel flag corresponding to the ingress port transmission channel, and queries the data source port table to find and load the physical transmission channel processing attributes corresponding to the ingress port transmission channel.

[0007] In an optional implementation, the step of determining the output port transmission channel corresponding to the ingress port transmission channel based on the routing table and the message type includes: Based on the routing table and the message type, determine the output port number corresponding to the ingress port transmission channel; The output port number is traversed to determine the output port transmission channel corresponding to the output port; The target output port transmission channel corresponding to the input port transmission channel is determined from the output port transmission channels based on the physical transmission channel flag.

[0008] In an optional implementation, the step of sending the message to be transmitted in the message processing component to the output port through the corresponding output port transmission channel includes: Based on the physical transmission channel flag corresponding to the high-throughput Ethernet packet, control the high-throughput Ethernet packet to skip the packet verification step configured by the packet processing component; The high-throughput Ethernet packets received by the message processing component are sent to the output port using the output port transmission channel.

[0009] In an optional implementation, the step of sending the message to be transmitted in the message processing component to the output port through the corresponding output port transmission channel further includes: Based on the physical transmission channel flag corresponding to the standard Ethernet packet, the packet processing component is controlled to perform a packet verification step on the standard Ethernet packet. After the message verification step is passed, the message processing component is controlled to send the standard Ethernet message to the corresponding output port through the corresponding output port transmission channel.

[0010] In an optional implementation, after the step of sending the message to be transmitted in the message processing component to the output port through the corresponding output port transmission channel, the method further includes: If the message to be transmitted is a high-throughput Ethernet message, then the message fields of the high-throughput Ethernet message are updated using the output port, and the updated high-throughput Ethernet message is forwarded. If the message to be transmitted is a standard Ethernet message, then the standard Ethernet message is forwarded using the output port.

[0011] Secondly, the present invention provides a message transmission chip, the message transmission chip comprising an input port, a message processing component, and an output port that are sequentially and communicatively connected, the input port being provided with multiple input port transmission channels, the output port being provided with multiple output port transmission channels, and the message transmission chip comprising: The message classification module is used to obtain the message type of the message to be transmitted through the ingress port; the message type includes high-throughput Ethernet messages and standard Ethernet messages; The message ingress module is used to determine, based on the message type and a pre-configured routing table, the corresponding ingress port transmission channel through which the message to be transmitted will be sent to the message processing component using the ingress port transmission channel. The message transmission module is used to determine the output port transmission channel corresponding to the ingress port transmission channel based on the routing table and the message type. The message forwarding module is used to send the message to be transmitted in the message processing component to the output port through the corresponding output port transmission channel.

[0012] Thirdly, the present invention provides an electronic device including a processor and a memory, the memory storing machine-executable instructions executable by the processor, the processor executing the machine-executable instructions to implement the Ethernet packet transmission method described in the first aspect.

[0013] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the Ethernet packet transmission method described in the first aspect.

[0014] This invention provides an Ethernet packet transmission method, transmission chip, electronic device, and medium. By configuring packet classification functionality at the ingress port of the packet transmission chip, high-throughput Ethernet packets and standard Ethernet packets are separated. Then, the same routing table is used to allocate corresponding transmission channels for high-throughput Ethernet packets and standard Ethernet packets respectively for packet transmission. This allows the transmission of both high-throughput Ethernet packets and standard Ethernet packets using existing packet transmission chips, eliminating the need to build an additional high-throughput Ethernet packet transmission network and reducing packet transmission costs. Furthermore, the dedicated transmission channels ensure the transmission efficiency of high-throughput Ethernet packets.

[0015] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A block diagram of an electronic device provided by an embodiment of the present invention is shown; Figure 2 A block diagram of a message transmission chip provided in an embodiment of the present invention is shown; Figure 3 A flowchart illustrating an Ethernet packet transmission method provided by an embodiment of the present invention is shown. Figure 4 This diagram illustrates the standard Ethernet packet format provided in an embodiment of the present invention. Figure 5 This diagram illustrates a high-throughput Ethernet packet format provided in an embodiment of the present invention. Figure 6 A schematic diagram illustrating the principle of an Ethernet packet transmission method provided by an embodiment of the present invention is shown; Figure 7 A functional block diagram of a message transmission chip provided in an embodiment of the present invention is shown.

[0018] icon: 100 - Electronic device; 110 - Memory; 120 - Processor; 130 - Communication module; 200 - Message transmission chip; 210 - Input port; 220 - Message processing component; 230 - Output port; 710 - Message classification module; 720 - Message input module; 730 - Message output module; 740 - Message forwarding module. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0020] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0021] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0022] Existing Ethernet packet transmission networks are typically built using standard Ethernet chips and usually have only one main packet transmission path. All packets need to be queued and transmitted on this path. When the packet traffic is large, it will lead to problems such as high packet transmission latency and high packet loss rate, which is unacceptable, especially for high-throughput Ethernet packets.

[0023] If a dedicated high-throughput Ethernet packet transmission network is to be built, not only will the standard Ethernet transmission chip need to be replaced, but it will also be incompatible with the existing standard Ethernet transmission network. At the same time, using two sets of packet transmission networks will increase the complexity and cost of the packet transmission process.

[0024] To solve the above-mentioned technical problems, the following technical solution is adopted in this embodiment.

[0025] Please refer to Figure 1 , Figure 1 This is a block diagram of an electronic device 100 provided in this embodiment. The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, processor 120, and communication module 130 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0026] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0027] The processor 120 is used to read / write data or programs stored in the memory 110 and to perform corresponding functions.

[0028] The communication module 130 is used to establish a communication connection between the electronic device 100 and other communication terminals through the network, and to send and receive data through the network.

[0029] It should be understood that, Figure 1 The structure shown is only a schematic diagram of the electronic device 100. The electronic device 100 may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown. Figure 1 The components shown can be implemented using hardware, software, or a combination thereof.

[0030] Please refer to Figure 2 , Figure 2 This is a block diagram of a message transmission chip provided in this embodiment.

[0031] The message transmission chip 200 includes an ingress port 210, a message processing component 220, and an egress port 230 that are connected in sequence. Multiple ingress port transmission channels are provided between the ingress port 210 and the message processing component 220, and multiple egress port transmission channels are provided between the message processing component 220 and the egress port 230.

[0032] Please refer to Figure 3 , Figure 3 This is a flowchart illustrating an Ethernet packet transmission method provided in this embodiment, applied to... Figure 2 The method, as shown in the message transmission chip, includes: S310. Obtain the message type of the message to be transmitted through the ingress port; the message type includes high-throughput Ethernet messages and standard Ethernet messages.

[0033] The ingress port of the message transmission chip is mainly used to receive messages to be transmitted from other devices or components, such as heartbeat packets, routing information exchange, fault negotiation information and other related messages between servers, as well as data blocks and other related messages transmitted between GPUs. Among them, the traffic of messages between servers is usually very large, so they are usually transmitted as standard Ethernet messages, while the traffic of messages between GPUs is usually small and usually requires nanosecond-level response, so they are usually transmitted as high-throughput Ethernet messages.

[0034] In order to utilize the existing message transmission network to simultaneously transmit high-throughput Ethernet messages and standard Ethernet messages, a message classification and identification function is first configured at the ingress port of the message transmission chip to distinguish whether the message received by the message transmission chip belongs to high-throughput Ethernet messages or standard Ethernet messages.

[0035] Meanwhile, multiple ingress transmission channels are set between the ingress port and the message processing component, and multiple egress transmission channels are set between the message processing component and the egress port. The number of ingress transmission channels and egress transmission channels is at least two, which are used to transmit high-throughput Ethernet messages and standard Ethernet messages, respectively.

[0036] S320. Based on the message type and the pre-configured routing table, determine the message to be transmitted through the corresponding ingress port transmission channel, and use the ingress port transmission channel to send the message to be transmitted to the message processing component.

[0037] After determining the message type of the message to be transmitted, the corresponding ingress port transmission channel can be selected for message transmission. For example, after determining that the message to be transmitted is a high-throughput Ethernet message, the ingress port transmission channel corresponding to the high-throughput Ethernet message can be queried from the pre-configured routing table. This ingress port transmission channel can be defined as a high-throughput ingress port transmission channel, and then the high-throughput Ethernet message can be transmitted to the message processing component using the high-throughput ingress port transmission channel.

[0038] Similarly, after determining that the message to be transmitted is a standard Ethernet message, the ingress port transmission channel corresponding to the standard Ethernet message can be queried from the pre-configured routing table. This ingress port transmission channel can be defined as a standard ingress port transmission channel, and then the standard Ethernet message can be transmitted to the message processing component using the standard ingress port transmission channel.

[0039] To improve the transmission priority of high-throughput Ethernet packets, corresponding high-throughput Ethernet packet queues and standard Ethernet packet queues can be set in the packet waiting queue of the ingress port. When there are packets in the high-throughput Ethernet packet queue, the packets in the high-throughput Ethernet packet queue are forwarded first. When there are no packets in the high-throughput Ethernet packet queue, the packets in the standard Ethernet packet queue are forwarded.

[0040] S330. Based on the routing table and the message type, determine the output port transmission channel corresponding to the ingress port transmission channel.

[0041] In addition to configuring a dedicated ingress port transmission channel for high-throughput Ethernet packets, a dedicated egress port transmission channel also needs to be configured to ensure that high-throughput Ethernet packets and standard Ethernet packets do not interfere with each other when sharing the same packet transmission chip.

[0042] Similarly, a dedicated outgoing port transmission channel needs to be configured for standard Ethernet packets. This can be achieved by pre-configuring the corresponding outgoing port transmission channel for standard Ethernet packets in the routing table. Since this embodiment is an improvement on a standard Ethernet packet transmission network, the transmission channel corresponding to the standard Ethernet packet can also be set as the default channel. When it is determined that the packet to be transmitted does not belong to high-throughput Ethernet packets, the default channel is used for transmission.

[0043] S340. The message to be transmitted in the message processing component is sent to the output port through the corresponding output port transmission channel.

[0044] Once the corresponding output port transmission channel for a high-throughput Ethernet packet is determined, the high-throughput Ethernet packet can be sent to the output port through that channel. This ensures that both incoming and outgoing high-throughput Ethernet packets use dedicated transmission channels, eliminating the need to share a channel with standard Ethernet packets. Similarly, standard Ethernet packets also utilize dedicated channels for transmission, achieving isolation between high-throughput Ethernet packets and standard Ethernet packets.

[0045] This embodiment configures a packet classification function at the ingress port of the packet transmission chip to separate high-throughput Ethernet packets from standard Ethernet packets. Then, it uses the same routing table to allocate corresponding transmission channels for high-throughput Ethernet packets and standard Ethernet packets respectively for packet transmission. This allows the transmission of both high-throughput Ethernet packets and standard Ethernet packets using existing packet transmission chips without the need to build an additional high-throughput Ethernet packet transmission network, thus reducing packet transmission costs. At the same time, it ensures the transmission efficiency of high-throughput Ethernet packets by using dedicated transmission channels.

[0046] In one implementation, the step of obtaining the message type of the message to be transmitted through the ingress port includes: Obtain the start-of-frame delimiter from the Ethernet preamble corresponding to the message to be transmitted; If the start-of-frame delimiter is of type 1, then the message to be transmitted is determined to be a high-throughput Ethernet message. If the start-of-frame delimiter is of type 2, then the message to be transmitted is determined to be a standard Ethernet message.

[0047] Please refer to Figure 4 , Figure 4 This is a schematic diagram of the standard Ethernet packet format provided in this embodiment.

[0048] Please refer to Figure 5 , Figure 5 This is a schematic diagram of the high-throughput Ethernet packet format provided in this embodiment.

[0049] like Figure 4 and Figure 5 As shown, the Start of Frame Delimiter (SFD) in the preamble of a standard Ethernet packet is 8. , b10101011, the Start of Frame Delimiter (SFD) in the preamble of a high-throughput Ethernet packet is 8. , b10100011. Therefore, high-throughput Ethernet packets and standard Ethernet packets can be distinguished based on the start-of-frame delimiter (SFD) in the preamble of the packet to be transmitted.

[0050] In addition, high-throughput Ethernet packets remove two header layers compared to standard Ethernet packets, such as... Figure 4and Figure 5 As shown, high-throughput Ethernet packets, compared to standard Ethernet packets, have removed the MAC DA / SA and VLAN Tag headers. Therefore, this characteristic can also be used to distinguish between high-throughput Ethernet packets and standard Ethernet packets.

[0051] Please refer to Figure 6 , Figure 6 This is a schematic diagram illustrating the principle of an Ethernet packet transmission method provided in this embodiment.

[0052] like Figure 6 As shown, the ingress port 5 of the message transmission chip is equipped with a network receiving component for receiving various messages. The network receiving component has an embedded identification module, which has the function of identifying or distinguishing the start-of-frame delimiter (SFD) in the preamble of the message. It can distinguish the message before the message enters the message transmission chip, dividing the received message into high-throughput Ethernet message Eth+ and standard Ethernet message Eth, thereby providing a data basis for the physical isolation of high-throughput Ethernet message and standard Ethernet message in the message transmission chip.

[0053] In one implementation, the routing table includes a channel port mapping table and a data source port table. After determining the transmission channel of the packet to be transmitted through the corresponding ingress port based on the packet type and the pre-configured routing table, the method includes: The system queries the channel port mapping table to find the physical transmission channel flag corresponding to the ingress port transmission channel, and queries the data source port table to find and load the physical transmission channel processing attributes corresponding to the ingress port transmission channel.

[0054] like Figure 6 As shown, ingress port 5 corresponds to two physical channels, chan10 and chan11. The channel numbers correspond to the ingress port numbers: the physical channel chan number for a high-throughput Ethernet packet (Eth+) = ingress port number × 2 = chan10; the physical channel chan number for a standard Ethernet packet (Eth) = ingress port number × 2 + 1 = chan11. Chan10 and chan11 are two independent hardware signal paths within the chip; chan10 can be considered the high-throughput channel of port 5, and chan11 can be considered the standard channel of port 5.

[0055] Then, the ingress port transmission channel is configured in the channel port mapping table DsChanPort and the data source port table DsSrcPort. DsChanPort includes three main attribute fields {ethplusEn, localPort, fastPath}. ethplusEn indicates that the Eth+ function is enabled on this physical channel. By default, the channel corresponding to Eth+ packets is set to 1, and the channel corresponding to ETH packets is set to 0. localPort corresponds to the physical port number used. fastPath indicates whether fast path is enabled on this channel. When enabled, the IPE and EPE processing will be skipped to reduce chip processing time. By default, the channel corresponding to Eth+ packets is set to 1, and the channel corresponding to ETH packets is set to 0.

[0056] For example: DsChanPort

[10] .localPort = 5, which means that the channel belongs to physical port 5; DsChanPort

[10] .ethplusEn = 1, indicating that this is a high-throughput channel; DsChanPort

[10] .fastPath = 1 indicates that intermediate processing is allowed to be skipped.

[0057] The DsSrcPort table contains five important attribute fields: {receiveEn, routeEn, vrfId, bridgeEn}. Among them, vrfId is only valid for the channel corresponding to Eth+ packets, indicating the vrfId mapped to the Eth+ packet. routeEn and bridgeEn are only valid for the channel corresponding to Eth packets and are used for the processing of standard Ethernet subsequent Layer 2, Layer 3, tunnel packets, and other packets.

[0058] In one implementation, the message processing component includes an ingress processing component, a traffic management component, and an egress processing component.

[0059] enter Figure 6 As shown, the ingress processing component, traffic management component, and egress processing component communicate with each other. After a packet enters the ingress processing component, it first extracts the source IP, destination IP, protocol type, etc., to generate key information such as destination IP address IPDA and source IP address IPA.

[0060] Then the entry processing component looks up the DsSrcPort table, the index key is localPort = 5, that is, DsSrcPort[5]. DsSrcPort[5] contains two sets of configurations, because Chan10 and Chan11 share the same localPort.

[0061] If the message comes from Chan10, only the receiveEn and vrfId fields are read; if the message comes from Chan11, the entire set of fields, including receiveEn, routeEn, bridgeEn, and vrfId, are read.

[0062] If receiveEn = 0, it means that the channel is prohibited from receiving packets, and the packets will be dropped directly; if ethplusEn = 1, the high-throughput packet Eth+ transmission channel will be used; if ethplusEn = 0, the standard packet Eth transmission channel will be used.

[0063] In one implementation, the step of determining the outgoing port transmission channel corresponding to the ingoing port transmission channel based on the routing table and the message type includes: Based on the routing table and the message type, determine the output port number corresponding to the ingress port transmission channel; The output port number is traversed to determine the output port transmission channel corresponding to the output port; The target output port transmission channel corresponding to the input port transmission channel is determined from the output port transmission channels based on the physical transmission channel flag.

[0064] Once it is determined that the message is a high-throughput Ethernet message, the information forwarding table FIB is directly queried through the IPDA and vrfid in the configuration table to obtain the forwarding result destport = 20, that is, the outgoing port number is port20. Then, according to destport = 20, the dsChanGroup

[20] table is queried to obtain the outgoing port transmission channels chan40 and chan41 corresponding to port20. Since the high-throughput Ethernet corresponds to ethplusEn = 1, dsChanGroup

[20] .chan0 = 40, that is, chan40, is selected as the target outgoing port transmission channel.

[0065] Similarly, after determining that the message is a standard Ethernet message, the information forwarding table FIB is directly queried through the IPDA and vrfid in the configuration table to obtain the forwarding result destport = 20, that is, the outgoing port number is port20. Then, according to destport = 20, the dsChanGroup

[20] table is queried to obtain the outgoing port transmission channels chan40 and chan41 corresponding to port20. Since the standard Ethernet corresponds to ethplusEn = 0, dsChanGroup

[20] .chan1 = 41, that is, chan41, is selected as the target outgoing port transmission channel.

[0066] This embodiment determines the outgoing port transmission channel for a packet based on the routing table and the packet type, thereby binding the ingoing port transmission channel and the outgoing port transmission channel of the packet, avoiding the mixing of transmission channels for high-throughput Ethernet packets and standard Ethernet packets, and ensuring physical isolation between packets.

[0067] In one embodiment, the step of sending the message to be transmitted in the message processing component to the output port through the corresponding output port transmission channel includes: Based on the physical transmission channel flag corresponding to the high-throughput Ethernet packet, control the high-throughput Ethernet packet to skip the packet verification step configured by the packet processing component; The high-throughput Ethernet packets received by the message processing component are sent to the output port using the output port transmission channel.

[0068] like Figure 6 As shown, after high-throughput Ethernet packets enter the ingress processing component, they skip intermediate modules such as security policy checks, internal mapping table lookups, MAC address learning, and access control lists. They directly query the information forwarding table FIB through the IPDA and VRFID in the configuration table to obtain the outgoing port transmission channel. Then, they enter the traffic management component and queue in the chan40 queue. After dequeuing, they do not enter the egress processing component but are directly sent to the network forwarding component.

[0069] In one embodiment, the step of sending the message to be transmitted in the message processing component to the output port through the corresponding output port transmission channel further includes: Based on the physical transmission channel flag corresponding to the standard Ethernet packet, the packet processing component is controlled to perform a packet verification step on the standard Ethernet packet. After the message verification step is passed, the message processing component is controlled to send the standard Ethernet message to the corresponding output port through the corresponding output port transmission channel.

[0070] After a standard Ethernet packet enters the ingress processing component, it first undergoes a security policy check, then queries the internal mapping table to obtain the vrfId. The vrfId of a standard Ethernet packet can be set to the same value of 5 as that of a high-throughput packet, enabling routing table sharing. Next, the route is queried through the forwarding information table, again yielding destport = 20. Then, the MAC address, access control, and forwarding decisions are queried, again resulting in destport = 20.

[0071] Then query the dsChanGroup

[20] table. Since the ethplusEn of the standard Ethernet packet is 0, dsChanGroup

[20] .chan1 = 41 is selected as the outgoing port channel, that is, chan41 is the outgoing port channel. After the packet enters the traffic management component, it queues in the Chan41 queue. After dequeuing, it enters the egress processing component. After security policy check, it enters the packet update instruction acquisition module. It queries the DsNexthop table through the dsNextptr of the Eth packet to obtain the next hop MAC, TTL decrement instruction, etc. Then it enters the packet update module to complete the addition of the Layer 2 header, update the TTL, recalculate the IP check and packet check, etc. Finally, it enters the access control list module to perform the egress policy check. After completion, it is sent to the network forwarding component.

[0072] In one embodiment, after the step of sending the message to be transmitted in the message processing component to the corresponding output port transmission channel, the method further includes: If the message to be transmitted is a high-throughput Ethernet message, then the message fields of the high-throughput Ethernet message are updated using the output port, and the updated high-throughput Ethernet message is forwarded. If the message to be transmitted is a standard Ethernet message, then the standard Ethernet message is forwarded using the output port.

[0073] Because high-throughput Ethernet packets skip the ingress and egress processing components, operations that would normally be required to update packet fields, such as decrementing the IP packet TTL and updating the IP packet header information, must be performed at the egress port before normal forwarding can proceed.

[0074] To perform the corresponding steps in the above embodiments and various possible methods, an implementation of a message transmission chip is given below. Please refer to [link / reference]. Figure 7 , Figure 7 This is a functional block diagram of a message transmission chip provided in an embodiment of the present invention. It should be noted that the message transmission chip provided in this embodiment has the same basic principle and technical effects as those in the above embodiments. For the sake of brevity, any parts not mentioned in this embodiment can be referred to the corresponding content in the above embodiments. The message transmission chip 200 includes: The message transmission chip 200 includes an ingress port, a message processing component, and an egress port that are sequentially connected for communication. The ingress port has multiple ingress port transmission channels, and the egress port has multiple egress port transmission channels. The message transmission chip 200 also includes: The message classification module 710 is used to obtain the message type of the message to be transmitted through the ingress port; the message type includes high-throughput Ethernet messages and standard Ethernet messages; The message input module 720 is used to determine, according to the message type and the pre-configured routing table, the message to be transmitted through the corresponding ingress port transmission channel, and to send the message to be transmitted to the message processing component using the ingress port transmission channel; The message transmission module 730 is used to determine the output port transmission channel corresponding to the ingress port transmission channel based on the routing table and the message type. The message forwarding module 740 is used to send the message to be transmitted in the message processing component to the output port through the corresponding output port transmission channel.

[0075] Optionally, the above modules can be stored in the form of software or firmware. Figure 1 The memory shown is either stored in or embedded in the operating system (OS) of the message transmission chip, and can be used by... Figure 1 The processor executes the commands. Meanwhile, the data and program code required to execute these modules can be stored in memory.

[0076] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0077] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0078] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0079] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. An Ethernet message transmission method, characterized by, An application is made to a message transmission chip, the message transmission chip including an ingress port, a message processing component, and an egress port that are sequentially communicated with each other. Multiple ingress port transmission channels are provided between the ingress port and the message processing component, and multiple egress port transmission channels are provided between the message processing component and the egress port. The method includes: The message type of the message to be transmitted is obtained through the ingress port; the message type includes high-throughput Ethernet messages and standard Ethernet messages. Based on the message type and the pre-configured routing table, the message to be transmitted is determined to be transmitted through the corresponding ingress port channel, and the message to be transmitted is sent to the message processing component using the ingress port channel. Based on the routing table and the message type, determine the output port transmission channel corresponding to the ingress port transmission channel; The message to be transmitted in the message processing component is sent to the output port through the corresponding output port transmission channel.

2. The Ethernet packet transmission method according to claim 1, characterized in that, The step of obtaining the message type of the message to be transmitted through the ingress port includes: Obtain the start-of-frame delimiter from the Ethernet preamble corresponding to the message to be transmitted; If the start-of-frame delimiter is of type 1, then the message to be transmitted is determined to be a high-throughput Ethernet message. If the start-of-frame delimiter is of type 2, then the message to be transmitted is determined to be a standard Ethernet message.

3. The Ethernet packet transmission method according to claim 1, characterized in that, The routing table includes a channel port mapping table and a data source port table. After determining the transmission channel of the packet to be transmitted through the corresponding ingress port based on the packet type and the pre-configured routing table, the method includes: The system queries the channel port mapping table to find the physical transmission channel flag corresponding to the ingress port transmission channel, and queries the data source port table to find and load the physical transmission channel processing attributes corresponding to the ingress port transmission channel.

4. The Ethernet packet transmission method according to claim 3, characterized in that, The step of determining the output port transmission channel corresponding to the ingress port transmission channel based on the routing table and the message type includes: Based on the routing table and the message type, determine the output port number corresponding to the ingress port transmission channel; The output port number is traversed to determine the output port transmission channel corresponding to the output port; The target output port transmission channel corresponding to the input port transmission channel is determined from the output port transmission channels based on the physical transmission channel flag.

5. The Ethernet packet transmission method according to claim 4, characterized in that, The step of sending the message to be transmitted in the message processing component to the output port through the corresponding output port transmission channel includes: Based on the physical transmission channel flag corresponding to the high-throughput Ethernet packet, control the high-throughput Ethernet packet to skip the packet verification step configured by the packet processing component; The high-throughput Ethernet packets received by the message processing component are sent to the output port using the output port transmission channel.

6. The Ethernet packet transmission method according to claim 4, characterized in that, The step of sending the message to be transmitted in the message processing component to the output port through the corresponding output port transmission channel further includes: Based on the physical transmission channel flag corresponding to the standard Ethernet packet, the packet processing component is controlled to perform a packet verification step on the standard Ethernet packet. After the message verification step is passed, the message processing component is controlled to send the standard Ethernet message to the corresponding output port through the corresponding output port transmission channel.

7. The Ethernet packet transmission method according to claim 1, characterized in that, After the step of sending the message to be transmitted in the message processing component to the output port through the corresponding output port transmission channel, the method further includes: If the message to be transmitted is a high-throughput Ethernet message, then the message fields of the high-throughput Ethernet message are updated using the output port, and the updated high-throughput Ethernet message is forwarded. If the message to be transmitted is a standard Ethernet message, then the standard Ethernet message is forwarded using the output port.

8. A message transmission chip, characterized in that, The message transmission chip includes an ingress port, a message processing component, and an egress port that are sequentially connected in communication. The ingress port is provided with multiple ingress port transmission channels, and the egress port is provided with multiple egress port transmission channels. The message transmission chip includes: The message classification module is used to obtain the message type of the message to be transmitted through the ingress port; the message type includes high-throughput Ethernet messages and standard Ethernet messages; The message ingress module is used to determine, based on the message type and a pre-configured routing table, the corresponding ingress port transmission channel through which the message to be transmitted will be sent to the message processing component using the ingress port transmission channel. The message transmission module is used to determine the output port transmission channel corresponding to the ingress port transmission channel based on the routing table and the message type. The message forwarding module is used to send the message to be transmitted in the message processing component to the output port through the corresponding output port transmission channel.

9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the Ethernet packet transmission method according to any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the Ethernet packet transmission method as described in any one of claims 1-7.