Protocol analyzer system for FC and Ethernet
By designing a protocol analyzer system for FC and Ethernet, the problem of insufficient design of Fibre Channel protocol analysis equipment in the prior art is solved, multi-protocol analysis and high-speed transmission are realized, and system processing speed and user experience are improved.
Patent Information
- Application Number
- CN202310591168.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-24
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2043-05-24
AI Technical Summary
The existing technology is in the leading country in the design of fiber channel protocol analysis equipment. There is a lack of protocol analyzers in China that support multiple protocols, making it difficult to meet the needs of high-performance networked storage and avionics fields.
A protocol analyzer system for FC and Ethernet was designed, including upper-layer management module, intermediate-layer management module and logic module. Data transmission and status monitoring are realized through PCIe interaction, supporting multi-mode data acquisition and analysis, and flexible Storage and display functions.
It realizes multi-protocol analysis capabilities, supports high-speed transmission of FC and Ethernet, and has flexible data acquisition and analysis modes, which improves system processing speed and user experience.
Smart Images

Figure CN119030905A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of network technology and FPGA technology, and in particular relates to a protocol analyzer system for FC and Ethernet. Background Art
[0002] As the global information process accelerates, massive amounts of data and information permeate every aspect of daily life and work. In modern high-speed networks, both intensive data transmission and high-speed computing and storage place higher demands on network performance. As the basic rules and bridge for data information interaction, network protocols play a vital role in ensuring reliable data transmission.
[0003] Commonly used network protocols, in addition to the most widely used Ethernet protocol, the Fibre Channel (FC) protocol has the characteristics of high reliability, strong real-time performance, good manageability, strong scalability, high transmission bandwidth, low transmission delay, and long transmission distance. At the same time, it has a flexible topology structure and is very suitable for high-performance network storage and avionics. Ethernet protocol and FC protocol are complete protocol standards and protocol specifications with clear logical structure. As the network transmission rate continues to increase, the complexity of the protocol is getting higher and higher. How to effectively verify the interoperability and protocol compliance of network equipment has become a problem that needs to be solved. At this time, the protocol analyzer plays an important role. On the one hand, it can capture the data flow in the network link, perform protocol analysis on the data message, and realize the analysis and location of network faults; on the other hand, it can also act as an end node in the network, send data messages according to relevant protocol standards, perform performance tests on the network equipment under development, and improve the efficiency of equipment research and development.
[0004] Although China has made some progress in the development of protocol analyzers, foreign countries are still in the lead, especially in the design and research of fiber channel protocol analysis equipment, the market is monopolized by foreign companies such as JDSU and Agilent. In addition, the network architecture of large data storage centers or avionics fields is basically a hybrid type, consisting of several different networks, and analyzers that support multiple protocols at the same time have certain practical significance. Therefore, it is necessary to further study the technical solutions of protocol analyzers. Summary of the invention
[0005] The present invention provides a protocol analyzer system for FC and Ethernet to solve the above-mentioned technical problems, and specifically adopts the following technical solutions:
[0006] A protocol analyzer system for FC and Ethernet, comprising: an analyzer upper layer management module, an analyzer middle layer management module and an analyzer logic module;
[0007] The analyzer upper management module is set in the PC and is used by the user to control and monitor the protocol analyzer system for FC and Ethernet and analyze the analysis port data;
[0008] The analyzer middle-layer management module is arranged in the board CPU, and is used to parse the command message of the analyzer upper-layer management module and control or send data to the analyzer logic module through PCIe, obtain and process the data captured by the analyzer logic module, transmit it to the analyzer upper-layer management module for parsing, and obtain the relevant status of the analyzer logic module and feed it back to the analyzer upper-layer management module;
[0009] The analyzer logic module is arranged in the board FPGA module and is used for analyzing port data capture, test port data transmission, data storage, and monitoring of system-related status;
[0010] The upper management modules of the analyzer communicate with the middle management modules of the analyzer via Ethernet, and the middle management modules of the analyzer communicate with the logic modules of the analyzer via PCIe to realize register reading and writing and data transmission.
[0011] Further, the analyzer upper management module includes a command building unit, a first network interaction unit and a data parsing unit;
[0012] The command building unit is used to build a command based on the command type and command parameters specified by the user through the interface;
[0013] The first network interaction unit encapsulates the assembled command into a fixed network message format, issues the command message, and simultaneously receives the command response message and data message uploaded by the middle layer management module of the analyzer, and feeds back the command execution status and the obtained data to the user;
[0014] The data parsing unit is used to write the received complete data message into a file in pcapng format and parse it.
[0015] Further, the network message using the first network interaction unit has a fixed custom format, including a network header, a request / response header, data content and a network footer, and the communicating parties extract the message according to the format;
[0016] The first network interaction unit transmits via the TCP protocol, the receiving end needs to perform a packetization operation, the memory pool management can use memory blocks in a disorderly order, the received information is packetized to obtain a complete message, and the message can also be sent efficiently;
[0017] Command messages interact asynchronously through the "request-response" mode, and data messages interact synchronously. The asynchronous process of command interaction is synchronized through signal pool management.
[0018] Furthermore, the first network interaction unit constructs a signal pool in the form of multi-linked list management; the first network interaction unit constructs four memory pools of data sending, data receiving, command sending, and command receiving in the form of multi-linked list management.
[0019] Further, the analyzer middle layer management module includes a second network interaction unit, a PCIe interaction unit and a data processing unit;
[0020] The second network interaction unit is used to receive and parse the command message of the upper management module of the analyzer, and send data messages and command response messages;
[0021] The PCIe interaction unit controls the command message of the analyzer upper management module parsed by the analyzer middle management module by writing it into the register of the analyzer logic module or reads the register of the analyzer logic module to obtain the required state, thereby realizing data interaction;
[0022] The data processing unit uses a circular FIFO to manage the reception and time sort the captured network frames of different analysis ports. The data processing unit includes a total reception FIFO and a sorting FIFO corresponding to each analysis port. The analyzer middle layer management module sends the total reception FIFO through the PCIe interaction unit, and after obtaining the data, it is transferred to each sorting FIFO for sorting.
[0023] Further, the PCIe interaction unit supports PCIe mounting, obtains the bus number, driver number and device number through the hardware ID, obtains the configuration space and register base address according to the bus number, driver number and device number, obtains the MSI interrupt and mounts;
[0024] The PCIe interaction unit uses pipeline mode DMA operation to transfer data between software and hardware. The analyzer middle layer management module stores instructions in a certain format in the DMA ring. The analyzer logic module reads corresponding instructions from the DDR of the analyzer middle layer management module for processing as needed.
[0025] Furthermore, the DMA ring includes a DMA command ring and a DMA completion ring. The DMA command ring includes a read command ring and a write command ring, which are respectively used to send DMA read commands and write commands. The DMA completion ring is used to receive the completion status of the DMA command ring.
[0026] Further, the analyzer logic module includes a network analysis unit, a network testing unit and a status setting and monitoring unit;
[0027] The network analysis unit is used for data capture, data encapsulation, data storage and data reporting;
[0028] The network test unit is used to generate a test frame required by a user or clear an original sample frame at a designated port according to the sample frame and control information sent by the PCIe interaction unit;
[0029] The state setting and monitoring unit is used to set the state of each port.
[0030] Furthermore, the data capture includes message loopback, message filtering and message triggering. The message loopback is in the form of a digital retiming mode. The message filtering is used to select the message type required by the user and discard all messages that the user does not need, thereby improving the effective processing speed of the entire system. The message triggering can be triggered according to the set conditions, and the triggering depth and position can be set.
[0031] The invention is beneficial in that the provided protocol analyzer system for FC and Ethernet has the characteristics of multi-mode and high speed, supports analysis and testing of both FC and Ethernet protocols, and can be flexibly switched according to user needs; supports multiple data acquisition modes, can collect data link layer frame data or PCS layer 8B / 10B, 64 / 66B code streams; has flexible storage and analysis methods, supports two capture modes of cyclic coverage and stop-on-full capture, and supports two analysis modes of real-time online analysis and offline storage analysis; supports message capture filtering and port condition triggering, can lock data packets more clearly and quickly, and improve the effective processing speed of the system; supports custom test messages, supports multiple sample frame storage and multiple test frame sending modes; has comprehensive port status monitoring, and has vivid display methods such as flow curve graphs, which are convenient for users to observe. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0033] Figure 1 It is a schematic diagram of a protocol analyzer system for FC and Ethernet according to the present invention;
[0034] Figure 2 A schematic diagram of the internal structure of an analyzer upper management module of a protocol analyzer system for FC and Ethernet according to the present invention;
[0035] Figure 3A schematic diagram of the internal structure of an analyzer middle layer management module of a protocol analyzer system for FC and Ethernet according to the present invention;
[0036] Figure 4 The present invention is a schematic diagram of the internal structure of the analyzer logic module of the protocol analyzer system for FC and Ethernet. DETAILED DESCRIPTION
[0037] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0038] like Figure 1 The present invention shows a protocol analyzer system for FC and Ethernet, comprising: an analyzer upper management module, an analyzer middle management module and an analyzer logic module. The analyzer upper management module communicates with the analyzer middle management module via Ethernet, and the analyzer middle management module and the analyzer logic module use PCIe interaction to realize register reading and writing and data transmission.
[0039] The analyzer upper management module is set in the PC and runs the Windows system. The analyzer upper management module is used by the user to control and monitor the protocol analyzer system for FC and Ethernet and analyze the analysis port data. Specifically, the analyzer upper management module is mainly used to process the user's instructions, form command messages, send them to the analyzer middle management module through the TCP / IP protocol, receive the data message uploaded by the analyzer middle module, encapsulate it into a pcapng file, and parse it.
[0040] The analyzer middle-layer management module is set in the board CPU, which is used to parse the command message of the analyzer upper-layer management module and control or send data to the analyzer logic module through PCIe, obtain and process the data captured by the analyzer logic module, transmit it to the analyzer upper-layer management module for parsing, and obtain the relevant status of the analyzer logic module and feedback it to the analyzer upper-layer management module. The analyzer middle-layer management module mainly processes the command message sent by the analyzer upper-layer management module, parses the command type and parameters, reads and writes the analyzer logic module registers through PCIe, and controls the analyzer logic module to complete the function. Receive the status and captured data fed back by the analyzer logic module, organize and sort the captured data; upload the command response message and data message according to the command completion status.
[0041] The analyzer logic module is set in the board FPGA module. The analyzer logic module is mainly responsible for logic processing and data storage. It is used for analyzing port data capture, test port data transmission, data storage, and monitoring of system related status.
[0042] As a preferred embodiment, Figure 2 As shown, the upper management module of the analyzer includes a command building unit, a first network interaction unit and a data parsing unit.
[0043] The command building unit is used to build the command type and command parameters specified by the user through the interface. Specifically, the user specifies the command type and command parameters through the interface, and the upper management module of the analyzer collects and compiles them into a format that can be used by the lower layer.
[0044] The first network interaction unit encapsulates the assembled command into a fixed network message format, sends the command message, and simultaneously receives the command response message and data message uploaded by the analyzer middle layer management module, and feeds back the command execution status and obtained data to the user.
[0045] The data parsing unit is used to write the received complete data message into a file in pcapng format and parse it. Specifically, the data parsing unit writes the received complete data message into a file in pcapng format, calls Wireshark to parse it, and uses a self-designed plug-in to parse data types that Wireshark does not support, such as FC-AE-ASM protocol packets, FC primitives, etc. Specifically, the data parsing unit encapsulates multiple data messages in a pcapng file, and after sending a command to view the captured data, it starts writing the pcapng file, and writes the received data messages into the file in sequence until a data message containing an end mark is received, indicating that the file can be ended. After the end, Wireshark is called to open the file for parsing. For the FC-AE-ASM protocol and underlying data that Wireshark does not support, a script is independently written according to the format of the data as a Wireshark plug-in to parse each field.
[0046] As a preferred embodiment, the network message using the first network interaction unit has a fixed custom format, including a network header, a request / response header, data content and a network tail. The network header includes information such as header type, message length, message type, message command ID, message signal unit ID, message signal unit starting address, message sending time, message command type, device ID, etc. The network tail includes CRC check information, which is obtained by adding every two bytes of the network header, and the specific type and parameters of the message are filled in the request / response header. The data content depends on the situation and can be 0. In an embodiment of the present application, the network message includes values such as message type, length, CRC check, and the communicating parties extract the message according to the format.
[0047] The first network interaction unit transmits through the TCP protocol, and the receiving end needs to perform a packet operation. The memory pool management can use memory blocks in a disorderly manner, and the received information is packetized to obtain a complete message, and the message can also be sent efficiently.
[0048] Command messages interact asynchronously through the "request-response" mode, and data messages interact synchronously. The asynchronous process of command interaction is synchronized through signal pool management.
[0049] As a preferred implementation, the first network interaction unit constructs a signal pool in the form of multi-linked list management.
[0050] Specifically, the structure of the signal pool includes: an idle signal count, a signal lock, an idle signal linked list and a used signal linked list. During use, the signal unit moves cyclically in the signal linked list.
[0051] The signal unit of the signal link table includes: adjacent unit pointer, blocking semaphore, device ID, signal usage flag, signal unit number, command information using the signal unit and other information.
[0052] The adjacent unit pointer is used to find and use the signal unit.
[0053] Blocking semaphore, blocks after a command is sent, and is unblocked after receiving a response to the command or timing out.
[0054] The device ID refers to the ID of the analyzer middle-layer management module to be controlled by the command. The analyzer upper-layer management module can specify or identify the analyzer middle-layer management module through this value.
[0055] The signal usage flag indicates whether the signal unit is in use. When it is in use, the flag is 1, and when it is idle, the flag is 0.
[0056] Signal unit number, used to manage and distinguish signal units.
[0057] The command information using this signal unit includes command type, command ID, command sending time, command execution status, command specific content, and command return data.
[0058] As a preferred implementation, the first network interaction unit constructs four memory pools for data sending, data receiving, command sending, and command receiving in the form of multi-linked list management.
[0059] Specifically, the structure of the memory pool includes: free memory count, package completion memory count, memory lock, free memory linked list, package assembly memory linked list, package completion memory linked list, and processing memory linked list. During use, the signal unit circulates in each linked list according to the current state.
[0060] The memory unit of the memory linked list includes information such as adjacent unit pointer, data address, maximum storage capacity, and data size.
[0061] Adjacent unit pointer, used to find and use memory units. The data address points to the data using the unit. The maximum storage capacity refers to the maximum data that can be stored in the unit. The data size is the size of the data that is using the unit.
[0062] Specifically, the first network interaction unit binds the constructed network message to the idle signal unit in the signal pool, blocks the signal unit, and uses the socket interface to transmit the message to the analyzer middle layer management module via TCP stream. The signal pool contains two state lists of idle signals and used signals. Binding a signal unit means modifying the state identifier in the idle signal list to 1, updating the command ID and other information to the information of this command, and moving the unit into the used signal list. After unblocking, the signal unit re-enters the idle signal list and changes the state identifier back to 0.
[0063] The first network interaction unit also uses the memory pool to receive messages uploaded by the analyzer's middle-layer management module. The memory pool includes a free memory list, a package-assembling memory list, a package-completed memory list, and a processing memory list. Get a free memory unit and move it into the package-assembling list. After the incomplete message is assembled, the complete message is stored in the memory unit. The unit enters the package-completed list. The unit content in this list is complete and processable. The message type is determined based on its content. If it is a command response message, the corresponding signal unit is unblocked, and the command execution result in the message is obtained and fed back to the user. If it is a data message, it is handed over to the data parsing part.
[0064] As a preferred embodiment, Figure 3 As shown, the analyzer middle layer management module includes a second network interaction unit, a PCIe interaction unit and a data processing unit.
[0065] The second network interaction unit is used to receive and parse the command message of the upper management module of the analyzer, send data messages and command response messages, and does not need to use the signal pool for command sending management. The second network interaction unit is the same as the network interaction unit of the upper management module of the above-mentioned analyzer. It uses the memory pool to receive the command message sent by the upper management module of the analyzer, packages and parses it, and then controls the analyzer logic module to perform corresponding operations according to the message content. The second network interaction unit constructs the results and data of the operation of the analyzer logic module into data messages and command response messages and sends them to the upper management module of the analyzer.
[0066] The PCIe interaction unit controls the command message of the analyzer upper management module parsed by the analyzer middle-layer management module by writing it into the register of the analyzer logic module or reading the register of the analyzer logic module to obtain the required state, thereby realizing data interaction. That is, the analyzer middle-layer management module is used to parse the command message of the analyzer upper management module, and write the command into the register of the analyzer logic module or read the register of the analyzer logic module through the PCIe interaction unit.
[0067] The data processing unit uses a circular FIFO to receive and manage the captured network frames of different analysis ports and sort them in time. The data processing unit includes a total receiving FIFO and a sorting FIFO corresponding to each analysis port. The analyzer middle-layer management module sends the total receiving FIFO through the PCIe interaction unit, and transfers the data to each sorting FIFO for sorting after receiving it. The data of the same analysis port has been arranged in order, and only the timestamps of the first data of different analysis ports need to be compared. At the same time, certain format processing is required according to the captured underlying data to facilitate subsequent parsing by the analyzer upper-layer management module, separate primitive data from frame data, and count primitive data.
[0068] As a preferred implementation, the PCIe interaction unit supports PCIe mounting, obtains the bus number, driver number and device number through the hardware ID, obtains the configuration space and register base address according to the bus number, driver number and device number, obtains the MSI interrupt and mounts it. The interrupt service is used to notify the analyzer middle layer management module of the relevant status completed by the analyzer logic module. The analyzer middle layer management module determines the interrupt number under an interrupt, and processes the read interrupt or write interrupt. The total interrupt service program communicates with the interrupt processing thread through the interrupt status FIFO.
[0069] The PCIe interaction unit uses pipeline mode DMA operation to transfer data between software and hardware. The analyzer middle layer management module stores the instructions in a certain format in the DMA ring. The analyzer logic module reads the corresponding instructions from the DDR of the analyzer middle layer management module for processing as needed.
[0070] As a preferred implementation, the DMA ring is a circular FIFO. The DMA ring includes two types: a DMA command ring and a DMA completion ring. The DMA ring unit structure includes: data length, data address, and operation flag.
[0071] The DMA command ring includes a read command ring and a write command ring, which are used to send DMA read commands and write commands respectively. The corresponding ring unit is used according to the current unit count. The operation flag is 0, which means that the analyzer middle layer management module can be operated. It is 1, which means that it is the turn of the analyzer logic module to operate. The operation content is determined by the data length and address.
[0072] The DMA completion ring is used to receive the status of the DMA command ring completion. When the analyzer middle layer management module receives an interrupt, it will read the DMA completion ring for processing. The operation flag is 0, which means there is no interrupt to process.
[0073] When reading the captured data, the analyzer middle layer management module writes the address and length of the free memory block into the DMA write command ring, the analyzer logic module writes the data stored in the DDR into the memory, and uses an interrupt to notify the analyzer middle layer management module, and the analyzer middle layer management module obtains the result according to the completion ring.
[0074] When sending test data, the analyzer middle layer management module writes the memory address and length containing the data into the DMA read command ring, and the analyzer logic module reads the data from the memory for processing and feeds back the results through the completion ring.
[0075] Data processing unit: uses circular FIFO to manage and time-sort the captured network frames of different analysis ports, including a total receiving FIFO and a sorting FIFO corresponding to each analysis port;
[0076] If the captured data is low-level data, the primitive data and frame data are judged and separated word by word, and the same primitive data captured at the same time are counted, and the data that has been processed is sent.
[0077] As a preferred embodiment, Figure 4 As shown, the analyzer logic module includes a network analysis unit, a network test unit and a status setting and monitoring unit.
[0078] The network analysis unit is used for data capture, data encapsulation, data storage and data reporting. Data capture is at the forefront. The message data of the external device is converted from serial data to parallel data via the transceiver, and then encoded and decoded by the PCS / PMA soft core of FC or Ethernet. After that, the FC logic IP soft core or MAC converts the data into the AXIS bus format. The FC message will also be converted into an FCoE message, and finally the message is filtered by the filtering module. The captured data is encapsulated into the enhanced message block format supported by pcapng, stored in the PLDDR of the analyzer logic module, and reported to the analyzer middle layer management module through the PCIe interaction module.
[0079] The network test unit is used to generate the test frames required by the user or clear the original sample frames at the specified port according to the sample frames and control information sent by the PCIe interaction unit. The content of the sample frame determines the format, content, quantity and other information of the test frame. It is responsible for the storage of sample frames, the generation of test frames, and the control of the sending of test frames, and supports the sending of ASM frames, ELS frames, and FCP frames.
[0080] The status setting and monitoring unit is used to set the status of each port, including switching FC / Ethernet mode, switching analysis / test mode, switching capture data mode, switching port rate, setting frame scrambling / descrambling, setting credit, setting minimum frame interval, controlling flow, etc. At the same time, the analyzer logic module can monitor these states, including port connection status, credit, bit error number, CRC error number, flow, rate, single frame sequence count, out-of-order sequence count, etc.
[0081] As a preferred implementation, data capture includes message loopback, message filtering and message triggering.
[0082] The form of message loopback is digital retiming mode. The optical signal is first converted into an analog electrical signal by the high-speed optical transceiver module. After entering the FPGA and being received by the high-speed serial transceiver, the analog signal becomes a digital signal, and then is divided into two paths. One path is extracted by the FPGA for protocol analysis, and the other path is converted into an analog signal again after passing through another high-speed serial transceiver, and then output to the optical transceiver module, and then converted into an optical signal again to complete the signal loopback.
[0083] Message filtering is used to select the message type required by the user, discard all the messages that the user does not need, and improve the effective processing speed of the entire system. The analyzer logic module adopts the capture filtering method, and the core filtering unit uses an open source filtering module - a multi-functional message filter adapted to Wireshark, and on this basis, it expands the usage method and supports filtering message types. Message filtering is divided into two parts: instructions and data. The instruction part is equipped with instruction storage space, which uses the AXI bus to read instructions from external registers and write them into the storage space; the data part is equipped with data cache space to cache data received by MAC or FC CORE, and uses the AXIS bus to transmit data streams; there is a command processing module between data and commands to realize the execution of instructions and the filtering of data, and complete the message filtering operation.
[0084] The message trigger can be triggered according to the set conditions, and the trigger depth and position can be set. After the analyzer logic module captures the message that meets the trigger condition, it will continue to capture the message number equal to the trigger depth and then stop. You can choose to stop capturing the data stream of its own channel or the data stream of all channels.
[0085] In the embodiment of the present application, the example frame is defined as 64 bytes in length, including SOF, FC Header, Optional Header, Payload, CRC, and EOF. SOF contains the sending port, service type, payload length, and number of header words of the test frame, and EOF is the EOF of the last frame. FC Header and Optional Header contain information about the FC header of the test frame, i.e., the extended header. Payload contains information such as whether there is an extended header, the sending order, payload type, frame length type, the number of frames in a sequence, the number of sequences, the type of error frames, and the payload length of the last frame of the sequence. CRC is defined as the payload content.
[0086] The protocol analyzer system for FC and Ethernet of the present application supports the analysis and testing of both FC and Ethernet protocols, and can adapt to FC rates of 2.125Gbps, 4.25Gbps, and 8.5Gbps and Gigabit and 10G Ethernet rates, and can be flexibly switched according to user needs. The protocol analyzer system for FC and Ethernet expands the protocols that Wireshark does not support parsing, and can perform more comprehensive network link analysis.
[0087] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the above embodiments do not limit the present invention in any form, and any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.
Claims
1. A protocol analyzer system for FC and Ethernet, characterized in that: Contains: analyzer upper layer management module, analyzer middle layer management module and analyzer logic module; The analyzer upper management module is set in the PC and is used by the user to control and monitor the protocol analyzer system for FC and Ethernet and analyze the analysis port data; The analyzer middle-layer management module is arranged in the board CPU, and is used to parse the command message of the analyzer upper-layer management module and control or send data to the analyzer logic module through PCIe, obtain and process the data captured by the analyzer logic module, transmit it to the analyzer upper-layer management module for parsing, and obtain the relevant status of the analyzer logic module and feed it back to the analyzer upper-layer management module; The analyzer logic module is arranged in the board FPGA module and is used for analyzing port data capture, test port data transmission, data storage, and monitoring of system-related status; The upper management modules of the analyzer communicate with the middle management modules of the analyzer via Ethernet, and the middle management modules of the analyzer communicate with the logic modules of the analyzer via PCIe to realize register reading and writing and data transmission.
2. The protocol analyzer system for FC and Ethernet according to claim 1, characterized in that: The analyzer upper management module includes a command building unit, a first network interaction unit and a data parsing unit; The command building unit is used to build a command based on the command type and command parameters specified by the user through the interface; The first network interaction unit encapsulates the assembled command into a fixed network message format, issues the command message, and simultaneously receives the command response message and data message uploaded by the middle layer management module of the analyzer, and feeds back the command execution status and the obtained data to the user; The data parsing unit is used to write the received complete data message into a file in pcapng format and parse it.
3. The protocol analyzer system for FC and Ethernet according to claim 2, characterized in that: The network message using the first network interaction unit has a fixed custom format, including a network header, a request / response header, data content and a network tail, and the communicating parties extract the message according to the format; The first network interaction unit transmits via the TCP protocol, the receiving end needs to perform a packetization operation, the memory pool management can use memory blocks in a disorderly order, the received information is packetized to obtain a complete message, and the message can also be sent efficiently; Command messages interact asynchronously through the "request-response" mode, and data messages interact synchronously. The asynchronous process of command interaction is synchronized through signal pool management.
4. The protocol analyzer system for FC and Ethernet according to claim 3, characterized in that: The first network interaction unit constructs a signal pool in the form of multi-linked table management; The first network interaction unit uses a multi-linked list management form to construct four memory pools for data sending, data receiving, command sending, and command receiving.
5. The protocol analyzer system for FC and Ethernet according to claim 2, characterized in that: The analyzer middle layer management module includes a second network interaction unit, a PCIe interaction unit and a data processing unit; The second network interaction unit is used to receive and parse the command message of the upper management module of the analyzer, and send data messages and command response messages; The PCIe interaction unit controls the command message of the analyzer upper management module parsed by the analyzer middle management module by writing it into the register of the analyzer logic module or reads the register of the analyzer logic module to obtain the required state, thereby realizing data interaction; The data processing unit uses a circular FIFO to manage the reception and time sort the captured network frames of different analysis ports. The data processing unit includes a total reception FIFO and a sorting FIFO corresponding to each analysis port. The analyzer middle layer management module sends the total reception FIFO through the PCIe interaction unit, and after obtaining the data, it is transferred to each sorting FIFO for sorting.
6. The protocol analyzer system for FC and Ethernet according to claim 5, characterized in that: The PCIe interaction unit supports PCIe mounting, obtains the bus number, driver number and device number through the hardware ID, obtains the configuration space and register base address according to the bus number, driver number and device number, obtains the MSI interrupt and mounts; The PCIe interaction unit uses pipeline mode DMA operation to transfer data between software and hardware. The analyzer middle layer management module stores instructions in a certain format in the DMA ring. The analyzer logic module reads corresponding instructions from the DDR of the analyzer middle layer management module for processing as needed.
7. The protocol analyzer system for FC and Ethernet according to claim 6, characterized in that: The DMA ring includes a DMA command ring and a DMA completion ring. The DMA command ring includes a read command ring and a write command ring, which are respectively used to send DMA read commands and write commands. The DMA completion ring is used to receive the completion status of the DMA command ring.
8. The protocol analyzer system for FC and Ethernet according to claim 5, characterized in that: The analyzer logic module includes a network analysis unit, a network testing unit and a status setting and monitoring unit; The network analysis unit is used for data capture, data encapsulation, data storage and data reporting; The network test unit is used to generate a test frame required by a user or clear an original sample frame at a designated port according to the sample frame and control information sent by the PCIe interaction unit; The state setting and monitoring unit is used to set the state of each port.
9. The protocol analyzer system for FC and Ethernet according to claim 8, characterized in that: The data capture includes message loopback, message filtering and message triggering. The message loopback is in the form of a digital retiming mode. The message filtering is used to select the message type required by the user and discard all messages that the user does not need, thereby improving the effective processing speed of the entire system. The message triggering can be triggered according to the set conditions, and the triggering depth and position can be set.
Citation Information
Patent Citations
Method for transmitting high-bandwidth video in 10-gigabit network based on FCoE protocol
CN108134782A
Multi-protocol terminal with double-channel redundant output for switch
CN111683021A
Address resolution protocol operation in a fibre channel fabric
US10693832B1
