A method for generating FC network simulation data based on the whole network planning file
By importing and verifying the FC network overall planning file, establishing a message list and simulating traffic, and generating the FC network full network simulation data, the problem of difficult to ensure the accuracy and authenticity of FC network simulation data in the existing technology is solved, and the quality and simulation efficiency of the simulation data are improved.
Patent Information
- Application Number
- CN202111152685.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-29
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-09-29
AI Technical Summary
The prior art is difficult to effectively build FC network simulation data that is close to the actual network traffic, which makes it difficult to ensure the accuracy and authenticity of FC network simulation data, and the work of creating simulation data is relatively complex and inefficient.
By importing the FC network entire network planning file in XML format, correctness checksum information stripping is performed, FC network message list is established, and traffic simulation is performed according to the simulation parameters and data characteristics of different message types to generate FC network full network simulation data.
It improves the accuracy and authenticity of FC network simulation data, reduces the complexity of creating simulated data, and significantly improves the simulation efficiency of FC network system.
Smart Images

Figure CN113868870B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer communication technology, and in particular to a method for generating FC network simulation data based on a whole network planning file. Background Art
[0002] Network simulation uses mathematical modeling and statistical analysis to simulate network behavior. By building statistical models of network devices and links, network traffic transmission is simulated to obtain network performance data required for network design and optimization, achieving the goal of conducting network performance analysis before the actual object. The simulation of simulation data is the data source of network simulation, and the accuracy of network simulation depends on the accuracy of simulation data.
[0003] FC (Fiber Channel) network is a star-shaped network with FC network switch as the center. FC network switch (hereinafter referred to as switch) and FC network node machine (hereinafter referred to as node machine) are connected by optical fiber. Data is sent and forwarded in sequence according to the priority of data, providing high bandwidth and low latency performance of FC network data communication at a transmission rate of 1Gpbs, 2Gpbs or higher. Data traffic in FC network includes periodic messages, event messages and stream messages.
[0004] As the functions of modern avionics systems continue to expand, the scale of systems increases dramatically, and the interconnection of equipment becomes increasingly complex, the importance of FC network simulation before the actual object becomes more and more prominent. To ensure the accuracy of FC network simulation, it is necessary to establish FC network simulation data that is highly close to the actual network traffic. The traditional way of manually constructing a large amount of network simulation data is labor-intensive and prone to errors. Summary of the invention
[0005] In view of this, the embodiment of the present disclosure provides a method for generating FC network simulation data based on the whole network planning file, which is based on the FC network whole network planning configuration file (hereinafter referred to as the FC network planning file), establishes a FC network message list by performing the correctness check, information stripping and extraction of the whole network planning file, and performs traffic simulation according to the simulation parameters and the data characteristics of different message types, generates FC network whole network simulation data, and provides data support for FC network system simulation. The method ensures the accuracy of FC network simulation data, improves the authenticity of simulation data, reduces the complexity of creating simulation data, and greatly improves the efficiency of network system simulation.
[0006] In order to achieve the above object, the present invention provides the following technical solutions:
[0007] A method for generating FC network simulation data based on a whole network planning file, comprising:
[0008] S1. Support external import of FC network planning files in XML format;
[0009] S2. Check the correctness and consistency of the FC network planning file;
[0010] S3, stripping and extracting the information of the sending communication port attributes of all node machines in the FC network planning file, and establishing an FC network message list;
[0011] S4, inputting simulation parameters for determining the method for generating FC network simulation data;
[0012] S5, classifying data of different message types in the FC network message list, selecting different network simulation data generation methods according to the message types, and generating network simulation data respectively;
[0013] S6. Traverse all nodes, generate all simulation message sequences of all nodes in the FC network, and sort them according to the priorities of the messages in the FC network planning file.
[0014] Furthermore, in S1, an FC network planning file in XML format is imported from outside, including configuration information of all node machines, sending and receiving communication ports of the FC network. If the information is incomplete, an error is reported.
[0015] Furthermore, the S2 specifically includes the following steps:
[0016] S201, verify the integrity of each field in the FC network planning file, and if there is a missing parameter, report an error and prompt;
[0017] S202, performing a range restriction check on each field parameter in the FC network planning file, reporting error information and indicating the cause of the error;
[0018] S203, check the global uniqueness of the node machine number and the sending communication port number in the FC network planning file, and the uniqueness of the receiving communication port number under the node machine. If they are not unique, an error is reported and the cause of the error is prompted.
[0019] Further, in S3, the FC network message list includes a communication source device, a communication identification number, a communication direction, and a communication attribute.
[0020] Further, in S4, the total number of transmissions and the occurrence time of periodic messages, event messages and stream messages are determined by externally inputting simulation parameters; wherein the network simulation parameters that need to be externally input include: the total simulation time T sim , the maximum number of times event and stream messages are sent per minute SC max .
[0021] Furthermore, the S5 specifically includes the following steps:
[0022] S501: The message type is an event message or a stream message. Assume that the sequence number of the message is i, and the maximum number of occurrences per minute is SC max ], a random algorithm is used to generate the number of occurrences of this message per minute C i , calculate the total number of messages M that occur during the simulation time i =T si *C i , and use random algorithm to generate the occurrence time T of simulation data i ;
[0023] S502: The message type is a periodic message. The occurrence time T of the first message is calculated using a random algorithm of [0, sending period]. i1 , taking the sending period as the frequency, calculate the occurrence time T of the Kth message according to the uniform distribution algorithm iK =T i1 +Sending cycle*(K-1).
[0024] Furthermore, the S6 specifically includes:
[0025] S601, generating event message, stream message and queue message simulation data of the first node machine;
[0026] S602, sorting all simulation messages of the first node machine by time;
[0027] S603, performing a sending conflict check on the simulation message sequence of the first node machine. If multiple simulation data are sent at the same time, the multiple simulation data are sorted in order from large to small priority values.
[0028] The FC network simulation data generation method based on the whole network planning file of the present invention supports the import of the whole network FC network planning file in XML format, ensures the correctness of the simulation data source by carrying out correctness verification; strips and extracts the information of the FC network planning file to establish the basic information of the FC network simulation data; generates simulation data based on the behavior characteristics of different message types, approximates the real sending characteristics of FC network data, and generates FC network whole network simulation data in batches. The method improves the correctness, accuracy and authenticity of the simulation data, reduces the complexity of creating simulation data, and greatly improves the efficiency of FC network system simulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0030] Figure 1 It is the FC network simulation data generation process of the XML format whole network planning file in the present invention;
[0031] Figure 2 This is a flow chart of the generation of full network simulation data in the present invention. DETAILED DESCRIPTION
[0032] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0033] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0034] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.
[0035] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0036] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.
[0037] like Figure 1-Figure 2 As shown, the embodiment of the present disclosure provides an implementation method of a method for generating FC network simulation data based on a whole network planning file, which specifically includes the following steps:
[0038] In the first step, the present invention supports external import of FC network planning files in XML (Extensible Markup Language) format. The FC network planning file includes the configuration information of all node machines, sending and receiving communication ports of the FC network, and an error is reported if the information is incomplete. The specific definition is shown in Table 1:
[0039] Table 1 Definition of FC network planning file in XML format
[0040]
[0041]
[0042] In the second step, in order to ensure the parameter correctness and information integrity of the externally imported FC network planning file, the present invention needs to perform a correctness check on the FC network planning file. The steps are as follows:
[0043] (1) Verify the integrity of each field in the FC network planning file and report an error if any parameter is missing;
[0044] (2) Perform a range-limited check on each field parameter in the FC network planning file, report any error information, and indicate the cause of the error;
[0045] (3) Check the global uniqueness of the node machine number and the sending communication port number in the FC network planning file, as well as the uniqueness of the receiving communication port number under the node machine. If they are not unique, an error message will be reported and the cause of the error will be prompted.
[0046] The third step is to strip and extract the information of the sending communication port attributes of all node machines in the FC network planning file, and establish an FC network message list, as shown in Table 2. The list includes the communication source device, communication identification number, communication direction and communication attributes.
[0047] Table 2 FC network message list
[0048]
[0049]
[0050] The fourth step is to generate FC network simulation data that is close to the real one. It is necessary to define the total number and occurrence time of simulation messages in the FC network. This method uses external input simulation parameters to determine the total number and occurrence time of periodic messages, event messages, and flow messages. The total simulation time T sim( minutes), the maximum number of times event and stream messages are sent per minute SC max (Send Count, number of times sent), as shown in Table 3:
[0051] Table 3 FC network simulation parameter definitions
[0052] Serial number Simulation parameters abbreviation 1 Total simulation time (minutes) Tsim 2 Maximum number of events and stream messages sent per minute SCmax
[0053] The fifth step is to classify the data of different message types in the FC network message list, and select different network simulation data generation methods according to the message type. The steps are as follows:
[0054] (1) The message type is an event message or a stream message. Assume that the sequence number of the message is i, and the maximum number of occurrences per minute is SC max ], a random algorithm is used to generate the number of occurrences of this message per minute C i . Calculate the total number of messages M that occur during the simulation time. i =T si *C i . And use random algorithm to generate the occurrence time T of simulation data i ;
[0055] (2) If the message type is a periodic message, the occurrence time of the first message is calculated using a random algorithm of [0, sending period]. With the sending period as the frequency, the occurrence time T of the Kth message is calculated using a uniform distribution algorithm. iK =T i1 +Sending cycle*(K-1).
[0056] The method for generating FC network simulation data is detailed in Table 4 below:
[0057] Table 4 FC network simulation data generation method
[0058]
[0059] Step 6: traverse all nodes, generate all simulation message sequences of all nodes in the FC network, and sort them according to the priority of the messages in the FC network planning file. Specifically:
[0060] (1) Generate event message, stream message and queue message simulation data of the first node machine;
[0061] (2) Time sorting of all simulation messages of the first node machine;
[0062] (3) Perform a sending conflict check on the simulation message sequence of the first node machine. If multiple simulation data are sent at the same time, sort the multiple simulation data in descending order of priority values.
[0063] The simulation message sequence is specifically defined as shown in Table 5:
[0064] Table 5 FC network simulation message sequence definition
[0065]
[0066]
[0067] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for generating FC network simulation data based on a whole network planning file, characterized in that: include: S1. Support external import of FC network planning files in XML format; S2. Check the correctness and consistency of the FC network planning file; S3, stripping and extracting the information of the sending communication port attributes of all node machines in the FC network planning file, and establishing an FC network message list; S4, inputting simulation parameters for determining the method for generating FC network simulation data; S5, classifying data of different message types in the FC network message list, selecting different network simulation data generation methods according to the message types, and generating network simulation data respectively; S6, traversing all nodes, generating all simulation message sequences of all nodes in the FC network, and sorting them according to the priority of the messages in the FC network planning file; In S4, the total number of periodic messages, event messages and flow messages sent and the time of occurrence are determined by externally inputting simulation parameters; wherein the network simulation parameters that need to be externally input include: the total simulation time T sim , the maximum number of times event and stream messages are sent per minute SC max ; The S5 specifically includes the following steps: S501: The message type is an event message or a stream message. Assume that the sequence number of the message is i, and the maximum number of occurrences per minute is SC max ], a random algorithm is used to generate the number of occurrences of this message per minute C i , calculate the total number of messages M that occur during the simulation time i =T i *C i , and use random algorithm to generate the occurrence time T of simulation data i ; S502: The message type is a periodic message. The occurrence time T of the first message is calculated using a random algorithm of [0, sending period]. i1 , taking the sending period as the frequency, calculate the occurrence time T of the Kth message according to the uniform distribution algorithm iK =T i1 +Sending cycle*(K-1).
2. The method for generating FC network simulation data based on the whole network planning file according to claim 1, characterized in that: In S1, an FC network planning file in XML format is imported from the outside, including configuration information of all node machines, sending and receiving communication ports of the FC network. If the information is incomplete, an error is reported.
3. The method for generating FC network simulation data based on the whole network planning file according to claim 1, characterized in that: The S2 specifically includes the following steps: S201, verify the integrity of each field in the FC network planning file, and if there is a missing parameter, report an error and prompt; S202, performing a range restriction check on each field parameter in the FC network planning file, reporting error information and indicating the cause of the error; S203, check the global uniqueness of the node machine number and the sending communication port number in the FC network planning file, and the uniqueness of the receiving communication port number under the node machine. If they are not unique, an error is reported and the cause of the error is prompted.
4. The method for generating FC network simulation data based on the whole network planning file according to claim 1, characterized in that: In S3, the FC network message list includes a communication source device, a communication identification number, a communication direction, and a communication attribute.
5. The method for generating FC network simulation data based on the whole network planning file according to claim 1, characterized in that: The S6 specifically includes: S601, generating event message, stream message and queue message simulation data of the first node machine; S602, sorting all simulation messages of the first node machine by time; S603, performing a sending conflict check on the simulation message sequence of the first node machine. If multiple simulation data are sent at the same time, the multiple simulation data are sorted in order from large to small priority values.
Citation Information
Patent Citations
Data channel scheduling method of multichannel FC network data simulation system
CN103888293A
Time-triggered Ethernet simulation system
CN109150559A