Configuration information transmission system and method based on FC
By using FPGA to frame and parse configuration information in networking equipment, configuration data issuance and information upload without CPU control is realized, and the problems of low transmission efficiency and high hardware resources in the existing technology are solved, and the system is improved Robustness and flexibility.
Patent Information
- Application Number
- CN202211364384.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-02
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2042-11-02
AI Technical Summary
In the prior art, the configuration information transmission efficiency of the networking device is low and cannot be replaced when the CPU fails, resulting in the network being unable to work, with a lot of hardware resources and a low data transmission efficiency.
Design a configuration information transmission system based on FC, using multiple network communication terminal devices and switches, framing and parsing configuration information through registers and Els framing/disassembly modules in FPGA, realizing CPU-free configuration Data distribution and information upload, flexible topology and multi-device configuration functions at the same time.
It improves data transmission efficiency, simplifies hardware resources, avoids the information upload process involving CPU, enhances the robustness and flexibility of the system, and can be replaced by other devices in the event of CPU failure.
Smart Images

Figure CN116155710B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a configuration information transmission system and method based on FC. Background Art
[0002] The main body of configuration delivery in current networking devices is usually the CPU or MCU, etc. The active party of configuration delivery is the CPU, which delivers the configuration content to other devices in the network through the switching matrix. When other devices have information to upload, the CPU actively initiates the reading of the content. In the entire process of configuration delivery and data upload, the CPU is the active initiator. And the topology of the overall network is fixed, that is, the master-slave relationship of the networking devices cannot change during the network operation process. When the CPU fails, the other devices cannot replace the role played by the CPU in the network, so the overall network cannot work.
[0003] For example, the invention patent with application number 201611139668.X discloses a configurable broadcast ELS data frame automatic loading circuit and method, wherein the circuit comprises a processor module (1), an off-chip memory (2), a storage controller (3), an automatic loading logic unit (4) and a broadcast ELS data frame sending buffer (5); wherein the processor module (1) is connected to the storage controller (3) via an on-chip bus, and the storage controller (3) is connected to the off-chip memory (2) and the automatic loading logic unit (4); and the broadcast ELS data frame sending buffer (5) is connected to the automatic loading logic unit (4).
[0004] Although the above scheme can complete the loading of automatic broadcast ELS data frames within the specified time, the overall storage and sending process is controlled by the processor module through the storage controller, and this technical scheme is only used as a sending method of the Els sending device. Moreover, in the above technical scheme, the Els frame content comes from an off-chip storage device, and the modification of the content needs to be controlled by the processor module to control the storage controller to update the off-chip storage content, resulting in low information transmission efficiency.
[0005] For example, the invention patent with application number CN202111519650.3 discloses a network device management method, system, device, computer device and storage medium. The method includes: responding to a configuration management operation, obtaining configuration command data corresponding to the configuration management operation; encapsulating the configuration command data into data in an ELS data frame format to obtain configuration command ELS data; transmitting the configuration command ELS data to a first FPGA through a first PCIe interface; parsing the configuration command ELS data through the first FPGA to obtain a first target device identifier, and sending the configuration command ELS data to a second terminal through the FC bus according to the first target device identifier.
[0006] Although the above patent can implement the management and configuration of the network equipment between the first terminal and the second terminal through the FC bus, saving network resources and space, the terminals in the technical solution are in a cascade relationship. If the "target device identifier" of the Els frame is not itself, it will be forwarded, and the framing and parsing of the Els frame are all implemented by the software side, resulting in the problem of more hardware required and low data transmission efficiency. Summary of the invention
[0007] Based on this, it is necessary to provide a FC-based configuration information transmission system and method that can improve the data transmission efficiency between devices in a network in order to address the above technical problems.
[0008] The technical solution of the present invention is as follows:
[0009] A configuration information transmission system based on FC, the system comprising a plurality of networked communication terminal devices, each of which is connected in communication; wherein each of the networked communication terminal devices comprises an FPGA, and the FPGA in each of the networked communication terminal devices comprises:
[0010] A register, wherein the register is used to store current configuration information, wherein the current configuration information includes a default value of the FPGA design or the content of an external memory or other content obtained by parsing the content of an Els frame sent by the networking communication terminal device;
[0011] An Els framing / disassembling module is used to group the current configuration information into an Els frame and generate current configuration Els frame data, and send the current configuration Els frame data to other networking communication terminal devices.
[0012] Furthermore, the system also includes a switch, which is used to communicate with each of the networking communication terminal devices, and the switch is used to obtain configuration information data sent by the networking communication terminal device as a sending device, and send the obtained configuration information data to the networking communication terminal device as a receiving device.
[0013] Furthermore, the system further comprises a switch, the switch being used for communication connection with each of the networking communication terminal devices, the switch being used for acquiring configuration information data sent by the networking communication terminal device as a sending device, and sending the acquired configuration information data to the networking communication terminal device as a receiving device;
[0014] The switch is provided with an FPGA, the FPGA includes a register and an Els framing / disassembling module, the register of the FPGA in the switch is used to store current configuration information, wherein the current configuration information includes a default value designed by the FPGA or the content of an external memory or the Els frame content sent by other networking communication terminal devices;
[0015] The Els framing / disassembling module of the FPGA in the switch is used to assemble the current configuration information into an Els frame and generate current configuration Els frame data, and send the current configuration Els frame data to other networking communication terminal devices;
[0016] The Els framing / disassembling module of the FPGA in the switch is also used to communicate with the Els framing / disassembling modules in each of the networking communication terminal devices to group the current configuration information in the register in the FPGA in the switch into an Els frame and generate current configuration Els frame data, and send the current configuration Els frame data to each of the networking communication terminal devices.
[0017] Furthermore, the switch is used for information communication with each of the networking communication terminal devices.
[0018] Furthermore, the Els framing / disassembly module is also used to parse the current configuration Els frame data after receiving the current configuration Els frame data, and store the corresponding configuration content in its register, so that the networking communication terminal device serving as a receiving device can call the relevant configuration parameters corresponding to the corresponding configuration content stored in its register during operation to complete the corresponding configuration.
[0019] Another aspect of the present invention further provides a configuration information transmission method based on the above-mentioned FC-based configuration information transmission system, the configuration information transmission method comprising:
[0020] Step S100: the Els framing / disassembling module in the networking communication terminal device as the issuing device assembles the current configuration information stored in its register into an Els frame and generates current configuration Els frame data;
[0021] Step S200: the networking communication terminal device as the issuing device sends the currently configured Els frame data to the networking communication terminal device as the receiving device;
[0022] Step S300: After receiving the current configuration Els frame data, the networking communication terminal device as a receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the networking communication terminal device as a receiving device can retrieve the relevant configuration parameters corresponding to the corresponding configuration content stored in its register during operation to complete the corresponding configuration.
[0023] Furthermore, when the system further includes a switch, the method further includes:
[0024] Step S410: the Els framing / disassembling module in the networking communication terminal device as the issuing device assembles the current configuration information stored in its register into an Els frame and generates current configuration Els frame data;
[0025] Step S420: the networking communication terminal device as the issuing device sends the current configuration Els frame data to the networking communication terminal device as the receiving device via the switch;
[0026] Step S430: After receiving the current configuration Els frame data, the networking communication terminal device as a receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the networking communication terminal device as a receiving device can retrieve the relevant configuration parameters corresponding to the corresponding configuration content stored in its register during operation to complete the corresponding configuration.
[0027] Specifically, step S410: the Els framing / disassembling module in the networking communication terminal device as the issuing device composes the current configuration information stored in its register into an Els frame and generates the current configuration Els frame data, specifically including:
[0028] When the Els framing / disassembly module in the networking communication terminal device serving as the sending device assembles the current configuration information stored in its register into an Els frame, it fills in the switch interface where the networking communication terminal device serving as the receiving device is located with the address of the Els frame header, so that the networking communication terminal device serving as the sending device sends the current configuration Els frame data to the networking communication terminal device serving as the receiving device via the switch.
[0029] Furthermore, when the system includes a switch, and an FPGA is provided in the switch, and the FPGA includes a register and an Els framing / disassembling module, the method further includes:
[0030] Step S510: the Els framing / disassembling module in the networking communication terminal device as the issuing device assembles the current configuration information stored in its register into an Els frame and generates current configuration Els frame data;
[0031] Step S520: the networking communication terminal device as the issuing device sends the current configuration Els frame data to the switch as the receiving device;
[0032] Step S530: After receiving the current configuration Els frame data, the switch as the receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the switch as the receiving device can retrieve the relevant configuration parameters corresponding to the corresponding configuration content stored in its register during operation to complete the corresponding configuration.
[0033] The technical effects achieved by the present invention are as follows:
[0034] 1. The above-mentioned FC-based configuration information transmission system and method, in turn, through the Els framing / disassembling module in the networking communication terminal device as the sending device, the current configuration information stored in its register is grouped into Els frames and the current configuration Els frame data is generated; the networking communication terminal device as the sending device sends the current configuration Els frame data to the networking communication terminal device as the receiving device; after receiving the current configuration Els frame data, the networking communication terminal device as the receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the networking communication terminal device as the receiving device can Retrieve the relevant configuration parameters corresponding to the corresponding configuration content stored in its register to complete the corresponding configuration, thereby realizing the configuration data sending and information uploading without CPU control in a multi-device networking environment. The overall information sending process does not require CPU participation, and the topology structure in the sending link can be flexibly changed. The upload of statistical data in the networking system is also transmitted through Els frames. The overall information uploading process does not require CPU participation, and the topology structure in the sending link can be flexibly changed. Any of the networking communication terminal devices can be a sending device or a receiving device in the networking device, avoiding the step of setting the master device and improving data transmission efficiency.
[0035] In addition to point-to-point communication, connecting switch devices in the network can realize the simultaneous configuration of multiple devices and the simultaneous uploading of information of multiple devices. The entire transmission process does not require a CPU, which simplifies hardware resources, saves hardware expenses, and saves costs. The sending and receiving devices are not fixed. When a problem occurs in a sending or receiving device, it can be replaced by other devices, greatly enhancing the robustness of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0037] Figure 1 is a structural block diagram of a configuration information transmission system based on FC in one embodiment;
[0038] Figure 2 is a structural block diagram of a configuration information transmission system based on FC in another embodiment;
[0039] Figure 3 is a structural block diagram of a configuration information transmission system based on FC in other embodiments;
[0040] Figure 4 A diagram showing a correspondence between register addresses and content information in an embodiment;
[0041] Figure 5 A schematic block diagram of a frame format in one embodiment;
[0042] Figure 6 A schematic diagram of the composition of a configuration content in an embodiment;
[0043] Figure 7 A schematic diagram of an Els frame assembly state machine of an Els frame assembly / disassembly module in one embodiment;
[0044] Figure 8 A schematic diagram of an Els frame parsing state machine of an Els frame assembly / disassembly module in one embodiment;
[0045] Fig. 9 The figure is a schematic diagram of the format of storing the data content read in the payload state into the register of the receiving device in one embodiment. DETAILED DESCRIPTION
[0046] In order to enable those skilled in the art to better understand the technical solution of the present invention, the specific technical solution of the present invention will be clearly and completely described in conjunction with the embodiments below to help those skilled in the art further understand the present invention. Obviously, the embodiments described in this case are only embodiments of a part of the present invention, not all of the embodiments. It should be pointed out that for those of ordinary skill in the art, the embodiments in this application and the features in the embodiments can be combined with each other without departing from the concept of the present invention and without conflicting with each other. Based on the embodiments in the present invention, all other embodiments obtained without creative work by those of ordinary skill in the art should belong to the disclosure and protection scope of the present invention.
[0047] In addition, the terms "first", "second", "S1", "S2", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those described herein. At the same time, the terms "including" and "having" and any variations thereof in the present invention are intended to cover non-exclusive inclusions. Unless otherwise clearly specified and limited, the terms "set", "layout", "install", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in this case can be understood based on the specific circumstances and in combination with the prior art.
[0048] In one embodiment, Figure 1 As shown, a configuration information transmission system based on FC is provided, the system includes multiple networking communication terminal devices, each of the networking communication terminal devices is connected in communication; wherein each of the networking communication terminal devices includes an FPGA, and the FPGA in each of the networking communication terminal devices includes:
[0049] A register, wherein the register is used to store current configuration information, wherein the current configuration information includes a default value of the FPGA design or the content of an external memory or other content obtained by parsing the content of an Els frame sent by the networking communication terminal device;
[0050] Furthermore, through the Els frame content, implicit or explicit login mode, configuration content of the port or address table module, buffer to buffer credit value, detection timeout, node card ID and other configuration content are transmitted using Els frames.
[0051] An Els framing / disassembling module is used to group the current configuration information into an Els frame and generate current configuration Els frame data, and send the current configuration Els frame data to other networking communication terminal devices.
[0052] The present invention sequentially groups the current configuration information stored in its register into an Els frame through an Els framing / disassembling module in a networking communication terminal device as a sending device and generates current configuration Els frame data; the networking communication terminal device as a sending device sends the current configuration Els frame data to the networking communication terminal device as a receiving device; after receiving the current configuration Els frame data, the networking communication terminal device as a receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the networking communication terminal device as a receiving device can retrieve the information stored in its register during operation. The corresponding configuration parameters corresponding to the corresponding configuration content are used to complete the corresponding configuration, thereby realizing the configuration data sending and information uploading without CPU control in a multi-device networking environment. The overall information sending process does not require CPU participation, and the topology structure in the sending link can be flexibly changed. The upload of statistical data in the networking system is also transmitted through Els frames. The overall information upload process does not require CPU participation, and the topology structure in the sending link can be flexibly changed. Any one of the networking communication terminal devices can be a sending device or a receiving device in the networking device, avoiding the step of setting the main device and improving data transmission efficiency.
[0053] Furthermore, if Figure 1 As shown, Figure 1 Device A, device C and device B in the figure are all networking communication terminal devices, and the "Els framing / disassembly" shown in the figure is the Els framing / disassembly module. It should be noted that the other figures in this application use the same marking method as above, and no repeated description will be made for the other figures.
[0054] Specifically, taking device A as the sender of the configuration content, the content of the Els frame sent down comes from the register in device A. The data in the register can be the default value of the FPGA design or the content loaded from the external memory. At the same time, it can also update the configuration content in the register of device A or the content stored in the external storage device by receiving the Els frame content sent by other devices.
[0055] Device A can send Els frames to multiple devices in the network at the same time, that is, it can configure and send configurations to multiple devices at the same time, and it can also receive Els frames from multiple devices. In the network, there are several devices connected to each other. The subject of configuration sending can select a certain device in the network, or multiple devices as the subject of configuration sending. The subject device is not fixed and can be changed flexibly.
[0056] In one embodiment, the system also includes a switch, which is used to communicate with each of the networking communication terminal devices, and the switch is used to obtain configuration information data sent by the networking communication terminal device as a sending device, and send the obtained configuration information data to the networking communication terminal device as a receiving device.
[0057] It can be seen that in addition to point-to-point communication, the present invention can access switch devices in the networking to realize the simultaneous configuration of multiple devices and the simultaneous uploading of information of multiple devices. The entire transmission process does not require a CPU, simplifies hardware resources, saves hardware overhead, and saves costs. The transceiver device is not fixed. When a problem occurs in a sending or receiving device, it can be replaced by other devices, which greatly enhances the robustness of the system.
[0058] Furthermore, if Figure 2 As shown, when device A needs to send relevant configuration to device B, when assembling the Els frame, the address of the Els frame header needs to be filled in the switch interface where device B is located. After device B receives the Els frame forwarded by the switch, it parses the frame content and stores it in the register for related configuration of this device.
[0059] In one embodiment, the system further includes a switch, the switch is used to communicate with each of the networking communication terminal devices, the switch is used to obtain the configuration information data sent by the networking communication terminal device as the issuing device, and send the obtained configuration information data to the networking communication terminal device as the receiving device;
[0060] The switch is provided with an FPGA, the FPGA includes a register and an Els framing / disassembling module, the register of the FPGA in the switch is used to store current configuration information, wherein the current configuration information includes a default value designed by the FPGA or the content of an external memory or the Els frame content sent by other networking communication terminal devices;
[0061] The Els framing / disassembling module of the FPGA in the switch is used to merge the current configuration information group Els frames to generate current configuration Els frame data, and send the current configuration Els frame data to other networking communication terminal devices;
[0062] The Els framing / disassembling module of the FPGA in the switch is also used to communicate with the Els framing / disassembling modules in each of the networking communication terminal devices to merge the current configuration information group Els frames in the registers in the FPGA in the switch to generate current configuration Els frame data, and send the current configuration Els frame data to each of the networking communication terminal devices.
[0063] Furthermore, if Figure 3 As shown, by providing an FPGA in the switch, the FPGA includes a register and an Els framing / disassembling module, and the register of the FPGA in the switch is used to store current configuration information, wherein the current configuration information includes the default value of the FPGA design or the content of the external memory or the Els frame content sent by other networking communication terminal devices. In this way, the Els framing / disassembling module is added to the switch FPGA, and the terminal device (such as device A) connected to the switch can also control the relevant configuration of the switch.
[0064] In one embodiment, the switch is used for information communication with each of the networking communication terminal devices.
[0065] Furthermore, in the networking structure with a switch in the present application, the switch acts as the forwarding work of the ELS frame, and each device connected to the switch only performs the sending and receiving work, and does not perform the forwarding work, thereby improving the transmission efficiency.
[0066] In addition, the framing and parsing of the Els frames in this application are all implemented by FPGA. Compared with the existing technology that is implemented by the software side and causes the problem of not working once there is a problem with the software, this application is implemented by FPGA, which is more reliable and the data transmission is more stable.
[0067] The data content of Els in this application can be the default configuration content and statistical results built into the device sending the Els frame, or the configuration instructions and configuration content received from other devices, or the content loaded from the external memory. The content source and modification method are very flexible. The Els sending device in this application can be any device in the network, and each device can be used as a transceiver of the Els frame. The Els frame can be sent by multicast, broadcast and unicast.
[0068] In one embodiment, the present invention provides a configuration information transmission method based on the above-mentioned FC-based configuration information transmission system, and the configuration information transmission method includes:
[0069] Step S100: the Els framing / disassembling module in the networking communication terminal device as the issuing device combines the current configuration information group Els frames stored in its register to generate current configuration Els frame data;
[0070] Step S200: the networking communication terminal device as the issuing device sends the currently configured Els frame data to the networking communication terminal device as the receiving device;
[0071] Step S300: After receiving the current configuration Els frame data, the networking communication terminal device as a receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the networking communication terminal device as a receiving device can retrieve the relevant configuration parameters corresponding to the corresponding configuration content stored in its register during operation to complete the corresponding configuration.
[0072] Furthermore, the present invention sequentially groups the current configuration information stored in its register into Els frames through the Els framing / disassembling module in the networking communication terminal device as the sending device and generates the current configuration Els frame data; the networking communication terminal device as the sending device sends the current configuration Els frame data to the networking communication terminal device as the receiving device; after receiving the current configuration Els frame data, the networking communication terminal device as the receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the networking communication terminal device as the receiving device calls its register during the operation process. The corresponding configuration is completed by the relevant configuration parameters corresponding to the corresponding configuration content stored in the storage, thereby realizing the configuration data sending and information uploading without CPU control in the multi-device networking environment. The overall information sending process does not require the participation of the CPU, and the topology structure in the sending link can be flexibly changed. The upload of statistical data in the networking system is also transmitted through Els frames. The overall information upload process does not require the participation of the CPU, and the topology structure in the sending link can be flexibly changed. Any one of the networking communication terminal devices can be a sending device or a receiving device in the networking device, avoiding the step of setting the main device and improving data transmission efficiency.
[0073] In one embodiment, when the system further includes a switch, the method further includes:
[0074] Step S410: the Els framing / disassembling module in the networking communication terminal device as the issuing device assembles the current configuration information stored in its register into an Els frame and generates current configuration Els frame data;
[0075] Step S420: the networking communication terminal device as the issuing device sends the current configuration Els frame data to the networking communication terminal device as the receiving device via the switch;
[0076] Step S430: After receiving the current configuration Els frame data, the networking communication terminal device as a receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the networking communication terminal device as a receiving device can retrieve the relevant configuration parameters corresponding to the corresponding configuration content stored in its register during operation to complete the corresponding configuration.
[0077] In this embodiment, the present invention first sets an Els framing / disassembling module in a networking communication terminal device as a sending device to group the current configuration information stored in its register into an Els frame and generate current configuration Els frame data; then, the networking communication terminal device as a sending device sends the current configuration Els frame data to the networking communication terminal device as a receiving device via the switch; then, after receiving the current configuration Els frame data, the networking communication terminal device as a receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the networking communication terminal device as a receiving device can retrieve the relevant configuration parameters corresponding to the corresponding configuration content stored in its register during operation to complete the corresponding configuration, that is, by accessing a switch device in the networking, multiple devices can be configured at the same time, and information of multiple devices can be uploaded at the same time. The entire transmission process does not require a CPU, simplifies hardware resources, saves hardware overhead, and saves costs. The transceiver device is not fixed. When a problem occurs in a certain sending or receiving device, it can be replaced with other devices, which greatly enhances the robustness of the system.
[0078] In one embodiment, step S410: the Els framing / disassembling module in the networking communication terminal device as the issuing device assembles the current configuration information stored in its register into an Els frame and generates the current configuration Els frame data, specifically including:
[0079] When the Els framing / disassembly module in the networking communication terminal device serving as the sending device assembles the current configuration information stored in its register into an Els frame, it fills in the switch interface where the networking communication terminal device serving as the receiving device is located with the address of the Els frame header, so that the networking communication terminal device serving as the sending device sends the current configuration Els frame data to the networking communication terminal device serving as the receiving device via the switch.
[0080] In one embodiment, when the system includes a switch, and the switch is provided with an FPGA, and the FPGA includes a register and an Els framing / disassembly module, the method further includes:
[0081] Step S510: the Els framing / disassembling module in the networking communication terminal device as the issuing device assembles the current configuration information stored in its register into an Els frame and generates current configuration Els frame data;
[0082] Step S520: the networking communication terminal device as the issuing device sends the current configuration Els frame data to the switch as the receiving device;
[0083] Step S530: After receiving the current configuration Els frame data, the switch as the receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the switch as the receiving device can retrieve the relevant configuration parameters corresponding to the corresponding configuration content stored in its register during operation to complete the corresponding configuration.
[0084] Furthermore, in this embodiment, an FPGA is provided in the switch, and the FPGA includes a register and an Els framing / disassembling module. The register of the FPGA in the switch is used to store current configuration information, wherein the current configuration information includes the default value of the FPGA design or the content of the external memory or the Els frame content sent by other networking communication terminal devices. In this way, the Els framing / disassembling module is added to the switch FPGA, and the terminal device (such as device A) connected to the switch can control the relevant configuration of the switch.
[0085] In one embodiment, the configuration sending and data uploading and receiving process is as follows:
[0086] First, when framing and sending, the Els sending device uses the content in the device register as the payload to frame the Els frame. The corresponding relationship between the register address and the content information is as follows: Figure 4 As shown, the information is then sent to the Els framing module to form a framing format such as Figure 5 shown.
[0087] like Figure 5 As shown in the figure, when the Els frame is sent point-to-point, the SID and DID in the frame header are filled with the default configuration, and no analysis will be performed when receiving; if a switch is connected, the DID needs to fill in the switch port number to which the destination device is connected.
[0088] The first 4 bytes of the payload information are SendNumber, which is used to mark the number of configuration content items, that is, the number N in the figure. Due to the limit on the length of the Els frame payload content, N<=263.
[0089] Furthermore, the specific content of the configuration information is sent starting from the 5th bit of the payload content. One configuration content consists of 8 bits. For the structure, please refer to Figure 6 The first 4 bytes are used to indicate the read / write mode and configuration address of this item, and the last 4 bytes are the configuration details. The read mode or write mode is marked with 1 bit.
[0090] When an Els frame message fails to send all the configuration content, it needs to be sent in multiple frames, and the order of sending the content is marked with OxID.
[0091] Furthermore, the Els frame state machine of the Els frame assembly / disassembly module is as follows Figure 7 As shown, specifically, in the IDLE state, it is the default state. When the input register address and content are confirmed to be valid, the frame header state is entered; then, the frame header state is sent: the SID and DID in the frame header are confirmed according to the object to be sent. If it is a point-to-point transmission, the SID and DID are filled with the default values; at this time, if a switch is connected, the DID needs to fill in the switch port number to which the destination device is connected. In addition, the OxID information content needs to be determined according to whether the content is sent in multiple pieces, and after completion, the SendNumber state is entered; as for the SendNumber state: the number of registers that can be configured by the information content sent is written into the first 4B of the frame content, and the payload state is entered; about the payload state: the stay time in this state is determined according to the SendNumber value, and when all the SendNumber data contents are framed, the End state is entered; in the End state: the framing is completed, and the IDLE state is automatically returned. After the framing is completed, this Els frame will be sent (download configuration or upload data).
[0092] Furthermore, the Els frame assembly / disassembly module in the receiving device parses the Els frame content and stores the parsed configuration content in the corresponding register. The Els frame parsing state machine of the Els frame assembly / disassembly module is as follows: Figure 8 shown.
[0093] IDLE state: the default state. When the input information is confirmed to be valid, it enters the frame header parsing state. Frame header parsing state: reads the OxID information in the frame header to confirm the order of the received content. After the frame header is read, it enters the SendNumber state. SendNumber state: reads the SendNumber value of the first 4B of the information content and enters the payload state. Payload state: determines the stay time in this state according to the SendNumber value. When all the SendNumber data contents are read, it enters the End state. End state: the reading is completed and it automatically returns to the IDLE state.
[0094] The data content read in the payload state will be stored in the register of the receiving device in the following format: Fig. 9 During the operation, the relevant configuration contents in the configuration address register are retrieved to complete the corresponding configuration.
[0095] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is only limited by the claims and their full scope and equivalents. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
[0096] Those skilled in the art can understand that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be regarded as structures within the hardware component; the modules for implementing various functions can also be regarded as both software programs for implementing the method and structures within the hardware component.
[0097] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0098] In addition, various implementation modes of the embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed by the embodiments of the present invention.
Claims
1. A configuration information transmission system based on FC, characterized in that: The system includes a plurality of networked communication terminal devices, each of which is communicatively connected; wherein each of the networked communication terminal devices includes an FPGA, and the FPGA in each of the networked communication terminal devices includes: A register, wherein the register is used to store current configuration information, wherein the current configuration information includes a default value of the FPGA design or the content of an external memory or other content obtained by parsing the content of an Els frame sent by the networking communication terminal device; An Els framing / disassembling module is used to group the current configuration information into an Els frame and generate current configuration Els frame data, and send the current configuration Els frame data to other networking communication terminal devices.
2. The FC-based configuration information transmission system according to claim 1, characterized in that: The system also includes a switch, which is used to communicate with each of the networking communication terminal devices, and the switch is used to obtain configuration information data sent by the networking communication terminal device as a sending device, and send the obtained configuration information data to the networking communication terminal device as a receiving device.
3. The FC-based configuration information transmission system according to claim 1, characterized in that: The system further includes a switch, the switch being used to communicate with each of the networking communication terminal devices, the switch being used to obtain configuration information data sent by the networking communication terminal device as a sending device, and to send the obtained configuration information data to the networking communication terminal device as a receiving device; The switch is provided with an FPGA, the FPGA includes a register and an Els framing / disassembling module, the register of the FPGA in the switch is used to store current configuration information, wherein the current configuration information includes a default value designed by the FPGA or the content of an external memory or the Els frame content sent by other networking communication terminal devices; The Els framing / disassembling module of the FPGA in the switch is used to assemble the current configuration information into an Els frame and generate current configuration Els frame data, and send the current configuration Els frame data to other networking communication terminal devices; The Els framing / disassembling module of the FPGA in the switch is also used to communicate with the Els framing / disassembling modules in each of the networking communication terminal devices to group the current configuration information in the register in the FPGA in the switch into an Els frame and generate current configuration Els frame data, and send the current configuration Els frame data to each of the networking communication terminal devices.
4. The FC-based configuration information transmission system according to claim 3, characterized in that: The switch is used for information communication with each of the networking communication terminal devices.
5. The FC-based configuration information transmission system according to claim 1, characterized in that: The Els framing / disassembly module is also used to parse the current configuration Els frame data after receiving the current configuration Els frame data, and store the corresponding configuration content in its register, so that the networking communication terminal device as a receiving device can call the relevant configuration parameters corresponding to the corresponding configuration content stored in its register during operation to complete the corresponding configuration.
6. A configuration information transmission method based on the FC-based configuration information transmission system according to any one of claims 1 to 5, characterized in that: The configuration information transmission method comprises: Step S100: the Els framing / disassembling module in the networking communication terminal device as the issuing device assembles the current configuration information stored in its register into an Els frame and generates current configuration Els frame data; Step S200: the networking communication terminal device as the issuing device sends the currently configured Els frame data to the networking communication terminal device as the receiving device; Step S300: After receiving the current configuration Els frame data, the networking communication terminal device as a receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the networking communication terminal device as a receiving device can retrieve the relevant configuration parameters corresponding to the corresponding configuration content stored in its register during operation to complete the corresponding configuration.
7. The configuration information transmission method according to claim 6, characterized in that: When the system further includes a switch, the method further includes: Step S410: the Els framing / disassembling module in the networking communication terminal device as the issuing device assembles the current configuration information stored in its register into an Els frame and generates current configuration Els frame data; Step S420: the networking communication terminal device as the issuing device sends the current configuration Els frame data to the networking communication terminal device as the receiving device via the switch; Step S430: After receiving the current configuration Els frame data, the networking communication terminal device as a receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the networking communication terminal device as a receiving device can retrieve the relevant configuration parameters corresponding to the corresponding configuration content stored in its register during operation to complete the corresponding configuration.
8. The configuration information transmission method according to claim 7, characterized in that: Step S410: the Els framing / disassembling module in the networking communication terminal device as the issuing device assembles the current configuration information stored in its register into an Els frame and generates the current configuration Els frame data, specifically including: When the Els framing / disassembly module in the networking communication terminal device serving as the sending device assembles the current configuration information stored in its register into an Els frame, it fills in the switch interface where the networking communication terminal device serving as the receiving device is located with the address of the Els frame header, so that the networking communication terminal device serving as the sending device sends the current configuration Els frame data to the networking communication terminal device serving as the receiving device via the switch.
9. The configuration information transmission method according to claim 6, characterized in that: When the system includes a switch, and the switch is provided with an FPGA, and the FPGA includes a register and an Els framing / disassembling module, the method further includes: Step S510: the Els framing / disassembling module in the networking communication terminal device as the issuing device assembles the current configuration information stored in its register into an Els frame and generates current configuration Els frame data; Step S520: the networking communication terminal device as the issuing device sends the current configuration Els frame data to the switch as the receiving device; Step S530: After receiving the current configuration Els frame data, the switch as the receiving device parses the current configuration Els frame data and stores the corresponding configuration content in its register, so that the switch as the receiving device can retrieve the relevant configuration parameters corresponding to the corresponding configuration content stored in its register during operation to complete the corresponding configuration.
