Link saturation detection method, network equipment and storage medium
By establishing virtual network port connections and status detection between wireless base stations, the reliability problems of backup and migration between wireless base stations in the prior art are solved, and high-reliability backup and rapid migration are achieved.
Patent Information
- Application Number
- CN202311052120.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-18
- Publication Date
- 2025-02-25
AI Technical Summary
The prior art cannot realize high-reliability backup and rapid service migration between wireless base stations, especially in link saturation detection between main and spare stations. Failure of common equipment will lead to backup and migration failure.
By obtaining link configuration parameters, sending a link building request to the second network device, and establishing a virtual network port connection based on the verification result, a saturated link between the first network device and the second network device is realized. Based on the link, if an abnormality occurs in the second network device, a service switching request is sent to switch the service to the first network device for processing.
It realizes high-reliability backup of site-level services and rapid service migration between wireless base stations, improves the reliability of site-level network backup, and ensures rapid migration and takeover of services.
Smart Images

Figure CN119521316A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a link saturation detection method, a network device, and a storage medium. Background Art
[0002] In the field of communications, link saturation detection is used to detect the saturation of site-level services between wireless base stations, thereby determining the quality of saturated links between wireless base stations. However, link saturation detection in the prior art cannot achieve reliable backup between primary and backup stations, nor can it achieve millisecond-level site service migration.
[0003] For example, for the detection of a single baseband processing unit (Building Base band Unit, BBU) or active antenna unit (Active Antenna Unit, AAU), the link saturation detection between the active and standby BBUs needs to be performed through a shared AAU device. If the AAU device fails, the link saturation detection cannot be performed between the active and standby BBUs, resulting in the inability to perform the backup function between the active and standby BBUs; in the link saturation detection between the active and standby AAUs, if the BBU device fails, the link saturation detection cannot be performed between the active and standby AAUs.
[0004] Therefore, the existing active and standby wireless base stations both need to use shared base station equipment to implement link saturation detection. Once the shared base station equipment fails, link saturation detection cannot be performed between the active and standby wireless base stations, resulting in low reliability and inability to ensure rapid migration and backup of services. Summary of the invention
[0005] The main purpose of the embodiments of the present application is to provide a link saturation detection method, network equipment and storage medium, aiming to solve the problems of high-reliability backup and rapid migration of site-level services between wireless base stations, improve the reliability of site-level network backup while ensuring the rapid migration and takeover of site-level services.
[0006] In a first aspect, an embodiment of the present application provides a link saturation detection method, which is applied to a first network device, wherein the first network device includes a virtual network port, and the method includes:
[0007] Acquire a first link configuration parameter, and send a link establishment request to a second network device according to the first link configuration parameter, so that the second network device verifies the first network device according to the link establishment request;
[0008] Obtaining a verification result sent by the second network device, and if the verification result is successful, establishing a saturated link between the first network device and the second network device through the virtual network port;
[0009] A status detection is performed on the second network device based on the saturated link. If it is detected that the second network device is in an abnormal state, a service switching request is sent to the second network device, so that the second network device switches the service to the first network device for processing according to the service switching request.
[0010] In a second aspect, an embodiment of the present application provides a link saturation detection method, which is applied to a second network device, wherein the second network device includes a virtual network port, and the method includes:
[0011] Acquire a link establishment request and a second link configuration parameter sent by the first network device, and verify the first network device according to the link establishment request and the second link configuration parameter;
[0012] Sending a verification result to the first network device, and if the verification result is successful, enabling the first network device to establish a saturated link between the first network device and the second network device through the virtual network port;
[0013] A service switching request is obtained, and according to the service switching request, the service is switched to the first network device for processing.
[0014] In a third aspect, an embodiment of the present application provides a network device, the network device comprising:
[0015] A processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of the link saturation detection method applied to the first network device as described above or the steps of the link saturation detection method applied to the second network device as described above are realized.
[0016] In a fourth aspect, an embodiment of the present application provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the link saturation detection method applied to the first network device as described above or the steps of the link saturation detection method applied to the second network device as described above.
[0017] The embodiment of the present application provides a link saturation detection method, network device and storage medium, which obtains the first link configuration parameter and sends a link establishment request to the second network device according to the first link configuration parameter, so that the second network device verifies the first network device according to the link establishment request; obtains the verification result sent by the second network device, and if the verification result is successful, a saturated link between the first network device and the second network device is established through a virtual network port; based on the saturated link, the state of the second network device is detected, and if the second network device is detected to be in an abnormal state, a service switching request is sent to the second network device, so that the second network device switches the service to the first network device for processing according to the service switching request. In this way, when a network device fails, high-reliability backup and rapid migration of site-level services between wireless base stations can be achieved, thereby improving the reliability of site-level network backup while ensuring rapid migration and takeover of site-level services. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 A schematic flow chart of a link saturation detection method applied to a first network device provided in an embodiment of the present application;
[0020] Figure 2 A flowchart of a link saturation detection method applied to a second network device provided in an embodiment of the present application;
[0021] Figure 3 An application scenario diagram of a link saturation detection method provided in an embodiment of the present application;
[0022] Figure 4 A schematic diagram of the overall process of a link saturation detection method provided in an embodiment of the present application;
[0023] Figure 5 A schematic block diagram of the structure of a network device applied to a first network device provided in an embodiment of the present application;
[0024] Figure 6 A schematic block diagram of the structure of a network device applied to a second network device provided in an embodiment of the present application;
[0025] Figure 7 A schematic block diagram of the structure of a link saturation detection device provided in an embodiment of the present application;
[0026] Figure 8 A schematic block diagram of the structure of another link saturation detection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0029] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0030] Please refer to Figure 1 , Figure 1 A flowchart of a link saturation detection method applied to a first network device is provided in an embodiment of the present application. The link saturation detection method can be applied to the first network device, thereby realizing high-reliability backup and rapid migration of site-level services between wireless base stations when a network device fails, thereby improving the reliability of site-level network backup while ensuring rapid migration and takeover of site-level services.
[0031] like Figure 1 As shown, the link saturation detection method may include S101 to S103.
[0032] S101. Acquire a first link configuration parameter, and send a link establishment request to a second network device according to the first link configuration parameter, so that the second network device verifies the first network device according to the link establishment request.
[0033] The first link configuration parameter may be a link-related parameter configured by the network management side, such as address information of the first network device, address information of the second network device, VNI and other parameters. The first network device and the second network device may be a server, a base station, a switch, a router, an IPRAN product and an ITN product, etc. Specifically, the first network device may be a backup network device, and the second network device may be a primary network device. The link establishment request is used to request to establish a network link between the first network device and the second network device.
[0034] In some embodiments, the address information of the first network device is obtained, and a link establishment request is generated according to the address information of the first network device, the address information of the second network device, and a network identifier; and the link establishment request is sent to the second network device based on the address information of the second network device. In this way, the link establishment request can be accurately generated, and the link establishment request is sent to the second network device so that the second network device verifies the first network device according to the link establishment request.
[0035] The first link configuration parameter includes address information and a network identifier of the second network device, the address information may be an IP address, and the network identifier may be a VXLAN network identifier.
[0036] Specifically, the IP address of its own device (i.e., the first network device) is obtained, and the IP address and network identifier of the second network device are extracted from the first link configuration parameters, and a link establishment request is generated according to the IP address of the first network device, the IP address of the second network device, and the network identifier; based on the IP address of the second network device, a link establishment request is sent to the second network device.
[0037] In some embodiments, before sending a link establishment request to the second network device according to the first link configuration parameter, it is determined whether there is a saturated link between the first network device and the second network device; if it is determined that there is no saturated link between the first network device and the second network device, a link establishment request is sent to the second network device according to the first link configuration parameter. In this way, after determining that there is no saturated link between the first network device and the second network device, a link establishment request can be sent to avoid repeated link establishment.
[0038] The saturated link may be used to connect the first network device and the second network device and may be a VXLAN saturated link.
[0039] Since the network device will perform configuration verification and local records on the established saturated link, it is possible to determine whether a saturated link exists between the first network device and the second network device through local records; if it is determined that a saturated link exists between the first network device and the second network device, it means that the first network device and the second network device have successfully established a link and there is no need to send a link establishment request; if it is determined that there is no saturated link between the first network device and the second network device, a link establishment request is sent to the second network device according to the first link configuration parameters.
[0040] S102: Obtain a verification result sent by the second network device. If the verification result is successful, establish a saturated link between the first network device and the second network device through the virtual network port.
[0041] The verification result is a configuration verification result of the second network device on the first network device.
[0042] Specifically, a virtual network port may be mounted under the newly added link detection container in the first network device to implement communication between the link detection container and the service container within the station, so that communication between the link detection container and the service container is established within the station.
[0043] Exemplarily, a verification result sent by the second network device is obtained. If the verification result is a successful verification, a VXLAN channel is constructed between the virtual network port of the first network device and the virtual network port of the second network device, and a saturated link is established between the first network device and the second network device through the VXLAN channel. If the verification result is an unsuccessful verification, the virtual network port of the second network device is closed, so that the VXLAN channel cannot be constructed between the virtual network port of the first network device and the virtual network port of the second network device.
[0044] S103: Perform status detection on the second network device based on the saturated link. If the second network device is detected to be in an abnormal state, send a service switching request to the second network device, so that the second network device switches the service to the first network device for processing according to the service switching request.
[0045] The abnormal state can be used to indicate that the communication between the first network device or the second network device is abnormal, such as the first network device or the second network device cannot receive information sent by the corresponding side, or there is a problem with the virtual network port of the first network device or the second network device. The service switching request can be used to indicate switching the service to the corresponding network device.
[0046] In some embodiments, if a link saturation message sent by the second network device is not detected on the saturated link within a preset time period, it is determined that the second network device is in an abnormal state.
[0047] After a saturated link is established between the first network device and the second network device, since the first network device and the second network device will always transmit VXLAN messages over the saturated link, the business operation status of the corresponding side can be detected by capturing the VXLAN messages transmitted on the link.
[0048] The preset time period may be any time period, which is determined by actual conditions, for example, 10 minutes or 1 minute. The link saturation message may be a message transmitted on a saturated link, and is used to transmit a VXLAN message.
[0049] Specifically, within a preset time period, it can be detected on the saturated link whether there is a link saturation message sent by the second network device; if a link saturation message sent by the second network device is detected on the saturated link, it is determined that the second network device is in a normal state; if a link saturation message sent by the second network device is not detected on the saturated link, it is determined that the second network device is in an abnormal state.
[0050] Exemplarily, after the link detection container saturation link is successfully established, the first network device and the second network device simultaneously start the timer task and monitor each other's status through the VXLAN message transmitted on the link. Taking the first network device as an example, when the link detection container of the first network device does not receive the VXLAN saturation message of the second network device before the timer times out, it sends a service switching request to the second network device, so that the second network device switches the service to the first network device for processing according to the service switching request. At the same time, the first network device triggers its corresponding service module to take over the service of the second network device, and initiates a channel establishment request after the second network device returns to normal.
[0051] For example, when a user's terminal accesses the cell of the second network device at a certain moment, when the link detection container of the second network device detects that the service container of this station is abnormal, it will no longer send a link saturation message to the link detection container of the first network device through the VXLAN saturation link before the timer times out. At the same time, if the link detection container of the first network device does not receive the link saturation message of the second network device before the timer times out, it will notify the service container of this station to provide services. At this time, the user will quickly switch to the first network device to process the service.
[0052] In some embodiments, after sending a service switching request to the second network device so that the second network device switches the service to the first network device for processing according to the service switching request, if a link saturation message sent by the second network device is detected on the saturated link, the service is switched to the second network device for processing. In this way, after the second network device returns to normal, the service can be quickly switched back to the second network device for processing.
[0053] Specifically, after the service is switched to the first network device for processing, it is determined whether a link saturation message sent by the second network device is detected on the saturated link; if a link saturation message sent by the second network device is detected on the saturated link, the service is switched to the second network device for processing; if the link saturation message sent by the second network device is not detected on the saturated link, the service continues to be processed through the first network device.
[0054] Exemplarily, when the link saturation container of the second network device detects that the service container has returned to normal, the link detection container of the second network device will initiate a VXLAN saturation link establishment request to the link detection container of the first network device, and the first network device and the second network device will verify and identify the link establishment request and response message and record them locally. When the VXLAN saturation link is successfully established, the first network device stops providing services, and the user quickly switches to the primary site cell for service processing. At the same time, the saturation link detection continues between the first network device and the second network device.
[0055] Please refer to Figure 2 , Figure 2 A flow chart of a link saturation detection method applied to a second network device provided in an embodiment of the present application. The link saturation detection method can be applied to the second network device, thereby realizing high-reliability backup and rapid migration of site-level services between wireless base stations when a network device fails, thereby improving the reliability of site-level network backup while ensuring rapid migration and takeover of site-level services.
[0056] like Figure 2 As shown, the link saturation detection method may include S201 to S203.
[0057] S201: Obtain a link establishment request and a second link configuration parameter sent by a first network device, and verify the first network device according to the link establishment request and the second link configuration parameter.
[0058] The second link configuration parameter may be a link-related parameter configured by the network management side, such as address information of the first network device, address information of the second network device, VNI and other parameters. The first network device and the second network device may be a server, a base station, a switch, a router, an IPRAN product and an ITN product, etc. Specifically, the first network device may be a backup network device, and the second network device may be a primary network device. The link establishment request is used to request to establish a network link between the first network device and the second network device.
[0059] In some embodiments, the link establishment request is parsed to obtain the first address information, the second address information and the network identifier to be verified; the address information of the second network device is obtained, and it is determined whether the first address information is the same as the address information of the first network device, whether the second address information is the same as the address information of the second network device, and whether the network identifier to be verified is the same as the network identifier; if the first address information is the same as the address information of the first network device, the second address information is the same as the address information of the second network device, and the network identifier to be verified is the same as the network identifier, it is determined that the verification of the first network device is successful. In this way, the first network device can be verified by the second network device according to the link establishment request.
[0060] The first address information is the address information of the first network device in the link establishment request, the second address information is the address information of the second network device in the link establishment request, and the network identifier to be verified is the network identifier in the link establishment request. The second link configuration parameters include the address information of the first network device and the network identifier
[0061] Specifically, determine whether the first address information is the same as the address information of the first network device obtained by itself, determine whether the second address information is the same as the address information of the second network device in the second link configuration parameters, and determine whether the network identifier to be verified is the same as the network identifier in the second link configuration parameters; if the first address information is the same as the address information of the first network device obtained by itself, the second address information is the same as the address information of the second network device in the second link configuration parameters, and the network identifier to be verified is the same as the network identifier in the second link configuration parameters, then determine that the verification of the first network device is successful; if the first address information is not the same as the address information of the first network device obtained by itself, or the second address information is not the same as the address information of the second network device in the second link configuration parameters, or the network identifier to be verified is not the same as the network identifier in the second link configuration parameters, then determine that the verification of the first network device is unsuccessful.
[0062] S202: Send a verification result to the first network device. If the verification result is successful, enable the first network device to establish a saturated link between the first network device and the second network device through the virtual network port.
[0063] The verification result is a configuration verification result of the second network device on the first network device.
[0064] Specifically, a virtual network port may be mounted under the newly added link detection container in the second network device to implement communication between the link detection container and the service container within the station, so that communication between the link detection container and the service container is established within the station.
[0065] Exemplarily, a verification result sent by the second network device is obtained. If the verification result is a successful verification, a VXLAN channel is constructed between the virtual network port of the first network device and the virtual network port of the second network device, and a saturated link is established between the first network device and the second network device through the VXLAN channel. If the verification result is an unsuccessful verification, the virtual network port of the second network device is closed, so that the VXLAN channel cannot be constructed between the virtual network port of the first network device and the virtual network port of the second network device.
[0066] S203: Obtain a service switching request, and switch the service to the first network device for processing according to the service switching request.
[0067] The service switching request may be used to indicate switching the service to the corresponding network device.
[0068] Specifically, after the first network device does not receive a link saturation message sent by the second network device within a preset time period, it will send a service switching request to the second network device. After the second network device receives the service switching request, it can switch the service to the first network device for processing according to the service switching request, so that the first network device triggers its corresponding service module and takes over the service of the second network device.
[0069] In some embodiments, after the service is switched to the first network device for processing according to the service switching request, a link saturation message is sent to the first network device, so that when the first network device detects the link saturation message sent by the second network device on the saturated link, the service is switched to the second network device for processing. In this way, after the second network device returns to normal, the service can be quickly switched back to the second network device for processing.
[0070] Specifically, after the service is switched to the first network device for processing according to the service switching request, the second network device will continue to send link saturation messages to the first network device, so that the first network device can determine whether the link saturation message sent by the second network device is detected on the saturated link; if the link saturation message sent by the second network device is detected on the saturated link, the service is switched to the second network device for processing; if the link saturation message sent by the second network device is not detected on the saturated link, the service continues to be processed through the first network device.
[0071] Exemplarily, when the link saturation container of the second network device detects that the service container has returned to normal, the link detection container of the second network device will initiate a VXLAN saturation link establishment request to the link detection container of the first network device, and the first network device and the second network device will verify and identify the link establishment request and response message and record them locally. When the VXLAN saturation link is successfully established, the first network device stops providing services, and the user quickly switches to the primary site cell for service processing. At the same time, the saturation link detection continues between the first network device and the second network device.
[0072] In some embodiments, Figure 3 As shown, the application scenario of the link saturation detection method proposed in an embodiment of the present application is introduced, taking the first network device as a backup station and the second network device as a master station as an example.
[0073] Among them, the master station and the backup station both include a link detection container, a parameter pre-configuration module, a virtual network port module, a parameter configuration recording module, a VXLAN saturated link establishment module and a VXLAN saturated link detection module.
[0074] Specifically, the link detection container is a newly added container in the embodiment of the present application, which is mainly used to notify the business container to perform business switching and takeover; the parameter pre-configuration module is used to complete the configuration that other modules rely on when processing data according to the network management configuration information; the virtual network port module is used to encapsulate and decapsulate VXLAN data packets, and receive and send them to the link detection container; the parameter configuration recording module is used to record the saturated link configuration information between the master and standby stations; the VXLAN saturated link establishment module is used to establish a communication link for the link detection container between the master and standby stations to perform VXLAN message communication; the VXLAN saturated link detection module is used to perform VXLAN link saturation message detection on the link detection container between the master and standby stations based on the timer task, and notify the business container to migrate and take over the opposite end business.
[0075] In some embodiments, Figure 4 As shown, taking the first network device as the backup station and the second network device as the master station as an example, the link saturation detection method proposed in an embodiment of the present application is introduced from the overall process of link saturation detection. The link saturation detection method involves a master station, a user management entity (User Management Entity, UME), a backup station, a bearing subsystem (Bearing subsystem, brs) and a control flow graph (Control Flow Graph, cfg), mainly including S301-S312.
[0076] S301. The UME sends a first link configuration parameter to a standby station, and sends a second link configuration parameter to a primary station.
[0077] S302: The standby station detects whether there is a saturated link. If not, it sends a link establishment request to the second network device according to the first link configuration parameters.
[0078] S303. The master station initiates verification to brs according to the second link configuration parameters.
[0079] S304. brs returns the test result.
[0080] S305: If the test result is successful, generate link saturation configuration information to cfg according to the second link configuration parameter, and feed back the generated local link saturation configuration information to UME.
[0081] S306. The UME sends the link saturation configuration information to the standby station.
[0082] S307: The standby station reads the link saturation configuration information, and confirms whether the link saturation configuration information matches the first link configuration parameters. If they match, a configuration verification success message is sent to cfg.
[0083] S308. cfg sends a message indicating that the mark is set successfully to the standby station.
[0084] S309: The master station notifies the backup station that the saturated link is established successfully.
[0085] S310, the standby station detects the status of the master station.
[0086] S311: When an abnormality is detected at the primary station, the backup station takes over the service and initiates a saturated link establishment request.
[0087] S312: After the saturated link is successfully established, the service is migrated from the backup station back to the primary station, and the backup station continues to detect the status of the primary station.
[0088] The embodiment of the present application provides a link saturation detection method, which obtains the first link configuration parameter and sends a link establishment request to the second network device according to the first link configuration parameter, so that the second network device verifies the first network device according to the link establishment request; obtains the verification result sent by the second network device, and if the verification result is successful, a saturated link between the first network device and the second network device is established through a virtual network port; based on the saturated link, the state of the second network device is detected, and if the second network device is detected to be in an abnormal state, a service switching request is sent to the second network device, so that the second network device switches the service to the first network device for processing according to the service switching request. In this way, when a network device fails, high-reliability backup and rapid migration of site-level services between wireless base stations can be achieved, thereby improving the reliability of site-level network backup while ensuring rapid migration and takeover of site-level services.
[0089] See also Figure 5 , Figure 5 A schematic block diagram of the structure of a network device provided in an embodiment of the present application.
[0090] like Figure 5 As shown, the network device 400 may include a processor 401 and a memory 402 , and the processor 401 and the memory 402 are connected via a bus 403 , such as an I2C (Inter-integrated Circuit) bus.
[0091] In an exemplary embodiment, the processor 401 can be used to provide computing and control capabilities to support the operation of the entire terminal device. The processor 401 can be a central processing unit (CPU), and the processor 401 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0092] Specifically, the memory 402 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.
[0093] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a partial structure related to the embodiment of the present application, and does not constitute a limitation on the terminal device to which the embodiment of the present application is applied. The specific server may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0094] The processor 401 is used to run a computer program stored in the memory, and implement any one of the link saturation detection methods applied to the first network device provided in the embodiments of the present application when executing the computer program.
[0095] In one embodiment, the processor 401 is used to run a computer program stored in a memory, and implement the following steps when executing the computer program: obtain a first link configuration parameter, and send a link establishment request to a second network device according to the first link configuration parameter, so that the second network device verifies the first network device according to the link establishment request; obtain a verification result sent by the second network device, and if the verification result is a successful verification, establish a saturated link between the first network device and the second network device through the virtual network port; perform status detection on the second network device based on the saturated link, and if it is detected that the second network device is in an abnormal state, send a service switching request to the second network device, so that the second network device switches the service to the first network device for processing according to the service switching request.
[0096] In one embodiment, the first link configuration parameter includes address information and a network identifier of the second network device. When the processor 401 implements sending a link establishment request to the second network device according to the first link configuration parameter, it is used to implement: obtaining the address information of the first network device, and generating a link establishment request according to the address information of the first network device, the address information of the second network device and the network identifier; and sending a link establishment request to the second network device based on the address information of the second network device.
[0097] In one embodiment, before implementing the sending of the link establishment request to the second network device according to the first link configuration parameters, the processor 401 is used to implement: determining whether there is a saturated link between the first network device and the second network device; if it is determined that there is no saturated link between the first network device and the second network device, sending a link establishment request to the second network device according to the first link configuration parameters.
[0098] In one embodiment, when the processor 401 implements the status detection of the second network device based on the saturated link, it is used to implement: within a preset time period, if the link saturation message sent by the second network device is not detected on the saturated link, it is determined that the second network device is in an abnormal state.
[0099] In one embodiment, after implementing the sending of a service switching request to the second network device so that the second network device switches the service to the first network device for processing according to the service switching request, the processor 401 is used to implement: if a link saturation message sent by the second network device is detected on the saturated link, the service is switched to the second network device for processing.
[0100] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the network device described above can refer to the corresponding process in the aforementioned link saturation detection method embodiment, and will not be repeated here.
[0101] See also Figure 6 , Figure 6 A schematic block diagram of the structure of another network device provided in an embodiment of the present application.
[0102] like Figure 6 As shown, the network device 500 may include a processor 501 and a memory 502 , and the processor 501 and the memory 502 are connected via a bus 503 , such as an I2C (Inter-integrated Circuit) bus.
[0103] In an exemplary embodiment, the processor 501 can be used to provide computing and control capabilities to support the operation of the entire terminal device. The processor 501 can be a central processing unit (CPU), and the processor 401 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0104] Specifically, the memory 502 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.
[0105] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a partial structure related to the embodiment of the present application, and does not constitute a limitation on the terminal device to which the embodiment of the present application is applied. The specific server may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0106] The processor 501 is used to run a computer program stored in the memory, and implement any one of the link saturation detection methods applied to the second network device provided in the embodiments of the present application when executing the computer program.
[0107] In one embodiment, the processor 501 is used to run a computer program stored in a memory, and implement the following steps when executing the computer program: obtain a link establishment request and a second link configuration parameter sent by a first network device, and verify the first network device according to the link establishment request and the second link configuration parameter; send a verification result to the first network device, and if the verification result is a successful verification, enable the first network device to establish a saturated link between the first network device and the second network device through the virtual network port; obtain a service switching request, and switch the service to the first network device for processing according to the service switching request.
[0108] In one embodiment, the second link configuration parameters include address information and a network identifier of the first network device. When the processor 501 implements the verification of the first network device according to the link establishment request and the second link configuration parameters, it is used to implement: parsing the link establishment request to obtain the first address information, the second address information and the network identifier to be verified; obtaining the address information of the second network device, and determining whether the first address information is the same as the address information of the first network device, determining whether the second address information is the same as the address information of the second network device, and determining whether the network identifier to be verified is the same as the network identifier; if the first address information is the same as the address information of the first network device, the second address information is the same as the address information of the second network device, and the network identifier to be verified is the same as the network identifier, then it is determined that the verification of the first network device is successful.
[0109] In one embodiment, after implementing the switching of the service to the first network device for processing according to the service switching request, the processor 501 is used to implement: sending a link saturation message to the first network device, so that when the first network device detects the link saturation message sent by the second network device on the saturated link, the first network device switches the service to the second network device for processing.
[0110] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the network device described above can refer to the corresponding process in the aforementioned link saturation detection method embodiment, and will not be repeated here.
[0111] See also Figure 7 , Figure 7 It is a schematic block diagram of a link saturation detection device provided in an embodiment of the present application. The link saturation detection device can be configured in a server to execute the link saturation detection method applied to the first network device.
[0112] like Figure 7As shown, the link saturation detection device 600 includes: a link establishment request module 601 , a first link establishment module 602 and a first service switching module 603 .
[0113] A link establishment request module 601, configured to obtain a first link configuration parameter, and send a link establishment request to a second network device according to the first link configuration parameter, so that the second network device verifies the first network device according to the link establishment request;
[0114] The first link establishing module 602 is used to obtain the verification result sent by the second network device, and if the verification result is successful, establish a saturated link between the first network device and the second network device through the virtual network port;
[0115] The first service switching module 603 is used to perform status detection on the second network device based on the saturated link. If the second network device is detected to be in an abnormal state, a service switching request is sent to the second network device, so that the second network device switches the service to the first network device for processing according to the service switching request.
[0116] The link establishment request module 601 is also used to obtain the address information of the first network device, and generate a link establishment request according to the address information of the first network device, the address information of the second network device and the network identifier; based on the address information of the second network device, send a link establishment request to the second network device.
[0117] The link verification module 604 is used to determine whether there is a saturated link between the first network device and the second network device; if it is determined that there is no saturated link between the first network device and the second network device, a link establishment request is sent to the second network device according to the first link configuration parameter.
[0118] The first service switching module 603 is further configured to determine that the second network device is in an abnormal state if no link saturation message sent by the second network device is detected on the saturated link within a preset time period.
[0119] The first service switching module 603 is further configured to switch the service to the second network device for processing if a link saturation message sent by the second network device is detected on the saturated link.
[0120] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0121] The method and apparatus of the present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer terminal devices, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices.
[0122] See also Figure 8 , Figure 8 It is a schematic block diagram of a link saturation detection device provided in an embodiment of the present application. The link saturation detection device can be configured in a server to execute the link saturation detection method applied to the second network device.
[0123] like Figure 8 As shown, the link saturation detection device 700 includes: a request verification module 701 , a second link establishment module 702 , and a second service switching module 703 .
[0124] The request verification module 701 is used to obtain a link establishment request and a second link configuration parameter sent by a first network device, and verify the first network device according to the link establishment request and the second link configuration parameter;
[0125] The second link establishing module 702 is used to send a verification result to the first network device, and if the verification result is successful, enable the first network device to establish a saturated link between the first network device and the second network device through the virtual network port;
[0126] The second service switching module 703 is used to obtain a service switching request, and switch the service to the first network device for processing according to the service switching request.
[0127] The request verification module 701 is also used to parse the link establishment request to obtain the first address information, the second address information and the network identifier to be verified; obtain the address information of the second network device, and determine whether the first address information is the same as the address information of the first network device, determine whether the second address information is the same as the address information of the second network device, and determine whether the network identifier to be verified is the same as the network identifier; if the first address information is the same as the address information of the first network device, the second address information is the same as the address information of the second network device, and the network identifier to be verified is the same as the network identifier, then it is determined that the verification of the first network device is successful.
[0128] The second service switching module 703 is further configured to send a link saturation message to the first network device, so that when the first network device detects the link saturation message sent by the second network device on the saturated link, the first network device switches the service to the second network device for processing.
[0129] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0130] The method and apparatus of the present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer terminal devices, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices.
[0131] An embodiment of the present application also provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any link saturation detection method provided in the description of the embodiment of the present application.
[0132] The storage medium may be an internal storage unit of the network device described in the foregoing embodiment, such as a hard disk or memory of the network device. The storage medium may also be an external storage device of the network device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc., provided on the network device.
[0133] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware embodiment, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0134] It should be understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0135] The serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A link saturation detection method, characterized in that: Applied to a first network device, the first network device includes a virtual network port, and the method includes: Acquire a first link configuration parameter, and send a link establishment request to a second network device according to the first link configuration parameter, so that the second network device verifies the first network device according to the link establishment request; Obtaining a verification result sent by the second network device, and if the verification result is successful, establishing a saturated link between the first network device and the second network device through the virtual network port; A status detection is performed on the second network device based on the saturated link. If it is detected that the second network device is in an abnormal state, a service switching request is sent to the second network device, so that the second network device switches the service to the first network device for processing according to the service switching request.
2. The method according to claim 1, characterized in that The first link configuration parameter includes address information and a network identifier of the second network device, and sending a link establishment request to the second network device according to the first link configuration parameter includes: Acquire address information of the first network device, and generate a link establishment request according to the address information of the first network device, the address information of the second network device and the network identifier; Based on the address information of the second network device, a link establishment request is sent to the second network device.
3. The method according to claim 1, characterized in that Before sending a link establishment request to the second network device according to the first link configuration parameter, the method further includes: Determine whether there is a saturated link between the first network device and the second network device; If it is determined that no saturated link exists between the first network device and the second network device, a link establishment request is sent to the second network device according to the first link configuration parameter.
4. The method according to claim 1, characterized in that The performing status detection on the second network device based on the saturated link includes: If, within a preset time period, no link saturation message sent by the second network device is detected on the saturated link, it is determined that the second network device is in an abnormal state.
5. The method according to claim 1, characterized in that After sending the service switching request to the second network device so that the second network device switches the service to the first network device for processing according to the service switching request, the method further includes: If a link saturation message sent by the second network device is detected on the saturated link, the service is switched to the second network device for processing.
6. A link saturation detection method, characterized in that: Applied to a second network device, the second network device includes a virtual network port, the method includes: Acquire a link establishment request and a second link configuration parameter sent by the first network device, and verify the first network device according to the link establishment request and the second link configuration parameter; Sending a verification result to the first network device, and if the verification result is successful, enabling the first network device to establish a saturated link between the first network device and the second network device through the virtual network port; A service switching request is obtained, and according to the service switching request, the service is switched to the first network device for processing.
7. The method according to claim 6, characterized in that The second link configuration parameter includes address information and a network identifier of the first network device, and the verifying the first network device according to the link establishment request and the second link configuration parameter includes: Parsing the link establishment request to obtain the first address information, the second address information and a network identifier to be verified; Acquire the address information of the second network device, and determine whether the first address information is the same as the address information of the first network device, determine whether the second address information is the same as the address information of the second network device, and determine whether the network identifier to be verified is the same as the network identifier; If the first address information is the same as the address information of the first network device, the second address information is the same as the address information of the second network device, and the network identifier to be verified is the same as the network identifier, it is determined that the verification of the first network device is successful.
8. The method according to claim 6, characterized in that After switching the service to the first network device for processing according to the service switching request, the method further includes: A link saturation message is sent to the first network device, so that when the first network device detects the link saturation message sent by the second network device on the saturated link, the first network device switches the service to the second network device for processing.
9. A network device, characterized in that: The network equipment includes: A processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of the link saturation detection method according to any one of claims 1 to 5 or the steps of the link saturation detection method according to any one of claims 6 to 8 are realized.
10. A storage medium for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the link saturation detection method as described in any one of claims 1 to 5 or the steps of the link saturation detection method as described in any one of claims 6 to 8.