[go: up one dir, main page]

CN120186055A - A method for detecting bus network traffic - Google Patents

A method for detecting bus network traffic Download PDF

Info

Publication number
CN120186055A
CN120186055A CN202510432525.0A CN202510432525A CN120186055A CN 120186055 A CN120186055 A CN 120186055A CN 202510432525 A CN202510432525 A CN 202510432525A CN 120186055 A CN120186055 A CN 120186055A
Authority
CN
China
Prior art keywords
data packet
bus network
board card
data
hardware board
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
CN202510432525.0A
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.)
Wuhan Avic General Technology Co ltd
Beijing Cavige Technology Co ltd
Original Assignee
Wuhan Avic General Technology Co ltd
Beijing Cavige 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 Wuhan Avic General Technology Co ltd, Beijing Cavige Technology Co ltd filed Critical Wuhan Avic General Technology Co ltd
Priority to CN202510432525.0A priority Critical patent/CN120186055A/en
Publication of CN120186055A publication Critical patent/CN120186055A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种总线网络流量的检测方法,包括如下步骤:1)配置数据包的发送通道和接收通道;2)自定义数据包的配置参数;3)根据数据发送需求选取打流方式;4)通过硬件板卡下发数据包给总线网络,并传输至陪测设备,陪测设备反馈响应信息至硬件板卡,硬件板卡上传响应信息;5)对数据包和响应信息进行流量统计和数据分析处理,并显示总线网络的数据流量和响应时延。本发明的检测方法可根据数据的传输需求选择最佳的打流方式,灵活性佳,有效的提高了总线网络流量的检测效率。

The present invention discloses a method for detecting bus network traffic, comprising the following steps: 1) configuring a sending channel and a receiving channel of a data packet; 2) customizing configuration parameters of a data packet; 3) selecting a streaming mode according to data sending requirements; 4) sending a data packet to the bus network through a hardware board, and transmitting it to a companion test device, the companion test device feeds back a response information to the hardware board, and the hardware board uploads the response information; 5) performing traffic statistics and data analysis processing on the data packet and the response information, and displaying the data traffic and response delay of the bus network. The detection method of the present invention can select the best streaming mode according to the data transmission requirements, has good flexibility, and effectively improves the detection efficiency of the bus network traffic.

Description

Method for detecting bus network flow
Technical Field
The invention relates to the technical field of bus testing, in particular to a method for detecting bus network traffic.
Background
Due to the diversity of avionics, the buses on which these devices rely are also becoming more and more complex, and how to verify the stability, reliability, and real-time of these buses is becoming more and more important. The bus network flow test is a means for verifying the correctness, the response capability and the stability of the bus and the accompanying test equipment by sending data to the bus, collecting data returned by the bus, and carrying out statistics, comparison and analysis on the data. Most of the existing detection methods adopt a certain fixed flow mode, so that the flexibility is insufficient, and the detection efficiency is affected.
Disclosure of Invention
In view of the above-mentioned drawbacks or shortcomings in the prior art, it is desirable to provide a method for detecting bus network traffic, which can select an optimal streaming mode according to data transmission requirements, has good flexibility, and effectively improves detection efficiency.
The invention provides a method for detecting bus network flow, which comprises the following steps:
1) Configuring a sending channel and a receiving channel of a data packet;
2) Defining configuration parameters of the data packet;
3) Selecting a streaming mode according to the data transmission requirement, wherein the streaming mode comprises a hardware generation mode, a software generation mode and a mixed generation mode;
4) The test software transmits a data packet to the bus network through the hardware board card and transmits the data packet to the accompanying test equipment, and the accompanying test equipment feeds back response information to the hardware board card, and the hardware board card uploads the response information to the test software;
5) And the test software performs flow statistics and data analysis processing on the data packet and the response information, and displays the data flow and response time delay of the bus network on a software interface.
Further, in the step 2), the configuration parameters include a frame header and a load.
Furthermore, the hardware generation mode is that the test software sends configuration parameters to the hardware board card through driving, the hardware board card forms the configuration parameters into data packets according to protocol rules, the data packets are sent to the accompanying and testing equipment through a bus network, and the hardware board card uploads response information fed back by the accompanying and testing equipment according to the protocol rules.
Furthermore, the software generation mode is that the test software forms a data packet according to the protocol rule, the data packet is transmitted to the hardware board card in a transparent transmission mode, the hardware board card transmits the data packet to the accompanying and testing equipment through the bus network, and the hardware board card uploads response information fed back by the accompanying and testing equipment according to the protocol rule.
Furthermore, the hybrid generation mode is that the test software composes the data packet according to the protocol rule, the data packet is transmitted to the hardware board card in a transparent transmission mode, the hardware board card stores the data packet into the DDR, the hardware board card circularly transmits the data packet to the accompanying and testing equipment through the bus network, and the hardware board card uploads the response information fed back by the accompanying and testing equipment according to the protocol rule.
Further, the FC header includes a generic header, a command header, and a status header.
Compared with the prior art, the invention has the beneficial effects that:
(1) When the detection method of the invention detects the flow of the bus network, the optimal streaming mode can be selected according to the transmission requirement of data, the hardware generation mode responds to the data processing mode in the most timely mode by framing through hardware and responding to the accompanying detection equipment on the bus network, the framing of the software generation mode is completely controlled by software, the flexibility of data configuration and processing is increased, the flexibility of software and the timeliness of hardware are considered in the mixed generation mode, the requirements of various test scenes are met, the detection flexibility is good, and the detection efficiency of the flow of the bus network is effectively improved.
(2) The detection method of the invention satisfies the creation of various data packets by customizing the frame header and the load of the data packets.
It should be understood that the description in this summary is not intended to limit the critical or essential features of the embodiments of the invention, nor is it intended to limit the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is a flow chart of a detection method;
FIG. 2 is a frame diagram of a flow testing system;
FIG. 3 is a schematic diagram of the composition of a data packet;
FIG. 4 is a diagram of a generic header graphical control;
FIG. 5 is a schematic diagram of a command frame header graphical control;
Fig. 6 is a schematic diagram of a status frame header graphical control.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the invention are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other. The invention will be described in detail below with reference to the drawings in connection with embodiments.
Referring to fig. 1 to 6, an embodiment of the present invention provides a method for detecting bus network traffic, including the following steps:
1) Configuring a sending channel and a receiving channel of a data packet;
2) The configuration parameters of the data packet are customized, wherein the configuration parameters comprise frame headers and loads, and the data packet comprises SOFs, FC frame headers, data fields, CRC (cyclic redundancy check) and EOFs;
3) Selecting a streaming mode according to the data transmission requirement, wherein the streaming mode comprises a hardware generation mode, a software generation mode and a mixed generation mode;
The hardware generation mode is that the test software transmits configuration parameters to the hardware board card through driving, the hardware board card forms the configuration parameters into data packets according to protocol rules, and the data packets are transmitted to the accompanying and testing equipment through a bus network;
the software generation mode is that the test software forms a data packet with configuration parameters according to protocol rules, and the data packet is transmitted to the hardware board card in a transparent transmission mode, and the hardware board card transmits the data packet to the accompanying and testing equipment;
The mixed generation mode is that test software forms a data packet according to protocol rules, the data packet is transmitted to a hardware board card in a transparent transmission mode, the hardware board card stores the data packet into the DDR, and the hardware board card circularly transmits the data packet to accompanying test equipment through a bus network;
4) The test software transmits a data packet to the bus network through the hardware board card and transmits the data packet to the accompanying test equipment, and the accompanying test equipment feeds back response information to the hardware board card, and the hardware board card uploads the response information to the test software;
5) And the test software performs flow statistics and data analysis processing on the data packet and the response information, and displays the data flow and response time delay of the bus network on a software interface.
In this embodiment, as shown in fig. 2, the architecture diagram of the test system of the present invention is shown, the bus network traffic test software is connected with the accompanying test device through the hardware board card and the bus network, the bus network traffic test software sends data to the bus, the accompanying test device gives a response according to the protocol after receiving the data frames and returns the data to the hardware board card through the bus network, the hardware board card uploads the data to the bus network traffic test software, the hardware board card respectively time stamps the transceiving data in the data transmission process, the test software counts the transceiving data amount, calculates the transceiving rate, analyzes the transceiving data according to the protocol, and calculates the bus forwarding or response time delay through the transceiving data time stamp.
The composition of the data packet is shown in fig. 3, and the specific meaning is as follows:
SOF, frame delimiter, is an ordered set before frame content;
FC frame header, the first field of frame content, 6 words, namely 24 bytes, whose structure is shown in the general frame header of FIG. 4, followed by SOF, FC frame header is used to control link operation, control device transmission protocol and detect lost or unordered frames;
The data field comprises an extended frame header and a load, wherein the length of the extended frame header is equal to multiple of four bytes, the length of the FC-0 type frame data segment is zero, the length of the FC-1 type frame is equal to multiple of four bytes, the range is 0 byte to 2112 bytes, and if the effective load cannot be divided by 4, the effective load is filled;
CRC is a four byte field following the data field for detecting the data integrity of the frame header and the data field, and SOF and EOF are not included in the CRC check;
EOF, frame delimiter, indicates the end of frame content for an ordered set immediately following the CRC.
After the frame header and the load content of the data packet are configured, a streaming mode is selected, a test is started, the test software transmits data to the hardware board card, the data is the data packet with the configuration parameters or the test software group, the configuration parameters are transmitted to the hardware board card to form the data packet, the hardware board card transmits the data packet with a time stamp to a bus network, acquires response information fed back by a test accompanying device through the bus network, and then transmits the response information with the time stamp to the test software, and the software compares and analyzes the data packet with the response information and counts the data receiving and transmitting quantity, so that the automatic detection of the bus flow is realized.
As shown in fig. 4, the FC universal frame header control has a total of 6 words, each word has 32 bits, and corresponding cells can be edited in real time with 16-system data by double clicking, so that various types of FC universal frame headers can be formed.
As shown in fig. 5, the FC command frame header control has a total of 12 words, each word has 32 bits, and the corresponding cells can be edited in real time with 16-system data by double clicking, so that different types of FC command frame headers can be combined.
As shown in fig. 6, the FC status frame header control has 8 words in total, each word has 32 bits, and the corresponding cells can be edited in real time with 16-system data by double clicking, so that different types of FC status frame headers can be combined.
The invention realizes a whole set of processes of transmitting and collecting bottom layer signals and counting and analyzing data by upper layer test software through bus network flow test software and a matched hardware board card, and provides a solution for bus network flow detection for aviation buses.
In the description of the present specification, the terms "one embodiment," "some embodiments," and the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above is only a preferred embodiment of the present application, and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (6)

1. The method for detecting the bus network flow is characterized by comprising the following steps:
1) Configuring a sending channel and a receiving channel of a data packet;
2) Defining configuration parameters of the data packet;
3) Selecting a streaming mode according to the data transmission requirement, wherein the streaming mode comprises a hardware generation mode, a software generation mode and a mixed generation mode;
4) The test software transmits a data packet to the bus network through the hardware board card and transmits the data packet to the accompanying test equipment, and the accompanying test equipment feeds back response information to the hardware board card, and the hardware board card uploads the response information to the test software;
5) And the test software performs flow statistics and data analysis processing on the data packet and the response information, and displays the data flow and response time delay of the bus network on a software interface.
2. The method according to claim 1, wherein in the step 2, the configuration parameters include a frame header and a load.
3. The method for automatically detecting the flow of the bus network according to claim 1, wherein the hardware generation mode is that the test software issues the configuration parameters to the hardware board card through driving, the hardware board card forms the data packet with the configuration parameters according to protocol rules and sends the data packet to the accompanying and testing equipment through the bus network, and the hardware board card uploads response information fed back by the accompanying and testing equipment according to the protocol rules.
4. The automatic detection method of bus network traffic according to claim 1, wherein the software generation mode is that the test software composes the configuration parameters into data packets according to protocol rules, the data packets are issued to the hardware board card in a transparent transmission mode, the hardware board card sends the data packets to the accompanying and testing equipment through the bus network, and the hardware board card uploads response information fed back by the accompanying and testing equipment according to the protocol rules.
5. The automatic detection method of bus network traffic according to claim 1, wherein the hybrid generation mode is that test software composes a data packet according to a protocol rule, the data packet is issued to a hardware board card in a transparent transmission mode, the hardware board card stores the data packet into a DDR, the hardware board card circularly sends the data packet to accompanying and testing equipment through a bus network, and the hardware board card uploads response information fed back by the accompanying and testing equipment according to the protocol rule.
6. The automated method of detecting bus network traffic according to claim 1, wherein the data packets comprise SOF, FC headers, data fields, CRC, and EOF.
CN202510432525.0A 2025-04-08 2025-04-08 A method for detecting bus network traffic Pending CN120186055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510432525.0A CN120186055A (en) 2025-04-08 2025-04-08 A method for detecting bus network traffic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510432525.0A CN120186055A (en) 2025-04-08 2025-04-08 A method for detecting bus network traffic

Publications (1)

Publication Number Publication Date
CN120186055A true CN120186055A (en) 2025-06-20

Family

ID=96042315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510432525.0A Pending CN120186055A (en) 2025-04-08 2025-04-08 A method for detecting bus network traffic

Country Status (1)

Country Link
CN (1) CN120186055A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030229827A1 (en) * 2002-06-06 2003-12-11 Microsoft Corporation Systems and methods for analyzing bus data
CN104168162A (en) * 2014-08-20 2014-11-26 电子科技大学 Traffic generator for interchanger verification testing by software-hardware cooperation achieving
CN106130829A (en) * 2016-08-30 2016-11-16 北京润科通用技术有限公司 A kind of bus test method and device
CN107197242A (en) * 2017-05-08 2017-09-22 深圳创维数字技术有限公司 Set top box Wireless Fidelity automated testing method, system and readable storage medium storing program for executing
CN108776258A (en) * 2018-05-29 2018-11-09 四川斐讯信息技术有限公司 A kind of router power consumption test method and system
CN109617763A (en) * 2018-12-21 2019-04-12 北京润科通用技术有限公司 A kind of method for testing pressure and device for FC-AE bus
CN110995533A (en) * 2019-11-22 2020-04-10 配天机器人技术有限公司 Ethernet streaming test system
CN114217990A (en) * 2021-12-14 2022-03-22 苏州长风航空电子有限公司 Distributed hardware remote communication system based on UDP protocol and control method thereof
CN117255044A (en) * 2023-08-10 2023-12-19 武汉宇轩飞速通信技术有限公司 Test system, test method, terminal device, and computer-readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030229827A1 (en) * 2002-06-06 2003-12-11 Microsoft Corporation Systems and methods for analyzing bus data
CN104168162A (en) * 2014-08-20 2014-11-26 电子科技大学 Traffic generator for interchanger verification testing by software-hardware cooperation achieving
CN106130829A (en) * 2016-08-30 2016-11-16 北京润科通用技术有限公司 A kind of bus test method and device
CN107197242A (en) * 2017-05-08 2017-09-22 深圳创维数字技术有限公司 Set top box Wireless Fidelity automated testing method, system and readable storage medium storing program for executing
CN108776258A (en) * 2018-05-29 2018-11-09 四川斐讯信息技术有限公司 A kind of router power consumption test method and system
CN109617763A (en) * 2018-12-21 2019-04-12 北京润科通用技术有限公司 A kind of method for testing pressure and device for FC-AE bus
CN110995533A (en) * 2019-11-22 2020-04-10 配天机器人技术有限公司 Ethernet streaming test system
CN114217990A (en) * 2021-12-14 2022-03-22 苏州长风航空电子有限公司 Distributed hardware remote communication system based on UDP protocol and control method thereof
CN117255044A (en) * 2023-08-10 2023-12-19 武汉宇轩飞速通信技术有限公司 Test system, test method, terminal device, and computer-readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Z. LI; S. PENG; X. GENG;HUAWEI TECHNOLOGIES; M. NEGI; RTBRICK INDIA;: "PCEP Procedures and Protocol Extensions for Using PCE as a Central Controller (PCECC) for SRv6 draft-dhody-pce-pcep-extension-pce-controller-srv6-04", IETF, 13 July 2020 (2020-07-13) *
谢文杰;周晓凡;栾晓文;周荣娟;: "航天测控网实时数据流量监控与分析技术", 计算机测量与控制, no. 02, 25 February 2016 (2016-02-25) *

Similar Documents

Publication Publication Date Title
US8326988B2 (en) Systems and methods for data alignment
DE60219047T2 (en) A GENERAL INPUT / OUTPUT ARCHITECTURE AND CORRESPONDING METHODS FOR THE ASSEMBLY OF VIRTUAL CHANNELS THEREIN
CN113660140B (en) Service function chain fault detection method based on data control plane hybrid sensing
US8391157B2 (en) Distributed flow analysis
Lee et al. The principles and performance of Hubnet: A 50 Mbit/s glass fiber local area network
WO2014135038A1 (en) Packet transmission method and device based on pcie bus
CN109408424B (en) A data acquisition method of SpaceFibre bus based on PCIe interface
US20070255847A1 (en) Systems and methods for preparing network data for analysis
CN115514682A (en) Data transmission method, device, equipment and storage medium
CN117278653B (en) Data record transmission system and method for distributed site satellite
WO2023115678A1 (en) Data communication methods and apparatuses, electronic device and storage medium
CN111093227B (en) LoRaWAN-based wireless transmission data acquisition method and system
CN120186055A (en) A method for detecting bus network traffic
CN102223273B (en) A digital sensor network and communication method
CN101383731A (en) Network Card Test System
CN118413583B (en) IPMI protocol rapid transmission method and related equipment
EP0739561B1 (en) Apparatus and method for selectively storing error statistics
CN111490907B (en) A method and device for determining VXLAN network performance parameters
CN109120479A (en) A kind of network throughput testing approach based on network message format
CN102932106B (en) Sending method, receiving method, device and system for data
CN108828531B (en) A Radar Data Processing Method on FC Bus Simulation Platform
CN103222232B (en) Data collection device for monitoring streams in a data network
CN120785745B (en) PCIe devices, communication systems and methods based on Flit transmission mechanism
CN116723133B (en) Data transmitting and receiving equipment, network state information extraction method and device
CN120956581A (en) A robot communication state detection system and method based on network packet analysis

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