CN116389327B - A test method for AS6802 protocol consistency - Google Patents
A test method for AS6802 protocol consistencyInfo
- Publication number
- CN116389327B CN116389327B CN202310396521.2A CN202310396521A CN116389327B CN 116389327 B CN116389327 B CN 116389327B CN 202310396521 A CN202310396521 A CN 202310396521A CN 116389327 B CN116389327 B CN 116389327B
- Authority
- CN
- China
- Prior art keywords
- test
- current
- frame
- pcf
- pcf frame
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/18—Protocol analysers
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
- Computer And Data Communications (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a test method aiming at AS6802 protocol consistency, which is applied to a tester and comprises the steps of acquiring a test table through a data interface, wherein the test table comprises test contents corresponding to a plurality of protocol control frames, the test contents at least comprise operation types, operation windows and operation time points of all PCF frames, the operation types comprise sending or receiving, when a start test instruction is received, a local time counter starts timing and reads current test contents corresponding to current PCF frames in the test table, based on the current test contents, if the operation type of the current PCF frame is receiving, a PCF frame receiving window is started at the operation time point corresponding to the current PCF frame, after receiving the PCF frames to be tested sent by tested equipment, the PCF frames to be tested are analyzed, and the analyzed contents are compared with the test contents of the current PCF frames to obtain a test result. The operation in the test process is determined by the test board, and various tests can be completed without changing a hardware circuit.
Description
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a method for testing AS6802 protocol consistency.
Background
With the rapid development of distributed systems, conventional ethernet networks cannot meet the communication requirements of real-time determination, safety and fault tolerance of the systems by adopting a best effort, event-triggered transmission mechanism. The time-triggered Ethernet technology not only comprises the time-triggered technology, so that the network has the characteristics of real time and fault tolerance, but also has the characteristics of high bandwidth and flexible networking of the Ethernet, and is widely applied to the fields of aerospace, unmanned operation, telecommunication and the like.
The key to the implementation of time triggered ethernet technology is the AS6802 time synchronization protocol. The AS6802 time synchronization protocol establishes a new high-precision and fault-tolerant synchronization technique that enables low-delay, low-jitter, high-precision clock synchronization. AS6802 time synchronization introduces a global time reference for devices in the network and ensures the certainty, reliability and security of time triggered ethernet through fault tolerant techniques.
The time-triggered Ethernet technology has wide application prospect in the fields of aviation, aerospace and military, and a plurality of research institutes in China have developed self-home time-triggered Ethernet equipment. AS6802 protocol is used AS a key technology of time triggered ethernet, and whether the network can synchronize normally is a precondition for the time triggered ethernet to work. In practice, a network may include time-triggered ethernet devices provided by multiple vendors, each of which may not be able to fully comply with the standards defined by the AS6802 protocol during development, resulting in a network that is not synchronized. Because the state machine of the AS6802 protocol is complex, and network devices are numerous, the topology structure is complex, and the abnormality is difficult to detect.
It can be seen how to test whether the time triggered ethernet device conforms to the AS6802 protocol before networking is a problem to be solved by those skilled in the art.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a test method for AS6802 protocol consistency. The technical problems to be solved by the invention are realized by the following technical scheme:
the invention provides a test method for AS6802 protocol consistency, which is applied to a tester and comprises the following steps:
Acquiring a test table through a data interface, wherein the test table comprises test contents corresponding to a plurality of protocol control frames, the test contents at least comprise operation types, operation windows and operation time points of all PCF frames, and the operation types comprise sending or receiving;
When a start test instruction is received, a local time counter starts to count and reads current test contents corresponding to a current PCF frame in the test table;
Based on the current test content, if the operation type of the current PCF frame is receiving, starting a PCF frame receiving window at an operation time point corresponding to the current PCF frame;
after receiving a PCF frame to be tested sent by tested equipment, analyzing the PCF frame to be tested, and comparing the analyzed content with the test content of the current PCF frame to obtain a test result.
In one embodiment of the present invention, before the step of receiving the start test instruction, the method further includes:
writing the test table into a Random Access Memory (RAM);
When a start test instruction is received, a local time counter starts timing and reads current test contents corresponding to a current PCF frame in the test table, and the method comprises the following steps:
when a start test instruction is received, the local time counter starts to count and reads the current test content corresponding to the current PCF frame in the test table from the RAM.
In one embodiment of the present invention, based on the current test content, if the operation type of the current PCF frame is reception, the step of opening a PCF frame reception window at an operation time point corresponding to the current PCF frame includes:
determining the operation type, the operation window and the operation time point of the current PCF frame based on the current test content;
if the operation type of the current PCF frame is receiving, opening a PCF frame receiving window when the count value of the time counter is equal to the operation time point of the current PCF frame.
In one embodiment of the present invention, the PCF frame receiving window is centered on the operation time point of the current PCF frame, and the operation window of the current PCF frame is a width.
In one embodiment of the present invention, after the step of starting to time and reading the current test content corresponding to the current PCF frame in the test table when receiving the start test instruction, the method further includes:
determining the operation type, the operation window and the operation time point of the current PCF frame based on the current test content;
and if the operation type of the current PCF frame is transmission, transmitting the current PCF frame to the tested equipment when the count value of the time counter is equal to the operation time point of the current PCF frame.
In one embodiment of the present invention, the test contents further include a destination MAC address, a source MAC address, an ethernet frame type, an integration period, a member vector, a synchronization priority, a synchronization field, a synchronization frame type, a transparent clock, a frame order, whether it is the last frame, and a comparison enable field of each PCF frame.
In one embodiment of the present invention, after receiving a PCF frame to be tested sent by a device to be tested, the steps of analyzing the PCF frame to be tested and comparing the analyzed content with the test content of the current PCF frame to obtain a test result include:
receiving a PCF frame to be tested sent by tested equipment;
Analyzing the PCF frame to be tested to obtain a destination MAC address, a source MAC address, an Ethernet frame type, an integration period, a member vector, a synchronous priority, a synchronous domain, a synchronous frame type and a transparent clock of the PCF frame to be tested;
Acquiring a destination MAC address, a source MAC address, an Ethernet frame type, an integration period, a member vector, a synchronization priority, a synchronization domain, a synchronization frame type and a transparent clock of the current PCF frame from current test contents;
And comparing at least one of a destination MAC address, a source MAC address, an Ethernet frame type, an integration period, a member vector, a synchronous priority, a synchronous domain, a synchronous frame type and a transparent clock of the PCF frame to be detected with corresponding items of the destination MAC address, the source MAC address, the Ethernet frame type, the integration period, the member vector, the synchronous priority, the synchronous domain, the synchronous frame type and the transparent clock of the current PCF frame according to the comparison enabling field of the current PCF frame to obtain a detection consistency test result.
In one embodiment of the present invention, if the consistency test result is correct and the current PCF frame is not the last frame, the step of reading the current test content corresponding to the current PCF frame in the test table is returned after taking the next PCF frame as the current frame.
Compared with the prior art, the invention has the beneficial effects that:
(1) The invention provides a test method aiming at the consistency of AS6802 protocol, the operation in the test process is carried out by a test table, various tests can be completed without changing a hardware circuit, and the test time can trigger the state machine jump of Ethernet equipment under abnormal conditions because the state machine jump of the AS6802 protocol is complex.
(2) The invention can simulate the SM (Synchronous Master, synchronous host) to test the CM (Compression Master, compression host) and simulate the CM to complete the SM test.
(3) The invention can flexibly adjust whether to test the PCF frame field by comparing the enabling bit, for example, if the destination MAC address has the corresponding comparing enabling bit, if the comparing enabling bit is 1, the invention needs to judge whether the destination MAC address is the same, otherwise if the comparing enabling bit is 0, the invention does not need to judge whether the destination MAC address is the same, even if the destination MAC is different, the invention has no influence, and the invention can ignore the destination MAC address, the source MAC address, the synchronous domain and the synchronous priority of the test PCF frame of the PCF frame, thereby having extremely strong flexibility.
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Drawings
FIG. 1 is a schematic diagram of a method for testing the consistency of AS6802 protocol according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for testing the consistency of AS6802 protocol according to an embodiment of the present invention;
FIG. 3 is another schematic diagram of a testing method for AS6802 protocol consistency according to an embodiment of the present invention;
Fig. 4 is a schematic diagram of a test chart according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to specific examples, but embodiments of the present invention are not limited thereto.
Fig. 1 is a schematic diagram of a testing method for AS6802 protocol consistency according to an embodiment of the present invention, and fig. 2 is a flowchart of a testing method for AS6802 protocol consistency according to an embodiment of the present invention. The invention provides a test method for AS6802 protocol consistency, which is applied to a tester and comprises the following steps:
s1, acquiring a test table through a data interface, wherein the test table comprises test contents corresponding to a plurality of protocol control frames, the test contents at least comprise operation types, operation windows and operation time points of all PCF frames, and the operation types comprise sending or receiving;
S2, when a start test instruction is received, starting timing by a local time counter and reading current test content corresponding to a current PCF frame in a test table;
S3, based on the current test content, if the operation type of the current PCF frame is receiving, starting a PCF frame receiving window at an operation time point corresponding to the current PCF frame;
S4, after receiving the PCF frame to be tested sent by the tested equipment, analyzing the PCF frame to be tested, and comparing the analyzed content with the test content of the current PCF frame to obtain a test result.
Specifically, when the AS6802 protocol consistency test is performed on the time-triggered ethernet device, the behavior of the PCF frame is transmitted and received by the synchronization component through the content simulation of the test table, and the receiving PCF frame and the time point of the PCF frame are determined by the local time counter, so AS to compare the content of the PCF frame to be tested and the time point to determine whether the time-triggered ethernet device accords with the content specified by the AS6802 protocol.
Optionally, before the step of receiving the start test instruction, the method further includes:
the test table is written into a random access memory RAM.
The tester IN this embodiment receives a test table through a data interface, where the test table includes, for example, contents of PCF frames such AS cs (Coldstart ) frames, ca (Coldstart Acknowledge, cold start response) frames, and IN (Integration) frames that interact IN the AS6802 protocol cold start process.
In the step S2, when receiving the start test instruction, the local time counter starts to count and reads the current test content corresponding to the current PCF frame in the test table, including:
When a start test instruction is received, the local time counter starts to count and reads the current test content corresponding to the current PCF frame in the test table from the RAM.
Fig. 3 is another schematic diagram of a test method for AS6802 protocol consistency according to an embodiment of the present invention. As shown in fig. 3, in the step S3, based on the current test content, if the operation type of the current PCF frame is reception, a step of starting a PCF frame reception window at an operation time point corresponding to the current PCF frame includes:
determining the operation type, the operation window and the operation time point of the current PCF frame based on the current test content;
if the operation type of the current PCF frame is receiving, opening a PCF frame receiving window when the count value of the time counter is equal to the operation time point of the current PCF frame.
In this embodiment, the PCF frame receiving window uses the operation time point of the current PCF frame as the center, and uses the operation window of the current PCF frame as the width.
With continued reference to fig. 3, after the step of starting to time and reading the current test content corresponding to the current PCF frame in the test table when receiving the start test command, the local time counter further includes:
determining the operation type, the operation window and the operation time point of the current PCF frame based on the current test content;
if the operation type of the current PCF frame is transmitting, the current PCF frame is transmitted to the tested equipment when the count value of the time counter is equal to the operation time point of the current PCF frame.
In this embodiment, the test contents further include a destination MAC address, a source MAC address, an ethernet frame type, an integration period, a member vector, a synchronization priority, a synchronization field, a synchronization frame type, a transparent clock, a frame sequence, whether it is the last frame, and a comparison enable field of each PCF frame.
Further, after receiving the PCF frame to be tested, the tester buffers the PCF frame to be tested into the FIFO, reads out the PCF frame data to be tested buffered in the FIFO, analyzes the content of the frame, and completes the solidifying function.
In the step S4, after receiving the PCF frame to be tested sent by the device to be tested, the step of analyzing the PCF frame to be tested and comparing the analyzed content with the test content of the current PCF frame to obtain a test result includes:
receiving a PCF frame to be tested sent by tested equipment;
Analyzing the PCF frame to be tested to obtain a destination MAC address, a source MAC address, an Ethernet frame type, an integration period, a member vector, a synchronous priority, a synchronous domain, a synchronous frame type and a transparent clock of the PCF frame to be tested;
acquiring a destination MAC address, a source MAC address, an Ethernet frame type, an integration period, a member vector, a synchronization priority, a synchronization domain, a synchronization frame type and a transparent clock of a current PCF frame from current test contents;
And comparing at least one of a destination MAC address, a source MAC address, an Ethernet frame type, an integration period, a member vector, a synchronous priority, a synchronous domain, a synchronous frame type and a transparent clock of the PCF frame to be detected with corresponding items in the destination MAC address, the source MAC address, the Ethernet frame type, the integration period, the member vector, the synchronous priority, the synchronous domain, the synchronous frame type and the transparent clock of the current PCF frame according to a comparison enabling field of the current PCF frame to obtain a detection consistency test result.
In this embodiment, if the consistency test result is correct and the current PCF frame is not the last frame, the step of reading the current test content corresponding to the current PCF frame in the test table is returned after the next PCF frame is used as the current frame.
The method for testing the consistency of the AS6802 protocol provided by the invention is further described below by taking the test contents including cs frames, ca frames and IN frames IN a test table AS an example.
Specifically, after the tester starts the test, the local time counter starts timing, the first test content IN the test table is a transmitting cs frame, then the cs frame is transmitted at a specified time point, the second test content IN the test table is a receiving cs frame, then a receiving window is opened at the specified time point, after the received PCF frame is solidified, the received PCF frame content is compared with the specified content IN the test table, if the test result is correct and is not the last frame, then the test operation is continued on the next frame, further, the third test content IN the test table is a transmitting ca frame, then the tester transmits a ca frame at the specified time point, the fourth test content IN the test table is a receiving ca frame, then the tester starts the receiving window at the specified time point, and after the received PCF frame is solidified, the received PCF frame content is compared with the specified content IN the test table, similarly, if the test result is correct and is not the last frame, then the test operation is continued on the next frame, the test result is transmitted at the specified time point, then the test result is received at the specified time point, the test result is received, and the test result is successfully is solidified, and the test result is received on the final test window.
According to the above embodiments, the beneficial effects of the invention are as follows:
(1) The invention provides a test method aiming at the consistency of AS6802 protocol, the operation in the test process is carried out by a test table, various tests can be completed without changing a hardware circuit, and the test time can trigger the state machine jump of Ethernet equipment under abnormal conditions because the state machine jump of the AS6802 protocol is complex.
(2) The invention can simulate the SM to test the CM, and can simulate the CM to complete the SM test.
(3) The invention can flexibly adjust whether to test the PCF frame field by comparing the enabling bit, for example, if the destination MAC address has the corresponding comparing enabling bit, if the comparing enabling bit is 1, the invention needs to judge whether the destination MAC address is the same, otherwise if the comparing enabling bit is 0, the invention does not need to judge whether the destination MAC address is the same, even if the destination MAC is different, the invention has no influence, and the invention can ignore the destination MAC address, the source MAC address, the synchronous domain and the synchronous priority of the test PCF frame of the PCF frame, thereby having extremely strong flexibility.
In the description of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means 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 invention. In this specification, schematic representations of the above terms are not necessarily directed 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. Further, one skilled in the art can engage and combine the different embodiments or examples described in this specification.
Although the application is described herein in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a study of the drawings, the disclosure, and the appended claims.
The foregoing is a further detailed description of the invention in connection with the preferred embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310396521.2A CN116389327B (en) | 2023-04-13 | 2023-04-13 | A test method for AS6802 protocol consistency |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310396521.2A CN116389327B (en) | 2023-04-13 | 2023-04-13 | A test method for AS6802 protocol consistency |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116389327A CN116389327A (en) | 2023-07-04 |
| CN116389327B true CN116389327B (en) | 2025-08-12 |
Family
ID=86963180
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310396521.2A Active CN116389327B (en) | 2023-04-13 | 2023-04-13 | A test method for AS6802 protocol consistency |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116389327B (en) |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8793442B2 (en) * | 2012-02-08 | 2014-07-29 | International Business Machines Corporation | Forward progress mechanism for stores in the presence of load contention in a system favoring loads |
| CN104734900B (en) * | 2013-12-21 | 2019-05-17 | 北京市腾河智慧能源科技有限公司 | A kind of sending control method of communication protocol test |
| CN105592492B (en) * | 2015-12-18 | 2019-02-26 | 重庆邮电大学 | High-level protocol stack conformance test platform and test method |
| WO2020172652A1 (en) * | 2019-02-22 | 2020-08-27 | Apple Inc. | Radio resource management (rrm) testing using angle of arrival (aoa) |
| CN110460597B (en) * | 2019-08-08 | 2020-12-01 | 成都光航信科技有限公司 | Control frame pre-compression method based on AS6802 protocol |
| FR3118843B1 (en) * | 2021-01-13 | 2025-03-07 | Dassault Aviat | SECURE AIRCRAFT DIGITAL DATA TRANSFER SYSTEM COMPRISING REDUNDANT DATA PRODUCING SYSTEMS, ASSOCIATED ASSEMBLY AND METHOD |
| CN115022208B (en) * | 2022-05-10 | 2023-07-21 | 西安电子科技大学 | TTE network flow monitoring equipment and method |
-
2023
- 2023-04-13 CN CN202310396521.2A patent/CN116389327B/en active Active
Non-Patent Citations (1)
| Title |
|---|
| AS6802时间同步协议一致性测试技术研究与实现;郭晓鹏;《中国知网优秀硕士学位论文全文数据库》;20240630;正文第5-36页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116389327A (en) | 2023-07-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Basu et al. | Statistical abstraction and model-checking of large heterogeneous systems | |
| EP3185481B1 (en) | A host-to-host test scheme for periodic parameters transmission in synchronous ttp systems | |
| CN105530220B (en) | The interface method of two kinds of different agreement system communications is realized based on OPC | |
| US20050060403A1 (en) | Time-based correlation of non-translative network segments | |
| CN114006853B (en) | TTE network switch clock synchronization test method | |
| CN106850397A (en) | Message delivery method and device in Internet of Things | |
| CN115967644A (en) | Switch security testing method facing time sensitive network | |
| Steiner et al. | The TTEthernet synchronisation protocols and their formal verification | |
| CN120416085A (en) | Service supervision and automated testing methods in AFDX network testing | |
| CN116389327B (en) | A test method for AS6802 protocol consistency | |
| CN112134750B (en) | Network time protocol stress testing method and device | |
| CN112398672B (en) | Message detection method and device | |
| CN114006852B (en) | TTE network end node clock synchronization test method | |
| KR100257883B1 (en) | High level data link control method of communication packet destination and packet type detection device and method | |
| Hank | Pelican: A new can controller supporting diagnosis and system optimization | |
| CN114545201A (en) | Bus loop test structure and method | |
| CN109981394B (en) | Communication method and device based on enhanced CAN bus protocol analyzer | |
| JP2023543974A (en) | Verifying time synchronization | |
| CN116032802B (en) | Real-time sensitive network testing method for train network control and supervision system | |
| US12113886B2 (en) | Methods, systems and computer readable media for generating dynamic time error | |
| CN115242678B (en) | Data acquisition method and device, electronic equipment and storage medium | |
| EP1698105A1 (en) | Communication fault containment via indirect detection | |
| CN114629819B (en) | Network detection method and device, electronic equipment and storage medium | |
| CN109709932A (en) | The method and apparatus for diagnostic electronics based on dSPACE-HIL system | |
| Yu et al. | Research on Segmented Latency Testing Method for in-Vehicle Real-Time Systems Based on DDS Middleware |
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 |