CN109873742B - Simulation control method and device for FC-AE bus - Google Patents

Simulation control method and device for FC-AE bus Download PDF

Info

Publication number
CN109873742B
CN109873742B CN201910149873.1A CN201910149873A CN109873742B CN 109873742 B CN109873742 B CN 109873742B CN 201910149873 A CN201910149873 A CN 201910149873A CN 109873742 B CN109873742 B CN 109873742B
Authority
CN
China
Prior art keywords
simulation
scheduling
message
sensitive information
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910149873.1A
Other languages
Chinese (zh)
Other versions
CN109873742A (en
Inventor
马巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Runke General Technology Co Ltd
Original Assignee
Beijing Runke General Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Runke General Technology Co Ltd filed Critical Beijing Runke General Technology Co Ltd
Priority to CN201910149873.1A priority Critical patent/CN109873742B/en
Publication of CN109873742A publication Critical patent/CN109873742A/en
Application granted granted Critical
Publication of CN109873742B publication Critical patent/CN109873742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a simulation control method and a device of an FC-AE bus, comprising the following steps: receiving simulation parameters and scheduling information set by a user, and generating a scheduling table and a preset corresponding relation of the scheduling information, wherein the scheduling table comprises a scheduling strategy, and the preset corresponding relation represents the corresponding relation of sensitive information and the scheduling strategy; when simulation operation is executed, a first simulation message triggering the FC-AE bus node to feed back a response message is generated according to a scheduling table, then sensitive information is obtained after the response message fed back by the FC-AE bus node is received each time, a second simulation message is determined according to a preset corresponding relation and the scheduling table, and the second simulation message is sent to the FC-AE bus node. Therefore, the simulation message can be automatically generated through the generated scheduling table and the preset corresponding relation, so that the automatic simulation of the FC-AE bus is realized, and the simulation efficiency is improved.

Description

Simulation control method and device for FC-AE bus
Technical Field
The invention relates to the field of simulation of FC-AE (fiber channel-AE) buses, in particular to a simulation control method and a simulation control device of an FC-AE bus.
Background
The Fiber Channel Avionics Environment (FC-AE for short in chinese) is a family of protocols established by the Fiber Channel standard development organization for defining in detail a specific system that can be used in the Fiber Channel Avionics Environment. The protocol organically integrates reliable channel technology with flexible and extensible network technology.
In order to know the performance of the FC-AE bus, the FC-AE bus needs to be simulated, but in the prior art, manual or semi-automatic simulation is generally adopted, so that the simulation is labor-consuming and inefficient.
Disclosure of Invention
In view of this, the embodiment of the invention discloses a simulation control method and device for an FC-AE bus, which solves the problem that automatic simulation cannot be realized in the prior art and improves simulation efficiency.
The embodiment of the invention discloses a simulation control method of an FC-AE bus, which comprises the following steps:
receiving simulation parameters and scheduling information set by a user, and generating a scheduling table and a preset corresponding relation according to the scheduling information; the scheduling table comprises scheduling strategies, and the preset corresponding relation represents the corresponding relation between the sensitive information and the scheduling strategies;
responding to a simulation starting instruction, generating a first simulation message according to the scheduling table, and sending the first simulation message to an FC-AE bus node;
receiving a response message fed back after the FC-AE bus node receives the simulation message each time;
extracting sensitive information in the response message;
indexing is carried out on the scheduling table according to the sensitive information in the response message and the preset corresponding relation, and a scheduling strategy corresponding to the sensitive information in the response message is obtained;
and generating a second simulation message according to the scheduling strategy obtained by the index and the simulation parameters, and sending the second simulation message to the FC-AE bus node.
Optionally, the generating a scheduling table and a preset corresponding relationship according to the scheduling information includes:
acquiring a scheduling strategy and sensitive information from the scheduling information;
generating the scheduling table according to the acquired scheduling strategy; each scheduling strategy corresponds to a scheduling strategy address;
and corresponding the scheduling policy address with the acquired sensitive information to obtain the preset corresponding relation.
Optionally, the simulation parameters include a preset simulation frequency or a preset simulation time, and further include:
judging whether the preset simulation times or the preset simulation time is reached;
and if the preset simulation times or the preset simulation time is reached, stopping the simulation.
Optionally, the generating the second simulation packet according to the scheduling policy obtained by the indexing and the simulation parameter includes:
generating a simulation sequence according to the scheduling strategy obtained by the index and the first simulation parameter; the first simulation parameter is a parameter which represents the simulation sequence content in the simulation parameters;
generating a second simulation message according to the second simulation parameter and the simulation sequence; the second simulation parameter is a parameter representing a message sending mode in the simulation parameters.
Optionally, the method further includes:
and sending the sensitive information extracted from the response message to the host.
The embodiment of the invention also discloses a simulation control device of the FC-AE bus, which comprises the following steps:
FC-AE interface, emulation control module and host interface;
the FC-AE interface is connected with one end of the simulation control module, and the host interface is connected with the other end of the simulation control module;
the simulation control module is used for receiving simulation parameters and scheduling information set by a user through the host interface and generating a scheduling table and a preset corresponding relation according to the scheduling information; the scheduling table comprises scheduling strategies, and the preset corresponding relation represents the corresponding relation between the sensitive information and the scheduling strategies;
responding to a simulation starting instruction, generating a first simulation message according to the scheduling table, and sending the first simulation message to an FC-AE bus node through the FC-AE interface;
receiving a response message fed back after the FC-AE bus node receives the simulation message each time through the FC-AE interface;
extracting sensitive information in the response message;
indexing is carried out on the scheduling table according to the sensitive information in the response message and the preset corresponding relation, and a scheduling strategy corresponding to the sensitive information in the response message is obtained;
and generating a second simulation message according to the scheduling strategy obtained by the index and the simulation parameters, and sending the second simulation message to the FC-AE bus node through the FC-AE interface.
Optionally, the simulation control module includes:
the system comprises a data receiving module, a simulation analysis module, a simulation scheduling module, a simulation sequence control module, a configuration module and a data sending module;
the data receiving module is connected with the FC-AE interface and used for receiving corresponding messages fed back by the FC-AE bus node after receiving the simulation messages each time through the FC-AE interface;
the data sending module is connected with the FC-AE interface and used for sending a simulation message to the FC-AE bus node through the FC-AE interface;
the configuration module is used for receiving simulation parameters and scheduling information set by a user through the host interface, sending the simulation parameters to the simulation sequence control module, and sending the scheduling information to the simulation scheduling module;
the simulation analysis module is used for analyzing the response message received by the data receiving module and extracting the sensitive information in the response message;
the simulation scheduling module is used for generating a scheduling table and a preset corresponding relation according to the scheduling information after receiving the scheduling information, indexing in the scheduling table according to the sensitive information in the response message and the preset corresponding relation after receiving the sensitive information in the response message sent by the simulation analysis module, obtaining a scheduling strategy corresponding to the sensitive information in the response message, and sending the scheduling strategy obtained by indexing to the simulation sequence control module;
the simulation sequence control module is used for responding to a simulation starting instruction, generating a first simulation message according to the scheduling table generated by the simulation scheduling module, and sending the first simulation message to the FC-AE bus node through the data sending module; and the second simulation message is generated according to the simulation parameters received from the configuration module and the scheduling policy received from the simulation scheduling module, and is sent to the FC-AE bus node through the data sending module.
Optionally, the simulation scheduling module is further configured to obtain a scheduling policy and sensitive information from the scheduling information; generating the scheduling table according to the acquired scheduling strategy; each scheduling strategy corresponds to a scheduling strategy address; and corresponding the scheduling policy address with the acquired sensitive information to obtain the preset corresponding relation.
Optionally, the simulation parameter includes a preset simulation frequency or a preset simulation time, and the simulation control module is further configured to: judging whether the preset simulation times or the preset simulation time is reached; and if the preset simulation times or the preset simulation time is reached, stopping the simulation.
Optionally, the simulation parameters include a first simulation parameter and a second simulation parameter, and the simulation sequence control module is specifically configured to generate a simulation sequence according to the scheduling policy obtained by indexing and the first simulation parameter; the first simulation parameter is a parameter which represents the simulation sequence content in the simulation parameters; generating the second simulation message according to the second simulation parameter and the simulation sequence; the second simulation parameter is a parameter representing a message sending mode in the simulation parameters.
Optionally, the simulation analysis module is further configured to, after the sensitive information in the response message is extracted, send the sensitive information in the response message to the host through the host interface, so that a user may analyze the sensitive information in the response message.
Optionally, the simulation control module is a field programmable gate array FPGA.
The embodiment of the invention discloses a simulation control method and a device of an FC-AE bus, wherein the method comprises the following steps: receiving simulation parameters and scheduling information set by a user, and generating a scheduling table and a preset corresponding relation of the scheduling information, wherein the scheduling table comprises a scheduling strategy, and the preset corresponding relation represents the corresponding relation of sensitive information and the scheduling strategy; when simulation operation is executed, a first simulation message triggering an FC-AE bus node to feed back a response message is generated according to a scheduling table, then sensitive information is obtained after the response message fed back by the FC-AE bus node is received each time, indexing is carried out in the scheduling table according to the sensitive information and a preset corresponding relation, a scheduling strategy corresponding to the sensitive information is obtained, a second simulation message is generated according to the scheduling strategy and simulation parameters, and the second simulation message is sent to the FC-AE bus node. Therefore, the simulation message can be automatically generated through the generated scheduling table, the preset corresponding relation and the simulation parameters, so that the automatic simulation of the FC-AE bus is realized, and the simulation efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart illustrating a simulation control method for an FC-AE bus according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an emulation apparatus for an FC-AE bus according to an embodiment of the present invention;
fig. 3 shows a schematic structural diagram of a simulation control module according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic flow chart of a simulation control method for an FC-AE bus according to an embodiment of the present invention is shown, where the method includes:
s101: receiving simulation parameters and scheduling information set by a user, and generating a scheduling table and a preset corresponding relation according to the scheduling information; the scheduling table comprises scheduling strategies, and the preset corresponding relation represents the corresponding relation between the sensitive information and the scheduling strategies.
In this embodiment, the simulation parameter is parameter information required for generating and sending a simulation packet, and includes, for example: simulation mode, rate, simulation time (or simulation times), message length, message type, sequence interval, etc. The scheduling information is information required for generating a scheduling table and a preset correspondence, and includes, for example: scheduling policies, sensitive information and the like, wherein each scheduling policy corresponds to the sensitive information one to one. And the user can set the simulation parameters and the scheduling information according to the actual situation.
After a user needs to set a message type, a simulation mode is set according to the set message type, and if the set message type is a data message, one of three simulation modes corresponding to the data message, namely a fixed data simulation mode, an incremental data simulation mode and a random data simulation mode, is selected to be set as the simulation mode of the simulation. And completing the configuration of other simulation parameters at any time before the simulation starting instruction is sent.
Sensitive information includes some key field information of the FC-AE bus, such as source address, destination address, switch number, message number, etc.
The scheduling strategy is set by a user, the scheduling strategy corresponds to the sensitive information one by one, if the user sets 3 scheduling strategies in primary simulation, the source address of the simulation message corresponding to the first scheduling strategy is 1, the destination address is 2, and the source address of the corresponding sensitive information is 2, the destination address is 1; the source address of the simulation message corresponding to the second scheduling strategy is 2, the destination address is 3, and the source address of the corresponding sensitive information is 3, and the destination address is 2; the source address of the simulation message corresponding to the third scheduling policy is 3, and the destination address is 4, and the source address of the corresponding sensitive information is 4, and the destination address is 3.
In this embodiment, after receiving the simulation parameters and the scheduling information set by the user, the simulation parameters and the scheduling information are latched, that is, the simulation parameters and the scheduling information are stored in the storage medium, so that the information can be conveniently called for use later.
The generation process of the scheduling table and the preset corresponding relation comprises the following steps:
acquiring a scheduling strategy and sensitive information from the scheduling information;
generating the scheduling table according to the acquired scheduling strategy; each scheduling strategy corresponds to a scheduling strategy address;
and corresponding the scheduling policy address with the acquired sensitive information to obtain the preset corresponding relation.
In this embodiment, the scheduling table includes a plurality of addresses, issues the scheduling policy to each address, and represents the address including the scheduling policy as the scheduling policy address. And, the scheduling policy is issued to each address, which may be issued according to a preset sequence, or may be issued randomly to the address.
And the sensitive information corresponds to the scheduling policy one by one, and after the scheduling policy is stored in each address of the scheduling table, the corresponding relation between the scheduling policy address and the sensitive information can be obtained, namely the preset corresponding relation.
For example, the following steps are carried out: assuming that the length of the scheduling table is 10 and the address of the scheduling table is 0-9, issuing the scheduling policy to the address of 0-9, and corresponding the address of the scheduling policy to the sensitive information to obtain a preset corresponding relation.
In this embodiment, simulation parameters such as a simulation mode, a rate, simulation time, simulation times, a message length, a message type, and a sequence interval are set by a user, so that the configuration of the rate of message transmission, the message length, and the like, the control of the simulation time or the simulation times, and the like in the simulation process are realized, and the simulation of the performance of the FC-AE bus is realized in different simulation modes, different rates, and simulation scenes.
S102: and responding to a simulation starting instruction, generating a first simulation message according to the scheduling table, and sending the first simulation message to the FC-AE bus node.
In this embodiment, different scheduling policies are stored in each address of the scheduling table, a simulation message is generated according to the scheduling policy in the scheduling table (in this step, when a simulation start instruction is received, a simulation message, that is, a first simulation message, may be generated directly according to one scheduling policy in the scheduling table), and the first simulation message is sent to the FC-AE bus node, so as to obtain a response message of the FC-AE bus node to the first simulation message. After receiving each simulation message, the FC-AE bus node feeds back a response message.
The scheduling strategy stored in any address in the scheduling table can be called, and the first simulation message is generated according to the scheduling strategy. Specifically, S102 includes:
acquiring a scheduling strategy stored on a preset address in the scheduling table;
generating a first simulation message according to a scheduling strategy stored on a preset address in the scheduling table;
and sending the first simulation message to the FC-AE bus node.
The preset address may be any address in the schedule table, for example, the preset address may be a first address of the schedule table.
In this embodiment, the simulation start instruction may include the following two implementation manners:
the first implementation mode comprises the following steps: the simulation starting instruction is generated through manual starting and responds to the manual starting instruction.
For example, the following steps are carried out: the simulation control system comprises a starting button, and a user can operate the manual starting button or control and respond to the manual starting instruction to generate a simulation starting instruction.
The second embodiment: and starting simulation according to a preset starting trigger signal to generate a simulation starting instruction.
S103: and receiving a response message fed back after the FC-AE bus node receives the simulation message each time.
In this embodiment, after sending the first emulation packet to the FC-AE bus node, the FC-AE bus may generate a response packet according to the first emulation packet, and feed back the response packet to the emulation apparatus.
And before the simulation is not stopped, subsequently, indexing is carried out in the scheduling table according to the sensitive information in each response message and the preset corresponding relation to obtain a corresponding scheduling strategy, and when each scheduling strategy is obtained, a simulation message (namely a second simulation message) is generated according to the scheduling strategy and the simulation parameters, and the generated simulation message is sent to the FC-AE bus node. After the FC-AE bus node receives the simulation message each time, the simulation message received each time is fed back to a corresponding response message of the simulation device, and the simulation is completed by circulating execution. The whole simulation process is illustrated here by way of example: further, the 3 mentioned above scheduling policies are explained, after the simulation start instruction is obtained, if the first scheduling policy is executed, the source address of the sensitive information corresponding to the first scheduling policy is 2, and the destination address is 1, so that the first simulation message with the source address of 1 and the destination address of 2 is generated and sent to the FC-AE bus node. And if the source address of the sensitive information in the feedback response message after the FC-AE bus node receives the first simulation message is 4 and the destination address is 3, correspondingly generating a second simulation message with the source address of 3 and the destination address of 4 by combining the simulation parameters and the third scheduling strategy corresponding to the third scheduling strategy, and sending the second simulation message to the FC-AE bus node. And then, after receiving a second simulation message, the FC-AE bus node feeds back a response message, obtains a corresponding source address, a corresponding destination address and the like according to sensitive information in the response message, further obtains a corresponding scheduling strategy, subsequently regenerates a second simulation message according to the scheduling strategy and the simulation parameters, and the steps are repeated until the simulation times or the simulation time is reached to finish the simulation. The source address and the destination address of the sensitive information in the response message fed back by the FC-AE bus nodes in different cycle periods may be the same or different, for example, the first simulation message finally corresponds to the first scheduling policy, the first second simulation message corresponds to the third scheduling policy, the second simulation message corresponds to the second scheduling policy, and the third second simulation message corresponds to the first scheduling policy.
S104: and extracting sensitive information in the response message.
In this embodiment, the extracted sensitive information may be used to perform the following two operations:
1) the system is used for determining the address of the scheduling policy and further indexing the scheduling policy;
2) the method is used for analyzing sensitive information by a user, and specifically comprises the following steps:
and sending the sensitive information extracted from the response message to a host so that the user can analyze the sensitive information.
S105: and indexing in the scheduling table according to the sensitive information in the response message and the preset corresponding relation to obtain a scheduling strategy corresponding to the sensitive information in the response message.
In this embodiment, the above mentioned generation of the corresponding relationship between the representative scheduling policy address and the sensitive information, where the sensitive information is used to determine the scheduling policy address in the scheduling table, where the sensitive information includes: the step S105 includes indicating information such as a destination address, a source address, and a switching number, where the indicating information is used to index in a scheduling table to obtain a scheduling policy of next simulation, and specifically includes:
acquiring indication information from the sensitive information;
and obtaining a scheduling policy address according to the indication information and a preset corresponding relation, indexing from the scheduling table according to the scheduling policy address, and obtaining a scheduling policy stored in the scheduling address.
In this embodiment, in the received response message, if no sensitive information is extracted, the scheduling policy of the next address in the scheduling table may be obtained. Wherein the next address is for the address of the corresponding schedule at the last simulation.
S106: and generating a second simulation message according to the scheduling strategy obtained by the index and the simulation parameters, and sending the second simulation message to the FC-AE bus node.
In this embodiment, the simulation parameters include a first simulation parameter for determining contents of the simulation sequence and a second simulation parameter representing a message sending manner, and a second simulation message may be generated and sent according to these parameters, specifically, S106 includes:
generating a simulation sequence according to the scheduling strategy obtained by the index and the first simulation parameter; the first simulation parameter is a parameter which represents the simulation sequence content in the simulation parameters;
and generating a second simulation message according to the second simulation parameter and the simulation sequence. The second simulation parameter is a parameter representing a message sending mode in the simulation parameters.
Here, specific explanations are made: the first simulation parameter comprises a message type, a simulation mode, a message length and the like, the message type determines the type of a simulation sequence, such as a data type, a primitive type and the like, the simulation mode determines the expression form of the simulation sequence, such as a fixed data simulation mode, an incremental data simulation mode, a random data simulation mode and the like, the message length determines the length and the division of frames in the simulation sequence, and if the length of data in the simulation sequence exceeds the length of a preset frame of message, the simulation sequence comprises a plurality of frames of messages. In this way, a content-determined simulation sequence can be generated in combination with the scheduling policy and the first simulation parameters. The second simulation parameters comprise speed, simulation time (or simulation times), sequence intervals and the like, the sending mode of the simulation sequence is determined according to the second simulation parameters, a second simulation message meeting the determined sending mode is obtained, and the second simulation message is sent to the FC-AE bus node. Here, taking the sequence interval as an example, when the multi-frame message is included in the emulation sequence, the multi-frame message may be sent in the following manner, including:
after a frame of message is sent, judging whether the current time interval reaches a preset sequence interval or not; wherein, the current time interval is the time from the current time to the last frame of message transmission;
and if the current time interval reaches the preset time interval, sending the next frame message.
And after all the frame messages are sent out, the second simulation message is successfully sent.
It should be noted that, the user can control the simulation time or the number of times of sending messages in the simulation by setting the simulation time or the number of times of simulation in the simulation parameters. Specifically, the method comprises the following steps:
judging whether the preset simulation times or the preset simulation time is reached; the preset simulation times are simulation times set by a user, and the preset simulation time is simulation time set by the user.
And if the preset simulation times or the preset simulation time is reached, stopping the simulation.
In the embodiment, simulation parameters and scheduling information set by a user are received, and the scheduling information is generated into a scheduling table and a preset corresponding relation, wherein the scheduling table comprises a scheduling strategy, and the preset corresponding relation represents the corresponding relation between sensitive information and the scheduling strategy; when simulation operation is executed, a first simulation message triggering an FC-AE bus node to feed back a response message is generated according to a scheduling table, then sensitive information is obtained after the response message fed back by the FC-AE bus node is received each time, indexing is carried out in the scheduling table according to the sensitive information and a preset corresponding relation, a scheduling strategy corresponding to the sensitive information is obtained, a second simulation message is generated according to the scheduling strategy and simulation parameters, and the second simulation message is sent to the FC-AE bus node. Therefore, the simulation message can be automatically generated through the generated scheduling table, the preset corresponding relation and the simulation parameters, so that the automatic simulation of the FC-AE bus is realized, and the simulation efficiency is improved.
Referring to fig. 2, a schematic structural diagram of an emulation apparatus for an FC-AE bus according to an embodiment of the present invention is shown, in this embodiment, the apparatus includes:
FC-AE interface 100, emulation control module 200, and host interface 300;
the FC-AE interface is connected with the FC-AE bus node.
The FC-AE interface may be, for example, a fiber optic interface.
The FC-AE interface 100 is connected to one end of the simulation control module 200, and the host interface is connected to the other end of the simulation control module 200;
the simulation control module 200 is configured to receive simulation parameters and scheduling information set by a user through the host interface 300, and generate a scheduling table and a preset corresponding relationship according to the scheduling information; the scheduling table comprises scheduling strategies, and the preset corresponding relation represents the corresponding relation between the sensitive information and the scheduling strategies;
responding to a simulation starting instruction, generating a first simulation message according to the scheduling table, and sending the first simulation message to an FC-AE bus node through the FC-AE interface 100;
receiving a response message fed back after the FC-AE bus node receives the simulation message each time through the FC-AE interface 100;
extracting sensitive information in the response message;
indexing is carried out on the scheduling table according to the sensitive information in the response message and the preset corresponding relation, and a scheduling strategy corresponding to the sensitive information in the response message is obtained;
and generating a second simulation message according to the scheduling strategy obtained by the index and the simulation parameters, and sending the second simulation message to the FC-AE bus node through the FC-AE interface 100.
The host interface 300 is connected to the simulation control module 200 at one end and to a host through which a user can configure simulation parameters and scheduling information at the other end.
The host interface 300 may include, but is not limited to, PCIE, ethernet interface, serial port, etc.
Optionally, referring to fig. 3, the simulation control module 200 includes:
the simulation system comprises a data receiving module 201, a simulation analysis module 202, a simulation scheduling module 203, a simulation sequence control module 204, a data sending module 205 and a configuration module 206;
the data receiving module 201 is connected to the FC-AE interface 100, and is configured to receive, through the FC-AE interface 100, a response packet fed back after the FC-AE bus node receives the emulation packet each time;
the data sending module 205 is connected to the FC-AE interface 100, and is configured to send a simulation packet to the FC-AE bus node through the FC-AE interface 100;
the configuration module 206 is configured to receive simulation parameters and scheduling information set by a user through the host interface 300, send the simulation parameters to the simulation sequence control module 204, and send the scheduling information to the simulation scheduling module 203.
The simulation analysis module 202 is configured to analyze the response message received by the data receiving module 201, and extract sensitive information in the response message;
the simulation scheduling module 203 is configured to generate a scheduling table and a preset corresponding relationship according to the scheduling information after receiving the scheduling information, index in the scheduling table according to the sensitive information in the response message and the preset corresponding relationship after receiving the sensitive information in the corresponding message sent by the simulation analysis module 202, obtain a scheduling policy corresponding to the sensitive information in the response message, and send the scheduling policy obtained by the index to the simulation sequence control module 204;
the simulation sequence control module 204 is configured to respond to a simulation start instruction, generate a first simulation packet according to the scheduling table generated by the simulation scheduling module 203, and send the first simulation packet to the FC-AE bus node through the data sending module 205; and is further configured to generate the second simulation packet according to the simulation parameter received from the configuration module 206 and the scheduling policy received from the simulation scheduling module, and send the second simulation packet to the FC-AE bus node through the data sending module 205.
Optionally, the simulation scheduling module 203 is further configured to obtain a scheduling policy and sensitive information from the scheduling information; generating the scheduling table according to the acquired scheduling strategy; each scheduling strategy corresponds to a scheduling strategy address; and corresponding the scheduling policy address with the acquired sensitive information to obtain the preset corresponding relation.
Optionally, the simulation analysis module 202 is further configured to, after extracting the sensitive information in the response message, send the sensitive information in the response message to the host through the host interface 300, so that a user may analyze the sensitive information in the response message.
Optionally, the simulation parameters include a preset simulation number or a preset simulation time, and the simulation control module 200 is further configured to: judging whether the preset simulation times or the preset simulation time is reached; and if the preset simulation times or the preset simulation time is reached, stopping the simulation.
Optionally, the simulation parameters include a first simulation parameter and a second simulation parameter, and the simulation sequence control module 204 is specifically configured to generate a simulation sequence according to the scheduling policy obtained by indexing and the first simulation parameter; the first simulation parameter is a parameter which represents the simulation sequence content in the simulation parameters; generating a second simulation message according to the second simulation parameter and the simulation sequence; the second simulation parameter is a parameter representing a message sending mode in the simulation parameters.
Optionally, the simulation Control module 200 may be an FPGA (Field Programmable Gate Array), an MCU (Micro Control Unit), a DSP (Digital Signal Processor), or a Processor for executing the FC-AE simulation Control method. However, the experiment comparison shows that the FPGA is more flexible than others, the data processing performance speed is higher, the bandwidth utilization rate of the FC-AE bus can be improved, and the simulation of the FC-AE bus under the condition of high bandwidth is realized.
By the device of the embodiment, the automatic simulation of the FC-AE bus is realized, and the simulation rate is increased, so that the bandwidth utilization rate of the FC-AE bus is increased, and the simulation of the FC-AE bus under the condition of high bandwidth is ensured.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A simulation control method of an FC-AE bus is characterized by comprising the following steps:
receiving simulation parameters and scheduling information set by a user, and generating a scheduling table and a preset corresponding relation according to the scheduling information; the scheduling table comprises scheduling strategies, and the preset corresponding relation represents the corresponding relation between the sensitive information and the scheduling strategies;
responding to a simulation starting instruction, generating a first simulation message according to the scheduling table, and sending the first simulation message to an FC-AE bus node;
receiving a response message fed back after the FC-AE bus node receives the simulation message each time;
extracting sensitive information in the response message;
indexing is carried out on the scheduling table according to the sensitive information in the response message and the preset corresponding relation, and a scheduling strategy corresponding to the sensitive information in the response message is obtained;
and generating a second simulation message according to the scheduling strategy obtained by the index and the simulation parameters, and sending the second simulation message to the FC-AE bus node.
2. The method of claim 1, wherein the generating a schedule and a preset correspondence according to the scheduling information comprises:
acquiring a scheduling strategy and sensitive information from the scheduling information;
generating the scheduling table according to the acquired scheduling strategy; each scheduling strategy corresponds to a scheduling strategy address;
and corresponding the scheduling policy address with the acquired sensitive information to obtain the preset corresponding relation.
3. The method according to claim 1, wherein the simulation parameters include a preset simulation number or a preset simulation time, and further comprising:
judging whether the preset simulation times or the preset simulation time is reached;
and if the preset simulation times or the preset simulation time is reached, stopping the simulation.
4. The method of claim 1, wherein the simulation parameters include a first simulation parameter and a second simulation parameter, and the generating a second simulation packet according to the scheduling policy obtained by the indexing and the simulation parameters includes:
generating a simulation sequence according to the scheduling strategy obtained by the index and the first simulation parameter; the first simulation parameter is a parameter which represents the simulation sequence content in the simulation parameters;
generating a second simulation message according to the second simulation parameter and the simulation sequence; the second simulation parameter is a parameter representing a message sending mode in the simulation parameters.
5. The method of claim 1, further comprising:
and sending the sensitive information extracted from the response message to the host.
6. An emulation control device for an FC-AE bus, comprising:
FC-AE interface, emulation control module and host interface;
the FC-AE interface is connected with one end of the simulation control module, and the host interface is connected with the other end of the simulation control module;
the simulation control module is used for receiving simulation parameters and scheduling information set by a user through the host interface and generating a scheduling table and a preset corresponding relation according to the scheduling information; the scheduling table comprises scheduling strategies, and the preset corresponding relation represents the corresponding relation between the sensitive information and the scheduling strategies;
responding to a simulation starting instruction, generating a first simulation message according to the scheduling table, and sending the first simulation message to an FC-AE bus node through the FC-AE interface;
receiving a response message fed back after the FC-AE bus node receives the simulation message each time through the FC-AE interface;
extracting sensitive information in the response message;
indexing is carried out on the scheduling table according to the sensitive information in the response message and the preset corresponding relation, and a scheduling strategy corresponding to the sensitive information in the response message is obtained;
and generating a second simulation message according to the scheduling strategy obtained by the index and the simulation parameters, and sending the second simulation message to the FC-AE bus node through the FC-AE interface.
7. The apparatus of claim 6, wherein the simulation control module comprises:
the system comprises a data receiving module, a simulation analysis module, a simulation scheduling module, a simulation sequence control module, a configuration module and a data sending module;
the data receiving module is connected with the FC-AE interface and used for receiving a response message fed back by the FC-AE bus node after receiving the simulation message each time through the FC-AE interface;
the data sending module is connected with the FC-AE interface and used for sending a simulation message to the FC-AE bus node through the FC-AE interface;
the configuration module is used for receiving simulation parameters and scheduling information set by a user through the host interface, sending the simulation parameters to the simulation sequence control module, and sending the scheduling information to the simulation scheduling module;
the simulation analysis module is used for analyzing the response message received by the data receiving module and extracting the sensitive information in the response message;
the simulation scheduling module is used for generating a scheduling table and a preset corresponding relation according to the scheduling information after receiving the scheduling information, indexing in the scheduling table according to the sensitive information in the response message and the preset corresponding relation after receiving the sensitive information in the response message sent by the simulation analysis module, obtaining a scheduling strategy corresponding to the sensitive information in the response message, and sending the scheduling strategy obtained by indexing to the simulation sequence control module;
the simulation sequence control module is used for responding to a simulation starting instruction, generating a first simulation message according to the scheduling table generated by the simulation scheduling module, and sending the first simulation message to the FC-AE bus node through the data sending module; and the second simulation message is generated according to the simulation parameters received from the configuration module and the scheduling policy received from the simulation scheduling module, and is sent to the FC-AE bus node through the data sending module.
8. The apparatus of claim 7, wherein the emulated scheduling module is further configured to obtain a scheduling policy and sensitive information from the scheduling information; generating the scheduling table according to the acquired scheduling strategy; each scheduling strategy corresponds to a scheduling strategy address; and corresponding the scheduling policy address with the acquired sensitive information to obtain the preset corresponding relation.
9. The apparatus of claim 7, wherein the simulation analysis module is further configured to, after extracting the sensitive information in the response message, send the sensitive information in the response message to a host through the host interface, so that a user can analyze the sensitive information in the response message.
10. The apparatus according to any one of claims 6-9, wherein the simulation control module is a Field Programmable Gate Array (FPGA).
CN201910149873.1A 2019-02-28 2019-02-28 Simulation control method and device for FC-AE bus Active CN109873742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910149873.1A CN109873742B (en) 2019-02-28 2019-02-28 Simulation control method and device for FC-AE bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910149873.1A CN109873742B (en) 2019-02-28 2019-02-28 Simulation control method and device for FC-AE bus

Publications (2)

Publication Number Publication Date
CN109873742A CN109873742A (en) 2019-06-11
CN109873742B true CN109873742B (en) 2021-02-02

Family

ID=66919481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910149873.1A Active CN109873742B (en) 2019-02-28 2019-02-28 Simulation control method and device for FC-AE bus

Country Status (1)

Country Link
CN (1) CN109873742B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684893A (en) * 2012-09-04 2014-03-26 清华大学 Equipment and method for analyzing network simulation
CN106533872A (en) * 2016-11-17 2017-03-22 天津津航计算技术研究所 System for improving transmission efficiency of FC-AE-1553 bus
CN106612141A (en) * 2016-12-20 2017-05-03 北京旋极信息技术股份有限公司 Optical fiber channel protocol general simulation testing card and data interaction method thereof
CN106685733A (en) * 2017-01-24 2017-05-17 北京国科天迅科技有限公司 FC-AE-1553 network rapid configuration and automatic testing method
CN107707428A (en) * 2017-09-29 2018-02-16 北京润科通用技术有限公司 A kind of fault filling method and device of the buses of FC AE 1553

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4222248B2 (en) * 2004-04-13 2009-02-12 沖電気工業株式会社 Test method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684893A (en) * 2012-09-04 2014-03-26 清华大学 Equipment and method for analyzing network simulation
CN106533872A (en) * 2016-11-17 2017-03-22 天津津航计算技术研究所 System for improving transmission efficiency of FC-AE-1553 bus
CN106612141A (en) * 2016-12-20 2017-05-03 北京旋极信息技术股份有限公司 Optical fiber channel protocol general simulation testing card and data interaction method thereof
CN106685733A (en) * 2017-01-24 2017-05-17 北京国科天迅科技有限公司 FC-AE-1553 network rapid configuration and automatic testing method
CN107707428A (en) * 2017-09-29 2018-02-16 北京润科通用技术有限公司 A kind of fault filling method and device of the buses of FC AE 1553

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
A novel passive star network topology used in FC-AE-1553 protocol;Ming Che,Dong Zhou;《2014 IEEE International Conference on Communiction Problem-solving》;20150419;全文 *

Also Published As

Publication number Publication date
CN109873742A (en) 2019-06-11

Similar Documents

Publication Publication Date Title
KR101745456B1 (en) Ecu for transmitting large data in hil test environment, system including the same and method thereof
CN106789498B (en) Network address allocation method of Modbus communication network, slave node equipment and communication system
CN111651351B (en) Jenkins-based software performance testing method and computer main equipment
CN113114793A (en) Slave node address competition method and device and electrical appliance system
CN113938387A (en) Communication method, device and readable storage medium
CN110324203B (en) Multichannel high accuracy network flow generates device
CN109873742B (en) Simulation control method and device for FC-AE bus
CN113965904A (en) Device registration method, device and storage medium
RU2601443C1 (en) Wireless network adapter and method of its self-configuration
CN106982156B (en) Priority setting method, device, communication system, equipment and readable storage medium storing program for executing
CN106445479A (en) Information pushing method and apparatus
CN112737995A (en) Method, device and equipment for processing Ethernet frame and storage medium
CN111141015A (en) Remote air conditioner control method
CN116991142A (en) Automobile diagnosis service method and system based on modularized UDS protocol
CN108306757B (en) Programmable data plane virtual layer construction method and storage medium
CN101801018A (en) Method and network side device for detecting reverse fault
CN113031569B (en) Monitoring method, system, terminal and medium of nuclear fusion control system
CN113053374A (en) Large screen control system
CN112468555A (en) Macro command group control scheme based on cloud mobile phone
CN105207854A (en) Multi-terminal concurrent testing system and method
CN111371799A (en) Method, device and equipment for controlling data transmission and reception of MCTP (Multi-channel media processing protocol) controller
CN112988631A (en) Data processing method and device based on field programmable gate array
CN109327726A (en) A kind of processing method, device, terminal and the storage medium of barrage message
CN112994969B (en) Service detection method, device, equipment and storage medium
CN111343589A (en) Communication networking method, sub-node equipment and main node equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant