CN102209000B - Avionics full duplex switched Ethernet (AFDX) network terminal system simulator with layered fault injection and fault analysis functions - Google Patents

Avionics full duplex switched Ethernet (AFDX) network terminal system simulator with layered fault injection and fault analysis functions Download PDF

Info

Publication number
CN102209000B
CN102209000B CN 201110187167 CN201110187167A CN102209000B CN 102209000 B CN102209000 B CN 102209000B CN 201110187167 CN201110187167 CN 201110187167 CN 201110187167 A CN201110187167 A CN 201110187167A CN 102209000 B CN102209000 B CN 102209000B
Authority
CN
China
Prior art keywords
msg
message
mistake
layer
error
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
CN 201110187167
Other languages
Chinese (zh)
Other versions
CN102209000A (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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN 201110187167 priority Critical patent/CN102209000B/en
Publication of CN102209000A publication Critical patent/CN102209000A/en
Application granted granted Critical
Publication of CN102209000B publication Critical patent/CN102209000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an avionics full duplex switched Ethernet (AFDX) network terminal system simulator with layered fault injection and fault analysis functions. The simulator comprises a communication task configuration module (1), a fault injection module (2), a message processing module (3), a user datagram protocol (UDP)/Internet protocol (IP) processing module (4), a virtual link (VL) processing module (5) and a physical interface (6), wherein the communication task configuration module (1) simulates the communication process of a terminal system by loading terminal system configuration data and reading communication tasks and virtual link information in the terminal system configuration data, and seamlessly accesses an AFDX network; the fault injection module (2) is used for configuring layered fault information; and the message processing module (3), the UDP/IP processing module (4) and the VL processing module (5) may perform IP layer and UDP layer resolution according to loaded configuration information (11) and/or fault configuration information (22). The simulator provided by the invention simulate various possible faults of the terminal system by actively generating layered fault traffic so as to perfect a terminal system fault environment of the AFDX network, and discovers reasons for the fault traffic of the AFDX network from the standpoint of the terminal system by receiving and analyzing the traffic.

Description

A kind of AFDX network terminal system simulator with the injection of layering mistake and error analysis
Technical field
The invention belongs to the avionic electronic communication network field, avionic full-duplex switched-type Ethernet (AFDX) terminal emulator that relates to the network test purposes, more particularly, refer to a kind of AFDX network terminal system simulator with the injection of layering mistake and error analysis.
Background technology
Development along with military technology, computer technology, electronic technology and network technology, avionics system trends towards advanced composite type architecture gradually, avionic electronic communication network is in order to adapt to this advanced person's synthesization trend, on the basis that guarantees original real-time, reliability, have higher requirement---higher bandwidth, safeguard more easily and upgrade.Switching network can satisfy the demand for development of aviation electronics network owing to the advantage on the topological structure, becomes the developing direction of aviation electronics network of new generation.
The AFDX full name is avionic full-duplex switched-type Ethernet (Avionics Full Duplex Switched Ethernet, AFDX), it is a kind of consensus standard that defines for carry out exchanges data between the aviation subsystem, is based on a kind of communication protocol standard on ARINC429 and the 1553B basis.The A380 of the B787 of Boeing Co. and French Air Passenger company adopts the AFDX network to carry out the interconnection of avionics system.Domestic seating plane is in initial period, also carries out research and the test of AFDX network at present.The aviation electronics network is different from civilian network, and is very high to reliability and fault-tolerance requirement, so in the aviation electronics network test stage, often need to make artificially various mistakes, tests behavior and the performance of aviation electronics network under wrong environment.
AFDX adopts space switching technology and single network segment full duplex connection modes of access exchange and key exchange, overcome the intrinsic medium access time uncertainty of share medium Ethernet CSMA/CD (Carrier Sense Multiple Access/Collision Detect) mechanism fully, adopt simultaneously virtual link (Virtual Link, VL) link bandwidth resource is distributed effectively and isolate, greatly strengthened the real-time of network, made it become " deterministic network " of aviation electronics network interconnection.
AFDX has the network topology of expansion, and its topological structure is star-like.The AFDX network mainly is comprised of terminal system, AFDX switch and transmission link.Terminal system has been carried the avionics subregion, as the access point of avionics communication task, subsystem and AFDX network connection is got up, and is responsible for the sending and receiving of message.The characteristic that AFDX " determines the type network " mainly realizes that by end system these characteristics mainly comprise traffic shaping, integrity detection and Redundancy Management etc.The AFDX switch exchanges the avionics communication task as message switching center, realizes the transmission of avionics task on network.Than commercial Ethernet switch, the AFDX switch has possessed the characteristics such as filtering function, function of exchange, Fault Isolation and static routing.Each end system links to each other with the AFDX switch respectively, and every exchange function connects 20 end systems, forms the access switching network; Interconnected between the AFDX switch, form key switching network.Each aviation electronics subsystem adopts full duplex mode, directly is connected on the switch with 2 pairs of twisted-pair feeders, and a pair of being used for sends, and a pair of being used for receives.
Summary of the invention
The objective of the invention is in AFDX network test process, need not make up actual aviation electronics subregion and terminal system, a kind of AFDX network terminal system simulator with the injection of layering mistake and error analysis is provided, by loading the terminal system configuration data, understand wherein communication task and virtual link information, come pseudo-terminal system communication process, seamlessly access the AFDX network; Mistake layering function of injecting refers to divide type of error by the AFDX protocol hierarchies, and the mistake after will dividing is injected corresponding protocol layer and produced wrong flow, the AFDX network terminal system environment that simulation is wrong; The error analysis function refers to receive the flow on the AFDX network, and the reason that produces in conjunction with the characteristic analysis flow mistake of AFDX network.Come contingent various mistakes in the pseudo-terminal system by the wrong flow that initiatively produces layering, the perfect terminal system mistake environment of AFDX network; By receiving and analyzing flow, come to find that from the angle of terminal system the reason of wrong flow appears in the AFDX network.
A kind of AFDX network terminal system simulator with the injection of layering mistake and error analysis of the present invention, this AFDX network terminal system simulator includes communication task configuration module, mistake injection module, message processing module, UDP/IP layer processing module, VL processing module and physical interface.
AFDX network terminal system simulator is under sending mode, and the communication task configuration module loads terminal system communication task configuration data, resolves and preserve configuration information wherein; The mistake injection module is preserved the wrong configuration result of injecting; Message processing module is according to terminal system communication configuration information and wrong injection information, and Structural application message also regularly initiates a message, and the communication task of simulating subregion produces; The message that the UDP/IP processing module transmits message processing module is carried out UDP layer and the encapsulation of IP layer, and carries out as requested mistake and inject the generation IP datagram; The VL processing module receives the IP datagram of UDP/IP processing module, carries out data link layer encapsulation and VL queuing according to configuration information and wrong the injection, and the Frame that sends is carried out sequence number circulation and frame backup, then sends to physical interface.
AFDX network terminal system simulator is under receiving mode, physical interface receives the Frame on the physical circuit, send to the VL processing module, the VL processing module is carried out the parsing of Frame, then comparative arrangement information is carried out error checking and error analysis, then the Frame decapsulation is generated IP datagram and is submitted to the upper strata; The UDP/IP processing module receives IP datagram, and comparative arrangement information is carried out inspection and the error analysis of UDP layer and IP layer, and the message that generates is submitted to the upper strata; The message processing module receipt message, comparative arrangement information checks and error analysis.
Described message processing module is comprised of configuration information interface, message arrangement information unit, mistake grouting socket, message error configuration information unit, message timing generation unit, message content encapsulation unit, message content and rule resolution unit and lower floor's interface.The message arrangement information unit gets up from all configuration informations and preservation that the communication task configuration module obtains relevant information by the configuration information interface; The message error information unit obtains the mistake of application layer and injects information, and preserve by wrong grouting socket from wrong injection module, the mistake of application layer is injected content and comprised: data primitive content false, functional status mistake, message cycle mistake.Under the sending mode, the message timing unit reads the information of message arrangement information unit and carries out message generation regularly according to the information of application layer error configurations information unit, message content encapsulation unit regularly generating messages carries out structure and the encapsulation of message content according to configuration information and application layer mistake injection information, and packaged application layer messages will send to the UDP/IP processing module by lower layer interface.Under the receiving mode, by lower layer interface with transmission of messages to message content and rule resolution unit, resolve and error analysis message according to the message arrangement information unit this unit.
Described UDP/IP processing module, by configuration information interface, packaging information unit, mistake grouting socket, encapsulation error configuration information unit, UDP layer processing unit, IP layer processing unit, UDP/IP layer resolution unit and levels interface form.The packaging information unit gets up from configuration information and preservation that the communication task configuration module obtains transport layer and network layer by the configuration information interface; Encapsulation error configuration information unit is by wrong grouting socket, obtain the mistake of transport layer and network layer from wrong injection module and inject information, and preserve, transport layer and network layer mistake comprise: UDP source port mistake, UDP destination interface mistake, source IP address mistake, purpose IP address error, type of message mistake.Under the sending mode, UDP encapsulation unit and IP encapsulation unit carry out UDP layer and the encapsulation of IP layer protocol according to packaging information unit and the encapsulation error information unit application layer messages that transmission comes to high-level interface respectively, and packaged IP datagram is transferred to the VL processing module by lower layer interface.Under the receiving mode, by lower layer interface IP datagram is transferred to UDP/IP layer resolution unit, by the configuration information of package arrangements information unit storage IP datagram is resolved and error analysis.
Described VL processing module, by configuration information interface, VL configuration information unit, mistake grouting socket, VL configuration error information unit, VL encapsulation unit, VL queued units, redundant data frame administrative unit, VL resolution unit and levels interface form.VL configuration information unit obtains the VL configuration information by the configuration information interface from the communication task configuration module and also preserves; VL configuration error information unit is by wrong grouting socket, obtain the mistake of data link layer from wrong injection module and inject information, and preserve, the mistake of data link layer comprises: the BAG mistake of source MAC mistake, target MAC (Media Access Control) address mistake, VL, wrong, the VL number of frames mistake of VL backup frame disappearance.Under the sending mode, VL encapsulation unit and queued units receive the IP datagram that high-level interface transmits, carry out the data link layer encapsulation and carry out the VL queuing according to VL configuration information and wrong injection information, the result that the VL of queuing output selects according to redundant network in redundant data frame administrative unit carries out the frame backup, the Frame that backup is good will be transferred on the physical interface by lower layer interface, sends to each redundant subnet by physical interface.
The advantage of AFDX network terminal system simulator of the present invention is:
(1) the invention provides a kind of AFDX network terminal system simulator, by loading the terminal system configuration data, understand wherein communication task and virtual link information, simulate normal terminal system communication process, seamlessly access the AFDX network.Need not make up terminal systems whole in the AFDX network, just can finish building of AFDX network test environment, simplify AFDX network test process.
(2) the present invention is according to the AFDX protocol hierarchies, from application layer, and transport layer, network layer, the angle of data link layer is set out, and carries out the mistake of each layer and injects.Erroneous combination characteristics, the especially data link layer of AFDX network to the structure of VL Frame mistake.Inject to simulate the mistake of each protocol layer that the AFDX network terminal system may run into the layering mistake, perfect AFDX network terminal system mistake environment.
(3) the present invention catches the Frame on the AFDX network physical circuit, resolves flow by protocol hierarchy, and in conjunction with AFDX network characteristics profiling error reason.A kind of mode of analyzing AFDX network error reason from the terminal system angle is provided.
Description of drawings
Fig. 1 is the theory diagram of AFDX network terminal system simulator of the present invention.
Fig. 2 is terminal network hierarchy chart of the present invention.
Fig. 3 is the structured flowchart of message processing module of the present invention.
Fig. 3 A is the structure chart of data assembling of the present invention.
Fig. 4 is the structured flowchart of UDP/IP processing module of the present invention.
Fig. 5 is the structured flowchart of VL processing module of the present invention.
Fig. 5 A is sub-VL queuing model figure of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
As shown in Figure 1, a kind of AFDX network terminal system simulator with the injection of layering mistake and error analysis of the present invention, this simulator includes communication task configuration module 1, mistake injection module 2, message processing module 3, UDP/IP processing module 4, VL processing module 5 and physical interface 6.
UDP in the UDP/IP processing module 4 is the abbreviation of English User Datagram Protocol, and Chinese translation is User Datagram Protocol.IP is the abbreviation of English Internet Protocol, and Chinese translation is Internet protocol.
Communication task configuration module 1 is used for being responsible for the loading of AFDX network terminal system communication task configuration data, and the configuration information 11 that loads is distributed to message processing module 3, UDP/IP processing module 4 and VL processing module 5;
Mistake injection module 2 is responsible for configuration layering error message, and error configurations information 22 is distributed to message processing module 3, UDP/IP processing module 4 and VL processing module 5;
Message processing module 3 also regularly initiates a message according to the configuration information 11 that loads and error configurations information 22 Structural application message, simulates the generation of aviation electronics subregion communication task, receives simultaneously the message that lower floor resolves, and carries out Context resolution and error analysis;
The message that UDP/IP processing module 4 transmits message processing module 3 carries out the UDP layer and the IP layer is processed, and carry out mistake according to error configurations information 22 and inject the generation IP datagram, receives simultaneously the IP datagram in the load configuration information 11; Then the IP datagram of described generation and the IP datagram of described reception are carried out IP layer and the parsing of UDP layer, generate UDP datagram;
VL processing module 5 is carried out scheduling, the flow control of data link layer encapsulation and VL according to the UDP datagram of the configuration information 11 that loads and 22 pairs of generations of error configurations information, and the Frame that sends carried out the sequence number circulation and frame backs up, then send to physical interface 6;
Physical interface 6 is finished the transmission of Frame on physical circuit.
(1) the communication task configuration module 1
As shown in Figure 2, five layer protocols that a kind of AFDX network terminal system simulator with the injection of layering mistake and error analysis adopts ARINC (Aeronautical Radio Inc) 664part7 to recommend are divided, compare with OSI (Open System Interconnect) seven layer network procotol levels: communication task configuration module 1, mistake injection module 2 and message processing module 3 belong to the aviation electronics application layer, produce the avionics application layer messages; UDP/IP processing module 4 is finished the processing of transport layer and network layer, generates IP datagram and passes to data link layer; VL processing module 5 belongs to data link layer, the encapsulation of Frame, the scheduling of VL and flow control; Physical interface 6 belongs to physical layer, and transmission of electric signals adopts twisted pair media.
In the present invention, described communication task configuration module 1 is responsible for loading AFDX network terminal system communication task configuration data ESD={ES, Msg, and VL}, and store.
Described ES={ES N, ES IDThe expression end message, include terminal name ES NWith Termination ID ES ID
Described Msg = Msg N , Msg ID , Msg RT , Msg L , Msg Cyc , Msg Type , Msg VLID , Msg sVLID , Msg sUDP , Msg dUDP , Msg Data The expression information includes message name Msg N, message id Msg ID, message sends and receives attribute Msg RT, message-length (unit is byte) Msg L, message cycle (unit be millisecond) Msg Cyc, type of message (being divided into sample message and queue message) Msg Type, bearer messages virtual link ID Msg VLID, bearer messages fictitious plan link ID Msg SVLID, the source udp port Msg that uses of message SUDP, the purpose udp port Msg that uses of message DUDP, message content (wherein defined performance data set, data acquisition system, data primitive, the position of data mode and encapsulation inclusion relation have defined data format and the content of data primitive and state) Msg Data
Described VL={VL ID, VL RT, VL SIP, VL DIP, VL BAG, VL MaxL, VL MinL, VL NetThe information of expression VL (Virtual Link, virtual link), include the ID VL of VL ID, VL send and receive attribute VL RT, VL source IP address VL SIP, VL purpose IP address VL DIP, VL bandwidth allocation interval (BAG, unit are millisecond) VL BAG, VL maximum frame size (unit is byte) VL MaxL, VL minimum frame length (unit is byte) VL MinL, VL network select VL Net
(2) the mistake injection module 2
In the present invention, described wrong injection module 2 is responsible for the layering error configurations information Eor={EA that configuration will be injected, ET, and EN, ED} is divided into this four faults mistake of application layer mistake EA, transport layer mistake ET, network layer mistake EN and data link layer mistake ED and injects.
Configurable application layer mistake EA={EA Data, EA State, EA MsgCInclude data primitive content false EA Data, functional status mistake EA State, message cycle mistake EA MsgC
Configurable transport layer mistake ET={ET SUDP, ET DUDPComprise active udp port number wrong ET SUDP, purpose udp port mistake ET DUDP
Configurable network layer mistake EN={EN SIP, EN DIP, EN MsgTInclude source IP address mistake EN SIP, purpose IP address error EN DIP, type of message mistake EN MsgT
Configurable data link layer mistake ED={ED SMAC, ED DMAC, ED BAG, ED Lost, ED SeqComprise active MAC (Medium Access Control, media access control layer) address error ED SMAC, target MAC (Media Access Control) address mistake ED DMAC, VL BAG mistake ED BAG, the VL backup frame lacks wrong ED Lost, VL number of frames mistake ED Seq
(3) message processing module 3
In the present invention, the structure chart of described message processing module 3 as shown in Figure 3, comprise the unit: configuration information interface 301, message arrangement information unit 302, mistake grouting socket 303, message error configuration information unit 304, message is generation unit 305, message content encapsulation unit 306, message content and rule resolution unit 307 and lower layer interface 308 regularly.
Described message processing module 3 each module under sending mode is implemented as:
(A) message arrangement information unit 302 reads message arrangement information in the communication task configuration module 1 by configuration information interface 301 Msg = Msg N , Msg ID , Msg RT , Msg L , Msg Cyc , Msg Type , Msg VLID , Msg sVLID , Msg sUDP , Msg dUDP , Msg Data , And preservation message id Msg wherein ID, message name Msg N, message-length Msg L, message cycle Msg Cyc, message sends and receives attribute Msg RTWith message content Msg Data
(B) message error configuration information unit 304 is by applying hierarchical error configurations information Eor={EA in the wrong grouting socket 303 read error injection modules 2, ET, and EN, ED}, and preserve wherein EA Data, EA State, EA MsgC, EA MsgT
(C) message timing generation unit 305 reads the message cycle Msg in the message arrangement information unit 302 CycWith message size Msg L, read simultaneously the message cycle error configurations information in the message error configuration information unit 304; If the message that message timing generation unit 305 will send has message cycle error configurations EA MsgC, then by error configurations cycle EA MsgCRegularly produce message, otherwise according to the cycle Msg of this message CycRegularly produce message; Message timing generation unit 305 is delivered to message content encapsulation unit 306 with the message that produces and is carried out data encapsulation.
(D) message content encapsulation unit 306 reads the content information Msg of this message in the message arrangement information unit 302 when encapsulation Data, read simultaneously the data primitive content false EA of this message in the message error configuration information unit 304 DataWith functional status error configurations information EA State, carry out the encapsulation of aviation electronics application message.
Encapsulation process as shown in Figure 3A, if the wrong configuration EA of data primitive DataThen by error configurations EA DataDefine, otherwise press Msg DataThe information of middle data primitive defines, and a plurality of data primitive are combined into 1 data set (DS); If the wrong configuration EA of data mode StateThen by error configurations EA StateDefine, otherwise Msg DataMiddle data mode information defines, with synthetic 1 functional status set of 4 state group; 1 functional status set and 4 DS are assembled into performance data set (FDS); A plurality of FDS add that reserved field is combined into aviation electronics message.Packaged message is delivered to UDP/IP processing module 4 by lower layer interface 308.
Described message processing module 3 each module under receiving mode is implemented as:
Message content and rule resolution unit 307 receive the message that 4 transmission of UDP/IP processing module come by lower layer interface 308, and read the message content information in the message arrangement information unit 302, according to the VL of the VL that carries this message IDUdp port Msg with lower floor's use DUDP, find corresponding message, obtain the content information Msg of this message DataWith cycle information Msg Cyc, carry out following operation:
The first step: according to Msg DataThe package position of the FDS of middle definition, DS and data primitive and data format come resolution data primitive content and data mode, with the Msg of analysis result and configuration DataIn data primitive and the content of data mode make comparisons, if data primitive or data mode and set point are inconsistent, then report to the police, and analysis and Msg DataInconsistent error reason; This reason is: mistake appears in the transmitting terminal application message when creating, and perhaps occurs disturbing error code in the transmission course;
Second step: the average period that recording messages arrives, and and configuration cycle information Msg CycCompare, calculate relative error.If relative error surpasses set point (be traditionally arranged to be 10%, this value is adjustable), then report to the police, and the analytical error reason; This source of error is:
(a) on the transmitting terminal application layer, generation cycle and the set point of message are inconsistent; Perhaps
(b) on the transmitting terminal data link layer, the BAG of corresponding VL arranges unreasonable, perhaps configuration error, and excessive causing of BAG can not be carried the upper layer communication task in real time; Perhaps
(c) credit arranges too small causing in the transmission course, because of the flow management packet loss of switch; Perhaps
(d) error code appears in transmission course, packet loss when causing carrying out the frame integrity checking in terminal system; Perhaps
(e) frame number causes confusion, packet loss when causing redundancy check; Perhaps
(f) switch output port cache overflow and packet loss.
In the present invention, message processing module 3 can carry out polytype message error and inject when sending message, perfect application layer mistake environment in the AFDX network test; Message processing module 3 can carry out the error resolution of application layer when receipt message, solved the problem of AFDX network application layer error reason location.
(4) the UDP/IP processing module 4
Referring to shown in Figure 4, described UDP/IP processing module 4 includes configuration information interface 401, packaging information unit 402, mistake grouting socket 403, encapsulation error configuration information unit 404, UDP layer processing unit 405, IP layer processing unit 406, UDP/IP layer resolution unit 407, high-level interface 408 and lower layer interface 409.
Described UDP/IP processing module 4 each unit under sending mode is implemented as:
(A) packaging information unit 402 reads message arrangement information in the communication task configuration module 1 by configuration information interface 401 Msg = Msg N , Msg ID , Msg RT , Msg L , Msg Cyc , Msg Type , Msg VLID , Msg sVLID , Msg sUDP , Msg dUDP , Msg Data In the virtual link ID Msg of bearer messages VLID, UDP source port number Msg SUDP, UDP destination slogan Msg DUDP, type of message Msg Type, and preserve;
(B) packaging information unit 402 reads VL configuration information VL={VL in the communication task configuration module 1 by configuration information interface 401 ID, VL RT, VL SIP, VL DIP, VL BAG, VL MaxL, VL MinL, VL NetIn the ID VL of VL ID, source IP address VL SIP, purpose IP address VL DIP, VL maximum frame size VL MaxL, and preserve;
(C) encapsulation error configuration information unit 404 is by transport layer mistake ET={ET in the wrong grouting socket 403 read error injection modules 2 SUDP, ET DUDPAnd network layer mistake EN={EN SIP, EN DIP, EN MsgTAnd preserve;
(D) UDP layer processing unit 405 passes through the application layer messages of high-level interface 408 receipt message processing modules 3 transmission, and reads encapsulation error configuration information unit 404 and packaging information unit 402, if this message is provided with UDP source port number mistake ET SUDPOr destination slogan mistake ET DUDP, then press ET SUDPOr ET DUDPMessage is packaged into the UDP message bag, otherwise according to the configuration information Msg in the packaging information unit 402 SUDPAnd Msg DUDPEncapsulation UDP message bag.
(E) IP layer processing unit 406 receives the UDP datagram that UDP layer processing unit 405 sends, and reads encapsulation error configuration information unit 404 and packaging information unit 402, passes through Msg VLIDFind corresponding VL configuration information.If be provided with type of message mistake EN MsgT, then press EN MsgTCarry out subpackage (not subpackage of sample message, queue message according to IP datagram less than or equal to (VL MaxL-18) carry out the network layer subpackage), otherwise according to Msg TypeType is come subpackage; If be provided with source IP address mistake EN SIPOr purpose IP address error EN DIP, then press EN SIPOr EN DIPThe encapsulation IP datagram, otherwise according to the VL of corresponding VL in the packaging information unit 402 SIPAnd VL DIPThe encapsulation IP datagram.IP layer processing unit 406 packaged IP datagram send to VL processing module 5 via lower layer interface 409.
Described UDP/IP processing module 4 each unit under receiving mode is implemented as:
UDP/IP layer resolution unit 407 receives 5 transmission of VL processing module by lower layer interface 409 and comes IP datagram, according to the ID VL of VL IDThe network layer configuration information about this IP datagram in the inquiry packaging information unit 402 comprises: source IP address VL SIP, purpose IP address VL DIP, carry out network layer and resolve:
Analyzing step one: check the IP header checksum, if wrong, then report to the police and abandon IP datagram, analyzes former because occur disturbing error code in the transmission course, stop the network layer parsing; Then do not carry out analyzing step two if there is mistake;
Analyzing step two: resolve source IP address and purpose IP address, and if VL SIPOr VL DIPInconsistent, then to report to the police, the analysis reason is: the IP datagram and the original configuration that produce on the transmitting terminal network layer are inconsistent, source or purpose IP address error; Error code perhaps appears in the transmission course disturbing; If there is the inconsistent IP fragmentation that exists simultaneously in IP address, then abandon IP datagram, stop network layer and resolve; Otherwise carry out analyzing step three;
Analyzing step three: the IP fragmentation inspection, if subpackage appears in the IP datagram of sample message, then to report to the police, the analysis reason is: type of message arranges mistake, and sample message is set to queue message; Perhaps transmitting terminal network layer handles mistake is with the sample message subpackage.
After the network layer analyzing step was all finished, UDP/IP layer resolution unit 407 packaged IP datagram, unsuccessfully then abandoned IP datagram if group is wrapped, otherwise will generate UDP datagram.All Msg in the UDP/IP layer resolution unit 407 inquiry packaging information unit 402 VLIDEqual VL IDMessage, the udp port configuration information with these message comprises: UDP source port number Msg SUDP, UDP destination slogan Msg DUDP, the UDP datagram that IP layer processing unit 406 generated carries out the transport layer parsing:
Transport layer analyzing step one: resolve purpose udp port number, if there is not consistent Msg DUDP, then report to the police and abandon UDP datagram, stop transport layer and resolve, and analyze reason; Otherwise after resolving UDP datagram is gone encapsulation, generate application layer messages, message is transferred to message processing module 3 by high-level interface 408; Then do not proceed transport layer analyzing step two if there is mistake;
Described analysis reason is: the UDP datagram and the original configuration that produce on the transmitting terminal transport layer are inconsistent, and UDP source or destination slogan arrange mistake; Error code perhaps appears in the transmission course disturbing.
Transport layer analyzing step two: resolve the UDP source port number, and if Msg SUDP(Msg SUDPMsg with the front DUDPThe a pair of source and destination UDP of same message) inconsistent, then report to the police, and the analysis reason is: the UDP datagram and the original configuration that produce on the transmitting terminal transport layer are inconsistent, and UDP source or destination slogan arrange mistake; Error code perhaps appears in the transmission course disturbing.After the parsing UDP datagram is gone encapsulation, generate application layer messages, message is transferred to message processing module 3 by high-level interface 408.
In the present invention, when the message that UDP/IP processing module 4 produces message processing module 3 is carried out udp protocol encapsulation and IP protocol encapsulation, carry out that polytype UDP mistake is injected and the injection of IP mistake, perfect transport layer and network layer mistake environment in the AFDX network test; When the IP datagram that UDP/IP processing module 4 reception VL processing modules 5 produce is resolved, can carry out transport layer and network layer error resolution, solve the problem of AFDX network error reason location on transport layer and network layer.
(5) the VL processing module 5
Referring to shown in Figure 5, described VL processing module 5 includes configuration information interface 501, VL configuration information unit 502, mistake grouting socket 503, VL configuration error information unit 504, VL encapsulation unit 505, VL queued units 506, redundant data frame processing unit 507, VL resolution unit 508, high-level interface 509 and lower layer interface 510.
Described VL processing module 5 each unit under sending mode is implemented as:
(A) VL configuration information unit 502 reads message arrangement information in the communication task configuration module 1 by configuration information interface 501 Msg = Msg N , Msg ID , Msg RT , Msg L , Msg Cyc , Msg Type , Msg VLID , Msg sVLID , Msg sUDP , Msg dUDP , Msg Data In type of message Msg Type, and preserve;
(B) VL configuration information unit 502 reads VL configuration information VL={VL in the communication task configuration module 1 by configuration information interface 501 ID, VL RT, VL SIP, VL DIP, VL BAG, VL MaxL, VL MinL, VL NetIn the ID VL of VL ID, VL send and receive attribute VL RT, VL bandwidth allocation interval VL BAG, VL maximum frame size VL MaxL, VL minimum frame length VL MinL, the VL network selects VL Net, and preserve;
(C) VL configuration error information unit 504 is by the data link layer mistake ED={ED in the wrong grouting socket 503 read error injection modules 2 SMAC, ED DMAC, ED BAG, ED Lost, ED SeqAnd preserve;
(D) VL encapsulation unit 505 receives the IP datagram of UDP/IP processing module 4 transmission by high-level interface 510, and reads the ED under this IP datagram in the VL error configurations information unit 504 SMACAnd ED DMAC, the while is also read the configuration information VL of the affiliated VL of IP datagram in the VL configuration information unit 502.If ED is arranged SMACOr ED DMACConfiguration, then VL encapsulation unit 505 is according to ED SMACOr ED DMACConstruct mac source address or MAC destination address, the encapsulation of data frame.
Described source MAC includes fixed field 24bits row, the user defines 16bits row, network ID 3bits row and fixed field 5bits row, and associated content is inserted in the respective column of table 1.
Fixed field 24bits row and fixed field 5bits row are Binary Zero entirely.It is user-defined determined values that the user defines the 16bits row, and network ID 3bits row temporarily are set to full 0.
Table 1 source MAC structure
Figure BDA0000073820850000121
Described target MAC (Media Access Control) address includes fixed field 32bits row and virtual link identifier 16bits row, and associated content is inserted in the respective column of table 2.
It all is 1 that fixed field 32bits is listed as minimum two of first byte, and all the other positions can be by user's free setting.
Virtual link identifier 16bits classifies VL as IDBinary representation.
Table 2 target MAC (Media Access Control) address structure
(E) come the encapsulation of data frame with structure good source MAC and target MAC (Media Access Control) address.Packaged Frame sends to VL queued units 506.VL queued units 506 reads the BAG error configurations information ED in the VL configuration error information unit 504 according to VL under this Frame BAGWith the VL in the VL configuration information unit 502 BAGIf ED is arranged BAG, then press ED BAGThe BAG of VL is set, otherwise according to VL BAGBAG is set.
(F) shown in Fig. 5 A, VL queued units 506 is put into the fifo queue (being VLFIFO) of VL after according to the Frame polling dispatching in the fifo queue of a plurality of Sub-VL that arrange.
(G) redundant data frame processing unit 507 arranges the sequence number (1 to 256) of VLFIFO formation output data frame in order, and selects VL according to the redundant network of this VL in the VL configuration information unit 502 NetInformation is carried out the network redundancy backup to Frame, if there is not ED DMACMistake then also can arrange the network ID number in the target MAC (Media Access Control) address, sends in the network.The Frame that sets sequence number lacks wrong ED according to the frame of this VL in the VL configuration error information unit 504 LostWith sequence number errors ED SeqCarry out mistake and inject, the frame disappearance is wrong will to abandon the VL frame of corresponding sequence number, and the number of frames mistake will be revised the sequence number of corresponding sequence VL frame, finish at last the CRC check of Frame, send to physical interface 6 by lower layer interface 510.
Described VL processing module 5 each unit under receiving mode is implemented as:
VL resolution unit 508 receives the VL frame of physical interface 6 transmission by lower layer interface 501, and reads the VL configuration information in the VL configuration information unit 502, carries out data link layer and resolves:
Data link layer analyzing step one: CRC check, if wrong, then report to the police and abandon this Frame, stop data link layer and resolve, and to analyze reason be that the interference error code is arranged in the transmission course.Then do not carry out data link layer analyzing step two if there is mistake;
Data link layer analyzing step two: separate the parsing MAC destination address, if the form of MAC destination address and the form shown in the table 2 are inconsistent, then report to the police and abandon Frame, the termination data link layer is resolved, and the analysis reason is: transmitting terminal does not carry out the encapsulation of Frame according to the MAC destination address form of AFDX network protocol specifies; Perhaps occur to disturb error code in the transmission course, if behind the error code through switch, then switch does not filter out wrong VL frame.Then do not carry out data link layer analyzing step three if there is mistake;
Data link layer analyzing step three: from the virtual link identifier of MAC destination address, parse ID number of VL, if the VL that does not equate with it among the VL configuration information VL ID, then report to the police and abandon this Frame, stop data link layer and resolve, and analyze reason and be: during the MAC destination address of transmitting terminal structure, virtual link identifier wherein and the VL of this VL IDInconsistent, and switch does not filter out wrong VL frame; Perhaps occur to disturb error code in the transmission course, if behind the error code through switch, then switch does not filter out wrong VL frame.Then do not carry out data link layer analyzing step four if there is mistake;
Data link layer analyzing step four: resolve the mac source address, the structure of mac source address is as shown in table 1, fixed field is Binary Zero entirely, it is a user-defined determined value that the user defines ID, network ID is relevant with the redundant subnet of reception, if these values are inconsistent with definition or relevant redundant network, then warning, and the analysis reason is: source MAC and the original configuration of the VL frame that produces on the transmitting terminal data link layer are inconsistent; Error code perhaps appears in the transmission course disturbing; Proceed data link layer analyzing step five;
Data link layer analyzing step five: the parse for frame sequence number, if occur discontinuous number, then to report to the police, the analysis reason is:
The sequence number errors of the VL frame that (a) produces on the transmitting terminal data link layer; Perhaps
(b) on the transmitting terminal data link layer frame losing is arranged; Perhaps
(c) transmitting terminal sends cache overflow and frame losing; Perhaps
(d) because switch traffic control parameter is unreasonable, the flow management frame losing is arranged in the transmission course; Perhaps
(e) switch output port cache overflow and frame losing; Perhaps
(f) occur disturbing error code in the transmission engineering, be filtered during through switch; Perhaps
(g) occur in the transmission course disturbing error code, frame number is made mistakes; Proceed data link layer analyzing step six;
Data link layer analyzing step six: add up each VL cycle, if less than the VL of each self-configuring BAG, then to report to the police, the analysis reason is: the transmitting terminal data link layer, VLBAG arranges mistake, and switch does not have flow management not play due effect.After data link layer was resolved, the VL Frame was generated IP datagram by decapsulation, is transferred to UDP/IP processing module 4 by high-level interface 509.
In the present invention, when the IP datagram that VL processing module 5 produces UDP/IP processing module 4 is carried out data link layer encapsulation and queuing and sent, can carry out polytype VL mistake and inject, perfect data link layer mistake environment in the AFDX network test; When the Frame that 5 pairs of physical interfaces of VL processing module 6 receive is resolved, can carry out the data link layer error resolution, solve the problem of AFDX network error reason location on data link layer.
(6) physical interface 6
Described physical interface 6, under the sending mode, the VL frame that 5 transmission of VL processing module are come adds preamble word, starting delimiter and interFrameGap, sends in the physically-redundant network.Under the receiving mode, receive the physical frame in the physics redundant network, physical frame is descapsulated into the VL frame, and sends VL processing module 5 to.
The AFDX network terminal system simulator of the present invention's design is under sending mode, and communication task configuration module 1 loads terminal system communication task configuration data, resolves and preserve configuration information wherein; Mistake injection module 2 is preserved the wrong configuration result of injecting; Message processing module 3 is according to terminal system communication configuration information 11 and wrong injection information 22, and Structural application message also regularly initiates a message, and the communication task of simulating subregion produces; The message that UDP/IP processing module 4 transmits message processing module 3 is carried out UDP layer and the encapsulation of IP layer, and carries out as requested mistake and inject the generation IP datagram; VL processing module 5 receives the IP datagram of UDP/IP processing module 4, carries out data link layer encapsulation and VL queuing according to configuration information 11 and wrong injection information 22, and the Frame that sends is carried out sequence number circulation and frame backup, then sends to physical interface 6.
The AFDX network terminal system simulator of the present invention's design is under receiving mode, the Frame that physical interface 6 receives on the physical circuit, send to VL processing module 5, VL processing module 5 is carried out the parsing of Frame, then comparative arrangement information is carried out error checking and error analysis, then the Frame decapsulation is generated IP datagram and is submitted to the upper strata; UDP/IP processing module 4 receives IP datagram, and comparative arrangement information is carried out inspection and the error analysis of UDP layer and IP layer, and the message that generates is submitted to the upper strata; Message processing module 3 receipt messages, comparative arrangement information checks and error analysis.

Claims (10)

1. one kind is injected with the layering mistake and the AFDX network terminal system simulator of error analysis, and it is characterized in that: this simulator includes communication task configuration module (1), mistake injection module (2), message processing module (3), UDP/IP processing module (4), VL processing module (5) and physical interface (6); VL, Virtual Link, translation are virtual link;
Communication task configuration module (1) is used for being responsible for the loading of AFDX network terminal system communication task configuration data, and the configuration information (11) that loads is distributed to message processing module (3), UDP/IP processing module (4) and VL processing module (5);
Mistake injection module (2) is responsible for configuration layering error message, and error configurations information (22) is distributed to message processing module (3), UDP/IP processing module (4) and VL processing module (5);
Message processing module (3) also regularly initiates a message according to the configuration information (11) that loads and error configurations information (22) Structural application message, simulate the generation of aviation electronics subregion communication task, receive simultaneously the message that lower floor resolves, carry out Context resolution and error analysis;
The message that UDP/IP processing module (4) transmits message processing module (3) carries out the UDP layer and the IP layer is processed, and carry out mistake according to error configurations information (22) and inject the generation IP datagram, receives simultaneously the IP datagram in the load configuration information (11); Then the IP datagram of described generation and the IP datagram of described reception are carried out IP layer and the parsing of UDP layer, generate UDP datagram;
VL processing module (5) is carried out scheduling, the flow control of data link layer encapsulation and VL to the UDP datagram that generates according to the configuration information (11) that loads and error configurations information (22), and the Frame that sends carried out the sequence number circulation and frame backs up, then send to physical interface (6);
Physical interface (6) is finished the transmission of Frame on physical circuit.
2. according to claim 1ly inject and the AFDX network terminal system simulator of error analysis with the layering mistake, it is characterized in that: communication task configuration module (1), mistake injection module (2) and message processing module (3) belong to the aviation electronics application layer, produce the avionics application layer messages;
UDP/IP processing module (4) is finished the processing of transport layer and network layer, generates IP datagram and passes to data link layer;
VL processing module (5) belongs to data link layer, and VL processing module (5) includes the encapsulation of Frame, scheduling and the flow control of VL;
Physical interface (6) belongs to physical layer, and transmission of electric signals adopts twisted pair media.
3. according to claim 1ly inject and the AFDX network terminal system simulator of error analysis with the layering mistake, it is characterized in that: described communication task configuration module (1) is responsible for loading AFDX network terminal system communication task configuration data ESD={ES, Msg, VL}, and store;
Described ES={ES N, ES IDThe expression end message, include terminal name ES NWith Termination ID ES ID
Described Msg = Msg N , Msg ID , Msg RT , Msg L , Msg Cyc , Msg Type , Msg VLID , Msg sVLID , Msg sUDP , Msg dUDP , Msg Data Expression message arrangement information includes message name Msg N, message id Msg ID, message sends and receives attribute Msg RT, message-length Msg L, message cycle Msg Cyc, type of message Msg Type, bearer messages virtual link ID Msg VLID, bearer messages fictitious plan link ID Msg SVLID, the source udp port Msg that uses of message SUDP, the purpose udp port Msg that uses of message DUDP, message content Msg Data
Described VL={VL ID, VL RT, VL SIP, VL DIP, VL BAG, VL MaxL, VL MinL, VL NetThe information of expression VL, include the ID VL of VL ID, VL send and receive attribute VL RT, VL source IP address VL SIP, VL purpose IP address VL DIP, VL bandwidth allocation interval VL BAG, VL maximum frame size VL MaxL, VL minimum frame length VL MinL, VL network select VL Net
4. according to claim 1ly inject and the AFDX network terminal system simulator of error analysis with the layering mistake, it is characterized in that: described wrong injection module (2) is responsible for the layering error configurations information Eor={EA that configuration will be injected, ET, EN, ED} is divided into this four faults mistake of application layer mistake EA, transport layer mistake ET, network layer mistake EN and data link layer mistake ED and injects;
Configurable application layer mistake EA={EA Data, EA State, EA MsgCInclude data primitive content false EA Data, functional status mistake EA State, message cycle mistake EA MsgC
Configurable transport layer mistake ET={ET SUDP, ET DUDPComprise active udp port number wrong ET SUDP, purpose udp port mistake ET DUDP
Configurable network layer mistake EN={EN SIP, EN DIP, EN MsgTInclude source IP address mistake EN SIP, purpose IP address error EN DIP, type of message mistake EN MsgT
Configurable data link layer mistake ED={ED SMAC, ED DMAC, ED BAG, ED Lost, ED SeqComprise active MAC, Medium Access Control, the address error ED of media access control layer SMAC, target MAC (Media Access Control) address mistake ED DMAC, VL BAG mistake ED BAG, the VL backup frame lacks wrong ED Lost, VL number of frames mistake ED Seq
5. according to claim 1ly inject and the AFDX network terminal system simulator of error analysis with the layering mistake, it is characterized in that described message processing module (3) each unit under sending mode is implemented as:
(A) message arrangement information unit (302) reads message arrangement information in the communication task configuration module (1) by configuration information interface (301) Msg = Msg N , Msg ID , Msg RT , Msg L , Msg Cyc , Msg Type , Msg VLID , Msg sVLID , Msg sUDP , Msg dUDP , Msg Data , And preservation message id Msg wherein ID, message name Msg N, message-length Msg L, message cycle Msg Cyc, message sends and receives attribute Msg RTWith message content Msg Data
Described Msg = Msg N , Msg ID , Msg RT , Msg L , Msg Cyc , Msg Type , Msg VLID , Msg sVLID , Msg sUDP , Msg dUDP , Msg Data In include message name Msg N, message id Msg ID, message sends and receives attribute Msg RT, message-length Msg L, message cycle Msg Cyc, type of message Msg Type, bearer messages virtual link ID Msg VLID, bearer messages fictitious plan link ID Msg SVLID, the source udp port Msg that uses of message SUDP, the purpose udp port Msg that uses of message DUDP, message content Msg Data(B) message error configuration information unit (304) by applying hierarchical error configurations information Eor={EA in wrong grouting socket (303) the read error injection module (2), ET, and EN, ED}, and preserve wherein data primitive content false EA Data, functional status mistake EA State, message cycle mistake EA MsgC, type of message mistake EA MsgT
Described Eor={EA, ET, EN includes application layer mistake EA, transport layer mistake ET, network layer mistake EN and data link layer mistake ED among the ED}; (C) message timing generation unit (305) reads the message cycle Msg in the message arrangement information unit (302) CycWith message size Msg L, read simultaneously the message cycle error configurations information in the message error configuration information unit (304); If the message that message timing generation unit (305) will send has message cycle error configurations EA MsgC, then press message cycle error configurations EA MsgCRegularly produce message, otherwise according to the cycle Msg of this message CycRegularly produce message; Message timing generation unit (305) is delivered to message content encapsulation unit (306) with the message that produces and is carried out data encapsulation;
(D) message content encapsulation unit (306) reads the content information Msg of this message in the message arrangement information unit (302) when encapsulation Data, read simultaneously the data primitive content false EA of this message in the message error configuration information unit (304) DataWith functional status error configurations information EA State, carry out the encapsulation of aviation electronics application message;
Described message processing module (3) each module under receiving mode is implemented as:
Message content and rule resolution unit (307) receive the message that UDP/IP processing module (4) transmission comes by lower layer interface (308), and read the message content information in the message arrangement information unit (302), according to the ID VL of the VL that carries this message IDUdp port Msg with lower floor's use DUDP, find corresponding message, obtain the message content information Msg of this message DataWith message cycle information Msg Cyc, carry out following operation:
The first step: according to the content information Msg of message DataPerformance data set FDS, the data acquisition system DS that the information of middle data primitive defines and package position and the data format of data primitive come resolution data primitive content and data mode, with the Msg of analysis result and configuration DataIn data primitive and the content of data mode make comparisons, if data primitive or data mode and set point are inconsistent, then report to the police, and analysis and Msg DataInconsistent error reason; This reason is: mistake appears in the transmitting terminal application message when creating, and perhaps occurs disturbing error code in the transmission course; DS represents a plurality of data primitive are combined into 1 data set; FDS represents 1 functional status set and 4 DS are assembled into the performance data set;
Second step: the average period that recording messages arrives, and and configuration cycle information Msg CycCompare, calculate relative error; If relative error surpasses set point, then report to the police, and the analytical error reason; This source of error is:
(a) on the transmitting terminal application layer, generation cycle and the set point of message are inconsistent; Perhaps
(b) on the transmitting terminal data link layer, the bandwidth allocation interval BAG of corresponding VL arranges unreasonable, perhaps configuration error, and excessive causing of BAG can not be carried the upper layer communication task in real time; Perhaps
(c) credit arranges too small causing in the transmission course, because of the flow management packet loss of switch; Perhaps
(d) error code appears in transmission course, packet loss when causing carrying out the frame integrity checking in terminal system; Perhaps
(e) frame number causes confusion, packet loss when causing redundancy check; Perhaps
(f) switch output port cache overflow and packet loss.
6. according to claim 1ly inject and the AFDX network terminal system simulator of error analysis with the layering mistake, it is characterized in that described UDP/IP processing module (4) each unit under sending mode is implemented as:
(A) packaging information unit (402) read message arrangement information in the communication task configuration module (1) by configuration information interface (401) Msg = Msg N , Msg ID , Msg RT , Msg L , Msg Cyc , Msg Type , Msg VLID , Msg sVLID , Msg sUDP , Msg dUDP , Msg Data In the virtual link ID Msg of bearer messages VLID, UDP source port number Msg SUDP, UDP destination slogan Msg DUDP, type of message Msg Type, and preserve;
Described Msg = Msg N , Msg ID , Msg RT , Msg L , Msg Cyc , Msg Type , Msg VLID , Msg sVLID , Msg sUDP , Msg dUDP , Msg Data In include message name Msg N, message id Msg ID, message sends and receives attribute Msg RT, message-length Msg L, message cycle Msg Cyc, type of message Msg Type, bearer messages virtual link ID Msg VLID, bearer messages fictitious plan link ID Msg SVLID, the source udp port Msg that uses of message SUDP, the purpose udp port Msg that uses of message DUDP, message content Msg Data(B) packaging information unit (402) read VL configuration information VL={VL in the communication task configuration module (1) by configuration information interface (401) ID, VL RT, VL SIP, VL DIP, VL BAG, VL MaxL, VL MinL, VL NetIn the ID VL of VL ID, source IP address VL SIP, purpose IP address VL DIP, VL maximum frame size VL MaxL, and preserve;
Described VL={VL ID, VL RT, VL SIP, VL DIP, VL BAG, VL MaxL, VL MinL, VL NetIn include the ID VL of VL ID, VL send and receive attribute VL RT, VL source IP address VL SIP, VL purpose IP address VL DIP, VL bandwidth allocation interval VL BAG, VL maximum frame size VL MaxL, VL minimum frame length VL MinL, VL network select VL Net
(C) encapsulation error configuration information unit (404) are by transport layer mistake ET={ET in wrong grouting socket (403) the read error injection module (2) SUDP, ET DUDPAnd network layer mistake EN={EN SIP, EN DIP, EN MsgTAnd preserve;
(D) UDP layer processing unit (405) is by the application layer messages of high-level interface (408) receipt message processing module (3) transmission, and read encapsulation error configuration information unit (404) and packaging information unit (402), if this message is provided with UDP source port number mistake ET SUDPOr destination slogan mistake ET DUDP, then press ET SUDPOr ET DUDPMessage is packaged into the UDP message bag, otherwise according to the configuration information Msg in packaging information unit (402) SUDPAnd Msg DUDPEncapsulation UDP message bag;
(E) IP layer processing unit (406) receives the UDP datagram that UDP layer processing unit (405) sends, and reads encapsulation error configuration information unit (404) and packaging information unit (402), passes through Msg VLIDFind corresponding VL configuration information; If be provided with type of message mistake EN MsgT, then press EN MsgTCarry out subpackage, otherwise according to Msg TypeType is come subpackage; If be provided with source IP address mistake EN SIPOr purpose IP address error EN DIP, then press EN SIPOr EN DIPThe encapsulation IP datagram, otherwise according to the VL of corresponding VL in packaging information unit (402) SIPAnd VL DIPThe encapsulation IP datagram; The packaged IP datagram of IP layer processing unit (406) sends to VL processing module (5) via lower layer interface (409);
Described UDP/IP processing module (4) each unit under receiving mode is implemented as:
UDP/IP layer resolution unit (407) receives VL processing module (5) transmission by lower layer interface (409) and comes IP datagram, according to the ID VL of VL IDThe network layer configuration information about this IP datagram in the inquiry packaging information unit (402) comprises: source IP address VL SIP, purpose IP address VL DIP, carry out network layer and resolve:
Analyzing step one: check the IP header checksum, if wrong, then report to the police and abandon IP datagram, analyzes former because occur disturbing error code in the transmission course, stop the network layer parsing; Then do not carry out analyzing step two if there is mistake;
Analyzing step two: resolve source IP address and purpose IP address, and if VL SIPOr VL DIPInconsistent, then to report to the police, the analysis reason is: the IP datagram and the original configuration that produce on the transmitting terminal network layer are inconsistent, source or purpose IP address error; Error code perhaps appears in the transmission course disturbing; If there is the inconsistent IP fragmentation that exists simultaneously in IP address, then abandon IP datagram, stop network layer and resolve; Otherwise carry out analyzing step three;
Analyzing step three: the IP fragmentation inspection, if subpackage appears in the IP datagram of sample message, then to report to the police, the analysis reason is: type of message arranges mistake, and sample message is set to queue message; Perhaps transmitting terminal network layer handles mistake is with the sample message subpackage;
After the network layer analyzing step was all finished, UDP/IP layer resolution unit (407) packaged IP datagram, unsuccessfully then abandoned IP datagram if group is wrapped, otherwise will generate UDP datagram; All Msg in UDP/IP layer resolution unit (407) the inquiry packaging information unit (402) VLIDEqual VL IDMessage, the udp port configuration information with these message comprises: UDP source port number Msg SUDP, UDP destination slogan Msg DUDP, the UDP datagram that IP layer processing unit (406) generated carries out the transport layer parsing:
Transport layer analyzing step one: resolve purpose udp port number, if there is not consistent Msg DUDP, then report to the police and abandon UDP datagram, stop transport layer and resolve, and analyze reason; Otherwise after resolving UDP datagram is gone encapsulation, generate application layer messages, message is transferred to message processing module (3) by high-level interface (408); Then do not proceed transport layer analyzing step two if there is mistake;
Described analysis reason is: the UDP datagram and the original configuration that produce on the transmitting terminal transport layer are inconsistent, and UDP source or destination slogan arrange mistake; Error code perhaps appears in the transmission course disturbing;
Transport layer analyzing step two: resolve the UDP source port number, and if Msg SUDPInconsistent, then report to the police, and the analysis reason is: the UDP datagram and the original configuration that produce on the transmitting terminal transport layer are inconsistent, and UDP source or destination slogan arrange mistake; Error code perhaps appears in the transmission course disturbing; After the parsing UDP datagram is gone encapsulation, generate application layer messages, message is transferred to message processing module (3) by high-level interface (408).
7. according to claim 1ly inject and the AFDX network terminal system simulator of error analysis with the layering mistake, it is characterized in that described VL processing module (5) each unit under sending mode is implemented as:
(A) VL configuration information unit (502) read message arrangement information in the communication task configuration module (1) by configuration information interface (501) Msg = Msg N , Msg ID , Msg RT , Msg L , Msg Cyc , Msg Type , Msg VLID , Msg sVLID , Msg sUDP , Msg dUDP , Msg Data In type of message Msg Type, and preserve;
Described Msg = Msg N , Msg ID , Msg RT , Msg L , Msg Cyc , Msg Type , Msg VLID , Msg sVLID , Msg sUDP , Msg dUDP , Msg Data In include message name Msg N, message id Msg ID, message sends and receives attribute Msg RT, message-length Msg L, message cycle Msg Cyc, type of message Msg Type, bearer messages virtual link ID Msg VLID, bearer messages fictitious plan link ID Msg SVLID, the source udp port Msg that uses of message SUDP, the purpose udp port Msg that uses of message DUDP, message content Msg Data
(B) VL configuration information unit (502) read VL configuration information VL={VL in the communication task configuration module (1) by configuration information interface (501) ID, VL RT, VL SIP, VL DIP, VL BAG, VL MaxL, VL MinL, VL NetIn the ID VL of VL ID, VL send and receive attribute VL RT, VL bandwidth allocation interval VL BAG, VL maximum frame size VL MaxL, VL minimum frame length VL MinL, the VL network selects VL Net, and preserve;
Described VL={VL ID, VL RT, VL SIP, VL DIP, VL BAG, VL MaxL, VL MinL, VL NetIn include the ID VL of VL ID, VL send and receive attribute VL RT, VL source IP address VL SIP, VL purpose IP address VL DIP, VL bandwidth allocation interval VL BAG, VL maximum frame size VL MaxL, VL minimum frame length VL MinL, VL network select VL Net
(C) VL configuration error information unit (504) is by the data link layer mistake ED={ED in wrong grouting socket (503) the read error injection module (2) SMAC, ED DMAC, ED BAG, ED Lost, ED SeqAnd preserve;
Described ED={ED SMAC, ED DMAC, ED BAG, ED Lost, ED SeqComprise active MAC, MediumAccess Control, the address error ED of media access control layer SMAC, target MAC (Media Access Control) address mistake ED DMAC, VL BAG mistake ED BAG, the VL backup frame lacks wrong ED Lost, VL number of frames mistake ED Seq
(D) VL encapsulation unit (505) receives the IP datagram of UDP/IP processing module (4) transmission by high-level interface (510), and reads the ED under this IP datagram in the VL error configurations information unit (504) SMACAnd ED DMAC, the while is also read the configuration information VL of the affiliated VL of IP datagram in the VL configuration information unit (502); If ED is arranged SMACOr ED DMCConfiguration, then VL encapsulation unit (505) is according to ED SMACOr ED DMACConstruct mac source address or MAC destination address, the encapsulation of data frame;
(E) come the encapsulation of data frame with structure good source MAC and target MAC (Media Access Control) address; Packaged Frame sends to VL queued units (506); VL queued units (506) reads the BAG error configurations information ED in the VL configuration error information unit (504) according to VL under this Frame BAGWith the VL in the VL configuration information unit (502) BAGIf ED is arranged BAG, then press ED BAGThe BAG of VL is set, otherwise according to VL BAGBAG is set;
(F) VL queued units (506) is put into the fifo queue of VL after according to the Frame polling dispatching in the fifo queue of a plurality of Sub-VL that arrange;
(G) redundant data frame processing unit (507) arranges the sequence number of VLFIFO formation output data frame in order, and selects VL according to the redundant network of this VL in the VL configuration information unit (502) NetInformation is carried out the network redundancy backup to Frame, if there is not ED DMACMistake then also can arrange the network ID number in the target MAC (Media Access Control) address, sends in the network; The Frame that sets sequence number lacks wrong ED according to the frame of this VL in the VL configuration error information unit (504) LostWith sequence number errors ED SeqCarry out mistake and inject, the frame disappearance is wrong will to abandon the VL frame of corresponding sequence number, and the number of frames mistake will be revised the sequence number of corresponding sequence VL frame, finish at last the CRC check of Frame, send to physical interface (6) by lower layer interface (510);
Described VL processing module (5) each unit under receiving mode is implemented as:
VL resolution unit (508) receives the VL frame of physical interface (6) transmission by lower layer interface (501), and reads the VL configuration information in the VL configuration information unit (502), carries out data link layer and resolves:
Data link layer analyzing step one: CRC check, if wrong, then report to the police and abandon this Frame, stop data link layer and resolve, and to analyze reason be that the interference error code is arranged in the transmission course; Then do not carry out data link layer analyzing step two if there is mistake;
Data link layer analyzing step two: separate the parsing MAC destination address, if the form of MAC destination address is not right, then report to the police and abandon Frame, stop data link layer and resolve, and analyze reason and be: transmitting terminal does not carry out the encapsulation of Frame according to the MAC destination address form of AFDX network protocol specifies; Perhaps occur to disturb error code in the transmission course, if behind the error code through switch, then switch does not filter out wrong VL frame; Then do not carry out data link layer analyzing step three if there is mistake;
Data link layer analyzing step three: from the virtual link identifier of MAC destination address, parse ID number of VL, if the VL that does not equate with it among the VL configuration information VL ID, then report to the police and abandon this Frame, stop data link layer and resolve, and analyze reason and be: during the MAC destination address of transmitting terminal structure, virtual link identifier wherein and the VL of this VL IDInconsistent, and switch does not filter out wrong VL frame; Perhaps occur to disturb error code in the transmission course, if behind the error code through switch, then switch does not filter out wrong VL frame; Then do not carry out data link layer analyzing step four if there is mistake;
Data link layer analyzing step four: resolve the mac source address, if these values and definition or relevant redundant network are inconsistent, then warning, and the analysis reason is: source MAC and the original configuration of the VL frame that produces on the transmitting terminal data link layer are inconsistent; Error code perhaps appears in the transmission course disturbing; Proceed data link layer analyzing step five;
Data link layer analyzing step five: the parse for frame sequence number, if occur discontinuous number, then to report to the police, the analysis reason is:
The sequence number errors of the VL frame that (a) produces on the transmitting terminal data link layer; Perhaps
(b) on the transmitting terminal data link layer frame losing is arranged; Perhaps
(c) transmitting terminal sends cache overflow and frame losing; Perhaps
(d) because switch traffic control parameter is unreasonable, the flow management frame losing is arranged in the transmission course; Perhaps
(e) switch output port cache overflow and frame losing; Perhaps
(f) occur disturbing error code in the transmission engineering, be filtered during through switch; Perhaps
(g) occur in the transmission course disturbing error code, frame number is made mistakes; Proceed data link layer analyzing step six;
Data link layer analyzing step six: add up each VL cycle, if less than the VL of each self-configuring BAG, then to report to the police, the analysis reason is: the transmitting terminal data link layer, VLBAG arranges mistake, and switch does not have flow management not play due effect; After data link layer was resolved, the VL Frame was generated IP datagram by decapsulation, is transferred to UDP/IP processing module (4) by high-level interface (509).
8. according to claim 7ly inject and the AFDX network terminal system simulator of error analysis with the layering mistake, it is characterized in that: described source MAC includes fixed field 24bits row, the user defines 16bits row, network ID 3bits row and fixed field 5bits and is listed as; Fixed field 24bits row and fixed field 5bits row are Binary Zero entirely; It is user-defined determined values that the user defines the 16bits row; Network ID 3bits row temporarily are set to full 0.
9. according to claim 7ly inject and the AFDX network terminal system simulator of error analysis with the layering mistake, it is characterized in that: described target MAC (Media Access Control) address includes fixed field 32bits row and virtual link identifier 16bits is listed as; It all is 1 that fixed field 32bits is listed as minimum two of first byte, and all the other positions can be by user's free setting; Virtual link identifier 16bits classifies VL as IDBinary representation.
10. according to claim 1ly inject and the AFDX network terminal system simulator of error analysis with the layering mistake, it is characterized in that: be in AFDX network test process, need not make up actual aviation electronics subregion and terminal system, and a kind of AFDX network terminal system simulator with the injection of layering mistake and error analysis of structure.
CN 201110187167 2011-07-05 2011-07-05 Avionics full duplex switched Ethernet (AFDX) network terminal system simulator with layered fault injection and fault analysis functions Active CN102209000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110187167 CN102209000B (en) 2011-07-05 2011-07-05 Avionics full duplex switched Ethernet (AFDX) network terminal system simulator with layered fault injection and fault analysis functions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110187167 CN102209000B (en) 2011-07-05 2011-07-05 Avionics full duplex switched Ethernet (AFDX) network terminal system simulator with layered fault injection and fault analysis functions

Publications (2)

Publication Number Publication Date
CN102209000A CN102209000A (en) 2011-10-05
CN102209000B true CN102209000B (en) 2013-04-03

Family

ID=44697671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110187167 Active CN102209000B (en) 2011-07-05 2011-07-05 Avionics full duplex switched Ethernet (AFDX) network terminal system simulator with layered fault injection and fault analysis functions

Country Status (1)

Country Link
CN (1) CN102209000B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594589B (en) * 2012-02-01 2014-05-07 北京经纬恒润科技有限公司 Ethernet fault injection method, device and system
CN102761488B (en) * 2012-07-13 2015-06-17 中国航天科技集团公司第九研究院第七七一研究所 High-speed full duplex switched Ethernet controller
CN103023784B (en) * 2012-12-20 2016-05-11 中电科航空电子有限公司 The system and method for secure communication between aeronautical data bus and Ethernet
CN104331351A (en) * 2014-10-23 2015-02-04 东南大学成贤学院 Method for simulating link instruction errors in USB (universal serial bus) transmission process
CN104808620A (en) * 2015-03-09 2015-07-29 中国航空工业集团公司沈阳飞机设计研究所 GJB289A serial bus-based distributed aircraft management system architecture
CN105553544A (en) * 2015-12-08 2016-05-04 中国航空工业集团公司西安航空计算技术研究所 AFDX photoelectric converter testing method
CN105515908A (en) * 2015-12-10 2016-04-20 中国航空工业集团公司西安航空计算技术研究所 AFDX photoelectric conversion time delay test method
CN106788863B (en) * 2016-11-24 2018-05-11 北京航空航天大学 A kind of aviation electronics WDM network management analogue systems for supporting subnet time triggered to communicate
CN109818773B (en) * 2017-11-22 2021-03-12 大唐移动通信设备有限公司 Communication method and device for network management and managed device
CN108199911B (en) * 2017-12-07 2021-08-03 中国航空工业集团公司西安航空计算技术研究所 Method for testing AFDX (avionics full Duplex switched Ethernet) shared same virtual link credit
CN111367838B (en) * 2018-12-25 2023-08-29 伊姆西Ip控股有限责任公司 Method, device and data storage system for detecting data storage system
CN110233824A (en) * 2019-05-09 2019-09-13 中国航空工业集团公司西安航空计算技术研究所 A kind of system simulation method
CN117498991B (en) * 2023-11-14 2024-05-28 无锡众星微系统技术有限公司 Testability fault injection method and device based on retransmission function prototype device
CN117376442B (en) * 2023-12-07 2024-03-08 中国民航大学 Remote data concentrator protocol conversion method and equipment based on hardware processing architecture
CN117687395B (en) * 2024-02-02 2024-04-16 苏州旗芯微半导体有限公司 Self-checking circuit and self-checking method for safety mechanism of microcontroller functional module

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101803328A (en) * 2007-09-13 2010-08-11 空中客车运作股份公司 The ACARS router that is used for long-range aviation electronics application program
CN101894192A (en) * 2010-07-19 2010-11-24 北京航空航天大学 Simulation and demonstration system for design and validation of AFDX (Avionics Full Duplex Switched Ethernet) network and simulation and demonstration method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101803328A (en) * 2007-09-13 2010-08-11 空中客车运作股份公司 The ACARS router that is used for long-range aviation electronics application program
CN101894192A (en) * 2010-07-19 2010-11-24 北京航空航天大学 Simulation and demonstration system for design and validation of AFDX (Avionics Full Duplex Switched Ethernet) network and simulation and demonstration method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AFDX航空总线仿真测试技术研究;彭寒 等;《西安航空技术高等专科学校学报》;20100930;第28卷(第5期);第10-13页 *
彭寒 等.AFDX航空总线仿真测试技术研究.《西安航空技术高等专科学校学报》.2010,第28卷(第5期),10-13页.

Also Published As

Publication number Publication date
CN102209000A (en) 2011-10-05

Similar Documents

Publication Publication Date Title
CN102209000B (en) Avionics full duplex switched Ethernet (AFDX) network terminal system simulator with layered fault injection and fault analysis functions
CN101834751B (en) Aviation full-duplex exchange Ethernet monitoring processing system and method thereof
EP1482712B1 (en) Virtual network addresses
US9253062B2 (en) Byte by byte received data integrity check
CN106817249B (en) FC-AE-1553 simulation communication demonstration system and data transmission method
CN106161117B (en) A kind of analogue system and emulation mode of AFDX network
EP2924934B1 (en) Ethernet switch and method for establishing forwarding patterns in an ethernet switch
Basu et al. Verification of an AFDX infrastructure using simulations and probabilities
CN105429797B (en) Avionics system AFDX network simulation based on OPNET verifies system
CN106685733A (en) FC-AE-1553 network rapid configuration and automatic testing method
CN102223308B (en) Network area traffic compressing and distributing system based on virtual link exchange
CN112436601B (en) Information flow processing method of intelligent substation, computer equipment and storage medium
JP5694717B2 (en) Traffic distribution control process and apparatus
CN113219857A (en) Unmanned system cluster network communication simulation method and device
Abuteir et al. Simulation environment for time-triggered ethernet
CN114371912A (en) Virtual network management method of data center and data center system
CN102045256B (en) COTS (Commercial Off-The-Shelf) based bandwidth predistribution guarantee network function demonstration system
JP2009530942A (en) Data communication method between processing systems in heterogeneous environments connected by a local area network and communication system using this method
Ding et al. The research of AFDX system simulation model
CN113422714B (en) Module for supporting high-integrity redundancy management on AFDX terminal
Molina et al. Implementation of an AFDX interface with Zynq SoC board in FPGA
Shreejith et al. Accelerating validation of time-triggered automotive systems on FPGAs
Xia et al. Study on real-time performance of AFDX using OPNET
Marino et al. Design and implementation of a complete test equipment solution for SpaceWire links
Kumar et al. Implementation of Ethernet MAC IP Core in the Development of AFDX End System Card

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant