Method and device for detecting running state of lower computer

Through the gateway equipment to detect its working mode and physical interface status, the operation status monitoring problem of the lower machine operation status after 5G network transformation has been solved, and the effective state monitoring of the lower machine is realized, and the efficiency of operation and maintenance management is improved.

CN119364413APending Publication Date: 2025-01-24CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411441631.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

During the enterprise's 5G network information transformation, the original network equipment management architecture changes, resulting in the inability to effectively monitor the operating status of the lower computers, affecting the operation and maintenance management of the enterprise's information technology.

Method used

Determine the operating status of its own working mode and physical interface through the gateway equipment, and to detect the operating status of the lower machine based on these states to determine whether it is online or offline.

Benefits of technology

The effective operating status monitoring of the lower position of the enterprise production area and the management area has improved the level and efficiency of enterprise informatization operation and maintenance management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119364413A_ABST
    Figure CN119364413A_ABST
Patent Text Reader

Abstract

The invention provides a lower computer operation state detection method and device, relates to the technical field of communication, and can effectively monitor the operation states of lower computers in a production area and a management area of an enterprise so as to improve the enterprise informatization operation and maintenance management work level and efficiency. The method comprises the steps of determining a working mode of a gateway and a connection state of a physical interface, and then detecting an operation state of a lower computer based on the working mode and the connection state of the physical interface. Wherein the connection state of the physical interface comprises normal connection and disconnection, and the operation state comprises an online state or an offline state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method and device for detecting the operating status of a lower computer. Background Art

[0002] The fifth generation mobile communication technology (5G), with its significant advantages of high data rate, low latency, large connection and high reliability, is gradually becoming a key force in promoting the digital transformation of various industries. The intranet of most enterprises adopts the traditional multi-layer wired network architecture, which gradually reveals its limitations in the face of the growing demand for data transmission, device connection and real-time requirements. On this basis, most enterprises have begun to carry out 5G network informatization transformation, that is, by superimposing 5G network on the existing enterprise intranet, taking advantage of the high performance characteristics of 5G technology, breaking the traditional network architecture and realizing the flattening of the enterprise intranet.

[0003] However, when enterprises carry out 5G network information transformation, the original network equipment management architecture of the enterprise's production area and management area may change, resulting in the inability to effectively monitor the operating status of the equipment in the enterprise's production area and management area (i.e., the lower computer), thereby affecting the enterprise's information operation and maintenance management. Summary of the invention

[0004] The present application provides a method and device for detecting the operating status of a lower computer, which can monitor the operating status of the lower computer through a gateway, thereby improving the level and efficiency of enterprise information operation and maintenance management.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a method for detecting the operating status of a lower computer. The method can be executed by a gateway. The gateway includes a physical interface. The lower computer is connected to the gateway through the physical interface. The method includes:

[0007] Determine the working mode of the gateway and the connection status of the physical interface. The connection status of the physical interface includes normal connection and disconnected connection.

[0008] Based on the working mode and the connection status of the physical interface, the operation status of the lower computer is detected. The operation status includes online status or offline status.

[0009] Based on the above technical solution, this application provides a method for detecting the operating status of a lower computer. The gateway can detect whether the lower computer connected to it is online or offline according to its own working mode and the connection status of its own physical interface. In this way, the gateway can effectively monitor the operating status of the lower computers in the production area and management area of ​​the enterprise, thereby improving the level and efficiency of the enterprise's information operation and maintenance management work.

[0010] Optionally, the working mode may include a bridging mode, a routing mode, or a tunnel mode.

[0011] Optionally, detecting the operating status of the lower computer based on the working mode and the connection status of the physical interface may include: based on the working mode of the gateway being a bridging mode, querying an address resolution protocol (ARP) table according to the Internet Protocol (IP) address of the lower computer to determine the address query result of the lower computer, and then detecting the operating status of the lower computer based on the address query result of the lower computer and the connection status of the physical interface.

[0012] The address query result is used to indicate whether the media access control (MAC) address of the lower computer exists in the ARP table or whether the MAC address of the lower computer does not exist.

[0013] Optionally, based on the address query result of the lower computer and the physical interface status of the gateway, detecting the operating status of the lower computer can include: when the address query result indicates that the MAC address of the lower computer exists in the ARP table and the connection status of the physical interface of the gateway is normal, determining that the lower computer is online.

[0014] When the address query result indicates that the MAC address of the lower computer does not exist in the ARP table, and / or the connection state of the physical interface is disconnected, it is determined that the lower computer is in an offline state.

[0015] Optionally, based on the working mode and the connection status of the physical interface, detecting the operation status of the lower computer may also include:

[0016] Based on whether the working mode of the gateway is routing mode or tunnel mode, the source address and destination address of the data packet sent by the lower computer are obtained, and then the operating status of the lower computer is detected based on the connection status of the physical interface and the source address and destination address of the data packet sent by the lower computer.

[0017] Optionally, based on the connection status of the physical interface and the source address and the destination address of the data packet sent by the lower computer, detecting the operation status of the lower computer may include:

[0018] When the connection status of the physical interface of the gateway is normal, if the source address and the destination address are within the preset network address range, it is determined that the lower computer is in an online state.

[0019] Optionally, the method may further include: if the preset network address range is not obtained, if the source address and the destination address are not the addresses of the gateway interface, and the source address and the destination address belong to a preset type of address, then determining that the lower computer is in an online state. The preset address type includes a class A address, a class B address, and a class C address. If the source address and the destination address do not belong to the preset type of address, then determining that the lower computer is in an offline state.

[0020] In a second aspect, the present application provides a lower computer operation status detection device, comprising:

[0021] The determination unit is used to determine the working mode of the gateway and the connection status of the physical interface.

[0022] The processing unit is used to detect the operating status of the lower computer based on the working mode and the connection status of the physical interface.

[0023] Optionally, the determination unit is further configured to, based on the working mode of the gateway being a bridging mode, query an ARP table according to the IP address of the lower computer to determine an address query result of the lower computer.

[0024] Optionally, the processing unit is further used to detect the operating status of the lower computer based on the address query result of the lower computer and the connection status of the physical interface.

[0025] Optionally, the determination unit is further configured to determine that the lower computer is in an online state when the address query result indicates that the MAC address of the lower computer exists in the ARP table and the connection state of the physical interface of the gateway is normally connected. When the address query result indicates that the MAC address of the lower computer does not exist in the ARP table and / or the connection state of the physical interface is disconnected, the operation state of the lower computer is determined to be an offline state.

[0026] Optionally, the processing unit is further configured to detect the operating status of the lower computer based on the connection status of the physical interface and the source address and destination address of the data packet sent by the lower computer.

[0027] Optionally, the determination unit is further used to, when the connection status of the physical interface of the gateway is normal, if the source address and the destination address are within a preset network address range, determine that the lower computer is online.

[0028] Optionally, the determination unit is further configured to, when the preset network address range is not obtained, determine that the lower computer is online if the source address and the destination address are not the addresses of the gateway interface and the source address and the destination address belong to a preset type of address. If the source address and the destination address do not belong to the preset type of address, determine that the lower computer is offline.

[0029] In a third aspect, the present application provides a device for detecting the operating status of a lower computer, the device comprising: a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement a method for detecting the operating status of a lower computer as described in any one of the first aspect and any possible implementation of the first aspect.

[0030] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a terminal, the terminal executes a lower computer operating status detection method as described in any one of the first aspect and any possible implementation of the first aspect.

[0031] In a fifth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes a lower computer operating status detection method as described in any one of the first aspect and any possible implementation of the first aspect.

[0032] It can be understood that the beneficial effects that can be achieved in the second to fifth aspects provided above can refer to the beneficial effects in any possible design method of the lower computer operating status detection method as described in any one of the first aspect and any possible implementation method of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 An architectural diagram of a lower computer operation status detection system provided in an embodiment of the present application;

[0034] Figure 2 A schematic diagram of a flow chart of a method for detecting the operating status of a lower computer provided in an embodiment of the present application;

[0035] Figure 3 A flowchart of another method for detecting the operating status of a lower computer provided in an embodiment of the present application;

[0036] Figure 4 A logic diagram of a method for detecting the operating status of a lower computer provided in an embodiment of the present application;

[0037] Figure 5 A flowchart of another method for detecting the operating status of a lower computer provided in an embodiment of the present application;

[0038] Figure 6 An interactive flow chart of a method for detecting the operating status of a lower computer provided in an embodiment of the present application;

[0039] Figure 7 A schematic diagram of the structure of a lower computer operating status detection device provided in an embodiment of the present application;

[0040] Figure 8 A schematic diagram of the structure of another device for detecting the operating status of a lower computer provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] A method and device for detecting the operating status of a lower computer provided in an embodiment of the present application will be described in detail below in conjunction with the accompanying drawings.

[0042] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0043] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0044] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

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

[0046] In the wave of digital transformation, 5G is not just a simple upgrade of mobile communication technology, but also a key driving force for in-depth changes in the industry. With its significant advantages of high data rate, low latency, large number of connections and high reliability, 5G technology is gradually becoming a key force in promoting digital transformation in various industries.

[0047] At present, the application of traditional multi-layer wired network architecture in enterprise internal networks has met the basic communication needs of enterprises to a certain extent, but with the expansion of business scale and the deepening of digital transformation, its limitations are becoming increasingly prominent. First, the multi-layer network architecture increases the complexity and delay of data transmission, making it difficult to meet application scenarios with high real-time requirements. Secondly, the network management hierarchy is complex, the operation and maintenance costs are high, and monitoring blind spots are prone to occur, affecting the effective monitoring of equipment in production and management areas by enterprises. Finally, the traditional network architecture has deficiencies in scalability and flexibility, making it difficult to quickly adapt to changes in the needs of enterprise business development.

[0048] Therefore, most enterprises have begun to carry out 5G network informatization transformation. By setting up 5G networks in existing enterprise intranets and utilizing the high performance characteristics of 5G technology, they can break the traditional multi-layer network architecture and realize the flattening of enterprise intranets. However, in the process of 5G network informatization transformation, enterprises also face many challenges. When enterprises carry out 5G network informatization transformation, the original network equipment management architecture of the enterprise production area and management area may change, resulting in the inability to effectively monitor the operating status of the lower-level computers, thereby affecting the enterprise's informatization operation and maintenance management.

[0049] In order to solve the above technical problems, the embodiment of the present application provides a method for detecting the operating status of a lower computer. The gateway can determine its own working mode and the connection status of its own physical interface. After that, the gateway can detect whether the lower computer connected to it is online or offline according to its own working mode and the connection status of its own physical interface. In this way, the gateway can effectively monitor the operating status of the lower computers in the production area and management area of ​​the enterprise, thereby improving the level and efficiency of the enterprise's information operation and maintenance management work.

[0050] Figure 1 The following is an architecture diagram of a lower computer operation status detection system provided in an embodiment of the present application, such as Figure 1 As shown, the system architecture includes: a gateway 101 and a lower computer 102.

[0051] In the embodiment of the present application, the gateway 101 may be a gateway device that connects different networks and provides network communication and data transmission services for different networks. The gateway may include but is not limited to: a router, a switch, and a virtual private network (VPN) device.

[0052] The lower computer 102 may be a hardware device that directly controls field equipment (such as sensors) and obtains field equipment status data. The lower computer may include but is not limited to: a microcontroller, a programmable logic controller (PLC), an embedded control board, etc.

[0053] The gateway 101 can determine its own working mode and the connection status of the physical interface, and based on the working mode and the connection status of the physical interface, detect the operating status of the lower computer 102, that is, detect whether the lower computer 102 is online or offline. The specific process is described in the following embodiments and will not be repeated here.

[0054] Optionally, the gateway 101 can determine the address query result of the lower computer 102 based on the IP address ARP table of the lower computer 102 based on the working mode being the bridging mode, and then detect the operating status of the lower computer based on the address query result of the lower computer 102 and the connection status of the physical interface.

[0055] Optionally, based on the above, when the address query result indicates that the MAC address of the lower computer 102 exists in the ARP table, and the connection status of the physical interface of the gateway 101 is normal, the gateway 101 can determine that the lower computer 102 is online.

[0056] When the address query result indicates that the MAC address of the lower computer 102 does not exist in the ARP table, and / or the connection status of the physical interface is disconnected, the gateway 101 may determine that the lower computer 102 is in an offline state.

[0057] Optionally, the gateway 101 obtains the source address and destination address of the data packet sent by the lower computer 102 based on the working mode being the routing mode or the tunnel mode, and then detects the operating status of the lower computer 102 based on the connection status of the physical interface and the source address and destination address of the data packet sent by the lower computer 102.

[0058] Optionally, when the connection status of the physical interface of the gateway 101 is normal, if the gateway 101 obtains a preset network address range, and the source address and the destination address are within the preset network address range, the gateway 101 can determine that the lower computer 102 is online.

[0059] In the case that the gateway 101 does not obtain the preset network address range, if the source address and the destination address are not the addresses of the gateway 101 interface, and the source address and the destination address belong to the preset type address, the gateway 101 can determine that the lower computer 102 is online. If the source address and the destination address do not belong to the preset type address, the gateway 101 can determine that the lower computer 102 is offline.

[0060] In some embodiments, the gateway 101 may send a data request to the lower computer 102. Accordingly, after receiving the data request sent by the gateway 101, the lower computer 102 may parse the data request and perform corresponding operations (such as reading data, writing data, etc.) according to the data request. After completing the corresponding operation, the lower computer 102 encapsulates the operation result into a response message and sends the response message to the gateway 101.

[0061] Figure 2 A schematic diagram of a flow chart of a method for detecting the operating status of a lower computer provided in an embodiment of the present application, wherein the method comprises Figure 1 The gateway 101 shown executes, Figure 2 As shown, the method includes:

[0062] S201, determining the working mode of the gateway and the connection status of the physical interface.

[0063] The connection status of the physical interface of the gateway includes normal connection and disconnected connection.

[0064] In the embodiment of the present application, the physical interface of the gateway may include but is not limited to: an Ethernet interface (EI) (also referred to as a network port), a universal serial bus (USB) interface, a fiber optic interface or a serial interface (SI).

[0065] In the embodiment of the present application, the lower computer is connected to the gateway via a physical interface. A normal connection means that the physical interface connection between the gateway and the lower computer has been established, and a disconnected connection means that the physical interface connection between the gateway and the lower computer has been interrupted.

[0066] In some embodiments, the working mode of the gateway includes a bridging mode, a routing mode, or a tunneling mode. The bridging mode means that the lower computer is connected to the gateway through a bridge (which may be called a bridge), the routing mode means that the lower computer is connected to the gateway through a routing method, and the tunneling mode means that the lower computer is connected to the gateway through a tunnel mechanism such as a generic routing encapsulation (GER) or a virtual extensible local area network (VXLAN).

[0067] Specifically, the gateway can determine whether its working mode is a bridge mode, a routing mode, or a tunnel mode. At the same time, the gateway can determine whether the connection state of its physical interface is normal or disconnected.

[0068] S202, detecting the operating status of the lower computer based on the working mode and the connection status of the physical interface.

[0069] The running status includes an online status or an offline status.

[0070] Specifically, after the gateway determines its own working mode and the connection status of the physical interface, it can determine whether the lower computer is in an online state or an offline state based on the working mode and the connection status of the physical interface.

[0071] Based on the above technical solution, the gateway can determine whether its working mode is bridge mode, routing mode or tunnel mode. At the same time, the gateway can also determine whether the connection status of its physical interface is normal or disconnected. After determining its own working mode and the connection status of the physical interface, the gateway can detect whether the lower computer connected to it is online or offline based on its own working mode and the connection status of its own physical interface. In the above way, the gateway can effectively monitor the operating status of the lower computers in the production area and management area of ​​the enterprise, thereby improving the level and efficiency of the enterprise's information operation and maintenance management work.

[0072] In an optional implementation, the working mode of the above-mentioned gateway may be a bridge mode, or a routing mode or a tunnel mode. The following takes (1) the working mode of the gateway as a bridge mode, and (2) the working mode of the gateway as a routing mode or a tunnel mode as an example. Figure 2 The method shown is described in detail.

[0073] (1) The working mode of the gateway is bridge mode

[0074] Figure 3 is a flow chart of a method for detecting the operating status of a lower computer provided in an embodiment of the present application, such as Figure 3 As shown, the method includes:

[0075] S301, determining the working mode of the gateway and the connection status of the physical interface.

[0076] S302, based on the working mode of the gateway being the bridge mode, query the ARP table according to the IP address of the lower computer to determine the address query result of the lower computer.

[0077] The address query result is used to indicate that the MAC address of the lower computer exists in the ARP table, or that the MAC address of the lower computer does not exist.

[0078] In some embodiments, the ARP table stores a mapping relationship between the IP address and the MAC address of the lower computer. The gateway can query the ARP table to check whether there is a MAC address corresponding to the IP address of the lower computer in the ARP table.

[0079] Specifically, when the working mode of the gateway is the bridge mode, the gateway can query the ARP table according to the IP address of the lower computer to obtain the address query result of the lower computer. The gateway can determine whether there is a MAC address corresponding to the IP address of the lower computer in the ARP table according to the address query result.

[0080] S303, detecting the operation status of the lower computer based on the address query result of the lower computer and the connection status of the physical interface.

[0081] Specifically, the gateway can determine whether the lower computer is online or offline based on the address query result of the lower computer, that is, whether the MAC address of the lower computer exists in the ARP table, and the connection status of the physical interface of the gateway itself.

[0082] In some embodiments, when the address query result indicates that the MAC address of the lower computer exists in the ARP table, and the connection status of the physical interface of the gateway is normal, the gateway can determine that the lower computer is online.

[0083] For example, Figure 4 As shown, when the working mode of the gateway is bridge mode, the gateway first obtains the IP address of the lower computer, and when the IP address of the lower computer is obtained, it queries the ARP table according to the IP address of the lower computer. At the same time, the gateway determines the connection status of its own EI network port and USB interface. If the MAC address corresponding to the IP address of the lower computer is obtained, and the connection status of the EI network port or USB interface of the gateway is UP (i.e., the connection is normal), it can be determined that the lower computer is online.

[0084] In other embodiments, when the address query result indicates that the MAC address of the lower computer does not exist in the ARP table, the gateway may determine that the lower computer is in an offline state.

[0085] Optionally, when the connection status of the physical interface of the gateway is disconnected, the gateway may determine that the lower computer is in an offline state.

[0086] Optionally, when the address query result indicates that the MAC address of the lower computer does not exist in the ARP table, and the connection status of the physical interface of the gateway is disconnected, the gateway can determine that the lower computer is offline.

[0087] (2) The working mode of the gateway is routing mode or bridging mode

[0088] Figure 5 is a flow chart of a method for detecting the operating status of a lower computer provided in an embodiment of the present application, such as Figure 5 As shown, the method includes:

[0089] S501, determining the working mode of the gateway and the connection status of the physical interface.

[0090] In some embodiments, the gateway may obtain link tracking information through a link tracking (conntrack) component of the Linux system or a system file (such as nf_conntrack), and determine the connection status of the physical interface through the link tracking information. The link tracking information includes but is not limited to: the source address, destination address, source port, destination port, protocol type and connection status of the data packet sent by the lower computer.

[0091] S502, based on whether the working mode of the gateway is routing mode or tunnel mode, obtain the source address and destination address of the data packet sent by the lower computer.

[0092] In some embodiments, the gateway may obtain link tracking information through a link tracking (conntrack) component of the Linux system or a system file (such as nf_conntrack), and obtain the source address and destination address of the data packet sent by the lower computer through the link tracking information.

[0093] S503, detecting the running state of the lower computer based on the connection state of the physical interface and the source address and the destination address of the data packet sent by the lower computer.

[0094] Specifically, the gateway can determine whether the lower computer is online or offline based on the connection status of the physical interface and the source address and destination address of the data packet sent by the lower computer obtained based on the link tracking information.

[0095] In some embodiments, the gateway may obtain a preset network address range. When the connection status of the physical interface of the gateway is normal and the gateway obtains the preset network address range, if the source address and destination address of the data packet sent by the lower computer are within the preset network address range, the gateway determines that the lower computer is online.

[0096] Optionally, based on the above, if the source port and the destination port of the data packet sent by the lower computer are within a preset network address range, the gateway can determine that the lower computer is online.

[0097] Optionally, based on the above, if the source address, destination address, source port and destination port are within a preset network address range, the gateway can determine that the lower computer is online.

[0098] In other embodiments, when the connection status of the physical interface of the gateway is normal and the gateway has not obtained the preset network address range, if the source address and destination address of the data packet sent by the lower computer are not the address of the gateway interface, and the source address and destination address belong to the preset type address, the gateway determines that the lower computer is online.

[0099] The preset address types include Class A addresses, Class B addresses and Class C addresses.

[0100] Optionally, when the connection status of the physical interface of the gateway is normal and the gateway has not obtained the preset network address range, if the source address and the destination address are not the addresses of the gateway interface and the source address and the destination address do not belong to the preset type address, the gateway determines that the lower computer is offline.

[0101] The following will combine the above-mentioned various implementation methods to introduce the lower computer operating status detection method provided by this application in detail. Figure 6 A schematic diagram of an interactive process of a method for detecting the operating status of a lower computer provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the method includes:

[0102] S601: The gateway determines its own working mode.

[0103] If the working mode of the gateway is the bridging mode, execute S602-S605; if the working mode of the gateway is the routing mode or the tunnel mode, execute S606-S618.

[0104] S602, the gateway queries the ARP table according to the IP address of the lower computer to determine the address query result of the lower computer.

[0105] S603: The gateway determines whether the MAC address of the lower computer exists in the ARP table based on the address query result.

[0106] If yes, execute S604, if no, execute S605.

[0107] S604: When the connection status of the physical interface is normal, the gateway determines that the lower computer is online.

[0108] S605: When the connection status of the physical interface is disconnected, the gateway determines that the lower computer is in an offline state.

[0109] S606: The gateway obtains link tracking information through the conntrack component or the nf_conntrack system file.

[0110] S607: The gateway parses and organizes the link tracking information and stores it in a parsed file.

[0111] S608: The gateway determines whether the end of the parsed file has been read.

[0112] If yes, execute S609, if no, execute S610-S618.

[0113] S609, the gateway completes the detection of the operating status of the lower computer.

[0114] S610: The gateway reads and parses the file line by line and obtains the connection status.

[0115] S611, the gateway determines whether the connection status of the current row is normal.

[0116] If yes, execute S612-S613, if no, execute S608.

[0117] S612, the gateway obtains the source address, destination address, source port and destination port of the data packet sent by the lower computer based on the parsed file.

[0118] S613: The gateway determines whether a preset network address range is obtained.

[0119] If yes, execute S614 and S618, if no, execute S616.

[0120] S614, the gateway determines whether the source address, destination address, source port and destination port of the data packet sent by the lower computer are within the preset network address range.

[0121] If yes, execute S615, if no, execute S608.

[0122] S615, the gateway determines that the lower computer is online.

[0123] S616, the gateway determines whether the source address and the destination address of the data packet sent by the lower computer are the addresses of the gateway interface.

[0124] If yes, execute S608, if no, execute S617.

[0125] S617, the gateway determines whether the source address and the destination address of the data packet sent by the lower computer belong to the preset type address.

[0126] If yes, execute S615 and S618, if no, execute S608.

[0127] S618, the gateway determines whether the source address, destination address, source port and destination port of the data packet sent by the lower computer are stored in the lower computer list.

[0128] If yes, execute S608, if no, execute S619.

[0129] S619, the gateway stores the source address, destination address, source port and destination port of the data packet sent by the lower computer into the lower computer list.

[0130] S620: The gateway sends a data request to the subordinate computer.

[0131] In some embodiments, after detecting the operating status of the lower computer, if the operating status of the lower computer is online, the gateway sends a data request to the lower computer.

[0132] S621, the lower computer parses the data request, performs corresponding operations according to the data request, obtains the operation result, and encapsulates the operation result into a response message.

[0133] S622, the lower computer sends a response message to the gateway.

[0134] Figure 7 The schematic diagram of the structure of the lower machine operation status detection device provided in the embodiment of the present application is as follows: Figure 7 As shown, the device comprises:

[0135] The determination unit 701 is used to determine the working mode of the gateway and the connection status of the physical interface.

[0136] The processing unit 702 is used to detect the operating status of the lower computer based on the working mode and the connection status of the physical interface.

[0137] Optionally, the determination unit 701 is further configured to, based on the working mode of the gateway being a bridging mode, query an ARP table according to the IP address of the lower computer to determine an address query result of the lower computer.

[0138] Optionally, the processing unit 702 is further configured to detect the operating status of the lower computer based on the address query result of the lower computer and the connection status of the physical interface.

[0139] Optionally, the determining unit 701 is further configured to determine that the lower computer is in an online state when the address query result indicates that the MAC address of the lower computer exists in the ARP table and the connection state of the physical interface of the gateway is connected normally. When the address query result indicates that the MAC address of the lower computer does not exist in the ARP table and / or the connection state of the physical interface is disconnected, the operation state of the lower computer is determined to be an offline state.

[0140] Optionally, the processing unit 702 is further configured to detect the operating status of the lower computer based on the connection status of the physical interface and the source address and destination address of the data packet sent by the lower computer.

[0141] Optionally, the determining unit 701 is further configured to, when the connection status of the physical interface of the gateway is normal, determine that the lower computer is online if the source address and the destination address are within a preset network address range.

[0142] Optionally, the determination unit 701 is further configured to, when the preset network address range is not obtained, determine that the lower computer is online if the source address and the destination address are not the addresses of the gateway interface and the source address and the destination address belong to a preset type of address. If the source address and the destination address do not belong to the preset type of address, determine that the lower computer is offline.

[0143] Figure 8 Another possible structural diagram of the lower machine running state detection device involved in the above embodiment is shown. The lower machine running state detection device includes: a processor 801 and a communication interface 802. The processor 801 is used to control and manage the actions of the lower machine running state detection device, and the communication interface 802 is used to support the communication between the lower machine running state detection device and other network entities. The lower machine running state detection device may also include a memory 803 and a bus 804, and the memory 803 is used to store program code and data of the lower machine running state detection device.

[0144] Among them, the memory 803 can be a memory in the lower computer operation status detection device, etc. The memory can include a volatile memory, such as a random access memory; the memory can also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory can also include a combination of the above types of memory.

[0145] The processor 801 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

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

[0147] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0148] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the lower computer operating status detection method in the above method embodiment.

[0149] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the lower computer operation status detection method in the method flow shown in the above method embodiment.

[0150] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0151] An embodiment of the present invention provides a computer program product including instructions. When the instructions are executed on a computer, the computer executes the method for detecting the operating status of a lower computer described in the embodiment of the present application.

[0152] Since the lower computer operation status detection device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present invention will not be repeated here.

[0153] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0154] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0155] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0156] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for detecting the operating status of a lower computer, characterized in that: Applied to a gateway, the gateway includes a physical interface; a lower computer is connected to the gateway via the physical interface; the method includes: Determine the working mode of the gateway and the connection status of the physical interface; the connection status of the physical interface includes normal connection and disconnected connection; Based on the working mode and the connection status of the physical interface, the operation status of the lower computer is detected; the operation status includes an online state or an offline state.

2. The method according to claim 1, characterized in that The working mode includes a bridging mode, a routing mode, or a tunnel mode.

3. The method according to claim 2, characterized in that The detecting the operation status of the lower computer based on the working mode and the connection status of the physical interface includes: Based on the working mode of the gateway being the bridging mode, querying the address resolution protocol ARP table according to the Internet Protocol IP address of the lower computer to determine the address query result of the lower computer; the address query result is used to indicate that the media access control MAC address of the lower computer exists in the ARP table, or the MAC address of the lower computer does not exist; Based on the address query result of the lower computer and the connection status of the physical interface, the operation status of the lower computer is detected.

4. The method according to claim 3, characterized in that The detecting the operation status of the lower computer based on the address query result of the lower computer and the physical interface status of the gateway comprises: When the address query result indicates that the MAC address of the lower computer exists in the ARP table and the connection status of the physical interface of the gateway is normal, determine that the lower computer is online; When the address query result indicates that the MAC address of the lower computer does not exist in the ARP table, and / or the connection state of the physical interface is disconnected, it is determined that the lower computer is in an offline state.

5. The method according to claim 2, characterized in that: The detecting the operation status of the lower computer based on the working mode and the connection status of the physical interface includes: Based on whether the working mode of the gateway is routing mode or tunnel mode, obtaining the source address and destination address of the data packet sent by the lower computer; The operation status of the lower computer is detected based on the connection status of the physical interface and the source address and the destination address of the data packet sent by the lower computer.

6. The method according to claim 5, characterized in that The detecting the operation status of the lower computer based on the connection status of the physical interface and the source address and the destination address of the data packet sent by the lower computer comprises: When the connection status of the physical interface of the gateway is normal, if the source address and the destination address are within a preset network address range, it is determined that the lower computer is in an online state.

7. The method according to claim 6, characterized in that The method further comprises: In the case where the preset network address range is not obtained, if the source address and the destination address are not the addresses of the gateway interface, and the source address and the destination address belong to preset type addresses, it is determined that the lower computer is online; the preset address types include class A addresses, class B addresses and class C addresses; If the source address and the destination address do not belong to the preset type of address, it is determined that the lower computer is in an offline state.

8. A device for detecting the operating status of a lower computer, characterized in that: The device comprises: a determining unit, configured to determine an operating mode of the gateway and a connection state of the physical interface; The processing unit is used to detect the operating status of the lower computer based on the working mode and the connection status of the physical interface.

9. A device for detecting the operation status of a lower computer, characterized in that: include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the lower computer operating status detection method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions. When a computer executes the instructions, the computer executes the method for detecting and determining the operating status of a lower computer according to any one of claims 1 to 7.

11. A computer program product, characterized in that The computer program product includes computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the lower computer operating status detection method according to any one of claims 1 to 7.