Detection method and device, computer readable storage medium and computer program product
By generating detection packets that match the network architecture under test through switching equipment, the limitations of link detection technology in applicable scenarios are solved, and efficient link detection is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD
- Filing Date
- 2026-01-27
- Publication Date
- 2026-05-15
Smart Images

Figure CN122053420A_ABST
Abstract
Description
Technical Field
[0001] This application relates to link detection technology in the field of communication technology, and more particularly to a detection method, device, computer-readable storage medium, and computer program product. Background Technology
[0002] With the continuous development of communication technology, the requirements for communication quality are becoming increasingly stringent, necessitating timely monitoring of the link status. Currently, lightweight telemetry methods for detecting the link status of communication links exist, particularly in virtual networks. These methods are applied to the forwarding links of virtual networks. The source node constructs and sends a request message, which is then received and routed at the forwarding node, generating a report message in response to the source node. The destination node receives the request message, constructs a tagged report message, and responds to the source node. Detection is then performed based on the tagged report messages received by the remote node. However, this detection scheme in related technologies has functional limitations, being applicable only to specific network structures, resulting in insufficient detection capabilities. Summary of the Invention
[0003] This application provides a detection method, device, computer-readable storage medium, and computer program product, which solves the problem of limited applicability of link testing technology in related technologies and improves detection capabilities.
[0004] The technical solution of this application embodiment is implemented as follows: A detection method, the method being applied to a switching device, comprising: Obtain the detection configuration information for the network architecture to be tested; wherein the detection configuration information is matched with the detection requirements; The target management test module in the switching device generates a test message in a format corresponding to the network architecture under test based on the test configuration information; wherein, the test message includes a target field for the test requirements; The detection message is sent to the device under test, and a feedback message is received from the device under test; wherein the feedback message is sent by the device under test after receiving the detection message; the feedback message includes the target field. Based on the feedback message, the transmission link between the switching device and the device under test is detected.
[0005] In the above scheme, the target field includes one or more of the following: Message timestamp; Message verification information.
[0006] In the above scheme, sending the detection message to the device under test and receiving the feedback message returned by the device under test includes: The detection message is sent to the device under test through the first transmission interface; The feedback message returned by the device under test is received through the second transmission interface; wherein the first transmission interface and the second transmission interface are of the same type.
[0007] In the above scheme, sending the detection message to the device under test through the first transmission interface includes: The detection message is sent to the device under test via the first transmission interface using the first transmission method. Accordingly, receiving the feedback message returned by the device under test through the second transmission interface includes: The feedback message returned by the device under test using the second transmission method is received through the second transmission interface.
[0008] In the above scheme, receiving the detection message returned by the device under test through the second transmission interface further includes: When it is determined that the feedback message conforms to the target access control rules, the feedback message returned by the device under test is received through the second transmission interface.
[0009] In the above scheme, the step of detecting the transmission link between the switching device and the device under test based on the feedback message includes: The feedback message is parsed; Based on the parsed results and the value of the target field in the feedback message, the transmission link is tested for service configuration and service performance. Accordingly, the method further includes: Store the detection results in the target log.
[0010] In the above scheme, the step of detecting service configuration and service performance of the transmission link based on the parsed results and the value of the target field in the feedback message includes: Based on the message timestamp value in the feedback message, the service configuration of the transmission link is detected; Based on the results obtained from the parsing and the value of the message verification information in the feedback message, the service performance of the transmission link is detected.
[0011] A detection device, the device comprising: An acquisition unit is used to acquire detection configuration information for the network architecture to be tested; wherein the detection configuration information is matched with the detection requirements. The generation unit is used to generate a detection packet in a format corresponding to the network architecture under test based on the detection configuration information through the target management test module in the switching device; wherein, the detection packet includes a target field for the detection requirement; A transmission unit is configured to send the detection message to the device under test and receive a feedback message returned by the device under test; wherein the returned detection message is sent by the device under test after receiving the detection message; the feedback message includes the target field; The processing unit is used to detect the transmission link between the switching device and the device under test based on the feedback message.
[0012] A switching device, the device comprising: a processor, a memory, and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the detection program in the memory to implement the steps of the detection method described above.
[0013] A computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps of the detection method described above.
[0014] A computer program product comprising a computer program that, when executed by a processor, implements the aforementioned detection method.
[0015] The detection method, device, computer-readable storage medium, and computer program product provided in this application embodiment can obtain detection configuration information for the network architecture under test. This detection configuration information matches the detection requirements. Through the target management test module in the switching device, a detection message in a format corresponding to the network architecture under test is generated based on the detection configuration information. The detection message includes a target field. The detection message is sent to the device under test (DUT), and a feedback message returned by the DUT is received. The feedback message, sent by the DUT after receiving the detection message, also includes a target field. The transmission link between the switching device and the DUT is detected based on the returned feedback message. In this way, it is possible to match the network architecture under test with the detection requirements. The system generates a specific formatted detection message based on the configured detection information and sends it to the device under test (DUT). Then, it can perform link detection based on the feedback message returned by the DUT, which includes target fields. The detection message is generated by the target management test module in the switching device, eliminating the need for additional testing equipment and significantly reducing implementation difficulty. Furthermore, the detection message has different formats depending on the network architecture and is matched to the detection requirements. In addition, both the detection message and the feedback message include specific fields corresponding to the detection requirements, enabling detection of different network configurations. This solves the problem of limited applicability of link testing technologies in related fields and improves detection capabilities. Attached Figure Description
[0016] Figure 1 This is a schematic flowchart of a detection method provided in an embodiment of this application; Figure 2 This is a schematic diagram of a detection system in a detection method provided in an embodiment of this application; Figure 3 This is a schematic diagram of a detection method provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of a detection device provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of a switching device provided in an embodiment of this application. Detailed Implementation
[0017] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0018] It should be understood that the phrases "embodiments of this application" or "foreign embodiments" throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "embodiments of this application" or "in the foreign embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0019] Unless otherwise specified, any step in the embodiments of this application performed by the electronic device may be executed by the processor of the electronic device. It is also worth noting that the embodiments of this application do not limit the order in which the electronic device performs the following steps. Furthermore, the methods used to process data in different embodiments may be the same or different methods. It should also be noted that any step in the embodiments of this application can be executed independently by the electronic device; that is, when the electronic device performs any step in the following embodiments, it may not depend on the execution of other steps.
[0020] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application.
[0021] This application provides a detection method that can be applied to switching equipment. (Refer to...) Figure 1 As shown, the detection method may include the following steps: Step 101: Obtain the detection configuration information for the network architecture to be tested.
[0022] The detection configuration information is matched with the detection requirements.
[0023] Specifically, the network architecture to be tested can refer to the network architecture of the network in which the link to be tested resides. It should be noted that the network architecture to be tested can include network architectures of various different network types. In one feasible implementation, the network architecture to be tested can include network architectures such as Virtual Extensible Local Area Network (VXLAN), Virtual Private LAN Service (VPLS), Virtual Private Wire Service (VPWS), Multi-Protocol Label Switching (MPLS), and Ethernet Virtual Private Network (EVPN).
[0024] In this embodiment, the detection configuration information is used to edit and generate detection packets. Specifically, the detection configuration information can be input by the user into the switching device according to the characteristics of the network architecture to be tested and their own detection needs. It should be noted that the detection configuration information may include parameters such as the network topology, the attributes of the detection packets, and the type of detection service; among which, the attributes of the detection packets may include parameters such as packet transmission rate and transmission bandwidth. Furthermore, the detection configuration information may be stored in a remote dictionary server (Redis) database via a Google Remote Procedure Call (gRPC) channel.
[0025] Step 102: Using the target management test module in the switching device, generate a test message in a format corresponding to the network architecture under test based on the test configuration information.
[0026] The detection message includes target fields specific to the detection requirements.
[0027] Specifically, switching equipment can refer to equipment with forwarding and processing functions, and specifically to switching chips; target management test module can be a module in the switching chip, and specifically refers to the Operation Administration and Maintenance Service Activation Test (OAM-SAT) module.
[0028] It should be noted that the format of the detection message can vary depending on the network architecture being tested; that is, detection messages can be generated specifically to match the network architecture being tested. Furthermore, the target field in the detection message is a specific field that matches the detection requirements, and the transmission link can be detected through this target field.
[0029] In other embodiments of this application, the target field includes one or more of the following: Message timestamp; Message verification information.
[0030] Specifically, message verification information can refer to verification information for detection messages. In one feasible implementation, message verification information can refer to Cyclic Redundancy Check (CRC); and the CRC value can be 32 bits.
[0031] Step 103: Send a test message to the device under test and receive the feedback message returned by the device under test.
[0032] The feedback message is sent by the device under test after receiving the detection message; the feedback message includes the target field.
[0033] Specifically, the feedback message can be the device under test directly using the received detection message as the feedback message after receiving it; of course, the feedback message can also be a message regenerated by the device under test based on the received detection message.
[0034] Step 104: Based on the feedback message, detect the transmission link between the switching device and the device under test.
[0035] Specifically, the feedback message itself and its fields can be analyzed, and the entire transmission link can be inspected based on the analysis results. It should be noted that the inspection of the transmission link also includes the inspection of all nodes along the transmission link.
[0036] In one feasible implementation, if the switching device is a cloud gateway device, such as Figure 2 The detection system corresponding to the proposed solution includes cloud gateway devices, network function aggregation devices, north-south aggregation switch devices, public network egress router devices, and public network links, and can be deployed in various resource pools; thus, it can achieve both intra-cloud detection and inter-cloud detection.
[0037] Specifically, regarding cloud-based detection, such as Figure 2The diagram shows a Border Gateway Protocol (BGP) route published through a Network Functions Aggregator switch. Cloud Gateway 1 can establish a Virtual Extensible Local Area Network (VXLAN) tunnel connection with Cloud Gateway 2. As the initiator of the detection packet, Cloud Gateway 1 edits the detection packet, injecting a timestamp and CRC checksum into it, and then transmits the detection packet to Cloud Gateway 2 through the Network Functions Aggregator switch. Cloud Gateway 2, by configuring a loopback interface service, returns a feedback packet to Cloud Gateway 1. Finally, after receiving the feedback packet, Cloud Gateway 1 parses the current timestamp and CRC checksum of the feedback packet to determine the link forwarding latency and the error rate of the forwarding link. In the cloud-based detection, connectivity and link forwarding latency-related network performance indicators among Cloud Gateway 1, the Network Functions Aggregator switch, and Cloud Gateway 2 were tested.
[0038] Specifically, regarding cloud-based detection, such as Figure 2 The VXLAN configuration is issued to Cloud Gateway 3 via the console, establishing a VXLAN tunnel between Cloud Gateway 1 and Cloud Gateway 3. As the initiator of the detection packet, Cloud Gateway 1 edits the detection packet, injecting the packet timestamp and CRC checksum into it. The packet is then transmitted to Cloud Gateway 3 via the network function aggregation switch, north-south aggregation switch, and public network egress router. Cloud Gateway 3 returns the feedback packet to Cloud Gateway 1 via the configured loopback interface service. Finally, after receiving the feedback packet, Cloud Gateway 1 analyzes the current packet timestamp and CRC checksum to determine the link forwarding latency and the packet error rate of the forwarding link. In the inter-cloud detection, network performance indicators related to connectivity and link forwarding latency of the cloud gateways, network function aggregation switches, north-south aggregation switches, public network egress routers, and public network of Resource Pool 1 and Resource Pool 2 were detected.
[0039] Based on the foregoing embodiments, in other embodiments of this application, step 103 can be implemented in the following ways: A1. Send the detection message to the device under test through the first transmission interface.
[0040] Specifically, the first transmission interface can be a dedicated interface for transmitting detection messages from the switching device. In one feasible implementation, the first transmission interface can refer to an attachment circuit (AC) interface, specifically an AC1 interface.
[0041] A2. Receive feedback messages returned by the device under test through the second transmission interface.
[0042] The first transmission interface and the second transmission interface are of the same type.
[0043] Specifically, the second transmission interface can be a dedicated interface for receiving incoming messages from external sources. In one feasible implementation, the second transmission interface can refer to the AC interface, specifically the AC2 interface.
[0044] In one feasible implementation, such as Figure 3 As shown, the user creates a Virtual Switch Instance (VSI) on the Test Center (TC) of the switching chip. This VSI consists of AC1, Pseudo Wire (PW) 1, and PW2. The AC1 interface and the Rcy AC1 interface are added to the unified VSI. For VPWS services, a one-way P2P service is created between the Rcy AC1 interface and the PW / AC. The user creates VSIs on the first node DUT1 and the second node DUT2 respectively to add the PW and AC. It should be noted that the TC, DUT1, and DUT2 belong to the same type of network device. The OAM-SAT function can be enabled on the TC to send detection messages and receive feedback messages. DUT1 and DUT2 can be external transmission nodes in the link to be tested outside the switching chip, and detection messages and feedback messages can be forwarded as ordinary messages on DUT1 and DUT2.
[0045] In other embodiments of this application, the above-mentioned sending of detection messages to the device under test through the first transmission interface may include: The first transmission method is used to send the test message to the device under test through the first transmission interface.
[0046] The first transmission method can refer to point-to-point (P2P) transmission. Specifically, a P2P method can be used to send test messages to the device under test via the AC1 interface.
[0047] In other embodiments of this application, the above-mentioned receiving of feedback messages returned by the device under test through the second transmission interface may include: The second transmission interface receives feedback messages returned by the device under test using the second transmission method.
[0048] The second transmission method can refer to Point-to-Multi-Point (P2MP) transmission. Specifically, P2MP can be used to receive feedback messages from the device under test via the AC2 interface.
[0049] In other embodiments of this application, the above-mentioned receiving of feedback messages returned by the device under test through the second transmission interface may further include: When it is determined that the feedback message conforms to the target access control rules, the feedback message returned by the device under test is received through the second transmission interface.
[0050] The target access control rule can refer to an Access Control List (ACL) policy. Specifically, an ACL policy can include information related to detection and response packets; in one feasible implementation, the ACL policy can include the destination Internet Protocol (IP) address, Media Access Control (MAC) address information, IP header information, etc.
[0051] Specifically, when the device under test returns a feedback message, the second transmission interface does not immediately receive the feedback message after obtaining it. Instead, it first checks the feedback message according to the target access control rules. Only when the check determines that the feedback message conforms to the target access control rules will it further receive the feedback message.
[0052] In other embodiments of this application, step 104 described above can be implemented in the following ways: B1. Parse the feedback message.
[0053] B2. Based on the parsed results and the values of the target fields in the feedback messages, the service configuration and service performance of the transmission link are detected.
[0054] Specifically, the detection of service configuration and service performance of the link can be achieved by combining the results obtained from parsing the feedback message and the values of the target fields in the feedback message.
[0055] It should be noted that the packet receiving module corresponds to the Service Activation Test Receive (SAT RX) unit. The SAT RX unit is divided into a parsing and verification module and a statistics management module. The SAT RX can determine whether the received feedback message is a SAT data packet. It can also map SAT data packets to specific flows for flow statistics by using trap code, traffic class (TC), and drop eliminable indicator (DEI) fields. The SAT parsing and verification module can map the received data packets to a data stream to calculate packet latency, packet loss rate, and generate a Central Processing Unit (CPU) report. The statistics management module can collect data such as data errors, disordered packets, packet latency, and packet size.
[0056] In other embodiments of this application, the detection packet sending module corresponds to the Service Activation Test Sending (SAT TX) unit. The SAT TX unit can be configured with a packet header of up to 128 bytes, and the packet payload type can be PRBS or repeatable pattern. The packet sending rate can be controlled for each data stream.
[0057] In other embodiments of this application, the above-mentioned detection of service configuration and service performance of the transmission link based on the parsed results and the value of the target field in the feedback message may include: Based on the message timestamp value in the feedback message, the service configuration of the transmission link is detected; Based on the parsed results and the values of the message verification information in the feedback message, the service performance of the transmission link is tested.
[0058] Specifically, service configuration testing and service performance testing are both automatically completed within the OAM-SAT module without additional intervention. Service configuration testing aims to verify whether the specified service is configured as expected; each service must be tested individually. Service performance testing primarily monitors parameters such as Frame Transfer Delay (FTD), Frame Delay Variation (FDV), Frame Loss Ratio (FLR), and Availability (AVAL) for each service simultaneously. Furthermore, service performance testing supports test periods with indefinite intervals.
[0059] In other embodiments of this application, the method may further include: Store the detection results in the target log.
[0060] Specifically, after the OAM-SAT module completes the detection of service configuration and service performance, the switching chip will report the service test completion event to the CPU and save the test results in the specified log (i.e., the target log).
[0061] In other embodiments of this application, if the detection method of this application is applied to a VXLAN network topology in a cloud network environment, the format of the detection message can be as shown in Table 1 below:
[0062] Table 1 Specifically, DA (6B) refers to the Destination MAC address; SA (6B) refers to the Source MAC address; VLAN-TAG (4B) refers to the VLAN label plane connected to the network function aggregation; EthernetType (2B) refers to the Ethernet type, which defaults to 0x0800 and is used in the IP header; IP (20B) can include the Destination IP (DIP), Source IP (SIP), and Type of Service (TOS), pointing to the VXLAN header; UDP Hdr (8B) refers to the UDP header, specifying a specific port; VXLAN Hdr (8B) is the VXLAN header, establishing a VXLAN tunnel connection with the peer cloud gateway device; DA (6B) refers to the inner destination MAC address; SA (6B) refers to the inner source MAC address; Ethernet Type (2B) refers to the Ethernet type, defaulting to 0x0800, used in the IP header; IP (20B) refers to the inner IP header, containing DIP, SIP, and TOS, pointing to the VXLAN header; Time Stamp (8B) refers to the packet timestamp; SQ# (4B) refers to the sequence number; Payload is a custom part, containing a 42B header and a 20B tail; CRC-32 can be added to the packet's CRC-32 code (checksum of timestamp + SQ# + payload); FCS refers to the CRC-32 of the entire Ethernet frame. Furthermore, for VXLAN networking, TimeStamp and CRC-32 fields can be added to the end of the detection packet, providing data on link forwarding delay overhead and packet error status, thus enabling an assessment of the overall health of the forwarding link.
[0063] It should be noted that the OAM-SAT module has a data bandwidth of up to 100Gbps and a test duration of up to 24 hours. Therefore, the Ethernet service activation test method based on the OAM-SAT module has the advantages of high bandwidth, high stability, easy deployment, and low cost. In addition, the packets of each traffic can be edited, enabling multiple services to run simultaneously in performance testing, which meets the needs of parallel testing. Furthermore, it can also meet the testing requirements of various service scenarios.
[0064] The detection method provided in the embodiments of this application can generate a detection message in a specific format according to the detection configuration information that matches the network architecture under test and the detection requirements, and send the detection message to the device under test. Then, the link can be detected based on the feedback message returned by the device under test, which includes the target field. The detection message is generated by the target management test module in the switching device, which does not require additional test equipment, greatly reducing the implementation difficulty. Furthermore, the detection message has different formats according to different network architectures, and the detection message matches the detection requirements. In addition, the detection message and the feedback message include specific fields corresponding to the detection requirements, which can realize the detection of different network architectures. This solves the problem of limited applicability of link testing technology in related technologies and improves the detection capability.
[0065] Based on the foregoing embodiments, embodiments of this application provide a detection device that can be applied to... Figure 1 In the detection method provided in the corresponding embodiment, refer to Figure 4 As shown, the detection device 2 may include: an acquisition unit 21, a generation unit 22, a transmission unit 23, and a processing unit 24, wherein: The acquisition unit 21 is used to acquire detection configuration information for the network architecture to be tested; wherein, the detection configuration information is matched with the detection requirements. The generation unit 22 is used to generate a detection message in a format corresponding to the network architecture under test based on the detection configuration information through the target management test module in the switching device; wherein, the detection message includes a target field for the detection requirements; The transmission unit 23 is used to send a detection message to the device under test and receive a feedback message returned by the device under test; wherein, the feedback message is sent by the device under test after receiving the detection message; the feedback message includes a target field; Processing unit 24 is used to detect the transmission link between the switching device and the device under test based on feedback messages.
[0066] In other embodiments of this application, the target field includes one or more of the following: Message timestamp; Message verification information.
[0067] In other embodiments of this application, the transmission unit 23 is further configured to perform the following steps: The test message is sent to the device under test through the first transmission interface; The test message returned by the device under test is received through the second transmission interface; wherein the first transmission interface and the second transmission interface are of the same type.
[0068] In other embodiments of this application, the transmission unit 23 is further configured to send a detection message to the device under test via a first transmission interface using a first transmission method.
[0069] In other embodiments of this application, the transmission unit 23 is further configured to receive feedback messages returned by the device under test using the second transmission method through the second transmission interface.
[0070] In other embodiments of this application, the transmission unit 23 is further configured to receive the feedback message returned by the device under test through the second transmission interface when it is determined that the feedback message conforms to the target access control rules.
[0071] In other embodiments of this application, the processing unit 24 is further configured to perform the following steps: Parse the feedback message; Based on the parsed results and the values of the target fields in the feedback messages, the transmission link is used to detect service configuration and service performance.
[0072] In other embodiments of this application, the processing unit 24 is also used to store the detection results in the target log.
[0073] In other embodiments of this application, the processing unit 24 is further configured to perform the following steps: Based on the message timestamp value in the feedback message, the service configuration of the transmission link is detected; Based on the parsed results and the values of the message verification information in the feedback message, the service performance of the transmission link is tested.
[0074] It should be noted that the specific implementation process of the steps performed by each unit in the embodiments of this application can be referred to Figure 1 The implementation process of the detection method provided in the corresponding embodiments will not be described in detail here.
[0075] The detection apparatus provided in the embodiments of this application can generate a detection message in a specific format according to detection configuration information that matches the network architecture under test and the detection requirements, and send the detection message to the device under test. Then, it can perform link detection based on the feedback message returned by the device under test, which includes the target field. The detection message is generated by the target management test module in the switching device, which does not require additional test equipment, greatly reducing the implementation difficulty. Furthermore, the detection message has different formats according to different network architectures, and the detection message matches the detection requirements. In addition, the detection message and the feedback message include specific fields corresponding to the detection requirements, which can realize the detection of different network architectures. This solves the problem of limited applicability of link testing technology in related technologies and improves the detection capability.
[0076] Based on the foregoing embodiments, embodiments of this application provide a switching device that can be applied to... Figure 1 In the detection method provided in the corresponding embodiment, refer to Figure 5 As shown, the switching device 3 may include: a processor 31, a memory 32, and a communication bus 33, wherein: Communication bus 33 is used to realize the communication connection between processor 31 and memory 32; The memory 32 is used to store computer programs that can run on the processor 31; Processor 31 is used to run computer programs to perform the following steps: Obtain the detection configuration information for the network architecture to be tested; the detection configuration information is matched with the detection requirements. The target management test module in the switching device generates a test message in a format corresponding to the network architecture under test based on the test configuration information; the test message includes target fields for the test requirements. Send a test message to the device under test and receive a feedback message returned by the device under test; the feedback message is sent by the device under test after receiving the test message; the feedback message includes a target field. Based on the feedback messages, the transmission link between the switching device and the device under test is detected.
[0077] In other embodiments of this application, the target field includes one or more of the following: Message timestamp; Message verification information.
[0078] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: The test message is sent to the device under test through the first transmission interface; The feedback message returned by the device under test is received through the second transmission interface; wherein, the first transmission interface and the second transmission interface are of the same type.
[0079] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: The first transmission method is used to send the test message to the device under test through the first transmission interface.
[0080] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: The second transmission interface receives feedback messages returned by the device under test using the second transmission method.
[0081] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: Once it is determined that the returned feedback message conforms to the target access control rules, the feedback message returned by the device under test is received through the second transmission interface.
[0082] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: Parse the feedback message; Based on the parsed results and the values of the target fields in the feedback messages, the transmission link is used to detect service configuration and service performance.
[0083] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: Store the detection results in the target log.
[0084] In other embodiments of this application, the processor 31 is used to run computer programs and can also perform the following steps: Based on the message timestamp value in the feedback message, the service configuration of the transmission link is detected; Based on the parsed results and the values of the message verification information in the feedback message, the service performance of the transmission link is tested.
[0085] It should be noted that a detailed description of the steps performed by the processor can be found in [reference needed]. Figure 1 The detection method provided in the corresponding embodiments will not be described in detail here.
[0086] The switching device provided in the embodiments of this application can generate a detection message in a specific format according to the detection configuration information that matches the network architecture under test and the detection requirements, and send the detection message to the device under test. Then, the link can be detected based on the feedback message returned by the device under test, which includes the target field. The detection message is generated by the target management test module in the switching device, which does not require additional test equipment, greatly reducing the implementation difficulty. Furthermore, the detection message has different formats according to different network architectures, and the detection message matches the detection requirements. In addition, the detection message and the feedback message include specific fields corresponding to the detection requirements, which can realize the detection of different network architectures. This solves the problem of limited applicability of link testing technology in related technologies and improves the detection capability.
[0087] Based on the foregoing embodiments, embodiments of this application provide a computer-readable storage medium storing one or more programs, which can be executed by one or more processors 31 to implement... Figure 1 The corresponding embodiments provide the steps of the detection method.
[0088] Based on the foregoing embodiments, embodiments of this application provide a computer program product, including a computer program that can be executed by a processor 31 to perform... Figure 1 The corresponding embodiments provide the steps of the detection method.
[0089] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.
[0090] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0091] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0092] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0093] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A detection method, characterized in that, The method is applied to switching equipment and includes: Obtain the detection configuration information for the network architecture to be tested; wherein the detection configuration information is matched with the detection requirements; The target management test module in the switching device generates a test message in a format corresponding to the network architecture under test based on the test configuration information; wherein, the test message includes a target field for the test requirements; The detection message is sent to the device under test, and a feedback message is received from the device under test; wherein the feedback message is sent by the device under test after receiving the detection message; the feedback message includes the target field. Based on the feedback message, the transmission link between the switching device and the device under test is detected.
2. The method according to claim 1, characterized in that, The target field includes one or more of the following: Message timestamp; Message verification information.
3. The method according to claim 1, characterized in that, The step of sending the detection message to the device under test and receiving the feedback message returned by the device under test includes: The detection message is sent to the device under test through the first transmission interface; The feedback message returned by the device under test is received through the second transmission interface; wherein the first transmission interface and the second transmission interface are of the same type.
4. The method according to claim 3, characterized in that, Sending the detection message to the device under test through the first transmission interface includes: The detection message is sent to the device under test via the first transmission interface using the first transmission method. Accordingly, receiving the feedback message returned by the device under test through the second transmission interface includes: The feedback message returned by the device under test using the second transmission method is received through the second transmission interface.
5. The method according to claim 3, characterized in that, The step of receiving the feedback message returned by the device under test through the second transmission interface further includes: When it is determined that the feedback message conforms to the target access control rules, the feedback message returned by the device under test is received through the second transmission interface.
6. The method according to claim 1, characterized in that, The step of detecting the transmission link between the switching device and the device under test based on the feedback message includes: The feedback message is parsed; Based on the parsed results and the value of the target field in the feedback message, the transmission link is tested for service configuration and service performance. Accordingly, the method further includes: Store the detection results in the target log.
7. The method according to claim 1, characterized in that, The process of detecting service configuration and service performance of the transmission link based on the parsed results and the value of the target field in the feedback message includes: Based on the message timestamp value in the feedback message, the service configuration of the transmission link is detected; Based on the results obtained from the parsing and the value of the message verification information in the feedback message, the service performance of the transmission link is detected.
8. A switching device, characterized in that, The device includes: a processor, a memory, and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute a detection program in memory to implement the steps of the detection method as described in any one of claims 1-7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the detection method as described in any one of claims 1-7.
10. A computer program product, the computer program product comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the detection method according to any one of claims 1-7.