CN109257199B - Port migration method, device, system and storage medium - Google Patents

Port migration method, device, system and storage medium Download PDF

Info

Publication number
CN109257199B
CN109257199B CN201710569782.4A CN201710569782A CN109257199B CN 109257199 B CN109257199 B CN 109257199B CN 201710569782 A CN201710569782 A CN 201710569782A CN 109257199 B CN109257199 B CN 109257199B
Authority
CN
China
Prior art keywords
network management
port
migration
data
management server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710569782.4A
Other languages
Chinese (zh)
Other versions
CN109257199A (en
Inventor
杨杰
初晓峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201710569782.4A priority Critical patent/CN109257199B/en
Publication of CN109257199A publication Critical patent/CN109257199A/en
Application granted granted Critical
Publication of CN109257199B publication Critical patent/CN109257199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method, a device and a system for port migration and a storage medium. The method comprises the following steps: when at least one pair of migration ports in the designated network element is selected to carry out port migration, the network management client sends the related data of the migration ports to the network management server for processing, and the migration ports comprise original ports and target ports; receiving a processing result returned by the network management server; sending a first request message to a network management server; triggering and executing corresponding switching on the migration port according to the received switching instruction; and sending a second request message of port migration to the network management server, wherein the second request message is used for indicating the network management server to send a downloading command to the adapter corresponding to the relevant network element, and the downloading command indicates the adapter to download all data of the relevant network element including the data after being stored in the database. The invention overcomes the defects of large workload, long time consumption, high error rate and missing configuration of port migration in the prior art.

Description

Port migration method, device, system and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, and a storage medium for port migration.
Background
As more and more business applications are run on the network architecture, the continuous, efficient and safe operation of the network is guaranteed, which becomes a great challenge for the network administrator. Although the investment in network management is increasing, and careful deployment and configuration of strict security policies are made, the problems of the network still come up endlessly, such as port damage, board damage, port bottleneck, and the like.
When the network problem occurs, on the premise of not interrupting the service (if protection is provided, the service is guaranteed not to be interrupted), the service needs to be switched from the port a to the port B, so as to realize port migration.
In the prior art, when a port, a board, or a port bottleneck occurs in a network, a network operation and maintenance worker needs to perform one-by-one configuration of a destination port in modules of a network manager, such as port configuration, interface configuration, protocol configuration, and service configuration, to implement port migration. However, due to the fact that the data configured on the port is numerous, the port migration mode is large in workload, long in time consumption, high in configuration error probability and quite large in configuration omission, network smoothness is seriously affected, and user experience is affected. Meanwhile, the port migration method has extremely high requirements on skills of network operation and maintenance personnel, and the network operation and maintenance personnel need to deeply understand the modules and the dependency relationship among the modules. In addition, when a large number of ports and single boards are damaged at the same time, the above port migration method cannot meet the time requirements of operators and network users.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, an apparatus, a system and a storage medium for port migration, so as to solve the problems of the existing port migration, such as large workload, long time consumption, high error rate and missing configuration.
The technical scheme adopted by the invention for solving the technical problems is as follows:
according to the first aspect of the invention, when at least one pair of migration ports in a designated network element is selected to perform port migration, a network management client sends related data of the migration ports to a network management server for processing, wherein the migration ports comprise original ports and destination ports;
the network management client receives a processing result returned by the network management server;
the network management client sends a first request message to the network management server, wherein the first request message is used for indicating the network management server to store the processing result in a warehouse;
the network management client triggers and executes corresponding switching on the migration port according to the received switching instruction;
and the network management client sends a second request message of port migration to the network management server, wherein the second request message is used for indicating the network management server to send a downloading command to an adapter corresponding to a related network element, the related network element comprises all network elements on a display path passing through the specified network element, and the downloading command indicates the adapter to download all data including the data after being put in storage of the related network element so as to realize the port migration.
Preferably, the related data includes a port type, a port attribute, interface data, quality of service data, operation maintenance management data, two-layer and three-layer protocol data, service data, and protection relationship data of the migration port.
Preferably, before sending the relevant data of the migration port to the network management server for processing, the method further includes:
the network management client acquires the data of the relevant network elements of the display path passed by the network management client according to the specified network element;
and the network management client sends a locking message to the data of the relevant network element so that the network management server locks the relevant network element, and the locking message carries the data of the relevant network element.
Preferably, before the network management client sends the data of the relevant network element to the network management server, the method further includes:
the network management client checks whether the original port and the target port of each pair of migration ports meet the migration condition;
and if so, executing the action of sending the data of the related network element to the network management server.
Preferably, before the network management client sends the second request packet for port migration to the network management server, the method further includes:
the network management client classifies the relevant network elements according to the uploading and downloading modes of the relevant network elements;
and the network management client sends the classification of the related network elements to the network management server so that the network management server sends the information of the related network elements to corresponding adapters according to the classification, and the corresponding adapters call upload modules of the corresponding network elements to backup the equipment data of the related network elements to an intermediate file.
According to a second aspect of the present invention, there is provided a method of port migration, the method comprising:
a network management server receives related data of a migration port sent by a network management client, wherein the migration port comprises an original port and a target port of a designated network element;
the network management server processes the port data of the original port and the destination port according to the related data;
the network management server sends the processing result to the network management client;
the network management server receives a first request message sent by the network management client;
the network management server sends a storage command containing a processing result message to an adapter corresponding to a related network element according to the first request message, wherein the related network element comprises all network elements on a display path passing through the specified network element;
the network management server receives a second request message of port migration sent by the network management client;
and the network management server sends a downloading command to an adapter corresponding to the relevant network element according to the second request message, wherein the downloading command indicates the adapter to download all data of the relevant network element including the data after being put in storage so as to realize port migration.
Preferably, before the network management server receives the relevant data of the migration port sent by the network management client, the method further includes:
the network management server receives a locking message sent by the network management client, wherein the locking message carries the data of the relevant network element;
and the network management server locks the relevant network elements and returns locking marks to the network management client.
Preferably, before the network management server sends the warehousing command containing the processing result message to the adapter corresponding to the relevant network element according to the request message, the method further includes:
the network management server receives the classification of the relevant network elements sent by the network management client;
and the network management server sends the information of the related network elements to corresponding adapters according to the classification, and the corresponding adapters call corresponding network element uploading modules to backup the equipment data of the related network elements to an intermediate file.
Preferably, after sending the second request packet for port migration to the network management server, the method further includes:
the network management server sends the downloading command to the adapter;
when the downloading is successful, the network management server returns a downloading success message to the network management client;
when the downloading is failed, the network management server returns a downloading failure message to the network management client, and the network management client prompts a user to use the equipment data to carry out data recovery on the related network element.
Preferably, when the migration is finished, the method further comprises:
and the network management server unlocks the related network elements.
According to a third aspect of the present invention, there is provided a device for port migration, which is suitable for a network management client, and the device includes:
a sending module, configured to send, when at least one pair of migration ports in a designated network element is selected for port migration, related data of the migration ports to a network management server for processing, where the migration ports include an original port and a destination port;
the receiving module is used for receiving the processing result returned by the network management server;
the sending module is further configured to send a first request message to the network management server after the processing result is confirmed, where the first request message is used to instruct the network management server to store the processing result in a storage;
a switching triggering module, configured to trigger execution of corresponding switching on the migration port according to the received switching instruction;
the sending module is further configured to send a second request message for port migration to the network management server, where the second request message is used to instruct the network management server to send a download command to an adapter corresponding to the relevant network element, the relevant network element includes all network elements on a display path passing through the specified network element, and the download command instructs the adapter to download all data of the relevant network element, including the data after being put in storage, so as to implement port migration.
Preferably, the related data includes port attribute, interface data, quality of service data, operation maintenance management data, three-layer protocol data, service data, and protection relationship data of the migration port.
Preferably, the apparatus further comprises:
the verification module is used for verifying whether an original port and a target port of each pair of migration ports meet the migration condition before sending the relevant data of the migration ports to the network management server for processing;
and the sending module is also used for executing the action of sending the relevant data of the migration port to the network management server for processing when the verification is passed.
Preferably, the apparatus further comprises:
an obtaining module, configured to obtain, according to the specified network element, data of all relevant network elements of a display path through which the specified network element passes;
the sending module is further configured to send a locking message to the network management server, so that the network management server locks the relevant network element, where the locking message carries data of the relevant network element.
Preferably, the apparatus further comprises:
the classification module is used for classifying the related network elements according to the uploading and downloading modes of the related network elements before sending a second request message of port migration to the network management server;
the sending module is further configured to send the classification of the relevant network elements to the network management server.
Preferably, the device further comprises a prompt module:
the sending module is further configured to receive a download success message or a download failure message returned by the network management server after sending the request message for port migration to the network management server;
and the prompting module is further used for prompting a user to use the equipment data to perform data recovery on the related network element when receiving the download failure message.
According to a fourth aspect of the present invention, there is provided a device for port migration, which is adapted to a network management server, and is characterized in that the device includes:
the receiving module is used for receiving related data of a migration port sent by a network management client, wherein the migration port comprises an original port and a destination port of a designated network element;
the processing module is used for processing the port data of the original port and the destination port according to the related data;
the sending module is used for sending the processing result to the network management client;
the receiving module is further configured to receive a request message sent by the network management client to store the processing result in a database;
the sending module is further configured to send a storage command containing a processing result message to an adapter corresponding to a relevant network element according to the request message;
the receiving module is also used for receiving a port migration request message sent by the network management client;
the sending module is further configured to send a download command to an adapter corresponding to a related network element according to the second request packet, where the related network element includes all network elements on a display path passing through the specified network element, and the download command instructs the adapter to download all data of the related network element, including the data after being put into storage.
Preferably, the apparatus further comprises:
the locking module is used for locking the related network element after receiving a locking message sent by the network management client, and unlocking the related network element after the migration is finished, wherein the locking message carries data of the related network element;
and the sending module is also used for returning the locking mark to the network management client.
Preferably, the receiving module is further configured to receive the classification of the relevant network element sent by the network management client;
the sending module is further configured to send the information of the relevant network element to the corresponding adapter according to the classification, and the corresponding adapter calls the corresponding network element uploading module to backup the device data of the relevant network element to the intermediate file.
Preferably, the sending module is further configured to return a download success message to the network management client after sending the download command to the adapter and when the download succeeds, or return a download failure message to the network management client when the download fails.
According to a fifth aspect of the present invention, there is provided a system for port migration, which is characterized in that the system includes a network management server and a network management client, the network management client includes the device for port migration according to the second aspect, and the network management server includes the device for port migration according to the third aspect:
the network management client is used for sending the related data of the migration port to the network management server, triggering the warehousing action of the processing result after the processing result returned by the network management server is confirmed, and switching the original port and the target port;
and the network management server is used for processing the migration port according to the related data and sending a downloading command to the adapter corresponding to the related network element according to the request message of port migration of the network management client, wherein the downloading command indicates the adapter to download all data of the related network element including the data after being put into storage.
According to a sixth aspect of the present invention, there is provided a storage medium characterized in that the storage medium stores one or more programs executable by one or more processors to implement the steps of the first and second aspects.
After the network element and the migration port which need to be subjected to port migration are selected, the network management client and the network management server perform data interaction to process the related data of the migration port, then the processing result is sent to the adapter corresponding to the related network element, and after the network management client triggers and executes corresponding switching, the data of the related network element is downloaded through the adapter. Compared with the prior art, the method and the device overcome the defects of large workload, long time consumption, high error rate and configuration omission caused by the fact that the single modules of network operation and maintenance personnel are configured one by one to carry out port migration when the problems of port damage, single board damage and port bottleneck occur in the existing network. Meanwhile, the technical requirement of network maintenance personnel is reduced, so that operators are helped to save the cost of human resources.
Drawings
FIG. 1 is a schematic diagram of port migration in an embodiment of the present invention;
fig. 2 is a flowchart of a method for port migration according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for port migration according to a second embodiment of the present invention;
fig. 4 is a flowchart of a data processing and warehousing method in another port migration method according to a third embodiment of the present invention;
fig. 5 is a flowchart of a data downloading method in another port migration method according to a third embodiment of the present invention;
fig. 6 is a schematic block diagram of a port migration apparatus according to a fourth embodiment of the present invention;
fig. 7 is a schematic block diagram of another port migration apparatus according to a fifth embodiment of the present invention
Fig. 8 is a schematic structural diagram of a system for port migration according to a sixth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
The embodiment of the invention provides a port migration method. It should be noted that the method for port migration in the present invention refers to a method for port migration in a network element, as shown in fig. 1, that switches a service from an original port to a destination port in a network element. The following explains the embodiment with a network management client side, please refer to fig. 2, and the method flow includes:
s201, when at least one pair of migration ports in the designated network element is selected to perform port migration, sending related data of the migration ports to a network management server for processing, wherein the migration ports comprise original ports and destination ports;
s202, receiving a processing result returned by the network management server;
s203, when the processing result is confirmed, sending a first request message to the network management server, wherein the first request message is used for indicating the network management server to store the processing result in a storage;
s204, triggering and executing corresponding switching on the migration port according to the received switching instruction;
s205, sending a second request message of port migration to the network management server, where the second request message is used to instruct the network management server to send a download command to an adapter corresponding to a related network element, where the related network element includes all network elements on a display path passing through the specified network element, and the download command instructs the adapter to download all data of the related network element, including the data after entering the library, so as to implement port migration.
In practical application, modules related to data downloaded by each adapter include a processing module in port migration and a dependency module having a dependency relationship with the processing module, and the downloaded data includes all data (including data before migration and data after warehousing) of relevant network elements in a database table of the processing module and the dependency module.
In a possible solution, the related data includes a port type, a port attribute, interface data, quality of service data, operation maintenance management data, protocol data of two or three layers, service data, and protection relationship data of the migration port.
In a possible solution, before sending the data related to the migration port to the network management server for processing, the method further includes:
the network management client acquires the data of the relevant network elements of the display path passed by the network management client according to the specified network element;
the network management client sends a locking message to the network management server so that the network management server locks the relevant network elements, and the locking message carries the data of the relevant network elements.
In a feasible solution, before the network management client sends the data of the relevant network element to the network management server, the method further includes:
the network management client checks whether the original port and the target port of each pair of migration ports meet the migration condition;
and if so, executing the action of sending the data of the relevant network element to the network management server.
In a feasible solution, before the webmaster client sends the second request message for port migration to the webmaster server, the method further includes:
the network management client classifies the relevant network elements according to the uploading and downloading modes of the relevant network elements;
the network management client sends the classification of the relevant network element to the network management server so that the network management server sends the information of the relevant network element to the corresponding adapter according to the classification, and the corresponding adapter calls the uploading module of the corresponding network element to backup the equipment data of the relevant network element to the intermediate file.
In the method for port migration of this embodiment, after a designated network element and a migration port that need to be subjected to port migration are selected, a network management client performs data interaction with a network management server, processes related data of the migration port, sends a processing result to an adapter corresponding to the related network element, and after the network management client triggers and executes corresponding switching, downloads data of the related network element through the adapter. Compared with the prior art, the method and the device overcome the defects of large workload, long time consumption, high error rate and configuration omission caused by the fact that the single modules of network operation and maintenance personnel are configured one by one to carry out port migration when the problems of port damage, single board damage and port bottleneck occur in the existing network. Meanwhile, the technical requirement of network maintenance personnel is reduced, so that operators are helped to save the cost of human resources.
On the basis of the foregoing embodiment, a second embodiment of the present invention provides another method for port migration, which is described below with reference to fig. 3 by using a network management server side, and a flow of the method includes:
s301, a network management server receives related data of a migration port sent by a network management client, wherein the migration port comprises an original port and a target port of a designated network element;
s302, the network management server processes the port data of the original port and the destination port according to the relevant data;
s303, the network management server sends the processing result to the network management client;
s304, the network management server receives a first request message sent by the network management client;
s305, the network management server sends a storage command containing a processing result message to an adapter corresponding to a related network element according to the first request message, wherein the related network element comprises all network elements on a display path passing through the specified network element;
s306, the network management server receives a second request message of port migration sent by the network management client;
and S307, the network management server sends a downloading command to the adapter corresponding to the related network element according to the second request message, wherein the downloading command indicates the adapter to download all data of the related network element, including the data after being put in storage, so as to realize port migration.
In a possible solution, before the webmaster server receives the relevant data of the migration port sent by the webmaster client, the method further includes:
the network management server receives a locking message sent by the network management client, wherein the locking message carries the data of the relevant network element;
the network management server locks the relevant network element and returns a locking mark to the network management client.
In a feasible solution, before the network management server sends the warehousing command containing the processing result message to the adapter corresponding to the relevant network element according to the request message, the method further includes:
the network management server receives the classification of the relevant network element sent by the network management client;
the network management server sends the information of the relevant network elements to the corresponding adapters according to the classification, and the corresponding adapters call the corresponding network element uploading modules to backup the equipment data of the relevant network elements to the intermediate files.
In a possible solution, after sending the second request message for port migration to the network management server, the method further includes:
the network management server sends the downloading command to the adapter;
when the downloading is successful, the network management server returns a downloading success message to the network management client;
when the downloading is failed, the network management server returns a downloading failure message to the network management client, and the network management client prompts a user to use the equipment data to carry out data recovery on the related network element.
In one possible implementation, when the migration is finished, the method further includes:
and the network management server unlocks the related network element.
In the method for port migration of this embodiment, after the designated network element and the migration port that need to be subjected to port migration are selected, the network management client and the network management server perform data interaction, process the relevant data of the migration port, send the processing result to the adapter corresponding to the relevant network element, and after the network management client triggers and executes the corresponding switching, download of the data of the relevant network element is realized through the adapter. Compared with the prior art, the method and the device overcome the defects of large workload, long time consumption, high error rate and configuration omission caused by the fact that the single modules of network operation and maintenance personnel are configured one by one to carry out port migration when the problems of port damage, single board damage and port bottleneck occur in the existing network. Meanwhile, the technical requirement of network maintenance personnel is reduced, so that operators are helped to save the cost of human resources.
Based on the foregoing embodiment, a third embodiment of the present invention provides another method for port migration, and this embodiment takes User Network Interface (UNI) migration as an example, and details the present invention with reference to a specific scenario. It should be noted that, for convenience of description, the method flow of port migration is described by dividing into two parts, namely data processing and warehousing of the migration port and data downloading.
Referring to fig. 4, the method flow of data processing and storage includes:
s401, when a user selects a network element, the network management client starts a port migration function according to the operation of the user.
In practical applications, the starting of the port migration function includes: and triggering service and TNP automatic discovery, inquiring a port migration plan, and if an unfulfilled port migration plan exists, prompting a user to implement existing port migration and then select an original port and a target port for migration.
Specifically, when the user clicks the menu function, the user may be guided to trigger the service and TNP auto discovery. For example, when a User Network Interface (UNI) migrates, when the User selects NE1, the User can be guided to trigger the above actions by clicking the UNI port migration start function of the menu, then the network management client builds a port migration query message, issues a query command to query a port migration Plan from the database, and if an unfeasible port migration Plan1 exists, prompts the User to implement the existing port migration Plan1 first.
S402, when the user selects the original ports and the target ports to be migrated in batch, checking whether the original ports and the target ports of each pair of migration ports meet the migration condition, if so, executing a step S403, otherwise, forbidding the migration, and ending the process.
Specifically, the verification method is as follows:
checking whether the original port SPortN and the destination port DPortN in each pair of ports are the same type of ports, and if not, prompting a user that the port of the current pair does not meet the port migration condition and needs to reselect the port;
and if the DPortN is occupied by the service or the transfer relationship between the SPortN and the DPortN is looped or the end point has the service, the transfer is prohibited, and the service is prevented from being broken.
S403, the network management client obtains data of all network elements (i.e. related network elements) on the display path passing through the migration network element according to the migration network element, and sends the data of the related network elements to the network management server.
S404, the network management server locks the relevant network elements and returns the marks to the network management client.
In this embodiment, the network element NE1 obtains the data of the network elements, such as the network elements NE2, NE3, NE4, etc., where the display route that the network element NE1 passes through is located, and constructs the locking message R with the network element data and sends the locking message R to the network management server, and the network management server locks the relevant network elements according to the received network element data and returns the locking flag L to the client for storage.
S405, the network management client sends the related data of the migration port to the network management server;
s406, the network management server processes the received related data and returns a processing result to the network management client.
In practical application, the related data includes at least one of a migration port type, a port attribute, interface data, quality of service data, operation maintenance management data, two-layer and three-layer protocol data, service data, and protection relationship data of the migration port.
Specifically, according to different data sent from the network management client to the network management server, the network management server has different processing modes for the data, and the returned processing results are different. The method comprises the following steps:
1. and calculating switching action data.
In practical application, a network management client sends migration port type data to a network management server, and the network management server is divided into a logic port and a non-logic port according to the migration port SPortN type. And the logic port calculates to obtain switching action data according to the MC-LAG main/standby state. And the non-logic port calculates to obtain switching action data according to the MC-MSP and the information of whether the original port works or is a protection port. And returning the processing result to the client for storage.
2. Port attributes of the migration port are calculated.
The port attribute calculation strategy is that the network management client divides the port attributes into three types of directly-copied attributes (Attr 1), indirectly-copied attributes (Attr 2) and inter-port exclusive attributes (Attr 3). The attribute (Attr 2) which can not be directly copied is displayed in the form of a port attribute configuration interface, and is issued to the network management server after the user selects the attribute value.
The network management server synthesizes the attribute value of the target port according to the value (Attr 2) of the non-replicable attribute issued by the network management client, the attribute (Attr 1) which can be directly copied and all the attribute values of the original port, synthesizes the modified attribute value of the original port according to all the attribute values of the original port and the exclusive attribute (Attr 3) between the ports, and returns the attribute value calculated by the original port and the target port to the client for storage.
3. Calculating the interface data of the migration port.
The interface information calculation strategy is that a network management client side issues a network management server of a migration port, the network management server comprehensively obtains an interface of a target port according to the non-duplicable attribute, the duplicable attribute and an interface value of an original port, and comprehensively obtains a modified value of the original interface according to the exclusive attribute and the interface value of the original port. And returning the processing result to the client for storage.
Specifically, the Network management client sends interface data of the migration port to the Network management server, and the Network management server obtains a VLAN interface value, a three-layer interface value and a three-layer sub-interface value of the destination port DPortN by synthesizing the non-replicatable attribute (Attr 2), the replicatable attribute (Attr 1) and a Virtual Local Area Network (VLAN) interface value, a three-layer interface value and a three-layer sub-interface value of the source port sport n, and obtains a VLAN interface value, a three-layer interface value and a three-layer sub-interface value of the source port sport n after modification by synthesizing the exclusive attribute (Attr 3) and the VLAN interface value, the three-layer interface value and the three-layer sub-interface value of the source port sport n. And returning the processing result to the client for storage.
4. Quality of Service (QoS) data of the migration port is calculated.
The QoS calculation includes eight parts of port Access List (ACL), port domain, flow queue, port speed limit, port shaping, port storm suppression, port Access Control (CAC), and port Per-Hop Behavior remapping (Per Hop Behavior, PHB).
The calculation strategy is that a network management client sends QoS data of a migration port to a network management server, after the network management server obtains the QoS data of the migration port, the QoS data of a target port (including port ACL, port domain, flow queue, port speed limit, port shaping, port storm suppression, port CAC and port PHB remapping data of DPortN) is deleted, and then the QoS data of an original port (including ACL, port domain, flow queue, port speed limit, port shaping, port storm suppression, port CAC and port PHB remapping data) is configured to the target port. And returning the processing result to the client for storage.
5. Operation Administration and Maintenance management (OAM) data of the migration port is calculated.
The OAM calculation includes three parts of Maintenance End Point (MEP), maintenance Intermediate Point (MIP), and last Mile Ethernet (EFM). The calculation strategy is that a network management client sends a network management server of a migration port, the network management server obtains OAM data of the migration port, modifies related ports of MEP, MIP and EFM, and replaces an original port with a target port. And returning the processing result to the client for storage.
6. And calculating protocol data of two layers and three layers of the migration port.
The two-three layer protocol calculation comprises ten parts of calculation of PIM-DM protocol, PIM-SM protocol, IGMP, spanning tree protocol, LDP, RSVP-TE, ISIS protocol, OSPF protocol, DHCP and VRRP.
The calculation strategy is that the network management client side issues two-layer and three-layer protocol data and interface calculation data of the migration port to the network management server, the network management server obtains the two-layer and three-layer protocol data of the migration port, modifies the associated port and the interface in the protocol, replaces the original port with the target port, and replaces the original interface with the target interface. And returning the processing result to the client for storage.
Specifically, the network Management server obtains a Dense Mode Independent Multicast Protocol (PIM-DM) of the migration source port spirtn, a Sparse Mode Independent Multicast Protocol (PIM-SM), an Internet Group Management Protocol (IGMP), a spanning tree Protocol, a Label Distribution Protocol (LDP), a Resource ReSerVation Protocol (Resource ReSerVation Protocol-Traffic Engineering) based on Traffic Engineering extension, RSVP-TE), intermediate system to Intermediate system Protocol (ISIS), OSPF Protocol, dynamic Host Configuration Protocol (DHCP), virtual Router Redundancy Protocol (VRRP), etc., modifying associated ports and interfaces in PIM-DM Protocol, PIM-SM Protocol, IGMP, spanning tree Protocol, LDP, RSVP-TE, ISIS Protocol, OSPF Protocol, DHCP, VRRP, replacing original port SPortN with destination port DPortN, and replacing the interface of original port SPortN with the interface of destination port DPortN. And returning the processing result to the client for storage.
7. And calculating the service data of the migration port.
The calculation strategy is to inquire the service related to the original port, present the inquired service on the interface, select the migration service by the user, then configure all the selected services on the destination port, the service calculation ensures the validity and consistency of the service, if the destination port does not satisfy the service logic, the migration is stopped.
8. And calculating the protection relation data of the migration port.
The calculation strategy is that the network management client side issues the migration port to the network management server, the network management server obtains the protection relation data of the migration port, modifies the associated port in the protection, and replaces the original port with the target port. And returning the processing result to the client for storage.
In practical applications, the step S406 may be performed by a processing module of the network management server, and the calculation steps of the above data may be respectively implemented by calculation sub-modules of the processing module.
S407, the network management client classifies the relevant network elements according to the uploading and downloading modes of the relevant network elements, and sends the classifications of the relevant network elements to the network management server;
s408, the network management server sends the information of the relevant network element to the corresponding adapter according to the classification, and the corresponding adapter calls the corresponding network element uploading module to backup the equipment data of the relevant network element to the intermediate file.
Specifically, the network management client classifies the network elements such as the NE1, the NE2, the NE3, the NE4 and the like according to the network element uploading and downloading mode, and issues the network elements to the network management server. The network management server distributes network elements such as NE1, NE2, NE3, NE4 and the like to each adapter, and the adapters call corresponding network element uploading modules to backup the equipment data to the intermediate file through uploading so as to facilitate warehousing of processing results or data recovery after downloading failure.
S409, after the processing result is confirmed, the network management client sends a request message for putting the processing result into a database to the network management server.
In practical application, the network management client respectively presents the cached processing result messages of each step to the user in the form of tables, trees and the like on a display interface. And the user confirms the presented processing result, constructs a warehousing request message according to the processing result data of each step, and sends the request message to the network management server.
S410, the network management server sends a warehousing command containing a specific processing result message to the adapter of the related network element (NE 1, NE2, NE3, NE4 and other network elements), the processing result is warehoused by a warehousing module of the adapter, data is pre-checked before warehousing, the pre-check fails, and migration is stopped.
Referring to fig. 5, the data downloading method includes:
and S411, the network management client side carries out switching on the original port and the target port according to the received switching instruction.
Specifically, the network management client obtains TNP data according to the port migration plan name and presents the TNP data on the interface, and the user triggers and executes corresponding switching on the interface.
S412, the network management client sends a request message of port migration to the network management server.
S413, the network management server sends a download command to the adapter corresponding to the relevant network element, and if the download is successful, step S414 is executed, otherwise step S415 is executed.
In practical application, the network management client builds a request message for implementing port migration and sends the request message to the network management server, and the network management server sends a download command to adapters of network elements such as NE1, NE2, NE3, NE4 and the like.
The modules related to the data downloaded by each adapter include a processing module in port migration and a dependency module having a dependency relationship with the processing module, and the downloaded data includes all data (including data before migration and data after warehousing) of the processing module and the dependency module, which are related to the network elements in a database table.
S414, the network management server returns the download success information to the network management client and executes the step S417.
S415, the webmaster server returns a download failure message to the webmaster client, and executes step S416.
S416, the network management client prompts the user to use the device data to perform data recovery on the relevant network element, and step S417 is executed.
S417, the network management client builds a request message and sends the message to the network management server to request to clear the TNP data stored in the database.
S418, the network management server clears the TNP data in the database and unlocks the locked related network elements at the same time.
In the method for port migration of this embodiment, after the network element and the migration port that need to be subjected to port migration are selected, the network management client and the network management server perform data interaction, process the relevant data of the migration port, send the processing result to the adapter corresponding to the relevant network element, and after the network management client triggers and executes the corresponding switching, download of the data of the relevant network element is realized through the adapter. Compared with the prior art, the embodiment overcomes the defects of large workload, long time consumption, high error rate and configuration omission caused by the fact that the single modules of network operation and maintenance personnel are configured one by one to carry out port migration when the problems of port damage, single board damage and port bottleneck occur in the existing network. Meanwhile, the technical requirement of network maintenance personnel is reduced, so that operators are helped to save the cost of human resources.
On the basis of the foregoing embodiment, a fourth embodiment of the present invention provides a port migration apparatus, which is suitable for a network management client, and please refer to fig. 6, where the apparatus includes:
a sending module 501, configured to send, when at least one pair of migration ports in a designated network element is selected to perform port migration, related data of the migration ports to a network management server for processing, where the migration ports include an original port and a destination port;
a receiving module 502, configured to receive a processing result returned by the network management server;
the sending module 501 is further configured to send a first request message to the webmaster server after the processing result is confirmed, where the first request message is used to instruct the webmaster server to store the processing result in a database;
a switching triggering module 503, configured to trigger execution of corresponding switching on the migration port according to the received switching instruction;
the sending module 501 is further configured to send a second request message for port migration to the network management server, where the second request message is used to instruct the network management server to send a download command to an adapter corresponding to the relevant network element, where the relevant network element includes all network elements on a display path passing through the specified network element, and the download command instructs the adapter to download all data of the relevant network element, including the data after being put in storage, so as to implement port migration.
In one possible implementation, the apparatus further includes:
the trigger module is used for triggering service and TNP automatic discovery according to the operation of a user and inquiring a port migration plan;
and the prompting module is used for prompting a user to implement existing port migration and then select an original port and a destination port which are migrated when an unfulfilled port migration plan exists.
In one possible implementation, the apparatus further comprises:
the verification module is used for verifying whether an original port and a target port of each pair of migration ports meet the migration condition before sending the relevant data of the migration ports to the network management server for processing;
the sending module is further configured to execute the action of sending the relevant data of the migration port to the network management server for processing when the verification is passed.
In practical application, the verification method is as follows:
checking whether the original port SPortN and the destination port DPortN in each pair of ports are the same type of ports, and if not, prompting a user that the port of the pair does not meet port migration conditions and needs to reselect the port;
and if the DPortN is occupied by the service or the transfer relationship between the SPortN and the DPortN is looped or the end point has the service, the transfer is forbidden to prevent the service from being broken.
In one possible implementation, the apparatus further includes:
an obtaining module, configured to obtain, according to the specified network element, data of all relevant network elements of the display path that the specified network element passes through;
the sending module is further configured to send a locking message to the network management server, so that the network management server locks the relevant network element, where the locking message carries data of the relevant network element.
In practical application, the obtaining module may obtain data of all network elements where the display path passes through according to the network element where the migration port is located, construct a locking message R with the network element data, and send the locking message R to the network management server, where the network management server locks a relevant network element according to the received network element data, and returns the locking flag L to the client for storage.
In one possible solution, the related data includes at least one of port attribute, interface data, quality of service data, operation maintenance management data, protocol data of two or three layers, service data, and protection relationship data of the migration port.
In one possible implementation, the apparatus further includes:
the classification module is used for classifying the related network elements according to the uploading and downloading modes of the related network elements before sending the second request message of the port migration to the network management server;
the sending module is further configured to send the classification of the relevant network element to the network management server.
In practical application, the network management server may send the information of the relevant network element to the corresponding adapter according to the classification, and the corresponding adapter calls the corresponding network element uploading module to backup the device data of the relevant network element to the intermediate file.
In a feasible scheme, the device further comprises a display module, which is used for respectively presenting the cached processing result messages of each step to a user in a form of a table, a tree and the like on a display interface, and prompting the user to confirm the presented processing results;
the sending module is further configured to send a request message for storing the processing result to the network management server after the processing result is confirmed.
In one possible implementation, the apparatus further includes a prompting module:
the sending module is further configured to receive a download success message or a download failure message returned by the network management server after sending the request message for port migration to the network management server;
the prompting module is further configured to prompt the user to use the device data to perform data recovery on the relevant network element when the download failure message is received.
In a possible solution, after receiving the download success message or the download failure message, the sending device is further configured to send a message requesting to clear the TNP data stored in the database to the network management server.
The device for port migration in this embodiment is arranged at a network management client, and after a network element and a migration port that need to be subjected to port migration are selected, the network management client performs data interaction with a network management server, processes related data of the migration port, sends a processing result to an adapter corresponding to the related network element, and after the network management client triggers and executes corresponding switching, downloads data of the related network element through the adapter. Compared with the prior art, the method and the device overcome the defects of large workload, long time consumption, high error rate and configuration omission caused by one-by-one configuration of single modules of network operation and maintenance personnel for port migration when the problems of port damage, single board damage and port bottleneck occur in the existing network. Meanwhile, the technical requirement of network maintenance personnel is reduced, so that operators are helped to save the cost of human resources.
On the basis of the foregoing embodiment, a fifth embodiment of the present invention provides another port migration apparatus, which is suitable for a network management server, and please refer to fig. 7, where the apparatus includes:
a receiving module 601, configured to receive data related to a migration port sent by a network management client, where the migration port includes an original port and a destination port of an appointed network element;
a processing module 602, configured to process port data of an original port and a destination port according to the relevant data;
a sending module 603, configured to send the processing result to the network management client;
the receiving module 601 is further configured to receive a first request message sent by the network management client and used for storing the processing result in a database;
the sending module 603 is further configured to send a storage command containing a processing result message to an adapter corresponding to the relevant network element according to the request message;
the receiving module 601 is further configured to receive a second request message for port migration sent by the network management client;
the sending module 603 is further configured to send a download command to an adapter corresponding to a relevant network element according to the second request packet, where the relevant network element includes all network elements on a display path passing through the specified network element, and the download command instructs the adapter to download all data of the relevant network element, including the data after being put into storage.
In practical application, the related data sent by the network management client includes at least one of port attribute, interface data, quality of service data, operation maintenance management data, protocol data of two or three layers, service data, and protection relationship data of the migration port, and the processing module 602 processes the port data of the original port and the port data of the destination port according to the related data, including:
1. and calculating the switching action data.
In practical application, a network management client sends migration port type data to a network management server, and the network management server is divided into a logic port and a non-logic port according to the migration port SPortN type. And the logic port calculates to obtain switching action data according to the MC-LAG main/standby state. And the non-logic port calculates to obtain switching action data according to the MC-MSP and the information of whether the original port works or protects the port. And returning the processing result to the client for storage.
2. Port attributes of the migration port are computed.
The port attribute calculation strategy is that the network management client divides the port attributes into three types of directly-copied attributes, indirectly-copied attributes and inter-port exclusive attributes. The attribute which can not be directly copied is displayed in the form of port attribute configuration interface, and is issued to the network management server after the user selects the attribute value.
The network management server synthesizes the attribute value of the target port according to the value of the non-replicable attribute, the directly replicable attribute and all the attribute values of the original port issued by the network management client, synthesizes the modified attribute value of the original port according to all the attribute values of the original port and the exclusive attribute between the ports, and returns the attribute value calculated by the original port and the target port to the client for storage.
3. Calculating interface data of the migration port.
The interface information calculation strategy is that a network management client side issues a network management server of a migration port, the network management server comprehensively obtains an interface of a target port according to the non-duplicable attribute, the duplicable attribute and an interface value of an original port, and comprehensively obtains a modified value of the original interface according to the exclusive attribute and the interface value of the original port. And returning the processing result to the client for storage.
Specifically, the Network management client sends interface data of the migration port to the Network management server, the Network management server obtains a Virtual Local Area Network (VLAN) interface value, a three-layer interface value and a three-layer sub-interface value of the destination port DPortN according to the non-copyable and copyable attribute, the copyable attribute and the Virtual Local Area Network (VLAN) interface value, the three-layer interface value and the three-layer sub-interface value of the original port SPortN, and obtains a modified VLAN interface value, a three-layer interface value and a three-layer sub-interface value of the original port SPortN according to the exclusive attribute and the VLAN interface value, the three-layer interface value and the three-layer sub-interface value of the original port SPortN. And returning the processing result to the client for storage.
4. Quality of Service (QoS) data of the migration port is calculated.
The QoS calculation comprises eight parts of calculation of ACL, port domain, flow queue, port speed limit, port shaping, port storm suppression, CAC and PHB remapping.
The calculation strategy is that a network management client sends QoS data of a migration port to a network management server, after the network management server obtains the QoS data of the migration port, the QoS data of a target port (including port ACL, port domain, flow queue, port speed limit, port shaping, port storm suppression, port CAC and port PHB remapping data of DPortN) is deleted, and then the QoS data of an original port (including ACL, port domain, flow queue, port speed limit, port shaping, port storm suppression, port CAC and port PHB remapping data) is configured to the target port. And returning the processing result to the client for storage.
5. And calculating the operation maintenance management data OAM of the migration port.
The OAM calculation comprises MEP, MIP and EFM. The calculation strategy is that a network management client side issues a network management server of a migration port, the network management server obtains OAM data of the migration port, modifies related ports of MEP, MIP and EFM, and replaces an original port with a target port. And returning the processing result to the client for storage.
6. And calculating protocol data of two layers and three layers of the migration port.
The two-three layer protocol calculation comprises ten parts of calculation of PIM-DM protocol, PIM-SM protocol, IGMP, spanning tree protocol, LDP, RSVP-TE, ISIS protocol, OSPF protocol, DHCP and VRRP.
The calculation strategy is that the network management client side issues two-layer and three-layer protocol data and interface calculation data of the migration port to the network management server, the network management server obtains the two-layer and three-layer protocol data of the migration port, modifies the associated port and the interface in the protocol, replaces the original port with the target port, and replaces the original interface with the target interface. And returning the processing result to the client for storage.
Specifically, the network management server obtains the PIM-DM protocol, the PIM-SM protocol, the IGMP, the spanning tree protocol, the LDP, the RSVP-TE, the ISIS protocol, the OSPF protocol, the DHCP and the VRRP data of the migration original port SPortN, modifies the associated ports and interfaces in the PIM-DM protocol, the PIM-SM protocol, the IGMP, the spanning tree protocol, the LDP, the RSVP-TE, the ISIS protocol, the OSPF protocol, the DHCP and the VRRP, replaces the original port SPortN with the destination port DPortN, and replaces the interface of the original port SPortN with the interface of the destination port DPortN. And returning the processing result to the client for storage.
7. And calculating the service data of the migration port.
The calculation strategy is to inquire the service related to the original port, present the inquired service on the interface, select the migration service by the user, then configure all the selected services on the destination port, and the service calculation ensures the validity and consistency of the service, and the destination port does not satisfy the service logic to stop the migration.
8. And calculating the protection relation data of the migration port.
The calculation strategy is that the network management client side issues the migration port to the network management server, the network management server obtains the protection relation data of the migration port, modifies the associated port in the protection, and replaces the original port with the target port. And returning the processing result to the client for storage. In one possible implementation, the apparatus further includes:
the locking module is used for locking the related network element after receiving a locking message sent by the network management client, and unlocking the related network element after the migration is finished, wherein the locking message carries data of the related network element;
the sending module is also used for returning the locking mark to the network management client.
In one possible approach:
the receiving module is further configured to receive the classification of the relevant network element sent by the network management client;
the sending module is further configured to send the information of the relevant network element to the corresponding adapter according to the classification, and the corresponding adapter calls the corresponding network element uploading module to backup the device data of the relevant network element to the intermediate file.
In one possible approach:
the sending module is further configured to return a download success message to the network management client when the download succeeds after sending the download command to the adapter, or return a download failure message to the network management client when the download fails.
The device for port migration of this embodiment is arranged on the network management server, and after selecting the network element and the migration port that need to be subjected to port migration, the network management client performs data interaction with the network management server, processes the relevant data of the migration port, sends the processing result to the adapter corresponding to the relevant network element, and after the network management client triggers and executes corresponding switching, downloads the data of the relevant network element through the adapter. Compared with the prior art, the method and the device overcome the defects of large workload, long time consumption, high error rate and configuration omission caused by the fact that the single modules of network operation and maintenance personnel are configured one by one to carry out port migration when the problems of port damage, single board damage and port bottleneck occur in the existing network. Meanwhile, the technical requirement of network maintenance personnel is reduced, so that operators are helped to save the cost of human resources.
On the basis of the foregoing embodiment, a sixth embodiment of the present invention provides a system for port migration, please refer to fig. 8, where the system includes a network management server 702 and a network management client 701, the network management client includes a device for port migration as in the third embodiment, and the network management server includes a device for port migration as in the fourth embodiment:
the network management client 701 is configured to send related data of the migration port to the network management server, trigger a storage action of a processing result after the processing result returned by the network management server is confirmed, and switch an original port and a destination port;
the network management server 702 is configured to process the migration port according to the relevant data, and send a download command to an adapter corresponding to a relevant network element according to the request packet for port migration of the network management client.
In the port migration system of this embodiment, after the network element and the migration port that need to be subjected to port migration are selected, the network management client performs data interaction with the network management server, processes the relevant data of the migration port, sends the processing result to the adapter corresponding to the relevant network element, and after the network management client triggers and executes corresponding switching, downloads the data of the relevant network element through the adapter. Compared with the prior art, the method and the device overcome the defects of large workload, long time consumption, high error rate and configuration omission caused by the fact that the single modules of network operation and maintenance personnel are configured one by one to carry out port migration when the problems of port damage, single board damage and port bottleneck occur in the existing network. Meanwhile, the technical requirement of network maintenance personnel is reduced, so that operators are helped to save the cost of human resources.
On the basis of the foregoing embodiments, a seventh embodiment of the present invention provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the steps of the first embodiment, the second embodiment, or the third embodiment.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. Any modifications, equivalents and improvements which may occur to those skilled in the art without departing from the scope and spirit of the present invention are intended to be within the scope of the claims.

Claims (22)

1. A method of port migration, the method comprising:
when at least one pair of migration ports in the designated network element is selected to carry out port migration, the network management client sends the related data of the migration ports to the network management server for processing, wherein the pair of migration ports comprises an original port and a target port;
the network management client receives a processing result returned by the network management server;
the network management client sends a first request message to the network management server, wherein the first request message is used for indicating the network management server to store the processing result in a storage;
the network management client triggers and executes corresponding switching on the migration port according to the received switching instruction;
and the network management client sends a second request message of port migration to the network management server, wherein the second request message is used for indicating the network management server to send a downloading command to an adapter corresponding to a related network element, the related network element comprises all network elements on a display path passing through the specified network element, and the downloading command indicates the adapter to download all data of the related network element, including the data after being put in storage, so as to realize the port migration.
2. The method of claim 1, wherein the related data comprises a port type, port attributes, interface data, quality of service data, operation maintenance management data, triple layer two protocol data, traffic data, protection relationship data for the migration port.
3. The method of claim 2, wherein before sending the data related to the migration port to the webmaster server for processing, the method further comprises:
the network management client acquires the data of the relevant network elements of the display path passed by the network management client according to the specified network element;
and the network management client sends a locking message to the network management server so that the network management server locks the relevant network elements, wherein the locking message carries the data of the relevant network elements.
4. The method of claim 3, wherein before the network management client sends the data of the relevant network element to the network management server, the method further comprises:
the network management client checks whether the original port and the target port of each pair of migration ports meet the migration condition;
and if so, executing the action of sending the data of the related network element to the network management server.
5. The method according to claim 4, wherein before the network management client sends the second request message for port migration to the network management server, the method further comprises:
the network management client classifies the relevant network elements according to the uploading and downloading modes of the relevant network elements;
and the network management client sends the classification of the related network elements to the network management server so that the network management server sends the information of the related network elements to corresponding adapters according to the classification, and the corresponding adapters call upload modules of the corresponding network elements to backup the equipment data of the related network elements to an intermediate file.
6. A method of port migration, the method comprising:
a network management server receives related data of a migration port sent by a network management client, wherein the migration port comprises an original port and a target port of a designated network element;
the network management server processes the port data of the original port and the destination port according to the related data;
the network management server sends the processing result to the network management client;
the network management server receives a first request message sent by the network management client;
the network management server sends a storage command containing a processing result message to an adapter corresponding to a related network element according to the first request message, wherein the related network element comprises all network elements on a display path passing through the specified network element;
the network management server receives a second request message of port migration sent by the network management client;
and the network management server sends a download command to an adapter corresponding to the related network element according to the second request message, wherein the download command indicates the adapter to download all data of the related network element, including the data after being put in storage, so as to realize port migration.
7. The method according to claim 6, wherein before the webmaster server receives the data related to the migration port sent by the webmaster client, the method further comprises:
the network management server receives a locking message sent by the network management client, wherein the locking message carries the data of the relevant network element;
and the network management server locks the relevant network elements and returns a locking mark to the network management client.
8. The method according to claim 7, wherein before the network management server sends the warehousing command containing the processing result message to the adapter corresponding to the relevant network element according to the first request message, the method further comprises:
the network management server receives the classification of the relevant network elements sent by the network management client;
and the network management server sends the information of the related network elements to corresponding adapters according to the classification, and the corresponding adapters call corresponding network element uploading modules to backup the equipment data of the related network elements to an intermediate file.
9. The method of claim 8, wherein after the network management server sends a download command to the adapter corresponding to the relevant network element according to the second request packet, the method further comprises:
when the downloading is successful, the network management server returns a downloading success message to the network management client;
when the downloading is failed, the network management server returns a downloading failure message to the network management client, and the network management client prompts a user to use equipment data to carry out data recovery on the related network element.
10. The method of any of claims 7 to 9, wherein when migration is complete, the method further comprises:
and the network management server unlocks the related network elements.
11. A device for port migration, which is suitable for a network management client, is characterized in that the device comprises:
a sending module, configured to send, when at least one pair of migration ports in a designated network element is selected for port migration, related data of the migration ports to a network management server for processing, where the pair of migration ports includes an original port and a destination port;
the receiving module is used for receiving the processing result returned by the network management server;
the sending module is further configured to send a first request message to the network management server after the processing result is confirmed, where the first request message is used to instruct the network management server to store the processing result in a storage;
a switching triggering module, configured to trigger execution of corresponding switching on the migration port according to the received switching instruction;
the sending module is further configured to send a second request message for port migration to the network management server, where the second request message is used to instruct the network management server to send a download command to an adapter corresponding to a related network element, where the related network element includes all network elements on a display path passing through the specified network element, and the download command instructs the adapter to download all data of the related network element, including the data after being put in storage, so as to implement port migration.
12. The apparatus of claim 11, wherein the related data comprises port attributes, interface data, quality of service data, operation maintenance management data, triple layer protocol data, traffic data, protection relationship data for the migration port.
13. The apparatus of claim 11, wherein the apparatus further comprises:
the verifying module is used for verifying whether an original port and a target port of each pair of migration ports meet the migration condition before sending the related data of the migration ports to the network management server for processing;
and the sending module is also used for executing the action of sending the relevant data of the migration port to the network management server for processing when the verification is passed.
14. The apparatus of claim 11, wherein the apparatus further comprises:
an obtaining module, configured to obtain, according to the specified network element, data of all relevant network elements of a display path through which the specified network element passes;
the sending module is further configured to send a locking message to the network management server, so that the network management server locks the relevant network element, where the locking message carries data of the relevant network element.
15. The apparatus of claim 14, wherein the apparatus further comprises:
the classification module is used for classifying the related network elements according to the uploading and downloading modes of the related network elements before sending a second request message of port migration to the network management server;
the sending module is further configured to send the classification of the relevant network element to the network management server.
16. The apparatus of claim 15, wherein the apparatus further comprises a hint module:
the sending module is further configured to receive a download success message or a download failure message returned by the network management server after sending the request message for port migration to the network management server;
the prompting module is further configured to prompt a user to use the device data to perform data recovery on the relevant network element when the download failure message is received.
17. A device for port migration, which is suitable for a network management server, and is characterized in that the device comprises:
the system comprises a receiving module, a migration module and a processing module, wherein the receiving module is used for receiving related data of a migration port sent by a network management client, and the migration port comprises an original port and a destination port of a designated network element;
the processing module is used for processing the port data of the original port and the destination port according to the related data;
the sending module is used for sending the processing result to the network management client;
the receiving module is further configured to receive a first request packet sent by the network management client;
the sending module is further configured to send a warehousing command containing a processing result message to the adapter corresponding to the relevant network element according to the request message;
the receiving module is further configured to receive a second request message for port migration sent by the network management client;
the sending module is further configured to send a download command to an adapter corresponding to a related network element according to the second request packet, where the related network element includes all network elements on a display path passing through the specified network element, and the download command instructs the adapter to download all data of the related network element, including the data after being put into storage.
18. The apparatus of claim 17, wherein the apparatus further comprises:
the locking module is used for locking the related network element after receiving a locking message sent by the network management client, and unlocking the related network element after the migration is finished, wherein the locking message carries data of the related network element;
and the sending module is also used for returning the locking mark to the network management client.
19. The apparatus of claim 17,
the receiving module is further configured to receive the classification of the relevant network element sent by the network management client;
the sending module is further configured to send the information of the relevant network element to the corresponding adapter according to the classification, and the corresponding adapter calls the corresponding network element uploading module to backup the device data of the relevant network element to the intermediate file.
20. The apparatus of claim 19,
the sending module is further configured to return a download success message to the network management client after the downloading command is sent to the adapter and when the downloading is successful, or return a download failure message to the network management client when the downloading is failed.
21. A system for port migration, characterized in that the system comprises a network management server and a network management client, the network management client comprises the device for port migration according to any one of claims 11 to 16, the network management server comprises the device for port migration according to any one of claims 17 to 20:
the network management client is used for sending the related data of the migration port to the network management server, triggering the warehousing action of the processing result after confirming the processing result returned by the network management server, and switching the original port and the target port;
and the network management server is used for processing the migration port according to the related data and sending a downloading command to the adapter corresponding to the related network element according to the request message of the port migration of the network management client.
22. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of any one of claims 1 to 10.
CN201710569782.4A 2017-07-13 2017-07-13 Port migration method, device, system and storage medium Active CN109257199B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710569782.4A CN109257199B (en) 2017-07-13 2017-07-13 Port migration method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710569782.4A CN109257199B (en) 2017-07-13 2017-07-13 Port migration method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN109257199A CN109257199A (en) 2019-01-22
CN109257199B true CN109257199B (en) 2023-01-03

Family

ID=65051123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710569782.4A Active CN109257199B (en) 2017-07-13 2017-07-13 Port migration method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN109257199B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052012A (en) * 2007-05-23 2007-10-10 杭州华三通信技术有限公司 Method and device for protecting equalizing group port flow
US7436763B1 (en) * 2002-07-31 2008-10-14 Nortel Networks Limited Data communication apparatus with a dual mode protection switching system
CN105656658A (en) * 2014-12-01 2016-06-08 中兴通讯股份有限公司 Method and device for intelligently backing up and recovering network element data in network management system
CN106330489A (en) * 2015-06-19 2017-01-11 中兴通讯股份有限公司 Method and device for achieving business migration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7436763B1 (en) * 2002-07-31 2008-10-14 Nortel Networks Limited Data communication apparatus with a dual mode protection switching system
CN101052012A (en) * 2007-05-23 2007-10-10 杭州华三通信技术有限公司 Method and device for protecting equalizing group port flow
CN105656658A (en) * 2014-12-01 2016-06-08 中兴通讯股份有限公司 Method and device for intelligently backing up and recovering network element data in network management system
CN106330489A (en) * 2015-06-19 2017-01-11 中兴通讯股份有限公司 Method and device for achieving business migration

Also Published As

Publication number Publication date
CN109257199A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
US10644952B2 (en) VNF failover method and apparatus
CN103026660B (en) Network policy configuration method, management equipment and network management centre device
US20220232453A1 (en) Systems and methods for routing data
CN101442469B (en) Method, system and apparatus for down distributing configuration data
US20170373931A1 (en) Method for updating network service descriptor nsd and apparatus
US9692637B2 (en) Fault protection method and fault protection apparatus in a multi-domain network
US11595393B2 (en) Role-based access control policy auto generation
CN105162704A (en) Multicast replication method and device in Overlay network
CN113612807B (en) Distributed firewall definition method and system
US9712455B1 (en) Determining availability of networking resources prior to migration of a server or domain
JP2022547560A (en) Data processing method and apparatus and computer storage medium
CN108243102B (en) Method for realizing fast rerouting and PE equipment
US20230032778A1 (en) Network slice creation method and apparatus, and packet forwarding method and apparatus
CN106452915B (en) Method and device for discovering MPLS VPN network topology
US11811655B2 (en) Supporting overlay networks for multiple autonomous systems and underlays
US8307423B2 (en) Migrating a network to tunnel-less encryption
CN108965131A (en) A kind of method and device of message forwarding
US8238265B2 (en) Auto-binding SDP RSVP LSP tunnel
US9985862B2 (en) MEP configuration method and network device
CN108234305A (en) A kind of control method and equipment of across machine frame link redundancy protection
CN109257199B (en) Port migration method, device, system and storage medium
CN108282373B (en) System and method for rapidly recovering service data based on SPTN controller
CN114124802A (en) Cross-domain black hole route centralized management and control method and device
CN109286513B (en) Resource deployment method and device
CN113746739B (en) Routing table creating method, PE (provider edge) equipment, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant