Terminal detection method, device and equipment and computer storage medium

By detecting the communication status of the terminal gateway between the cloud gateway and the broadband access server, the problem of the inability to detect the online status of the terminal gateway in traditional home networks is solved, and the efficiency and stability of the network function are improved.

CN119109838APending Publication Date: 2024-12-10CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411321339.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

The hardware version of the physical gateway in traditional home networks is backward, resulting in the inability to effectively detect the communication status of the terminal gateway, affecting the normal operation of network functions.

Method used

When establishing a connection between the cloud gateway and the broadband access server, a query packet is sent to the target terminal gateway to detect its communication status and feedback the results to the BRAS server, thereby realizing the detection of the communication status of the terminal gateway.

Benefits of technology

The detection time is reduced, and the detection efficiency of the communication status of the terminal gateway is improved, so that the BRAS server can detect the online or offline state of the terminal gateway while establishing communication with the cloud gateway, ensuring the stability of the network connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119109838A_ABST
    Figure CN119109838A_ABST
Patent Text Reader

Abstract

The invention discloses a terminal detection method, device and equipment and a computer storage medium. According to the method, under the condition that the cloud gateway successfully establishes connection with the BRAS server, the query packet is sent to the target terminal gateway to detect the communication state information of the target terminal gateway, and then the corresponding response information is sent to the BRAS server, so that the communication state of the target terminal gateway can be detected under the condition that the BRAS server establishes communication with the cloud gateway, and the communication efficiency of the target terminal gateway is improved. And after the cloud gateway successfully establishes the connection with the BRAS server, the query packet is sent to detect the communication state information of the target terminal gateway, so that the detection time is shortened, and the detection efficiency of the communication state of the target terminal gateway is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing, and in particular to a method, device, equipment, computer storage medium and computer program product for terminal detection. Background Art

[0002] The physical gateway in the traditional home network establishes a PPPoE connection with the PPPoE server on the Broadband Remote Access Server (BRAS) through the Ethernet Point-to-Point Protocol Over Ethernet (PPPoE) client on the physical gateway. The BRAS server can determine whether the physical gateway is offline through the heartbeat detection strategy of the PPPoE connection, and then perform corresponding operations.

[0003] At present, as time goes by, the hardware version of the home physical gateway is gradually outdated, resulting in some network functions such as data scheduling not being able to achieve the expected effect. With the development of cloud technology, the physical gateway in the traditional home network has been replaced by the form of "terminal gateway" + "cloud gateway". That is, the cloud gateway is used to implement network functions and update functions in the form of software, and the terminal gateway is used to access the cloud gateway to obtain data. Among them, the terminal gateway includes a thin terminal gateway, which is on the home user side, and the cloud gateway is on the cloud and contains a PPPoE client. However, the PPPoE server of the BRAS server establishes a connection with the PPPoE client in the cloud gateway through the heartbeat detection mechanism, which can only detect whether the cloud gateway is online, but cannot detect whether the terminal gateway is online. Summary of the invention

[0004] The embodiments of the present disclosure provide a terminal detection method, apparatus, device, computer storage medium, and computer program product, which can detect the communication status of a terminal gateway.

[0005] In a first aspect, an embodiment of the present disclosure provides a terminal detection method, which is applied to a cloud gateway, and the method includes:

[0006] When a connection is successfully established with a broadband access server BRAS server, obtaining preset identification information;

[0007] Based on the preset identification information, a query packet is sent to the target terminal gateway, where the query packet is used to detect the communication status of the target terminal gateway;

[0008] Obtain communication status information of the target terminal gateway;

[0009] Send response information corresponding to the communication status information to the BRAS server.

[0010] In an achievable implementation, when the communication status information of the target terminal gateway includes online status information, sending response information corresponding to the communication status information to the BRAS server includes:

[0011] Send a heartbeat response packet corresponding to the online status information to the BRAS server.

[0012] In an achievable implementation, when the communication status information of the target terminal gateway includes offline status information, sending response information corresponding to the communication status information to the BRAS server includes:

[0013] Send offline request information corresponding to the offline state information to the BRAS server.

[0014] In one possible implementation, before obtaining the preset identification information, the method further includes:

[0015] Check whether the heartbeat detection packet sent by the BRAS server is obtained;

[0016] When the heartbeat detection packet sent by the BRAS server is obtained, it is confirmed that the preset identification information is obtained.

[0017] In a second aspect, an embodiment of the present disclosure provides a terminal detection method, which is applied to a broadband access server BRAS server, and the method includes:

[0018] When a connection is successfully established with the cloud gateway, the preset detection parameters are obtained;

[0019] Send a heartbeat detection packet to the cloud gateway based on preset detection parameters;

[0020] Get the response information sent by the cloud gateway.

[0021] In one feasible implementation, the response information includes a heartbeat response packet and offline request information.

[0022] In a third aspect, an embodiment of the present disclosure provides a terminal detection method, which is applied to a target terminal gateway, and the method includes:

[0023] Get the query packet sent by the cloud gateway;

[0024] When the communication status of the target terminal gateway is represented as online, the communication information is sent to the cloud gateway.

[0025] In a fourth aspect, an embodiment of the present disclosure provides a terminal detection device, which is applied to a cloud gateway, and the device includes:

[0026] An acquisition module, used to acquire preset identification information when a connection is successfully established with a broadband access server BRAS server;

[0027] A sending module, used to send a query packet to a target terminal gateway based on preset identification information, wherein the query packet is used to detect the communication status of the target terminal gateway;

[0028] The acquisition module is also used to obtain the communication status information of the target terminal gateway;

[0029] The sending module is also used to send response information corresponding to the communication status information to the BRAS server.

[0030] In a fifth aspect, an embodiment of the present disclosure provides a terminal detection device, which is applied to a broadband access server BRAS server, and the device includes:

[0031] The acquisition module is used to obtain preset detection parameters when a connection is successfully established with the cloud gateway;

[0032] A sending module, used to send a heartbeat detection packet to the cloud gateway based on preset detection parameters;

[0033] The acquisition module is also used to obtain the response information sent by the cloud gateway.

[0034] In a sixth aspect, an embodiment of the present disclosure provides a terminal detection device, which is applied to a target terminal gateway, and the device includes:

[0035] The acquisition module is used to obtain the query packet sent by the cloud gateway;

[0036] The sending module is used to send communication information to the cloud gateway when the communication status representation of the target terminal gateway is online.

[0037] In the seventh aspect, an embodiment of the present disclosure provides a device for terminal detection, the device including a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement a method for terminal detection as described in any one of the first aspect, the second aspect, or the third aspect.

[0038] In an eighth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which stores computer program instructions. When the computer program instructions are executed by a processor, a terminal detection method as described in any one of the first aspect, the second aspect, or the third aspect is implemented.

[0039] In a ninth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements a terminal detection method as described in any one of the first aspect, the second aspect, or the third aspect.

[0040] The embodiments of the present disclosure provide a method, device, computer storage medium and computer program product for terminal detection. The method obtains preset identification information when a connection is successfully established with a broadband access server BRAS server. Based on the preset identification information, a query packet is sent to a target terminal gateway, and the query packet is used to detect the communication status of the target terminal gateway. The communication status information of the target terminal gateway is obtained. Response information corresponding to the communication status information is sent to the BRAS server. In the case where a cloud gateway successfully establishes a connection with a BRAS server, the present disclosure sends a query packet to the target terminal gateway to detect the communication status information of the target terminal gateway, and then sends corresponding response information to the BRAS server, so that the BRAS server can detect the communication status of the target terminal gateway when establishing communication with the cloud gateway, and after the cloud gateway successfully establishes a connection with the BRAS server, a query packet is sent to detect the communication status information of the target terminal gateway, thereby reducing the detection time and improving the detection efficiency of the communication status of the target terminal gateway. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following is a brief introduction to the drawings required for use in the embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0042] Figure 1 A terminal device provided by an embodiment of the present disclosure accesses the Internet via a home physical gateway;

[0043] Figure 2 It is a schematic diagram of a terminal device accessing the Internet in a cloud-based home gateway scenario provided by an embodiment of the present disclosure;

[0044] Figure 3 is a flow chart of a terminal detection method provided by an embodiment of the present disclosure;

[0045] Figure 4 is a flowchart of another terminal detection method provided by an embodiment of the present disclosure;

[0046] Figure 5 is a structural schematic diagram of a terminal detection device provided by an embodiment of the present disclosure;

[0047] Figure 6 is a structural schematic diagram of another terminal detection device provided by an embodiment of the present disclosure;

[0048] Figure 7 is a structural schematic diagram of another terminal detection device provided by an embodiment of the present disclosure;

[0049] Figure 8It is a structural diagram of a terminal detection device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0050] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present invention, rather than to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.

[0051] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device 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 device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0052] Before describing the technical solutions provided by the embodiments of the present disclosure, in order to facilitate understanding of the embodiments of the present disclosure, the present disclosure specifically describes the problems existing in the related technologies:

[0053] In a traditional home network, the home physical gateway establishes a PPPoE connection with the PPPoE server on the BRAS server through the PPPoE client on the physical gateway, and periodically sends heartbeat packets to each other to confirm whether the PPPoE connection is maintained. In this way, the BRAS server can determine the connection status of the home physical gateway through the heartbeat detection strategy. If the home physical gateway is found to be offline, the BRAS server will take appropriate measures to handle the offline situation, such as re-establishing the connection or disconnecting offline and sending an alarm message.

[0054] Figure 1 A schematic diagram of a terminal device accessing the Internet through a home physical gateway is shown, wherein the BRAS server is connected to the Internet and to the physical gateway. The physical gateway is also connected to the terminal device. After the physical gateway obtains the network data sent by the BRAS server, the terminal device connected to the physical gateway can obtain the network data from the physical gateway to achieve the Internet access function.

[0055] Correspondingly, the steps of the terminal device accessing the Internet through the home physical gateway may include: the physical gateway initiates PPPoE negotiation to the BRAS server and negotiates the session ID. After the PPPoE negotiation is completed, the Point-to-Point Protocol (PPP) negotiation phase is entered, and the Link Control Protocol (LCP) phase negotiation is completed; the BRAS device initiates authentication to the authentication server such as the AAA server; after the authentication is successful, IPCP negotiation is performed, and the physical gateway obtains the allocated dynamic IP from the BRAS; the PPPoE heartbeat is performed between the physical gateway and the BRAS server to maintain the session.

[0056] At present, as time goes by, the hardware version of the home physical gateway gradually lags behind, resulting in some network functions of the home physical gateway, such as data scheduling, failing to achieve the expected effect, and frequent hardware updates of the home physical gateway will cause additional economic expenses. With the development of cloud technology, the home physical gateway in the traditional home network is replaced by the form of "terminal gateway" + "cloud gateway", that is, the network function of the home physical gateway is moved to the cloud to become a cloud gateway, and the network function of the cloud gateway is updated in the form of software, and the terminal gateway, such as a thin terminal gateway, is used to access the cloud gateway to obtain data. Among them, the terminal gateway includes a thin terminal gateway, which is on the home user side, and the cloud gateway is on the cloud and includes a PPPoE client. However, the PPPoE server of the BRAS server establishes a connection with the PPPoE client in the cloud gateway through the heartbeat detection mechanism, and can only detect whether the cloud gateway is online, but cannot detect whether the terminal gateway is online.

[0057] Figure 2 A schematic diagram of a terminal device accessing the Internet in a cloud home gateway scenario is shown, wherein the BRAS server is connected to the Internet and to the virtual customer premises equipment (VCPE) in the cloud, namely the cloud gateway. The VCPE is connected to the thin terminal gateway, and the thin terminal gateway is connected to the terminal device. After the VCPE obtains the network data sent by the BRAS server, the terminal device connected to the VCPE can obtain the network data from the VCPE, and finally the terminal device obtains the network data of the thin terminal gateway to realize the Internet access function.

[0058] The embodiments of the present disclosure provide a method, apparatus, device, computer storage medium, and computer program product for terminal detection, which can solve the above-mentioned technical problems existing in the related technologies.

[0059] The embodiment of the present disclosure obtains preset identification information when a connection is successfully established with a broadband access server BRAS server. Based on the preset identification information, a query packet is sent to the target terminal gateway, and the query packet is used to detect the communication status of the target terminal gateway. The communication status information of the target terminal gateway is obtained. Response information corresponding to the communication status information is sent to the BRAS server. The present disclosure sends a query packet to the target terminal gateway to detect the communication status information of the target terminal gateway when a cloud gateway successfully establishes a connection with a BRAS server, and then sends corresponding response information to the BRAS server, so that the BRAS server can detect the communication status of the target terminal gateway when communication is established with the cloud gateway, and after the cloud gateway successfully establishes a connection with the BRAS server, a query packet is sent to detect the communication status information of the target terminal gateway, thereby reducing the detection time and improving the detection efficiency of the communication status of the target terminal gateway.

[0060] The following is an introduction to the terminal detection method provided by the embodiment of the present disclosure.

[0061] Figure 3 FIG. 1 is a flow chart showing a method for terminal detection provided by an embodiment of the present disclosure. Figure 3 The method may include the following steps S310-S350.

[0062] S310: When the cloud gateway successfully establishes a connection with the broadband access server BRAS server, it obtains preset identification information.

[0063] The cloud gateway detects the connection status with the BRAS server through an internal detection module. When detecting that the connection with the BRAS server is successfully established, the cloud gateway obtains the preset identification information from the internally stored record information to send information to the terminal gateway corresponding to the preset identification information.

[0064] Each preset identification information corresponds to a terminal gateway, and the preset identification information is allocated when the terminal gateway is connected to the cloud gateway.

[0065] S320: The cloud gateway sends a query packet to the target terminal gateway based on the preset identification information.

[0066] After obtaining the preset identification information, the cloud gateway sends a query packet to the target terminal gateway through the internal communication port to detect the connection status of the target terminal gateway.

[0067] The query packet is used to detect the communication status of the target terminal gateway, and the query packet may include Ping or Traceroute or Netstat or Nslookup or PathPing, etc. The target terminal gateway may include a thin terminal gateway.

[0068] S330: After the target terminal gateway obtains the query packet sent by the cloud gateway when the communication status representation is online, it sends communication information to the cloud gateway.

[0069] After obtaining the query packet sent by the cloud gateway, the target terminal gateway whose communication status represents online sends communication information to the cloud gateway to notify the cloud gateway that its own communication status is online and maintains the communication connection with the cloud gateway.

[0070] The communication information may include a query response packet, and the query response packet may include online status information of the target terminal gateway.

[0071] S340: The cloud gateway obtains the communication status information of the target terminal gateway according to the communication information sent by the target terminal gateway.

[0072] The cloud gateway uses the detection module to detect whether the communication information sent by the target terminal gateway is obtained. If the communication information sent by the target terminal gateway is not obtained within the preset time period, it is determined that the communication status information obtained by the target terminal gateway is offline status information. If the communication information sent by the target terminal gateway is obtained within the preset time period, it is determined that the communication status information obtained by the target terminal gateway is online status information.

[0073] S350: The cloud gateway sends response information corresponding to the communication status information to the BRAS server based on the acquired communication status information of the target terminal gateway.

[0074] The cloud gateway determines whether the communication status information is offline status information or online status information based on the communication information obtained from the target terminal gateway, and sends response information corresponding to the offline status information or online status information to the BRAS server for subsequent corresponding processing of the connection between the cloud gateway and the BRAS server.

[0075] The response information is used to maintain the connection between the cloud gateway and the BRAS server or to disconnect the connection between the cloud gateway and the BRAS server.

[0076] In the embodiment of the present disclosure, when the cloud gateway successfully establishes a connection with the BRAS server, a query packet is sent to the target terminal gateway to detect the communication status information of the target terminal gateway, and then corresponding response information is sent to the BRAS server, so that the BRAS server can detect the communication status of the target terminal gateway when establishing communication with the cloud gateway, and after the cloud gateway successfully establishes a connection with the BRAS server, a query packet is sent to detect the communication status information of the target terminal gateway, thereby reducing the detection time and improving the detection efficiency of the communication status of the target terminal gateway.

[0077] In one embodiment, when the communication status information of the target terminal gateway includes online status information, sending response information corresponding to the communication status information to the BRAS server may include step S361.

[0078] S361: The cloud gateway sends a heartbeat response packet corresponding to the online status information to the BRAS server.

[0079] After confirming that the online status information of the target terminal gateway has been obtained, the cloud gateway sends a heartbeat response packet corresponding to the online status information to the BRAS server through the communication port of the cloud gateway to maintain the PPPoE connection between the cloud gateway and the BRAS server.

[0080] The embodiment of the present disclosure can maintain the PPPoE connection between the cloud gateway and the BRAS server by sending a heartbeat response packet to the BRAS server, thereby avoiding interruption of the PPPoE connection between the cloud gateway and the BRAS server.

[0081] In one embodiment, when the communication status information of the target terminal gateway includes offline status information, sending response information corresponding to the communication status information to the BRAS server may include step S362.

[0082] S362: The cloud gateway sends offline request information corresponding to the offline status information to the BRAS server.

[0083] After confirming that the offline status information of the target terminal gateway has been obtained, the cloud gateway sends offline request information corresponding to the offline status information to the BRAS server through the communication port of the cloud gateway to disconnect the PPPoE connection between the cloud gateway and the BRAS server.

[0084] The offline request information may include terminate-request information.

[0085] The disclosed embodiment can disconnect the PPPoE connection between the cloud gateway and the BRAS server by sending offline request information to the BRAS server, thereby reducing the waste of resources of the cloud gateway and the BRAS server.

[0086] In one embodiment, a flow chart of another terminal detection method is as follows: Figure 4 As shown, the method may include steps S410-S470.

[0087] S410: When a connection with the cloud gateway is successfully established, the BRAS server obtains preset detection parameters.

[0088] The BRAS server detects the connection status with the cloud gateway through the internal detection module. When it detects that the connection with the cloud gateway is successfully established, the BRAS server obtains the preset detection parameters from the internally stored record information, so as to facilitate the subsequent sending of heartbeat detection packets to the cloud gateway according to the preset detection parameters.

[0089] The preset detection parameters may include offline detection parameters.

[0090] S420: The BRAS server sends a heartbeat detection packet to the cloud gateway based on preset detection parameters.

[0091] The BRAS server sends a heartbeat detection packet to the corresponding cloud gateway through the communication port of the BRAS server according to the acquired preset detection parameters to detect the status of the cloud gateway.

[0092] S430: The cloud gateway detects whether a heartbeat detection packet sent by the BRAS server is obtained, and if a heartbeat detection packet sent by the BRAS server is obtained, obtains preset identification information.

[0093] If the detection module inside the cloud gateway detects that a heartbeat detection packet sent by the BRAS server is obtained, it is deemed that subsequent operations can be performed, namely, obtaining preset identification information, so as to facilitate subsequent query of the communication status of the target terminal gateway according to the preset identification information.

[0094] The cloud gateway detects the connection status with the BRAS server through an internal detection module. When detecting that the connection with the BRAS server is successfully established, the cloud gateway obtains the preset identification information from the internally stored record information to send information to the terminal gateway corresponding to the preset identification information.

[0095] S440: The cloud gateway sends a query packet to the target terminal gateway based on the preset identification information.

[0096] After obtaining the preset identification information, the cloud gateway sends a query packet to the target terminal gateway through the internal communication port to detect the connection status of the target terminal gateway.

[0097] S450: After the target terminal gateway obtains the query packet sent by the cloud gateway when the communication status representation is online, the target terminal gateway sends communication information to the cloud gateway.

[0098] After obtaining the query packet sent by the cloud gateway, the target terminal gateway whose communication status represents online sends communication information to the cloud gateway to notify the cloud gateway that its own communication status is online.

[0099] S460: The cloud gateway obtains the communication status information of the target terminal gateway according to the communication information sent by the target terminal gateway.

[0100] The cloud gateway uses the detection module to detect whether the communication information sent by the target terminal gateway is obtained. If the communication information sent by the target terminal gateway is not obtained within the preset time period, it is determined that the communication status information obtained by the target terminal gateway is offline status information. If the communication information sent by the target terminal gateway is obtained within the preset time period, it is determined that the communication status information obtained by the target terminal gateway is online status information.

[0101] S470: The cloud gateway sends response information corresponding to the communication status information to the BRAS server based on the acquired communication status information of the target terminal gateway.

[0102] The cloud gateway determines whether the communication status information is offline status information or online status information based on the communication information obtained from the target terminal gateway, and sends response information corresponding to the offline status information or online status information to the BRAS server for subsequent corresponding processing of the connection status between the cloud gateway and the BRAS server.

[0103] In the case where the cloud gateway successfully establishes a connection with the BRAS server, the disclosed embodiment obtains a heartbeat detection packet sent by the BRAS server. After obtaining the heartbeat detection packet, a query packet is sent to the target terminal gateway to detect the communication status information of the target terminal gateway, and then the corresponding response information is sent to the BRAS server, so that the BRAS server can detect the communication status of the target terminal gateway based on the heartbeat detection mechanism with the cloud gateway, without resetting the independent heartbeat detection mechanism between the cloud gateway and the target terminal gateway to detect the communication status of the target terminal gateway. And after obtaining the heartbeat detection packet, the cloud gateway sends a query packet to detect the communication status information of the target terminal gateway, which reduces the detection time and can improve the detection efficiency of the communication status of the target terminal gateway.

[0104] like Figure 5 As shown, the embodiment of the present disclosure further provides a terminal detection device 500, which is applied to a cloud gateway. The terminal detection device 500 includes:

[0105] The acquisition module 501 is used to acquire preset identification information when a connection is successfully established with a broadband access server BRAS server;

[0106] The sending module 502 is used to send a query packet to the target terminal gateway based on the preset identification information, and the query packet is used to detect the communication status of the target terminal gateway;

[0107] The acquisition module 501 is also used to obtain the communication status information of the target terminal gateway;

[0108] The sending module 502 is further configured to send response information corresponding to the communication status information to the BRAS server.

[0109] In some embodiments, the sending module 502 is specifically configured to:

[0110] Send a heartbeat response packet corresponding to the online status information to the BRAS server.

[0111] In some embodiments, the sending module 502 is specifically configured to:

[0112] Send offline request information corresponding to the offline state information to the BRAS server.

[0113] In some embodiments, the terminal detection apparatus 500 further includes a detection module, which is used to detect whether a heartbeat detection packet sent by the BRAS server is obtained; if the heartbeat detection packet sent by the BRAS server is obtained, confirming that the preset identification information is obtained.

[0114] Figure 5 Each module / unit in the device shown has the function of realizing Figure 3 and Figure 4 The functions of each step executed by the application system in the present invention can achieve the corresponding technical effects. For the sake of brevity, they will not be repeated here.

[0115] like Figure 6 As shown, the embodiment of the present disclosure further provides a terminal detection device 600, which is applied to a broadband access server BRAS server. The terminal detection device 600 includes:

[0116] The acquisition module 601 is used to acquire preset detection parameters when a connection is successfully established with the cloud gateway;

[0117] The sending module 602 is used to send a heartbeat detection packet to the cloud gateway based on preset detection parameters;

[0118] The acquisition module 601 is also used to acquire the response information sent by the cloud gateway.

[0119] In some embodiments, the response information includes a heartbeat reply packet and an offline request information.

[0120] Figure 6 Each module / unit in the device shown has the function of realizing Figure 3 and Figure 4 The functions of each step executed by the application system in the present invention can achieve the corresponding technical effects. For the sake of brevity, they will not be repeated here.

[0121] like Figure 7 As shown, the embodiment of the present disclosure further provides a terminal detection device 700, which is applied to a target terminal gateway. The terminal detection device 700 includes:

[0122] The acquisition module 701 is used to acquire the query packet sent by the cloud gateway;

[0123] The sending module 702 is used to send communication information to the cloud gateway when the communication status of the target terminal gateway is represented as online.

[0124] Figure 7 Each module / unit in the device shown has the function of realizing Figure 3 and Figure 4 The functions of each step executed by the application system in the present invention can achieve the corresponding technical effects. For the sake of brevity, they will not be repeated here.

[0125] Figure 8 A schematic diagram of the hardware structure of terminal detection provided by an embodiment of the present disclosure is shown.

[0126] The device for terminal detection may include a processor 801 and a memory 802 storing computer program instructions.

[0127] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0128] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 802 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 802 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 802 is a non-volatile solid-state memory.

[0129] The memory 802 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.

[0130] The processor 801 implements any one of the terminal detection methods in the above embodiments by reading and executing computer program instructions stored in the memory 802 .

[0131] In one example, the terminal detection device may further include a communication interface 803 and a bus 804. Figure 8 As shown, the processor 801, the memory 802, and the communication interface 803 are connected via a bus 804 and communicate with each other.

[0132] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0133] Bus 804 includes hardware, software or both, and couples the components of online data flow billing equipment to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 804 may include one or more buses. Although the embodiment of the present invention describes and illustrates a specific bus, the present invention considers any suitable bus or interconnection. In addition, in conjunction with the method for terminal detection in the above-mentioned embodiment, the present application embodiment also provides a computer storage medium to realize. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the terminal detection methods in the above embodiments is implemented.

[0134] An embodiment of the present application also provides a computer program product, including a computer program, which implements any terminal detection method in the above embodiments when the computer program is executed by a processor.

[0135] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0136] The functional blocks shown in the above structural block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0137] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0138] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0139] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A terminal detection method, characterized in that: Applied to a cloud gateway, the method includes: When a connection is successfully established with a broadband access server BRAS server, obtaining preset identification information; Based on the preset identification information, sending a query packet to the target terminal gateway, wherein the query packet is used to detect the communication status of the target terminal gateway; Obtaining communication status information of the target terminal gateway; Sending response information corresponding to the communication status information to the BRAS server.

2. The method according to claim 1, characterized in that: In a case where the communication status information of the target terminal gateway includes online status information, the sending of response information corresponding to the communication status information to the BRAS server includes: Sending a heartbeat response packet corresponding to the online status information to the BRAS server.

3. The method according to claim 1, characterized in that In a case where the communication status information of the target terminal gateway includes offline status information, the sending response information corresponding to the communication status information to the BRAS server includes: Sending offline request information corresponding to the offline state information to the BRAS server.

4. The method according to claim 1, characterized in that Before obtaining the preset identification information, the method further includes: Detecting whether a heartbeat detection packet sent by the BRAS server is obtained; When the heartbeat detection packet sent by the BRAS server is obtained, it is confirmed that the preset identification information is obtained.

5. A terminal detection method, characterized in that: Applied to a broadband access server BRAS server, the method comprises: When a connection is successfully established with the cloud gateway, the preset detection parameters are obtained; Based on the preset detection parameters, sending a heartbeat detection packet to the cloud gateway; Obtain response information sent by the cloud gateway.

6. The method according to claim 5, characterized in that The response information includes a heartbeat response packet and offline request information.

7. A terminal detection method, characterized in that: Applied to a target terminal gateway, the method comprises: Get the query packet sent by the cloud gateway; When the communication status of the target terminal gateway is characterized as online, communication information is sent to the cloud gateway.

8. A terminal detection device, characterized in that: Applied to a cloud gateway, the device comprises: An acquisition module, wherein the acquisition module is used to acquire preset identification information when a connection is successfully established with a broadband access server BRAS server; A sending module, the sending module is used to send a query packet to a target terminal gateway based on the preset identification information, the query packet is used to detect the communication status of the target terminal gateway; The acquisition module is further used to acquire the communication status information of the target terminal gateway; The sending module is further used to send response information corresponding to the communication status information to the BRAS server.

9. A terminal detection device, characterized in that: Applied to a broadband access server BRAS server, the device comprises: An acquisition module, wherein the acquisition module is used to acquire preset detection parameters when a connection is successfully established with the cloud gateway; A sending module, the sending module is used to send a heartbeat detection packet to the cloud gateway based on the preset detection parameters; The acquisition module is also used to acquire response information sent by the cloud gateway.

10. A terminal detection device, characterized in that: Applied to a target terminal gateway, the device comprises: An acquisition module, the acquisition module is used to acquire a query packet sent by a cloud gateway; A sending module is used to send communication information to the cloud gateway when the communication status representation of the target terminal gateway is online.

11. A terminal detection device, characterized in that: The device comprises: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the terminal detection method according to any one of claims 1 to 7.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the terminal detection method according to any one of claims 1 to 7 is implemented.

13. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the terminal detection method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Terminal detection method and device

    CN111478883A

  • Online state receiving method and device, storage medium and electronic device

    CN112417255A

  • Multi-gateway network switching method, device and system, electronic equipment and storage medium

    CN113709839A

  • Intelligent cloud box access method and device, equipment and storage medium

    CN116668402A

  • Multi-protocol smart park management and control platform based on ubiquitous connection

    CN117544424A