Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a topology presentation method and a topology presentation system for the real-time state of a transmission path, which are used for displaying the current actual service path of a circuit service in real time through a service path topology diagram.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows: a topology presentation method of a transmission path real-time state comprises the following steps:
s1, configuring the protection group node ID and protection path type of the circuit service on the network management, and displaying in the path topology;
s2, when a switching event or a switching recovery event occurs, the protection group node reports a switching event list carrying the ID of the protection group node to the network manager;
s3, the network manager receives the switching event list and sets the real-time path switching state of the circuit service;
and S4, refreshing the display of the real-time path switching state of the circuit service in the path topology.
The protection path types include an unprotected path, a 1-to-1 protection path, and M: n protection paths, M, N are positive integers, and the 1-to-1 protection path includes a 1+1 protection path and a 1: 1 protection path.
On the basis of the above technical solution, step S2 specifically includes the following steps:
s21, setting the actual service in the working path in the initial state;
s22, monitoring whether the protection group node receives the network management control command, if not, turning to S23; if the lock to primary is received, go to S21; if the 'forced to standby' is received, go to S24;
s23, detecting the working path and protection path alarm of the protection group node, judging whether to reverse to the standby path, if yes, turning to S24, and if not, turning to S21;
s24, setting the working path serial number and the switched protection path serial number according to the configured protection path type of the circuit service, and turning to S25;
s25, generating switching event information, bringing the switching event information into a switching event list, reporting the switching event information to the network management system with the protection group node ID, and switching to S26;
and S26, judging whether the protection group node has the completion of switching recovery, if so, generating switching recovery event information, bringing the switching recovery event information into a switching event list, and reporting to the network manager with the protection group node ID, otherwise, returning to S22.
On the basis of the above technical solution, step S24 specifically includes the following steps:
if the protection path type is the unprotected path type, setting the working path serial number to be 0, and setting the switched protection path serial number to be 0;
if the protection path is 1 to 1, setting the working path serial number as 1, and setting the switched protection path serial number as 1;
if the ratio is M: and N protection paths, setting the working path with the interrupted working path serial number as x, where x < ═ M, and the switched protection path serial number as y, where y < ═ N.
On the basis of the above technical solution, the S3 specifically includes the following steps:
s31, the network manager receives the switching event list;
s32, obtaining the protection group node ID from the switching event list, and positioning the circuit service in the path topology in the network management according to the protection group node ID;
and S33, calculating the real-time path switching state of the circuit service.
The invention discloses a topology presentation system of transmission path real-time state, comprising:
the configuration module is used for configuring the node ID and the protection path type of the protection group of the circuit service on the network management and displaying the node ID and the protection path type in the path topology;
a switching event reporting module, configured to report, to a network manager, a switching event list carrying a protection group node ID by a protection group node when a switching event or a switching recovery event occurs;
a switching state calculation module, configured to set a real-time path switching state of a circuit service when the network manager receives the switching event list;
and the switching state refreshing module is used for refreshing the display of the real-time path switching state of the circuit service in the path topology.
On the basis of the above technical solution, the protection path types include an unprotected path, a 1-to-1 protection path, and M: and N protecting the path.
On the basis of the above technical solution, the switching event reporting module is specifically configured to:
s21, setting the actual service in the working path in the initial state;
s22, monitoring whether the protection group node receives the network management control command, if not, turning to S23; if the lock to primary is received, go to S21; if the 'forced to standby' is received, go to S24;
s23, detecting the working path and protection path alarm of the protection group node, judging whether to reverse to the standby path, if yes, turning to S24, and if not, turning to S21;
s24, according to the protection path type of the configured circuit service, obtaining the working path serial number and the switched protection path serial number, and turning to S25;
s25, generating switching event information, bringing the switching event information into a switching event list, reporting the switching event information to the network management system with the protection group node ID, and switching to S26;
and S26, judging whether the protection group node has the completion of switching recovery, if so, generating switching recovery event information, bringing the switching recovery event information into a switching event list, and reporting to the network manager with the protection group node ID, otherwise, returning to S22.
On the basis of the above technical solution, the switching event reporting module sets the working path serial number and the switched protection path serial number according to the configured protection path type of the circuit service, and the specific process is as follows:
if the protection path type is the unprotected path type, setting the working path serial number to be 0, and setting the switched protection path serial number to be 0;
if the protection path is 1 to 1, setting the working path serial number as 1, and setting the switched protection path serial number as 1;
if the ratio is M: and N protection paths, setting the working path with the interrupted working path serial number as x, where x < ═ M, and the switched protection path serial number as y, where y < ═ N.
On the basis of the above technical solution, the switching state calculating module is specifically configured to:
the network management receives the list of switching events,
obtaining a protection group node ID from the switching event list, and positioning circuit service in a path topology in a network manager according to the protection group node ID;
and calculating the real-time path switching state of the circuit service.
Compared with the prior art, the invention has the advantages that:
in the process of daily opening and maintenance of a transmission network, the invention configures the node ID and the protection path type of a protection group of a circuit service on a network manager, and displays the node ID and the protection path type in a path topology; when a switching event or a switching recovery event occurs, the protection group node reports a switching event list carrying the ID of the protection group node to a network manager; the network management receives the switching event list and calculates the real-time path switching state of the circuit service; and refreshing the display of the real-time path switching state of the circuit service in the path topology on the network management. When the service is switched, the network manager can quickly calculate the current actual service path and visually display the current actual service path on the topological graph through the real and the dotted lines, the working path, the protection path serial number and other graphs, so that a user directly observes the current actual service path of the circuit service through the service path topological graph.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Example 1:
referring to fig. 1, an embodiment of the present invention provides a topology presentation method for a real-time state of a transmission path, including the following steps:
s1, configuring the protection group node ID and protection path type of the circuit service on the network management, and displaying in the path topology;
s2, when a switching event or a switching recovery event occurs, the protection group node reports a switching event list carrying the ID of the protection group node to the network manager;
s3, the network manager receives the switching event list and calculates the real-time path switching state of the circuit service;
s4, refreshing the display of the real-time path switching state of the circuit service in the path topology on the network management.
The protection path types include an unprotected path, a 1-to-1 protected path, and M: and N protecting the path.
In the process of daily opening and maintenance of a transmission network, the invention configures the node ID and the protection path type of a protection group of a circuit service on a network manager, and displays the node ID and the protection path type in a path topology; when a switching event or a switching recovery event occurs, the protection group node reports a switching event list carrying the ID of the protection group node to a network manager; the network management receives the switching event list and calculates the real-time path switching state of the circuit service; and refreshing the display of the real-time path switching state of the circuit service in the path topology on the network management. When the service is switched, the network manager can quickly calculate the current actual service path and visually display the current actual service path on the topological graph through the real and the dotted lines, the working path, the protection path serial number and other graphs, so that a user directly observes the current actual service path of the circuit service through the service path topological graph.
Example 2:
on the basis of embodiment 1, step S2 specifically includes the following processes:
s21, setting the actual service in the working path in the initial state;
s22, monitoring whether the protection group node receives the network management control command, if not, turning to S23; if the lock to primary is received, go to S21; if the 'forced to standby' is received, go to S24;
s23, detecting the working path and protection path alarm of the protection group node, judging whether to reverse to the standby path, if yes, turning to S24, and if not, turning to S21;
s24, obtaining the working path serial number and the switched protection path serial number according to the configured protection path type of the circuit service;
s25, generating switching event information, bringing the switching event information into the switching event list, and reporting to the network manager with the protection group node ID;
and S26, judging whether the protection group node has the completion of switching recovery, if so, generating switching recovery event information, bringing the switching recovery event information into a switching event list, and reporting to the network manager with the protection group node ID, otherwise, returning to S22.
The information reported by the protection group node in S22 is as follows:
in step S24, according to the protection path type of the circuit service, the working path sequence number and the switched protection path sequence number are determined, which specifically includes the following processes:
if the protection path type is the unprotected path type, the serial number of the working path is 0, and the serial number of the switched protection path is;
if the protection path is 1 to 1, the serial number of the working path is 1, and the serial number of the switched protection path is 1;
if the ratio is M: and N protection paths, namely x is the working path with the interrupted working path serial number, x < ═ M, and y is the switched protection path serial number, and y < ═ N.
The invention realizes that the network manager can quickly calculate the current actual service path when the service is switched in the daily opening and maintenance process of the transmission network.
Example 3:
on the basis of embodiment 1, S3 specifically includes the following processes:
s31, the network manager receives the switching event list;
s32, obtaining the protection group node ID from the switching event list, and positioning the circuit service in the path topology in the network management according to the protection group node ID;
and S33, calculating the real-time path switching state of the circuit service.
When the network manager receives the switching event in S31, the network manager sends an acknowledgement to the device after receiving the device switching event, and the device deletes the corresponding event in the switching event information list after receiving the acknowledgement.
In S33, the real-time state of the circuit traffic path is calculated, and the state is divided into the following states:
1) no switching;
2) 1-to-1 protection backward protection path;
3) n protection working path x (x < ═ M) is inverted to protection path y (y < ═ N).
Step S4 specifically includes the following processes: the real-time path switching state display of the circuit service is refreshed in the path topology in the network management: the working paths are shown as solid lines and the protection paths as dashed lines, the different working paths and protection paths being shown in different colors.
In the process of daily opening and maintenance of the transmission network, the invention realizes that when the service is switched, the network manager can quickly calculate the current actual service path and visually display the current actual service path on the topological graph through figures such as real, dotted lines, working paths, protection path serial numbers and the like, so that a user directly observes the current actual service path of the circuit service through the service path topological graph.
Example 4:
referring to fig. 2, an embodiment of the present invention discloses a topology presentation system for a real-time status of a transmission path, including:
the configuration module is used for configuring the node ID and the protection path type of the protection group of the circuit service on the network management and displaying the node ID and the protection path type in the path topology;
a switching event reporting module, configured to report, to a network manager, a switching event list carrying a protection group node ID by a protection group node when a switching event or a switching recovery event occurs;
a switching state calculation module, configured to set a real-time path switching state of a circuit service when the network manager receives the switching event list;
and the switching state refreshing module is used for refreshing the display of the real-time path switching state of the circuit service in the path topology.
The protection path types include an unprotected path, a 1-to-1 protected path, and M: and N protecting the path.
In the process of daily opening and maintenance of a transmission network, the invention configures the node ID and the protection path type of a protection group of a circuit service on a network manager, and displays the node ID and the protection path type in a path topology; when a switching event or a switching recovery event occurs, the protection group node reports a switching event list carrying the ID of the protection group node to a network manager; the network management receives the switching event list and calculates the real-time path switching state of the circuit service; and refreshing the display of the real-time path switching state of the circuit service in the path topology on the network management. When the service is switched, the network manager can quickly calculate the current actual service path and visually display the current actual service path on the topological graph through the real and the dotted lines, the working path, the protection path serial number and other graphs, so that a user directly observes the current actual service path of the circuit service through the service path topological graph.
Example 5:
on the basis of embodiment 4, the switching event reporting module specifically includes the following processes:
setting an initial state as that the actual service is in a working path;
when the monitoring protection group node detects that a network management control command of 'forcing to standby' is received, or a backup path is required to be reversed according to the working path and protection path alarm of the protection group node, the working path serial number and the switched protection path serial number are obtained according to the protection path type of the configured circuit service; generating switching event information, bringing the switching event information into a switching event list, and reporting the switching event information to a network manager with a protection group node ID; if the protection group node is detected to have switching recovery completed, generating switching recovery event information, bringing the switching recovery event information into a switching event list, and reporting the switching recovery event information to the network manager with the protection group node ID;
if the fact that the node is locked to the main use is detected, or the backup path is not needed to be reversed according to the working path and the protection path alarm of the protection group node, the initial state is set to be that the actual service is in the working path.
The switching event reporting module determines the working path serial number and the switched protection path serial number according to the protection path type of the circuit service, and specifically includes the following processes:
if the protection path type is the unprotected path type, the serial number of the working path is 0, and the serial number of the switched protection path is;
if the protection path is 1 to 1, the serial number of the working path is 1, and the serial number of the switched protection path is 1;
if the ratio is M: and N protection paths, namely x is the working path with the interrupted working path serial number, x < ═ M, and y is the switched protection path serial number, and y < ═ N.
The invention realizes that the network manager can quickly calculate the current actual service path when the service is switched in the daily opening and maintenance process of the transmission network.
Example 6:
on the basis of embodiment 4, the switching state calculating module is specifically configured to:
the network management receives the list of switching events,
obtaining a protection group node ID from the switching event list, and positioning circuit service in a path topology in a network manager according to the protection group node ID;
and calculating the real-time path switching state of the circuit service.
When the network manager receives the switching event, the network manager sends a confirmation to the device after receiving the device switching event, and the device deletes the corresponding event in the switching event information list after receiving the confirmation.
The network management calculates the real-time state of the circuit service path, and the state is divided into the following states:
1) no switching;
2) 1-to-1 protection backward protection path;
3) n protection working path x (x < ═ M) is inverted to protection path y (y < ═ N).
The switching state refreshing module is specifically configured to: the real-time path switching state display of the circuit service is refreshed in the path topology in the network management: the working paths are shown as solid lines and the protection paths as dashed lines, the different working paths and protection paths being shown in different colors.
In the process of daily opening and maintenance of the transmission network, the invention realizes that when the service is switched, the network manager can quickly calculate the current actual service path and visually display the current actual service path on the topological graph through figures such as real, dotted lines, working paths, protection path serial numbers and the like, so that a user directly observes the current actual service path of the circuit service through the service path topological graph.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.