Remote management method and equipment for remotely recovering out-of-control equipment
By using the combination of HDLC packaging/depackaging module, reset negotiation module, dog feeding module and command processing module in OTN and SDH networks, remote reset and command control of the detube device are achieved, and management difficulties caused by device software failure are solved. Problems, improving maintenance efficiency and reducing costs.
Patent Information
- Application Number
- CN202411117517.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-11-12
AI Technical Summary
In OTN and SDH networks, when a software failure occurs in communication equipment, the network management server cannot be remotely managed, resulting in maintenance personnel needing to go to the equipment to check and restart the equipment locally, resulting in wasted time and cost, and low service activation and maintenance efficiency.
Using remote management methods and equipment for remote recovery of detube equipment, the remote reset and command control of detube equipment is realized through HDLC packaging/depackaging module, reset negotiation module, dog feeding module and command processing module, and is independent of the CPU. Provides point-to-point status monitoring and command issuance mechanism.
Rapidly restore remote management, reduce maintenance costs, improve service activation and maintenance efficiency, avoid the necessity of local equipment troubleshooting and restarting, and is suitable for OTN and SDH networks.
Smart Images

Figure CN118945036A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network device management, and in particular to a remote management method and device for remotely recovering an out-of-management device. Background Art
[0002] In transmission network applications, OTN (Optical Transport Network) and SDH (Synchronous Digital Hierarchy) network applications are the main ones. According to the needs of service access, communication equipment needs to be deployed in different geographical locations.
[0003] In the in-band management application of OTN and SDH, if the managed communication equipment has a software failure, such as the CPU falling into an infinite loop, memory leakage, network memory pool leakage, etc., the network management server will not be able to perform new service configurations on the remote equipment, as well as alarm viewing, performance management and other operations. The remote equipment can only run according to the current service configuration, that is, the remote equipment is out of management. At this time, maintenance personnel are required to go to the local equipment to check, or even restart the equipment to restore network management, which wastes travel time and costs, and the efficiency of service activation and maintenance is also low. Summary of the invention
[0004] The present invention provides a remote management method and device for remotely recovering a disconnected device, which can quickly and remotely recover the remote management of the disconnected device when the remote device is disconnected, so as to improve service opening and maintenance efficiency and reduce costs.
[0005] In a first aspect, an embodiment of the present application provides a remote management device for remotely recovering a disconnected device, including:
[0006] An HDLC encapsulation / decapsulation module is used to decapsulate a remote management message from a remote communication device, and send the message to a reset negotiation module when it is determined that the message carries reset information, send the message to a dog feeding module when it is determined that the message carries dog feeding information, and send the message to a command processing module when it is determined that the message carries command information, and obtain the reset information from the reset negotiation module, obtain the dog feeding information from the dog feeding module, and obtain the command information from the command processing module, and respectively encapsulate them into remote management messages and send them to the opposite communication device;
[0007] The reset negotiation module is used to generate reset information when determining that the dog feeding information reception of the opposite communication device fails, and to control the local communication device to reset when receiving a remote management message carrying the reset information;
[0008] The dog feeding module is used to receive the dog feeding information sent by the CPU, and parse the remote management message carrying the dog feeding information and send it to the CPU;
[0009] The command processing module is used to receive command information sent by the CPU, and parse the remote management message carrying command information when it is received and send it to the CPU.
[0010] In some possible embodiments, the HDLC encapsulation / decapsulation module is further used for:
[0011] Acquire the service management information from the management information transceiver module of the local communication device and encapsulate it into a service management message and decapsulate the received service management message, wherein the protocol field value of the service management message is different from that of the remote management message;
[0012] The remote management message includes an indication field of dog feeding information / reset information / command information, and a content field of dog feeding information / reset information / command information.
[0013] In some possible embodiments, the reset information includes a reset request, a reset request response, a reset confirmation, and a reset confirmation response, wherein:
[0014] The reset negotiation module is used to generate a reset request when determining that the opposite communication device fails to receive the dog feeding information, and send the reset request according to the read and write data instruction of the HDLC encapsulation / decapsulation module;
[0015] The reset negotiation module is used to generate a reset confirmation when receiving a remote management message carrying a reset request response, send the reset confirmation according to the read and write data instructions of the HDLC encapsulation / decapsulation module, and determine that the reset is successful when receiving a remote management message carrying a reset confirmation response.
[0016] In some possible embodiments, the reset information includes a reset request, a reset request response, a reset confirmation, and a reset confirmation response, wherein:
[0017] The reset negotiation module is used to generate a reset request response when receiving a remote management message carrying a reset request, and send the reset request response according to the read and write data instruction of the HDLC encapsulation / decapsulation module;
[0018] The reset negotiation module is used to generate a reset confirmation response when receiving a remote management message carrying a reset confirmation, send the reset confirmation response according to the read and write data instructions of the HDLC encapsulation / decapsulation module, and control the local communication device to reset.
[0019] In some possible embodiments, the dog feeding information includes CPU usage, memory usage, and network memory pool usage, where:
[0020] The dog feeding module is used to determine that the cache has the dog feeding information received from the CPU, read the dog feeding information and assemble it according to the defined frame format, and send the assembled dog feeding information according to the read and write data instructions of the HDLC encapsulation / decapsulation module; or
[0021] When the dog feeding module receives the remote management message carrying the dog feeding bit information, it parses the dog feeding information according to the defined frame format and sends it to the CPU.
[0022] In some possible embodiments, the command information includes a command string and a command response string, wherein:
[0023] The command processing module is used to determine that there is a command string received from the CPU in the cache, and send the command string according to the read and write data instruction of the HDLC encapsulation / decapsulation module; or
[0024] The command processing module is used to receive a remote management message carrying a command response string, parse the command response string from the remote management message, and send the command response string to the CPU.
[0025] In some possible embodiments, the reset negotiation module is further used to:
[0026] Starting a first timeout timer after sending the reset request;
[0027] When a remote management message carrying a reset confirmation response is received before the first timeout timer times out, the first timeout timer is stopped to determine that the reset is successful, otherwise it is determined that the reset has failed.
[0028] In some possible embodiments, the reset negotiation module is further used to:
[0029] Starting a second timeout timer after sending the reset request response;
[0030] When a remote management message carrying a reset confirmation is received before the second timeout timer times out, the local communication device is controlled to reset, otherwise it is marked as an empty state.
[0031] In some possible embodiments, the HDLC encapsulation / decapsulation module is also connected to the management information transceiver module and the management overhead insertion / extraction module of the local communication device, and the management overhead insertion / extraction module is also connected to the service processing module of the local communication device.
[0032] In some possible embodiments, the HDLC encapsulation / decapsulation module is used to extract messages from the management overhead insertion / extraction module, determine whether the message is a remote management message or a service management message based on the protocol field of the message, and send the encapsulated remote management message or service management message to the management overhead insertion / extraction module.
[0033] In some possible embodiments, the management overhead insertion / extraction module is used to multiplex the remote management message or business management message sent by the HDLC encapsulation / decapsulation module with the business message received from the business processing module for transmission to the line side, and to parse the business message and send it to the business management module when receiving the line side information, and parse the business management message / remote management message and send it to the HDLC encapsulation / decapsulation module.
[0034] In some possible embodiments, after completing the sending of a frame of remote management message, the HDLC encapsulation / decapsulation module first determines whether the reset negotiation module has reset information. If there is no reset information, it then determines whether the dog feeding module has dog feeding information. If there is no dog feeding information, it then determines whether the command processing module has command information.
[0035] In some possible embodiments, the HDLC encapsulation / decapsulation module, the reset negotiation module, the dog feeding module and the command processing module are field programmable gate array (FPGA) circuits.
[0036] In a second aspect, an embodiment of the present application provides a remote management method for remotely recovering a disconnected device, including:
[0037] In the receiving direction, the remote management message from the remote communication device is decapsulated by the HDLC encapsulation / decapsulation module, and when it is determined that the message carries reset information, it is sent to the reset negotiation module; when it is determined that the message carries dog feeding information, it is sent to the dog feeding module; when it is determined that the message carries command information, it is sent to the command processing module;
[0038] When a remote management message carrying reset information is received through the reset negotiation module, the local communication device is controlled to reset;
[0039] When the remote management message carrying the dog feeding information is received through the dog feeding module, it is parsed and sent to the CPU;
[0040] When receiving the remote management message carrying command information through the command processing module, it is parsed and sent to the CPU;
[0041] In the sending direction, the reset negotiation module is used to determine that when the dog feeding information reception of the opposite communication device fails, the reset information is generated;
[0042] Receive the dog feeding information sent by the CPU through the dog feeding module;
[0043] Receive command information sent by the CPU through the command processing module;
[0044] The HDLC encapsulation / decapsulation module obtains reset information from the reset negotiation module, obtains dog feeding information from the dog feeding module, and obtains command information from the command processing module, and encapsulates them into remote management messages and sends them to the opposite communication device.
[0045] The present application provides a device that realizes off-line device management independently of the CPU of the local communication device, mainly including an HDLC encapsulation / decapsulation module, a reset negotiation module, a dog feeding module and a command processing module. The local communication device determines whether it can be restored by command based on the dog feeding information in the remote management message received after the HDLC encapsulation / decapsulation module decapsulates it, and then implements the reset function through the reset negotiation module when it cannot be restored by software methods according to the content of the received remote management message, and implements command control through the command processing module when it can be restored by software methods. This solves the existing problem that when the device is off-line, maintenance personnel need to go to the local device for investigation, or even restart the device to restore network management, which wastes travel time and expenses, and the efficiency of service opening and maintenance is also low.
[0046] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] To further illustrate the technical solution provided by the embodiments of the present application, a detailed description is given below in conjunction with the accompanying drawings and specific implementation methods.
[0048] Figure 1 This is a schematic diagram of a remote management device in an embodiment of the present application;
[0049] Figure 2 This is a schematic diagram of a remote communication device in an embodiment of the present application;
[0050] Figure 3 This is a schematic diagram of a central office communication device in an embodiment of the present application;
[0051] Figure 4 This is a schematic diagram of A\Z device connection in a network in an embodiment of the present application;
[0052] Figure 5 This is a schematic diagram of the HDLC message encapsulation format in an embodiment of the present application;
[0053] Figure 6 A negotiation flow chart of the reset negotiation module in an embodiment of the present application;
[0054] Figure 7This is a task flow chart of the dog feeding and command processing modules in the embodiment of the present application. DETAILED DESCRIPTION
[0055] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0056] In view of the problems in the related art that when a device is out of management, maintenance personnel need to go to the device to check or even restart the device to restore network management, which wastes travel time and costs, and has low service provisioning and maintenance efficiency, the present application proposes a remote management device and method for remotely restoring an out-of-management device.
[0057] The present application establishes a private protocol using HDLC (High Level Data Link Control) in an OTN / SDH network, and provides a device that implements off-management device management independently of the local communication device CPU, and mainly includes an HDLC encapsulation / decapsulation module, a reset negotiation module, a dog feeding module, and a command processing module. The local communication device determines whether it can be restored by command based on the dog feeding information in the remote management message received after the HDLC encapsulation / decapsulation module decapsulates it, and then implements the reset function through the reset negotiation module when it cannot be restored by software methods based on the content of the received remote management message, and implements command control through the command processing module when it can be restored by software methods. In the original network management server mode, the embodiment of the present application additionally establishes a point-to-point status monitoring, command issuance, and reset negotiation mechanism between remote communication devices. After the device is unmanaged, the management personnel are allowed to monitor, issue commands, and reset and restart the unmanaged end of the device point-to-point through (login) the adjacent device of the unmanaged end of the device (the device that cannot be managed on the network management server), that is, the remote control end (the device can be managed on the network management server, and the device is directly connected to the unmanaged end of the device). This solves the existing problem that when the device is unmanaged, maintenance personnel need to go to the local device to check, or even restart the device to restore network management, which wastes travel time and costs, and also has low service activation and maintenance efficiency. The present application can quickly restore remote management and improve service activation and maintenance efficiency. The device is processed at the HDLC encapsulation level, skipping the existing management overhead insertion and extraction modules, so that it can be applied to both OTN networks and SDH networks.
[0058] The following is a detailed description of a remote management device and method for remotely recovering a disconnected device in an embodiment of the present application in conjunction with the accompanying drawings.
[0059] See also Figure 1 , which is a remote management device for remotely recovering a disconnected device in an embodiment of the present application.
[0060] like Figure 1 As shown, the device is composed of an HDLC encapsulation / decapsulation module 101, a reset negotiation module 102, a dog feeding module 103 and a command processing module 104, wherein:
[0061] The HDLC encapsulation / decapsulation module 101 is used to decapsulate the remote management message from the remote communication device, send it to the reset negotiation module when it is determined that the message carries reset information, send it to the dog feeding module when it is determined that the message carries dog feeding information, send it to the command processing module when it is determined that the message carries command information, and obtain the reset information from the reset negotiation module, obtain the dog feeding information from the dog feeding module, and obtain the command information from the command processing module, respectively encapsulate them into remote management messages and send them to the opposite communication device;
[0062] The reset negotiation module 102 is used to generate reset information when it is determined that the dog feeding information reception of the opposite communication device fails, and control the local communication device to reset when a remote management message carrying the reset information is received;
[0063] The dog feeding module 103 is used to receive the dog feeding information sent by the CPU, and parse and send the received remote management message carrying the dog feeding information to the CPU;
[0064] The command processing module 104 is used to receive command information sent by the CPU, and parse the received remote management message carrying command information and send it to the CPU.
[0065] like Figure 2 As shown, the local communication device in the embodiment of the present application further includes a management overhead insertion / extraction module 105, a management information transceiver module 106 and a service processing module 107, wherein:
[0066] The management information transceiver module 106 is connected to the CPU of the local communication device and the HDLC encapsulation / decapsulation module 101. When the management information transceiver module 106 receives service management information from the CPU, it sends it to the HDLC encapsulation / decapsulation module 101. When the management information transceiver module 106 receives service management information from the HDLC encapsulation / decapsulation module 101, it sends it to the CPU.
[0067] The HDLC encapsulation / decapsulation module 101 is also used to obtain business management information from the management information transceiver module 106 of the local communication device, and encapsulate it into a business management message and send it to the management overhead insertion / extraction module 105, and decapsulate the business management message received from the management overhead insertion / extraction module 105, and send the obtained business management information to the management information transceiver module 106. In the embodiment of the present application, the protocol field values of the business management message and the remote management message are different, so that the HDLC encapsulation / decapsulation module 101 can distinguish the type of message received and the protocol field used during encapsulation.
[0068] In the embodiment of the present application, the above-mentioned management overhead insertion\extraction module 105 receives remote management messages or business management messages from the HDLC encapsulation / decapsulation module 101, and also receives business messages from the business processing module, and then multiplexes the remote management messages / business management messages with the business messages to the line side for transmission, and parses the business messages when receiving the line side information and sends them to the business management module, and parses the business management messages / remote management messages and sends them to the HDLC encapsulation / decapsulation module.
[0069] The management overhead insertion / extraction module can support the insertion and extraction of GCC (General Communication Channel) overhead of OTN, and can also realize the insertion and extraction of D1-D12 overhead of SDH.
[0070] In the embodiment of the present application, the remote management device for remotely recovering the disconnected device is connected to the CPU of the local communication device through the control bus to realize the transmission of command information and dog feeding information. The reset negotiation module has a referenced reset pin, which is connected to the onboard reset circuit of the local communication device through the referenced reset pin. The reset circuit controls the local communication device to reset according to the reset signal output by the reset pin, thereby realizing the final reset of the entire board. The reset circuit is the reset circuit of the service card of the local communication device. When the local communication device has only one service card, the multiplexed pin is directly connected to the reset circuit. The specific reset method of the reset circuit can adopt the relevant existing technology.
[0071] like Figure 3As shown, when the local communication device has a main control card and business cards in N slots, the main control card includes a CPU and a reset control module. The main control card CPU implements the remote management function. The main control card CPU is connected to the management information transceiver module of each slot through a bus, and the control and viewing of the remote management device for remotely recovering the off-management device in each slot is realized through the bus. The specific connected bus type is not within the scope of the requirements of this standard. In the embodiment of the present application, the remote management device for remotely recovering the off-management device includes a reset pin corresponding to the slot of each business board. The reset control module on the main control card is connected to the reset pin output of each slot, the reset circuit of each slot, and the reset circuit of the main control card itself. When the reset pin output of any slot becomes a low level, the reset control module on the main control card sets the connection connected to the reset circuit of all slots to a low level to reset all slots. At the same time, the connection connected to the reset circuit of the main control card itself is set to a low level to reset the main control card itself.
[0072] Even in a chain or ring network, when the device is disconnected, the embodiment of the present application will be embodied as a point-to-point application, that is, one end is the remote control end and the other end is the device disconnected end. Figure 4 As shown in the figure, device A is the remote control end, and device Z is the device off-management end. Device A can be a local device, and device Z can be a local device or a remote device. Device A manages device Z through in-band connection.
[0073] In some possible embodiments, the remote management message includes an indication field of dog feeding information / reset information / command information, and a content field of dog feeding information / reset information / command information. The HDLC encapsulation / decapsulation module is used to determine, based on the indication field, that the message carries reset information and is sent to the reset negotiation module, that the message carries dog feeding information and is sent to the dog feeding module, and that the message carries command information and is sent to the command processing module.
[0074] In the embodiment of the present application, the reset information includes a reset request, a reset request response, a reset confirmation, and a reset confirmation response; the dog feeding information includes CPU usage, memory usage, and network memory pool usage; and the command information includes a command string and a command response string.
[0075] The following is the frame encapsulation format of the HDLC encapsulation / decapsulation module for remote management messages and service management messages, such as Figure 5 As shown, including:
[0076] Flag field: occupies one byte, a flag for the start and end of a frame, 0x7E is used as the frame delimiter. If there is no valid information, the Flag flag is sent continuously. At least three Flag flags are required between two frames on the sender; the receiver should support the situation where there are one or more Flag flags between two frames;
[0077] Address field: fixed to 0xFF, if it does not match, the message will be discarded;
[0078] Control field: fixed to 0x03, if it does not match, the packet will be discarded;
[0079] Protocol field: used to distinguish the data message content carried by the information field in the PPP data frame. Commonly used protocol values are as follows:
[0080]
[0081] Payload field: The maximum length is 1500 bytes, including the content of the padding field.
[0082] FCS check field: The calculation range is other fields except the flag field. The function of the check field is mainly to detect the correctness of data frame transmission. For messages with FCS check errors, discard processing is performed to ensure that the erroneous data will not enter the next level processing module, which also ensures that the device will not be reset due to erroneous data.
[0083] The embodiment of the present application uses the protocol field reserved value 0x001e to indicate that the message is a remote management message, which is used to distinguish other protocol types, such as distinguishing between service messages or service management messages. The following types of frame formats are defined in the payload field, as shown in Table 1:
[0084] Table 1
[0085]
[0086]
[0087] As shown in Table 1, in the receiving direction (the direction in which the device disconnecting end reports status information to the point-to-point remote control end), the HDLC encapsulation / decapsulation module parses the HDLC encapsulated data from the overhead insertion / extraction module and determines the value of the protocol field. If it is not 0x001e, the decapsulated service management information is forwarded to the management information transceiver module. If it is 0x001e, the value of the command word is determined. If the command word is 0x1, the decapsulated remote management message is sent to the reset negotiation module; if the command word is 0x02, the decapsulated remote management message is sent to the dog feeding module; if it is 0x3 or 0x4, the decapsulated remote management message is sent to the command processing module.
[0088] In the embodiment of the present application, both the sending direction and the receiving direction are based on the line side port. In the process of point-to-point device line side docking, the line side of device A sends the receiving direction of the line side connected to device Z; the line side of device Z sends the receiving direction of the line side connected to device A. Therefore, both devices A and Z include sending and receiving processing respectively.
[0089] The HDLC encapsulation\decapsulation module extracts data from the overhead, encapsulates and decapsulates the data through HDLC encapsulation, determines the data content, and sends the parsed data to the reset negotiation module, dog feeding module, command processing module, and management information transceiver module respectively. In the sending direction, the HDLC encapsulation\decapsulation module gives priority to sending data from the reset negotiation module, dog feeding module, command processing module, and management information transceiver module in order of priority. In the sending direction, that is, the direction in which the remote control end sends instructions to the point-to-point device disconnection end, the HDLC encapsulation\decapsulation module makes a judgment when the remote management message of the previous frame is sent and the remote management message of the new frame is about to be sent. Specifically, the following mechanism can be used to obtain data:
[0090] First, determine whether the reset negotiation module has reset information to send. If reset information is sent, encapsulate the reset information of the reset negotiation module in HDLC, and send the encapsulated remote management message to the overhead insertion / extraction module;
[0091] If the reset negotiation module does not send reset information, it is determined whether the dog feeding module has sent dog feeding information. If so, the dog feeding information of the dog feeding module is encapsulated by HDLC, and the encapsulated remote management message is sent to the overhead insertion / extraction module;
[0092] If the dog feeding module also does not send any dog feeding information, it is determined whether the command processing module has any command information to send. If so, the command information of the command processing module is HDLC encapsulated and the encapsulated remote management message is sent to the overhead insertion / extraction module.
[0093] In some possible embodiments, if the command module also does not send any command information, it determines whether the management information transceiver module has any business management information to send. If so, the data of the business management information transceiver module is HDLC encapsulated and the encapsulated data is sent to the overhead insertion / extraction module.
[0094] The specific implementation of the reset negotiation module, the dog feeding module and the command processing module are given below.
[0095] The reset negotiation module includes the functions of both the initiator and the reset end. When the reset initiation is enabled, it indicates that this end is the initiator; when the reset request information is received, it indicates that this end is the reset end.
[0096] Enabling reset initiation may be that when the reset negotiation module determines that the receiving of the dog feeding information of the opposite communication device fails, a reset request is generated, that is, reset initiation can be enabled; of course, reset initiation may also be enabled manually.
[0097] When the reset negotiation module is used as the initiator, reset initiation and reset result viewing are enabled. Reset initiation is used to initiate a remote reset; reset result is used to reflect the reset execution status of the other end, which is divided into negotiation, successful execution and failed execution. The specific interfaces provided are shown in Table 2:
[0098] Table 2
[0099] Reset initiated Reset Result
[0100] When the reset negotiation module is used as the reset end, the reset pin outputs a high level normally. When the negotiation is completed and the local end needs to be reset, a low level is output to the external circuit to complete the reset of the local end.
[0101] During the negotiation process, the reset negotiation module receives reset information from the HDLC encapsulation / decapsulation module and sends the reset information to the HDLC encapsulation / decapsulation module. The command word for resetting the negotiation module is 0x01. The details are as follows:
[0102] When the command word is 0x1 and the data value is 0x1, it indicates a reset request sent by the initiator;
[0103] When the command word is 0x1 and the data value is 0x2, it indicates a reset request response sent by the reset end;
[0104] When the command word is 0x1 and the data value is 0x3, it indicates a reset confirmation sent by the initiator.
[0105] When the command word is 0x1 and the data value is 0x4, it indicates a reset confirmation response sent by the reset end.
[0106] The reset negotiation process in the embodiment of the present application is as follows: Figure 6 As shown, the details are as follows:
[0107] When the local end is the reset end, the reset negotiation module is in an empty state. When it is determined that the dog feeding information reception of the opposite communication device fails, a reset request is generated, even if the reset can be initiated, indicating that the local end is the initiating end and wants to initiate the reset of the opposite end, and the reset request is sent according to the read and write data instruction of the HDLC encapsulation / decapsulation module;
[0108] After the reset initiation is enabled, the reset negotiation module is marked as having data, the data content to be sent is the data content defined by the reset request, the reset request is sent according to the read and write data instructions of the HDLC encapsulation / decapsulation module, marked as initiated, and the reset result is in negotiation.
[0109] In some possible embodiments, the reset negotiation module is used to start a first timeout timer after sending the reset request.
[0110] When the reset initiator receives a remote management message carrying a reset request response from the other end in the initiated state, it generates a reset confirmation, sends the reset confirmation according to the read and write data instructions of the HDLC encapsulation / decapsulation module, and marks that the reset request response has been received.
[0111] When the reset initiator receives a remote management message carrying a reset confirmation response from the other end after having received a reset request response, it is marked as empty, the first timeout timer is stopped, the reset result is returned as successful, and the reset initiation is set to prohibited.
[0112] As the reset initiator, the reset negotiation module is used to stop the first timeout timer when a remote management message carrying a reset confirmation response is received before the first timeout timer expires, and determine that the reset is successful; otherwise, it is determined that the reset has failed, that is, in the initiated state or the reset request response state, the first timer times out and is marked as an empty state, the reset result returns failure, and the reset initiation is set to prohibited.
[0113] The reset negotiation module is in an empty state and receives a reset request sent by the other end, indicating that the local end is the reset end. The reset negotiation module is used to generate a reset request response when receiving a remote management message carrying a reset request, send the reset request response according to the read and write data instructions of the HDLC encapsulation / decapsulation module, and mark that the reset request has been received.
[0114] In some possible embodiments, the reset negotiation module is configured to start a second timeout timer after sending the reset request response.
[0115] The reset negotiation module is used to generate a reset confirmation response when receiving a remote management message carrying a reset confirmation from the other end after receiving a reset request state, send the reset confirmation response according to the read and write data instructions of the HDLC encapsulation / decapsulation module, mark it as an empty state, and control the local communication device to reset. Specifically, after marking it as an empty state, the reset pin can output a low level after a set delay time, such as a delay of 1 second, to notify the external circuit to perform a reset action.
[0116] In some possible embodiments, when a remote management message carrying a reset confirmation is received from the opposite end in the reset request state, the second timeout timer is stopped. When a remote management message carrying a reset confirmation is received before the second timeout timer times out in the reset request state, the local communication device is controlled to reset, otherwise it is marked as an empty state.
[0117] In some possible embodiments, the dog feeding module transmits the dog feeding information of the local end to the opposite end, and analyzes and reports the dog feeding information sent by the opposite end.
[0118] The dog feeding module receives data from the HDLC encapsulation / decapsulation module and sends the data to the HDLC encapsulation / decapsulation module. The command word of the dog feeding module is 0x02.
[0119] The interfaces provided by the dog feeding module are shown in Table 3:
[0120] Table 3
[0121] Send Tag CPU usage Memory usage Network memory pool usage Receive Tag CPU usage Memory usage Network memory pool usage
[0122] The send flag is disabled by default. When you need to send dog feeding information, first write information such as CPU utilization, memory utilization, and network memory pool utilization, and then set the send flag to enable.
[0123] When the dog feeding module determines that the sending mark is enabled, the above data is formed into data according to the format of the dog feeding information in Table 1, marked as data to be sent, and the sending mark is restored to disabled. The HDLC encapsulation / decapsulation module reads the data and sends the data to the overhead insertion / extraction module, and finally sends it to the line to reach the other end.
[0124] The default receiving mark of the dog feeding module is 0, indicating that no data has been received from the other end. The dog feeding module receives data from the HDLC encapsulation / decapsulation module, analyzes the data according to the format of the dog feeding information, extracts information such as CPU utilization, memory utilization, and network memory pool utilization, and sets the receiving mark to 1, indicating that the dog feeding information has been received.
[0125] In some possible embodiments, when reading the dog feeding information, the CPU utilization, memory utilization, network memory pool utilization and other information are first read, and after the reading is completed, the receiving mark is set to 0. The dog feeding module continues to update the receiving mark after receiving the dog feeding information.
[0126] In some possible embodiments, the command processing module transmits the command string of the local end to the opposite end, and simultaneously receives and reports the string information sent by the opposite end.
[0127] The command processing module receives command information from the HDLC encapsulation / decapsulation module and sends the command information to the HDLC encapsulation / decapsulation module. The command word of the command processing module is 0x03 or 0x04.
[0128] The interface provided by the command module for a method for solving the problem of remote device disconnection is shown in Table 4:
[0129] Table 4
[0130] Send command tag Send command string Send command response tag Send command response string Receive command flag Receive command string Receive command response tag Receive command response string
[0131] The send command flag is disabled by default. When you need to send a command to the other end, first write the send command string, and then set the send command flag to enable.
[0132] The send command response flag is disabled by default. When you need to send a command response to the other end, first write the send command response string, and then set the send command response flag to enable.
[0133] When the command processing module determines that the send command mark is enabled, it forms the command string into data according to the command information format in Table 1, marks it as data to be sent, and restores the send command mark to disabled. The HDLC encapsulation / decapsulation module reads the data and sends it to the overhead insertion / extraction module, and finally sends it to the line to reach the other end.
[0134] When the command processing module determines that the send command response mark is enabled, the command string is formed into data according to the command response information format in Table 1, marked as data to be sent, and the send command response mark is restored to disabled. The HDLC encapsulation / decapsulation module reads the data and sends the data to the overhead insertion / extraction module, and finally sends it to the line to reach the other end.
[0135] The command processing module receives the command flag by default, which means that no data from the other end has been received. The command processing module receives the command information from the HDLC encapsulation / decapsulation module, and performs data analysis according to the format of the command information. If the command word is a command message (0x03), the command reception flag is set to 1, indicating that the command message has been received; if the command word is a command response message (0x04), the command reception response flag is set to 1, indicating that the command response message has been received;
[0136] In some possible embodiments, when it is determined that the received command mark is 1, the received command string is read, and after reading, the received command mark is set to 0. When it is determined that the received command response mark is 1, the received command response string is read, and after reading, the received response command mark is set to 0.
[0137] Based on the same inventive concept, the embodiment of the present application provides a remote management method for remotely recovering an off-management device, including:
[0138] In the receiving direction, the remote management message from the remote communication device is decapsulated by the HDLC encapsulation / decapsulation module, and when it is determined that the message carries reset information, it is sent to the reset negotiation module; when it is determined that the message carries dog feeding information, it is sent to the dog feeding module; when it is determined that the message carries command information, it is sent to the command processing module;
[0139] When a remote management message carrying reset information is received through the reset negotiation module, the local communication device is controlled to reset;
[0140] When the remote management message carrying the dog feeding information is received through the dog feeding module, it is parsed and sent to the CPU;
[0141] When receiving the remote management message carrying command information through the command processing module, it is parsed and sent to the CPU;
[0142] In the sending direction, the reset negotiation module is used to determine that when the dog feeding information reception of the opposite communication device fails, the reset information is generated;
[0143] Receive the dog feeding information sent by the CPU through the dog feeding module;
[0144] Receive command information sent by the CPU through the command processing module;
[0145] The reset information is obtained from the reset negotiation module, the dog feeding information is obtained from the dog feeding module, and the command information is obtained from the command processing module through the HDLC encapsulation / decapsulation module, and they are respectively encapsulated into remote management messages and sent to the opposite communication device.
[0146] for Figure 4 The A device as the remote control terminal mainly performs the following:
[0147] Step 1, decapsulate the remote management message from the remote communication device through the HDLC encapsulation / decapsulation module, determine that the message carries the dog feeding information and send it to the dog feeding module, and execute step 3. If the dog feeding information from the other end cannot be received, execute step 2.
[0148] Step 2: If the dog feeding information of the other end cannot be received, it means that the other end has crashed. When the reset negotiation module determines that the dog feeding information reception of the communication device on the other end has failed, a reset request is generated. The reset request is obtained from the reset negotiation module through the HDLC encapsulation / decapsulation module, and is encapsulated into a remote management message and sent to the communication device on the other end. The reset negotiation process described in the previous embodiment is specifically performed to complete the reset of the Z device, which will not be described in detail here.
[0149] Step 3: If the dog feeding information of the other end can be received, the CPU occupancy, memory occupancy and network memory pool occupancy information of the other end can be viewed through the dog feeding module and sent to the CPU; the CPU sends the command string to the command processing module, and the command string is obtained from the command processing module through the HDLC encapsulation / decapsulation module, and is encapsulated into remote management messages and sent to the other end, and the command response string is viewed. Specifically, the basic commands and command responses can be analyzed and an attempt can be made to restore the network management.
[0150] Step 4, if the basic command cannot restore the network management, the CPU can send a soft start command to the command processing module, and the HDLC encapsulation / decapsulation module obtains the soft start command from the command processing module, respectively encapsulates it into a remote management message and sends it to the other end, so as to realize the soft start of the Z device (i.e., only start the management board) without affecting the service. The soft start implementation method of the specific device is not limited in the embodiment of the present application.
[0151] The dog feeding module and the command processing module of the embodiment of the present application are respectively completed by separate dog feeding and command processing tasks, such as Figure 7 As shown, the main process is as follows:
[0152] This task is executed cyclically, first delaying the dog feeding cycle;
[0153] Obtain information such as the CPU usage of the local device and write it into the dog feeding module to feed the dog;
[0154] Read the command receiving flag and determine whether the command processing module has received the command string from the other end;
[0155] If a command string is received from the other end, the CPU executes the corresponding command string and writes the command response string into the command processing module;
[0156] Read the command response receiving flag to determine whether the command response string from the other end is received;
[0157] If a command response character string is received from the other end, the command response character string received by the command processing module is read and displayed.
[0158] The remote management method for remote recovery of an off-management device provided in an embodiment of the present application initiates a reset of the opposite end by initiating an enable reset of the reset negotiation module, and reads the reset result of the reset negotiation module to understand the current reset status; checks the dog feeding information of the opposite end, and determines whether new dog feeding data is received according to the receiving mark of the dog feeding module; if the dog feeding data is received, reads the CPU utilization, memory utilization and network memory pool utilization for viewing; sends a command to the opposite end through the command sending function of the command processing module; completes user command recognition, and writes the command string into the command processing module according to the requirements of the command processing module; the command is expressed in the form of a string, which can be to view all processes, suspend processes, resume processes, enable interrupts, disable interrupts, read memory, modify memory, soft start, etc.
[0159] The remote management method and device for remotely recovering disconnected devices provided in the embodiments of the present application can recover the remote management of the device without changing any network connection or topological connection. Remote management can be recovered without maintenance personnel having to trek to the device site to restart the device, thereby improving the rapid recovery capability and maintenance efficiency in disconnected situations. The remote management method for remotely recovering disconnected devices is independent of the remote management function, thereby improving functional reliability; the method can view the operating status of the disconnected device on the non-disconnected opposite-end device by feeding the dog, and provide guidance for the next step of operation; the method also provides some simple maintenance commands for simple analysis and rapid processing of disconnected problems. The remote management device for remotely recovering disconnected devices adopts a hardware reset design to improve the reliability of the reset function. The use of HDLC to encapsulate and decapsulate data is an optimization and upgrade of the prior art. Compared with directly implementing related functions through OTN or SDH overhead, the implementation cost is lower, the complexity is lower, the stability is better, and the versatility is better.
[0160] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0161] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A remote management device for remotely recovering a disconnected device, characterized in that: Methods include: An HDLC encapsulation / decapsulation module is used to decapsulate a remote management message from a remote communication device, and send the message to a reset negotiation module when it is determined that the message carries reset information, send the message to a dog feeding module when it is determined that the message carries dog feeding information, and send the message to a command processing module when it is determined that the message carries command information, and obtain the reset information from the reset negotiation module, obtain the dog feeding information from the dog feeding module, and obtain the command information from the command processing module, and respectively encapsulate them into remote management messages and send them to the opposite communication device; The reset negotiation module is used to generate reset information when determining that the dog feeding information reception of the opposite communication device fails, and to control the local communication device to reset when receiving a remote management message carrying the reset information; The dog feeding module is used to receive the dog feeding information sent by the CPU, and parse the remote management message carrying the dog feeding information and send it to the CPU; The command processing module is used to receive command information sent by the CPU, and parse the remote management message carrying command information when it is received and send it to the CPU.
2. The device according to claim 1, characterized in that The HDLC encapsulation / decapsulation module is also used to obtain service management information from the management information transceiver module of the local communication device and encapsulate it into a service management message and decapsulate the received service management message, wherein the protocol field value of the service management message is different from that of the remote management message; The remote management message includes an indication field of dog feeding information / reset information / command information, and a content field of dog feeding information / reset information / command information.
3. The device according to claim 1, characterized in that The reset information includes a reset request, a reset request response, a reset confirmation, and a reset confirmation response, wherein: The reset negotiation module is used to generate a reset request when determining that the opposite communication device fails to receive the dog feeding information, and send the reset request according to the read and write data instruction of the HDLC encapsulation / decapsulation module; The reset negotiation module is used to generate a reset confirmation when receiving a remote management message carrying a reset request response, send the reset confirmation according to the read and write data instructions of the HDLC encapsulation / decapsulation module, and determine that the reset is successful when receiving a remote management message carrying a reset confirmation response.
4. The device according to claim 1, characterized in that The reset information includes a reset request, a reset request response, a reset confirmation, and a reset confirmation response, wherein: The reset negotiation module is used to generate a reset request response when receiving a remote management message carrying a reset request, and send the reset request response according to the read and write data instruction of the HDLC encapsulation / decapsulation module; The reset negotiation module is used to generate a reset confirmation response when receiving a remote management message carrying a reset confirmation, send the reset confirmation response according to the read and write data instructions of the HDLC encapsulation / decapsulation module, and control the local communication device to reset.
5. The device according to claim 1, characterized in that The dog feeding information includes CPU usage, memory usage, and network memory pool usage; The dog feeding module is used to determine that the cache has the dog feeding information received from the CPU, read the dog feeding information and assemble it according to the defined frame format, and send the assembled dog feeding information according to the read and write data instructions of the HDLC encapsulation / decapsulation module; or When the dog feeding module receives the remote management message carrying the dog feeding bit information, it parses the dog feeding information according to the defined frame format and sends it to the CPU.
6. The device according to claim 1, characterized in that The command information includes a command string and a command response string, wherein: The command processing module is used to determine that there is a command string received from the CPU in the cache, and send the command string according to the read and write data instruction of the HDLC encapsulation / decapsulation module; or The command processing module is used to receive a remote management message carrying a command response string, parse the command response string from the remote management message, and send the command response string to the CPU.
7. The device according to claim 3, characterized in that The reset negotiation module is used to start a first timeout timer after sending the reset request; The reset negotiation module is used to stop the first timeout timer when receiving a remote management message carrying a reset confirmation response before the first timeout timer times out, and determine that the reset is successful, otherwise determine that the reset fails.
8. The device according to claim 4, characterized in that The reset negotiation module is used to start a second timeout timer after sending a reset request response; When a remote management message carrying a reset confirmation is received before the second timeout timer times out, the local communication device is controlled to reset, otherwise it is marked as an empty state.
9. The device according to claim 2, characterized in that The HDLC encapsulation / decapsulation module is also connected to the management information transceiver module and the management overhead insertion / extraction module of the local communication device, and the management overhead insertion / extraction module is also connected to the service processing module of the local communication device; The HDLC encapsulation / decapsulation module is used to extract a message from the management overhead insertion / extraction module, determine whether the message is a remote management message or a service management message according to the protocol field of the message, and send the encapsulated remote management message or service management message to the management overhead insertion / extraction module; The management overhead insertion / extraction module is used to multiplex the remote management message or business management message sent by the HDLC encapsulation / decapsulation module with the business message received from the business processing module for transmission to the line side, and to parse the business message when receiving the line side information and send it to the business management module, and parse the business management message / remote management message and send it to the HDLC encapsulation / decapsulation module.
10. The device according to claim 1, characterized in that After completing the sending of a frame of remote management message, the HDLC encapsulation / decapsulation module first determines whether the reset negotiation module has reset information. If there is no reset information, it then determines whether the dog feeding module has dog feeding information. If there is no dog feeding information, it then determines whether the command processing module has command information.
11. The device according to claim 1, characterized in that The HDLC encapsulation / decapsulation module, reset negotiation module, dog feeding module and command processing module are field programmable gate array FPGA circuits.
12. A remote management method for remote recovery of disconnected equipment, characterized in that: include: In the receiving direction, the remote management message from the remote communication device is decapsulated by the HDLC encapsulation / decapsulation module, and when it is determined that the message carries reset information, it is sent to the reset negotiation module; when it is determined that the message carries dog feeding information, it is sent to the dog feeding module; when it is determined that the message carries command information, it is sent to the command processing module; When a remote management message carrying reset information is received through the reset negotiation module, the local communication device is controlled to reset; When the remote management message carrying the dog feeding information is received through the dog feeding module, it is parsed and sent to the CPU; When receiving the remote management message carrying command information through the command processing module, it is parsed and sent to the CPU; In the sending direction, the reset negotiation module is used to determine that when the dog feeding information reception of the opposite communication device fails, the reset information is generated; Receive the dog feeding information sent by the CPU through the dog feeding module; Receive command information sent by the CPU through the command processing module; The reset information is obtained from the reset negotiation module, the dog feeding information is obtained from the dog feeding module, and the command information is obtained from the command processing module through the HDLC encapsulation / decapsulation module, and they are respectively encapsulated into remote management messages and sent to the opposite communication device.
