CN104486112A - Receiving processing method for data frame - Google Patents

Receiving processing method for data frame Download PDF

Info

Publication number
CN104486112A
CN104486112A CN201410752954.8A CN201410752954A CN104486112A CN 104486112 A CN104486112 A CN 104486112A CN 201410752954 A CN201410752954 A CN 201410752954A CN 104486112 A CN104486112 A CN 104486112A
Authority
CN
China
Prior art keywords
frame
data
module
frame data
information
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.)
Pending
Application number
CN201410752954.8A
Other languages
Chinese (zh)
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.)
AVIC No 631 Research Institute
Original Assignee
AVIC No 631 Research Institute
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 AVIC No 631 Research Institute filed Critical AVIC No 631 Research Institute
Priority to CN201410752954.8A priority Critical patent/CN104486112A/en
Publication of CN104486112A publication Critical patent/CN104486112A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a receiving processing method for a data frame. A data frame storage module, a frame information extraction module, a filtering and policing module, a forwarding control module and a data monitoring module are adopted; the data frame storage module is used for receiving frame data from an MAC (Media Access Control) interface of an AFDX (Avionics Full Duplex) network switch chip and caching the frame data; the frame information extraction module is used for extracting the attribute information of the frame data from the data frame storage module and sending the attribute information to the filtering and policing module; the filtering and policing module is used for performing validity check on the frame data according to the attribute information to obtain a valid or invalid state of the frame data, and providing the valid or invalid state for the forwarding control module and the data monitoring module; the forwarding control module is used for determining forwarding or abandoning operation on the frame data according to the valid or invalid state of the frame data. The extracting, filtering and policing operations of frame information are carried out in a gap between receiving of the frame data and coming of a next frame, real-time linear speed processing using a data frame as a unit is realized, and the data can be efficiently processed in real time.

Description

A kind of receiving handling method of Frame
Technical field
The invention belongs to computer hardware technology, relate to a kind of receiving handling method of Frame.
Background technology
In AFDX network switch chip (under be called for short AFDX) design, need while AFDX receives data, complete the preliminary treatment to receiving frame data, preliminary treatment comprises the operations such as reception, filtration, alert pipe, thus prevent erroneous frame data on the impact of subsequent network, improve frames received certificate under linear speed, and to process in real time, abandon invalid data frame simultaneously and have the real-time of network, stability and significantly improve.
But it is existing also not for pretreated realizing circuit and the method for frames received certificate.
Summary of the invention
The object of the invention is to provide a kind of receiving handling method of Frame.
Technical solution of the present invention is:
A receiving processing circuit for Frame, its special character is: comprise Frame memory module 1, frame information extraction module 2, filtration and alert tube module 3, forward control module 4 and data monitoring module 5,
Described Frame memory module 1 for the MAC interface frames received certificate from AFDX network switch chip, row cache of going forward side by side;
Described frame information extraction module 2 for extracting the attribute information of frame data from Frame memory module 1, and sending to filtration and alert tube module 3, described attribute information comprises virtual link (VL) ID, mac source address, MAC destination address, No. SN and frame length;
Described filtration and alert tube module 3, for carrying out validity check according to attribute information to frame data, obtain the state that frame data are effective or invalid, and are supplied to forwarding control module 4;
Described forwarding control module 4, for the state effective or invalid according to frame data, determines forward frame data or abandon operation.
Also comprising data monitoring module 5: the frame data for receiving data Frame storage module 1 carry out policer operation, the state information of the frame data filtering and check in alert tube module 3 being carried out respectively adding up and being monitored, for data analysis simultaneously.
A receiving handling method for Frame, comprises the following steps:
1) Frame stores:
Frame memory module 1 from the MAC interface frames received certificate of AFDX network switch chip, row cache of going forward side by side;
2) frame information extracts:
Frame information extraction module 2 extracts the attribute information of frame data from Frame memory module 1, and sends to filtration and alert tube module 3, and described attribute information comprises virtual link (VL) ID, mac source address, MAC destination address, No. SN and frame length;
3) filtration and alert pipe:
3.1) filter:
Filter and according to attribute information, validity check is carried out to frame data with alert tube module 3, obtain the state that frame data are effective or invalid, and be supplied to forwarding control module 4; Validity check comprises frame length inspection, field of constants inspection, VLID checks and Nibble checks;
The condition of validity check is: frame length is greater than 64 bytes, is less than 1518 bytes; Field of constants is identical with preset value after resolving; When the VLID resolved mates with default receiving port VLID value; Nibble checks that frame data are 8bit alignment:
If when meeting above-mentioned condition, then perform step 3.2);
Otherwise current frame data is disarmed state, directly perform step 4);
3.2) pipe operation is warned to flow:
When flow shared by current frame data is less than the flow preset value of virtual link (VL) passage, be then that current data frame is effective;
Otherwise, for current data frame is invalid;
4) forwarding is transferred to:
If when forwarding control module 4 to receive current frame data be effective status, then send and forward control information to Frame memory module 1, current frame data sends to and forwards control module 4 by Frame memory module 1, forwards control module 4 pairs of current frame datas and carries out forwarding operation;
If when forwarding control module 4 to receive current frame data be disarmed state, then send and abandon control information to Frame memory module 1, current frame data directly carries out abandoning operation by Frame memory module 1.
Also comprise policer operation step: the frame data that data monitoring module 5 pairs of data Frame storage modules 1 receive carry out policer operation, the state information of the frame data filtering and check in alert tube module 3 is carried out respectively adding up and monitored, for data analysis simultaneously;
The particular content of policer operation be invalid frame is abandoned to the frame received, filtration and alert pipe, the final frame forwarded is added up.
Beneficial effect of the present invention:
1, frame information of the present invention extracts, filters with the operation of alert pipe is carry out in the reception of frame data and the arrival gap of next frame, ensures that Frame is that unit carries out, real-time linear speed receives, stores, forwarding, adds up, realizes the real-time high-efficiency process of data.
2, the present invention is by increasing data monitoring module 5, invalidly abandons frame, the final frame forwarded is added up, and is convenient to bus data analysis, malfunction test, error statistics to the frame received, filtration and alert pipe.
3, the present invention makes full use of receiving frame data receipt time and frame gap, complete the filtration of Frame, alert pipe, abandon, take and release by forwarding and abandoning, ensure that monitoring and data transmit-receive are parallel and carry out, do not interfere with each other, improve mission observability and testability.
4, because this invention controls effectively to make use of the relevant control interval that frame data receive, thus to guarantee that this invention can be widely used in frame be control the Interface Controller of unit, has to realize simple, controls the advantages such as reliable.
Accompanying drawing explanation
Fig. 1 is theory diagram of the present invention;
Fig. 2 is filtering circuit workflow diagram of the present invention;
Fig. 3 is the present invention's alert pipe function algorithm schematic diagram.
Embodiment
Below in conjunction with the drawings and specific embodiments, technical scheme of the present invention is stated clearly and completely.Obviously; the embodiment stated is only the present invention's part embodiment, instead of whole embodiments, based on the embodiment in the present invention; the every other embodiment that those skilled in the art are not making creative work prerequisite and obtain, all belongs to protection scope of the present invention.
A receiving processing circuit for Frame, comprises Frame memory module 1, frame information extraction module 2, filtration and alert tube module 3, forwards control module 4 and data monitoring module 5,
Described Frame memory module 1 for the MAC interface frames received certificate from AFDX network switch chip, row cache of going forward side by side;
Described frame information extraction module 2 for extracting the attribute information of frame data from Frame memory module 1, and sending to filtration and alert tube module 3, described attribute information comprises virtual link (VL) ID, mac source address, MAC destination address, No. SN and frame length;
Described filtration and alert tube module 3, for carrying out validity check according to attribute information to frame data, obtain the state that frame data are effective or invalid, and are supplied to forwarding control module 4;
Described forwarding control module 4, for the state effective or invalid according to frame data, determines forward frame data or abandon operation.
Also comprising data monitoring module 5: the frame data for receiving data Frame storage module 1 carry out policer operation, the state information of the frame data filtering and check in alert tube module 3 being carried out respectively adding up and being monitored, for data analysis simultaneously.
A receiving handling method for Frame, comprises the following steps:
1) Frame stores:
Frame memory module 1 from the MAC interface frames received certificate of AFDX network switch chip, row cache of going forward side by side;
2) frame information extracts:
Frame information extraction module 2 extracts the attribute information of frame data from Frame memory module 1, and sends to filtration and alert tube module 3, and described attribute information comprises virtual link (VL) ID, mac source address, MAC destination address, No. SN and frame length;
3) filtration and alert pipe:
3.1) filter:
Filter and according to attribute information, validity check is carried out to frame data with alert tube module 3, obtain the state that frame data are effective or invalid, and be supplied to forwarding control module 4; Validity check comprises frame length inspection, field of constants inspection, VLID checks and Nibble checks;
The condition of validity check is: frame length is greater than 64 bytes, is less than 1518 bytes; Field of constants is identical with preset value after resolving; When the VLID resolved mates with default receiving port VLID value; Nibble checks that frame data are 8bit alignment:
If when meeting above-mentioned condition, then perform step 3.2);
Otherwise current frame data is disarmed state, directly perform step 4);
3.2) pipe operation is warned to flow:
When flow shared by current frame data is less than the flow preset value of virtual link (VL) passage, be then that current data frame is effective;
Otherwise, for current data frame is invalid;
4) forwarding is transferred to:
If when forwarding control module 4 to receive current frame data be effective status, then send and forward control information to Frame memory module 1, current frame data sends to and forwards control module 4 by Frame memory module 1, forwards control module 4 pairs of current frame datas and carries out forwarding operation;
If when forwarding control module 4 to receive current frame data be disarmed state, then send and abandon control information to Frame memory module 1, current frame data directly carries out abandoning operation by Frame memory module 1.
Also comprise policer operation step: the frame data that data monitoring module 5 pairs of data Frame storage modules 1 receive carry out policer operation, the state information of the frame data filtering and check in alert tube module 3 is carried out respectively adding up and monitored, for data analysis simultaneously;
The particular content of policer operation be invalid frame is abandoned to the frame received, filtration and alert pipe, the final frame forwarded is added up.
Embodiment:
Below in conjunction with accompanying drawing, the present invention is described in further detail, refers to Fig. 1 to Fig. 3.
A receiving handling method for Frame, comprises the following steps:
Step 1, Frame memory module 1 receive data from the MAC of AFDX port, are stored in internal damping;
Step 2, frame information extraction module 2 extract the VLID of frame, MAC Address, No. SN, the Frame key message such as frame length information, and the information transmission that will inquire is to filtering and alert tube module 3;
Step 3, filter with alert tube module 3 according to the VLID of frame, MAC Address, whether No. SN, the key message such as frame length information carries out filtration inspection, specifically comprising frame length is integral multiple byte; Whether frame length is less than 64 bytes; Whether frame length is greater than 1518 bytes; Whether frame length is less than the maximum frame length (Lmax) of configuration; Whether frame length is greater than the minimum frame length (Lmin) of configuration; In MAC destination address, whether field of constants is legal; Whether VL ID is with input port coupling, whether frame data are that 8bit alignment waits filtration check item, complete and filter the frame information after checking, carry out warning pipe operation, the configuration that alert tube module is corresponding according to the VL of Frame, complete the calculating to its frame period, and judge whether this Frame meets the configuration of alert pipe according to the BAG of configuration with shake.The execution of alert tube mechanism ensures the function that fault is discharged, the terminal not allowing to lose efficacy upset network, anyly in certain transport stream all should be dropped with the afoul frame of network configuration.; After completing the inspection of alert pipe, check result is transferred to and forwards control module 4;
If the alert pipe check result of step 4 is correct, forward control module 4 at headspace initial address write control information, carry out forwarding operation, judge that current data frame forwards or abandons according to the check result of alert tube module 3, if present frame is effectively receive, then switch write address immediately to headspace initial address, at headspace initial address write control information, carry out forwarding operation; If present frame is invalid receiver, then control information need not write headspace, and after feedback abandons signal, Frame is abandoned by Frame memory module 1;
According to receiving handling method and the circuit of above-mentioned a kind of AFDX Frame, it is characterized in that, also comprise a data monitoring module 5, the Frame being received from outside MAC is monitored, statistical operation, regularly or at any time inquire about for AFDX Network Management Function node, Network Management Function node, according to the information collected, carries out information association, and be used for detection and positioning network failure, or analyze network performance.Monitoring module 5 monitors the Frame received from receiving port, and add up the original CRC check of Frame in receiving course, whether the Frame of current monitor makes mistakes, type of error indicates, current data frame input or output port numbers; The time value that current data frame receives, the data such as the check value of all data of current data frame, and the Frame monitored and relevant information are mail to External memory equipment.Each operation utilizes an event counter to add up, to record the state of AFDX network.

Claims (4)

1. the receiving processing circuit of a Frame, it is characterized in that: comprise Frame memory module (1), frame information extraction module (2), filtration and alert tube module (3), forward control module (4) and data monitoring module (5)
Described Frame memory module (1) for the MAC interface frames received certificate from AFDX network switch chip, row cache of going forward side by side;
Described frame information extraction module (2) for extracting the attribute information of frame data from Frame memory module (1), and sending to filtration and alert tube module (3), described attribute information comprises virtual link (VL) ID, mac source address, MAC destination address, No. SN and frame length;
Described filtration and alert tube module (3), for carrying out validity check according to attribute information to frame data, obtain the state that frame data are effective or invalid, and are supplied to forwarding control module (4);
Described forwarding control module (4), for the state effective or invalid according to frame data, determines forward frame data or abandon operation.
2. the receiving processing circuit of Frame according to claim 1, it is characterized in that: also comprise data monitoring module (5): the frame data for receiving data Frame storage module (1) carry out policer operation, the state information of filtering with the middle frame data checked of alert tube module (3) is carried out respectively adding up and monitored, for data analysis simultaneously.
3. a receiving handling method for Frame, is characterized in that: comprise the following steps:
1) Frame stores:
Frame memory module (1) from the MAC interface frames received certificate of AFDX network switch chip, row cache of going forward side by side;
2) frame information extracts:
Frame information extraction module (2) extracts the attribute information of frame data from Frame memory module (1), and sending to filtration and alert tube module (3), described attribute information comprises virtual link (VL) ID, mac source address, MAC destination address, No. SN and frame length;
3) filtration and alert pipe:
3.1) filter:
Filter and according to attribute information, validity check is carried out to frame data with alert tube module (3), obtain the state that frame data are effective or invalid, and be supplied to forwarding control module (4); Validity check comprises frame length inspection, field of constants inspection, VLID checks and Nibble checks;
The condition of validity check is: frame length is greater than 64 bytes, is less than 1518 bytes; Field of constants is identical with preset value after resolving; When the VLID resolved mates with default receiving port VLID value; Nibble checks that frame data are 8bit alignment:
If when meeting above-mentioned condition, then perform step 3.2);
Otherwise current frame data is disarmed state, directly perform step 4);
3.2) pipe operation is warned to flow:
When flow shared by current frame data is less than the flow preset value of virtual link (VL) passage, be then that current data frame is effective;
Otherwise, for current data frame is invalid;
4) forwarding is transferred to:
If when forwarding control module (4) to receive current frame data be effective status, then send and forward control information to Frame memory module (1), current frame data sends to and forwards control module (4) by Frame memory module (1), forwards control module (4) and carries out forwarding operation to current frame data;
If when forwarding control module (4) to receive current frame data be disarmed state, then send and abandon control information to Frame memory module (1), current frame data directly carries out abandoning operation by Frame memory module (1).
4. the receiving handling method of Frame according to claim 3, is characterized in that:
Also comprise policer operation step: data monitoring module (5) carries out policer operation to the frame data that data Frame storage module (1) receives, the state information of filtering with the middle frame data checked of alert tube module (3) is carried out respectively adding up and monitored, for data analysis simultaneously;
The particular content of policer operation be invalid frame is abandoned to the frame received, filtration and alert pipe, the final frame forwarded is added up.
CN201410752954.8A 2014-12-09 2014-12-09 Receiving processing method for data frame Pending CN104486112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410752954.8A CN104486112A (en) 2014-12-09 2014-12-09 Receiving processing method for data frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410752954.8A CN104486112A (en) 2014-12-09 2014-12-09 Receiving processing method for data frame

Publications (1)

Publication Number Publication Date
CN104486112A true CN104486112A (en) 2015-04-01

Family

ID=52760620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410752954.8A Pending CN104486112A (en) 2014-12-09 2014-12-09 Receiving processing method for data frame

Country Status (1)

Country Link
CN (1) CN104486112A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119691A (en) * 2015-07-21 2015-12-02 中国航天科工集团第三研究院第八三五七研究所 Method for reliable point-to-point transmission via Ethernet
CN105550382A (en) * 2015-12-12 2016-05-04 中国航空工业集团公司西安航空计算技术研究所 AFDX (Avionics Full Duplex Switched Ethernet) data sampling rerecording equipment and method
CN108306835A (en) * 2018-01-23 2018-07-20 中国航空工业集团公司洛阳电光设备研究所 A kind of the input-buffer structure and data forwarding method of Ethernet switch
CN109660528A (en) * 2018-12-05 2019-04-19 广州昂宝电子有限公司 For frame data to be carried out with the method and system of real time filtering
CN111278062A (en) * 2019-01-18 2020-06-12 维沃移动通信有限公司 Transmission method of Ethernet frame and related equipment
CN116633808A (en) * 2023-07-19 2023-08-22 成都成电光信科技股份有限公司 Data monitoring system and method under time-triggered fiber channel network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497285A (en) * 2011-12-07 2012-06-13 西安电子科技大学 Byte-based filtering and policing system and method of avionics full duplex switched Ethernet (AFDX) switch
CN103618683A (en) * 2013-11-15 2014-03-05 中国航空无线电电子研究所 AFDX interchanger terminal protocol stack structure and method for receiving and sending data thereof
CN103634238A (en) * 2013-12-03 2014-03-12 中国航空无线电电子研究所 Interchanger and interchanging method for supporting data monitoring of AFDX (avionics full duplex-switched Ethernet) protocol interchanging engine
CN104009942A (en) * 2014-06-17 2014-08-27 中国航空无线电电子研究所 Kilomega AFDX switch and switching method thereof
US20140313943A1 (en) * 2013-04-19 2014-10-23 Airbus Operations (S.A.S) Distributed method of data acquisition in an afdx network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497285A (en) * 2011-12-07 2012-06-13 西安电子科技大学 Byte-based filtering and policing system and method of avionics full duplex switched Ethernet (AFDX) switch
US20140313943A1 (en) * 2013-04-19 2014-10-23 Airbus Operations (S.A.S) Distributed method of data acquisition in an afdx network
CN103618683A (en) * 2013-11-15 2014-03-05 中国航空无线电电子研究所 AFDX interchanger terminal protocol stack structure and method for receiving and sending data thereof
CN103634238A (en) * 2013-12-03 2014-03-12 中国航空无线电电子研究所 Interchanger and interchanging method for supporting data monitoring of AFDX (avionics full duplex-switched Ethernet) protocol interchanging engine
CN104009942A (en) * 2014-06-17 2014-08-27 中国航空无线电电子研究所 Kilomega AFDX switch and switching method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王绮卉: "《AFDX核心交换技术的研究与实现》", 《中国优秀硕士学位论文全文数据库》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119691A (en) * 2015-07-21 2015-12-02 中国航天科工集团第三研究院第八三五七研究所 Method for reliable point-to-point transmission via Ethernet
CN105119691B (en) * 2015-07-21 2018-08-24 中国航天科工集团第三研究院第八三五七研究所 A kind of method of Ethernet point-to-point transmitting
CN105550382A (en) * 2015-12-12 2016-05-04 中国航空工业集团公司西安航空计算技术研究所 AFDX (Avionics Full Duplex Switched Ethernet) data sampling rerecording equipment and method
CN105550382B (en) * 2015-12-12 2019-03-05 中国航空工业集团公司西安航空计算技术研究所 A kind of AFDX data sampling recording equipment and method
CN108306835A (en) * 2018-01-23 2018-07-20 中国航空工业集团公司洛阳电光设备研究所 A kind of the input-buffer structure and data forwarding method of Ethernet switch
CN109660528A (en) * 2018-12-05 2019-04-19 广州昂宝电子有限公司 For frame data to be carried out with the method and system of real time filtering
TWI753227B (en) * 2018-12-05 2022-01-21 大陸商廣州昂寶電子有限公司 Method and system for on-the-fly filtering of frame data
CN111278062A (en) * 2019-01-18 2020-06-12 维沃移动通信有限公司 Transmission method of Ethernet frame and related equipment
CN116633808A (en) * 2023-07-19 2023-08-22 成都成电光信科技股份有限公司 Data monitoring system and method under time-triggered fiber channel network
CN116633808B (en) * 2023-07-19 2023-10-03 成都成电光信科技股份有限公司 Data monitoring system and method under time-triggered fiber channel network

Similar Documents

Publication Publication Date Title
CN104486112A (en) Receiving processing method for data frame
US9356830B2 (en) Communication device for a redundantly operable industrial communication network and method for operating the communication device
US5568471A (en) System and method for a workstation monitoring and control of multiple networks having different protocols
CN103200129B (en) The mirror method of a kind of exception message and device
JP5673805B2 (en) Network device, communication system, abnormal traffic detection method and program
CN110212983B (en) Conversion method and device of FC (fiber channel) signal and Ethernet signal
CN109639503A (en) A kind of exception message retrospect implementation method based on Substation Process layer network device
US20160057043A1 (en) Diagnostic routing system and method for a link access group
JP2022538961A (en) Automotive network switch with fault detection
CN112153020A (en) Industrial control flow analysis method and device
US10831582B2 (en) Systems and methods for an error logging mechanism at controller area network buses
CN103220188A (en) Hyper text transport protocol (HTTP) data acquisition equipment
CN104348676B (en) A kind of chain circuit detecting method and equipment based on operation management maintainance OAM
CN106302006A (en) A kind of dynamic source tracing method of IP spoofing packet based on SDN
US20140204958A1 (en) Preprocessing unit for network data
US10887241B2 (en) Communication device, communication system, and communication method
JP2006303703A (en) Network relaying apparatus
CN203135908U (en) AFDX (Avionics Full Duplex Switched Ethernet) bus detection system
JP2014068079A (en) I/o device, memory monitoring method and transmitter
CN112272193A (en) Filtering and shunting platform for effectively solving message multi-hit flow and implementation method
CN107809377B (en) Device and method for realizing universal gateway
JP6862988B2 (en) Server system, switch module and log acquisition method
CN112910686B (en) Flow analysis system, method of operating flow analysis system, and computer-readable storage medium
CN213403066U (en) Flow filtering and shunting platform for effectively solving multi-hit of message
WO2017071275A1 (en) Network device internal packet tracking method, device and network device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150401