A 10 Gigabit Ethernet frame parsing method, device, storage medium and electronic device

By adopting the 10 Gigabit Ethernet frame parsing method in 10 Gigabit Ethernet and utilizing the collaborative work of the message parsing module and the multi-user read-write arbitration module, repeated parsing is avoided and the problems of hardware resource occupation and system performance consumption are solved. Improved system efficiency.

CN117527934BActive Publication Date: 2024-08-27JIANGSU NEW QUALITY INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311633756.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2024-08-27
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

In 10 Gigabit Ethernet, the amount of information and data increased by the depth of analysis results in a large amount of hardware resources and system performance consumption, and repeated analysis of the next-level module consumes performance.

Method used

The 10 Gigabit Ethernet frame parsing method is used to obtain the input Ethernet frame through the message parsing module, and use the frame counter as the associated address to initiate a storage request to the multi-user read-write arbitration module to avoid repeated parsing and improve system performance.

Benefits of technology

This avoids repeated parsing of frame information by business modules at each level, improves system efficiency, and reduces hardware resource occupation and system performance consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117527934B
    Figure CN117527934B
Patent Text Reader

Abstract

A 10G Ethernet frame parsing method, device, storage medium and electronic device, calling a message parsing module to parse the Ethernet frame to obtain parsing information; using a frame counter as an associated address to initiate a storage request to a multi-user read-write arbitration module; calling a service module to receive the Ethernet frame and associated address of the message parsing module, and sending a read request to the multi-user read-write arbitration module; calling the multi-user read-write arbitration module to select a user read-write channel according to the user priority to receive a read-write request initiated by the user through the message parsing module or the service module; if the read-write request is a storage operation, obtaining the associated address and parsing information transmitted by the user read-write channel, and writing the parsing information into a block random access memory; if the read-write request is a read operation, obtaining the associated address transmitted by the user read-write channel, and obtaining the parsing information stored in the corresponding block random access memory according to the transmitted associated address. The present invention avoids repeated parsing of frame information by each level of service module, thereby improving system efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer network communications, and in particular relates to a 10 Gigabit Ethernet frame parsing method, device, storage medium and electronic equipment. Background Art

[0002] At present, in network equipment, FPGA is often used to process Ethernet frame forwarding, encapsulation, decapsulation, table lookup, and traffic diversion due to its parallel computing advantages and programmable characteristics. The most commonly used one is Ethernet frame parsing.

[0003] At present, in Ethernet with Gigabit bandwidth or below, the parsed information will be sent to the next level module along with the Ethernet frame or re-parsed in the next level module. In the processing of 10 Gigabit Ethernet frames, because 10 Gigabit devices are mostly deployed on backbone networks, the functional requirements are more complex, the parsing depth is increased, and the amount of parsed information data is larger. After this information is sent to the next level module along with the Ethernet frame, it will increase the occupation of hardware resources, and re-parsing at the next level will consume system performance. It is necessary to develop a technical solution for 10 Gigabit Ethernet frame parsing. Summary of the invention

[0004] To this end, the present invention provides a 10 Gigabit Ethernet frame parsing method, device, storage medium and electronic device, which can avoid repeated parsing and improve system performance, and solve the problem of high occupation of hardware resources and high system performance consumption in traditional technologies.

[0005] In order to achieve the above object, the present invention provides the following technical solutions: In a first aspect, a 10 Gigabit Ethernet frame parsing method is provided, comprising:

[0006] Call the message parsing module, obtain the input Ethernet frame, parse the Ethernet frame to obtain parsing information; use the frame counter as the associated address to initiate a storage request to the multi-user read-write arbitration module, the storage request includes the parsing information and the associated address;

[0007] Calling the service module, receiving the Ethernet frame and the associated address from the message parsing module, and sending a read request to the multi-user read-write arbitration module;

[0008] Call the multi-user read-write arbitration module, select the user read-write channel according to the user priority, and use the user read-write channel to receive the read-write request initiated by the user through the message parsing module or the business module; judge the read-write request, a) if the read-write request is a storage operation, obtain the associated address and parsing information transmitted by the user read-write channel, and write the parsing information into the block random access memory; b) if the read-write request is a read operation, obtain the associated address transmitted by the user read-write channel, and obtain the parsing information stored in the corresponding block random access memory according to the transmitted associated address.

[0009] As a preferred solution of the 10 Gigabit Ethernet frame parsing method, the message parsing module initiates a storage request process to the multi-user read-write arbitration module, closes the storage request after obtaining an ACK response from the multi-user read-write arbitration module, and caches the Ethernet frame into a fifo; reads the Ethernet frame from the fifo and sends it to the multi-user read-write arbitration module with the corresponding associated address.

[0010] As a preferred solution of the 10 Gigabit Ethernet frame parsing method, the service module sends a read request process to the multi-user read-write arbitration module, and after receiving an ack response from the multi-user read-write arbitration module, the read parsing information is synchronously latched.

[0011] As a preferred solution of the 10 Gigabit Ethernet frame parsing method, the service module includes several service sub-modules, and the Ethernet frame of the message parsing module is transmitted between the several service sub-modules;

[0012] If the service request in the Ethernet frame contains information to be parsed in the specified service submodule, the service submodule initiates a read request to the multi-user read-write arbitration module, and performs service processing on the parsed information received from the multi-user read-write arbitration module. After the current service submodule performs service processing on the Ethernet frame, it sends the Ethernet frame to the subordinate service submodule.

[0013] As a preferred solution of the 10 Gigabit Ethernet frame parsing method, the multi-user read-write arbitration module writes the parsing information into the block random access memory and sends an ACK response to the corresponding user;

[0014] The multi-user read-write arbitration module obtains the parsing information stored in the corresponding block random access memory according to the transmitted associated address, and replies the parsing information and acks the corresponding user.

[0015] In a second aspect, the present invention provides a 10 Gigabit Ethernet frame parsing device, comprising:

[0016] The message parsing module is used to obtain the input Ethernet frame, parse the Ethernet frame to obtain parsing information; use the frame counter as the associated address to initiate a storage request to the multi-user read-write arbitration module, and the storage request includes the parsing information and the associated address;

[0017] A service module, used for receiving the Ethernet frame and the associated address from the message parsing module, and sending a read request to the multi-user read-write arbitration module;

[0018] A multi-user read / write arbitration module is used to select a user read / write channel according to user priority, and use the user read / write channel to receive a read / write request initiated by the user through the message parsing module or the business module; judge the read / write request, a) if the read / write request is a storage operation, obtain the associated address and parsing information transmitted by the user read / write channel, and write the parsing information into a block random access memory; b) if the read / write request is a read operation, obtain the associated address transmitted by the user read / write channel, and obtain the parsing information stored in the corresponding block random access memory according to the transmitted associated address.

[0019] As a preferred solution for the 10 Gigabit Ethernet frame parsing device, the message parsing module initiates a storage request process to the multi-user read-write arbitration module, closes the storage request after obtaining an ACK response from the multi-user read-write arbitration module, and caches the Ethernet frame into a fifo; the Ethernet frame is read out from the fifo and sent to the multi-user read-write arbitration module with the corresponding associated address.

[0020] As a preferred solution of the 10 Gigabit Ethernet frame parsing device, the service module sends a read request process to the multi-user read-write arbitration module, and after receiving an ack response from the multi-user read-write arbitration module, the read parsing information is synchronously latched.

[0021] As a preferred solution of the 10 Gigabit Ethernet frame parsing device, the service module includes several service sub-modules, and the Ethernet frame of the message parsing module is transmitted between the several service sub-modules;

[0022] If the service request in the Ethernet frame contains information to be parsed in the specified service submodule, the service submodule initiates a read request to the multi-user read-write arbitration module, and performs service processing on the parsed information received from the multi-user read-write arbitration module. After the current service submodule performs service processing on the Ethernet frame, it sends the Ethernet frame to the subordinate service submodule.

[0023] As a preferred solution of the 10 Gigabit Ethernet frame parsing device, the multi-user read-write arbitration module writes the parsing information into the block random access memory and sends an ACK response to the corresponding user;

[0024] The multi-user read-write arbitration module obtains the parsing information stored in the corresponding block random access memory according to the transmitted associated address, and replies the parsing information and acks the corresponding user.

[0025] A third aspect of the present invention provides a non-transitory computer-readable storage medium, in which a program code of a 10 Gigabit Ethernet frame parsing method is stored, and the program code includes instructions for executing the 10 Gigabit Ethernet frame parsing method of the first aspect or any possible implementation thereof.

[0026] The fourth aspect of the present invention provides an electronic device, comprising: a memory and a processor; the processor and the memory communicate with each other via a bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the 10 Gigabit Ethernet frame parsing method of the first aspect or any possible implementation thereof.

[0027] The beneficial effects of the present invention are as follows: calling a message parsing module, obtaining an input Ethernet frame, parsing the Ethernet frame to obtain parsing information; using a frame counter as an associated address to initiate a storage request to a multi-user read-write arbitration module, the storage request includes parsing information and an associated address; calling a service module, receiving the Ethernet frame and associated address of the message parsing module, and sending a read request to the multi-user read-write arbitration module; calling a multi-user read-write arbitration module, selecting a user read-write channel according to user priority, and using the user read-write channel to receive a read-write request initiated by the user through the message parsing module or the service module; judging the read-write request, a) if the read-write request is a storage operation, obtaining the associated address and parsing information transmitted by the user read-write channel, and writing the parsing information into a block random access memory; b) if the read-write request is a read operation, obtaining the associated address transmitted by the user read-write channel, and obtaining the parsing information stored in the corresponding block random access memory according to the transmitted associated address. The present invention avoids repeated parsing of frame information by each level of service module, thereby improving system efficiency; the service module can flexibly obtain parsing information, which is convenient for function implementation. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the drawings required for the implementation methods or the prior art descriptions are briefly introduced below. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0029] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.

[0030] Figure 1 A flow chart of a 10 Gigabit Ethernet frame parsing method provided by an embodiment of the present invention;

[0031] Figure 2A flowchart of the message parsing module processing in the 10 Gigabit Ethernet frame parsing method provided in an embodiment of the present invention;

[0032] Figure 3 A flow chart of service module processing in a 10 Gigabit Ethernet frame parsing method provided in an embodiment of the present invention;

[0033] Figure 4 A processing flow chart of a multi-user read-write arbitration module in a 10 Gigabit Ethernet frame parsing method provided in an embodiment of the present invention;

[0034] Figure 5 A schematic diagram of a 10 Gigabit Ethernet frame parsing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0036] In the following embodiments, the meanings of the English letters are as follows:

[0037] ack: Response mechanism is a commonly used confirmation mechanism in computer network communications. It can ensure reliable data transmission and prevent data loss or duplication. When transmitting data, the sender will wait for the receiver's response and will send the next piece of data only after receiving the ack message.

[0038] fifo: First-in-first-out queue, is a sequential execution method, the first instruction to enter is completed and retired first, and then the second instruction is executed.

[0039] Block RAM: Block random access memory, mainly used to construct data cache memory, deep FIFO and buffer, etc.

[0040] In the processing of 10 Gigabit Ethernet frames, since 10 Gigabit devices are mostly deployed on the backbone network, the functional requirements are more complex, the depth of parsing increases, and the amount of parsed information data is greater. This information is sent to the next level module along with the Ethernet frame, which will increase the occupation of hardware resources. If the next level re-parses it, it will consume system performance. In view of this, an embodiment of the present invention provides a 10 Gigabit Ethernet frame parsing solution, which implements efficient parsing of 10 Gigabit Ethernet frames based on FPGA, adopts modularization and pipeline design concepts as a whole, stores the parsed information, and reserves an interface for the subsequent module to read, so as to avoid repeated parsing and improve system performance. The following is the specific content of the embodiment of the present invention.

[0041] Example 1

[0042] See also Figure 1 , Figure 2 , Figure 3 and Figure 4 Embodiment 1 of the present invention provides a 10 Gigabit Ethernet frame parsing method, comprising the following steps:

[0043] Call the message parsing module, obtain the input Ethernet frame, parse the Ethernet frame to obtain parsing information; use the frame counter as the associated address to initiate a storage request to the multi-user read-write arbitration module, the storage request includes the parsing information and the associated address;

[0044] Calling the service module, receiving the Ethernet frame and the associated address from the message parsing module, and sending a read request to the multi-user read-write arbitration module;

[0045] Call the multi-user read-write arbitration module, select the user read-write channel according to the user priority, and use the user read-write channel to receive the read-write request initiated by the user through the message parsing module or the business module; judge the read-write request, a) if the read-write request is a storage operation, obtain the associated address and parsing information transmitted by the user read-write channel, and write the parsing information into the block random access memory; b) if the read-write request is a read operation, obtain the associated address transmitted by the user read-write channel, and obtain the parsing information stored in the corresponding block random access memory according to the transmitted associated address.

[0046] In this embodiment, the message parsing module initiates a storage request process to the multi-user read-write arbitration module, closes the storage request after receiving an ACK response from the multi-user read-write arbitration module, and caches the Ethernet frame into a fifo; reads the Ethernet frame from the fifo and sends it to the multi-user read-write arbitration module with the corresponding associated address.

[0047] See also Figure 1 and Figure 2 ,Specifically, the message parsing module processing flow is as follows:

[0048] S101: After the FPGA is powered on, it completes the reset and initializes the internal logic state, and then goes to S102;

[0049] S102: The message parsing module receives the Ethernet frame, latches the parsing information, uses the frame counter as the associated address, initiates a storage request to the multi-user read-write arbitration module, and the multi-user read-write arbitration module closes the request after ack response; at the same time, the Ethernet frame is cached into the fifo, and the next step jumps to S103;

[0050] S103: The message parsing module reads the Ethernet frame from the fifo and sends it together with the corresponding associated address to the multi-user read-write arbitration module, and the next step goes to S102.

[0051] In this embodiment, the service module sends a read request to the multi-user read-write arbitration module, and after receiving the ack response from the multi-user read-write arbitration module, the parsed information is synchronously latched. The service module includes several service submodules, and the Ethernet frame of the message parsing module is transmitted between the several service submodules; if the service request in the Ethernet frame has information to be parsed in the specified service submodule, the service submodule initiates a read request to the multi-user read-write arbitration module, and processes the received parsed information of the multi-user read-write arbitration module. After the service submodule processes the Ethernet frame, it sends the Ethernet frame to the subordinate service submodule.

[0052] For details, see Figure 1 and Figure 3 , the business module processing flow is as follows:

[0053] S201: After the FPGA is powered on, it completes the reset and initializes the internal logic state, and then goes to S202;

[0054] S202: The service module receives the Ethernet frame and the associated address, sends a read request (including the associated address) to the multi-user read-write arbitration module (according to the needs of the service module), waits for receiving an ack from the multi-user read-write arbitration module, and synchronously latches the read parsing information;

[0055] S203: The current service submodule processes the service, and finally sends the Ethernet frame to the next-level service submodule, and returns to S202.

[0056] In this embodiment, the multi-user read-write arbitration module writes the parsing information into the block random access memory and sends an ack response to the corresponding user; the multi-user read-write arbitration module obtains the parsing information stored in the corresponding block random access memory according to the transmitted associated address, and sends a parsing information reply and an ack response to the corresponding user.

[0057] For details, see Figure 1 and Figure 4 , the processing flow of the multi-user read-write arbitration module is as follows:

[0058] S001: After the FPGA is powered on, it completes the reset and initializes the internal logic state. The next step is to go to S002;

[0059] S002: The multi-user read / write arbitration module waits for a user read / write request, selects a user read / write channel according to the priority, and goes to S003 if it is a storage operation, and goes to S004 if it is a read operation;

[0060] S003: The multi-user read-write arbitration module reads the associated address and parsing information transmitted by the corresponding user interface through the message parsing module, writes the parsing information into the block random access memory, and replies to the corresponding user ack, and then goes to S002;

[0061] S004: The multi-user read-write arbitration module reads the associated address transmitted by the corresponding user interface through the business module, reads the parsing information stored in the block random access memory corresponding to the associated address, and finally returns the parsing information and ack to the corresponding user, and the next step goes to S002.

[0062] In summary, the embodiment of the present invention obtains the input Ethernet frame by calling the message parsing module, and parses the Ethernet frame to obtain parsing information; uses the frame counter as the associated address to initiate a storage request to the multi-user read-write arbitration module, and the storage request includes the parsing information and the associated address; calls the service module, receives the Ethernet frame and the associated address of the message parsing module, and sends a read request to the multi-user read-write arbitration module; calls the multi-user read-write arbitration module, selects the user read-write channel according to the user priority, and uses the user read-write channel to receive the read-write request initiated by the user through the message parsing module or the service module; judges the read-write request, a) if the read-write request is a storage operation, obtains the associated address and parsing information transmitted by the user read-write channel, and writes the parsing information into the block random access memory; b) if the read-write request is a read operation, obtains the associated address transmitted by the user read-write channel, and obtains the parsing information stored in the corresponding block random access memory according to the transmitted associated address. The present invention avoids repeated parsing of frame information by each level of service module, thereby improving system efficiency; the service module can flexibly obtain parsing information, which is convenient for function implementation.

[0063] In an application scenario of the 10 Gigabit Ethernet frame parsing method of this embodiment, the applied system includes:

[0064] Memory components: FPGA internal block RAM (block random access memory);

[0065] Multi-user read / write arbitration module: implements block RAM read / write control, manages storage interfaces and multiple read interfaces, processes read / write requests with priority, and returns corresponding responses and data;

[0066] Message parsing module: For the input Ethernet frame, parse the frame valid information, and initiate a storage request (including parsing information and associated address) to the multi-user read-write arbitration module after latching. Finally, the Ethernet frame and associated address are sent to the subsequent service module;

[0067] Business module: If the business module needs to parse information, it will initiate a read request (including the associated address). When the message is finally sent out, the associated address will be sent to the next-level business module.

[0068] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.

[0069] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0070] Example 2

[0071] See also Figure 5 Embodiment 2 of the present invention provides a 10 Gigabit Ethernet frame parsing device, comprising:

[0072] The message parsing module 1 is used to obtain an input Ethernet frame, parse the Ethernet frame to obtain parsing information; use the frame counter as an associated address to initiate a storage request to the multi-user read-write arbitration module 3, the storage request includes the parsing information and the associated address;

[0073] The service module 2 is used to receive the Ethernet frame and the associated address from the message parsing module 1, and send a read request to the multi-user read-write arbitration module 3;

[0074] The multi-user read-write arbitration module 3 is used to select a user read-write channel according to user priority, and use the user read-write channel to receive a read-write request initiated by the user through the message parsing module 1 or the business module 2; judge the read-write request, a) if the read-write request is a storage operation, obtain the associated address and parsing information transmitted by the user read-write channel, and write the parsing information into the block random access memory; b) if the read-write request is a read operation, obtain the associated address transmitted by the user read-write channel, and obtain the parsing information stored in the corresponding block random access memory according to the transmitted associated address.

[0075] In this embodiment, the message parsing module 1 initiates a storage request process to the multi-user read-write arbitration module 3, and closes the storage request after obtaining an ACK response from the multi-user read-write arbitration module 3, and caches the Ethernet frame into a fifo; the Ethernet frame is read from the fifo and sent to the multi-user read-write arbitration module 3 with the corresponding associated address.

[0076] In this embodiment, the service module 2 sends a read request to the multi-user read-write arbitration module 3, and after receiving the ack response from the multi-user read-write arbitration module 3, the parsed information read is synchronously latched. The service module 2 includes several service submodules, and the Ethernet frame of the message parsing module is transmitted between the several service submodules; if the service request in the Ethernet frame has information to be parsed in the specified service submodule, the service submodule initiates a read request to the multi-user read-write arbitration module, and processes the received parsed information of the multi-user read-write arbitration module. After the service submodule processes the Ethernet frame, it sends the Ethernet frame to the subordinate service submodule.

[0077] In this embodiment, the multi-user read-write arbitration module 3 writes the parsed information into the block random access memory and sends an ACK response to the corresponding user;

[0078] The multi-user read-write arbitration module 3 obtains the parsing information stored in the corresponding block random access memory according to the transmitted associated address, and replies the parsing information and acks the corresponding user.

[0079] It should be noted that the information interaction, execution process and other contents between the modules of the above-mentioned device are based on the same concept as the method embodiment in Example 1 of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown in the previous part of the present application, and will not be repeated here.

[0080] Example 3

[0081] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, in which the program code of the 10 Gigabit Ethernet frame parsing method is stored, and the program code includes instructions for executing the 10 Gigabit Ethernet frame parsing method of embodiment 1 or any possible implementation thereof.

[0082] The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0083] Example 4

[0084] Embodiment 4 of the present invention provides an electronic device, including: a memory and a processor;

[0085] The processor and the memory communicate with each other via a bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the 10 Gigabit Ethernet frame parsing method of embodiment 1 or any possible implementation thereof.

[0086] Specifically, the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor implemented by reading software codes stored in a memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.

[0087] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.

[0088] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0089] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.

Claims

1. A 10 Gigabit Ethernet frame parsing method, characterized in that: include: Call the message parsing module, obtain the input Ethernet frame, and parse the Ethernet frame to obtain parsing information; Using the frame counter as the associated address to initiate a storage request to the multi-user read-write arbitration module, the storage request includes the parsing information and the associated address; Calling the service module, receiving the Ethernet frame and the associated address from the message parsing module, and sending a read request to the multi-user read-write arbitration module; Call the multi-user read / write arbitration module, select the user read / write channel according to the user priority, use the user read / write channel to receive the read / write request initiated by the user through the message parsing module or the business module; judge the read / write request: a) if the read / write request is a storage operation, obtaining the associated address and parsing information transmitted by the user read / write channel, and writing the parsing information into a block random access memory; b) if the read / write request is a read operation, obtaining the associated address transmitted by the user read / write channel, and obtaining the parsing information stored in the corresponding block random access memory according to the transmitted associated address; The service module sends a read request process to the multi-user read-write arbitration module, and after receiving an ack response from the multi-user read-write arbitration module, synchronously latches the read parsing information; The service module includes a plurality of service sub-modules, and the Ethernet frame of the message parsing module is transmitted between the plurality of service sub-modules; If the service request in the Ethernet frame contains information to be parsed in the specified service submodule, the service submodule initiates a read request to the multi-user read-write arbitration module, and processes the received parsed information service of the multi-user read-write arbitration module. After the current service submodule processes the Ethernet frame, it sends the Ethernet frame to the subordinate service submodule; The multi-user read-write arbitration module writes the parsed information into the block random access memory and sends an ACK response to the corresponding user; The multi-user read-write arbitration module obtains the parsing information stored in the corresponding block random access memory according to the transmitted associated address, and replies the parsing information and acks the corresponding user.

2. A 10 Gigabit Ethernet frame parsing method according to claim 1, characterized in that: The message parsing module initiates a storage request process to the multi-user read-write arbitration module, closes the storage request after receiving an ACK response from the multi-user read-write arbitration module, and caches the Ethernet frame into a fifo; reads the Ethernet frame from the fifo and sends it to the multi-user read-write arbitration module with the corresponding associated address.

3. A 10 Gigabit Ethernet frame parsing device, characterized in that: include: The message parsing module is used to obtain the input Ethernet frame and parse the Ethernet frame to obtain parsing information; Using the frame counter as the associated address to initiate a storage request to the multi-user read-write arbitration module, the storage request includes the parsing information and the associated address; A service module, used for receiving the Ethernet frame and the associated address from the message parsing module, and sending a read request to the multi-user read-write arbitration module; A multi-user read / write arbitration module is used to select a user read / write channel according to user priority, and use the user read / write channel to receive a read / write request initiated by the user through the message parsing module or the business module; judge the read / write request, a) if the read / write request is a storage operation, obtain the associated address and parsing information transmitted by the user read / write channel, and write the parsing information into a block random access memory; b) if the read / write request is a read operation, obtain the associated address transmitted by the user read / write channel, and obtain the parsing information stored in the corresponding block random access memory according to the transmitted associated address; The service module sends a read request process to the multi-user read-write arbitration module, and after receiving an ack response from the multi-user read-write arbitration module, synchronously latches the read parsing information; The service module includes a plurality of service sub-modules, and the Ethernet frame of the message parsing module is transmitted between the plurality of service sub-modules; If the service request in the Ethernet frame contains information to be parsed in the specified service submodule, the service submodule initiates a read request to the multi-user read-write arbitration module, and processes the received parsed information service of the multi-user read-write arbitration module. After the current service submodule processes the Ethernet frame, it sends the Ethernet frame to the subordinate service submodule; The multi-user read-write arbitration module writes the parsed information into the block random access memory and sends an ACK response to the corresponding user; The multi-user read-write arbitration module obtains the parsing information stored in the corresponding block random access memory according to the transmitted associated address, and replies the parsing information and acks the corresponding user.

4. A 10 Gigabit Ethernet frame parsing device according to claim 3, characterized in that: The message parsing module initiates a storage request process to the multi-user read-write arbitration module, closes the storage request after receiving an ACK response from the multi-user read-write arbitration module, and caches the Ethernet frame into a fifo; reads the Ethernet frame from the fifo and sends it to the multi-user read-write arbitration module with the corresponding associated address.

5. A non-transitory computer-readable storage medium storing a program code of a 10 Gigabit Ethernet frame parsing method, characterized in that: The program code includes instructions for executing the 10 Gigabit Ethernet frame parsing method as described in any one of claims 1 to 2.

6. An electronic device comprising: Memory and processor; The processor and the memory communicate with each other via a bus; The memory stores program instructions executable by the processor, wherein the processor calls the program instructions to execute the 10 Gigabit Ethernet frame parsing method described in any one of claims 1 to 2.