A kind of avionics 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 avionics fiber channel network multiprotocol controller and control method thereof.
Background technology
The features such as optical-fibre channel has at a high speed, low delay, infraversion malposition rate, and the multiple upper-layer protocol mapping of its support, can finely meet the requirement of novel aviation electronics interconnected systems, become main candidate's agreement of universal avionics networks.
Anonymous subscription messaging protocol (FC-AE-ASM under aeronautical environment, Fibre Channel-AvionicsEnvironment-Anonymous Subscriber Messaging) control in real time/respond qualitative behavior really with its high reliability, fault-tolerance and support, be applicable to transmit airborne order, control, testing equipment, emulation, signal processing and sensing data.And optical-fibre channel audio frequency and video agreement (FC-AV, Fibre Channel-Audio Video) stipulated digital sound, the video mapping ruler to the FC frame format by containment system,, for FC Internet Transmission digital audio/video provides a kind of standard, can meet the digital audio/video transmission needs of aviation electronics network high speed.
The audio/video information data volume is large, need to occupy the larger network bandwidth, and control, command messages have the high real-time requirement.Existing switch is not distinguished the data content of exchange, adopts unified mode to carry out data retransmission and exchange, is difficult to meet 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, disclose a kind of switch of pipeline and parallel design mode in 2006,04:11~13, be intended to improve exchange capacity, but do not consider the different demands of different types of data,, although exchange capacity is improved, can not meet simultaneously the transmission requirement of different types of data.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, although improved total switching port speed, but for concrete message, transmission requirement is difficult to meet.
Summary of the invention
, for problems of the prior art, the invention provides a kind of avionics fiber channel network multiprotocol controller and control method thereof.This multiprotocol controller can distribute different data buffer storage formations for the different agreement categorical data with control method, adopts different flow control methods to guarantee that simultaneously the high bandwidth of audio, video data requires and the high real-time requirement of ordering, control data.Overcome switch under aviation electronics multiprotocol network environment all types the data is unified under processing mode to meet the different shortcomings that require of different types of data.
A kind of avionics fiber channel network multiprotocol controller that the present invention proposes, for realizing the part of multi-protocol data processing capacity in 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 receiver switching port, wherein 1~255 is data output switching port, and the summation of the number of the number of data receiver 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 receiver 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 by the type of optical-fibre channel frame head (FC frame head) judgement optical-fibre channel message (FC message); The multi-protocol data processing module can, according to different type of messages, be put into video messaging (AV message) respectively video data buffer area (AV data buffer area) or anonymous subscription message (ASM message) is put into anonymous subscription message data buffer area (ASM message data buffer area).
Described data output switching port and data receiver switching port mainly are comprised 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 comprised 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 receiver switching port, AV message or ASM message are carried out respectively virtual output work queue, 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 the formation of AV virtual cache and the formation of ASM virtual cache is all identical with total number of switching port 1.
The data receiver switching port is processed by the data protocol type judging module is transferred to the multi-protocol data processing module after receiving data, data after processing are back to the data receiver switching port and process, and are checked and are exported to data output switching port by the exchange scheduler after the wherethrough reason.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 receiver switching port coordinates the Prestige Management module to provide respectively independently ASM message credit value and AV message credit value for logging device, and AV message credit value and the ASM message credit value consulting to obtain are 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 receiver 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 that logs in of beaching accommodation continues to monitor, if receive after the logging request of beaching accommodation that carrying out port prestige by the Prestige Management module consults, and returns to logging device with AV message credit value and the ASM message credit value consulting to obtain.In negotiations process, the data receiver switching port provides respectively independently ASM message credit value and audio message credit value for logging device;
Step 2: monitor whether the data receiver switching port has optical-fibre channel data (being abbreviated as the FC data) to arrive, if while 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, by the type of optical-fibre channel frame head (FC frame head) judgement FC message;
Step 3: carry out data according to different data types by the multi-protocol data processing module and process, the FC message that arrives is ASM message, the multi-protocol data processing module puts it in the ASM data buffer area of data receiver 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, the multi-protocol data processing module puts it in the AV data buffer area of data receiver 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 receiver switching port is empty, if not empty, ASM virtual cache formation in the ASM data buffer area is exchanged and forwards scheduling, forward or exchange to data output switching port, the count value of Prestige Management module controls ASM prestige counter subtracts 1 simultaneously, then exchanges scheduler and returns to the ASM data buffer area that continues to check the data receiver switching port.If the exchange scheduler checks that the ASM data buffer area of this data receiver switching port is empty, checks the AV data buffer area.If the AV data buffer area is not empty, this AV data buffer area AV virtual cache queue message is exchanged and forwards scheduling, forward or exchange to data output switching port, the count value of Prestige Management module controls AV prestige counter subtracts 1 simultaneously, then exchange scheduler and return to the data buffer area that continues to check the data receiver switching port, then exchange scheduler and return to the ASM data buffer area that continues to check the data receiver switching port; If the AV data buffer area is empty, this data receiver switching port is not carried out any processing, continue to check the ASM data buffer area of data receiver switching port.
The advantage that the present invention has is:
(1) a kind of avionics 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 respectively independently prestige, overcome when audio frequency and video message occupies more data buffer area the problem that control command message can't be transmitted due to the prestige deficiency;
(2) a kind of avionics 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, strengthened the transmission time deterministic guarantees to control command message;
(3) a kind of avionics 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 large, weak requirement of real-time (namely allowing the partial data actual delay to postpone than regulation large), the control command data amount is less, hard real-time requires the characteristic of (namely requiring all data to be transmitted within regulation postpones), in the situation that switching port has 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 avionics fiber channel network multiprotocol controller that the present invention proposes;
Fig. 2: the switching port structured flowchart of a kind of avionics fiber channel network multiprotocol controller that the present invention proposes;
Fig. 3: in the control procedure of a kind of avionics fiber channel network multiprotocol controller that the present invention proposes, prestige is consulted flow chart;
Fig. 4: multi-protocol data manager processes flow chart in the control procedure of a kind of avionics 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 avionics fiber channel network multiprotocol controller that the present invention proposes.
In figure:
The 1-switching port; 2-multi-protocol data manager; 3-exchanges scheduler;
4-data receiver switching port; 5-data output switching port; 201-multi-protocols type judgement mould
Piece;
The 202-multi-protocol data is processed 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 avionics fiber channel network multiprotocol controller that the present invention proposes, for realizing the part of multi-protocol data processing capacity in 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 receiver switching port 4, wherein 1~255 is data output switching port 5, and the summation of the number of the number of data receiver 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 receiver 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 by the type of optical-fibre channel frame head (FC frame head) judgement optical-fibre channel message (FC message); Multi-protocol data processing module 202 can, according to different type of messages, be put into video messaging (AV message) respectively video data buffer area (AV data buffer area 1011) or anonymous subscription message (ASM message) is put into anonymous subscription message data buffer area (ASM message data buffer area 1012).
Described switching port 1 mainly is comprised 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 comprised 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 receiver switching port 4, AV message or ASM message are carried out respectively virtual output work queue, 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.The number of AV virtual cache formation 1011-1 and ASM virtual cache formation 1012-2 is all identical with total number of switching port 1.
Data receiver switching port 4 is processed by transferring to multi-protocol data processing module 202 after data protocol type judging module 201 is judged after receiving data, data after processing are back to data receiver switching port 4 and process, and export data output switching port 5 to by exchanging after scheduler 3 is checked processing after the wherethrough reason.Described Prestige Management module 102 is controlled AV prestige counter 103 and ASM prestige counter 104.Prestige Management module 102 has prestige and consults and the Prestige Management function; The prestige negotiation functionality is: data receiver switching port 4 coordinates Prestige Management module 102 to provide respectively independently ASM message credit value and AV message credit value for logging device, and AV message credit value and the ASM message credit value consulting to obtain are returned to logging device; The Prestige Management function is: the count value number of controlling ASM prestige counter 104 and AV prestige counter 103 by the variation that monitors data receiver switching port 4 data buffer area 101.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 respectively corresponding ASM data buffer area 1012 or AV data buffer area 1011 processes, exchange scheduler 3 is checked ASM data buffer area 1012 and AV data buffer area 1011, and the data that needs are forwarded or exchange 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 receiver 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 that logs in of beaching accommodation continues to monitor, as shown in Figure 3, if receive after the logging request of beaching accommodation that carrying out port prestige by Prestige Management module 102 consults, and returns to logging device with AV message credit value and the ASM message credit value consulting to obtain.In negotiations process, data receiver switching port 4 provides respectively independently ASM message credit value and audio message credit value for logging device;
Step 2: monitor whether data receiver switching port 4 has optical-fibre channel data (being abbreviated as the FC data) to arrive, as shown in Figure 4, if while 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, by the type of optical-fibre channel frame head (FC frame head) judgement FC message;
Step 3: the multi-protocol data processing module is carried out separate, stored and virtual line-up in conjunction with the data receiver switching port to the dissimilar data that arrive, as shown in Figure 4, if the FC message that arrives is ASM message, multi-protocol data processing module 202 puts it in the ASM data buffer area 1012 of data receiver 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, multi-protocol data processing module 202 puts it in the AV data buffer area 1011 of data receiver 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 receiver switching port 4 is empty, if not empty, ASM virtual cache formation 1012-2 in ASM data buffer area 1012 is exchanged and forwards scheduling, forward or exchange to data output switching port 4, the count value of Prestige Management module 102 control ASM prestige counters 104 subtracts 1 simultaneously, then exchanges scheduler 3 and returns to the ASM data buffer area 1012 that continues to check data receiver switching port 4., if exchange scheduler 3 checks that the ASM data buffer area 104 of this data receiver switching port 4 is empty, check AV data buffer area 1011.If AV data buffer area 1011 is not empty, the AV virtual cache queue message 1011-1 of this AV data buffer area 1011 exchanged the forwarding scheduling, forward or exchange to data output switching port 4, simultaneously Prestige Management module 102 count value of controlling AV prestige counters 103 subtracts 1, then exchanges scheduler 3 and returns to the AV data buffer area 1011 of the data buffer area 101 that continues to check data receiver switching port 4; If AV data buffer area 1011 is empty, this data receiver switching port 4 is not carried out any processing, continue to check the ASM data buffer area 1012 of data receiver switching port 4.
Receive 4 pairs of message datas that receive of exchanges data port and be stored in different data buffer area 101 according to data type, simultaneously Prestige Management module 102 and control respectively AV prestige counter 103 and ASM prestige counter 104 for AV message and ASM message and carry out the traffic management of data.Dissimilar message is distinguished management, make the difference scheduling to message data become possibility.
Beaching accommodation and data receiver 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 is arranged, only take the credit value of AV message in data receiver switching port 4, when a large amount of AV message are transmitted, when having ASM message to transmit, still can instantaneous transmission.While 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 to be waited for the complete rear shortcoming that just can transmit of AV transmission of messages.