A method for simulating time delay characteristics of FC network based on network configuration file
By importing FC network configuration files in XML format, checking the interconnection relationships between node machines and switches and establishing lists, and simulating the data transmission process, the problems of large information input and high error rate in large-scale FC network characteristic simulation are solved, and efficient and accurate time delay characteristic simulation is achieved.
Patent Information
- Application Number
- CN202111152670.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-29
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2041-09-29
Smart Images

Figure CN113849983B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of computer communication technology, in particular to a FC network delay characteristic simulation method based on network configuration file. BACKGROUND
[0002] FC (Fiber Channel) network is a star structure network with FC network switch as the center, connecting FC network switch (hereinafter referred to as switch) and FC network node (hereinafter referred to as node) through optical fiber, transmitting and forwarding in turn according to the priority of data, and providing high bandwidth and low delay performance of FC network data communication at 1Gpbs, 2Gpbs or higher transmission rate.
[0003] Network simulation is a method of simulating network behavior by mathematical modeling and statistical analysis, simulating network traffic transmission by establishing statistical model of network devices and network links, obtaining network performance data required for network design and optimization, and achieving the purpose of network performance analysis before physical development. Network characteristic simulation is the key of network simulation.
[0004] With the continuous expansion of the functions of modern avionics systems and the increasing complexity of device interconnection, the FC network topology architecture and data interaction relationship are becoming more and more complex. In order to simulate the FC network characteristics, the node data transmission characteristics, network interaction data characteristics and switch forwarding characteristics in the FC network need to be simulated. Large-scale FC network characteristic simulation requires a large amount of simulation data information input, and the information is frequently shared. The general network information input method has a huge workload and is prone to errors, which greatly limits the efficiency and accuracy of FC network characteristic simulation. SUMMARY
[0005] Therefore, the present disclosure provides a FC network delay characteristic simulation method based on network configuration file, which carries out correctness verification on the connection relationship information of FC network node and FC network switch in the FC network configuration file in XML (Extensible Markup Language) format, carries out data analysis and information extraction on the FC network configuration file, establishes the list of FC network node and switch, simulates the transmission process of network data sending, forwarding and receiving, and realizes FC network characteristic simulation and evaluation of FC network application layer, link layer end-to-end delay, etc. This method reduces the workload of manually inputting network device characteristics, network topology architecture, message characteristics and other information, improves the consistency and correctness of input file, and greatly improves the efficiency of FC network delay characteristic simulation.
[0006] In order to achieve the above purpose, the present disclosure provides the following technical scheme:
[0007] A FC network delay characteristic simulation method based on network configuration file, comprising:
[0008] S1, supporting external import of FC network configuration file in XML format, and performing correctness check on cross-linking relationship of node machine and switch;
[0009] S2, performing data analysis on FC network configuration file, establishing FC network node machine list, establishing node machine sending mechanism and node machine receiving mechanism, and developing node machine network characteristic simulation;
[0010] S3, performing data analysis on FC network configuration file, establishing FC network switch list, establishing switch forwarding mechanism and switch output mechanism, and developing switch network characteristic simulation;
[0011] S4, calculating simulation message timestamp to obtain message application layer end-to-end delay, message physical link end-to-end delay and message delay in switch.
[0012] Further, the S1 specifically comprises:
[0013] S101, importing FC network configuration file;
[0014] S102, verifying whether the corresponding port of the switch connected with the node machine is enabled in the FC switch, and if there is a non-enabled case, reporting error and prompting error reason;
[0015] S103, verifying whether the cascade port setting between the switches to be cascaded is correct, and if not, reporting error and prompting error reason.
[0016] Further, the S2 specifically comprises:
[0017] S201, traversing FC network configuration file, extracting FC node machine information, and establishing FC network node machine list;
[0018] S202, establishing node machine sending mechanism: simulating data source to generate sending time and message content of simulation message according to attribute of sending message list; identifying simulation message generation timestamp MsgGentime when simulation message is generated, and putting the message into sending message queue of corresponding partition; node reads simulation message from each partition according to priority of sending message and sends, when simulation message is completed, identifying simulation message sending timestamp MsgTxtime, and polling simulation message sending in turn;
[0019] S203, establish node machine receiver mechanism: after the simulation message arrives at the node, identify the simulation message arrival timestamp MsgArvtime, the node according to the purpose application ID of the data, the message is placed in the receiving buffer area of the corresponding partition, data is received from the partition, identify the simulation message receiving timestamp MsgRxtime.
[0020] Further, the S3 specifically includes:
[0021] S301, traverse the FC network configuration file, extract the FC switch information, and establish the FC network switch list;
[0022] S302, establish switch forwarding mechanism: when simulating data arriving at the switch physical port, mark the arrival timestamp SWInporttime of the simulation message at the switch, judge whether the message is unicast or multicast message, and perform corresponding forwarding simulation to store the simulation message in the output queue of the corresponding output port;
[0023] S303, establish switch output mechanism: the switch reads the simulation message from the corresponding output queue according to the priority of the simulation message and outputs it, marks the output timestamp SWOutporttime of the simulation message at the switch, and reads the simulation message from the enabled port of the switch in turn and outputs it.
[0024] Further, in S4, the specific calculation methods of the message application layer end-to-end delay, the message physical link end-to-end delay and the message delay in the switch include:
[0025] S401, message application layer end-to-end delay MsgAppEtEDelay = simulation message receiving timestamp - simulation message generation timestamp MsgGentime;
[0026] S402, message physical link end-to-end delay MsgLinkEtEDelay = simulation message arrival timestamp MsgArvtime - simulation message sending timestamp MsgTxtime;
[0027] S403, message delay in the switch MsgSwDelay = simulation message output timestamp SWOutporttime in the switch - simulation message arrival timestamp SWInporttime in the switch.
[0028] The FC network delay characteristic simulation method based on the network configuration file of the present application supports the import of FC network configuration file, carries out data analysis and information extraction on the FC network configuration file, establishes the FC network node machine and switch list, and realizes the FC network characteristic simulation and the evaluation of FC network application layer, link layer end-to-end delay and the like by simulating the transmission process of network data sending, forwarding and receiving. The method reduces the workload of manually inputting network device characteristics, network topology architecture, message characteristics and the like, improves the consistency and correctness of the input file, and greatly improves the efficiency of FC network delay characteristic simulation. BRIEF DESCRIPTION OF DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0030] Figure 1 The FC network delay characteristic simulation flowchart based on the network configuration file of the present application. DETAILED DESCRIPTION
[0031] The embodiments of the present disclosure will be described in detail below with reference to the drawings.
[0032] The embodiments of the present disclosure will be described in detail below with reference to the drawings.
[0033] It is to be understood that the embodiments described hereinbelow within the scope of the appended claims. It will be apparent to one of ordinary skill in the art that aspects described herein can be implemented in a wide variety of forms, and that any specific structure and / or function described herein is merely illustrative. Based on the teachings provided herein one skilled in the art will appreciate that one or more aspects described herein can be implemented independently of any other aspects described herein. For example, an apparatus can implement one but not all of the aspects described herein. An apparatus can implement two but not all of the aspects described herein. An apparatus can implement three or more, but not all of the aspects described herein. In general, an apparatus can implement any subset of the aspects described herein.
[0034] It is also important to note that the use of the term "illustrative" does not mean "preferred." The detailed description uses numbers in parentheses to facilitate ease of understanding. The numbers in parentheses are not meant to serve as a limitation as to the scope of the various aspects described herein.
[0035] Furthermore, in the following description, numerous specific details are provided for a thorough understanding. One skilled in the relevant art will recognize, however, that the aspects described herein can be practiced without one or more of these specific details.
[0036] An embodiment of a network configuration file based FC network latency characteristic simulation method of the present disclosure is shown in Figure 1 The flow is as follows:
[0037] First, the present application supports external import of FC network network configuration file (hereinafter referred to as FC network configuration file) in XML format as the data source of FC network characteristic simulation. In order to ensure the correctness of the characteristic simulation, the cross-linking relationship between the node machine and the switch in the FC network configuration file needs to be checked. The steps are as follows:
[0038] (1) Import the FC network configuration file, including the configuration information of all node machines and switches in the FC network;
[0039] (2) Verify whether the corresponding port of the switch connected to the node machine is enabled in the FC switch. If there is a non-enabled case, an error is reported and the error reason is prompted;
[0040] (3) Verify whether the cascade port setting between the switches that need to be cascaded is correct. If not, an error is reported and the error reason is prompted.
[0041] Second, data analysis is performed on the FC network configuration file, and a FC network node machine list is established, on the basis of which node machine network characteristic simulation is carried out. The steps are as follows:
[0042] (1) Traverse the FC network configuration file, extract FC node information, and establish a FC network node list. The list includes FC node attributes, partitions, sending messages, and receiving message lists. The specific definitions are shown in Table 1;
[0043] (2) Establish a node transmitter mechanism: The simulation data source generates the sending time and message content of the simulation message according to the attributes of the sending message list. When the simulation message is generated, a simulation message generation timestamp (MsgGenTime) is identified and placed in the sending message queue of the corresponding partition. The node reads the simulation message from each partition according to the priority of the sending message and sends it, with high-priority data being sent first. When the simulation message is completed, a simulation message sending timestamp (MsgTxTime) is identified, and the simulation message is sent in turn;
[0044] (3) Establish a node receiver mechanism: When the simulation message arrives at the node, a simulation message arrival timestamp (MsgArvTime) is identified. The node places the message in the receiving buffer of the corresponding partition according to the destination application ID of the data, and receives the data from the partition, identifying a simulation message receiving timestamp (MsgRxTime).
[0045] Table 1: FC network node list
[0046]
[0047]
[0048] Third step, data analysis of FC network configuration file, establish FC network switch list, on the basis of this list to carry out switch network characteristics simulation. The steps are as follows:
[0049] (1) Traverse the FC network configuration file, extract FC switch information, and establish a FC network switch list. The list includes FC switch attributes, cascade ports, and multicast switching lists. The specific definitions are shown in Table 2;
[0050] (2) Establish a switch forwarding mechanism: When the simulation message arrives at the switch physical port, a simulation message arrival timestamp (SWInportTime) is identified. The switch forwards the message according to its priority, with high-priority data being sent first. Determine whether the message is unicast or multicast. If it is unicast, perform simulated routing forwarding according to the destination application ID (DstAppID) of the simulation message, and store the simulation message in the output queue of the output port. If it is multicast, find the multiple multicast ports according to the multicast configuration ID (GroupcastID) of the simulation message, and store the simulation message in the output queue of the found multicast output port;
[0051] (3) Establish the switch output mechanism: the switch reads the simulation message from the corresponding output queue according to the priority of the simulation message and outputs it, and marks the output timestamp of the simulation message in the switch (SWOutporttime). Poll all enabled ports of the switch in turn to read the simulation message and output it.
[0052] Table 2: FC network switch list
[0053]
[0054] Fourthly, the simulation message timestamp is calculated (see Table 3 for simulation time stamp details), and the network characteristic simulation result is obtained, including the message application layer end-to-end delay, the message physical link end-to-end delay, and the message delay in the switch. The specific calculation method is as follows:
[0055] (1) Message application layer end-to-end delay MsgAppEtEDelay = simulation message receiving timestamp (MsgRxtime) - simulation message generation timestamp (MsgGentime);
[0056] (2) Message physical link end-to-end delay MsgLinkEtEDelay = simulation message arrival timestamp (MsgArvtime) - simulation message sending timestamp (MsgTxtime);
[0057] (3) Message delay in the switch MsgSwDelay = simulation message output timestamp in the switch (SWOutporttime) - simulation message arrival timestamp in the switch (SWInporttime).
[0058] Table 3: Simulation timestamp list
[0059] Sequence Number Timestamp Abbreviation Timestamp Content 1 MsgGenTime Emulated Message Generation Timestamp 2 MsgTxTime Emulated Message Transmission Timestamp 3 MsgArrTime Emulated Message Arrival Timestamp 4 MsgRxTime Emulated Message Reception Timestamp 5 SWOutPortTime Emulated Message Out of Switch Timestamp 6 SWInPortTime Emulated Message In of Switch Timestamp
[0060] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present disclosure, which should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A method for simulating the latency characteristics of an FC network based on a network configuration file, characterized in that, The application comprises the following steps: S1, supporting external import of FC network configuration file in XML format, and checking the correctness of the cross-linking relationship between the node machine and the switch; S2, performing data analysis on the FC network configuration file, establishing a FC network node machine list, establishing a node machine sending mechanism and a node machine receiving mechanism, and developing a node machine network characteristic simulation; S201, traversing the FC network configuration file, extracting FC node machine information, and establishing a FC network node machine list; S202, establishing a node machine sending mechanism: simulating a data source to generate a simulation message sending time and message content according to the properties of a sending message list; when the simulation message is generated, a simulation message generation timestamp is marked, and the message is placed into a sending message queue of a corresponding partition; the node reads the simulation message from each partition according to the priority of the sending message and sends it, when the simulation message is completed, the simulation message sending timestamp is marked, and the simulation message is sent in turn; S203, establishing a node machine receiving mechanism: when the simulation message arrives at the node, a simulation message arrival timestamp is marked, the node places the message in a receiving buffer area of a corresponding partition according to the destination application ID of the data, receives the data from the partition, and marks a simulation message receiving timestamp; S3, performing data analysis on the FC network configuration file, establishing a FC network switch list, establishing a switch forwarding mechanism and a switch output mechanism, and developing a switch network characteristic simulation; The S3 specifically comprises the following steps: S301, traversing the FC network configuration file, extracting FC switch information, and establishing a FC network switch list; S302, establishing a switch forwarding mechanism: when the data arrives at the physical port of the switch, the arrival timestamp of the simulation message at the switch is marked, it is judged whether the message is a unicast or multicast message, and the corresponding forwarding simulation is performed to store the simulation message in the output queue of the corresponding output port; S303, establishing a switch output mechanism: the switch reads the simulation message from the corresponding output queue according to the priority of the simulation message and outputs it, marks the output timestamp of the simulation message at the switch, and reads the simulation message from the enabled port of the switch in turn and outputs it; S4, calculating the simulation message timestamp to obtain the message application layer end-to-end delay, the message physical link end-to-end delay and the message delay at the switch; In S4, the specific calculation method of the message application layer end-to-end delay, the message physical link end-to-end delay and the message delay at the switch comprises the following steps: S401, message application layer end-to-end delay = simulation message receiving timestamp - simulation message generation timestamp; S402, message physical link end-to-end delay = simulation message arrival timestamp - simulation message sending timestamp; S403, message delay at the switch = simulation message output timestamp at the switch - simulation message arrival timestamp at the switch.
2. The network profile based FC network latency characteristic simulation method of claim 1, wherein, The S1 specifically comprises the following steps: S101, importing the FC network configuration file; S102, verifying whether the corresponding port of the switch connected to the node machine is enabled in the FC switch, if there is a non-enabled case, an error is reported and the error reason is prompted; S103, verifying whether the cascade port settings between the switches that need to be cascaded are correct, and if not, reporting an error and prompting the error cause.
Citation Information
Patent Citations
Simulation and demonstration system for design and validation of AFDX (Avionics Full Duplex Switched Ethernet) network and simulation and demonstration method thereof
CN101894192A