CN115442267B - ICMP method based on ARINC664 protocol - Google Patents

ICMP method based on ARINC664 protocol Download PDF

Info

Publication number
CN115442267B
CN115442267B CN202211001812.9A CN202211001812A CN115442267B CN 115442267 B CN115442267 B CN 115442267B CN 202211001812 A CN202211001812 A CN 202211001812A CN 115442267 B CN115442267 B CN 115442267B
Authority
CN
China
Prior art keywords
icmp
message
data
frame header
header
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
CN202211001812.9A
Other languages
Chinese (zh)
Other versions
CN115442267A (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.)
Xian Xiangteng Microelectronics Technology Co Ltd
Original Assignee
Xian Xiangteng Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Xiangteng Microelectronics Technology Co Ltd filed Critical Xian Xiangteng Microelectronics Technology Co Ltd
Priority to CN202211001812.9A priority Critical patent/CN115442267B/en
Publication of CN115442267A publication Critical patent/CN115442267A/en
Application granted granted Critical
Publication of CN115442267B publication Critical patent/CN115442267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/4028Bus for use in transportation systems the transportation system being an aircraft

Abstract

The invention relates to an ICMP method based on ARINC664 protocol. The invention comprises the following steps: 1) An implementation of sending an ICMP request message; 2) And receiving response processing of the ICMP message. Aiming at the reliability and safety requirements of the AFDX bus network, the invention manages the network state information by the ICMP method, can meet various requirements of AFDX terminal communication and bus testing, and effectively improves the testing guarantee capability of the new generation aviation data bus.

Description

ICMP method based on ARINC664 protocol
Technical Field
The invention belongs to the computer application technology, and particularly relates to an ICMP method based on ARINC664 protocol.
Background
ICMP is a sub-protocol of TCP/IP protocol cluster, which has extremely important significance for network security, and is mainly used for transferring control information between a host and a router, including reporting error information, exchanging restricted control and network status information, etc. These control messages do not transmit user data, but play an important role in the transfer of user data, ensuring the security and reliability of network data.
Avionics full duplex switched Ethernet (AFDX) refers to the mature technology of commercial Ethernet, meets the requirements of network transmission delay certainty, safety, reliability and maintainability of an airborne avionics system, and is successfully applied to large airliners and transport planes. As the AFDX bus technology is increasingly applied to the field of airborne data buses, test guarantee for airborne equipment of the AFDX bus is also increasingly important.
Disclosure of Invention
In order to solve the technical problems in the background technology, the invention provides an ICMP method based on ARINC664 protocol, and provides a test method for solving the problem of uncertain connection state of system equipment in an AFDX bus network.
The technical scheme of the invention is as follows: the invention relates to an ICMP method based on ARINC664 protocol, which is characterized in that: the method comprises the following steps:
1) An implementation of sending an ICMP request message;
2) And receiving response processing of the ICMP message.
Further, the specific steps of step 1) are as follows:
1.1 Acquiring ICMP request message configuration information;
1.2 -constructing an ICMP request message package;
1.3 After the check message is successful, the ICMP message is sent.
Further, the specific steps of step 1.1) are as follows:
1.1.1 The end system obtains the destination IP, the data load address and the data length of the ICMP frame from the PCI Target0 register;
1.1.2 Waiting to acquire the free bitmap Fn.
Further, the specific steps of step 1.2) are as follows:
1.2.1 Carrying ICMP data to be sent to a corresponding address of a DPRAM to be sent through DMA on PCI, and carrying the ICMP data to be sent to an on-chip SDRAM;
1.2.2 Acquiring a virtual link used for transmission from the ICMP configuration table, and filling in an MAC frame header according to the number, the edge, the domain and the position of the virtual link;
1.2.3 Filling in IP frame header according to local IP and destination IP, filling in ICMP domain type 0x8 and code 0x0, and completing frame header construction.
Further, the specific steps of step 1.3) are as follows:
1.3.1 The end system carries out check operation on the IP header and the ICMP header in the ICMP message, saves the operation result to the IP frame header check bit and the ICMP frame header check bit, and writes the data packet into the sending buffer area;
1.3.2 A transmit VLFIFO register is configured to complete the data transmission.
Further, the specific steps of step 2) are as follows:
2.1 CRC check is carried out on the received message frame header and the message load;
2.2 Searching the replied virtual link from the ICMP configuration table according to the ICMP frame header information;
2.3 An ICMP reply packet is constructed and transmission is completed.
Further, the specific steps of step 2.1) are as follows:
2.1.1 After receiving ICMP message, the end system stores the frame header and message data to SDRAM in the chip;
2.1.2 An ICMP frame check function is invoked to CRC check the frame header and the data payload.
Further, the specific steps of step 2.2) are as follows:
2.2.1 Obtaining the message type from the received message frame header, wherein the received message type is 0x8, and the destination IP in the received message frame header is the local IP;
2.2.2 Searching ICMP configuration with the destination IP address equal to the source IP address in the received frame header in the ICMP configuration table, acquiring the replied virtual link, and searching the received idle bitmap Fn.
Further, the specific steps of step 2.3) are as follows:
2.3.1 An ICMP response packet is constructed, wherein the destination MAC address is a source MAC address in a receiving frame header, the destination IP address is a source IP address in the receiving frame header, the virtual link is a found virtual link, the type in the ICMP domain is filled with 0x0, and the code is filled with 0x0;
2.3.2 Acquiring a transmission message buffer address according to the FN number, storing received data into a transmission buffer area, and calculating an IP header checksum and an ICMP header checksum;
2.3.3 And (3) saving the operation result to the IP frame header check bit and the ICMP frame header check bit, and configuring a virtual link to send out the response packet.
Further, the transmission idle bitmap in step 1.1) represents an idle state for transmitting the DPRAM; dividing the whole transmitting DPRAM into a storage unit, wherein a bit corresponding to a bitmap register is 1 to indicate that the storage unit of the block is occupied, and a bit corresponding to a bitmap register is 0 to indicate that the storage unit is idle; when data is to be sent, the ARM reads the bitmap register to find out an idle storage unit, and writes the data to be sent into the idle storage unit, and then the ARM reads the corresponding position 1 of the bitmap register; ARM does not work with bitmap register write 0; after the data is sent, the sending controller clears the corresponding bit of the bitmap register; the receiving free bitmap Fn in the step 2.2) is used to flag the storage states of the header DPRAM and the payload DPRAM, and provides the addresses of the header DPRAM and the payload DPRAM for the MAC receiving module.
The ICMP method based on ARINC664 protocol provided by the invention is realized by sending ICMP request message; and the response processing of the ICMP message is received to manage the network state information, so that the requirement of the AFDX bus network on the system reliability is met. Therefore, the invention manages the network state information by ICMP method aiming at the reliability and safety requirements of the AFDX bus network, can meet various requirements of AFDX terminal communication and bus test, and effectively improves the test guarantee capability of the new generation aviation data bus.
Detailed Description
The technical scheme of the invention is further described in detail below with reference to specific embodiments.
The invention provides an ICMP method based on ARINC664 protocol, which comprises the following specific steps:
1) An implementation of sending an ICMP request message;
1.1 Acquiring ICMP request message configuration information;
1.1.1 The end system obtains the destination IP, the data load address and the data length of the ICMP frame from the PCI Target0 register;
1.1.2 Waiting to acquire the free bitmap Fn;
the transmit idle bitmap indicates an idle state used to indicate the transmit DPRAM; dividing the whole transmitting DPRAM into a storage unit, wherein a bit corresponding to a bitmap register is 1 to indicate that the storage unit of the block is occupied, and a bit corresponding to a bitmap register is 0 to indicate that the storage unit is idle; when data is to be sent, the ARM reads the bitmap register to find out an idle storage unit, and writes the data to be sent into the idle storage unit, and then the ARM reads the corresponding position 1 of the bitmap register; ARM does not work with bitmap register write 0; after the data is sent, the sending controller clears the corresponding bit of the bitmap register;
1.2 -constructing an ICMP request message package;
1.2.1 Carrying ICMP data to be sent to a corresponding address of a DPRAM to be sent through DMA on PCI, and carrying the ICMP data to be sent to an on-chip SDRAM;
1.2.2 Acquiring a virtual link used for transmission from the ICMP configuration table, and filling in an MAC frame header according to the number, the edge, the domain and the position of the virtual link;
1.2.3 Filling in an IP frame head according to the local IP and the destination IP, filling in an ICMP domain with the type of 0x8 and the code of 0x0, and completing the frame head construction;
1.3 After the check message is successful, the ICMP message is sent.
1.3.1 The end system carries out check operation on the IP header and the ICMP header in the ICMP message, saves the operation result to the IP frame header check bit and the ICMP frame header check bit, and writes the data packet into the sending buffer area;
1.3.2 A transmission VLFIFO register is configured to complete data transmission;
2) And receiving response processing of the ICMP message.
2.1 CRC check is carried out on the received message frame header and the message load;
2.1.1 After receiving ICMP message, the end system stores the frame header and message data to SDRAM in the chip;
2.1.2 Calling ICMP frame check function to perform CRC check on the frame header and the data load;
2.2 Searching the replied virtual link from the ICMP configuration table according to the ICMP frame header information;
2.2.1 Obtaining the message type from the received message frame header, wherein the received message type is 0x8, and the destination IP in the received message frame header is the local IP;
2.2.2 Searching ICMP configuration with the destination IP address equal to the source IP address in the received frame header in the ICMP configuration table, obtaining a replied virtual link, and searching a received idle bitmap Fn;
the received free bitmap Fn is used to flag the storage states of the header DPRAM and the payload DPRAM, and provides the addresses of the header DPRAM and the payload DPRAM for the MAC receiving module.
2.3 An ICMP reply packet is constructed and transmission is completed.
2.3.1 An ICMP response packet is constructed, wherein the destination MAC address is a source MAC address in a receiving frame header, the destination IP address is a source IP address in the receiving frame header, the virtual link is a found virtual link, the type in the ICMP domain is filled with 0x0, and the code is filled with 0x0;
2.3.2 Acquiring a transmission message buffer address according to the FN number, storing received data into a transmission buffer area, and calculating an IP header checksum and an ICMP header checksum;
2.3.3 And (3) saving the operation result to the IP frame header check bit and the ICMP frame header check bit, and configuring a virtual link to send out the response packet.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (2)

1. An ICMP method based on ARINC664 protocol, which is characterized in that: the method comprises the following steps:
1) An implementation of sending an ICMP request message;
1.1 Acquiring ICMP request message configuration information;
1.1.1 The end system obtains the destination IP, the data load address and the data length of the ICMP frame from the PCI Target0 register;
1.1.2 Waiting to acquire the free bitmap Fn;
1.2 -constructing an ICMP request message package;
1.2.1 Carrying ICMP data to be sent to a corresponding address of a DPRAM to be sent through DMA on PCI, and carrying the ICMP data to be sent to an on-chip SDRAM;
1.2.2 Acquiring a virtual link used for transmission from the ICMP configuration table, and filling in an MAC frame header according to the number, the edge, the domain and the position of the virtual link;
1.2.3 Filling in an IP frame head according to the local IP and the destination IP, filling in an ICMP domain with the type of 0x8 and the code of 0x0, and completing the frame head construction;
1.3 After the check message is successful, ICMP message is sent;
1.3.1 The end system carries out check operation on the IP header and the ICMP header in the ICMP message, saves the operation result to the IP frame header check bit and the ICMP frame header check bit, and writes the data packet into the sending buffer area;
1.3.2 A transmission VLFIFO register is configured to complete data transmission;
2) Receiving a response process of the ICMP message;
2.1 CRC check is carried out on the received message frame header and the message load;
2.1.1 After receiving ICMP message, the end system stores the frame header and message data to SDRAM in the chip;
2.1.2 Calling ICMP frame check function to perform CRC check on the frame header and the data load;
2.2 Searching the replied virtual link from the ICMP configuration table according to the ICMP frame header information;
2.2.1 Obtaining the message type from the received message frame header, wherein the received message type is 0x8, and the destination IP in the received message frame header is the local IP;
2.2.2 Searching ICMP configuration with the destination IP address equal to the source IP address in the received frame header in the ICMP configuration table, obtaining a replied virtual link, and searching a received idle bitmap Fn;
2.3 Constructing an ICMP response packet and completing transmission;
2.3.1 An ICMP response packet is constructed, wherein the destination MAC address is a source MAC address in a receiving frame header, the destination IP address is a source IP address in the receiving frame header, the virtual link is a found virtual link, the type in the ICMP domain is filled with 0x0, and the code is filled with 0x0;
2.3.2 Acquiring a transmission message buffer address according to the FN number, storing received data into a transmission buffer area, and calculating an IP header checksum and an ICMP header checksum;
2.3.3 And (3) saving the operation result to the IP frame header check bit and the ICMP frame header check bit, and configuring a virtual link to send out the response packet.
2. The ARINC664 protocol based ICMP method according to claim 1, wherein: the transmission idle bitmap in the step 1.1) represents an idle state for representing transmission of the DPRAM; dividing the whole transmitting DPRAM into a storage unit, wherein a bit corresponding to a bitmap register is 1 to indicate that the storage unit of the block is occupied, and a bit corresponding to a bitmap register is 0 to indicate that the storage unit is idle; when data is to be sent, the ARM reads the bitmap register to find out an idle storage unit, and writes the data to be sent into the idle storage unit, and then the ARM reads the corresponding position 1 of the bitmap register; ARM does not work with bitmap register write 0; after the data is sent, the sending controller clears the corresponding bit of the bitmap register; the receiving free bitmap Fn in the step 2.2) is used to flag the storage states of the header DPRAM and the payload DPRAM, and provides the addresses of the header DPRAM and the payload DPRAM for the MAC receiving module.
CN202211001812.9A 2022-08-20 2022-08-20 ICMP method based on ARINC664 protocol Active CN115442267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211001812.9A CN115442267B (en) 2022-08-20 2022-08-20 ICMP method based on ARINC664 protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211001812.9A CN115442267B (en) 2022-08-20 2022-08-20 ICMP method based on ARINC664 protocol

Publications (2)

Publication Number Publication Date
CN115442267A CN115442267A (en) 2022-12-06
CN115442267B true CN115442267B (en) 2023-11-10

Family

ID=84243434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211001812.9A Active CN115442267B (en) 2022-08-20 2022-08-20 ICMP method based on ARINC664 protocol

Country Status (1)

Country Link
CN (1) CN115442267B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0736805A (en) * 1993-07-19 1995-02-07 Hitachi Ltd Receiving frame data processing system
CN106534168A (en) * 2016-12-06 2017-03-22 中国电子科技集团公司第三十二研究所 TCPIP protocol stack safety processing system based on FPGA
CN110109852A (en) * 2019-04-03 2019-08-09 华东计算技术研究所(中国电子科技集团公司第三十二研究所) System and method for realizing TCP _ IP protocol by hardware
CN114489840A (en) * 2022-01-14 2022-05-13 南京邮电大学 TCP/IP hardware unloading system based on FPGA and implementation method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0736805A (en) * 1993-07-19 1995-02-07 Hitachi Ltd Receiving frame data processing system
CN106534168A (en) * 2016-12-06 2017-03-22 中国电子科技集团公司第三十二研究所 TCPIP protocol stack safety processing system based on FPGA
CN110109852A (en) * 2019-04-03 2019-08-09 华东计算技术研究所(中国电子科技集团公司第三十二研究所) System and method for realizing TCP _ IP protocol by hardware
CN114489840A (en) * 2022-01-14 2022-05-13 南京邮电大学 TCP/IP hardware unloading system based on FPGA and implementation method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于FPGA的AFDX端系统协议芯片的设计与实现;张志;翟正军;姚方圆;;计算机测量与控制(第02期);全文 *

Also Published As

Publication number Publication date
CN115442267A (en) 2022-12-06

Similar Documents

Publication Publication Date Title
US11792114B2 (en) System and method for facilitating efficient management of non-idempotent operations in a network interface controller (NIC)
US6459705B1 (en) Network interface for transmitting data from a networked computer in a reduced power state
US6668299B1 (en) Software interface between a parallel bus and a packet network
WO2021013046A1 (en) Communication method and network card
CN103731343A (en) MVB-WTB gateway based on LPC2468 and working method thereof
US8959265B2 (en) Reducing size of completion notifications
US8924605B2 (en) Efficient delivery of completion notifications
CN113852656A (en) Data transmission method, processor system and memory access system
CN113676386B (en) FC-AE-1553 bus protocol message communication system
CN115442267B (en) ICMP method based on ARINC664 protocol
CN115334173B (en) MODBUS and CC-Link protocol conversion device and method
CN116471242A (en) RDMA-based transmitting end, RDMA-based receiving end, data transmission system and data transmission method
CN114726883B (en) Embedded RDMA system
CN116266800A (en) Multicast transmission method, device and system
CN115174409A (en) Network connection method and system based on CXL protocol
CN114615106A (en) Ring data processing system, method and network equipment
WO2022060647A2 (en) Data frame interface network device
CN115442281B (en) ARINC664 protocol-based sampling method
CN111163106B (en) High-speed network preprocessing device based on world gateway
US20230179545A1 (en) Packet forwarding apparatus with buffer recycling and associated packet forwarding method
JP2003289315A (en) Packet transfer apparatus and packet transfer method
CN116089331A (en) TTE network communication method based on RDMA
CN117579418A (en) Master-slave self-adaptive communication system based on RS485 bus and communication method thereof
CN112988633A (en) Electronic equipment and data transmission method
CN116419431A (en) 5G industrial gateway with redundant receiving and transmitting functions

Legal Events

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