CN-121098736-B - FC network simulation method and device based on simulation platform and electronic equipment
Abstract
The application discloses an FC network simulation method, an FC network simulation device and electronic equipment based on a simulation platform, and relates to the technical field of optical communication network simulation. And constructing an FC switch model based on simulation parameters, wherein the FC switch model comprises a switch port model, a message distribution model and a switch processor model, and the switch port model comprises cascade ports, so that the accurate simulation of a large-scale network is realized. The FC message is sent to the switch port model through the FC node model and uploaded to the message distribution model through the switch port model, the FC message is distributed to the switch processor model or the cascade port according to the message domain information based on the message distribution model, the FC message is cached based on the switch processor model or the cascade port and forwarded to the corresponding target node model based on the priority, a reliable distribution mechanism is realized, and the simulation adaptability is improved.
Inventors
- WEI HENG
- TANG DONGSHENG
- LI XIN
Assignees
- 武汉中航通用科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20250904
Claims (9)
- 1. The FC network simulation method based on the simulation platform is characterized by comprising the following steps: configuring simulation parameters, wherein the simulation parameters comprise structure configuration parameters and message configuration parameters; Constructing an FC node model based on the simulation parameters to generate an FC message, wherein the FC node model comprises a flow model, an interface control model, a service model and an FC processor model; Constructing an FC switch model based on the simulation parameters, wherein the FC switch model comprises a switch port model, a message distribution model and a switch processor model, and the switch port model comprises cascade ports; message transmission is carried out between the FC node model and the FC switch model; the step of constructing an FC node model based on the simulation parameters and generating an FC message comprises the following steps: distributing node addresses for each FC node model according to the structure configuration parameters, and configuring source addresses, target addresses, load lengths and priorities for each message according to the message configuration parameters to obtain node configuration information; Sending the message configuration parameters to the flow model, extracting flow parameters and generating flow messages; The flow information is sent to the interface control model to obtain an interface control information; Inputting the interface control message into the service model, and carrying out service injection on load data of the interface control message to generate a processed message; Sending the processed message to the FC processor model, and framing the processed message according to the node configuration information to generate an FC message; the step of transmitting the message between the FC node model and the FC switch model comprises the following steps: Sending an FC message to the switch port model through the FC node model, and uploading the FC message to the message distribution model through the switch port model; based on the message distribution model, distributing the FC message to the exchanger processor model or the cascade port according to the message domain information; based on the switch processor model or the cascade port, the FC message is cached and forwarded to a corresponding target node model based on priority.
- 2. The method of claim 1, wherein the business model comprises a sequential integrity injection model and a data integrity injection model, wherein the step of inputting the interface control message into the business model, performing business injection on load data of the interface control message, and generating a processed message comprises: Injecting sequence identifiers to the load part of the interface control message through the sequence integrity injection model to generate a first processed message; And injecting a cyclic redundancy check code into the load part of the interface control message through the data integrity injection model to generate a second processed message.
- 3. The method of claim 2, wherein the traffic model further comprises a sequential integrity check model and a data integrity check model, the step of transmitting messages between the FC node model and the FC switch model followed by: if the FC message contains a sequence identifier, checking the validity of the sequence identifier through the sequence integrity check model; And if the FC message contains the cyclic redundancy check code, checking the validity of the cyclic redundancy check code through the data integrity check model.
- 4. The method of claim 1, wherein the flow model comprises a poisson distribution flow model, an exponential distribution flow model, and a lognormal distribution flow model, the steps of sending the message configuration parameters to the flow model, extracting flow parameters, and generating a flow message comprising: Extracting flow distribution characteristics based on the message configuration parameters, wherein the flow distribution characteristics comprise poisson distribution flow characteristics, exponential distribution flow characteristics and lognormal distribution characteristics; when the flow distribution characteristic is a poisson distribution flow characteristic, using the poisson distribution flow model, wherein the poisson distribution flow model is used for simulating the occurrence rate of random events; when the flow distribution characteristic is an exponential distribution flow characteristic, using the exponential distribution flow model, wherein the exponential distribution flow model is used for simulating exponential decay of the interval time; When the flow distribution characteristic is a lognormal distribution characteristic, using the lognormal distribution flow model, wherein the lognormal distribution flow model is used for simulating long tail distribution characteristics; and extracting flow parameters and generating flow messages based on the flow model and the priority.
- 5. The method of claim 1, wherein the step of distributing the FC message to the switch processor model or the tandem port according to the message domain information based on the message distribution model comprises: After the message distribution model receives the FC message, judging whether the FC message is a current domain message or not; If the FC message is the current domain message, distributing the current domain message to the exchanger processor model; And if the FC message is not the current domain message, distributing the FC message to the cascade port.
- 6. The method of claim 1, wherein the step of messaging between the FC node model and the FC switch model further comprises: When the triggering condition is met, a fault injection model is inserted between the FC node model and the FC switch model, wherein the fault injection model comprises a physical fault injection model, an FC head fault injection model, a packet loss model and a cyclic redundancy check error injection model; based on the physical fault injection model, randomly injecting error codes into a load part, and simulating error code phenomenon in the actual transmission process; Based on the FC head fault injection model, replacing the original field with a new FC head field according to an FC head matching rule, and simulating FC head fault injection; based on the packet loss model, randomly selecting and discarding a message for simulating the packet loss phenomenon in actual transmission; And injecting an error cyclic redundancy check code based on a cyclic redundancy check error injection model, wherein the error cyclic redundancy check code is used for simulating the cyclic redundancy check error phenomenon in actual transmission.
- 7. The method of claim 1, wherein the node model comprises a clock-synchronized FC node model, the step of transmitting messages between the FC node model and the FC switch model comprising: Transmitting PTP protocol messages between the clock synchronization FC node model and the FC switch model, wherein the clock synchronization FC node model comprises a master node model and a slave node model; the step of transmitting PTP protocol messages between the clock synchronization FC node model and the FC switch model includes: the master node model broadcasts and sends a PTP synchronous clock message to the slave node model according to a synchronous time interval; After receiving the PTP synchronous clock message, the slave node model sends a PTP clock request message to the master node model; After receiving the PTP clock request message, the master node sends a PTP clock request response message to the slave node; After receiving the PTP clock request response message, the slave node calculates a time offset according to the PTP synchronous clock message and the PTP clock request response message, and corrects the time of the slave node model based on the time offset; And returning to the step that the master node model broadcasts and sends PTP synchronous clock messages to the slave node model according to the synchronous time interval until the time of the master node model and the slave node model is synchronous.
- 8. An FC network simulation apparatus based on a simulation platform, wherein the FC network simulation apparatus based on a simulation platform comprises: The parameter configuration module is used for configuring simulation parameters, wherein the simulation parameters comprise structure configuration parameters and message configuration parameters; the node construction module is used for constructing an FC node model based on the simulation parameters and generating an FC message, and the FC node model comprises a flow model, an interface control model, a service model and an FC processor model; The switch building module is used for building an FC switch model based on the simulation parameters, wherein the FC switch model comprises a switch port model, a message distribution model and a switch processor model, and the switch port model comprises cascade ports; The message transmission module is used for transmitting messages between the FC node model and the FC switch model; The node construction module is further configured to allocate a node address to each FC node model according to the structure configuration parameter, and configure a source address, a target address, a load length and a priority for each message according to the message configuration parameter, so as to obtain node configuration information; the method comprises the steps of sending message configuration parameters to a flow model, extracting the flow parameters and generating flow messages, sending the flow messages to an interface control model to obtain interface control messages, inputting the interface control messages to a service model, carrying out service injection on load data of the interface control messages to generate processed messages, sending the processed messages to an FC processor model, carrying out FC protocol framing on the processed messages according to node configuration information, and generating FC messages; The message transmission module is further configured to send an FC message to the switch port model through the FC node model and upload the FC message to the message distribution model through the switch port model, distribute the FC message to the switch processor model or the cascade port according to the message domain information based on the message distribution model, cache the FC message based on the switch processor model or the cascade port, and forward the FC message to a corresponding target node model based on priority.
- 9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the simulation platform based FC network simulation method of any one of claims 1 to 7.
Description
FC network simulation method and device based on simulation platform and electronic equipment Technical Field The present application relates to the field of optical communication network simulation technologies, and in particular, to an FC network simulation method and apparatus based on a simulation platform, and an electronic device. Background FC (Fiber Channel) network simulation technology is widely applied to the fields of avionics systems, data centers, storage area networks and the like. Along with the expansion of network scale, especially when simulating a large-scale or ultra-large FC network, the traditional simulation method faces serious tests, the number of nodes is increased rapidly to cause the exponential increase of hardware cost, the complexity of FC protocol stack is increased, the delay accumulation effect during cascade of a multistage switch is obviously reduced in calculation precision, and the stability and reliability of the large-scale complex network are difficult to verify by the current method. Therefore, how to improve the adaptability of large-scale FC network simulation is a problem that needs to be solved at present. Disclosure of Invention The application mainly aims to provide an FC network simulation method and device based on a simulation platform and electronic equipment, and aims to solve the technical problem of how to improve the adaptability of large-scale FC network simulation. In order to achieve the above purpose, the present application provides an FC network simulation method based on a simulation platform, the method comprising: Configuring simulation parameters; Constructing an FC node model based on the simulation parameters, and generating an FC message; Constructing an FC switch model based on the simulation parameters, wherein the FC switch model comprises a switch port model, a message distribution model and a switch processor model, and the switch port model comprises cascade ports; message transmission is carried out between the FC node model and the FC switch model; the step of transmitting the message between the FC node model and the FC switch model comprises the following steps: Sending an FC message to the switch port model through the FC node model, and uploading the FC message to the message distribution model through the switch port model; based on the message distribution model, distributing the FC message to the exchanger processor model or the cascade port according to the message domain information; based on the switch processor model or the cascade port, the FC message is cached and forwarded to a corresponding target node model based on priority. In an embodiment, the simulation parameters include a structure configuration parameter and a message configuration parameter, the FC node model includes a flow model, an interface control model, a service model, and an FC processor model, and the step of constructing the FC node model based on the simulation parameters and generating the FC message includes: distributing node addresses for each FC node model according to the structure configuration parameters, and configuring source addresses, target addresses, load lengths and priorities for each message according to the message configuration parameters to obtain node configuration information; Sending the message configuration parameters to the flow model, extracting flow parameters and generating flow messages; The flow information is sent to the interface control model to obtain an interface control information; Inputting the interface control message into the service model, and carrying out service injection on load data of the interface control message to generate a processed message; And sending the processed message to the FC processor model, and framing the processed message by using an FC protocol according to the node configuration information to generate an FC message. In an embodiment, the service model includes a sequential integrity injection model and a data integrity injection model, the step of inputting the interface control message into the service model, performing service injection on load data of the interface control message, and generating a processed message includes: Injecting sequence identifiers to the load part of the interface control message through the sequence integrity injection model to generate a first processed message; And injecting a cyclic redundancy check code into the load part of the interface control message through the data integrity injection model to generate a second processed message. In an embodiment, the service model further includes a sequential integrity check model and a data integrity check model, and after the step of transmitting the message between the FC node model and the FC switch model, the method includes: if the FC message contains a sequence identifier, checking the validity of the sequence identifier through the sequence integrity check model; And if the FC message contains t