Traffic monitoring test method and device in TTE network test and electronic equipment
By performing traffic bandwidth statistics and transparent transmission on service frames and synchronization frames of the TTE network, and recording abnormal events and time points, the problem of difficulty in monitoring synchronization status and service traffic in time-triggered Ethernet networks is solved, thus improving testing efficiency and stability.
Patent Information
- Application Number
- CN202510263614.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-06
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2045-03-06
AI Technical Summary
In time-triggered Ethernet networking, it is difficult to effectively monitor the synchronization status of devices and service traffic, which affects normal service transmission and reception.
By reading the test configuration information of the TTE network, the data frames are split into service frames and synchronization frames, traffic bandwidth statistics and transparent transmission are performed, abnormal events and time points are recorded, and the data is reported to the host computer.
It enables detailed anomaly monitoring of service frames and synchronization frames in the TTE network without affecting normal service flow transmission and network synchronization functions, thus improving the efficiency and stability of TTE network testing.
Smart Images

Figure CN120223568B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of communication, and particularly relates to a traffic monitoring test method and device in TTE (Time Triggered Ethernet) network testing and electronic equipment. BACKGROUND
[0002] With the rapid development of distributed systems, the traditional Ethernet transmission mechanism based on best effort and event triggering cannot meet the communication needs of the system for real-time determination, safety and fault tolerance. The time triggered Ethernet technology has the advantages of time triggered technology and high bandwidth and flexible networking of Ethernet, and is widely used in the fields of aerospace, unmanned driving and telecommunication.
[0003] The key to the realization of the time triggered Ethernet technology lies in the AS6802 time synchronization protocol. The protocol proposes a new high-precision and fault-tolerant synchronization technology, which can realize low delay, low jitter and high-precision clock synchronization. By introducing a global time reference for network devices and with the help of fault-tolerant technology, the AS6802 time synchronization ensures the determinacy, reliability and safety of the time triggered Ethernet.
[0004] However, in actual networking testing, if there is an abnormal synchronization state of a device in the network, it is often difficult to check whether the synchronization state and the local time are correct in time, thereby affecting the normal business transmission of the device.
[0005] Therefore, how to effectively monitor the synchronization state of the time triggered Ethernet device and the business traffic in networking has become an important problem. SUMMARY
[0006] In order to solve the above problems existing in the prior art, the present application provides a traffic monitoring test method and device in TTE network testing and electronic equipment.
[0007] The technical problem to be solved by the present application is solved by the following technical scheme:
[0008] In a first aspect, the present application provides a traffic monitoring test method in TTE network testing, applied to a traffic monitoring test system, and the method comprises:
[0009] reading test configuration information of the TTE network;
[0010] receiving a data frame sent by the TTE network and splitting the data frame into a business frame and a synchronization frame;
[0011] based on the test configuration information, performing a traffic bandwidth statistical operation on the business frame, and recording a first abnormal event and its corresponding abnormal time point when traffic anomaly occurs in the business frame.
[0012] transmit the synchronization frame based on the test configuration information, and record a second abnormal event and a corresponding abnormal time point when content of the synchronization frame is abnormal;
[0013] report the first abnormal event and / or the second abnormal event and the corresponding abnormal time point to a host computer.
[0014] Optionally, the reporting of the first abnormal event and / or the second abnormal event and the corresponding abnormal time point to the host computer comprises:
[0015] merging all the first abnormal events and / or the second abnormal events and the corresponding abnormal time points in a preset configuration reporting period, and reporting a merging result to the host computer.
[0016] Optionally, when the service frame is a TT frame, performing a traffic bandwidth statistical operation on the service frame based on the test configuration information, and recording a first abnormal event and a corresponding abnormal time point when traffic of the service frame is abnormal, comprises:
[0017] performing a traffic bandwidth statistical operation on the TT frame, and recording traffic bandwidth abnormality of the service frame and a corresponding abnormal time point when bandwidth fluctuation of the TT frame is greater than a preset threshold; the preset threshold is determined according to the test configuration information.
[0018] Optionally, when the service frame is a RC frame, performing a traffic bandwidth statistical operation on the service frame based on the test configuration information, and recording a first abnormal event and a corresponding abnormal time point when traffic of the service frame is abnormal, comprises:
[0019] performing a traffic bandwidth statistical operation on the RC frame, and recording service frame flow ID abnormality and a corresponding abnormal time point when an upper limit of bandwidth of the RC frame exceeds a BAG limit; the BAG limit is determined according to the test configuration information.
[0020] Optionally, when the service frame is a BE frame, performing a traffic bandwidth statistical operation on the service frame based on the test configuration information, and recording a first abnormal event and a corresponding abnormal time point when traffic of the service frame is abnormal, comprises:
[0021] performing a traffic bandwidth statistical operation on the BE frame, and recording service frame MAC address abnormality and a corresponding abnormal time point when a MAC address of the BE frame is inconsistent with the test configuration information.
[0022] Optionally, the synchronization frame comprises a PCF frame.
[0023] Optionally, the second abnormal event comprises a synchronization frame arrival time abnormality, a synchronization frame content abnormality and / or a synchronization frame protocol inconsistency abnormality.
[0024] In a second aspect, the present application provides a traffic monitoring test device in TTE network testing, the device comprising:
[0025] a reading module configured to read test configuration information of the TTE network;
[0026] a shunting module configured to receive data frames sent by the TTE network and shunt the data frames into service frames and synchronization frames;
[0027] a first abnormality recording module configured to perform traffic bandwidth statistical operation on the service frames based on the test configuration information and record a first abnormal event and a corresponding abnormal time point thereof when a traffic abnormality occurs in the service frames;
[0028] a second abnormality recording module configured to perform transparent transmission on the synchronization frames based on the test configuration information and record a second abnormal event and a corresponding abnormal time point thereof when a content abnormality occurs in the synchronization frames;
[0029] a reporting module configured to report the first abnormal event and / or the second abnormal event and the corresponding abnormal time points thereof to an upper computer.
[0030] In a third aspect, the present application provides an electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
[0031] the memory is configured to store a computer program;
[0032] the processor is configured to execute the computer program stored on the memory to realize the method steps of any one of the above-mentioned TTE network testing traffic monitoring test methods.
[0033] In a fourth aspect, the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize the method steps of any one of the above-mentioned TTE network testing traffic monitoring test methods.
[0034] The application provides a traffic monitoring test method in TTE network testing, which performs detailed abnormal monitoring processing on the special service frames and synchronization frames in the TTE network, performs traffic bandwidth statistical operation on the service frames based on the test configuration information of the TTE network, and records the first abnormal event and the corresponding abnormal time point when the traffic of the service frame is abnormal; the synchronization frames are transparently transmitted based on the test configuration information, and the second abnormal event and the corresponding abnormal time point are recorded when the content of the synchronization frame is abnormal. Through the traffic monitoring mechanism, the normal transmission of various service streams can be not affected, the synchronization function of the original network can be not affected, the abnormal monitoring of the specific link in the large-scale TTE network can be realized, the long-term test of the stability of the TTE networking can be realized, and the efficiency of the TTE network testing is improved.
[0035] The application will be further described in detail below with reference to the drawings and the application. BRIEF DESCRIPTION OF DRAWINGS
[0036] Figure 1 is a structural schematic diagram of a traffic monitoring test system provided by an embodiment of the application;
[0037] Figure 2 is a flowchart of a traffic monitoring test method in TTE network testing provided by an embodiment of the application;
[0038] Figure 3 is a format schematic diagram of service monitoring configuration information of a traffic monitoring test system provided by an embodiment of the application;
[0039] Figure 4 is a format schematic diagram of synchronization monitoring configuration information of a traffic monitoring test system provided by an embodiment of the application;
[0040] Figure 5 is a format schematic diagram of an abnormal event reporting of a traffic monitoring test system provided by an embodiment of the application;
[0041] Figure 6 is a structural schematic diagram of a traffic monitoring test device in TTE network testing provided by an embodiment of the application;
[0042] Figure 7 is a structural schematic diagram of an electronic device provided by an embodiment of the application. DETAILED DESCRIPTION
[0043] The application will be further described in detail below with reference to the drawings and the application.
[0044] In order to solve the problem that it is difficult to effectively monitor the synchronization state and service traffic of the time-triggered Ethernet device in actual networking test, the embodiment of the present application provides a traffic monitoring test method in TTE network test, which is applied to a traffic monitoring test system, as shown in Figure 1 , Figure 1 is a structural schematic diagram of the traffic monitoring test system provided by the embodiment of the present application, and the traffic monitoring test system comprises a data interface module, a frame information shunting module, a test configuration module, a local time recording module, a service frame monitoring module, a synchronization frame monitoring module, a synchronization frame transparent transmission control module, a forwarding management module, an exception storage module, an exception reporting module and a PCIE interface.
[0045] Next, the traffic monitoring test method in TTE network test provided by the embodiment of the present application will be described in detail in combination with the traffic monitoring test system. As shown in Figure 2 , Figure 2 is a flow schematic diagram of the traffic monitoring test method in TTE network test provided by the embodiment of the present application, and the traffic monitoring test method in TTE network test specifically comprises the following steps:
[0046] In step S201, the test configuration information of the TTE network is read.
[0047] Firstly, the test configuration module in the traffic monitoring test system configures the test configuration information and performs port division of the monitoring flow. The test configuration information of the TTE network comprises service monitoring configuration information and synchronization monitoring configuration information of the traffic monitoring test system, as shown in Figure 3 , Figure 3 is a format schematic diagram of the service monitoring configuration information of the traffic monitoring test system provided by the embodiment of the present application, and the service monitoring configuration information of the traffic monitoring test system comprises a lower limit and an upper limit of service traffic, a service MAC (Media Access Control) address and a service frame type; the service MAC address further comprises a service source MAC address and a service destination MAC address. As shown in Figure 4 , Figure 4 is a format schematic diagram of the synchronization monitoring configuration information of the traffic monitoring test system provided by the embodiment of the present application, and the synchronization monitoring configuration information of the traffic monitoring test system comprises a synchronization MAC address, a basic period, a matrix period and a synchronization parameter; the synchronization MAC address further comprises a synchronization source MAC address and a synchronization destination MAC address. It should be noted that, during the configuration, the synchronization frame test only needs to be configured once, the service frame needs to be configured multiple times according to different frame types, and when the parameters need to be refreshed, the parameters can be refreshed by reconfiguration.
[0048] In the embodiment of the application, the initial configuration information is sent by the upper computer, and the initial configuration information is received from the upper computer through the PCIE interface and transmitted to the service frame monitoring module and the synchronization frame monitoring module.
[0049] Further, the test configuration information of the TTE network can specifically include a traffic lower limit and a traffic upper limit of the service frame, a source MAC address of the service frame, a destination MAC address of the service frame, and a frame type of the service; a source MAC address and a destination MAC address of the synchronization frame, a basic period, a matrix period, and a synchronization parameter, the synchronization parameter including a basic period number range, a member vector value, a synchronization priority, a synchronization domain, a synchronization frame type, a transparent clock value, and a reserved field value; and port division including determination of an input port number and an output port number of a data stream.
[0050] Next, network topology connection is performed, the traffic monitoring test system is connected to the original TTE network, a start test instruction is sent, the local time counter starts timing, and the test configuration information is read.
[0051] The data interface module in the traffic monitoring test system can be used to read the test configuration information of the TTE network, the data interface module is used to convert the physical signal of the network into data in the TTE standard format, and the TTE network data frame is obtained. The data interface module can include a PHY (Physical, physical layer) and a MAC general IP (Intellectual Property Core) core, wherein the IP core refers to a pre-designed, verified and reusable functional module.
[0052] In the embodiment of the application, the local time counter, that is, the local time recording module, records the time point of occurrence of a link abnormal event according to a test duration register configuration selection timing test mode or a long-term monitoring mode; when the system issues a test configuration instruction, the configuration register is set to 1, and at this time, the local time counter starts working. This signal flag is equivalent to the start switch of the counter. The two working modes include the timing test mode or the long-term monitoring mode, when the test duration register is configured at the same time, the specific test time can be realized, if the test duration register is not configured, the long-term monitoring mode is used by default, at this time, each time the link has an abnormal situation, the abnormal information fault code and the time point of occurrence are reported; at the same time, the local time can be used for subsequent recovery of the original data stream in the forwarding management module and forwarding output.
[0053] In step S202, the data frame sent by the TTE network is received, and the data frame is shunted into the service frame and the synchronization frame.
[0054] In the embodiment of the present application, the frame information shunting module in the traffic monitoring test system can be used to analyze the frame content of the TTE network data frame, including the frame type field, MAC address, basic cycle number of the synchronization frame, member vector number, synchronization priority, synchronization domain, synchronization frame type and transparent clock, and according to the frame type field, the frame information is shunted to the service frame monitoring module and the synchronization frame monitoring module.
[0055] In an implementation manner, the service frame includes a TT (Time-Triggered) frame, a RC (Rate-Constrained) frame and a BE (Best-Effort) frame, and the TTE network synchronization frame type includes a PCF frame.
[0056] In step S203, based on the test configuration information, the traffic bandwidth of the service frame is counted, and when the traffic of the service frame is abnormal, the first abnormal event and the corresponding abnormal time point are recorded.
[0057] In the embodiment of the present application, the service frame monitoring module in the traffic monitoring test system can be used to count the traffic bandwidth of the service frame of the input port, count according to different service frame types, and when the MAC address of the service frame does not match the configuration or the bandwidth is abnormal, the first abnormal event is generated. Wherein, the traffic bandwidth = frame length of the data frame * (number of received data frames / unit time).
[0058] In the embodiment of the present application, for the three types of service frames, frame field checking and traffic bandwidth counting are performed, and when the traffic is abnormal, the bandwidth abnormal information and the current abnormal time point are recorded, as follows:
[0059] According to the frame information of the service frame received by the input port, the port traffic bandwidth is counted and the frame field is checked, and at this time, the receiving time point of the input service stream is recorded, which is used for subsequent recovery of the output data stream.
[0060] In an implementation manner, the bandwidth range of the service frame depends on the service scheduling of the end system connected by the input port, and the bandwidth characteristics of different service types are different, which are mainly divided into the following three types.
[0061] In the embodiment of the present application, when the service frame is a TT frame, based on the test configuration information, the traffic bandwidth of the service frame is counted, and when the traffic of the service frame is abnormal, the first abnormal event and the corresponding abnormal time point are recorded, including:
[0062] The traffic bandwidth of the TT frame is counted, when it is determined that the bandwidth fluctuation of the TT frame is greater than a preset threshold, the service frame traffic bandwidth abnormality and the corresponding abnormal time point are recorded; the preset threshold is determined according to the test configuration information.
[0063] Specifically, in the TTE network, the TT service is a static planning deterministic time triggered service, each TT frame has a fixed dispatch time point and a flow ID (Identifier, identifier), and is sent in a matrix cycle, so the TT bandwidth information of the link can be calculated according to all TT frames and frame lengths in a matrix cycle. When the link is stable, the bandwidth of the TT frame is relatively stable, and when the TT service bandwidth on the link fluctuates greatly, it indicates that there is a frame loss phenomenon in the TT frame on the link.
[0064] The specific preset threshold value can be set by the technician based on the test configuration information according to experience, which is not limited here.
[0065] In the embodiment of the application, when the service frame is an RC frame, based on the test configuration information, the traffic bandwidth of the service frame is counted, and when the traffic of the service frame is abnormal, the first abnormal event and the corresponding abnormal time point are recorded, including:
[0066] The traffic bandwidth of the RC frame is counted, and when the bandwidth upper limit of the RC frame exceeds the BAG limit, the service frame flow ID abnormality and the corresponding abnormal time point are recorded; the BAG limit is determined according to the test configuration information.
[0067] Specifically, in the TTE network, RC service divides different BAG (Bandwidth Allocation Gap, bandwidth allocation gap) according to flow ID, and performs rate limiting, so the upper limit of the RC frame bandwidth is the traffic bandwidth calculated according to the maximum frame length sent in unit time according to the BAG. Therefore, when the link is stable, the bandwidth of the RC frame is relatively stable, and there is an upper limit, when the RC on the link exceeds the upper limit, it indicates that the RC frame on the link exceeds the BAG limit, and there is an abnormality.
[0068] The specific BAG limit value can be set by the technician based on the test configuration information according to experience, which is not limited here.
[0069] In the embodiment of the application, when the service frame is a BE frame, based on the test configuration information, the traffic bandwidth of the service frame is counted, and when the traffic of the service frame is abnormal, the first abnormal event and the corresponding abnormal time point are recorded, including:
[0070] The traffic bandwidth of the BE frame is counted, and when the MAC address of the BE frame is inconsistent with the test configuration information, the service frame MAC address abnormality and the corresponding abnormal time point are recorded.
[0071] Specifically, in the TTE network, the BE service does not have the characteristics of the flow ID and static planning, and the MAC address monitored on the link should be consistent with the test configuration information. Since the link bandwidth allocation of the BE service has randomness, but the transmission rate will not exceed the upper limit of the link transmission rate. Therefore, when the source MAC address or the destination MAC address of the BE frame abnormally changes, the link is abnormal.
[0072] Based on the above analysis, the first abnormal event in the embodiment of the application can include service frame traffic bandwidth abnormality, service frame flow ID abnormality, and service frame MAC address abnormality.
[0073] In the embodiment of the application, the time recording module in the traffic monitoring test system can be used to record the local receiving time of the TTE network data frame, to output the flow recovery and abnormality record. The time recording module records the local receiving time stamp of the received TTE network data frame by maintaining a local clock, and outputs the input flow to the output port after a fixed time delay. When an abnormality occurs, the local clock is read as an abnormal time point, and the abnormal event point includes the abnormal event start time and the abnormal event end time.
[0074] In step S204, based on the test configuration information, the synchronization frame is transparently transmitted, and when the content of the synchronization frame is abnormal, the second abnormal event and the corresponding abnormal time point are recorded.
[0075] In the embodiment of the application, the synchronization frame monitoring module in the traffic monitoring test system is used to determine whether the synchronization frame of the input port is consistent with the AS6802 protocol, to perform protocol legality checking, and to count and determine the receiving time. When the synchronization frame is inconsistent with the protocol or the arrival time deviates too much, an abnormal event is generated.
[0076] In the embodiment of the application, the service frame includes a PCF frame. In the TTE network, the PCF service frame length is fixed, and in the stable synchronization state, the scheduling time point is relatively fixed, so the bandwidth is relatively fixed. Therefore, whether there is a behavior inconsistent with the AS6802 protocol is mainly monitored.
[0077] Further, the second abnormal event includes synchronization frame arrival time abnormality, synchronization frame content abnormality, and / or synchronization frame protocol inconsistency abnormality. Taking the synchronization frame arrival time abnormality and the synchronization frame protocol inconsistency abnormality as examples, the traffic monitoring test method in the TTE network test provided by the embodiment of the application is further described.
[0078] Specifically, the PCF frame is further divided into three types of frames, namely, a CS cold start frame, a CA cold start response frame and an IN synchronization frame. In a state of stable synchronization of the network, a synchronization frame is scheduled to be sent in each basic period, and when a synchronization frame of a monitored link is not received for more than one basic period, it is considered that a missing fault occurs, and it is determined that a synchronization frame arrival time abnormality event occurs; at this time, the arrival time of a next received synchronization frame and the frame content are monitored, and when the basic period in which the synchronization frame is not received does not exceed the synchronization threshold of the stable synchronization state, it is considered that the device connected by the link is still in a synchronization state, and the subsequent received synchronization frame should be an IN frame; when the basic period in which the synchronization frame is not received exceeds the synchronization threshold of the stable synchronization state, it is considered that the device connected by the link should be in an unsynchronized state, and the subsequent received synchronization frame should be a CS frame; when the received synchronization frame is not the above case, it is determined that a synchronization frame protocol inconsistency abnormality occurs.
[0079] In the embodiment of the application, for the synchronization frame, transparent transmission is performed, and when an abnormality occurs, synchronization abnormality information fault codes and the current abnormality time point are recorded, and the specific process is as follows:
[0080] According to the frame information of the TTE network synchronization frame received by the input port, first, the synchronization state and the unsynchronized state are judged through the received frame content, when the received frame at this time is an IN frame interacted in the synchronization state, it is considered that the input port device is in a synchronization state, when the received frame at this time is a CS frame and a CA frame interacted in the synchronization state, it is considered that the input port device is in an unsynchronized state, the receiving time point is recorded, and the test device forwarding delay is corrected into the transparent clock parameter of the synchronization frame.
[0081] In the embodiment of the application, the synchronization frame transparent transmission control module in the traffic monitoring test system is used for modifying the transparent clock value of the synchronization frame, and adding the introduced forwarding delay to the transparent clock of the synchronization frame field, without affecting the original network synchronization effect.
[0082] In the embodiment of the application, the forwarding management module in the traffic monitoring test system is used for scheduling and arranging the forwarding of the synchronization frame and the service frame according to the flow characteristics distribution of the input port.
[0083] In step S205, the first abnormality event and / or the second abnormality event and the respective abnormality time points are reported to the upper computer.
[0084] In the embodiment of the application, the abnormality storage module in the traffic monitoring test system is used for storing the abnormality event and the fault code, and when the abnormality reporting module sends a reading signal, the abnormality event is sent to the abnormality reporting module.
[0085] The abnormality reporting module in the flow monitoring test system can have two working modes according to different test configurations, one is to report periodically according to preset configuration, and the other is to report immediately when an abnormal event occurs.
[0086] In an implementation mode, the first abnormal event and / or the second abnormal event and the respective abnormal time points are reported to an upper computer, including:
[0087] All the first abnormal events and / or the second abnormal events and the respective abnormal time points in a preset configuration reporting period are combined, and the combined result is reported to the upper computer.
[0088] In the embodiment of the application, the preset configuration reporting period can be set by a technician according to experience, which is not limited herein.
[0089] In the embodiment of the application, the PCIE interface in the flow monitoring test system is a data interface of the upper computer, and the test information configuration and the abnormal event reporting can be performed from the upper computer.
[0090] Referring to Figure 5 , Figure 5 is a format diagram of the abnormal event reported by the flow monitoring test system provided by the embodiment of the application, and the format of the abnormal event reported by the flow monitoring test system can include an abnormal type, a fault code, a fault occurrence start time and a fault occurrence end time. The abnormal type can include the first abnormal event and the second abnormal event; the fault code is a code for uniquely identifying a specific fault type, which can facilitate quick identification and problem handling; the fault occurrence start time and the fault occurrence end time can be obtained by recording the corresponding abnormal time points when the abnormal event occurs.
[0091] In the embodiment of the application, when a fault occurs, long-term continuous monitoring can be selected, and the abnormality can be reported periodically according to a preset reporting period, or the abnormality can be reported immediately when the abnormality occurs. When multiple abnormalities occur simultaneously, the abnormality conditions can be combined and uploaded, the abnormal type, the fault code, the start and end time of multiple abnormal conditions are recorded, the information of multiple abnormal types is in a bit mapping format, one bit in the reported abnormality corresponds to each specific fault, and a specific number of start and end time is allocated to each abnormality.
[0092] In the embodiment of the present application, the service frame and the synchronization frame specific to the TTE network are monitored in detail, the traffic bandwidth of the service frame is counted based on the test configuration information of the TTE network, and when the traffic of the service frame is abnormal, the first abnormal event and the corresponding abnormal time point are recorded; the synchronization frame is transparently transmitted based on the test configuration information, and when the content of the synchronization frame is abnormal, the second abnormal event and the corresponding abnormal time point are recorded. Through this traffic monitoring mechanism, the normal transmission of various service flows can be ensured, the synchronization function of the original network can be ensured, the abnormal monitoring of the specific link in the large-scale TTE network can be realized, the long-term test of the stability of the TTE network can be realized, and the efficiency of the TTE network test is improved.
[0093] The three service frames and one synchronization frame specific to the TTE network are monitored in detail. For the three service frames, the data flow bandwidth input to the test device can be dynamically calculated through the traffic bandwidth counting function, and when the traffic is abnormal, the abnormal fault code can be reported through the abnormal diagnosis function; for the synchronization frame, the transparent clock value of the synchronization frame can be corrected through the transparent transmission function, the original synchronization effect of the network is not affected, and whether the arrival time of the synchronization frame at this time is consistent with the expected value and whether the frame content is abnormal can be determined through the abnormal diagnosis function.
[0094] The traffic monitoring test method for TTE network test provided by the embodiment of the present application can monitor multiple TTE links at the same time, realize abnormal analysis and diagnosis, and report the abnormal situation of the link.
[0095] Based on the same inventive concept, the embodiment of the present application further provides a traffic monitoring test device for TTE network test, which is described with reference to Figure 6 , Figure 6 is a structural schematic diagram of a traffic monitoring test device for TTE network test provided by the embodiment of the present application, and the device comprises:
[0096] The reading module 601 is configured to read the test configuration information of the TTE network.
[0097] The shunting module 602 is configured to receive the data frame sent by the TTE network and shunt the data frame into a service frame and a synchronization frame.
[0098] The first abnormality recording module 603 is configured to count the traffic bandwidth of the service frame based on the test configuration information, and record the first abnormal event and the corresponding abnormal time point when the traffic of the service frame is abnormal.
[0099] The second exception recording module 604 is configured to perform transparent transmission on the synchronization frame based on the test configuration information, and record a second exception event and a corresponding exception time point of the second exception event when content exception of the synchronization frame occurs.
[0100] The reporting module 605 is configured to report the first exception event and / or the second exception event and the corresponding exception time point of the first exception event and / or the second exception event to a host computer.
[0101] In the embodiment of the present application, the service frame and the synchronization frame specific to the TTE network are subjected to detailed exception monitoring processing, the test configuration information of the TTE network is used to perform traffic bandwidth statistical operation on the service frame, and a first exception event and a corresponding exception time point of the first exception event are recorded when traffic exception of the service frame occurs. The test configuration information is used to perform transparent transmission on the synchronization frame, and a second exception event and a corresponding exception time point of the second exception event are recorded when content exception of the synchronization frame occurs. Through the traffic monitoring mechanism, the normal transmission of various service streams can be ensured, the synchronization function of the original network can be ensured, the exception monitoring of a specific link in a large-scale TTE network can be realized, the long-term test of the stability of the TTE network can be realized, and the efficiency of the TTE network test is improved.
[0102] Optionally, the reporting module is specifically configured to:
[0103] merge all the first exception events and / or the second exception events and the corresponding exception time points of the first exception events and / or the second exception events in a preset configuration reporting period, and report the merging result to the host computer.
[0104] Optionally, when the service frame is a TT frame, the first exception recording module is specifically configured to:
[0105] perform traffic bandwidth statistical operation on the TT frame, record service frame traffic bandwidth exception and a corresponding exception time point of the service frame traffic bandwidth exception when it is determined that bandwidth fluctuation of the TT frame is greater than a preset threshold, and the preset threshold is determined according to the test configuration information.
[0106] Optionally, when the service frame is an RC frame, the first exception recording module is specifically configured to:
[0107] perform traffic bandwidth statistical operation on the RC frame, and record service frame stream ID exception and a corresponding exception time point of the service frame stream ID exception when bandwidth upper limit of the RC frame exceeds BAG limit, and the BAG limit is determined according to the test configuration information.
[0108] Optionally, when the service frame is a BE frame, the first exception recording module is specifically configured to:
[0109] The BE frame is subjected to traffic bandwidth statistics operation, and when the MAC address of the BE frame is inconsistent with the test configuration information, the service frame MAC address exception and the corresponding exception time are recorded.
[0110] Optionally, the synchronization frame comprises a PCF frame.
[0111] Optionally, the second exception event comprises synchronization frame arrival time exception, synchronization frame content exception and / or synchronization frame protocol inconsistency exception.
[0112] The embodiment of the present application also provides an electronic device, such as Figure 7 As shown in the figure, the electronic device comprises a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 complete mutual communication through the communication bus 704,
[0113] The memory 703 is used for storing a computer program.
[0114] The processor 701 is used for executing the program stored in the memory 703, and realizes the method steps of the traffic monitoring test method in the TTE network test.
[0115] The communication bus mentioned in the above electronic device can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is used to represent the communication bus in the figure, but it does not represent that there is only one bus or only one type of bus.
[0116] The communication interface is used for communication between the above electronic device and other devices.
[0117] The memory can comprise a random access memory (RAM) and can also comprise a non-volatile memory (NVM), for example at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor.
[0118] The processor described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0119] The application further provides a computer readable storage medium. The computer readable storage medium stores a computer program. When the computer program is executed by a processor, the method steps of the traffic monitoring test method in the TTE network test are implemented.
[0120] Optionally, the computer readable storage medium can be a non-volatile memory (NVM), for example, at least one disk memory.
[0121] Optionally, the computer readable storage medium can also be at least one storage device located away from the processor.
[0122] In another embodiment of the application, a computer program product containing instructions, which, when run on a computer, causes the computer to perform the method steps of the traffic monitoring test method in the TTE network test.
[0123] It should be noted that the terms "first", "second", etc. are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the application. Rather, they are merely examples of devices and methods consistent with some aspects of the application.
[0124] In the description of the specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" and the like means that the specific features or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the description of the specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features or characteristics described can be combined in any suitable manner in one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples described in the specification.
[0125] Although the present application is described herein in conjunction with various embodiments, those skilled in the art, with reference to the drawings and the disclosure, can understand and implement other variations of the disclosed embodiments in the implementation of the claimed application. In the description of the present application, the word "comprising" does not exclude other components or steps, "one" or "an" does not exclude a plurality, and "plurality" means two or more, unless otherwise explicitly specified. In addition, some measures are described in different embodiments, but this does not mean that these measures cannot be combined to produce good results.
[0126] The method provided by the embodiments of the present application can be applied to electronic devices. Specifically, the electronic device can be: desktop computer, portable computer, smart mobile terminal, server, etc. Herein, any electronic device that can implement the present application belongs to the protection scope of the present application.
[0127] For device / electronic device / storage medium embodiments, because they are basically similar to method embodiments, the description is relatively simple, and the relevant part can be referred to the part of the method embodiment.
[0128] It should be noted that the device, electronic device and storage medium of the embodiments of the present application are respectively the device, electronic device and storage medium for applying the above-mentioned one TTE network test flow monitoring test method, and all embodiments of the above-mentioned one TTE network test flow monitoring test method are applicable to the device, electronic device and storage medium, and can achieve the same or similar beneficial effects.
[0129] The above is a further detailed description of the present application in combination with specific preferred embodiments, and the specific implementation of the present application cannot be limited to these descriptions. For those skilled in the art, without departing from the concept of the present application, a number of simple deductions or substitutions can be made, which should be regarded as falling within the protection scope of the present application.
Claims
1. A method for traffic monitoring test in TTE network test, applied to a traffic monitoring test system, characterized in that, The method comprises: reading test configuration information of a TTE network; receiving a data frame sent by the TTE network and shunting the data frame into a service frame and a synchronization frame; based on the test configuration information, performing traffic bandwidth statistical operation on the service frame, and recording a first abnormal event and its corresponding abnormal time point when traffic anomaly occurs in the service frame; based on the test configuration information, performing transparent transmission on the synchronization frame, and recording a second abnormal event and its corresponding abnormal time point when content anomaly occurs in the synchronization frame; reporting the first abnormal event and / or the second abnormal event and their respective corresponding abnormal time points to an upper computer.
2. The method of claim 1, wherein, reporting the first abnormal event and / or the second abnormal event and their respective corresponding abnormal time points to an upper computer, comprising: merging all the first abnormal events and / or the second abnormal events and their respective corresponding abnormal time points within a preset configuration reporting period, and reporting the merging result to the upper computer.
3. The method of claim 1, wherein, when the service frame is a TT frame, based on the test configuration information, performing traffic bandwidth statistical operation on the service frame, and recording a first abnormal event and its corresponding abnormal time point when traffic anomaly occurs in the service frame, comprising: performing traffic bandwidth statistical operation on the TT frame, and recording service frame traffic bandwidth anomaly and its corresponding abnormal time point when it is determined that the bandwidth fluctuation of the TT frame is greater than a preset threshold; the preset threshold is determined according to the test configuration information.
4. The method of claim 1, wherein, when the service frame is an RC frame, based on the test configuration information, performing traffic bandwidth statistical operation on the service frame, and recording a first abnormal event and its corresponding abnormal time point when traffic anomaly occurs in the service frame, comprising: performing traffic bandwidth statistical operation on the RC frame, and recording service frame flow ID anomaly and its corresponding abnormal time point when the bandwidth upper limit of the RC frame exceeds a BAG limit; the BAG limit is determined according to the test configuration information.
5. The method of claim 1, wherein, when the service frame is a BE frame, based on the test configuration information, performing traffic bandwidth statistical operation on the service frame, and recording a first abnormal event and its corresponding abnormal time point when traffic anomaly occurs in the service frame, comprising: performing traffic bandwidth statistical operation on the BE frame, and recording service frame MAC address anomaly and its corresponding abnormal time when the MAC address of the BE frame is inconsistent with the test configuration information.
6. The method of claim 1, wherein, The synchronization frame comprises a PCF frame.
7. The method of claim 1, wherein, The second abnormal event comprises synchronization frame arrival time anomaly, synchronization frame content anomaly, and / or synchronization frame protocol inconsistency anomaly.
8. A traffic monitoring test apparatus in a TTE network test, characterized by The device comprises: a reading module for reading test configuration information of a TTE network; a shunting module for receiving a data frame sent by the TTE network and shunting the data frame into a service frame and a synchronization frame; a first abnormality recording module for, based on the test configuration information, performing traffic bandwidth statistical operation on the service frame, and recording a first abnormal event and its corresponding abnormal time point when traffic anomaly occurs in the service frame; a second abnormality recording module for, based on the test configuration information, performing transparent transmission on the synchronization frame, and recording a second abnormal event and its corresponding abnormal time point when content anomaly occurs in the synchronization frame; A second exception recording module is configured to perform transparent transmission on the synchronization frame based on the test configuration information, and record a second exception event and a corresponding exception time point when a content exception occurs in the synchronization frame; A reporting module is configured to report the first exception event and / or the second exception event and a corresponding exception time point to a host computer.
9. An electronic device, comprising: The device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is configured to store a computer program. The processor is configured to execute the computer program stored in the memory to implement the traffic monitoring test method in the TTE network test according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the traffic monitoring test method in the TTE network test according to any one of claims 1-7.