A method, device and equipment for automatic configuration of remote device
By judging the changes in the remote device online on the local device and performing logical correlation, bridging mode interoperability and automatic network element management are achieved, and the problems of automatic configuration and network element management in the existing technology are solved, which improves management efficiency and reduces costs.
Patent Information
- Application Number
- CN202211544557.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-02
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2042-12-02
AI Technical Summary
When managing remote devices, existing network management equipment needs to manually configure IP network segments and routing, resulting in a large configuration burden and high risk, and the deletion of old network elements is not timely, which increases management costs.
By judging the changes in the remote device online on the local device, a logical association indication is initiated to the local device, bridging mode interoperability is achieved, and mapping port numbers are configured. At the same time, receive messages associated with remote devices, trigger the network element to add logical management, and automatically configure and manage remote devices.
It realizes automatic online configuration of remote devices, reduces the need for manual configuration, improves management efficiency, and reduces configuration risks and management costs.
Smart Images

Figure CN115987787B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of switches, and in particular to a method, apparatus and device for automatic configuration of a remote device. Background Art
[0002] With the continuous expansion of the communication network in recent years, the number of remote devices connected to the central office equipment is also increasing. How to manage the remote devices through network management equipment and automatically configure the numerous remote devices when they go online has become a problem that communication manufacturers and equipment operators need to solve.
[0003] When the original network management equipment is managed using the Simple Network Management Protocol (SNMP), there will be a situation where the IP network segments of the local device and the remote device are different. It is necessary to add a gateway or static route to the network management device to manage the remote device, which increases the configuration burden of the network management device.
[0004] After the network management device has been processed as above, in order to make the remote device online, it is necessary to manually perform the online operation on the network management device or let the remote device send an alarm data packet to the network management device to go online. If there are a large number of remote devices, the workload is huge. If there are multiple remote devices in different IP segments, it is necessary to continuously add gateways or static routes to the network management device, which causes the routing of the center point to be incremental all the time, which inevitably poses a great risk. Furthermore, each remote device also needs to manually set the network management device address separately, which makes the workload large and makes it difficult for maintenance personnel to maintain it in the later stage.
[0005] When a remote device goes online, a new network element is generated on the network management device, and the old network element corresponding to the old remote device can only be manually deleted on the network management device, which increases the operating cost of the maintenance personnel. If the invalid old network element is not deleted immediately, junk network elements may appear, increasing the management cost of the network management device. Summary of the invention
[0006] The present application provides a method, device and equipment for automatic configuration of remote devices, which are used to solve the problems that the current network management equipment controls the remote devices, which requires manual configuration by personnel to complete the online configuration process, the different IP network segments of the local device and the remote device require the configuration of gateways or static routes, and the network elements are not updated in a timely manner.
[0007] According to a first aspect of an embodiment of the present application, a method for automatic configuration of a remote device is provided, which is applied to a network management device, and the method includes:
[0008] After determining that a remote device connected to the central office device has an online change, initiating an instruction to the central office device to logically associate the remote device, so as to instruct the central office device to communicate with the remote device through a bridging manner and configure the remote device and the mapping port number of the remote device;
[0009] receiving a remote device association message sent by the central office device, wherein the remote device association message includes information related to a network element corresponding to the remote device;
[0010] According to the information related to the network element corresponding to the remote device, the adding logic management of the network element corresponding to the remote device is triggered.
[0011] Determine whether the remote device connected to the central office device has any online changes, including:
[0012] When the central office device has a specific alarm capability, determining that a remote device connected to the central office device has an online change through alarm information reported by the central office device;
[0013] When the central office device does not have a specific alarm capability, by polling the changes of each central office device connected, determining that a remote device connected to the central office device has an online change;
[0014] The specific alarm capability of the central office device refers to the ability of the central office device to issue a corresponding alarm when a new remote device is online, a remote device is replaced online, or a remote device is removed.
[0015] In one or more embodiments, whether the central office device has a specific alarm capability is determined in the following manner:
[0016] Sending a first instruction message to the central office device to instruct the central office device to create a virtual alarm;
[0017] receiving a first response message in which the local end device creates a virtual alarm and feeds back the virtual alarm after receiving the first indication message, wherein the first response message includes the IP address of the local end device and an identifier of an alarm capability corresponding to the alarm capability when the local end device has the alarm capability, wherein the alarm capability refers to the ability of the local end device to send a corresponding alarm message to the network management device after a new connection or failure occurs in a remote device;
[0018] The corresponding relationship between the IP address, port information and alarm capability of the central office device is recorded locally, and a second indication message is sent to the central office device with the alarm capability to instruct it to generate a specific alarm;
[0019] When a second response message fed back by the central office device that generates a virtual alarm and has a specific alarm capability is received within a set time, it is determined that the central office device has the specific alarm capability.
[0020] In one or more embodiments, the second response message carries the IP address of the central office device, the central office bridge IP address, and the central office bridge mask, and after receiving the second response message fed back by the central office device with a specific alarm capability within a set time, the method further includes:
[0021] Update the correspondence between the IP address, port information and alarm capability of the central office device, and record the central office bridge IP address and the central office bridge mask corresponding to the IP address of the central office device;
[0022] A third instruction message is sent to the central office device to instruct the central office device to clear the virtual alarm.
[0023] In one or more embodiments, the remote device association message includes the remote device identifier, device type, the local end bridging IP address and mapping port number corresponding to the remote device, and source and destination port information of the physical link.
[0024] In one or more embodiments, triggering the addition logic management of the network element corresponding to the remote device according to the information related to the network element corresponding to the remote device includes:
[0025] Determine whether there is a network element in the locally stored network element information that has the same physical link source and sink port information and the same device type as the remote device included in the received remote device association message;
[0026] If it does not exist, manage and add the network element corresponding to the remote device through the SNMP address and mapping port number of the local device, and record the network element information of the newly added network locally;
[0027] If it exists, determine whether the identification information of the network element is consistent with the identification of the remote device in the remote device association message. If they are inconsistent, trigger the update of the identification information and update the new local SNMP IP, local bridge IP and mapping port number.
[0028] According to a second aspect of an embodiment of the present application, a method for automatic configuration of a remote device is provided, which is applied to a local device, and includes:
[0029] Receiving an instruction for logically associating the remote device with the central office device after the network management device determines that a remote device connected to the central office device has gone online;
[0030] Obtaining and locally recording the IP address of the remote device, communicating with the remote device in a bridging manner, and configuring the remote device;
[0031] Configuring a mapping port number for the remote device connected in a bridging manner;
[0032] A remote device association message is sent to a network management device to trigger the network management device to perform logic management of adding a network element corresponding to the remote device, wherein the remote device association message includes information related to the network element corresponding to the remote device.
[0033] In one or more embodiments, communicating with the remote device in a bridging manner and configuring the remote device includes:
[0034] The IP address of the remote device, the local end bridge IP address, the bridge address mask and the IP address of the network management device are determined and sent to the remote device so that the remote device can be configured locally.
[0035] In one or more embodiments, obtaining and locally recording the IP address of the remote device includes:
[0036] According to the type of online change of the remote device, the IP address of the remote device is obtained and locally recorded;
[0037] The types of online changes of the remote device include: the remote device goes online for a new connection of the central office device, the remote device goes online to replace an existing connection of the central office device, and the remote device removes an existing connection of the central office device.
[0038] In one or more embodiments, the method further comprises:
[0039] After receiving the first indication message sent by the network management device, a virtual alarm is created, and the virtual alarm is recorded locally;
[0040] Feedback a first response message to the first indication message to the network management device, wherein the first response message includes: the IP address of the central office device and an alarm capability identifier corresponding to the alarm capability;
[0041] receiving a second indication message sent by a network management device, and when determining that a virtual alarm has been generated locally and has a specific alarm capability, sending a second response message to the network management device for the second indication message;
[0042] When a new remote device is online, a remote device is replaced online, or a remote device is removed, alarm information is reported to the network management device.
[0043] In one or more embodiments, the second response message carries the IP address of the central office device, the central office bridge IP address, and the central office bridge mask, and further includes:
[0044] A third instruction message sent by the network management device to instruct the central office device to clear the virtual alarm is received, and the virtual alarm recorded locally is cleared.
[0045] In one or more embodiments, according to the type of online change of the remote device, obtaining and locally recording the IP address of the remote device includes:
[0046] If the remote device online change type is a new connection online, assign an IP address to the remote device;
[0047] If the remote device online change type is replacement of an existing connection, determine whether the remote device is a relocation replacement. If so, directly use the previous IP address of the remote device. If not, allocate an IP address to the remote device.
[0048] If the type of change in the online status of the remote device is removal of an existing connection, the relevant information of the remote device is deleted on the central office device, and the allocated IP address of the remote device is reset to an available IP address.
[0049] In one or more embodiments, allocating an IP address to the remote device includes:
[0050] Select an available IP address from the available IP address range and assign it to the remote device;
[0051] The available IP address is determined in the following manner:
[0052] Determine whether the current local end bridge IP address and the local end bridge mask are within the currently stored available IP address range;
[0053] If not, the currently available IP address range is redetermined based on the local end bridge IP address and the local end bridge mask, and an available IP address is selected from the redetermined currently available IP address range.
[0054] If located, select an available IP address from the currently available IP address range.
[0055] According to a third aspect of an embodiment of the present application, there is provided an apparatus for automatic configuration of a remote device, including:
[0056] A logical association indication module, used for initiating an indication of logical association of the remote device to the central office device after determining that the remote device connected to the central office device has an online change, so as to instruct the central office device to communicate with the remote device through a bridging mode and configure the remote device and the mapping port number of the remote device;
[0057] An association message receiving module, used for receiving a remote device association message sent by the central office device, wherein the remote device association message includes information related to a network element corresponding to the remote device;
[0058] The network element logic management module is used to trigger the addition logic management of the network element corresponding to the remote device according to the information related to the network element corresponding to the remote device.
[0059] According to a fourth aspect of an embodiment of the present application, there is provided an apparatus for automatic configuration of a remote device, including:
[0060] An association indication receiving module, used for receiving an indication of logical association of a remote device sent by a network management device after determining that a remote device connected to a central office device has gone online;
[0061] A bridging configuration module, used to obtain and locally record the IP address of the remote device, communicate with the remote device through bridging, and configure the remote device;
[0062] A port configuration module, used for configuring a mapping port number for the remote device connected in a bridge manner;
[0063] The association message sending module is used to send a remote device association message to the network management device to trigger the network management device to perform logical management of adding network elements corresponding to the remote device. The remote device association message includes information related to the network elements corresponding to the remote device.
[0064] According to a fifth aspect of an embodiment of the present application, there is provided a device for automatic configuration of a remote device, including a memory and a processor;
[0065] Wherein, the memory is used to store computer programs;
[0066] The processor is used to read the program in the memory and execute the method provided by the first aspect or the method provided by the second aspect.
[0067] The method, apparatus and device for automatic configuration of a remote device provided by the present application have the following beneficial effects:
[0068] This application can enable the remote device to automatically complete the online configuration process without manual configuration by personnel when the network management device is initially online, and further achieve intercommunication with the remote device through the local device and NAPT, so that the local device and the remote device can be managed even if the IP network segments are different. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments.
[0070] Figure 1 A flow chart of a method for automatic configuration of a remote device applied to a network management device provided in this application;
[0071] Figure 2 A flow chart of a method for a network management device in this application to determine a method for obtaining a remote device to go online;
[0072] Figure 3 A flow chart of a method for adding logical management of network elements by the network management device of this application;
[0073] Figure 4 A flow chart of a method for automatic configuration of a remote device applied to a central office device provided in this application;
[0074] Figure 5 This is a flow chart of the ability of the local end device to report an alarm to the network management device in an embodiment of the present application;
[0075] Figure 6 A flowchart of a local device acquiring an IP address of a remote device in an embodiment of the present application;
[0076] Figure 7 A flow chart of a method for realizing automatic configuration of a remote device by interaction between a network management device and a local device in an embodiment of the present application;
[0077] Figure 8 A structural diagram of a device for automatic configuration of a remote device provided in an embodiment of the present application;
[0078] Fig. 9 A structural diagram of another apparatus for automatic configuration of a remote device provided in an embodiment of the present application;
[0079] Fig.10 A schematic diagram of the device structure for automatic configuration of a remote device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0080] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0081] In order to solve the above problems, the present application proposes a method for automatic configuration of a remote device, which can be applied to a network communication system composed of a network management device, a local device and a remote device. Before the remote device is managed by the network management device, the local device is connected to the remote device through a downlink port and to the network management device through an uplink port. The network management device records: the logical association relationship with the managed local device and the remote device, as well as the configuration information and service information of each managed local device and remote device.
[0082] The present application provides a method for automatic configuration of a remote device, which is applied to a network management device, such as Figure 1 As shown, the method includes:
[0083] Step 101, after determining that a remote device connected to a central office device has an online change, an instruction to logically associate the remote device is initiated to the central office device, so as to instruct the central office device to communicate with the remote device through a bridging mode and configure the remote device and the mapping port number of the remote device;
[0084] In this step, the online change of the remote device connected to the central office device includes: the remote device is online for a new connection of the central office device, or the remote device is online for replacing an existing connection of the central office device, or the remote device is online for removing an existing connection of the central office device. The online change of the remote device is not equivalent to the connection change of the remote device, and the remote device is not necessarily online when it forms a connection with the central office device.
[0085] The local device communicates with the remote device through a bridging method and configures the remote device, thereby realizing the connection and configuration of the local device. The above-mentioned mapping port number is a NAPT (Network Address Port Translation) port number. Through the configured mapping port number of the remote device, it can support the establishment of connection and management between the network management device and the remote device.
[0086] Step 102, receiving a remote device association message sent by the central office device, wherein the remote device association message includes information related to a network element corresponding to the remote device;
[0087] One remote device corresponds to one network element, and the network management device manages the remote device through the network element.
[0088] Step 103: triggering the addition logic management of the network element corresponding to the remote device according to the information related to the network element corresponding to the remote device.
[0089] This application can enable the remote device to automatically complete the online configuration process without manual configuration by personnel when the network management device is initially online. Further, the network management device can communicate with the remote device through the local device and NAPT, so that the local device and the remote device can be managed even if the IP network segments are different.
[0090] In one or more embodiments, the network management device determines that a remote device connected to the central office device has an online change, and can adopt the following methods:
[0091] 1) When the central office device has a specific alarm capability, determining that a remote device connected to the central office device has an online change through alarm information reported by the central office device;
[0092] The specific alarm capability of the central office device refers to the ability of the central office device to issue a corresponding alarm when a new remote device is online, a remote device is replaced online, or a remote device is removed.
[0093] 2) When the central office device does not have a specific alarm capability, by polling the changes of the connected central office devices, it is determined that the remote device connected to the central office device has an online change.
[0094] The network management device determines whether the central office device has a specific alarm capability, which can be known by ordinary technicians in the field when the central office device is deployed, and a corresponding record is made on the network management device; as a possible implementation method, after the network deployment is completed, such as Figure 2 As shown, the following method is used to determine:
[0095] Step 201, sending a first instruction message to the central office device to instruct the central office device to create a virtual alarm;
[0096] The network management device sends a first indication message to the central office device to instruct the central office device to create a virtual alarm; the first indication message can make use of an existing interactive message (such as a topology detection message) to carry a special field in the reserved field of the existing interactive message to indicate the purpose of the query, or it can be a dedicated private protocol message that only requires the central office device to be able to recognize it; the network management device can send the first indication message to the central office device in a multicast or broadcast manner, or in a unicast manner when the address of the central office device is known. This is not limited here and can be selected by ordinary technicians in this field according to actual scenarios.
[0097] Step 202, receiving a first response message in which the central office device creates a virtual alarm and feeds back the virtual alarm after receiving the first indication message, wherein the first response message includes the IP address of the central office device and an identifier of the corresponding alarm capability when the central office device has the alarm capability, wherein the alarm capability refers to the ability of the central office device to send a corresponding alarm message to the network management device after a new connection or failure occurs in the remote device;
[0098] Step 203, locally recording the correspondence between the IP address, port information and alarm capability of the central office device, and sending a second indication message to the central office device with the alarm capability to instruct it to generate a specific alarm;
[0099] After receiving the first response message, the network management device records the correspondence between the IP address, uplink port information and alarm capability of the local device locally, and sends a second indication message to the local device with alarm capability to instruct it to generate a specific alarm. The second indication message can be a private protocol message, which only needs to be recognizable by the local device.
[0100] In this step, the uplink port information of the local device obtained by the network management device can be carried in the first response message or obtained through independent information sent by the Link Layer Discovery Protocol (LLDP). No specific limitation is made here on the acquisition method, only a direct reference is made.
[0101] Step 204: when a second response message fed back by the central office device that generates a virtual alarm and has a specific alarm capability is received within a set time, it is determined that the central office device has the specific alarm capability.
[0102] As an optional implementation manner, the second response message carries the IP address of the central office device, the central office bridge IP address and the central office bridge mask. After the network management device receives the second response message fed back by the central office device with a specific alarm capability within a set time, it also includes:
[0103] Step 205, updating the correspondence between the IP address, port information and alarm capability of the central office device, and recording the central office bridge IP address and the central office bridge mask corresponding to the IP address of the central office device;
[0104] When the network management device receives the second response message within the set time, it will update the correspondence between the IP address, port information and alarm capability of the local device, record that the local device has specific alarm capability, and record the local bridge IP address and local bridge mask corresponding to the IP address of the local device.
[0105] In this step, the set time is the time calculated based on the network management device sending the second indication message, and is determined according to the designed longest message interaction time. If the network management device does not receive the second response message within the set time, it is considered that the local device does not have specific alarm capabilities.
[0106] In this step, the correspondence between the IP address, port information and alarm capability of the local device, and the correspondence between the IP address of the local device, the local bridge IP address and the local bridge mask can be determined in one or more mappings, and this application does not make specific limitations.
[0107] Step 206: Send a third instruction message to the central office device to instruct the central office device to clear the virtual alarm.
[0108] In this step, the network management device may send the third instruction message to the central office device in a unicast, multicast or broadcast manner, which is not limited here and can be selected by ordinary technicians in this field according to actual scenarios.
[0109] As an optional implementation, the remote device association message includes the remote device identifier, device type, the local end bridge IP address and mapping port number corresponding to the remote device, and source and sink port information of the physical link.
[0110] Therefore, through the above steps 201-205, the network management device has recorded which local devices have specific alarm capabilities, thereby determining the method by which the network management device determines whether a downstream remote device has undergone an online change; and in the subsequent network management process, whether a downstream remote device has undergone an online change is obtained according to the determined method; in this process, the network management device has also obtained and recorded: the IP address of the local device, the local device uplink port information, the local bridge IP address, the local bridge mask and the correspondence between the alarm capability.
[0111] Through the above step 206, after determining that the central office device has a specific alarm capability, the virtual alarm record established thereon is deleted, thereby not causing other impacts on the central office device in normal operation; here is a special note that in the technical solution proposed by this application, it is first determined that the central office device has a general alarm capability, and then it is judged whether it has a specific alarm capability, which can provide better identification for the network management device when managing the central office device and the remote device in the entire network. At the same time, after creating a virtual alarm for the central office device, the alarm reporting method in the prior art can be used to report common alarms, that is: the first response message can be reported completely in the way of the prior art.
[0112] In a possible implementation manner, the remote device association message includes an identifier of the remote device, a device type, a local end bridge IP address and a mapping port number corresponding to the remote device, and source and sink port information of the physical link.
[0113] Here, it should be noted that the source and destination port information of the physical link can also be associated through LLDP (Link Layer Discovery Protocol) using the existing method, which will not be described here. As long as the network management device can obtain the source and destination port information of the physical link where the remote device is located, it will be sufficient.
[0114] According to the information related to the network element corresponding to the remote device, trigger the addition logic management of the network element corresponding to the remote device, such as Figure 3 As shown, including:
[0115] Step 301, determine whether there is a network element in the locally stored network element information that has the same physical link source and sink port information and the same device type as the remote device included in the received remote device association message; if not, execute step 302; if so, execute step 303;
[0116] Step 302, manage and add the network element corresponding to the remote device through the SNMP address and mapping port number of the local device, and record the network element information of the newly added network locally;
[0117] Step 303, find the remote network element existing on the network management according to the source and sink port information of the physical link, and determine whether the identification information of the network element on the network management device is consistent with the identification of the remote device in the remote device association message. If they are consistent, no processing is performed, otherwise, step 304 is executed;
[0118] Step 304: If there is inconsistency, trigger the upload synchronization of the remote network element, update the identification information and update the new local SNMP IP, local bridge IP and mapping port number. Complete device replacement. The identification information described here is: the MAC address of the network element (or the unique serial number of the device).
[0119] Through this step, the network management device side can automatically realize the automatic addition and replacement of new network elements when new remote devices are online, thereby reducing the cutover cost of the integrated network management.
[0120] The present application embodiment provides a method for automatic configuration of a remote device, which is applied to a local device, such as Figure 4 As shown, including:
[0121] Step 401, receiving an instruction for logically associating a remote device connected to a central office device after the network management device determines that the remote device connected to the central office device has an online change, and sending the instruction;
[0122] The online change of the remote device connected to the central office device includes: the remote device is online for a new connection of the central office device, or the remote device is online to replace an existing connection of the central office device, or the remote device is online to remove an existing connection of the central office device.
[0123] The local device can use the existing technology to determine whether a remote device is newly connected online, replaced online, or removed. The specific method is not limited here. Typically, it can be determined by the port status change when the remote device is connected. If the port status changes from online to offline to online, it is considered that the local device has replaced an existing connection online. If the port status is offline to online, it is considered that a new connection is online. If the port status is online-there is no remote device, it is considered that the existing connection of the local device is removed. The local device locally knows the type of online change of the remote device to which the remote device is connected through the downlink port.
[0124] Step 402, obtaining and locally recording the IP address of the remote device, communicating with the remote device in a bridging manner, and configuring the remote device;
[0125] After the local device receives the instruction to make a logical association with the remote device that has changed, it obtains and locally records the IP address of the remote device and the mapping configuration information of the corresponding uplink port and downlink port of the local device based on the locally known type of online change of the current remote device, communicates with the remote device through bridging, and configures the remote device.
[0126] Step 403, configuring a mapping port number for the remote device connected in a bridge manner;
[0127] In this step, the mapping port can be configured in accordance with the NAPT (Network Address Port Translation) mapping method in the prior art, which is not limited here; if there are multiple remote devices, each remote device corresponds to a different mapping port number.
[0128] In this step, if it is determined that the configuration mode of the remote device connection port is not a bridge mode, it is first modified to a bridge mode.
[0129] Step 404: Send a remote device association message to the network management device to trigger the network management device to perform logic management of adding the network element corresponding to the remote device. The remote device association message includes information related to the network element corresponding to the remote device.
[0130] In a possible implementation manner, communicating with the remote device in a bridging manner and configuring the remote device includes:
[0131] The IP address of the remote device, the local end bridge IP address, the bridge address mask and the IP address of the network management device are determined and sent to the remote device, so that the remote device performs local configuration according to the received information.
[0132] In order to support the network management equipment to determine how to judge the online changes of the remote device connected to the local device, such as Figure 5 As shown, the method also includes:
[0133] Step 501, creating a virtual alarm after receiving a first indication message sent by a network management device, and recording the virtual alarm locally;
[0134] In this step, the virtual alarm is an alarm generated after the local configuration information of the simulated central office equipment changes; the method of recording the virtual alarm is the same as the method of recording the normal alarm.
[0135] Step 502: Feedback a first response message to the first indication message to the network management device, wherein the first response message includes: the IP address of the central office device and an alarm capability identifier corresponding to the alarm capability;
[0136] In the embodiment of the present application, the first response message includes the IP address of the local-end device, and when the local-end device determines that it has the alarm capability, the first response message also includes an identifier indicating that it has the alarm capability; further, when the local-end device sends the first response message, it can also include the uplink port information for reporting the information.
[0137] In this step, when the local device has the alarm capability, the first response message is actually equivalent to a report of virtual alarm information; but even if the local device does not have the alarm capability, the IP address of the local device can be reported through the first response message for the logical association of the network management device with the managed local device.
[0138] In this step, the alarm capability refers to: the ability of the local device to send a corresponding alarm message to the network management device after its own configuration changes or failures. The configuration changes include: a new connection to the remote device, but does not involve the local device knowing that the remote device is offline; this is also a common scenario for local devices to generate alarms in the prior art; whether the local device knows that it has the alarm capability can be achieved by conventional technical means known to ordinary technicians in the field, and can also be marked locally for direct identification and reading.
[0139] Step 503, receiving a second indication message sent by the network management device, and when it is determined that a virtual alarm has been generated locally and has a specific alarm capability, sending a second response message to the network management device for the second indication message;
[0140] In this step, if the local end device does not have the specific alarm capability, it will not respond upon receiving the second indication message.
[0141] The local end device determines whether a virtual alarm has been generated locally based on whether the virtual alarm is recorded locally; whether the local end device knows whether it has a specific alarm capability can be achieved by ordinary technicians in the field using known conventional technical means; when the local end device receives the second indication message but the virtual alarm is not recorded locally, no response is made.
[0142] Step 504: When a new remote device is online, a remote device is replaced online, or a remote device is removed, an alarm message is reported to the network management device.
[0143] In one or more embodiments, the second response message carries the IP address of the central office device, the central office bridge IP address, and the central office bridge mask, and the method further includes:
[0144] Step 505: Receive a third instruction message sent by the network management device to instruct the central office device to clear the virtual alarm, and clear the virtual alarm recorded locally.
[0145] In this step, if the local end device that receives the third indication message does not have a virtual alarm record locally, no processing is performed.
[0146] In one or more embodiments, the local device obtains and locally records the IP address of the remote device, including:
[0147] According to the type of online change of the remote device, the IP address of the remote device is obtained and locally recorded;
[0148] The types of online changes of the remote device include: the remote device goes online for a new connection of the central office device, the remote device goes online to replace an existing connection of the central office device, and the remote device removes an existing connection of the central office device.
[0149] In this step, the IP address of the remote device is obtained and recorded according to the local known type of change of the current remote device online, specifically:
[0150] 1) If the current remote device online change type is a new connection online, an IP address is allocated to the remote device;
[0151] The local end device allocates an IP address to the connected remote device as follows:
[0152] An available IP address is selected from the available IP address range and allocated to the remote device; wherein the available IP range is pre-stored by the local device, and the allocated IP addresses within the range are placed into the used IP address pool.
[0153] The local device selects an available IP address from the available IP range as the IP address assigned to the remote device where the online change occurs;
[0154] Furthermore, if Figure 6 As shown, the available IP addresses are determined as follows:
[0155] Step 601, determining whether the current local end bridge IP address and the local end bridge mask are within the currently stored available IP address range;
[0156] That is, determine whether the current local end bridge IP address and the local end bridge mask are between the currently available start IP address and the end IP address. If so, it indicates that the current available IP address range has been cached and does not need to be recalculated; execute step 603; otherwise, it indicates that the current available IP address range needs to be re-determined, and execute step 602;
[0157] Step 602, re-determine the current available IP address range based on the local end bridge IP address and the local end bridge mask, and update the current available IP address range accordingly;
[0158] In this step, how to calculate the currently available IP address range can be any method in the prior art, which will not be described in detail here.
[0159] Step 603: Select an IP address from the currently available IP address range as the standby IP address;
[0160] Step 604, query whether the unused IP address is in the used IP address pool, if yes, return to step 603, otherwise, execute step 605;
[0161] Step 605: The unused IP address is used as an available IP address and added to a used IP address pool.
[0162] 2) If the current remote device online change type is replacement of an existing connection, determine whether the remote device is a relocation replacement. If not, use the same method to assign an IP address to the remote device that is newly connected to the online network to assign an IP address to the remote device. The specific allocation method is as described in 1) above and will not be repeated here. If so, it indicates that the remote device was once a downlink device of this local device, and the previous IP address of the remote device is directly used without reallocation.
[0163] Whether it is a machine relocation or replacement can be determined by external input when the downlink port of the central office device replaces the connection to the remote device, or it can be determined when the remote device reconnects to the line to determine whether the identification information of the remote device is recorded on the central office device, and the identification information can be the MAC address of the remote device or the unique serial code of the device. It should be noted here that in the related art, when the central office device learns that the remote device is online, it will at least learn the connection port of the remote device (i.e., the downlink port information of the central office device) and the MAC address of the remote device, and the central office device will also store the correspondence between the MAC address of the remote device and the assigned IP address.
[0164] 3) If the current remote device online change type is removal of an existing connection, the relevant information of the remote device is deleted on the central office device, and the already allocated IP address of the remote device is reset to an available IP address and placed back in the available IP address range. The subsequent IP address configuration steps and the step of triggering the network management device to perform logical management of adding network elements are no longer executed.
[0165] In summary, through the method of automatic configuration of remote devices proposed in this application, the remote devices can automatically complete the online configuration process when the network management device is initially online without the need for manual configuration by personnel. Further, intercommunication with the remote devices can be achieved through the local equipment and NAPT, so that the local equipment and the remote device can be managed even if the IP network segments are different; it can also realize automatic addition and replacement of the network management device when the remote device is newly online, thereby improving the automatic management efficiency of the network management device for the remote end and the cutover cost.
[0166] like Figure 7 The method flow for the interaction between the network management device and the local end device for automatic configuration of the remote device in this application mainly includes:
[0167] Step 701, after determining that a remote device connected to a central office device has come online, the network management device sends an instruction to the central office device to logically associate the remote device;
[0168] Step 702, after receiving the instruction to logically associate the remote device that has changed, the central office device obtains and locally records the IP address of the remote device and the mapping configuration information of the uplink port and the downlink port of the corresponding central office device according to the local known type of online change of the current remote device;
[0169] Step 703: The local device sends the determined available IP address, the local bridge IP address, the bridge address mask and the IP address of the network management device to the remote device, so that the remote device performs local configuration according to the received information.
[0170] Step 704: The local device configures a mapping port number for the connection interface of the remote device connected in a bridging manner.
[0171] Step 705: The local device sends a remote device association message to the network management device to trigger the network management device to perform its own network element addition logic management.
[0172] Step 706: The network management device performs logical management of adding network elements of itself according to the received remote device association message.
[0173] The implementation methods of each step refer to the description of the above embodiment and will not be described in detail here.
[0174] Based on the same inventive concept, the embodiment of the present application provides a device for automatic configuration of a remote device, such as Figure 8 As shown, including:
[0175] The logical association indication module 801 is used to determine that a remote device connected to the central office device has an online change, and then to initiate an indication of logical association with the remote device to the central office device, so as to instruct the central office device to communicate with the remote device through a bridge mode and configure the remote device and the mapping port number of the remote device;
[0176] The association message receiving module 802 is used to receive a remote device association message sent by the central office device, wherein the remote device association message includes information related to a network element corresponding to the remote device;
[0177] The network element logic management module 803 is used to trigger the addition logic management of the network element corresponding to the remote device according to the information related to the network element corresponding to the remote device.
[0178] The present application also provides a remote device automatic configuration device, such as Fig. 9 As shown, including:
[0179] The association indication receiving module 901 is used to receive an indication of logical association of the remote device sent by the network management device after determining that the remote device connected to the central office device has an online change;
[0180] The bridging configuration module 902 is used to obtain and locally record the IP address of the remote device, communicate with the remote device through bridging, and configure the remote device;
[0181] The port configuration module 903 is used to configure a mapping port number for the remote device connected in a bridge manner;
[0182] The association message sending module 904 is used to send a remote device association message to the network management device to trigger the network management device to perform logical management of adding network elements corresponding to the remote device. The remote device association message includes information related to the network elements corresponding to the remote device.
[0183] Based on the same concept, the embodiment of the present application also provides a device for automatic configuration of a remote device, such as Fig.10As shown, it includes at least one processor 102; and a memory 101 that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned method for automatic configuration of a remote device applied to the network management device side, or execute the above-mentioned method for automatic configuration of a remote device applied to the local device side.
[0184] The memory 101 is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory 101 may be a volatile memory, such as a random-access memory (RAM); or a non-volatile memory, such as a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or a combination of any one or more of the above volatile memories and non-volatile memories.
[0185] The processor 102 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP. It may also be a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0186] Based on the same inventive concept, an embodiment of the present application provides a computer program medium, wherein the computer storage medium stores a computer program, and the computer program is used to enable a computer to execute the above-mentioned method for automatic configuration of a remote device applied to the network management device side, or to execute the above-mentioned method for automatic configuration of a remote device applied to the local device side.
[0187] The above-mentioned storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0188] 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 method for automatic configuration of a remote device, applied to a network management device, characterized in that: The method includes: After determining that a remote device connected to the central office device has an online change, initiating an instruction to the central office device to logically associate the remote device, so as to instruct the central office device to communicate with the remote device through a bridging manner and configure the remote device and a mapping port number of the remote device, wherein the mapping port number is a network address port translation NAPT port number; receiving a remote device association message sent by the central office device, wherein the remote device association message includes information related to a network element corresponding to the remote device; According to the information related to the network element corresponding to the remote device, the adding logic management of the network element corresponding to the remote device is triggered.
2. The method according to claim 1, characterized in that Determine whether the remote device connected to the central office device has any online changes, including: When the central office device has a specific alarm capability, determining that a remote device connected to the central office device has an online change through alarm information reported by the central office device; When the central office device does not have a specific alarm capability, by polling the changes of each central office device connected, determining that a remote device connected to the central office device has an online change; The specific alarm capability of the central office device refers to the ability of the central office device to issue a corresponding alarm when a new remote device is online, a remote device is replaced online, or a remote device is removed.
3. The method according to claim 2, characterized in that Use the following methods to determine whether the central office equipment has a specific alarm capability: Sending a first instruction message to the central office device to instruct the central office device to create a virtual alarm; receiving a first response message in which the local end device creates a virtual alarm and feeds back the virtual alarm after receiving the first indication message, wherein the first response message includes the IP address of the local end device and an identifier of an alarm capability corresponding to the alarm capability when the local end device has the alarm capability, wherein the alarm capability refers to the ability of the local end device to send a corresponding alarm message to the network management device after a new connection or failure occurs in a remote device; The corresponding relationship between the IP address, port information and alarm capability of the central office device is recorded locally, and a second indication message is sent to the central office device with the alarm capability to instruct it to generate a specific alarm; When a second response message fed back by the central office device that generates a virtual alarm and has a specific alarm capability is received within a set time, it is determined that the central office device has the specific alarm capability.
4. The method according to claim 3, characterized in that The second response message carries the IP address of the central office device, the central office bridge IP address and the central office bridge mask, and after receiving the second response message fed back by the central office device with a specific alarm capability within a set time, further includes: Update the correspondence between the IP address, port information and alarm capability of the central office device, and record the central office bridge IP address and the central office bridge mask corresponding to the IP address of the central office device; A third instruction message is sent to the central office device to instruct the central office device to clear the virtual alarm.
5. The method according to claim 1, characterized in that The remote device association message includes the remote device identifier, device type, the local end bridge IP address and mapping port number corresponding to the remote device, and source and sink port information of the physical link.
6. The method according to claim 5, characterized in that Triggering, according to the information related to the network element corresponding to the remote device, adding logical management of the network element corresponding to the remote device, includes: Determine whether there is a network element in the locally stored network element information that has the same physical link source and sink port information and the same device type as the remote device included in the received remote device association message; If it does not exist, manage and add the network element corresponding to the remote device through the SNMP address and mapping port number of the local device, and record the network element information of the newly added network locally; If it exists, determine whether the identification information of the network element is consistent with the identification of the remote device in the remote device association message. If they are inconsistent, trigger the update of the identification information and update the new local SNMP IP, local bridge IP and mapping port number.
7. A method for automatic configuration of a remote device, applied to a local device, characterized in that: include: Receiving an instruction for logically associating the remote device with the central office device after the network management device determines that a remote device connected to the central office device has gone online; Obtaining and locally recording the IP address of the remote device, communicating with the remote device through a bridge, and configuring the remote device; Configuring a mapping port number for the remote device connected in a bridging manner, wherein the mapping port number is a Network Address Port Translation (NAPT) port number; A remote device association message is sent to a network management device to trigger the network management device to perform logic management of adding a network element corresponding to the remote device, wherein the remote device association message includes information related to the network element corresponding to the remote device.
8. The method according to claim 7, characterized in that Communicating with the remote device in a bridging manner and configuring the remote device includes: The IP address of the remote device, the local end bridge IP address, the bridge address mask and the IP address of the network management device are determined and sent to the remote device so that the remote device can be configured locally.
9. The method according to claim 7, characterized in that: Obtaining and locally recording the IP address of the remote device includes: According to the type of online change of the remote device, the IP address of the remote device is obtained and recorded locally; The types of online changes of the remote device include: the remote device goes online for a new connection of the central office device, the remote device goes online to replace an existing connection of the central office device, and the remote device removes an existing connection of the central office device.
10. The method according to claim 7, characterized in that Also includes: After receiving the first indication message sent by the network management device, a virtual alarm is created, and the virtual alarm is recorded locally; Feedback a first response message to the first indication message to the network management device, wherein the first response message includes: the IP address of the central office device and an alarm capability identifier corresponding to the alarm capability; receiving a second indication message sent by a network management device, and when determining that a virtual alarm has been generated locally and has a specific alarm capability, sending a second response message to the network management device for the second indication message; When a new remote device is online, a remote device is replaced online, or a remote device is removed, alarm information is reported to the network management device.
11. The method according to claim 10, characterized in that The second response message carries the IP address of the central office device, the central office bridge IP address and the central office bridge mask, and also includes: A third instruction message sent by the network management device to instruct the central office device to clear the virtual alarm is received, and the virtual alarm recorded locally is cleared.
12. The method according to claim 9, characterized in that According to the type of online change of the remote device, the IP address of the remote device is obtained and locally recorded, including: If the remote device online change type is a new connection online, assign an IP address to the remote device; If the remote device online change type is replacement of an existing connection, determine whether the remote device is a relocation replacement. If so, directly use the previous IP address of the remote device. If not, allocate an IP address to the remote device. If the type of change in the online status of the remote device is removal of an existing connection, the relevant information of the remote device is deleted on the central office device, and the allocated IP address of the remote device is reset to an available IP address.
13. The method according to claim 12, characterized in that Allocating an IP address to the remote device includes: Select an available IP address from the available IP address range and assign it to the remote device; The available IP address is determined in the following manner: Determine whether the current local end bridge IP address and the local end bridge mask are within the currently stored available IP address range; If not, redetermine the current available IP address range based on the local end bridge IP address and the local end bridge mask, and select an available IP address from the redetermined current available IP address range; If located, select an available IP address from the currently available IP address range.
14. A remote device automatic configuration device, characterized in that: include: A logical association indication module, used for initiating an indication of logical association of the remote device to the central office device after determining that the remote device connected to the central office device has an online change, so as to instruct the central office device to communicate with the remote device through a bridging mode and configure the remote device and the mapping port number of the remote device, wherein the mapping port number is a network address port translation NAPT port number; An association message receiving module, used for receiving a remote device association message sent by the central office device, wherein the remote device association message includes information related to a network element corresponding to the remote device; The network element logic management module is used to trigger the addition logic management of the network element corresponding to the remote device according to the information related to the network element corresponding to the remote device.
15. A remote device automatic configuration device, characterized in that: include: An association indication receiving module, used for receiving an indication of logical association of a remote device sent by a network management device after determining that a remote device connected to a central office device has gone online; A bridging configuration module, used to obtain and locally record the IP address of the remote device, communicate with the remote device through bridging, and configure the remote device; A port configuration module, used for configuring a mapping port number for the remote device connected in a bridge manner, wherein the mapping port number is a network address port translation NAPT port number; The association message sending module is used to send a remote device association message to the network management device to trigger the network management device to perform logical management of adding network elements corresponding to the remote device. The remote device association message includes information related to the network elements corresponding to the remote device.
16. A device for automatic configuration of a remote device, characterized in that: including memory and processor; Wherein, the memory is used to store computer programs; The processor is used to read the program in the memory and execute the method for automatic configuration of a remote device according to any one of claims 1 to 6 or the method for automatic configuration of a remote device according to any one of claims 7 to 13.
Citation Information
Patent Citations
SNMP network management method and device based on DHCP server
CN106656596A
Remote equipment configuration method, device and system and computer readable storage medium
CN112737846A