Communication cloud service configuration verification method, router, equipment and storage medium
By establishing a verification database between the routers carrying the B network and the communication cloud pool, the problem of low and unreliable verification of communication cloud service configuration is solved, efficient and reliable business configuration is achieved, and labor costs and failure risks are reduced. .
Patent Information
- Application Number
- CN202411578125.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-11-06
AI Technical Summary
In the prior art, the verification efficiency of communication cloud service configuration is low and unreliable, resulting in frequent configuration errors, increasing labor costs and failure risks.
By establishing a verification database between the routers that carry the B network and the communication cloud pool, the VRF planning configuration information is quickly and independently compared, ensuring that the configuration information does not conflict, and independently modifying it when conflicts are discovered, realizing the independence and reliability of business configuration.
It significantly improves the generation and configuration efficiency of communication cloud service configuration, reduces labor costs, avoids configuration errors and failure risks, and simplifies network management.
Smart Images

Figure CN119299305A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network configuration verification, and in particular to a verification method for communication cloud service configuration, a router carrying a B network, a router of a communication cloud pool, an electronic device and a computer-readable storage medium. Background Art
[0002] Business needs are added dynamically. Each business need will be converted into a corresponding configuration and distributed. A configuration will be distributed to devices in multiple links. The devices in each link may be maintained by different engineers. Engineers do not fully detect the configuration, and the reliability and accuracy are low. Therefore, failures caused by configuration errors often occur.
[0003] At present, the business VPN (Virtual Private Network) configuration of the regional communication cloud pool adopts a purely manual configuration method, and the manual verification mechanism is inefficient and unreliable. Summary of the invention
[0004] The technical problem to be solved by the present invention is to address the above-mentioned deficiencies in the prior art and to provide a method for verifying the configuration of a communication cloud service, a router that carries a B network, a router of a communication cloud pool, an electronic device, and a computer-readable storage medium. The method can realize intelligent and effective verification of the communication cloud service configuration, improve the generation and configuration efficiency of the communication cloud service configuration, avoid the risk of failure caused by manual configuration and verification, improve the reliability of the communication cloud service configuration, and reduce the labor cost of the communication cloud service configuration.
[0005] In a first aspect, the present invention provides a communication cloud service configuration verification method, which is applied to a first router. The communication cloud service configuration verification method includes: configuring a first virtual private network service routing forwarding VRF planning configuration information based on current service requirements,
[0006] Among them, the first router refers to the router that carries the B network; based on its own verification database, it determines whether the first VRF planning configuration information is configured correctly; in response to the first VRF planning configuration information being configured correctly, it inherits the first VRF planning configuration information to generate the second VRF planning configuration information, and sends the second VRF planning configuration information to the second router, so that the second router determines whether the second VRF planning configuration information is configured correctly based on its own verification database, wherein the second router refers to the router of the communication cloud pool.
[0007] Preferably, the configuration of the first virtual private network service routing forwarding VRF planning configuration information based on the current business needs specifically includes: configuring the planned VRF name, planned routing identifier information and planned routing target information based on the current business needs; splicing the planned routing identifier information, the planned VRF name and the planned routing target information to obtain the first VRF planning configuration information. Before judging whether the first VRF planning configuration information is configured correctly based on its own verification database, the verification method for the communication cloud service configuration also includes: collecting VRF configuration files of all its own services; separating the VRF configuration files of different services to obtain the VRF name, routing identifier information and routing target information of each service to form its own verification database.
[0008] Preferably, the determining whether the first VRF planning configuration information is correctly configured based on its own verification database specifically includes: determining whether at least one of the VRF name, routing discriminator information and routing target information in its own verification database is respectively the same as the planned VRF name, the planned routing discriminator information and the planned routing target information; in response to the existence of at least one of the VRF name, routing discriminator information and routing target information being respectively the same as the planned VRF name, the planned routing discriminator information and the planned routing target information, determining that the first VRF planning configuration information is incorrectly configured; in response to the VRF name, routing discriminator information and routing target information being respectively different from the planned VRF name, the planned routing discriminator information and the planned routing target information, determining that the first VRF planning configuration information is incorrectly configured; in response to the VRF name and routing discriminator information being respectively different from the planned VRF name and the planned routing discriminator information, determining the configuration relationship between the current service and each service in its own verification database based on the planned routing target information and the routing target information of each service in its own verification database, and determining whether the configuration relationship conforms to the preset relationship between the current service and each service in its own verification database; in response to the configuration relationship conforming to the preset relationship, determining that the first VRF planning configuration information is correctly configured.
[0009] Preferably, the planned routing target information includes at least one planned import information or at least one planned export information, the configuration relationship includes a first sharing relationship, a second sharing relationship, a third sharing relationship and an isolation relationship, and the configuration relationship between the current service and each service is determined based on the planned routing target information and the routing target information of each service in its own verification database, specifically including: judging whether the planned export information of the current service is equal to the import information of the target service, and whether the planned import information of the current service is equal to the export information of the target service, wherein the target service refers to the service in its own verification database; in response to the planned export information being equal to the import information of the target service, and the planned import information being not equal to The export information of the target business determines that the configuration relationship between the current business and the target business is a first sharing relationship; in response to the fact that the planned export information is not equal to the import information of the target business, and the planned import information is equal to the export information of the target business, the configuration relationship between the current business and the target business is determined to be a second sharing relationship; in response to the fact that the planned export information is equal to the import information of the target business, and the planned import information is equal to the export information of the target business, the configuration relationship between the current business and the target business is determined to be a third sharing relationship; in response to the fact that the planned import information is not equal to the export information of the target business, and the planned export information is not equal to the import information of the target business, the configuration relationship between the current business and the target business is determined to be an isolation relationship.
[0010] Preferably, after inheriting the first VRF planning configuration information to generate the second VRF planning configuration information, the verification method for the communication cloud service configuration also includes: accessing the first VRF planning configuration information; obtaining the judgment result of the second router on the second VRF planning configuration information based on its own verification database, and judging whether the judgment result is a correct configuration; in response to the judgment result being a correct configuration, judging whether the current service in a preset time period is effective; in response to the judgment result being a configuration error, or the current service is not effective, judging whether there is a problem with at least one of the planned routing target information of the current service and the preset relationship; in response to the existence of a problem with the planned routing information of the current service and the preset relationship, optimizing the planned routing information of the current service and the preset relationship based on the planned routing information of the current service and the routing target information of each service in its own verification database.
[0011] In a second aspect, the present invention also provides a method for verifying the configuration of a communication cloud service, which is applied to a second router. The method for verifying the configuration of a communication cloud service includes: receiving second VRF planning configuration information sent by a first router, wherein the second VRF planning configuration information is configured by the first router according to current business needs, and forwarding VRF planning configuration information of a virtual private network service routing of the first router. Based on its own verification database, it is determined whether the first VRF planning configuration information is correctly configured. In response to the correct configuration of the first VRF planning configuration information, the first VRF planning configuration information is inherited and generated. The first router refers to the router that carries the B network, and the second router refers to the router of the communication cloud pool; based on its own verification database, it is determined whether the second VRF planning configuration information is correctly configured.
[0012] In the third aspect, the present invention also provides a router that carries the B network, including: a configuration module, a first judgment module and a sending module, the configuration module is used to configure the first virtual private network service routing forwarding VRF planning configuration information based on current business needs, wherein the first router refers to the router that carries the B network, the first judgment module is connected to the configuration module, and is used to judge whether the first VRF planning configuration information is configured correctly based on its own verification database, the sending module is connected to the first judgment module, and is used to respond to the first VRF planning configuration information being correctly configured, inherit the first VRF planning configuration information to generate second VRF planning configuration information, and send the second VRF planning configuration information to the second router, so that the second router can judge whether the second VRF planning configuration information is configured correctly based on its own verification database, wherein the second router refers to the router of the communication cloud pool.
[0013] In a fourth aspect, the present invention also provides a router of a communication cloud pool, comprising: a receiving module and a second judgment module, the receiving module being used to receive second VRF planning configuration information sent by the first router, wherein the second VRF planning configuration information is configured by the first router according to current business needs to forward the first virtual private network service routing VRF planning configuration information, and based on its own verification database, judging whether the first VRF planning configuration information is correctly configured, in response to the first VRF planning configuration information being correctly configured, inheriting the first VRF planning configuration information generation, the first router refers to the router carrying the B network, the second router refers to the router of the communication cloud pool, the second judgment module is connected to the receiving module, and is used to judge whether the second VRF planning configuration information is correctly configured based on its own verification database.
[0014] In a fifth aspect, the present invention also provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the communication cloud service configuration verification method provided in the first aspect or the second aspect above.
[0015] In a sixth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for verifying the communication cloud service configuration provided in the first aspect or the second aspect above is implemented.
[0016] The present invention provides a verification method for communication cloud service configuration, a router carrying a B network, a router of a communication cloud pool, an electronic device, and a computer-readable storage medium. The routers carrying the B network and the communication cloud pool respectively compare VRF planning configuration information and all their respective service VRF configuration information based on their respective verification databases to ensure that the VRF planning configuration information does not conflict with all their respective services of the routers carrying the B network and the communication cloud pool. The first router and the second router respectively use the first VRF planning configuration information and the second VRF planning configuration information to perform service configuration. If there is a service conflict between the first router and the second router, its own VRF planning configuration information can be independently modified to ensure that the first router and the second router have a service conflict. The service configurations in the two network environments of the carrier B network and the communication cloud pool are independent of each other and will not affect each other, thereby enhancing the reliability of the VRF planning configuration information of the carrier B network and the communication cloud pool network, and significantly reducing the time for configuration verification; the VRF planning configuration information of the router of the carrier B network is inherited by the router of the communication cloud pool, and then the inherited VRF configuration planning information is verified to be in conflict with its own business, ensuring that the VRF configuration planning information of the routers of the carrier B network and the communication cloud pool do not conflict with all their respective businesses and meet the current business needs, reducing the operation of reconfiguring the VRF planning configuration information, thereby reducing the possibility of configuration errors, simplifying the network management work of the communication cloud pool, and improving the reliability and efficiency of the communication cloud service configuration. Therefore, the present invention can realize intelligent and effective verification of the communication cloud service configuration, improve the generation and configuration efficiency of the communication cloud service configuration, avoid the risk of failure caused by manual configuration and verification, improve the reliability of the communication cloud service configuration, and reduce the labor cost of the communication cloud service configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a flowchart of a method for verifying communication cloud service configuration according to Embodiment 1 of the present invention;
[0018] Figure 2 This is a schematic diagram of the structure of a communication cloud service network in Embodiment 1 of the present invention;
[0019] Figure 3 This is a schematic diagram of the structure of another communication cloud service network in Embodiment 1 of the present invention;
[0020] Figure 4 This is a flow chart of a method for generating a communication cloud service configuration verification rule in Embodiment 1 of the present invention;
[0021] Figure 5 This is a flow chart of a method for optimizing a communication cloud service configuration verification rule in Embodiment 1 of the present invention;
[0022] Figure 6 This is a flowchart of another method for optimizing communication cloud service configuration verification rules in Embodiment 1 of the present invention;
[0023] Figure 7 This is a flowchart of another method for optimizing communication cloud service configuration verification rules in Embodiment 1 of the present invention;
[0024] Figure 8 This is a flowchart of a method for verifying communication cloud service configuration according to Embodiment 2 of the present invention;
[0025] Fig. 9 This is a flow chart of a method for verifying communication cloud service configuration according to Embodiment 3 of the present invention;
[0026] Fig.10 This is a schematic diagram of the structure of a router carrying a B network according to Embodiment 4 of the present invention;
[0027] Fig.11 This is a structural diagram of a router of a communication cloud pool according to Example 5 of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0029] It should be understood that the specific embodiments and drawings described herein are only used to explain the present invention rather than to limit the present invention.
[0030] It can be understood that, in the absence of conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other.
[0031] It can be understood that, for the convenience of description, the drawings of the present invention only show the parts related to the present invention, while the parts irrelevant to the present invention are not shown in the drawings.
[0032] It can be understood that each unit and module involved in the embodiments of the present invention may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.
[0033] It can be understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of the present invention may occur in an order different from that marked in the drawings.
[0034] It is understood that the flowcharts and block diagrams of the present invention illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present invention. Each box in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or may be implemented by a combination of hardware and computer instructions.
[0035] It can be understood that the units and modules involved in the embodiments of the present invention can be implemented by software or hardware. For example, the units and modules can be located in a processor.
[0036] Embodiment 1:
[0037] like Figure 1 As shown, this embodiment provides a communication cloud service configuration verification method, which is applied to a first router.
[0038] In this embodiment, the communication cloud service generally refers to various services involving data processing, transmission and management between the router of the communication cloud pool and the router of the bearer B network. The communication cloud service includes, but is not limited to: data transmission service, traffic management service, virtualization service service, resource scheduling service, monitoring and management service, customer service service and various service applications. In this embodiment, the communication cloud service is a BGP / MPLS VPN service of a virtualized service service as an example.
[0039] It should be noted that the data transmission service: transmits data traffic between the communication cloud pool and the bearer B network to ensure efficient and stable data transmission. Traffic management service: manages traffic across different networks through intelligent routing and load balancing to optimize resource utilization. Virtualization service service: provides virtual private network, virtual routing and forwarding (Virtual Routing and Forwarding, VPN Routing and Forwarding, VRF, VPN routing and forwarding) services to ensure isolation and security between services. Resource scheduling service: Automated resource allocation and scheduling to ensure that different business needs are met while reducing resource waste. Monitoring and management service: real-time monitoring of network status and performance, fault management, performance optimization and security protection. Customer service service: supports response to user needs, including user configuration, maintenance and problem solving. Multiple business applications: including voice communication, video conferencing, data storage and processing of various cloud-based applications.
[0040] BGP / MPLS VPN (BGP / MPLS VPN is also referred to as MPLS VPN, which is a common L3VPN, i.e. Layer3VPN technology. MPLS VPN uses BGP to publish VPN routes on the carrier backbone network, i.e. IP network, and uses MPLS to forward VPN packets on the carrier backbone network) realizes route isolation and information isolation through VPN route forwarding (i.e. VRF) table and LSP (Label Switched Path) in MPLS (Multi-Protocol Label Switching).
[0041] The verification method of the communication cloud service configuration includes:
[0042] S101, based on current service requirements, configure first virtual private network service routing forwarding VRF planning configuration information, wherein the first router refers to a router that carries network B.
[0043] In this embodiment, after the service platform proposes a new service requirement, if the VRF configuration files on the first router and the second router do not meet the service requirement, the first router will plan a new VRF configuration file (ie, the first VRF planning configuration information).
[0044] In addition to the corresponding configuration on the routers carrying the B network and the communication cloud pool, the BGP / MPLS VPN service may also involve other routers between the routers of the communication cloud pool and the routers carrying the B network, such as Figure 2 or Figure 3 As shown, the router carrying network B is Figure 2 The bearer B network-ar router or Figure 3 The router of the communication cloud pool is Figure 2 Cloud pool export in - dcgw router or Figure 3 The Eastern Region Communication Cloud, Western Region Communication Cloud, and Other Region Communication Clouds in the other routers are Figure 2 Other nodes in or Figure 3 The intermediate nodes 1, 2 and 3 in the example.
[0045] All routers involved in the BGP / MPLS VPN service may be collectively referred to as PE (Provider Edge) routers, and the PE routers include the first router. On the PE routers of the BGP / MPLS VPN service, there are multiple VRF tables.
[0046] Specifically, S101: based on current service requirements, configure the first virtual private network service routing forwarding VRF planning configuration information, including steps S1011-S1012:
[0047] S1011, based on current business requirements, configure a planned VRF name, planned route distinguisher information, and planned route target information.
[0048] S1012: Concatenate the planned route distinguisher information, the planned VRF name, and the planned route target information to obtain first VRF planning configuration information.
[0049] Specifically, the planning route target information includes at least one planning import information or at least one planning export information.
[0050] In this embodiment, in order to solve the problem of address overlap, BGP / MPLS VPN not only uses multiple VRF tables on PE routers, but also introduces the concepts of RD (Route Distinguisher) and RT (Route Target). RD converts a non-unique IPv4 address into a unique VPN-IPv4 address by using the 8-byte RD as an extension of the IPv4 address prefix. For example: ip vrf Zongbu
[0051] rd 11111:22222
[0052] address-family rd in ipv4.
[0053] RT is used to distribute routing information. RT includes route-traget import (i.e., import information) and route-traget export (i.e., export information), which are used for import and export strategies of routing information respectively. When exporting VPN routes from the VRF table, the VPN routes must be marked with Export RT; when importing VPN routes into the VRF table, only routes with RT marks that match any Import RT in the VRF table will be imported into the VRF table. RT enables the PE router to contain only the VPN routes directly connected to it, rather than the routes of all VPNs in the entire network, thereby saving the resources of the PE router and improving the scalability of the network. Through the reasonable configuration of Import RT and Export RT, operators can build VPN services of different topology types.
[0054] That is to say, each VRF table of VPN service has three attributes: VRF name, route distinguisher and route target. Therefore, the first router configures the planned VRF name, planned route distinguisher information and planned route target information according to the current service requirements, and obtains the first VRF planning configuration information for implementing the current service, for example: ip vrf Zongbu
[0055] rd 11111:22222
[0056] address-family ipv4
[0057] route-traget import 38351:12162
[0058] route-traget export 38351:12163.
[0059] S102: Based on its own verification database, determine whether the first VRF planning configuration information is correctly configured.
[0060] Optionally, before S102: judging whether the first VRF planning configuration information is correctly configured based on its own verification database, the communication cloud service configuration verification method further includes:
[0061] S104, collect VRF configuration files of all its services.
[0062] S105, separate the VRF configuration files of different services, obtain the VRF name, routing identifier information and routing target information of each service, so as to form its own verification database.
[0063] In this embodiment, the router carrying the B network collects the VRF configuration files of all its services, parses the VRF name, RD and RT value of each service, separates the VRF configuration files of each service, and forms a verification database of the router carrying the B network (i.e., the first router). The verification database of the first router stores the VRF configuration files of all services of the first router, for example: ip vrf exampleone
[0064] rd 11110:22220
[0065] address-family ipv4
[0066] route-traget import 38351:12160
[0067] route-traget export 38351:12161.
[0068] This embodiment can quickly understand the configuration status of each service through structured and centralized management of VRF configuration files, reduce the time for searching and adjusting configurations, and the verification database can be used as a quick reference to help quickly identify and eliminate the source of problems, support subsequent automated configuration checks, compliance verification, and the development of intelligent management tools, and improve the intelligence level of network management.
[0069] Specifically, S102: based on its own verification database, judging whether the first VRF planning configuration information is configured correctly, including steps S1021-S1024:
[0070] S1021, determining whether at least one of the VRF name, route distinguisher information, and route target information in its own verification database is the same as the planned VRF name, the planned route distinguisher information, and the planned route target information.
[0071] S1022: In response to at least one of the VRF name, the route distinguisher information, and the route target information being the same as the planned VRF name, the planned route distinguisher information, and the planned route target information, it is determined that the first VRF planning configuration information is incorrectly configured.
[0072] In this embodiment, the VRF name, RD and RT are all globally unique and can only be used by one VPN service. That is to say, if one of the planned VRF name, planned route distinguisher information and planned route target information of the first VRF planning configuration information of the current service is respectively the same as the VRF name, route distinguisher information and route target information of the first router, then the planned VRF name, RD and RT of the current service do not meet the requirements of global uniqueness, which may cause the current service to overlap or conflict with the service in the first router, thereby causing a communication cloud service network failure. Among them, the planned route target information is the same as the route target information means that the planned export information is the same as the export information, and / or the planned import information is the same as the import information. For example: when the first VRF planning configuration information is ip vrf Zongbu
[0073] rd 11111:22222
[0074] address-family ipv4
[0075] route-traget import 38351:12162
[0076] route-traget export 38351:12161, the verification database of the first router includes service 1: ipvrf exampleone
[0077] rd 11110:22220
[0078] address-family ipv4
[0079] route-traget import 38351:12160
[0080] route-traget export 38351:12161, then the planned export information of the current service is the same as the export information of service 1, which does not meet the requirement of RT global uniqueness. Therefore, the first VRF planning configuration information is incorrectly configured.
[0081] S1023, in response to the VRF name, route distinguisher information and route target information being respectively different from the planned VRF name, planned route distinguisher information and planned route target information, based on the planned route target information and the route target information of each service in its own verification database, determine the configuration relationship between the current service and each service in its own verification database, and judge whether the configuration relationship conforms to the preset relationship between the current service and each service in its own verification database.
[0082] Specifically, the configuration relationship includes a first sharing relationship, a second sharing relationship, a third sharing relationship and an isolation relationship.
[0083] Specifically, based on the planned routing target information and the routing target information of each service in its own verification database, the configuration relationship between the current service and each service in its own verification database is determined, including: judging whether the planned export information of the current service is equal to the import information of the target service, and whether the planned import information of the current service is equal to the export information of the target service, wherein the target service refers to the service in its own verification database; in response to the planning export information being equal to the import information of the target service, and the planning import information being not equal to the export information of the target service, determining that the configuration relationship between the current service and the target service is a first sharing relationship; in response to the planning export information being not equal to the import information of the target service, and the planning import information being equal to the export information of the target service, determining that the configuration relationship between the current service and the target service is a second sharing relationship; in response to the planning export information being equal to the import information of the target service, and the planning import information being equal to the export information of the target service, determining that the configuration relationship between the current service and the target service is a third sharing relationship; in response to the planning import information being not equal to the export information of the target service, and the planning export information being not equal to the import information of the target service, determining that the configuration relationship between the current service and the target service is an isolation relationship.
[0084] In this embodiment, different services have different routing visibility and interconnectivity requirements and restrictions. When two services need to communicate with each other, the preset relationship between the two services is a two-way routing sharing relationship, that is, a third sharing relationship; when there is a service with high security requirements, the preset relationship between the service with high security requirements and other services is an isolation relationship.
[0085] When the Import RT value of service A is equal to the Export RT value of service B, the routing information of service B can be imported into service A, where routing information usually refers to detailed information on how to forward data packets, including the target network, next hop, and metric information. For example: Zongbu route-traget import 38351:12162 = Fenzhiroute-traget export 38351:12162, then Zongbu can import its own routing information into Fenzhi's routing information. Conversely, when the Export RT value of service A is equal to the Import RT value of service B, the routing information of service A can be imported into service B, for example: Zongbu route-traget export 38351:12163 = Fenzhiroute-traget import 38351:12163, then Fenzhi's routing information can be imported into Zongbu's routing information.
[0086] It should be noted that on different routers, there are different routing visibility and interconnectivity requirements and restrictions between the same two services. Therefore, the current services on the first router and the second router are inconsistent with the preset relationship between the various services in their own verification databases. This is not only because the services on the first router and the second router are different, but also because the service functions of the first router and the second router are different, resulting in different routing visibility and interconnectivity requirements and restrictions between the same two services.
[0087] The routing target information of each service in the verification database of the first router and the preset relationship between the current service on the first router and each service in its own verification database can be regarded as the verification rule of the first router for the planning routing target information of the first VRF planning configuration information, such as Figure 4 As shown, if there are VRF configuration files of n services on the first router, every two services need to be compared n*(n-1) / 2 times, and each comparison generates one of the four configuration relationships between the two services, so n*(n-1) / 2 verification rules can be generated.
[0088] S1024: In response to the configuration relationship being consistent with the preset relationship, determining that the first VRF planning configuration information is correctly configured.
[0089] In this embodiment, it is assumed that the preset relationship between the current service on the first router and the various services in its own verification database is a first sharing relationship, that is, vrf exampleone can import the routing information of vrf Zongbu, but vrfZongbu cannot import the routing information of vrf exampleone. Then the configuration relationship needs to meet the requirements of vrf exampleone importrt value = vrf Zongbu export rt value, and vrf Zongbu import rt value = vrf exampleone exportrt value, and the first VRF planning configuration information is determined to be correctly configured.
[0090] S103, in response to the first VRF planning configuration information being correctly configured, inheriting the first VRF planning configuration information to generate the second VRF planning configuration information, and sending the second VRF planning configuration information to the second router, so that the second router determines whether the second VRF planning configuration information is correctly configured based on its own verification database, wherein the second router refers to the router of the communication cloud pool.
[0091] In this embodiment, after the first router determines that the first VRF planning configuration information is configured correctly, the first VRF planning configuration information is sent from the first router, that is, Figure 3 The headquarters in the first VRF is sent to the second router step by step, that is, the first VRF planning configuration information is inherited to generate the second VRF planning configuration information. The second VRF planning configuration information is sent to the subordinate router of the first router; if the subordinate router of the first router is the second router, the second VRF planning configuration information is sent to the second router; if there are other routers between the first router and the second router, such as Figure 3 The intermediate node 1 in the second VRF planning configuration information is sent to the intermediate node 1, so that the intermediate node 1 can determine whether the second VRF planning configuration information is correctly configured based on its own verification database. The intermediate node 1 determines that the second VRF planning configuration information is correctly configured, inherits the second VRF planning configuration information to generate the fourth VRF planning configuration information, and sends the fourth VRF planning configuration information to the second router. In this embodiment, by using the verified first VRF planning configuration information, the generation of the second VRF planning configuration information will be more accurate, which helps to reduce errors and loopholes in the configuration process and ensure the stable operation of the network. The generation and inheritance mechanism realizes the synchronization of the current business configuration in the first router and the second router, supports automated configuration management, and enables new services to be deployed quickly and automatically in a large-scale environment, reducing the complexity and time of manual operations.
[0092] It should be noted that before the second router or intermediate node 1 determines whether the second VRF planning configuration information is correctly configured based on its own verification database, similarly to the first router forming the verification database of the first router, the second router or intermediate node 1 also collects the VRF configuration files of all its services and separates the VRF configuration files of each service to form the verification database of the second router or intermediate node 1, which is used to store the VRF configuration files of each service of the second router or intermediate node 1, for example: ip vrf exampletwo
[0093] rd 11100:22200
[0094] address-family ipv4
[0095] route-traget import 38351:12160
[0096] route-traget export 38351:12161.
[0097] Similarly, the first router determines whether the first VRF planning configuration information is correctly configured based on its own verification database. Assuming that the preset relationship between the current service on the second router and each service in its own verification database is an isolation relationship, that is, vrf exampletwo cannot import the routing information of vrf Zongbu, nor can vrf Zongbu import the routing information of vrfexampletwo, then the configuration relationship needs to meet the requirements of vrf exampletwo import rt value! = vrfZongbu export rt value, and vrf Zongbu import rt value! = vrf exampletwo export rt value, the second VRF planning configuration information is determined to be correctly configured.
[0098] After the routing target information of each service in the verification database of the first router and the preset relationship between the current service on the first router and each service in its own verification database are regarded as the verification rule of the first router for the planning routing target information of the first VRF planning configuration information, and the planning routing target information of the first VRF planning configuration information is verified based on the verification rule of the first router for the planning routing target information of the first VRF planning configuration information, as follows Figure 5As shown, this embodiment can also filter the verification rule of the first router for the planned routing target information of the first VRF planning configuration information to generate the verification rule of the second router for the planned routing target information of the second VRF planning configuration information, and send the verification rule of the second router for the planned routing target information of the second VRF planning configuration information to the second router, so that the second router verifies the planned routing target information of the second VRF planning configuration information based on the verification rule of the second router for the planned routing target information of the second VRF planning configuration information, wherein the second router Figure 5 The first router in the Eastern Region is Figure 5 The verification rule of the first router for the planning routing target information of the first VRF planning configuration information is Figure 5 The vrf configuration and rules generated by the headquarters in.
[0099] Optionally, after inheriting the first VRF planning configuration information to generate the second VRF planning configuration information, the communication cloud service configuration verification method further includes:
[0100] S106: Access the first VRF planning configuration information.
[0101] In this embodiment, after the first router determines that the first VRF planning configuration information is correctly configured, the first VRF planning configuration information is loaded into its own operating system to activate the VRF instance. The first router accesses the first VRF planning configuration information and specifically associates the interface or routing protocol related to the first VRF planning configuration information with the first VRF planning configuration information to ensure that the first router starts to process the traffic of the current service.
[0102] It should be noted that, similarly to the first router accessing the first VRF planning configuration information, after the second router determines that the second VRF planning configuration information is configured correctly, the second router also associates the interface or routing protocol related to the second VRF planning configuration information with the second VRF planning configuration information to ensure that the second router starts processing the traffic of the current business.
[0103] S107, obtaining a determination result of the second router on the second VRF planning configuration information based on its own verification database, and determining whether the determination result is that the configuration is correct.
[0104] S108: In response to the judgment result that the configuration is correct, it is determined whether the current service in the preset time period is effective.
[0105] S109: In response to the judgment result being a configuration error, or the current service not being effective, it is judged whether there is a problem with at least one of the planned routing target information and the preset relationship of the current service.
[0106] In this embodiment, when the judgment result is a configuration error, a corresponding matching error alarm will be triggered to remind the accuracy of data production and verification in a timely manner, and to judge whether there is a problem with at least one of the planned routing target information and the preset relationship of the current service. After the first router and the second router access the first VRF planning configuration information and the second VRF planning configuration information respectively, the current service will take effect at the corresponding time point, and the service completion confirmation will be performed by the service platform. If the current service is confirmed to be completed, the configuration of the current service is terminated. If the current service is not confirmed to be completed, the current service is not effective.
[0107] S110, in response to problems with the planned routing information and the preset relationship of the current service, based on the planned routing information of the current service and routing target information of each service in its own verification database, optimizing the planned routing information and the preset relationship of the current service.
[0108] In this embodiment, optimizing the planning routing information of the current service means that the second router configures the first VRF planning configuration information similarly to the first router, and can change the second VRF planning configuration information according to the service requirements, or directly configure the planning VRF name, planning routing identifier information and planning routing target information to obtain the third VRF planning configuration information for realizing the current service, for example: ip vrf Fenzhi
[0109] rd 22222:33333
[0110] address-family ipv4
[0111] route-traget import 38351:12162
[0112] route-traget import 38351:12163
[0113] route-traget export 38351:12162.
[0114] Optimizing the preset relationship is usually performed after the second router accesses the second VRF planning configuration information and generates a service alarm or fault, and then determining the preset relationship between the services that need to be optimized for the service alarm or fault. This embodiment optimizes the preset relationship, and can flexibly adjust the routing strategy according to the needs of different services, support the needs in various business scenarios, and enhance the flexibility and adaptability of the service.
[0115] It should be noted that if there are no problems with the planned routing target information and the preset relationship of the current service, then it can be determined that there is a problem with at least one of the routing identifier and the VRF name of the second VRF planning configuration information, and the second router can directly change the routing identifier and the VRF name of the second VRF planning configuration information.
[0116] If only the planned routing target information or preset relationship of the current service has a problem, the planned routing information or preset relationship of the current service is optimized based on the planned routing information of the current service and the routing target information of each service in its own verification database.
[0117] In addition, the preset relationship after the optimization of the second router and all VRF configuration files in the verification database of the second router are regarded as the verification rules after the optimization of the second router. Since the communication cloud pool includes but is not limited to one, accordingly, if the router of the communication cloud pool of the eastern region is the second router, the router of the communication cloud pool of the northern region is the third router, such as Figure 6 or Figure 7 As shown, this embodiment can also obtain the optimized verification rules of the second router through the first router, filter the optimized verification rules of the second router and the verification rules of the first router itself, and send the filtered verification rules to the third router, so that the third router can determine whether its own VRF planning configuration information is configured correctly.
[0118] The present embodiment provides a verification method for communication cloud service configuration, in which the routers of the bearer B network and the communication cloud pool respectively compare the VRF planning configuration information and the respective VRF configuration information of all services based on their respective verification databases, to ensure that the VRF planning configuration information does not conflict with the respective services of the routers of the bearer B network and the communication cloud pool, the first router and the second router respectively use the first VRF planning configuration information and the second VRF planning configuration information to perform service configuration, if there is a service conflict between the first router and the second router, the VRF planning configuration information of the second router can be independently modified to ensure that the service configurations in the two network environments of the bearer B network and the communication cloud pool are independent of each other and will not affect each other, thereby enhancing the VRF planning configuration information of the bearer B network and the communication cloud pool network Reliability, significantly reducing the time for configuration verification; the router of the communication cloud pool inherits the VRF planning configuration information of the router carrying the B network, and then verifies whether the inherited VRF configuration planning information conflicts with its own business, ensuring that the VRF configuration planning information of the router carrying the B network and the communication cloud pool does not conflict with all their respective businesses and meets the current business needs, reducing the operation of reconfiguring the VRF planning configuration information, thereby reducing the possibility of configuration errors, simplifying the network management of the communication cloud pool, improving the reliability and efficiency of the communication cloud business configuration, realizing intelligent and effective verification of the communication cloud business configuration, improving the generation and configuration efficiency of the communication cloud business configuration, avoiding the risk of failure caused by manual configuration and verification, improving the reliability of the communication cloud business configuration, and reducing the labor cost of the communication cloud business configuration. In addition, through the structured and centralized management of VRF configuration files, you can quickly understand the configuration of each business, reduce the time for finding and adjusting the configuration, and the verification database can be used as a quick reference to help quickly identify and eliminate the source of the problem, support the subsequent automated configuration check, compliance verification and intelligent management tool development, and improve the intelligence level of network management. By using the verified first VRF planning configuration information, the generation of the second VRF planning configuration information will be more accurate, which helps reduce errors and loopholes in the configuration process and ensure the stable operation of the network. The generation and inheritance mechanism realizes the synchronization of the current business configuration on the first router and the second router, supports automated configuration management, and enables new services to be deployed quickly and automatically in a large-scale environment, reducing the complexity and time of manual operations. Through preset relationship optimization, the routing strategy can be flexibly adjusted according to the needs of different businesses, supporting the needs of various business scenarios and enhancing the flexibility and adaptability of the business.
[0119] Embodiment 2:
[0120] like Figure 8 As shown, this embodiment provides a method for verifying the communication cloud service configuration, which is applied to the second router.
[0121] In this embodiment, the communication cloud service generally refers to various services involving data processing, transmission and management between the router of the communication cloud pool and the router of the bearer B network. The communication cloud service includes, but is not limited to: data transmission service, traffic management service, virtualization service service, resource scheduling service, monitoring and management service, customer service service and various service applications. In this embodiment, the communication cloud service is a BGP / MPLS VPN service of a virtualized service service as an example.
[0122] The verification methods for communication cloud service configuration include:
[0123] S201, receiving the second VRF planning configuration information sent by the first router, wherein the second VRF planning configuration information is configured by the first router according to the current business needs, and the first router forwards the virtual private network business routing VRF planning configuration information of the first router. Based on its own verification database, it is determined whether the first VRF planning configuration information is correctly configured. In response to the first VRF planning configuration information being correctly configured, the first VRF planning configuration information is inherited and generated. The first router refers to the router that carries the B network, and the second router refers to the router of the communication cloud pool.
[0124] In this embodiment, the communication cloud service generally refers to various services involving data processing, transmission and management between the router of the communication cloud pool and the router of the bearer B network. The communication cloud service includes, but is not limited to: data transmission service, traffic management service, virtualization service service, resource scheduling service, monitoring and management service, customer service service and various service applications. In this embodiment, the communication cloud service is a BGP / MPLS VPN service of a virtualized service service as an example.
[0125] After the service platform proposes a new service requirement, if the VRF configuration files on the first router and the second router do not meet the service requirement, the first router will plan a new VRF configuration file (ie, the first VRF planning configuration information).
[0126] In addition to the corresponding configuration on the routers carrying the B network and the communication cloud pool, the BGP / MPLS VPN service may also involve other routers between the routers of the communication cloud pool and the routers carrying the B network, such as Figure 2 or Figure 3 As shown, the router carrying network B is Figure 2 The bearer B network-ar router or Figure 3 The router of the communication cloud pool is Figure 2 Cloud pool export in - dcgw router or Figure 3 The Eastern Region Communication Cloud, Western Region Communication Cloud, and Other Region Communication Clouds in the other routers are Figure 2 Other nodes in or Figure 3The intermediate nodes 1, 2 and 3 in the example.
[0127] All routers involved in the BGP / MPLS VPN service may be collectively referred to as PE (Provider Edge) routers, and the PE routers include the first router. On the PE routers of the BGP / MPLS VPN service, there are multiple VRF tables.
[0128] To solve the problem of address overlap, BGP / MPLS VPN not only uses multiple VRF tables on PE routers, but also introduces the concepts of RD (Route Distinguisher) and RT (Route Target). RD uses the 8-byte RD as an extension of the IPv4 address prefix to convert a non-unique IPv4 address into a unique VPN-IPv4 address. For example: ip vrf Zongbu
[0129] rd 11111:22222
[0130] address-family rd in ipv4.
[0131] RT is used to distribute routing information.
[0132] RT includes route-traget import (i.e., import information) and route-traget export (i.e., export information), which are used for import and export strategies of routing information respectively. When exporting VPN routes from the VRF table, the VPN routes must be marked with Export RT; when importing VPN routes into the VRF table, only routes with RT marks that match any Import RT in the VRF table will be imported into the VRF table. RT enables the PE router to only contain VPN routes that are directly connected to it, rather than routes for all VPNs in the entire network, thereby saving PE router resources and improving network scalability. Through the reasonable configuration of Import RT and Export RT, operators can build VPN services of different topology types.
[0133] That is to say, each VRF table of VPN service has three attributes: VRF name, route distinguisher and route target. Therefore, the first router configures the planned VRF name, planned route distinguisher information and planned route target information according to the current service requirements, and obtains the first VRF planning configuration information for implementing the current service, for example: ip vrf Zongbu
[0134] rd 11111:22222
[0135] address-family ipv4
[0136] route-traget import 38351:12162
[0137] route-traget export 38351:12163.
[0138] The router carrying the B network collects the VRF configuration files of all its services, parses the VRF name, RD and RT value of each service, separates the VRF configuration files of each service, and forms a verification database of the router carrying the B network (i.e., the first router). The verification database of the first router stores the VRF configuration files of all services of the first router, for example: ipvrf exampleone
[0139] rd 11110:22220
[0140] address-family ipv4
[0141] route-traget import 38351:12160
[0142] route-traget export 38351:12161. This embodiment can quickly understand the configuration of each service through structured and centralized management of VRF configuration files, reduce the time for searching and adjusting configurations, and the verification database can be used as a quick reference to help quickly identify and eliminate the source of problems, support subsequent automated configuration checks, compliance verification, and the development of intelligent management tools, and improve the intelligent level of network management.
[0143] The VRF name, RD and RT are all globally unique and can only be used by one VPN service. That is to say, if one of the planned VRF name, planned route distinguisher information and planned route target information of the first VRF planning configuration information of the current service is respectively the same as the VRF name, route distinguisher information and route target information of the first router, then the planned VRF name, RD and RT of the current service do not meet the global uniqueness requirements, which may cause the current service to overlap or conflict with the service in the first router, thereby causing a communication cloud service network failure. Among them, the planned route target information is the same as the route target information means that the planned export information is the same as the export information, and / or the planned import information is the same as the import information. For example: when the first VRF planning configuration information is ip vrf Zongbu
[0144] rd 11111:22222
[0145] address-family ipv4
[0146] route-traget import 38351:12162
[0147] route-traget export 38351:12161, the verification database of the first router includes service 1: ipvrf exampleone
[0148] rd 11110:22220
[0149] address-family ipv4
[0150] route-traget import 38351:12160
[0151] route-traget export 38351:12161, then the planned export information of the current service is the same as the export information of service 1, which does not meet the requirement of RT global uniqueness. Therefore, the first VRF planning configuration information is incorrectly configured.
[0152] Different services have different routing visibility and interconnectivity requirements and restrictions. When two services need to communicate with each other, the preset relationship between the two services is a two-way routing sharing relationship, that is, a third sharing relationship. When there are services with high security requirements, the preset relationship between the services with high security requirements and other services is an isolation relationship.
[0153] When the Import RT value of service A is equal to the Export RT value of service B, the routing information of service B can be imported into service A, where routing information usually refers to detailed information on how to forward data packets, including the target network, next hop, and metric information. For example: Zongbu route-traget import 38351:12162 = Fenzhiroute-traget export 38351:12162, then Zongbu can import its own routing information into Fenzhi's routing information. Conversely, when the Export RT value of service A is equal to the Import RT value of service B, the routing information of service A can be imported into service B, for example: Zongbu route-traget export 38351:12163 = Fenzhiroute-traget import 38351:12163, then Fenzhi's routing information can be imported into Zongbu's routing information.
[0154] Assume that the preset relationship between the current service on the first router and the various services in its own verification database is the first sharing relationship, that is, vrf exampleone can import the routing information of vrf Zongbu, but vrf Zongbu cannot import the routing information of vrf exampleone, then the configuration relationship needs to meet the requirements of vrf exampleone import rt value = vrfZongbu export rt value, and vrf Zongbu import rt value = vrf exampleone export rt value, and the first VRF planning configuration information is determined to be correctly configured.
[0155] S202: Based on its own verification database, determine whether the second VRF planning configuration information is correctly configured.
[0156] In this embodiment, after the first router determines that the first VRF planning configuration information is configured correctly, the first VRF planning configuration information is sent from the first router, that is, Figure 3 The headquarters in the first VRF is sent to the second router step by step, that is, the first VRF planning configuration information is inherited to generate the second VRF planning configuration information. The second VRF planning configuration information is sent to the subordinate router of the first router; if the subordinate router of the first router is the second router, the second VRF planning configuration information is sent to the second router; if there are other routers between the first router and the second router, such as Figure 3 The intermediate node 1 in the second VRF planning configuration information is sent to the intermediate node 1, so that the intermediate node 1 can determine whether the second VRF planning configuration information is correctly configured based on its own verification database. The intermediate node 1 determines that the second VRF planning configuration information is correctly configured, inherits the second VRF planning configuration information to generate the fourth VRF planning configuration information, and sends the fourth VRF planning configuration information to the second router. In this embodiment, by using the verified first VRF planning configuration information, the generation of the second VRF planning configuration information will be more accurate, which helps to reduce errors and loopholes in the configuration process and ensure the stable operation of the network. The generation and inheritance mechanism realizes the synchronization of the current business configuration in the first router and the second router, supports automated configuration management, and enables new services to be deployed quickly and automatically in a large-scale environment, reducing the complexity and time of manual operations.
[0157] After the first router determines that the first VRF planning configuration information is correctly configured, the first VRF planning configuration information is loaded into its own operating system to activate the VRF instance. The first router accesses the first VRF planning configuration information and specifically associates the interface or routing protocol related to the first VRF planning configuration information with the first VRF planning configuration information to ensure that the first router starts to process the traffic of the current service.
[0158] When the judgment result is a configuration error, the corresponding matching error alarm will be triggered to remind the accuracy of data production and verification in time, and to judge whether there is a problem with at least one of the planned routing target information and the preset relationship of the current business. After the first router and the second router are connected to the first VRF planning configuration information and the second VRF planning configuration information respectively, the current business will take effect at the corresponding time point, and the business completion confirmation will be performed by the business platform. If the current business is confirmed to be completed, the configuration of the current business will be terminated. If the current business is not confirmed to be completed, the current business will not take effect.
[0159] Optimizing the planning routing information of the current business means that the second router configures the first VRF planning configuration information in the same way as the first router. According to business needs, the second VRF planning configuration information can be changed, or the planning VRF name, planning routing identifier information and planning routing target information can be directly configured to obtain the third VRF planning configuration information for the current business, for example: ip vrf Fenzhi
[0160] rd 22222:33333
[0161] address-family ipv4
[0162] route-traget import 38351:12162
[0163] route-traget import 38351:12163
[0164] route-traget export 38351:12162.
[0165] Optimizing the preset relationship is usually performed after the second router accesses the second VRF planning configuration information and generates a service alarm or fault, and then determining the preset relationship between the services that need to be optimized for the service alarm or fault. This embodiment optimizes the preset relationship, and can flexibly adjust the routing strategy according to the needs of different services, support the needs in various business scenarios, and enhance the flexibility and adaptability of the service.
[0166] The present embodiment provides a verification method for communication cloud service configuration, in which the routers of the bearer B network and the communication cloud pool respectively compare the VRF planning configuration information and the respective VRF configuration information of all services based on their respective verification databases, to ensure that the VRF planning configuration information does not conflict with the respective services of the routers of the bearer B network and the communication cloud pool, the first router and the second router respectively use the first VRF planning configuration information and the second VRF planning configuration information to perform service configuration, if there is a service conflict between the first router and the second router, the VRF planning configuration information of the second router can be independently modified to ensure that the service configurations in the two network environments of the bearer B network and the communication cloud pool are independent of each other and will not affect each other, thereby enhancing the VRF planning configuration information of the bearer B network and the communication cloud pool network Reliability, significantly reducing the time for configuration verification; the router of the communication cloud pool inherits the VRF planning configuration information of the router carrying the B network, and then verifies whether the inherited VRF configuration planning information conflicts with its own business, ensuring that the VRF configuration planning information of the router carrying the B network and the communication cloud pool does not conflict with all their respective businesses and meets the current business needs, reducing the operation of reconfiguring the VRF planning configuration information, thereby reducing the possibility of configuration errors, simplifying the network management of the communication cloud pool, improving the reliability and efficiency of the communication cloud business configuration, realizing intelligent and effective verification of the communication cloud business configuration, improving the generation and configuration efficiency of the communication cloud business configuration, avoiding the risk of failure caused by manual configuration and verification, improving the reliability of the communication cloud business configuration, and reducing the labor cost of the communication cloud business configuration. In addition, through the structured and centralized management of VRF configuration files, you can quickly understand the configuration of each business, reduce the time for finding and adjusting the configuration, and the verification database can be used as a quick reference to help quickly identify and eliminate the source of the problem, support the subsequent automated configuration check, compliance verification and intelligent management tool development, and improve the intelligence level of network management. By using the verified first VRF planning configuration information, the generation of the second VRF planning configuration information will be more accurate, which helps reduce errors and loopholes in the configuration process and ensure the stable operation of the network. The generation and inheritance mechanism realizes the synchronization of the current business configuration on the first router and the second router, supports automated configuration management, and enables new services to be deployed quickly and automatically in a large-scale environment, reducing the complexity and time of manual operations. Through preset relationship optimization, the routing strategy can be flexibly adjusted according to the needs of different businesses, supporting the needs of various business scenarios and enhancing the flexibility and adaptability of the business.
[0167] Embodiment 3:
[0168] like Fig. 9 As shown, this embodiment also provides a verification method for communication cloud service configuration, which is applied to a communication cloud service network, and the communication cloud service configuration network includes a first router and a second router. The verification method for communication cloud service configuration includes:
[0169] S301, collect VRF configuration files of all services of the first router and the second router, wherein the first router refers to the router carrying the B network, and the second router refers to the router of the communication cloud pool.
[0170] In this embodiment, the VRF configuration files of all services of the first router and the second router are Fig. 9 The existing network configuration file in .
[0171] S302, separate the VRF configuration files of different services of the first router and the second router, obtain the VRF name, routing identifier information and routing target information of each service, so as to form the verification database of the first router and the second router themselves.
[0172] In this embodiment, the verification databases of the first router and the second router are Fig. 9 The detection rules and verification rules in .
[0173] S303: Based on current business requirements, configure first VRF planning configuration information and second VRF planning configuration information.
[0174] S304: Based on the verification databases of the first router and the second router, respectively determine whether the first VRF planning configuration information and the second VRF planning configuration information are configured correctly.
[0175] S305: In response to the first VRF planning configuration information and the second VRF planning configuration information being correctly configured, the first VRF planning configuration information and the second VRF planning configuration information are respectively connected to the first router and the second router, and it is determined whether the service is effective.
[0176] In this embodiment, the first VRF planning configuration information and the second VRF planning configuration information are respectively connected to the first router and the second router. Fig. 9 Determine whether the service is effective by issuing the configuration in Fig. 9 Verification business in.
[0177] S306: In response to at least one of the first VRF planning configuration information and the second VRF planning configuration information being configured incorrectly, determine whether there is a problem with the verification databases of the first router and the second router themselves.
[0178] S307: In response to problems in the verification databases of the first router and the second router, optimizing the verification databases of the first router and the second router.
[0179] The present embodiment provides a verification method for communication cloud service configuration, in which the routers of the bearer B network and the communication cloud pool respectively compare the VRF planning configuration information and the respective VRF configuration information of all services based on their respective verification databases, to ensure that the VRF planning configuration information does not conflict with the respective services of the routers of the bearer B network and the communication cloud pool, the first router and the second router respectively use the first VRF planning configuration information and the second VRF planning configuration information to perform service configuration, if there is a service conflict between the first router and the second router, the VRF planning configuration information of the second router can be independently modified to ensure that the service configurations in the two network environments of the bearer B network and the communication cloud pool are independent of each other and will not affect each other, thereby enhancing the VRF planning configuration information of the bearer B network and the communication cloud pool network Reliability, significantly reducing the time for configuration verification; the router of the communication cloud pool inherits the VRF planning configuration information of the router carrying network B, and then verifies whether the inherited VRF configuration planning information conflicts with its own business, ensuring that the VRF configuration planning information of the router carrying network B and the communication cloud pool does not conflict with all their respective businesses and meets current business needs, reducing the operation of reconfiguring VRF planning configuration information, thereby reducing the possibility of configuration errors, simplifying the network management of the communication cloud pool, improving the reliability and efficiency of communication cloud business configuration, realizing intelligent and effective verification of communication cloud business configuration, improving the generation and configuration efficiency of communication cloud business configuration, avoiding the risk of failure caused by manual configuration and verification, improving the reliability of communication cloud business configuration, and reducing the labor cost of communication cloud business configuration.
[0180] Embodiment 4:
[0181] like Fig.10 As shown, this embodiment also provides a router that carries network B, including: a configuration module 41, a first judgment module 42 and a sending module 43, the configuration module 41 is used to configure the first virtual private network service routing forwarding VRF planning configuration information based on current business needs, wherein the first router refers to the router that carries network B, the first judgment module 42 is connected to the configuration module 41, and is used to judge whether the first VRF planning configuration information is correctly configured based on its own verification database, and the sending module 43 is connected to the first judgment module 42. In response to the first VRF planning configuration information being correctly configured, inherit the first VRF planning configuration information to generate a second VRF planning configuration information, and send the second VRF planning configuration information to the second router, so that the second router judges whether the second VRF planning configuration information is correctly configured based on its own verification database, wherein the second router refers to the router of the communication cloud pool.
[0182] Specifically, the configuration module 41 includes: a configuration unit 411 and a splicing unit 412. The configuration unit 411 is used to configure the planned VRF name, planned route distinguisher information and planned route target information based on current business needs. The splicing unit 412 is used to splice the planned route distinguisher information, the planned VRF name and the planned route target information to obtain the first VRF planning configuration information.
[0183] Optionally, the router carrying network B also includes: a collection module 44 and a separation module 45, the collection module 44 is used to collect VRF configuration files of all its own services, and the separation module 45 is used to separate the VRF configuration files of different services to obtain the VRF name, routing identifier information and routing target information of each service to form its own verification database.
[0184] Specifically, the first judgment module 42 includes: a first judgment unit 421, a first determination unit 422, a second determination unit 423, a third determination unit 424 and a fourth determination unit 425, the first judgment unit 421 is used to determine whether there is a VRF name, routing identifier information and routing target information in its own verification database, at least one of which is respectively the same as the planned VRF name, the planned routing identifier information and the planned routing target information, the first determination unit 422 is used to determine that the first VRF planning configuration information is configured incorrectly in response to the existence of the VRF name, the routing identifier information and the routing target information, at least one of which is respectively the same as the planned VRF name, the planned routing identifier information and the planned routing target information, the second determination unit 423 is used to determine that the first VRF planning configuration information is configured incorrectly in response to the VRF name , the routing discriminator information and the routing target information are respectively different from the planned VRF name, the planned routing discriminator information and the planned routing target information, determining that the first VRF planning configuration information is incorrectly configured; a third determining unit 424 is used to respond to the VRF name and the routing discriminator information being respectively different from the planned VRF name and the planned routing discriminator information, determine the configuration relationship between the current business and each business in its own verification database based on the planned routing target information and the routing target information of each business in its own verification database, and judge whether the configuration relationship conforms to the preset relationship between the current business and each business in its own verification database; a fourth determining unit 425 is used to respond to the configuration relationship conforming to the preset relationship, determining that the first VRF planning configuration information is correctly configured.
[0185] Specifically, the third determination unit 424 includes: a judgment subunit, a first determination subunit, a second determination subunit, a third determination subunit and a fourth determination subunit, the judgment subunit is used to judge whether the planning export information of the current business is equal to the import information of the target business, and whether the planning import information of the current business is equal to the export information of the target business, wherein the target business refers to the business of its own verification database, the first determination subunit is used to respond to the fact that the planning export information is equal to the import information of the target business, and the planning import information is not equal to the export information of the target business, determine that the configuration relationship between the current business and the target business is a first sharing relationship, and the second determination subunit is used to determine whether the planning export information is equal to the import information of the target business, and the planning import information is not equal to the export information of the target business. In response to the fact that the planned export information is not equal to the import information of the target business, and the planned import information is equal to the export information of the target business, it is determined that the configuration relationship between the current business and the target business is a second sharing relationship. A third determining subunit is used to determine that the configuration relationship between the current business and the target business is a third sharing relationship in response to the fact that the planned export information is equal to the import information of the target business, and the planned import information is equal to the export information of the target business. A fourth determining subunit is used to determine that the configuration relationship between the current business and the target business is an isolation relationship in response to the fact that the planned import information is not equal to the export information of the target business, and the planned export information is not equal to the import information of the target business.
[0186] Optionally, the router carrying the B network also includes: an access module 46, a third judgment module 47, a fourth judgment module 48, a fifth judgment module 49 and an optimization module 50, the access module 46 is used to access the first VRF planning configuration information, the third judgment module 47 is used to obtain the judgment result of the second router on the second VRF planning configuration information based on its own verification database, and judge whether the judgment result is correct configuration, the fourth judgment module 48 is used to judge whether the current service in the preset time period is effective in response to the judgment result that the configuration is correct, the fifth judgment module 49 is used to judge whether there is a problem with at least one of the planned routing target information of the current service and the preset relationship in response to the judgment result that the configuration is wrong, or the current service is not effective, the optimization module 50 is used to optimize the planned routing information of the current service and the preset relationship based on the planned routing information of the current service and the routing target information of each service in its own verification database in response to the problem with the planned routing information of the current service and the preset relationship.
[0187] It can be understood that the above-mentioned router carrying network B executes the verification method of the communication cloud service configuration corresponding to the embodiment 1 provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the scheme corresponding to the verification method of the communication cloud service configuration of embodiment 1 above, and will not be repeated here.
[0188] Embodiment 5:
[0189] like Fig.11 As shown, this embodiment also provides a router of a communication cloud pool, including: a receiving module 51 and a second judgment module 52, the receiving module 51 is used to receive the second VRF planning configuration information sent by the first router, wherein the second VRF planning configuration information is configured by the first router according to the current business needs. The first virtual private network service routing forwarding VRF planning configuration information is forwarded, and based on its own verification database, it is judged whether the first VRF planning configuration information is correctly configured. In response to the correct configuration of the first VRF planning configuration information, the first VRF planning configuration information is inherited and generated. The first router refers to the router that carries the B network, and the second router refers to the router of the communication cloud pool. The second judgment module 52 is connected to the receiving module 51, and is used to judge whether the second VRF planning configuration information is correctly configured based on its own verification database.
[0190] It can be understood that the router of the communication cloud pool provided above executes the verification method of the communication cloud service configuration corresponding to the embodiment 2 provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the scheme corresponding to the verification method of the communication cloud service configuration of the embodiment 2 above, which will not be repeated here.
[0191] Embodiment 6:
[0192] This embodiment also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the verification method of the communication cloud service configuration in the above-mentioned embodiments 1, 2 and 3.
[0193] Embodiment 7:
[0194] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the verification method of the communication cloud service configuration in the above-mentioned embodiments 1, 2 and 3 is implemented.
[0195] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A method for verifying the configuration of a communication cloud service, applied to a first router, characterized in that: The verification methods for communication cloud service configuration include: Based on current service requirements, configure the first virtual private network service routing forwarding VRF planning configuration information, wherein the first router refers to the router that carries the B network; Based on its own verification database, determine whether the first VRF planning configuration information is configured correctly; In response to the first VRF planning configuration information being configured correctly, the first VRF planning configuration information is inherited to generate the second VRF planning configuration information, and the second VRF planning configuration information is sent to the second router, so that the second router determines whether the second VRF planning configuration information is configured correctly based on its own verification database, wherein the second router refers to the router of the communication cloud pool.
2. The verification method for communication cloud service configuration according to claim 1, characterized in that: The configuring of the first virtual private network service routing forwarding VRF planning configuration information based on the current service demand specifically includes: Based on current business needs, configure the VRF name, route identifier, and route target information. Concatenate the planned route distinguisher information, the planned VRF name, and the planned route target information to obtain the first VRF planning configuration information. Before judging whether the first VRF planning configuration information is correctly configured based on the verification database itself, the method further includes: Collect VRF configuration files for all its services; Separate the VRF configuration files of different services, obtain the VRF name, routing identifier information and routing target information of each service, and form its own verification database.
3. The verification method for communication cloud service configuration according to claim 2, characterized in that: The determining, based on the verification database itself, whether the first VRF planning configuration information is correctly configured specifically includes: Determine whether at least one of the VRF name, route distinguisher information, and route target information in its own verification database is the same as the planned VRF name, the planned route distinguisher information, and the planned route target information; In response to at least one of the VRF name, the route distinguisher information, and the route target information being the same as the planned VRF name, the planned route distinguisher information, and the planned route target information, respectively, determining that the first VRF planning configuration information is incorrectly configured; In response to the VRF name, the route distinguisher information, and the route target information being different from the planned VRF name, the planned route distinguisher information, and the planned route target information, determining a configuration relationship between the current service and each service in its own verification database based on the planned route target information and the route target information of each service in its own verification database, and judging whether the configuration relationship conforms to a preset relationship between the current service and each service in its own verification database; In response to the configuration relationship being consistent with the preset relationship, it is determined that the first VRF planning configuration information is correctly configured.
4. The verification method for communication cloud service configuration according to claim 3, characterized in that: The planned routing target information includes at least one planned import information or at least one planned export information, and the configuration relationship includes a first sharing relationship, a second sharing relationship, a third sharing relationship and an isolation relationship. Determining the configuration relationship between the current service and each service based on the planned route target information and the route target information of each service in its own verification database specifically includes: Determine whether the planned export information of the current service is equal to the imported information of the target service, and whether the planned import information of the current service is equal to the exported information of the target service, wherein the target service refers to the service of the verification database of the current service; In response to the plan export information being equal to the target service import information, and the plan import information being not equal to the target service export information, determining that the configuration relationship between the current service and the target service is a first sharing relationship; In response to the plan export information not being equal to the target service import information, and the plan import information being equal to the target service export information, determining that the configuration relationship between the current service and the target service is a second sharing relationship; In response to the plan export information being equal to the target service import information, and the plan import information being equal to the target service export information, determining that the configuration relationship between the current service and the target service is a third sharing relationship; In response to the plan import information not being equal to the export information of the target service, and the plan export information not being equal to the import information of the target service, it is determined that the configuration relationship between the current service and the target service is an isolation relationship.
5. The verification method for communication cloud service configuration according to claim 3, characterized in that: After inheriting the first VRF planning configuration information to generate the second VRF planning configuration information, the method further includes: Access the first VRF planning configuration information; Obtaining a judgment result of the second router on the second VRF planning configuration information based on its own verification database, and determining whether the judgment result is a correct configuration; In response to the judgment result that the configuration is correct, judging whether the current service in the preset time period is effective; In response to the judgment result being a configuration error, or the current service not being effective, judging whether there is a problem with at least one of the planned routing target information of the current service and the preset relationship; In response to a problem between the planned routing information of the current service and the preset relationship, the planned routing information of the current service and the preset relationship are optimized based on the planned routing information of the current service and routing target information of each service in its own verification database.
6. A method for verifying the configuration of a communication cloud service, applied to a second router, characterized in that: The verification methods for communication cloud service configuration include: Receive the second VRF planning configuration information sent by the first router, wherein the second VRF planning configuration information is configured by the first router according to the current service demand, and the first router forwards the virtual private network service routing VRF planning configuration information of the first router. Based on its own verification database, determine whether the first VRF planning configuration information is correctly configured. In response to the first VRF planning configuration information being correctly configured, inherit the first VRF planning configuration information to generate, the first router refers to the router carrying the B network, and the second router refers to the router of the communication cloud pool; Based on its own verification database, determine whether the second VRF planning configuration information is configured correctly.
7. A router carrying a B network, characterized in that: include: configuration module, a first judgment module and a sending module, A configuration module is used to configure the first virtual private network service routing forwarding VRF planning configuration information based on the current service demand, wherein the first router refers to the router carrying the B network, The first judgment module is connected to the configuration module and is used to judge whether the first VRF planning configuration information is correctly configured based on its own verification database. The sending module is connected to the first judgment module and is used to inherit the first VRF planning configuration information to generate the second VRF planning configuration information in response to the first VRF planning configuration information being configured correctly, and send the second VRF planning configuration information to the second router, so that the second router can judge whether the second VRF planning configuration information is configured correctly based on its own verification database, wherein the second router refers to the router of the communication cloud pool.
8. A router for a communication cloud pool, characterized in that: include: A receiving module and a second judging module, The receiving module is used to receive the second VRF planning configuration information sent by the first router, wherein the second VRF planning configuration information is configured by the first router according to the current business demand to forward the first virtual private network business routing VRF planning configuration information, and based on its own verification database, it is judged whether the first VRF planning configuration information is correctly configured, and in response to the first VRF planning configuration information being correctly configured, the first VRF planning configuration information is inherited and generated, the first router refers to the router carrying the B network, and the second router refers to the router of the communication cloud pool, The second judgment module is connected to the receiving module and is used to judge whether the second VRF planning configuration information is correctly configured based on its own verification database.
9. An electronic device, characterized in that: It includes a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to implement a communication cloud service configuration verification method as described in any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a communication cloud service configuration verification method as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Management method and system for virtual private networks of multiple distributed routers
CN106130862A
Method for managing routes in virtual private network based on IPv6
CN1697408A
Online experimental method for MPLS VPN of supporting concurrent access of multiple users in large scale
CN1761253A
Containerized routing protocol process for virtual private networks
US20230079209A1
Static, dynamic and intelligent VRF routing for services traffic
US7792097B1