Method and device for diagnosing stability of AP link, equipment and medium

By receiving service messages in the switching device and sending link layer discovery protocol information to the AP, the stability of the optical AP link is quickly diagnosed, and the problem of slow judgment speed in the prior art is solved, and the effect of quickly identifying CRC wrong packet links is achieved.

CN119544056APending Publication Date: 2025-02-28SHEN ZHOU SHU MA WANG LUO BEI JING YOU XIAN GONG SI +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411747262.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The prior art is slow in judging the stability of optical AP links, and cannot quickly diagnose links with CRC error packets, which affects network maintenance efficiency and communication quality.

Method used

The exchange device receives service messages, sends link layer discovery protocol information to multiple APs, and parses the transmitting and receiving power and verification data, judges the link stability, displays the link status interface and marks unstable links.

Benefits of technology

It realizes the rapid diagnosis of CRC fault packets at the optical AP deployment site, and improves network maintenance efficiency and communication quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544056A_ABST
    Figure CN119544056A_ABST
Patent Text Reader

Abstract

The invention discloses a method, device and equipment for diagnosing the stability of an AP link and a storage medium, and relates to the technical field of communication, and the method comprises the steps that switching equipment receives a service message, link layer discovery protocol information is sent to multiple APs according to the service message, a first AP sends first link layer discovery protocol information to the switching equipment, and the first AP sends the first link layer discovery protocol information to the switching equipment; the switching device performs analysis to obtain a first link layer discovery protocol field, first receiving and transmitting optical power and first verification data; determining whether the first transmit-receive optical power is lower than a transmit-receive optical power threshold, calculating a first link layer discovery protocol field to obtain target verification data, determining whether the first verification data is the same as the target verification data, and if the first transmit-receive optical power is lower than the transmit-receive optical power threshold or the first verification data is different from the target verification data, determining whether the first link layer discovery protocol field is the same as the target verification data. And determining that the first AP link is unstable, and marking the link between the first AP and the AC in the link state interface. According to the method, the link with the CRC wrong packet can be quickly diagnosed on the optical AP deployment site.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, equipment and medium for diagnosing AP link stability. Background Art

[0002] In the field of communication technology, wireless access points (APs) are terminal devices in all-optical network solutions. If hybrid optical fiber cables are used for access, taking into account both power supply and data transmission, the wireless bandwidth can be guaranteed. In actual deployment, due to the complexity of optical connector manufacturing, it is easy to have non-compliant manufacturing, resulting in abnormal optical power or packet CRC errors, which in turn lead to the phenomenon that the network cannot be used normally, causing trouble for the construction and deployment of optical APs. When the link is unstable, the AP may stop emitting light, the port may repeatedly UP\DOWN, and the port CRC error may cause the loss of user data forwarded by the AP or data failure.

[0003] However, in the prior art, the speed of determining the stability of the optical AP link is slow, and it is impossible to quickly diagnose the link with CRC error packets at the optical AP deployment site. Summary of the invention

[0004] The present application provides a method, apparatus, device and medium for diagnosing AP link stability, which can quickly diagnose links with CRC error packets at the optical AP deployment site.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions: In a first aspect, the present application provides a method for diagnosing AP link stability, receiving a service message; Send link layer discovery protocol information to multiple APs according to service messages; Receive first link layer discovery protocol information sent by a first AP, parse the first link layer discovery protocol information, and obtain a first link layer discovery protocol field, a first transmit and receive optical power, and a first verification data; Determine whether the first transmit / receive optical power is lower than the transmit / receive optical power threshold to obtain a first determination result, obtain target verification data by calculating the first link layer discovery protocol field, determine whether the first verification data is the same as the target verification data, and obtain a second determination result; If the first judgment result indicates that the first transmit / receive optical power is lower than the transmit / receive optical power threshold or the second judgment result indicates that the first verification data is different from the target verification data, it is determined that the first AP link is unstable.

[0006] In some possible implementations, the method further includes: If the first judgment result indicates that the first transmit / receive optical power is not lower than the transmit / receive optical power threshold and the second judgment result indicates that the first verification data is the same as the target verification data, it is determined that the first AP link is stable.

[0007] In some possible implementations, the method further includes: The marking module is used to display the link status interface; after determining that the first AP link is unstable, the link between the first AP and the AC in the link status interface is marked.

[0008] In some possible implementations, the method further includes: Depending on the service type, different algorithms are used to calculate the first link layer discovery protocol information, including: Get the service type of the service message; Determine the target algorithm based on the business type; The target verification data is obtained by calculating the first link layer discovery protocol information, including: The first link layer discovery protocol information is processed using a target algorithm to obtain target verification data.

[0009] In some possible implementations, the target algorithm includes:

[0010] Among them, Y is the target verification data, Tx is the AP's transmit optical power, Rx is the AP's receive optical power, and X is the verification value of the POE port. When the result of the expression is true, it means that the AP link is normal. When the result of the expression is false, it means that the AP link is abnormal.

[0011] In a second aspect, the present application provides a device for diagnosing AP link stability, a receiving module, for receiving a service message; sending link layer discovery protocol information to multiple APs according to the service message; receiving first link layer discovery protocol information sent by a first AP, parsing the first link layer discovery protocol information, and obtaining a first link layer discovery protocol field, a first transmit and receive optical power, and a first verification data; A judgment module, used to judge whether the first transmit and receive optical power is lower than the transmit and receive optical power threshold, obtain a first judgment result, obtain target verification data by calculating the first link layer discovery protocol field, judge whether the first verification data is the same as the target verification data, and obtain a second judgment result; The determination module is used to determine that the first AP link is unstable if the first judgment result indicates that the first transmit and receive optical power is lower than the transmit and receive optical power threshold or the second judgment result indicates that the first verification data is different from the target verification data.

[0012] In a third aspect, the present application provides a computing device, including a memory and a processor; One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method as described in any one of the first aspects.

[0013] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method as described in any one of the first aspects.

[0014] It can be seen from the above technical solution that the present application has at least the following beneficial effects: In the present application, a switching device receives a service message and sends link layer discovery protocol information to multiple APs according to the service message, wherein the first AP sends the first link layer discovery protocol information to the switching device, the switching device parses the first link layer discovery protocol information, obtains the first link layer discovery protocol field, the first transceiver optical power and the first verification data; determines whether the first transceiver optical power is lower than the transceiver optical power threshold, calculates the first link layer discovery protocol field to obtain the target verification data, determines whether the first verification data is the same as the target verification data, if the first transceiver optical power is lower than the transceiver optical power threshold or the first verification data is different from the target verification data, then determines that the first AP link is unstable, the switching device will display the link status interface, after determining that the first AP link is unstable, mark the link between the first AP and the AC in the link status interface; if the first transceiver optical power is not lower than the transceiver optical power threshold and the first verification data is the same as the target verification data, then determines that the first AP link is stable. In the traditional solution, the stability of the AP link is diagnosed according to the errors that occur during the communication process, and then processed, which is slow for the stability judgment speed of the optical AP link, and it is impossible to quickly diagnose the link with CRC error packets at the optical AP deployment site. It can be seen that the present application diagnoses multiple APs in the same time period through switching equipment, and performs data verification on the link layer discovery protocol information in various ways to determine whether the AP link is stable, so as to quickly diagnose the link with CRC error packets at the optical AP deployment site.

[0015] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be realized in any single embodiment. On the contrary, it is understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. Therefore, the description of technical features, technical solutions or beneficial effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in the present embodiment can also be combined in any appropriate manner. Those skilled in the art will understand that the embodiment can be realized without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in a specific embodiment that does not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application; Figure 2 A flowchart of a method for diagnosing AP link stability provided in an embodiment of the present application; Figure 3 A schematic diagram of a device for diagnosing AP link stability provided in an embodiment of the present application; Figure 4 A schematic diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The terms "first", "second", "third", etc. in the specification of this application and the accompanying drawings are used to distinguish different objects rather than to limit a specific order.

[0018] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0019] In order to make the description of the following embodiments clear and concise, a brief introduction to the related technology is first given: POE switch (Power Over Ethernet) refers to a technology that can transmit data signals to some IP-based terminals (such as IP phones, wireless LAN access points AP, network cameras, etc.) while providing direct current power to such devices without making any changes to the existing Ethernet Cat.5 wiring infrastructure. A POE switch is a switch that supports Ethernet power supply.

[0020] A wireless access point (AP) is a core device in a wireless local area network (WLAN). Its main function is to connect wireless network clients together and connect the wireless network to Ethernet to expand the wireless coverage of the network. AP is equivalent to a base station in a wireless network. It is responsible for converting data signals in the wired network into wireless signals, allowing wireless devices to access the network through the AP.

[0021] Link Layer Discovery Protocol (LLDP) is a data link layer protocol. It is defined in the IEEE 802.1ab standard and provides a standard link layer discovery method for network devices. Through LLDP, devices connected to the network can send their main capabilities, management addresses, device identifiers, interface identifiers and other information to other devices connected to the same local area network. This information is organized into different TLVs (Type / Length / Value), encapsulated in LLDPDU (Link Layer Discovery Protocol Data Unit), and published. After receiving this information, neighboring devices will save it in the form of a standard MIB (Management Information Base) for the network management system to query and determine the communication status of the link.

[0022] The access point of the traditional wireless LAN adopts the network cable + POE power supply access mode. Considering factors such as analog signal attenuation, clock jitter, crosstalk and delay, to ensure the reliability and stability of data transmission, the transmission distance of the network cable can only reach a little over 100 meters, while the optical fiber access can reach 20~40km, so an all-optical network solution is proposed. Long distance, anti-interference, high throughput and low loss are the basic requirements of the optical network. AP (wireless access point) belongs to the terminal device and is connected to the POE switch. If a hybrid optical fiber cable is used for access, both power supply and data transmission are taken into account, then the wireless bandwidth can be guaranteed.

[0023] However, in actual deployment, due to the complexity of optical connector manufacturing, it is easy to produce non-compliant products, resulting in abnormal optical power or CRC errors in packet reception, which in turn causes the network to be unable to be used normally, which causes certain troubles in the construction and deployment of optical APs. When the link is not good, the AP may stop emitting light, the port may repeatedly go up and down, and the switch data statistics may have CRC errors, resulting in normal data packet loss or data failure.

[0024] Currently, during the communication process, we diagnose the stability of the AP link by analyzing the errors that occur, and take corresponding measures accordingly. However, this method is slow in judging the stability of the optical AP link. Because of the complexity and immediacy requirements of the optical AP deployment environment, traditional diagnostic methods are often unable to quickly locate the link with CRC error packets on site. This not only affects the efficiency of network maintenance, but may also lead to a decrease in communication quality. Therefore, we need more efficient and fast diagnostic tools and methods to promptly and accurately identify and handle CRC error packet problems at the optical AP deployment site.

[0025] In view of this, an embodiment of the present application provides a method for diagnosing AP link stability, in which a switching device receives a service message and sends link layer discovery protocol information to multiple APs according to the service message, wherein a first AP sends the first link layer discovery protocol information to the switching device, and the switching device parses the first link layer discovery protocol information to obtain a first link layer discovery protocol field, a first transmit and receive light power, and a first verification data; determines whether the first transmit and receive light power is lower than a transmit and receive light power threshold, calculates the first link layer discovery protocol field to obtain target verification data, and determines whether the first verification data is the same as the target verification data; if the first receive and receive light power is lower than the receive and receive light power threshold or the first verification data is different from the target verification data, it is determined that the first AP link is unstable, and the switching device displays a link status interface. After determining that the first AP link is unstable, the link between the first AP and the AC in the link status interface is marked; if the first receive and receive light power is not lower than the receive and receive light power threshold and the first verification data is the same as the target verification data, it is determined that the first AP link is stable. It can be seen that the present application diagnoses multiple APs in the same time period through switching equipment, and performs data verification on the link layer discovery protocol information in various ways to determine whether the AP link is stable, so as to quickly diagnose the link with CRC error packets at the optical AP deployment site.

[0026] In order to make the technical solution of the present application clearer and easier to understand, the application scenarios of the technical solution of the present application are introduced below in conjunction with the accompanying drawings. Figure 1 As shown, the figure is a schematic diagram of an application scenario provided by an embodiment of the present application.

[0027] In this application scenario, the POE switch 101 is connected to multiple wireless access points AP. In the embodiment of the present application, the multiple wireless access points AP are set as the first AP103, the second AP104, the third AP105 and the fourth AP106, and the wireless controller AC102 is connected. After the network deployment is completed, the global LLDP diagnosis and port LLDP diagnosis are enabled on the POE switch 101 side. This LLDP message extends two TLV messages, one of which is to broadcast the information of the transmit optical power TxPower and the receive optical power RxPower of all UP ports of the local machine. The values ​​of the transmit optical power TxPower and the receive optical power RxPower are read by LLDP from the optical module register, and after reading, they are stored in the LLDP as a string ASCII value and sent out periodically.

[0028] The specific representation forms of the transmit optical power TxPower and the receive optical power RxPower are tx:-2.61&rx:-4.79&, in units of dBm, where & is the end character.

[0029] The user sends a service message through the network, and the Internet transmits the service message to the POE switch 101. The POE switch 101 sends link layer discovery protocol information to multiple APs according to the content of the service message. The link layer discovery protocol information includes a link layer discovery protocol field, transmit and receive optical power, and verification data.

[0030] In the embodiment of the present application, after receiving the link layer discovery protocol information, the first AP103 assembles the obtained link layer discovery protocol information into a private configuration management protocol, and then sends it to the wireless controller AC102.

[0031] The wireless controller AC102 receives the link layer discovery protocol information sent by the first AP103, parses the link layer discovery protocol information, obtains the first link layer discovery protocol field, the first transmit and receive optical power value and the first verification data, and then the wireless controller AC102 determines whether the first transmit and receive optical power is lower than the transmit and receive optical power threshold, calculates the first link layer discovery protocol field to obtain the target verification data, and determines whether the first verification data is the same as the target verification data. If the first receive and receive optical power is lower than the receive and receive optical power threshold or the first verification data is different from the target verification data, it is determined that the link of the first AP103 is unstable, and the switching device will display the link status interface. After determining that the link of the first AP103 is unstable, the link between the first AP103 and the wireless controller AC102 in the link status interface is marked; if the first receive and receive optical power is not lower than the receive and receive optical power threshold and the first verification data is the same as the target verification data, it is determined that the link of the first AP103 is stable.

[0032] Therefore, the present application diagnoses multiple APs in the same time period through switching equipment, and performs data verification on the link layer discovery protocol information in various ways to determine whether the AP link is stable, so as to quickly diagnose links with CRC error packets at the optical AP deployment site.

[0033] In order to make the technical solution of the present application clearer and easier to understand, the following describes a method for diagnosing AP link stability provided by an embodiment of the present application in combination with the above application scenario. Figure 2 As shown, this figure is a flow chart of a method for diagnosing AP link stability provided in an embodiment of the present application.

[0034] In the embodiment of the present application, the switching device is composed of a POE switch 101 and a wireless controller AC102. The POE switch 101 is connected to multiple wireless access points AP through SC optical cables, and the POE switch 101 is connected to the wireless controller AC102. The method for diagnosing AP link stability includes: S201. A switching device receives a service message.

[0035] The user sends the information to be queried to the switching device via the Internet, and the information to be queried is transmitted to the POE switch 101 in the switching device as a service message on the Internet. The service message includes multiple types, such as query message, integrated message, management message and notification message.

[0036] S202: The switching device sends link layer discovery protocol information to multiple APs according to the service message.

[0037] The POE switch 101 in the switching device receives the service message, parses the service message, obtains the data information carried by the service message, and sends the link layer discovery protocol information to multiple APs according to the data information.

[0038] In the embodiment of the present application, by expanding the LLDP protocol field, the transmit and receive optical power and verification data are added on the basis of the original attribute field to obtain the link layer discovery protocol information, which provides a variety of verification methods for subsequent diagnosis of whether the AP link is stable.

[0039] Among them, the received and transmitted optical power is the received optical power and the transmitted optical power. The transmitted optical power refers to the intensity of the optical signal output by the optical module or the light source transmitting end. The size of the transmitted optical power directly affects the transmission distance and signal quality of the optical signal in the optical fiber. Generally speaking, the greater the transmitted optical power, the longer the transmission distance of the optical signal in the optical fiber, but excessive transmitted optical power may also cause the nonlinear effect of the optical fiber and affect the signal quality. Therefore, the transmitted optical power needs to be controlled within a certain range to ensure the transmission performance and reliability of the optical signal. The received optical power refers to the intensity of the optical signal received by the optical module or the receiver receiving end. The size of the received optical power reflects the attenuation of the optical signal after transmission in the optical fiber. In the optical fiber communication system, the received optical power needs to reach a certain threshold to ensure that the receiver can correctly identify and analyze the optical signal. If the received optical power is too low, it may cause signal distortion or loss, thereby affecting the communication quality. Therefore, in optical fiber communication, the received optical power also needs to be controlled within a certain range to ensure the transmission performance and reliability of the optical signal.

[0040] In the embodiment of the present application, the transmit and receive optical power is added on the basis of the original attribute field, which helps the wireless controller AC102 to add a verification method, so as to diagnose the stability of the AP link more quickly.

[0041] S203: The switching device receives the first link layer discovery protocol information sent by the first AP, and parses the first link layer discovery protocol information.

[0042] In order to ensure that the link layer discovery protocol information received by the first AP103 is correct, the first AP103 needs to forward the received link layer discovery protocol information to the wireless controller AC102 in the switching device, so that the wireless controller AC102 can verify whether the link layer discovery protocol information received by the first AP102 is accurate.

[0043] After receiving the link layer discovery protocol information, the wireless controller AC102 parses the link layer discovery protocol information to obtain the first link layer discovery protocol field, the first transmit and receive optical power, and the first verification data.

[0044] S204: The switching device determines whether a first preset condition is met.

[0045] The first preset condition is that the first transmit / receive light power is not lower than the transmit / receive light power threshold and the first verification data is the same as the target verification data.

[0046] The transmit and receive optical power is generally a negative value. The value range varies from optical module manufacturer to manufacturer, but is generally between -28dBm and 0. 15 is a user-defined absolute value of the transmit and receive optical power. If it is lower than 15, the transmit and receive optical power is considered abnormal.

[0047] In the embodiment of the present application, the transmit and receive optical power needs to be controlled within a certain range to ensure the transmission performance and reliability of the optical signal. Therefore, the transmit and receive optical power threshold is set to -6dBm, and the wireless controller AC102 determines whether the first receive and receive optical power is lower than -6dBm to obtain a first judgment result.

[0048] The switching device obtains the target verification data by calculating the first link layer discovery protocol field, determines whether the first verification data is the same as the target verification data, and obtains the second judgment result. Since the service message contains multiple types, different calculation methods can be used to distinguish different types in this application to complete the verification of the first link layer discovery protocol information.

[0049] Therefore, the wireless controller AC102 in the switching device uses different algorithms to calculate the first link layer discovery protocol information according to different service types.

[0050] In the embodiment of the present application, the wireless controller AC102 first obtains the service type of the service message, sets the service type to query, selects a target algorithm according to the service type, and processes the first link layer discovery protocol information using the target algorithm to obtain target verification data.

[0051] In the embodiment of the present application, the target algorithm may be:

[0052] Among them, Y is the target verification data, Tx is the AP's transmit optical power, Rx is the AP's receive optical power, and X is the verification value of the POE port. When the result of the expression is true, it means that the AP link is normal. When the result of the expression is false, it means that the AP link is abnormal.

[0053] If the first judgment result indicates that the first transmit / receive optical power is lower than the transmit / receive optical power threshold or the second judgment result indicates that the first verification data is different from the target verification data, that is, the first preset condition is not met, then S205 is executed; If the first judgment result indicates that the first transmit / receive optical power is not lower than the transmit / receive optical power threshold and the second judgment result indicates that the first verification data is the same as the target verification data, that is, the first preset condition is met, then S206 is executed.

[0054] S205: Determine that the first AP link is unstable.

[0055] If the first transmit / receive optical power is lower than the transmit / receive optical power threshold or the first verification data is different from the target verification data, it is determined that the link of the first AP 103 is unstable. After obtaining the information that the link of the first AP 103 is unstable, S207 is executed.

[0056] S206: Determine whether the first AP link is stable.

[0057] If the first transmit / receive optical power is not lower than the transmit / receive optical power threshold and the first verification data is the same as the target verification data, it is determined that the link of the first AP 103 is stable.

[0058] S207: The switching device displays a link status interface, and after determining that the link of the first AP is unstable, marks the link between the first AP and the AC in the link status interface.

[0059] The switching device can summarize a network topology diagram according to the connection status and display a link status interface. After obtaining the information that the link of the first AP103 is unstable, the link between the wireless controller AC102 and the first AP103 will be marked to remind the user.

[0060] The marking method may be to change the link color of the wireless controller AC102 and the first AP103. For example, when the link of the first AP103 is stable, the link color is blue. After the link of the first AP103 is unstable, the link color changes from blue to red. In this way, the user can quickly obtain the information that the link of the first AP103 is unstable according to the change in color, and thus can adjust the first AP103 in time to restore the stability of the link of the first AP103.

[0061] The method proposed in this application is not limited to the initial stage of network deployment, but can also assist network management personnel in troubleshooting problems and ensuring the stability of AP links in the middle stage of normal network operation.

[0062] Based on the above content, the switching device receives the service message, and sends the link layer discovery protocol information to multiple APs according to the service message, wherein the first AP sends the first link layer discovery protocol information to the switching device, and the switching device parses the first link layer discovery protocol information to obtain the first link layer discovery protocol field, the first transceiver optical power and the first verification data; judge whether the first transceiver optical power is lower than the transceiver optical power threshold, calculate the first link layer discovery protocol field to obtain the target verification data, judge whether the first verification data is the same as the target verification data, if the first transceiver optical power is lower than the transceiver optical power threshold or the first verification data is different from the target verification data, then it is determined that the first AP link is unstable, and the switching device will display the link status interface, after determining that the first AP link is unstable, mark the link between the first AP and the AC in the link status interface; if the first transceiver optical power is not lower than the transceiver optical power threshold and the first verification data is the same as the target verification data, then it is determined that the first AP link is stable. It can be seen that the present application diagnoses multiple APs in the same time period through the switching device, and performs data verification on the link layer discovery protocol information in multiple ways to determine whether the AP link is stable, so as to quickly diagnose the link with CRC error packets at the optical AP deployment site.

[0063] The present application also provides a device for diagnosing AP link stability. Figure 3 As shown, the figure is a schematic diagram of a device for diagnosing AP link stability provided by an embodiment of the present application, the device comprising: a receiving module 301, a judging module 302 and a determining module 303; The receiving module 301 is used to receive a service message; send link layer discovery protocol information to multiple APs according to the service message; receive the first link layer discovery protocol information sent by the first AP, parse the first link layer discovery protocol information, and obtain the first link layer discovery protocol field, the first transmit and receive optical power, and the first verification data; The judgment module 302 is used to judge whether the first transmit and receive optical power is lower than the transmit and receive optical power threshold, obtain a first judgment result, obtain target verification data by calculating the first link layer discovery protocol field, judge whether the first verification data is the same as the target verification data, and obtain a second judgment result; The determination module 303 is configured to determine that the first AP link is unstable if the first judgment result indicates that the first transmit / receive optical power is lower than the transmit / receive optical power threshold or the second judgment result indicates that the first verification data is different from the target verification data.

[0064] In some possible implementations, the determination module is further used to determine that the first AP link is stable if the first judgment result indicates that the first transmit and receive optical power is not lower than a transmit and receive optical power threshold and the second judgment result indicates that the first verification data is the same as the target verification data.

[0065] In some possible implementations, the device further includes: The marking module is used to display the link status interface; after determining that the first AP link is unstable, the link between the first AP and the AC in the link status interface is marked.

[0066] In some possible implementations, the device further includes: Depending on the service type, different algorithms are used to calculate the first link layer discovery protocol information, including: Get the service type of the service message; Determine the target algorithm based on the business type; The step of obtaining target verification data by calculating the first link layer discovery protocol information includes: The first link layer discovery protocol information is processed using a target algorithm to obtain target verification data.

[0067] In some possible implementations, the target algorithm includes:

[0068] Among them, Y is the target verification data, Tx is the AP's transmit optical power, Rx is the AP's receive optical power, and X is the verification value of the POE port. When the result of the expression is true, it means that the AP link is normal. When the result of the expression is false, it means that the AP link is abnormal.

[0069] The present application also provides a computing device. Figure 4 As shown, this figure is a schematic diagram of a computing device provided in an embodiment of the present application, and the computing device 400 includes a bus 401, a processor 402, a communication interface 403 and a memory 404. The processor 402, the memory 404 and the communication interface 403 communicate with each other through the bus 401.

[0070] The bus 401 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0071] The processor 402 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0072] The communication interface 403 is used for external communication. For example, when the computing device is a first switch, the communication interface 403 can be used for the first switch to communicate with the first user terminal, or for the first switch to communicate with the second switch.

[0073] The memory 404 may include a volatile memory, such as a random access memory (RAM). The memory 404 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0074] The memory 404 stores executable codes, and the processor 402 executes the executable codes to perform the aforementioned method for diagnosing AP link stability.

[0075] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be stored by a computing device or a data storage device such as a data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned method for diagnosing AP link stability.

[0076] The embodiment of the present application further provides a computer program product, which includes one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the process or function described in the embodiment of the present application is generated in whole or in part.

[0077] The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer or data center to another website, computer or data center via wired (e.g., coaxial cable, optical fiber) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0078] When the computer program product is executed by a computer, the computer executes any of the aforementioned methods for diagnosing AP link stability. The computer program product may be a software installation package, and when any of the aforementioned methods for diagnosing AP link stability is needed, the computer program product may be downloaded and executed on a computer.

[0079] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.

[0080] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.

Claims

1. A method for diagnosing AP link stability, characterized in that: Applied to a switching device, the method comprises: Receive business messages; Send link layer discovery protocol information to multiple APs according to service messages; Receive first link layer discovery protocol information sent by a first AP, parse the first link layer discovery protocol information, and obtain a first link layer discovery protocol field, a first transmit and receive optical power, and a first verification data; Determine whether the first transmit / receive optical power is lower than the transmit / receive optical power threshold to obtain a first determination result, obtain target verification data by calculating the first link layer discovery protocol field, determine whether the first verification data is the same as the target verification data, and obtain a second determination result; If the first judgment result indicates that the first transmit / receive optical power is lower than the transmit / receive optical power threshold or the second judgment result indicates that the first verification data is different from the target verification data, it is determined that the first AP link is unstable.

2. The method according to claim 1, characterized in that The method further comprises: If the first judgment result indicates that the first transmit / receive optical power is not lower than the transmit / receive optical power threshold and the second judgment result indicates that the first verification data is the same as the target verification data, it is determined that the first AP link is stable.

3. The method according to claim 1, characterized in that The method further comprises: Display link status interface; After determining that the first AP link is unstable, marking the link between the first AP and the AC in the link status interface.

4. The method according to claim 1, characterized in that: The method further comprises: Depending on the service type, different algorithms are used to calculate the first link layer discovery protocol information, including: Get the service type of the service message; Determine the target algorithm based on the business type; The target verification data is obtained by calculating the first link layer discovery protocol information, including: The first link layer discovery protocol information is processed using a target algorithm to obtain target verification data.

5. The method according to claim 4, characterized in that The target algorithm comprises: Among them, Y is the target verification data, Tx is the AP's transmit optical power, Rx is the AP's receive optical power, and X is the verification value of the POE port. When the result of the expression is true, it means that the AP link is normal. When the result of the expression is false, it means that the AP link is abnormal.

6. A device for quickly diagnosing the stability of an optical AP link, characterized in that: The device comprises: A receiving module, configured to receive a service message; send link layer discovery protocol information to multiple APs according to the service message; receive first link layer discovery protocol information sent by a first AP, parse the first link layer discovery protocol information, and obtain a first link layer discovery protocol field, a first transmit and receive optical power, and a first verification data; A judgment module, used to judge whether the first transmit and receive optical power is lower than the transmit and receive optical power threshold, obtain a first judgment result, obtain target verification data by calculating the first link layer discovery protocol field, judge whether the first verification data is the same as the target verification data, and obtain a second judgment result; The determination module is used to determine that the first AP link is unstable if the first judgment result indicates that the first transmit and receive optical power is lower than the transmit and receive optical power threshold or the second judgment result indicates that the first verification data is different from the target verification data.

7. The device according to claim 6, characterized in that The determination module is further configured to determine that the first AP link is stable if the first judgment result indicates that the first transmit / receive optical power is not lower than the transmit / receive optical power threshold and the second judgment result indicates that the first verification data is the same as the target verification data.

8. The device according to claim 6, characterized in that The device also includes: The marking module is used to display the link status interface; after determining that the first AP link is unstable, the link between the first AP and the AC in the link status interface is marked.

9. A computing device, characterized in that including memory and processor; One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method as claimed in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 6.