Disclosure of Invention
The method not only expands the slot number of the local entity network element, but also further expands by using the port number of the local entity network element, so that the local entity network element can manage a large number of remote devices by using the limited slot number and the port number, and the requirement of rapid increase of various customer services is met.
The invention provides a management method of remote equipment, which comprises the following steps:
after the far-end equipment is powered on, the local-end equipment creates a far-end object description which is mapped one by one for the connected far-end equipment, wherein the far-end object description comprises a virtual equipment identifier, and the virtual equipment identifier is obtained by calculation according to the slot position number and the port number of the local-end equipment and a preset calculation rule;
the network manager performs topology discovery and configuration issuing operation based on the remote object description;
the calculation rule is as follows:
virtual frame 255- (slot no-1),
virtual slot ((office physical port-1) + (office virtual port-1)) + 2+ (level-1),
slot _ no is a slot number of the local-side device, a local-side physical port is a physical port number of the local-side device, a local-side virtual port is a virtual port number of the local-side device, a level indicates that the remote device is an i-th-level remote device of the local-side device, and i is 1 or 2;
the range of slot _ no is 1-128, the range of local side physical ports is 1-32, and the range of local side virtual ports is 1-95.
On the basis of the technical scheme, the format of the remote object description is network block number + network element number + the virtual equipment identifier; or the virtual device identifier is the network block number, the network element number, the frame, the slot and the virtual device identifier; or (block number + cell number + frame + slot): (remote network block + remote network element + said virtual device identity);
the frame is a subframe number of the local side equipment, the slot is a slot number of the local side equipment, and the remote network block and the remote network element are set values;
the format of the virtual equipment identifier is a virtual frame: and the virtual slot is obtained by calculating the slot number of the local side equipment according to the calculation rule, and the virtual slot is obtained by calculating the port number of the local side equipment, wherein the port number of the local side equipment comprises a physical port number and a virtual port number.
On the basis of the technical scheme, when the far-end equipment is hung under a local-end physical interface, the local-end virtual port is 1; when the remote device is hung under the office virtual interface, the office physical port is 33.
On the basis of the technical scheme, the method further comprises the following steps:
the local side equipment organizes the equipment information and the combined keywords reported by the remote side equipment after being electrified and the remote side object description into local side network element state data;
the device information comprises a serial number SN and a media access control MAC address, and the merging keyword is the serial number SN or the MAC address.
On the basis of the above technical solution, the format of the office network element status data is serial number + the device information + the remote object description + the office interface + the merge key, where the office interface is divided into an office physical interface and an office virtual interface.
On the basis of the above technical solution, the office device includes a master control disk and at least one proxy disk connected to the master control disk, the proxy disk is connected to the remote device, and the network manager performs topology discovery operation including the following steps:
after receiving a state query command issued by a network manager, the master control disk organizes the equipment information, the merged keywords, the remote object description and the local side interface reported by all the agent disks into local side network element state data and reports the local side network element state data to the network manager;
and the network manager sorts and merges all the local side network element state data into final equipment state data according to the merging keywords, and then automatically draws topology and performs fiber connection operation.
On the basis of the technical scheme, the configuration issuing operation of the network manager comprises the following steps:
the master control disk analyzes the network element configuration sent by the network manager into configuration data and sends the configuration data to the agent disk;
the proxy disk analyzes and arranges the configuration data to generate a data format which can be identified by the remote equipment and sends the data format to the remote equipment through a signaling channel.
The invention also provides a management system of the remote device, the remote device is connected with the local device, the system comprises a creation module arranged on the local device and a device management module arranged on the network management;
the creating module is used for creating a remote object description for the remote device after the remote device is powered on, wherein the remote object description is used for mapping the remote device one by one, the remote object description comprises a virtual device identifier, and the virtual device identifier is obtained by calculation according to a slot position number and a port number of the local device and a preset calculation rule;
the equipment management module is used for carrying out topology discovery and configuration issuing operation based on the remote object description;
the calculation rule is as follows:
virtual frame 255- (slot no-1),
virtual slot ((office physical port-1) + (office virtual port-1)) + 2+ (level-1),
slot _ no is a slot number of the local-side device, a local-side physical port is a physical port number of the local-side device, a local-side virtual port is a virtual port number of the local-side device, a level indicates that the remote device is an i-th-level remote device of the local-side device, and i is 1 or 2;
the range of slot _ no is 1-128, the range of local side physical ports is 1-32, and the range of local side virtual ports is 1-95.
On the basis of the technical scheme, the local side equipment comprises a main control panel and at least one agent panel connected with the main control panel, and the agent panel is connected with the remote side equipment;
the system also comprises a service processing module arranged on the master control panel;
the creating module is arranged on the proxy disk, and is also used for receiving the equipment information and the merging keywords reported by the remote equipment and reporting the equipment information and the merging keywords to the service processing module;
the business processing module is used for organizing equipment information, the combined keywords, the remote object description and the local interface into local network element state data and reporting the local network element state data to the equipment management module;
the device management module is used for sorting and combining all the received local side network element state data according to the combined keywords, and calculating final device state data.
Compared with the prior art, the invention has the following advantages:
(1) compared with the prior method, the method not only expands the slot number of the local side equipment, but also further expands by using the port number of the local side equipment, so that the local side equipment can manage a large number of remote side equipment by using the limited slot number and the port number, and the requirement of rapid growth of various customer services is met.
(2) When the format of the virtual device identifier is a virtual frame: when the virtual slot is formed, the virtual frame and the virtual slot are both 1 byte, the remote object is described as a network block number + a network element number + the virtual frame + the virtual slot, and is still 4 bytes, and the virtual frame and the virtual slot only use the existing spare bytes. Meanwhile, the network management description object of the network management to the entity network element can still be reserved: the method has the advantages that the method does not need to greatly adjust the currently used software framework, ensures compatibility with the network management description object of the existing entity network element, has good compatibility and universality, and ensures that the network management can simply and reliably manage various remote devices.
(3) The merged keywords reported by the remote device indicate that the remote device may have repeated data, so that the network manager can merge according to the type and value of the merged keywords, thereby avoiding the problem of multi-terminal devices in the network manager and ensuring the successful execution of operations such as topology automatic discovery and the like.
Detailed Description
The invention is described in further detail below with reference to the figures and the embodiments.
Referring to fig. 3, a first embodiment of the present invention provides a method for managing a remote device, where the method includes the following steps:
and S110, after the remote equipment is powered on, the local equipment creates a one-to-one mapping remote object description for the connected remote equipment, wherein the remote object description comprises a virtual equipment identifier, and the virtual equipment identifier is obtained by calculation according to the slot position number and the port number of the local equipment and a preset calculation rule.
The format of the remote object description is network block number + network element number + virtual equipment identification; or the network block number, the network element number, the frame, the slot and the virtual equipment identifier; or (block number + cell number + frame + slot): (remote network block + remote network element + virtual device identification). Or other format, without limitation.
The frame (frame _ no) is a subframe number of the local side equipment, the slot (slot _ no) is a slot number of the local side equipment, and the far-end network block and the far-end network element are both set values.
The format of the virtual device identification is virtual frame (vframe _ no): and the virtual slot (vslot _ no) is used for calculating a virtual frame from the slot number of the local side equipment according to the calculation rule, and calculating a virtual slot from the port number of the local side equipment, wherein the port number of the local side equipment comprises a physical port number and a virtual port number.
And S120, the network manager performs topology discovery and configuration issuing operation based on the local side network element state data.
Compared with the prior method, the method not only expands the slot number of the local side equipment, but also further expands by using the port number of the local side equipment, so that the local side equipment can manage a large number of remote side equipment by using the limited slot number and the port number, and the requirement of rapid growth of various customer services is met.
A second embodiment of the present invention provides a method for managing a remote device, where on the basis of the first embodiment of the present invention, the method may be applied to an OTN network as shown in fig. 1, a local device includes a master disk and at least one proxy disk connected to the master disk, and the proxy disk is connected to the remote device. Specifically, the calculation rule is as follows:
virtual frame 255- (slot no-1),
virtual slot ((office physical port-1) + (office virtual port-1)) + 2+ (level-1),
the slot _ no is a slot number of the local-side device, for example, the range of the slot _ no is 1 to 128, the local-side physical port is a physical port number of the local-side device, for example, the range of the local-side physical port is 1 to 32, the local-side virtual port is a virtual port number of the local-side device, the level indicates that the remote device is an ith-level remote device of the local-side device, i is a level, and i is 1 or 2. The number of bytes occupied by the virtual frame and the virtual slot is determined according to the number of remote devices in the OTN, and the virtual frame and the virtual slot are respectively at least one byte.
The local side Virtual port represents a port virtualized on the proxy disk, such as a Virtual Concatenation Group (VCG) port which is very common on SDH, and the range of the local side Virtual port is 1 to 95; when the far-end equipment is hung under the local-end physical interface, the local-end virtual port is 1; when the remote device is hung under the office virtual interface, the office physical port is 33. Level i indicates whether the remote device is a primary remote device connected to the proxy disk or a secondary remote device connected to the primary remote device, and level i is 1 or 2.
When the format of the virtual device identifier is a virtual frame: when the virtual slot is used, the virtual frame and the virtual slot are both 1 byte, the format of the far-end object description is the network block number + the network element number + the virtual frame + the virtual slot, and is still 4 bytes, and the virtual frame and the virtual slot only use the existing spare bytes. Meanwhile, the network management description object of the network management to the entity network element can still be reserved: the network block number, the network element number, the frame and the slot are adopted, so that a currently used software framework does not need to be adjusted greatly, compatibility with a network management description object of the existing entity network element is ensured, compatibility and universality are good, and the network management is simple and reliable in management of various remote devices.
When the format of the remote object description is network block number + network element number + frame + slot + virtual frame: when the virtual slot is used, the number of the network block, the number of the network element, the frame, the slot, the virtual frame and the virtual slot are all 1 byte, and the currently used software framework needs to be correspondingly adjusted.
When the format of the remote object description is (block number + net element number + frame + slot): the existing description mode of the dual objects (the block number, the network element number, the frame and the slot) is still 4 bytes, and the existing description mode of the dual objects (the remote block, the remote network element, the virtual frame and the virtual slot) is also 4 bytes, so that the currently used software framework needs to be correspondingly adjusted.
Referring to fig. 4, a third embodiment of the present invention provides a method for managing a remote device, where the method may be applied to an OTN network shown in fig. 1, a local device includes a master and at least one proxy connected to the master, and the proxy is connected to the remote device.
For the remote device 1 in fig. 2 being a miniaturized OTN device, when the format described by the remote object is the network block number + the network element number + the virtual frame + the virtual slot, the method includes the following steps:
s210, after the remote device is powered on, reporting device information and a merge keyword to the proxy disk, that is, the remote device bootstrap, where the device information includes a device model, a device Serial Number (SN), and a Media Access Control (MAC) address, and the merge keyword is the device Serial Number (SN) or the MAC address.
S220, the proxy disk creates a virtual device identifier (dev _ stat _1) for the connected remote device, where the virtual device identifier is obtained by calculation according to the slot number and the port number of the proxy disk and a preset calculation rule, and the calculation rule specifically refers to the description of the foregoing embodiment.
And S230, the network manager issues a state query command (show remote device) to the master control panel.
And S240, the master control disk analyzes the state query command into a device internal query command and then issues the device internal query command to all the agent disks.
And S250, after the agent disk analyzes the query command in the equipment, the agent disk sends the equipment information, the combined keywords, the virtual equipment identifier and the office interface to the master control disk.
And S260, the master control panel organizes the equipment information, the combined keywords, the remote object description and the local interface into local network element state data and reports the local network element state data to the network manager.
The format of the local side network element state data is serial number + equipment information + remote object description + local side interface + merge keywords, wherein the local side interface is divided into a local side physical interface and a local side virtual interface.
And S270, the network manager sorts and merges the received state data of all local side network elements according to the merging keywords, calculates the final device state data (vcase _ vslot1), then automatically draws topology, and performs fiber connection operation.
Steps S210 and S220 and steps S230 and S240 may be performed sequentially as described above, or may be performed simultaneously.
The merged keywords reported by the remote device indicate that the remote device may have repeated data, so that the network manager can merge according to the type and value of the merged keywords, thereby avoiding the problem of multi-terminal devices in the network manager and ensuring the successful execution of operations such as topology automatic discovery and the like.
Specifically, the following describes that the format described by the remote object is a network block number + a network element number + a virtual frame + a virtual slot, and the method is applied to three remote device dual uplink scenarios in fig. 2, where the remote devices 1 and 2 are both miniaturized OTN devices, and the remote device 3 is a VCG device, as shown in table 1:
table 1: local network element status data of remote device
In table 1, serial numbers 1 and 2 correspond to two uplink interfaces of the remote device 1 in fig. 2, serial numbers 3 and 4 correspond to two uplink interfaces of the remote device 2 in fig. 2 connected to different agent boards, and serial numbers 5 and 6 correspond to two uplink interfaces of the remote device 3 in fig. 2 connected to different office devices. The value of the merge key is the device serial number SN.
For the remote device 1 in fig. 2, the virtual device identifier of the first uplink interface of the remote device 1 corresponding to sequence number 1 is:
(0xff- (9-1)): ((1-1) + (1-1)) × 2+1, where in the calculation rule, the virtual frame is N- (slot _ no-1), i.e., N0 xff 255 and slot _ no 9.
The virtual slot is ((office physical port-1) + (office virtual port-1)) × 2+ (level-1), the office physical port is 1, and the remote device 1 is one level and is hung under the office physical interface, so the office virtual port is 1. The virtual device identifier of the first uplink interface of the remote device 1 corresponding to sequence number 1 is: 247:0.
The virtual device identifier of the second uplink interface corresponding to the remote device 1 with sequence number 2 is:
(0xff- (9-1)): ((1-1) + (1-1)) × 2+1, where in the calculation rule, the virtual frame is N- (slot _ no-1), i.e., N0 xff 255 and slot _ no 9.
The virtual slot is ((office physical port-1) + (office virtual port-1)) × 2+ (level-1), and the office physical port is 2, and since the remote device 1 is one level and is hung under the office physical interface, the office virtual port is 1. The virtual device identifier of the first uplink interface of the remote device 1 corresponding to sequence number 1 is: 247:2.
The two upstream interfaces of the remote device 1 have the same merge key, i.e. the merge key of sequence numbers 1 and 2 are both device sequence numbers SN, and the merge key has a value of 78abef9 f.
In fig. 2, two upstream interfaces of the remote device 2 connected to different proxy disks have different slot _ no and the same merge key. The local side virtual port of the remote device 2 has a value range of 1-95 (for example, the local side virtual port in table 1 is 1). Two uplink interfaces of the remote device 3, which are connected to different office devices, have different network block network element numbers and the same merge key.
A fourth embodiment of the present invention provides a method for managing a remote device, where on the basis of the third embodiment of the present invention, referring to fig. 4, the operation of configuring and issuing by a network manager includes:
and S310, the network manager performs network element configuration by taking the remote equipment as an object according to the equipment state data, and downloads the network element configuration to the master control disk. In particular, the method comprises the following steps of,
vcase_vslot1
ne_config_1
ne_config_2
exit。
and S320, the master control disk analyzes the network element configuration into configuration data and then sends the configuration data to the agent disks.
Specifically, slot _ port _1
cli_config_1
cli_config_2
exit。
And S330, the agent disk analyzes and arranges the configuration data to generate a data format which can be identified by the remote equipment, the analyzed configuration data is reserved in a memory (config1.dat), and is issued to the remote equipment through a signaling channel, and the remote equipment writes a register after receiving the configuration data.
Referring to fig. 5, a fifth embodiment of the present invention provides a management system for remote devices, where a remote device is connected to a central office device, and the system includes a creation module disposed in the central office device and a device management module disposed in a network manager.
The creating module is used for creating a remote object description for the remote device after the remote device is powered on, wherein the remote object description is used for mapping the remote device one by one, the remote object description comprises a virtual device identifier, and the virtual device identifier is obtained by calculation according to a slot position number and a port number of the local device and a preset calculation rule.
The format of the remote object description is network block number + network element number + virtual equipment identification; or the network block number, the network element number, the frame, the slot and the virtual equipment identifier; or (block number + cell number + frame + slot): (remote network block + remote network element + virtual device identification). Or other format, without limitation.
The frame (frame _ no) is a subframe number of the local side equipment, the slot (slot _ no) is a slot number of the local side equipment, and the far-end network block and the far-end network element are both set values.
The format of the virtual device identification is virtual frame (vframe _ no): and the virtual slot (vslot _ no) is used for calculating a virtual frame from the slot number of the local side equipment according to the calculation rule, and calculating a virtual slot from the port number of the local side equipment, wherein the port number of the local side equipment comprises a physical port number and a virtual port number.
The device management module is used for carrying out topology discovery and configuration issuing operation based on the remote object description.
Referring to fig. 5, a sixth embodiment of the present invention provides a management system for remote devices, in which on the basis of the fifth embodiment of the present invention, a central office device includes a master control disk and at least one proxy disk connected to the master control disk, and the proxy disk is connected to the remote devices.
The system also comprises a service processing module arranged on the master control panel.
The creating module is arranged on the agent disk and is also used for receiving the equipment information and the combined keywords reported by the remote equipment and reporting the equipment information and the combined keywords to the service processing module.
The device information includes a device model, a device Serial Number (SN), and a Media Access Control (MAC) address, and the merge key is the device Serial Number (SN) or the MAC address.
The service processing module is used for organizing the equipment information, the combined keywords, the remote object description, the local end interface, the network block number and the network element number into local end network element state data and reporting the local end network element state data to the equipment management module.
The device management module is used for sorting and combining all the received local side network element state data according to the combining keywords, and calculating the final device state data.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.