A kind of aviation electronics fiber channel network multiprotocol controller and control method thereof
Technical field
The invention belongs to optical-fibre channel (FC, Fibre Channel) technical field, be specifically related to a kind of aviation electronics fiber channel network multiprotocol controller and control method thereof.
Background technology
Features such as optical-fibre channel has at a high speed, low delays, infraversion malposition rate, and it supports multiple upper-layer protocol to shine upon, and can finely satisfy the requirement of novel aviation electronics interconnected systems, has become main candidate's agreement that aviation electronics is unified network.
Anonymous subscription messaging protocol (FC-AE-ASM under the aeronautical environment, Fibre Channel-AvionicsEnvironment-Anonymous Subscriber Messaging) controls/respond qualitative behavior really in real time with its high reliability, fault-tolerance and support, be applicable to order, control, testing equipment, emulation, signal processing and sensing data that transmission is airborne.And optical-fibre channel audio frequency and video agreement (FC-AV, Fibre Channel-Audio Video) stipulated digital sound, video mapping ruler by containment system to the FC frame format, for FC Network Transmission digital audio/video provides a kind of standard, can satisfy the digital audio/video transmission needs of aviation electronics network high speed.
The audio/video information data volume is big, need occupy the bigger network bandwidth, and control, command messages have the high real-time requirement.Existing switch is not distinguished the data content of exchange, adopts uniform way to carry out data forwarding and exchange, is difficult to satisfy simultaneously the high real-time requirement of the high bandwidth of audio, video data and control, command messages.At list of references 1: Hu Jialuo, will is auspicious, Xia Ming etc., use multistage switching network to carry out high-capacity optical fiber Channel Exchange machine design [J] optical communication technique, 2006, a kind of switch of pipeline parallel method processing mode is disclosed in 04:11~13, be intended to improve exchange capacity, but do not consider the different demands of different types of data,, can not satisfy the transmission requirement of different types of data simultaneously though exchange capacity is improved.At list of references 2: Yang Jinlong, Xie Jun etc., the design of fibre channel media interface and realization [J] optical communication technique, 2010, disclose a kind of high-speed switch port that uses FPGA to realize in 11:11~13, do not considered different types of data is distinguished buffer memory and processing, though improved total switching port speed, but for concrete message, transmission requirement is difficult to satisfy.
Summary of the invention
At problems of the prior art, the invention provides a kind of aviation electronics fiber channel network multiprotocol controller and control method thereof.This multiprotocol controller and control method can be distributed different metadata cache formations at the different agreement categorical data, adopt different flow control methods to guarantee the high real-time requirement of the high bandwidth requirement of audio, video data and order, control data simultaneously.Overcome under aviation electronics multiprotocol network environment switch all types The data is unified can not satisfy under the processing mode the different shortcomings that require of different types of data.
A kind of aviation electronics fiber channel network multiprotocol controller that the present invention proposes is for realizing the part of multi-protocol data processing capacity in the switch.This controller comprises a plurality of switching ports, multi-protocol data manager and exchange scheduler.Total number of described switching port is 2~256, wherein 1~255 is the Data Receiving switching port, wherein 1~255 is data output switching port, and the summation of the number of the number of Data Receiving switching port and data output switching port is total number of switching port.Data are entered after treatment by the output of data output switching port by the Data Receiving switching port.
Described multi-protocol data manager comprises multi-protocols type judging module and multi-protocol data processing module.The multi-protocols type judging module is judged the type of optical-fibre channel message (FC message) by optical-fibre channel frame head (FC frame head); The multi-protocol data processing module can be put into video messaging (AV message) video data buffer area (AV data buffer area) respectively or anonymous subscription message (ASM message) is put into anonymous subscription message data buffer area (ASM message data buffer area) according to different type of messages.
Described data output switching port and Data Receiving switching port mainly are made up of data buffer area, Prestige Management module, video messaging prestige counter (AV prestige counter) and anonymous subscription message prestige counter (ASM prestige counter).Described data buffer area is made up of video data buffer area (AV data buffer area) and anonymous subscription data buffer area (ASM data buffer area).In data buffer area, according to the number of this corresponding Data Receiving switching port AV message or ASM message are carried out virtual output work queue respectively, form AV virtual cache formation and the formation of ASM virtual cache.The AV data buffer area comprises the formation of AV virtual cache, and the ASM data buffer area comprises the formation of ASM virtual cache.The number of formation of AV virtual cache and the formation of the ASM virtual cache all total number with switching port 1 is identical.
The Data Receiving switching port is handled by the data protocol type judging module is transferred to the multi-protocol data processing module after receiving data, data after the processing are back to the Data Receiving switching port and handle, and wherethrough reason back is checked by the exchange scheduler and exported data output switching port to.Described Prestige Management module controls AV prestige counter and ASM prestige counter.The Prestige Management module has prestige and consults and the Prestige Management function.The prestige negotiation functionality is: the Data Receiving switching port cooperates the Prestige Management module to provide independently ASM message credit value and AV message credit value respectively for logging device, and AV message credit value and the ASM message credit value of consulting to obtain returned to logging device; The Prestige Management function is: the count value number of controlling ASM prestige counter and AV prestige counter by the variation that monitors the switching port data buffer area.
The control method of a kind of aviation electronics optical-fibre channel multiprotocol controller that the present invention proposes comprises step:
Step 1: the Data Receiving switching port monitors the logging request of other beaching accommodations (as radar, fire control computer, head-up indicator etc.), if do not receive that the request of landing of beaching accommodation then continues to monitor, consult as if carrying out port prestige by the Prestige Management module after the logging request of receiving beaching accommodation, AV message credit value and the ASM message credit value of consulting to obtain returned to logging device.In the negotiations process, the Data Receiving switching port provides independently ASM message credit value and audio message credit value respectively for logging device;
Step 2: whether monitoring data receives switching port has optical-fibre channel data (being abbreviated as the FC data) to arrive, if when having the FC data to arrive, with FC transfer of data protocol type judge module at the most, the multi-protocols type judging module is checked frame head type of message territory, judges the type of FC message by optical-fibre channel frame head (FC frame head);
Step 3: carry out data processing by the multi-protocol data processing module according to different data types, the FC message that arrives is ASM message, then the multi-protocol data processing module puts it in the ASM data buffer area of Data Receiving switching port data buffer area, destination address according to ASM message under the scheduling of switch scheduler deposits corresponding ASM VOQ in, and the count value of the ASM prestige counter of Prestige Management module management adds 1 simultaneously; If FC message is AV message, then the multi-protocol data processing module puts it in the AV data buffer area of Data Receiving switching port data buffer area, destination address according to AV message under the scheduling of switch scheduler deposits corresponding AV VOQ in, and the count value of Prestige Management module management AV reputation data counter adds 1 simultaneously;
Step 4: the exchange scheduler checks whether the ASM data buffer area of Data Receiving switching port is empty, if be not empty, ASM virtual cache formation in the ASM data buffer area is exchanged the forwarding scheduling, transmit or exchange to data output switching port, the count value of Prestige Management module controls ASM prestige counter subtracts 1 simultaneously, exchanges scheduler then and returns the ASM data buffer area that continues to check the Data Receiving switching port.If the exchange scheduler checks that the ASM data buffer area of this Data Receiving switching port is empty, then checks the AV data buffer area.If the AV data buffer area is not empty, then this AV data buffer area AV virtual cache queue message is exchanged and transmit scheduling, transmit or exchange to data output switching port, the count value of Prestige Management module controls AV prestige counter subtracts 1 simultaneously, exchange scheduler then and return the data buffer area that continues to check the Data Receiving switching port, exchange scheduler then and return the ASM data buffer area that continues to check the Data Receiving switching port; If the AV data buffer area is empty, then this Data Receiving switching port is not carried out any processing, continue to check the ASM data buffer area of Data Receiving switching port.
The advantage that the present invention has is:
(1) a kind of aviation electronics fiber channel network multiprotocol controller provided by the invention and control method thereof, consider the different demands of message data dissimilar in the aviation electronics network to resource, audio frequency and video message and order control data are taked independently prestige respectively, overcome when audio frequency and video message occupies more data buffer area, control command message is because the problem that the prestige deficiency can't be transmitted;
(2) a kind of aviation electronics fiber channel network multiprotocol controller provided by the invention and control method thereof, in the switching port data buffer area storage different with the AV The data to the ASM data, make switch to distinguish scheduling to different types of data, the transmission time certainty that has strengthened control command message guarantees;
(3) a kind of aviation electronics fiber channel network multiprotocol controller provided by the invention and control method thereof, audio, video data and order control data are distinguished scheduling, consider that the audio, video data amount is big, weak real-time requires (it is big promptly to allow the partial data actual delay to postpone than regulation), the control command data amount is less, hard real-time requires the characteristic of (promptly requiring all data to transmit finishes) in regulation postpones, have at switching port under the situation of ASM message, the preferential selection exchanges scheduling to control command data, can further guarantee the hard real-time requirement of control command message.
Description of drawings
Fig. 1: the structural representation of a kind of aviation electronics fiber channel network multiprotocol controller that the present invention proposes;
Fig. 2: the switching port structured flowchart of a kind of aviation electronics fiber channel network multiprotocol controller that the present invention proposes;
Fig. 3: prestige is consulted flow chart in the control procedure of a kind of aviation electronics fiber channel network multiprotocol controller that the present invention proposes;
Fig. 4: multi-protocol data manager processes flow chart in the control procedure of a kind of aviation electronics fiber channel network multiprotocol controller that the present invention proposes;
Fig. 5: ASM message and AV Message Processing flow chart in the control procedure of a kind of aviation electronics fiber channel network multiprotocol controller that the present invention proposes.
Among the figure:
The 1-switching port; 2-multi-protocol data manager; 3-exchanges scheduler;
4-Data Receiving switching port; 5-data output switching port; 201-multi-protocols type is judged mould
Piece;
The 202-multi-protocol data is handled mould 101-data buffer area; 102-Prestige Management module;
Piece;
103-AV prestige counter; 104-ASM prestige counter; The 1011-AV data buffer area;
The 1012-ASM data buffer area; The formation of 1011-1-AV virtual cache;
The formation of 1012-2-ASM virtual cache.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
A kind of aviation electronics fiber channel network multiprotocol controller that the present invention proposes is for realizing the part of multi-protocol data processing capacity in the switch.As shown in Figure 1, this controller comprises a plurality of switching ports 1, multi-protocol data manager 2 and exchange scheduler 3.Total number of described switching port 1 is 2~256, wherein 1~255 is Data Receiving switching port 4, wherein 1~255 is data output switching port 5, and the summation of the number of the number of Data Receiving switching port 4 and data output switching port 5 is total number of switching port 1.Data are entered after treatment by 5 outputs of data output switching port by Data Receiving switching port 4.
Described multi-protocol data manager 2 comprises multi-protocols type judging module 201 and multi-protocol data processing module 202.Multi-protocols type judging module 201 is judged the type of optical-fibre channel message (FC message) by optical-fibre channel frame head (FC frame head); Multi-protocol data processing module 202 can be put into video messaging (AV message) video data buffer area (AV data buffer area 1011) respectively or anonymous subscription message (ASM message) is put into anonymous subscription message data buffer area (ASM message data buffer area 1012) according to different type of messages.
Described switching port 1 mainly is made up of data buffer area 101, Prestige Management module 102, video prestige counter (AV prestige counter 103) and anonymous subscription prestige counter (ASM prestige counter 104).As shown in Figure 2, described data buffer area 101 is made up of video data buffer area 1011 (AV data buffer area) and anonymous subscription data buffer area 1012 (ASM data buffer area).In data buffer area 101, according to the number of this corresponding Data Receiving switching port 4 AV message or ASM message are carried out virtual output work queue respectively, form AV virtual cache formation 1011-1 and ASM virtual cache formation 1012-2.AV data buffer area 1011 comprises AV virtual cache formation 1011-1.ASM data buffer area 1012 comprises ASM virtual cache formation 1012-2.All the total number with switching port 1 is identical for the number of AV virtual cache formation 1011-1 and ASM virtual cache formation 1012-2.
Data Receiving switching port 4 is handled by transferring to multi-protocol data processing module 202 after data protocol type judging module 201 is judged after receiving data, data after the processing are back to Data Receiving switching port 4 and handle, and wherethrough reason back exports data output switching port 5 to after checking processing by exchange scheduler 3.Described Prestige Management module 102 control AV prestige counter 103 and ASM prestige counters 104.Prestige Management module 102 has prestige and consults and the Prestige Management function; The prestige negotiation functionality is: Data Receiving switching port 4 cooperates Prestige Management module 102 to provide independently ASM message credit value and AV message credit value respectively for logging device, and AV message credit value and the ASM message credit value of consulting to obtain returned to logging device; The Prestige Management function is: receive the variation control ASM prestige counter 104 of switching port 4 data buffer area 101 and the count value number of AV prestige counter 103 by monitoring data.The ASM data buffer area 1012 of data buffer area 101 is connected with multi-protocol data processing module 202 with AV data buffer area 101, being used for that the data of multi-protocol data processing module 202 are put into corresponding ASM data buffer area 1012 or AV data buffer area 1011 respectively handles, exchange scheduler 3 is checked ASM data buffer area 1012 and AV data buffer area 1011, and the data that needs are transmitted or exchanged export 5 to data output switching port.
The control method of a kind of aviation electronics optical-fibre channel multiprotocol controller that the present invention proposes comprises step:
Step 1: Data Receiving switching port 4 monitors the logging request of other beaching accommodations (as radar, fire control computer or head-up indicator etc.), if do not receive that the request of landing of beaching accommodation then continues to monitor, as shown in Figure 3, consult as if carrying out port prestige by Prestige Management module 102 after the logging request of receiving beaching accommodation, AV message credit value and the ASM message credit value of consulting to obtain returned to logging device.In the negotiations process, Data Receiving switching port 4 provides independently ASM message credit value and audio message credit value respectively for logging device;
Step 2: whether monitoring data receives switching port 4 has optical-fibre channel data (being abbreviated as the FC data) to arrive, as shown in Figure 4, if when having the FC data to arrive, with FC transfer of data protocol type judge module at the most, multi-protocols type judging module 201 is checked frame head type of message territory, judges the type of FC message by optical-fibre channel frame head (FC frame head);
Step 3: multi-protocol data processing module binding data receives switching port the data of different types that arrives is carried out separate, stored and virtual line-up, as shown in Figure 4, if the FC message that arrives is ASM message, then multi-protocol data processing module 202 puts it in the ASM data buffer area 1012 of Data Receiving switching port 4 data buffer area 101, destination address according to ASM message under the scheduling of switch scheduler 3 deposits corresponding ASM VOQ 1012-2 in, and the count value of the ASM prestige counter 104 of Prestige Management module 102 management simultaneously adds 1; If FC message is AV message, then multi-protocol data processing module 202 puts it in the AV data buffer area 1011 of Data Receiving switching port 4 data buffer area 101, destination address according to AV message under the scheduling of switch scheduler 3 deposits corresponding AV VOQ 1011-1 in, and the count value of Prestige Management module 102 management AV prestige counters 103 adds 1 simultaneously;
Step 4: as shown in Figure 5, exchange scheduler 3 checks whether the ASM data buffer area 1012 of Data Receiving switching port 4 is empty, if be not empty, ASM virtual cache formation 1012-2 in the ASM data buffer area 1012 is exchanged the forwarding scheduling, transmit or exchange to data output switching port 4, the count value of Prestige Management module 102 control ASM prestige counters 104 subtracts 1 simultaneously, exchanges scheduler 3 then and returns the ASM data buffer area 1012 that continues to check Data Receiving switching port 4.If exchange scheduler 3 checks that the ASM data buffer area 104 of this Data Receiving switching port 4 is empty, then check AV data buffer area 1011.If AV data buffer area 1011 is not empty, then the AV virtual cache queue message 1011-1 to this AV data buffer area 1011 exchanges the forwarding scheduling, transmit or exchange to data output switching port 4, simultaneously the count value of Prestige Management module 102 control AV prestige counters 103 subtracts 1, exchanges the AV data buffer area 1011 that scheduler 3 returns the data buffer area 101 that continues to check Data Receiving switching port 4 then; If AV data buffer area 1011 is empty, then this Data Receiving switching port 4 is not carried out any processing, continue to check the ASM data buffer area 1012 of Data Receiving switching port 4.
Receive 4 pairs of message datas that receive of exchanges data port and be stored in the different data buffer area 101, simultaneously Prestige Management module 102 and control the traffic management that AV prestige counter 103 and ASM prestige counter 104 carry out data respectively at AV message and ASM message according to data type.Dissimilar message is distinguished management, and feasible difference scheduling to message data becomes possibility.
Beaching accommodation and Data Receiving switching port 4 consult to obtain simultaneously AV message credit value and ASM message credit value.When a large amount of AV transmission of messages, only take the credit value of AV message in the Data Receiving switching port 4, when a large amount of AV message are transmitted, when ASM message need be transmitted, still can instantaneous transmission.When having prevented that AV message and ASM message from sharing credit value, after big data quantity AV transmission of messages took whole prestige, ASM message need be waited for the shortcoming that just can transmit after the AV transmission of messages finishes.