Method and system for realizing flexible management of SR Policy plane capability for equipment, equipment and medium
By comparing the acquisition library and the SDN controller configuration library, the abnormal device is automatically handled, and the path topology display of Policy tunnels is realized by parsing Policy configuration information and reverse querying IPV6 addresses, which solves the cumbersome configuration and difficult visualization problems in the deployment and management of equipment SR Policy, and improves the accuracy and maintainability of configurations.
Patent Information
- Application Number
- CN202510189387.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-20
- Publication Date
- 2025-06-06
AI Technical Summary
The prior art has problems such as cumbersome configuration and error-prone in the SR Policy plane deployment and management of equipment. Especially when new devices are launched or offline, configurations need to be manually issued and removed, and it is difficult to realize intuitive visualization of Policy tunnel topology.
By comparing the acquisition library and the SDN controller configuration library, the abnormal configuration devices are automatically identified and handled, and the automatic addition of newly launched devices and the automatic removal of equipment to be offline is realized. By analyzing Policy configuration information and reverse querying IPV6 addresses, the path topology display of Policy tunnel is realized.
It realizes unified management of the equipment Policy plane configuration, reduces the workload of human configuration, improves configuration accuracy and maintainability, and visualizes the topological direction of Policy tunnels, simplifying the positioning and resolution of network problems.
Smart Images

Figure CN120110871A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of IP telecommunication networks and SDN controllers in data communications, and in particular relates to a method, system, device and medium for realizing flexible management of SR Policy plane capabilities of a device. Background Art
[0002] SRv6, or segment routing based on the IPv6 forwarding plane, can be understood as a combination of SR (Segment Routing) and IPv6, representing a new generation of IP bearer protocols. It uses existing IPv6 forwarding technology and flexible IPv6 extension headers to give the network programmable features. The network has programmable capabilities, which can achieve flexible expansion of services. In combination with SDN (Software Defined Network), it can also achieve flexible scheduling of the network. The SDN controller collects SRv6 node and path information in the device, plans appropriate paths and services provided by each node according to business needs, and notifies the information to the head node. Based on the received information, the head node transmits the business data to the destination node through the SRv6 network.
[0003] The existing technology for sending configuration to devices is relatively mature. Network engineers no longer need to type commands on the devices to configure. Instead, they can use the corresponding configuration templates, fill in the corresponding parameters, and automatically send them. With the rise of SRv6 technology, for the sending of policy configuration, it is reasonable to still set the corresponding template parameters and then convert them into JSON format and send them to the devices to automatically deploy policies.
[0004] However, the policy plane deployment of devices is for the PE devices of the entire network. Each device must be associated with other PE devices in the entire network. When a new device is online, it is necessary to add the device to the specified policy plane for specified deployment. The relevant configurations of all peer devices must be issued to the device, and the configuration with the current online device as the peer must be issued to all other devices. Similarly, when a device is offline, it is necessary to remove all policy plane configuration information of the offline device and the configurations of all other devices associated with the offline device. Configuration parameters are interconnected between devices and there are many of them. It is not easy to successfully deploy all of them through the traditional single-line configuration delivery. The workload is cumbersome and prone to errors. In addition, there are some objective reasons, such as manually configuring the corresponding policy configuration on the device directly, resulting in more or less policy configurations on some devices, or policy configurations that are different from those issued in the plan, which in turn causes a series of network problems. When problems occur, locating and retrieving the problems and solving them is also a large workload, time-consuming and labor-intensive project. Finally, after the policy configuration is established, network engineers hope to be able to intuitively see the specific topology of their tunnels.
[0005] This requires unified management of each planned policy plane. In addition to targeted deployment and removal operations, it is also necessary to identify and warn devices with configuration problems. And for the specific topology of each policy tunnel, since the tunnel configuration on the device is associated with the ipv6 address, the specific topological path direction is not easy to see intuitively through the information returned by the device. Now there is an urgent need for a policy management system to visualize each policy tunnel. Summary of the invention
[0006] In view of the deficiencies in the prior art, the present invention provides a method, system, device and medium for realizing the flexible management of the SR Policy plane capability of the device, and uniformly managing the Policy configuration of the overall backbone network PE device. According to the comparison between the collection library and the configuration library, it is possible to know which devices have not yet deployed the complete Policy, which devices have never been deployed, and which devices have deployed plane configuration errors and other information. The policy plane can be added to the newly online device, and the policy plane can be removed for the offline device, so as to realize automatic network configuration management, so that the policy plane configuration of the network device is correct, concise and easy to maintain. The Policy that is currently configured with the Policy tunnel can be used to display the topology of the current path, thereby triggering the subsequent path tuning logic.
[0007] To achieve the above object, the present invention adopts the following technical solutions: A method for flexibly managing SR Policy plane capabilities of a device. To optimize the above technical solutions, the specific measures taken also include: Further, the following steps are included: Collect the current PE device configuration of the entire network, parse the collected Policy configuration information and store it in the collection database; After collecting the policy configuration information of the entire network for the first time, synchronize the collection library to the SDN controller configuration library to initialize the SDN controller configuration library; The collection library and SDN controller configuration library are updated separately; The data in the collection library is the device policy plane configuration data obtained through scheduled or manual scanning, and the data in the SDN controller configuration library is the device policy plane configuration data deployed through the SDN controller. The data in the collection library and the data in the SDN controller configuration library are compared with the policy configuration information in units of device and plane type to find out the devices with abnormal configuration and report alarms, and perform troubleshooting based on the alarm results. For device pairs for which a Policy has been established, the Policy tunnel is presented to obtain the topological direction of the optimal path of the Policy tunnel.
[0008] Furthermore, the step of parsing the collected Policy configuration information and storing it in the collection library is as follows: The collected Policy configuration information is parsed, and each configuration is taken as a field, and the corresponding parameters of the configuration are taken as values, and stored in the database. The Policy triplet information is used as the unique index of the Policy itself. The Policy triplet includes the local device, the opposite device, and the plane type.
[0009] Furthermore, the abnormally configured device is an over-configured, under-configured or incorrectly configured device; the Policy configuration information is compared to find the abnormally configured device and report an alarm, and the troubleshooting work for the alarm result is specifically as follows: In the SDN controller configuration library, the plane type and the local device are grouped and deduplicated, and the resulting device set is the "deployment pool" that can distinguish the planes. All devices are deployed on the current plane, and duplicate Policy configurations are deleted. The devices not in the "deployment pool" are devices to be deployed, and the Policy plane deployment of the devices to be deployed is performed on these devices to be deployed. The devices in the "deployment pool" are fully interconnected and uniquely located through the Policy triplet. If the number of Policies established for a certain device is less than the number of devices in the "deployment pool", the device lacks the Policy established with some devices in the deployment pool and needs to be supplemented. If the number of Policies established for a certain device is greater than the number of devices in the deployment pool, it means that the device has duplicated the Policy established with some devices in the deployment pool and needs to delete the configuration.
[0010] Furthermore, the presentation of the Policy tunnel is specifically as follows: The direction of the Policy tunnel is associated with each hop through the IPv6 address. According to the unique IPv6 address corresponding to each device in the SDN controller, each allocated IPv6 address also uniquely corresponds to a certain device. Reverse query is performed through the IPv6 address to obtain specific device information and realize path topology visualization operation.
[0011] The present invention also proposes a system for flexibly managing SR Policy plane capabilities of a device, including: The collection module is used to collect the current PE device configuration of the entire network, parse the collected Policy configuration information and store it in the collection library; The data synchronization module is used to synchronize the collection library to the SDN controller configuration library after collecting the policy configuration information of the entire network for the first time, so as to initialize the SDN controller configuration library; An update module is used to update the collection library and the SDN controller configuration library respectively; the data in the collection library is the device policy plane configuration data obtained by scheduled or manual scanning, and the data in the SDN controller configuration library is the device policy plane configuration data deployed through the SDN controller; The comparison alarm module is used to compare the data in the collection library with the data in the SDN controller configuration library in units of device and plane type, to find out the devices with abnormal configurations and report alarms, and to perform troubleshooting based on the alarm results; The tunnel topology presentation module is used to present the Policy tunnel for the device pair for which the Policy has been established, and obtain the topological direction of the optimal path of the Policy tunnel.
[0012] The present invention also proposes an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for flexibly managing the SR Policy plane capability of the device as described above is implemented.
[0013] The present invention also proposes a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the method for flexibly managing the SR Policy plane capability of a device as described above.
[0014] The beneficial effects of the present invention are: 1. Compared with the Policy plane configuration of existing equipment, the present invention can be deployed and dismantled on demand through the controller automation, without the need for human memory and manual configuration.
[0015] 2. By comparing the periodic collection with the current configuration library, you can clearly perceive whether the configuration status of the Policy plane on the current device is normal, whether it is missing, and which devices are missing configuration, so that you can deal with it in a targeted manner and locate the actual network problem.
[0016] 3. The present invention can display the optimal path topology of the Policy currently configured with the Policy tunnel, and then determine the forwarding of traffic to trigger subsequent path optimization logic. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a flow chart of the method proposed by the present invention for implementing flexible management of SR Policy plane capabilities of a device. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0019] Embodiment 1
[0020] The present invention proposes a method for flexibly managing the SR Policy plane capability of a device. The overall process of the method is as follows: Figure 1 As shown, the following steps are included: Collect the current PE device configuration of the entire network, and parse the collected Policy configuration information and store it in the collection library; the parsing of the collected Policy configuration information and storing it in the collection library is specifically as follows: The collected Policy configuration information is parsed, and each configuration is taken as a field, and the corresponding parameters of the configuration are taken as values, and stored in the database. The Policy triplet information is used as the unique index of the Policy itself. The Policy triplet includes the local device, the opposite device, and the plane type.
[0021] After collecting the policy configuration information of the entire network for the first time, synchronize the collection library to the SDN controller configuration library to initialize the SDN controller configuration library; the SDN controller configuration library has the same configuration fields as the collection library. Because there are some historical policy information manually configured on the device before the implementation of this method, the policy collection information obtained by the current first scan is used as the initial data of the controller configuration library. At this time, there will be no difference between the configuration library and the collection library.
[0022] The collection library and SDN controller configuration library are updated separately; The data in the collection library is the device policy plane configuration data obtained through scheduled or manual scanning, and the data in the SDN controller configuration library is the device policy plane configuration data deployed through the SDN controller. The data in the collection library and the data in the SDN controller configuration library are compared with the policy configuration information in units of device and plane type to find out the devices with abnormal configuration and report alarms, and perform troubleshooting based on the alarm results. The abnormally configured device is a device with over-configuration, under-configuration or wrong configuration. The Policy configuration information is compared to find the abnormally configured device and report an alarm. The troubleshooting work based on the alarm result is specifically as follows: In the SDN controller configuration library, the plane type and the local device are grouped and deduplicated, and the resulting device set is a "deployment pool" that can distinguish planes. All devices are deployed on the current plane, and duplicate Policy configurations are deleted. Devices not in the "deployment pool" are devices to be deployed, and the Policy plane deployment of these devices to be deployed is carried out. The devices in the "deployment pool" are fully interconnected and uniquely located through the Policy triple. If the number of Policies established for a certain device is less than the number of devices in the "deployment pool", the device lacks the Policy established with certain devices in the deployment pool, and additional configuration is required. If the number of Policies established for a certain device is greater than the number of devices in the deployment pool, it means that the device has duplicated the Policy established with certain devices in the deployment pool, and the configuration needs to be deleted. By starting a scheduled scan of the policy information of the PE devices in the entire network every day, and the operator will also deploy and remove the Policy plane of certain devices on demand through the controller, the configuration problems can be discovered in time through this comparison.
[0023] From the alarm results, we can know which devices have problems, and carry out targeted troubleshooting. At the same time, for the newly online devices, we establish the Policy plane so that they can be interconnected with other devices with the same plane that have already deployed the Policy; for the offline devices, we dismantle the Policy plane so that they can be interconnected and dismantled with other devices with the same plane that have already deployed the Policy. When the deployment or dismantling is completed, the configuration scanning logic is triggered again to verify the results.
[0024] For device pairs that have established policies, the Policy tunnel is presented to obtain the topological direction of the optimal path of the Policy tunnel. The direction of the Policy tunnel is associated with each hop through the IPv6 address. According to the unique IPv6 address corresponding to each device in the SDN controller, each allocated IPv6 address also uniquely corresponds to a certain device. Through the IPv6 address, a reverse query is performed to obtain specific device information and realize the visualization of the path topology.
[0025] Embodiment 2
[0026] The present invention proposes a system for implementing flexible management of SR Policy plane capabilities of a device corresponding to the method of embodiment 1, including: The collection module is used to collect the current PE device configuration of the entire network, parse the collected Policy configuration information and store it in the collection library; The data synchronization module is used to synchronize the collection library to the SDN controller configuration library after collecting the policy configuration information of the entire network for the first time, so as to initialize the SDN controller configuration library; An update module is used to update the collection library and the SDN controller configuration library respectively; the data in the collection library is the device policy plane configuration data obtained by scheduled or manual scanning, and the data in the SDN controller configuration library is the device policy plane configuration data deployed through the SDN controller; The comparison alarm module is used to compare the data in the collection library with the data in the SDN controller configuration library in units of device and plane type, to find out the devices with abnormal configurations and report alarms, and to perform troubleshooting based on the alarm results; The tunnel topology presentation module is used to present the Policy tunnel for the device pair for which the Policy has been established, and obtain the topological direction of the optimal path of the Policy tunnel.
[0027] The implementation methods of each module and module function in the system are completely consistent with the steps of the method in Example 1, so they will not be repeated here.
[0028] Embodiment 3
[0029] The present invention proposes an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for flexibly managing the SR Policy plane capability of the device as described in Embodiment 1 is implemented.
[0030] Embodiment 4
[0031] The present invention provides a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the method for flexibly managing the SR Policy plane capability of a device as described in the first embodiment.
[0032] In the embodiments disclosed in the present application, the computer storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. The computer storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specific examples of computer storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0033] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0034] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A method for flexibly managing SR Policy plane capabilities of a device, characterized in that: The following steps are involved: Collect the current PE device configuration of the entire network, parse the collected Policy configuration information and store it in the collection database; After collecting the policy configuration information of the entire network for the first time, synchronize the collection library to the SDN controller configuration library to initialize the SDN controller configuration library; The collection library and SDN controller configuration library are updated separately; The data in the collection library is the device policy plane configuration data obtained through scheduled or manual scanning, and the data in the SDN controller configuration library is the device policy plane configuration data deployed through the SDN controller. The data in the collection library and the data in the SDN controller configuration library are compared with the policy configuration information in units of device and plane type to find out the devices with abnormal configuration and report alarms, and perform troubleshooting based on the alarm results. For device pairs for which a Policy has been established, the Policy tunnel is presented to obtain the topological direction of the optimal path of the Policy tunnel.
2. The method for implementing flexible management of SR Policy plane capabilities of a device according to claim 1, characterized in that: The method of parsing the collected Policy configuration information and storing it in the collection database is as follows: The collected Policy configuration information is parsed, and each configuration is taken as a field, and the corresponding parameters of the configuration are taken as values, and stored in the database. The Policy triplet information is used as the unique index of the Policy itself. The Policy triplet includes the local device, the opposite device, and the plane type.
3. The method for implementing flexible management of SR Policy plane capabilities of a device according to claim 1, characterized in that: The abnormally configured device is a device with over-configuration, under-configuration or wrong configuration. The Policy configuration information is compared to find the abnormally configured device and report an alarm. The troubleshooting work based on the alarm result is specifically as follows: In the SDN controller configuration library, the plane type and the local device are grouped and deduplicated, and the resulting device set is the "deployment pool" that can distinguish the planes. All devices are deployed on the current plane, and duplicate Policy configurations are deleted. Devices not in the "deployment pool" are devices to be deployed, and the Policy plane deployment of the devices to be deployed is performed on these devices to be deployed. The devices in the "deployment pool" are fully interconnected and uniquely located through the Policy triplet. If the number of Policies established for a certain device is less than the number of devices in the "deployment pool", the device lacks the Policy established with some devices in the deployment pool and needs to be supplemented. If the number of Policies established for a certain device is greater than the number of devices in the deployment pool, it means that the device has duplicated the Policy established with some devices in the deployment pool and needs to delete the configuration.
4. The method for implementing flexible management of SR Policy plane capabilities of a device according to claim 1, characterized in that: The presentation of the Policy tunnel is specifically as follows: The direction of the Policy tunnel is associated with each hop through the IPv6 address. According to the unique IPv6 address corresponding to each device in the SDN controller, each allocated IPv6 address also uniquely corresponds to a certain device. Reverse query is performed through the IPv6 address to obtain specific device information and realize path topology visualization operation.
5. A system for flexibly managing SR Policy plane capabilities of a device, characterized in that: include: The collection module is used to collect the current PE device configuration of the entire network, parse the collected Policy configuration information and store it in the collection library; The data synchronization module is used to synchronize the collection library to the SDN controller configuration library after collecting the policy configuration information of the entire network for the first time, so as to initialize the SDN controller configuration library; An update module is used to update the collection library and the SDN controller configuration library respectively; the data in the collection library is the device policy plane configuration data obtained by scheduled or manual scanning, and the data in the SDN controller configuration library is the device policy plane configuration data deployed through the SDN controller; The comparison alarm module is used to compare the data in the collection library with the data in the SDN controller configuration library in units of device and plane type, to find out the devices with abnormal configurations and report alarms, and to perform troubleshooting based on the alarm results; The tunnel topology presentation module is used to present the Policy tunnel for the device pair for which the Policy has been established, and obtain the topological direction of the optimal path of the Policy tunnel.
6. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for flexibly managing the SR Policy plane capability of a device is implemented as described in any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, characterized in that: The computer program enables a computer to execute the method for flexibly managing SR Policy plane capabilities of a device as described in any one of claims 1 to 4.