Configuration verification method and related equipment
By using verification marks and backup modules in network devices to verify configuration information, the problem of inaccurate verification caused by differences between the virtual network and the real network is solved, and accurate configuration verification and resource saving are achieved in the physical network.
Patent Information
- Application Number
- CN202310301694.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-09-20
AI Technical Summary
Due to the difference between the virtual network and the real network, the existing configuration verification method results in inaccurate verification results of the configuration information in the physical network and consumes too many network resources.
By using the verification mark in the network device, the configuration information to be verified only takes effect on the standby module, and the data difference between the active module and the standby module is determined without affecting the business to achieve accurate configuration verification. , to avoid simulating a virtual network in the control entity for pre-verification.
It improves the verification accuracy of configuration information in the physical network, saves network resources, provides more reliable configuration information verification results, and ensures that the configuration information takes effect in the network more accurately and reasonably.
Smart Images

Figure CN118677776A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a configuration verification method and related equipment. Background Art
[0002] In order to ensure the accuracy of the configuration information provided to the network, configuration verification is usually implemented, that is, the configuration information to be configured in the network is verified. Only when the verification result indicates that the effect achieved by the configuration information in the network meets the expectations of providing the configuration information, the configuration information is actually configured in the network.
[0003] Currently, the configuration verification method is: the controller simulates a virtual network for the real physical network, and treats the configuration information configured in the real physical network as verified in the virtual network before configuring it to the physical network. If the verification passes, the configuration information is configured to the physical network.
[0004] However, the above method of verifying the configuration information cannot accurately reflect the effect of the configuration information configured in the physical network due to certain differences between the virtual network simulated by the controller and the real physical network. The verification of the configuration information configured in the real physical network is not accurate enough. Summary of the invention
[0005] Based on this, the present application provides a configuration verification method and related equipment, which can accurately verify the configuration information to be configured in the physical network, and ensure that the effect achieved by configuring the configuration information into the physical network meets the expectations.
[0006] In the first aspect, the present application provides a configuration verification method, which may, for example, include: a first network device obtains first information including a verification mark and second information, wherein the verification mark is used to indicate that the second information is information to be verified, and the second information is information related to the configuration information to be configured; then, the first network device perceives through the verification mark that the second information needs to be verified first, and based on the second information, only updates the data on the backup module of the first network device, thereby determining the difference between the data of the main module and the data of the backup module of the first network device, and the difference is used to reflect the configuration result corresponding to the configuration information. It can be seen that in this method, it is considered that the data on the standby module in the network device will not affect the normal processing of the business when the main module is normal. However, because the network device has the same performance and data synchronization with the main module before obtaining the configuration information to be verified or information related to the configuration information, the standby module can achieve the same function as the main module. Before the configuration information is actually configured in the network, after adding a verification mark to the configuration information, the configuration information to be verified is effective on the standby module of the network device in the network. In this way, the standby module can accurately reflect the effect of the configuration information after being configured in the real network, making the verification result of the configuration information more accurate, thereby providing a reliable basis for more accurate and reasonable configuration information to take effect in the network. In addition, in this method, there is no need to pre-verify the configuration information in the virtual network simulated by the control entity, saving the network resources occupied by the verification.
[0007] In one implementation, the first network device obtaining the first information may include: the first network device obtaining the verification mark and the configuration information.
[0008] As an example, the first network device obtaining the first information may include: the first network device obtaining a command line, the command line including the first information. The command line may carry the check mark in the first information through an extended keyword.
[0009] As another example, the first network device obtains the first information, which may include: the first network device receives a first message sent by a control entity, and the first message includes the first information. The first message may be a Network Configuration Protocol (NETCONF) message, a Border Gateway Protocol (BGP) message, or a Path Computation Element Communication Protocol (PCEP) message. Taking the first message as a NETCONF message as an example, the check mark in the first information can be carried by a newly defined transaction operation type in the NETCONF message.
[0010] In this implementation, the first network device only updates the data on the backup module based on the second information, which may include: the first network device only takes effect on its own backup module, and the main module and interface board of the first network device do not perceive the configuration information. In this way, configuration verification can be performed without affecting normal business.
[0011] As an example, after the first network device updates only the data on the standby module based on the second information, the method may also include: the first network device generates a second message based on the data of the standby module, the second message includes indication information and third information, the third information is used to indicate the change of the data on the standby module caused by the configuration information, and the indication information is used to indicate that the third information is information related to configuration verification; the first network device floods the second message in the network. In this way, it provides a basis for other network devices to process the data on their own standby modules based on the third information, provides a prerequisite for subsequent verification of the impact of the configuration information on other network devices in the network, and makes it possible to verify the configuration information more comprehensively and accurately.
[0012] For the second message, for example, it can be an Intermediate System to Intermediate System (ISIS) message, an Open Shortest Path First (OSPF) message or a BGP message. The second message can be a Link State Protocol (LSP) message under the ISIS protocol, so the third information can be carried by the LSP information; or, the second message can be an OSPF message, so the third information can be carried by a Link State Acknowledgment (LSA); or, the second message can be a BGP message, so the third information can be carried by Network Layer Reachability Information (NLRI). The second message can carry the indication information by adding a new field or a reserved field. It should be noted that the function of the indication information in the second message is consistent with the function of the check mark, and only different names are used to distinguish the marks that have the function of making the recipient perceive the need to perform a check first in different scenarios.
[0013] In another implementation, the first network device obtains the first information, which may include: the first network device receives a third message sent by the second network device, the third message includes the check mark and the second information, and the second information indicates that the configuration information causes a change in data on the standby module of the second network device. For the relevant description of the third message, refer to the relevant description of the third message mentioned above.
[0014] In this implementation, as an example, the first network device only updates the data on the backup module based on the second information, which may include: the first network device only processes the data on the backup module based on the second information, and the main module and interface board of the first network device do not perceive the second information. In this way, configuration verification can be performed without affecting normal business.
[0015] In some implementations, the method may further include: the first network device sends the difference. The recipient of the difference may be a control entity, a cloud or a server that performs subsequent verification. Taking the example of the first network device sending the difference to the control entity, when it is necessary to perform local verification of the configuration information, the user can query the difference about the first network device on the control entity through a query operation, and display the difference to the user. In this way, it can be determined whether the difference meets the expected impact of the configuration information on the first network device. If it does, it is determined that the local verification of the configuration information on the first network device has passed. If it does not meet the requirements, it is determined that the local verification of the configuration information on the first network device has failed.
[0016] In other implementations, in addition to the local verification of network devices in the network, it is considered that the impact of some configuration information on network devices is in line with expectations. However, from the global perspective of the network, the actual configuration of the configuration information in the network will cause network problems. For example, the verification of configuration information related to routing may be fine from the perspective of network devices, but from the perspective of the network as a whole, there may be problems such as routing loops. Based on this, in order to make the verification of configuration information more comprehensive, the method may also include: a step of comprehensively evaluating the impact of configuration information from the perspective of the global network (also referred to as a global verification step in this article). Taking the step of the control entity performing global verification as an example, multiple network devices in the network send differences to the control entity, which prepares the control entity to determine the global verification result based on the multiple differences received.
[0017] In some implementations, after performing a full local check and / or a local check, a configuration indication may be sent to the first network device based on the check result, that is, the method may further include: in response to the configuration indication, the first network device performs processing related to the configuration information on the first network device, wherein the configuration indication is used to indicate that the configuration information is effective in the main module of the first network device, or the configuration indication is used to indicate that the backup module of the first network device synchronizes the data of the main module of the first network device. In one case, if the configuration information is verified, the configuration indication may be used to indicate that the configuration information is effective in the main module of the first network device, then the first network device may learn the configuration information on the main module, or the first network device may synchronize the data on the backup module to the main module; or the configuration indication may only inform that the configuration information is verified, then the first network device may pre-configure a first processing strategy for the configuration indication, and the first processing strategy may include, for example: the first network device learns the configuration information on the main module, or the first network device synchronizes the data on the backup module to the main module. In another case, if the verification of the configuration information fails, the configuration indication can be used to instruct the backup module of the first network device to synchronize the data of the main module of the first network device, or the configuration indication can be used to instruct the data on the backup module of the first network device to roll back to the time before the configuration information takes effect on the backup module; or the configuration indication can only inform that the verification of the configuration information fails, then a second processing strategy for the configuration indication can be pre-configured on the first network device, and the second processing strategy may, for example, include: the first network device synchronizes the data of the main module to the backup module, or the first network device rolls back the data on the backup module to the time before the configuration information takes effect.
[0018] In the second aspect, the present application also provides a configuration verification method, which may include, for example: a control entity obtains configuration information to be configured to a first network device; the control entity sends first information including the configuration information and a verification mark to the first network device, and the verification mark is used to indicate that the configuration information is information to be verified. It can be seen that in this method, in order to allow the first network device that receives the configuration information to perceive that the configuration information needs to be verified first, the control entity sends a verification mark when sending the configuration information, so that the first network device and other network devices in the network can take effect on the backup module based on the verification mark to verify the configuration information or information related to the configuration information. In this way, the backup module can accurately reflect the effect of the configuration information after being configured in the real network, so that the verification result of the configuration information is more accurate, and does not affect the provision of normal business services, making accurate and comprehensive configuration verification possible.
[0019] In some implementations, the method may further include: the control entity receives a first difference sent by the first network device, the first difference being the difference between the data of the backup module of the first network device and the data of the main module of the first network device after the configuration information is only effective on the backup module of the first network device, and the first difference is used to reflect the configuration result corresponding to the configuration information on the first network device; the control entity receives a second difference sent by a second network device in the network, the second difference being the difference between the data of the backup module of the second network device and the data of the main module of the second network device after only updating the backup module of the second network device based on the second information, and the second difference is used to reflect the configuration result corresponding to the configuration information on the second network device, and the second information reflects the influence of the configuration information on the data on the backup module of the first network device; the control entity determines a global verification result based on the first difference and the second difference, and the global verification result is used to characterize the configuration result of the configuration information on the network, and the network includes at least the first network device and the second network device. In this way, the global verification of the configuration information can be completed by the control entity.
[0020] In some implementations, the method may further include: a control entity determines a configuration indication based on the global verification result; in some implementations, sending the configuration indication to the first network device; wherein, if the global verification result indicates that the configuration result of the network corresponding to the configuration information is verified to be passed, then the configuration indication is used to indicate that the configuration information is effective in the main module of the first network device; or, if the global verification result indicates that the configuration result of the network corresponding to the configuration information is verified to be failed, then the configuration indication is used to instruct the backup module of the first network device to synchronize the data of the main module of the first network device.
[0021] For the specific implementation methods and technical effects achieved in the method provided in the second aspect, please refer to the relevant description of the first aspect.
[0022] In the above-mentioned first and second aspects, the active module included in the first network device may be an active main control board, and the standby module may be a standby main control board.
[0023] In a third aspect, the present application also provides a network device, which is the first network device in the network, the first network device includes a main module and a backup module, and the network device may include: an acquisition unit and a processing unit. The acquisition unit is used to obtain first information, the first information includes a check mark and second information, the check mark is used to indicate that the second information is information to be checked, and the second information is information related to the configuration information to be configured; the processing unit is used to update only the data on the backup module based on the second information; the processing unit is also used to determine the difference between the data of the main module and the data of the backup module, and the difference is used to reflect the configuration result corresponding to the configuration information.
[0024] In some implementations, the obtaining unit is specifically used to obtain the verification mark and the configuration information.
[0025] As an example, the obtaining unit is specifically used to: obtain a command line, where the command line includes the first information; or receive a first message sent by a control entity, where the first message includes the first information.
[0026] As an example, the processing unit is specifically configured to: make the configuration information effective only on the standby module.
[0027] As an example, the network device also includes a sending unit, and the processing unit is further used to generate a second message based on the data of the backup module, the second message including indication information and third information, the third information being used to indicate the change of data on the backup module caused by the configuration information, and the indication information being used to indicate that the third information is information related to configuration verification; the sending unit is used to flood the second message in the network.
[0028] The second message may be an ISIS message, and the third information is carried by LSP information; or, the second message may be an OSPF message, and the third information is carried by LSA; or, the second message may be a BGP message, and the third information is carried by NLRI.
[0029] In some other implementations, the obtaining unit is specifically used to: receive a third message sent by the second network device, the third message includes the check mark and the second information, and the second information indicates that the configuration information causes a change in data on a backup module of the second network device.
[0030] As an example, the processing unit is specifically configured to: based on the second information, only process the data on the standby module.
[0031] In some other implementations, the network device further includes: a sending unit, and the sending unit is further configured to send the difference.
[0032] In some implementations, the processing unit is further used to perform processing related to the configuration information on the first network device in response to a configuration indication, wherein the configuration indication is used to indicate that the configuration information is effective in the main module of the first network device, or the configuration indication is used to instruct the backup module of the first network device to synchronize the data of the main module of the first network device.
[0033] It should be noted that the network device provided in the third aspect is used to perform the relevant operations mentioned in the first aspect above. Its specific implementation method and the effects achieved can be found in the relevant description of the first aspect above, and will not be repeated here.
[0034] In a fourth aspect, the present application also provides a control entity, which may include: a processing unit and a sending unit, wherein the processing unit is used to obtain configuration information to be configured to a first network device; the sending unit is used to send first information to the first network device, the first information including the configuration information and a verification mark, and the verification mark is used to indicate that the configuration information is information to be verified.
[0035] In some implementations, the control entity further includes a receiving unit, the receiving unit being configured to receive a first difference sent by the first network device, the first difference being a difference between data of a backup module of the first network device and data of a main module of the first network device only after the configuration information takes effect on the backup module of the first network device, the first difference being used to characterize a configuration result corresponding to the configuration information on the first network device; the receiving unit being further configured to receive a second difference sent by a second network device in the network, the second difference being a difference between data of a backup module of the second network device and data of a main module of the second network device after only updating the backup module of the second network device based on the second information, the second difference being used to characterize a configuration result corresponding to the configuration information on the second network device, the second information reflecting an impact of the configuration information on the data on the backup module of the first network device; the processing unit being further configured to determine a global verification result based on the first difference and the second difference, the global verification result being used to characterize a configuration result of a network corresponding to the configuration information, the network including at least the first network device and the second network device.
[0036] As an example, the processing unit is further used to determine a configuration indication based on the global verification result; the sending unit is further used to send the configuration indication to the first network device; wherein, if the global verification result indicates that the configuration result of the network corresponding to the configuration information is verified to be passed, then the configuration indication is used to indicate that the configuration information is effective in the main module of the first network device; or, if the global verification result indicates that the configuration result of the network corresponding to the configuration information is verified to be failed, then the configuration indication is used to instruct the backup module of the first network device to synchronize the data of the main module of the first network device.
[0037] It should be noted that the control entity provided in the fourth aspect is used to perform the relevant operations mentioned in the second aspect above. Its specific implementation method and the effect achieved can be found in the relevant description of the second aspect above, and will not be repeated here.
[0038] In the third aspect and the fourth aspect, the active module included in the first network device may be an active main control board, and the standby module may be a standby main control board.
[0039] In a fifth aspect, the present application also provides a network device, comprising: a processor and a memory, wherein: the memory is used to store instructions or computer programs; the processor is used to execute the instructions or computer programs in the memory, so that the network device executes the method provided in any possible implementation of the first aspect above.
[0040] In a sixth aspect, the present application also provides a control entity, comprising: a processor and a memory, wherein: the memory is used to store instructions or computer programs; the processor is used to execute the instructions or computer programs in the memory, so that the control entity executes the method provided in any possible implementation of the second aspect above.
[0041] In a seventh aspect, the present application further provides a communication system, the communication system comprising: a first network device and a control entity, wherein:
[0042] The first network device is used to execute the method provided in any possible implementation manner of the first aspect above;
[0043] The control entity is used to execute the method provided in any possible implementation manner of the second aspect above.
[0044] Alternatively, it can also be understood that the communication system includes: the network device of the third aspect and the control entity of the fourth aspect; or, the communication system includes: the network device of the fifth aspect and the control entity of the sixth aspect.
[0045] In an eighth aspect, the present application further provides a storage medium, in which program code or instructions are stored, and when the storage medium is run on a processor, the method provided in any possible implementation of the first aspect or the second aspect above is executed.
[0046] In a ninth aspect, the present application further provides a program product, which, when executed on a processor, enables the processor to execute a method provided in any possible implementation of the first aspect or the second aspect.
[0047] In a tenth aspect, the present application provides a chip comprising a memory and a processor, wherein the memory is used to store a program, and the processor is used to call and run the program from the memory to execute a method provided in any possible implementation of the first aspect or the second aspect above.
[0048] Optionally, the above-mentioned chip only includes a processor, and the processor is used to read and execute a program stored in the memory. When the program is executed, the processor executes the method provided in any possible implementation of the first aspect or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0050] Figure 1 A flow chart of a configuration verification method 100 provided in an embodiment of the present application;
[0051] Figure 2 A schematic diagram of the structure of a general header of an LSP message provided in an embodiment of the present application;
[0052] Figure 3 A schematic diagram of a network to which the embodiments of the present application are applicable;
[0053] Figure 4 This is a schematic diagram of the structure of the network device 21 in the embodiment of the present application;
[0054] Figure 5 for Figure 3 A schematic diagram of a specific scenario in the network shown;
[0055] Figure 6 This is a schematic diagram of the structure of a network device 600 in an embodiment of the present application;
[0056] Figure 7 This is a schematic diagram of the structure of a control entity 700 in an embodiment of the present application;
[0057] Figure 8 This is a schematic diagram of the structure of a communication device 800 in an embodiment of the present application;
[0058] Fig. 9 This is a schematic diagram of the structure of a communication device 900 according to an embodiment of the present application;
[0059] Fig.10 Schematic diagram of the structure of a communication system 1000 in an embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to improve the reliability of network equipment, the modules in the network equipment usually include two parts: the main module and the backup module. For example, the main control board in the network equipment usually includes the main main control board and the backup main control board. When the network equipment receives the configuration information, the process of configuring the configuration information may include: first, the configuration information takes effect in the main module, and the main module updates the data of the control plane and the forwarding plane based on the configuration information; then, in order to ensure the reliability of the network equipment, the main module synchronizes its updated data to the backup module; and the network equipment will also flood the changes in its own data caused by the configuration information to other network equipment in the network to ensure that the entire network supports the configuration information that has taken effect on the network equipment, thereby ensuring the network's effective provision of business services.
[0061] In order to improve the accuracy of configuring network devices, it is necessary to verify the configuration information before configuring it to the network devices, and only the configuration information that passes the verification can be configured to the network devices. At present, the verification of the configuration information to be configured on the network devices can be implemented by the control entity in the virtual network built for the real physical network. However, due to the limitations of the control entity's simulation capabilities of network device performance and networking, with the continuous complexity and diversification of the physical network structure, network devices in the physical network, and protocol flooding, there are certain differences between the virtual network simulated by the control entity and the real physical network, resulting in the control entity configuring the configuration information to be verified in the virtual network, but failing to achieve the effect of configuring the configuration information to be configured in the physical network. In this way, the verification of the configuration information not only wastes network resources, but also fails to obtain accurate verification results.
[0062] Based on this, an embodiment of the present application provides a configuration verification method, wherein a network device obtains first information including a verification mark and second information, wherein the verification mark is used to indicate that the second information is information to be verified, and the second information is related information to the configuration information to be configured; based on the verification mark, the network device perceives that the second information needs to be verified first, then, the network device can update only the data on the backup module of the network device based on the second information, without updating the data on the main module of the network device; then, the network device can determine the difference between the data of the main module and the data of the backup module, and the difference is used to characterize the configuration result of the configuration information on the network device. In this way, there is no need to pre-verify the configuration information in the virtual network simulated by the control entity, which saves network resources occupied by the verification. Moreover, since the performance of the backup module and the main module are the same and the data are synchronized before the network device obtains the configuration information to be verified or the information related to the configuration information, after only the backup module is updated based on the configuration information or the information related to the configuration information, the backup module can accurately reflect the effect of the configuration information configured in the real network, making the verification result of the configuration information more accurate, thereby providing a reliable basis for more accurate and reasonable configuration information to take effect in the network.
[0063] As an example, for the first network device to which the configuration information needs to be configured, the second information may be the configuration information obtained by the first network device. Then, the method provided by the embodiment of the present application may include: when the first network device obtains the configuration information to be configured, it will also obtain a verification mark, and the verification mark indicates that the configuration information is the configuration information to be verified; based on the verification mark, the first network device perceives that the configuration information needs to be verified first, then the first network device only takes effect on the backup module, and the configuration information is not effective on the main module; after the first network device updates the data of the backup module based on the configuration information, the difference between the data on the main module and the backup module can be determined as the configuration result corresponding to the configuration information on the first network device, and the difference can reflect the local impact of the configuration information on the first network device.
[0064] As another example, for other second network devices other than the first network device to which the configuration information needs to be configured in the network, the second information may be information related to the configuration information received by the second network device from the first network device, for example, the second information may be information corresponding to the change in data on the backup module of the first network device caused by the configuration information. Considering that the configuration information will not only affect the first network device, but also the second network device, the method provided in the embodiment of the present application may also include: when the first network device sends the second information to other second network devices in the network, it also sends a verification mark, when the second network device receives the second information related to the configuration information to be configured, based on the verification mark corresponding to the second information, it perceives that the second information needs to be verified first, then, the second network device only updates the data on the backup module based on the second information, while the data on the main module remains unchanged; the second network device determines the difference between the data on the main module and the backup module as the configuration result corresponding to the configuration information on the second network device, and the difference can reflect the impact of the configuration information on the local second network device.
[0065] In order to have a more comprehensive understanding of the impact of configuration information in the network, in addition to the local verification performed by each network device in the network, the method provided in the embodiment of the present application may also include: the process of the control entity performing a global verification of the configuration information. For example, the control entity receives the difference sent by the network device in the network, and the difference sent by the network device is the difference between the data on the main module and the backup module of the network device after the data on the backup module is updated only based on the second information on the network device; thus, the control entity determines the global verification result for the configuration information in the network based on these differences. The global verification result can be understood as the overall configuration result generated by the configuration information in the entire network, which is used to characterize the impact of the configuration information on the entire network.
[0066] If the verification of the configuration information passes, it may include the verification result of the local verification and / or global verification of the configuration information indicating that the verification of the configuration information passes; conversely, if the verification of the configuration information fails, it may include the verification result of the local verification or global verification of the configuration information indicating that the verification of the configuration information fails. When it is determined that the verification of the configuration information passes, the network device in the network can obtain a configuration instruction for the second information, and the network device can make the second information effective in the main module based on the configuration instruction, for example, the network device synchronizes the data of the backup module to the main module. When it is determined that the verification of the configuration information fails, the network device in the network can also obtain another configuration instruction for the second information, and the network device can roll back the backup module that made the second information effective to the time before the second information took effect based on the configuration instruction, for example, the network device synchronizes the data of the main module to the backup module.
[0067] In the embodiment of the present application, the main module of the network device may refer to the main control board of the network device, and the backup module of the network device may refer to the backup control board of the network device. The network device also includes an interface board, and then the network device only updates the data on the backup module based on the second information, which may mean that the second information is only effective on the backup control board, and the second information is not effective on the main control board and the interface board.
[0068] In the embodiment of the present application, the data of the main module may refer to the data on the control plane and / or forwarding plane of the main module after the configuration information or configuration-related information is effective on the main module; the data of the backup module may refer to the data on the control plane and / or forwarding plane of the backup module after the configuration information or configuration-related information is effective on the backup module. The above data may include, but are not limited to: identification information, routing tables, forwarding tables or algorithms of network devices.
[0069] The specific implementation of the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0070] Figure 1 The present invention provides a flow chart of a configuration verification method 100. In the method 100, the first network device is described as the execution subject. The first network device includes a main module and a backup module. The main module can be, for example, a main control board, and the backup module can be, for example, a backup control board. Figure 1 As shown, the method 100 may include, for example, the following S101 to S103:
[0071] S101, a first network device obtains first information, where the first information includes a verification mark and second information, where the verification mark is used to indicate that the second information is information to be verified, and the second information is information related to configuration information to be configured.
[0072] In a first possible implementation, the first network device is a network device to which the configuration information needs to be configured, then the second information is the configuration information itself, the first information may include the configuration information and a verification mark, and S101 may include, for example: the first network device obtains the verification mark and the configuration information.
[0073] The manner in which the first network device obtains the first information may include: manner one, the first network device obtains a command line, the command line including the first information; manner two, the first network device receives a first message sent by a control entity, the first message including the first information.
[0074] As an example, for the above-mentioned method 1, the terminal device can remotely log in to the first network device through a console line direct connection or a secure shell (SSH), and send configuration information to the first network device by inputting a command line including the first information on the terminal device. The terminal device can be used for any device that configures a network device in the network, and the command line can also be called a command-line interface (CLI) command line. The check mark in the first information can be a newly defined keyword in the command line, and the keyword can be, for example, verify or uncommmit, which is used to indicate that the configuration information in the command line is the configuration information to be verified. Taking the configuration information as configuration information 1 and the check mark as verify as an example, in the embodiment of the present application, the command line obtained by the first network device can be expressed as <configuration information 1, verify>, which is different from the current command line obtained by the first network device is only <configuration information 1>.
[0075] As another example, for method two, the control entity can obtain configuration information to be configured to the first network device, generate a first message including the first information (i.e., at least the configuration information and a check mark) based on the configuration information, and send the first message to the first network device. The first message can be any message applicable to the control entity to interact with the network device, for example, it can be a Network Configuration Protocol (NETCONF) message, a Border Gateway Protocol (Border Gateway Protocol, BGP) message, or a Path Computation Element Communication Protocol (PCEP) message. Taking the first message as a NETCONF message as an example, the check mark in the first information can be a newly defined transaction operation type in the NETCONF message, and the transaction operation type can be, for example, <verify>or <un-commmit>, the newly defined transaction operation type is used to indicate that the configuration information in the NETCONF message is the configuration information to be verified. It should be noted that the NETCONF message includes a basic operation type and a transaction operation type. The basic operation type can include, for example: query data, edit data, backup or restore data, and lock or unlock data. The transaction operation type can include, for example: <commit (submit)>, <cancel-commit (cancel submission)>, <discard-changes (discard changes)> and <validate (verify)>. Among them, <commit>Indicates that the configuration information in the candidate data set is submitted to become the configuration information of the current operation. <cancel-commit>Instruct to abandon the configuration submission test run, <discard-changes>Indicates to abandon the configuration information that has not been submitted in the candidate data set. <validate>Used to indicate whether the syntax and semantics of the specified configuration information are correct. The configuration information is configuration information 1, the first message is a NETCONF message, and the check mark is <un-commmit>For example, in the embodiment of the present application, the first network device receives a first message sent by the control entity, which may include <un-commmit>and configuration information 1, which is different from the current control entity sending to the first network device, including <commmit>and configuration information 1.
[0076] Whether it is a keyword newly defined as a verification mark in the command line or a transaction operation type newly defined as a verification mark in the first message, the verification mark can enable the first network device that receives the first information to perceive that the configuration information in the first information is the configuration information to be verified. The verification mark can also indicate to the first network device that receives the first information that the configuration information is only effective in the backup module but not in the main module.
[0077] In a second possible implementation, the first network device is a general term for other network devices except the second network device to which the configuration information needs to be configured. Then, after the second network device obtains the configuration information and the verification mark, it only updates the data in the backup module of the target network device based on the configuration information. Then, the second network device records the changes in the data on the backup module caused by the configuration information as second information, encapsulates the second information and the verification mark in a third message, and floods the third message in the network. Thus, S101 may include: the first network device receives the third message sent by the second network device.
[0078] In this implementation, the second information is information indicating that the configuration information causes a change in the data on the standby module of the second network device, which can be understood as "the second information is information related to the configuration information to be configured" in S101. The second information can be determined by the second network device by comparing the data before and after the configuration information of the standby module takes effect; or, before obtaining the first information, the second network device can consider that the data on the active module and the standby module are consistent, then the second information can also be determined by the second network device by comparing the data after the configuration information of the standby module takes effect with the data on the active module.
[0079] Based on the characteristics of the network including the second network device and the first network device, the third message can adopt a protocol applicable to the network, for example, the third message can be an Intermediate System to Intermediate System (ISIS) message, an Open Shortest Path First (OSPF) message or a BGP message. The third message can be a Link State Protocol (LSP) message under the ISIS protocol, then the first information can be carried by the LSP information; or, the third message can be an OSPF message, then the first information can be carried by a Link State Acknowledgment (LSA); or, the third message can be a BGP message, then the first information can be carried by Network Layer Reachability Information (NLRI). The third message can carry the check mark in the first information by adding a new field or a reserved field.
[0080] Taking the third message as an LSP message of the ISIS protocol as an example, the general header of the LSP message can be found in Figure 2 As shown, in the embodiment of the present application, the currently reserved unused R flag bit can be defined to carry the check mark, or all or part of the reserved field can be defined to carry the check mark. The field carrying the check mark can be recorded as a V flag bit or a V field. Figure 2 The general header shown may also include: an intradomain routing protocol discriminator field, a length indicator field, a version / protocol ID extension field, an identification length (ID Length) field, a protocol data unit type (Protocol Data Unit Type, PDU Type) field, a version (Version) field and a maximum number of area addresses (Maximum Area Address).
[0081] The verification mark enables the first network device that receives the first information to perceive that the second information in the first information is information related to the configuration information to be verified. The verification mark can also indicate to the first network device that receives the first information that the second information is only effective in the backup module but not in the main module.
[0082] S102: The first network device only updates data on the standby module based on the second information.
[0083] Corresponding to the first possible implementation manner described above, that is, the case where the second information is configuration information, S102 may include, for example: the first network device only takes effect on the configuration information on the backup module, and the active module of the first network device does not perceive the configuration information.
[0084] In this implementation, considering that the configuration information not only affects the first network device, but may also affect other network devices in the network, after S102, the method 100 may also include: the first network device generates a second message based on the data of the backup module, and the second message includes indication information and third information. The indication information is used to indicate that the third information is information related to configuration verification. The indication information is information in the second message used to carry the verification mark. For specific instructions, please refer to the description of the verification mark in the third message in the above-mentioned second possible implementation; the third information is used to indicate the change of data of the backup module on the first network device caused by the configuration information. For specific instructions, please refer to the description of the second information in the above-mentioned second possible implementation.
[0085] Corresponding to the second possible implementation method mentioned above, that is, the second information is information corresponding to the change of data on the backup module of the second network device caused by the configuration information, S102 may include: the first network device only processes the data on the backup module based on the second information.
[0086] S103: The first network device determines a difference between the data of the active module and the data of the standby module, where the difference is used to reflect a configuration result corresponding to the configuration information.
[0087] The configuration result corresponding to the configuration information reflected by the difference determined in S103 above may indicate the influence of the configuration information on the first network device. In the first possible implementation, the configuration result indicates the influence of the configuration information on the first network device to be configured; for the second possible implementation, the configuration result indicates the influence of the change of data on the backup module of the second network device caused by the configuration information on the backup module of the first network device.
[0088] Regardless of the first possible implementation manner or the second possible implementation manner, after the first network device updates only the data on the standby module based on the second information, S103 can be executed to provide a basis for verifying the configuration information.
[0089] As an example, the first network device can send the difference determined by S103 to the control entity. When the configuration information needs to be locally verified, the user can query the difference about the first network device on the control entity through a query operation, and display the difference to the user. In this way, it can be determined whether the difference is consistent with the expected impact of the configuration information on the first network device. If it is consistent, it is determined that the configuration information has passed the local verification of the first network device. If it is not consistent, it is determined that the configuration information has failed the local verification of the first network device.
[0090] In one case, determining whether the difference meets the expected impact of the configuration information on the first network device may be manually determined by a user.
[0091] In another case, the control entity may determine whether the difference meets the expected impact of the configuration information on the first network device. If the control entity performs the judgment step, the control entity may pre-set the expected impact of the configuration information on the network devices in the network. For example, after the configuration information takes effect in the network, the expected impact may refer to the expected change of the identification information on the network device, the expected change of the routing table, the expected change of the forwarding table, or the expected change of the supported algorithm. In this way, the control entity determines the verification result of the local verification of the network device by comparing the difference sent by the network device with the expected impact corresponding to the network device.
[0092] In this way, for the network devices in the network, the configuration information to be configured on the network devices can be locally verified based on the differences in the feedback from the network devices. For a certain configuration information, if the local verification of the configuration information by the network device passes, it can be considered that the subsequent configuration of the configuration information in the network can achieve the expected effect; if the local verification of the configuration information by a certain network device fails, it can be considered that there is a problem in the subsequent actual configuration of the configuration information in the network, then the control entity can generate an alarm message, which is used to prompt the user that there is a problem with the configuration information.
[0093] In other implementations, in addition to local verification of network devices in the network, it is considered that the impact of some configuration information on network devices is in line with expectations. However, from the global perspective of the network, the actual configuration of the configuration information in the network will cause network problems. For example, the verification of configuration information related to routing may be fine from the perspective of network devices, but from the perspective of the network as a whole, there may be problems such as routing loops. Based on this, in order to make the verification of configuration information more comprehensive, the method 100 may also include: a step of comprehensively evaluating the impact of the configuration information from the perspective of the global network (also referred to as a global verification step in this article). Taking the step of the control entity performing global verification as an example, the control entity can receive differences sent by multiple network devices in the network, and determine a global verification result based on the multiple differences received. The global verification result is used to characterize the configuration result of the configuration information on the network, and the configuration result indicates the impact of the configuration information on the network as a whole.
[0094] As an example, taking the case where the network includes a first network device and a second network device, and the configuration information to be verified needs to be configured to the first network device, the global verification step of the method 100 may include: the control entity receives a first difference sent by the first network device, the first difference being the difference between the data of the backup module of the first network device and the data of the main module of the first network device only after the configuration information takes effect on the backup module of the first network device, and the first difference is used to reflect the configuration result corresponding to the configuration information on the first network device; the control entity receives a second difference sent by the second network device in the network, the second difference being the difference between the data of the backup module of the second network device and the data of the main module of the second network device after only updating the backup module of the second network device based on the second information, and the second difference is used to reflect the configuration result corresponding to the configuration information on the second network device, and the second information reflects the impact of the configuration information on the data on the backup module of the first network device; then, the control entity determines a global verification result based on the first difference and the second difference, and the global verification result is used to characterize the configuration result of the configuration information on the network.
[0095] Among them, the control entity determines the global verification result based on the multiple differences received. The control entity can perform simulation verification on the multiple differences received based on a preset simulation verification algorithm. The simulation verification process and the simulation verification algorithm adopted are not limited in the embodiments of the present application, as long as the global verification result can be determined.
[0096] It should be noted that the device for performing local verification and global verification can be the above-mentioned control entity, or other devices or modules in the device that can perform the operations implemented by the above-mentioned control entity. The device for performing local verification and global verification can also be called a simulation verification platform.
[0097] It should be noted that in the embodiments of the present application, only local verification can be performed, only global verification can be performed, or both local verification and global verification can be performed. As an example, for only performing local verification, local verification can be performed only on the network devices to which the configuration information needs to be configured, or local verification can be performed on multiple network devices in the network. In this example, if the local verification passes, the verification of the configuration information passes. As another example, for only performing global verification, if the global verification passes, the verification of the configuration information passes. As yet another example, for performing both local verification and global verification, the order of local verification and global verification may not be limited; if both local verification and global verification pass, the verification of the configuration information passes, and if the local verification or global verification fails, the verification of the configuration information fails.
[0098] Regardless of whether the configuration information passes verification, the control entity may generate and send a configuration indication to the first network device based on the verification result, and the first network device performs processing related to the configuration information on the first network device in response to the configuration indication.
[0099] In one case, if the configuration information passes the verification, the configuration indication can be used to indicate that the configuration information is effective on the main module of the first network device. In this case, the first network device can learn the configuration information on the main module, or the first network device can synchronize the data on the backup module to the main module; or, the configuration indication can only inform that the configuration information verification passes, then the first network device can pre-configured a first processing strategy for the configuration indication, and the first processing strategy may, for example, include: the first network device learns the configuration information on the main module, or the first network device synchronizes the data on the backup module to the main module.
[0100] In another case, if the verification of the configuration information fails, the configuration indication can be used to instruct the backup module of the first network device to synchronize the data of the main module of the first network device, or the configuration indication can be used to instruct the data on the backup module of the first network device to roll back to the time before the configuration information takes effect on the backup module; or the configuration indication can only inform that the verification of the configuration information fails, then a second processing strategy for the configuration indication can be pre-configured on the first network device, and the second processing strategy may, for example, include: the first network device synchronizes the data of the main module to the backup module, or the first network device rolls back the data on the backup module to the time before the configuration information takes effect.
[0101] It can be seen that through this method 100, considering that the data on the standby module in the network device will not affect the normal processing of the business when the main module is normal, however, because the network device has the same performance and data synchronization with the main module before obtaining the configuration information to be verified or information related to the configuration information, the standby module can achieve the same function as the main module. Before the configuration information is actually configured in the network, after adding a verification mark to the configuration information, the configuration information to be verified is effective on the standby module of the network device in the network. In this way, the standby module can accurately reflect the effect of the configuration information after being configured in the real network, making the verification result of the configuration information more accurate, thereby providing a reliable basis for more accurate and reasonable configuration information to take effect in the network. In addition, in this method 100, there is no need to pre-verify the configuration information in the virtual network simulated by the control entity, saving the network resources occupied by the verification.
[0102] In order to make the method provided in the embodiments of the present application clearer and easier to understand, Figure 3 The network shown is an exemplary description of the scenario to which the embodiment of the present application is applicable and the specific implementation of the embodiment of the present application in the scenario.
[0103] like Figure 3 As shown, the network may include: a control entity 10, network devices 21 to 28. The control entity 10 may be used to control the network devices in the network; the network device 21 is connected to the network device 28 via the network device 22, the network device 23 and the network device 24 in sequence, the network device 21 is also connected to the network device 28 via the network device 25, the network device 26 and the network device 27 in sequence, the network device 22 is connected to the network device 26, and the network device 23 is connected to the network device 27.
[0104] Figure 3 Each network device in the embodiment includes a main control board, a standby control board and an interface board. Taking network device 21 as an example, Figure 4 As shown, the network device 21 may include an active main control board 211, a standby main control board 212, and an interface board 213. Taking the active main control board 211 as normal, the data on the active main control board 211 and the standby main control board 212 as data 1, and the data on the interface board 213 as data 2 as basic conditions, when the control entity 10 needs to send configuration information 1 to the network device 21 as an example, the current configuration process and the configuration process provided by the embodiment of the present application are exemplarily described.
[0105] The current configuration process may, for example, include: S11, the control entity 10 sends a message 1 to the network device 21, the message 1 includes configuration information 1, and it should be noted that the message 1 does not include a check mark; S12, the network device 21 takes effect on the configuration information 1 on the active main control board 211, and the data on the active main control board 211 is updated to data 3; S13, the network device 21 synchronizes the data 3 on the active main control board 211 to the standby main control board 212 and the interface board 213, that is, the data on the active main control board 211 and the standby main control board 212 are both data 3, and the data on the interface board 213 is updated to data 4; S14, the network device 21 may record its own data changes caused by the configuration information 1 as information 2, and flood the information 2 in the network; S15, other network devices in the network except the network device 21 perform corresponding processing based on the information 2 to complete the configuration of the configuration information 1 in the network. For S15, taking the processing performed by the network device 22 based on the information 2 as an example, assuming that the network device 22 includes a main main control board 221, a backup main control board 222 and an interface board 223, the data on the main main control board 221 and the backup main control board 222 are both data 5, and the data on the interface board 223 is data 6, then S15 may include: S151, the main main control board 221 of the network device 22 learns the information 2, and the data on the main main control board 221 is updated to data 7; S152, the network device 22 synchronizes the data 7 on the main main control board 221 to the backup main control board 222 and the interface board 223, that is, the data on the main main control board 221 and the backup main control board 222 are both data 7, and the data on the interface board 223 is updated to data 8. It can be seen that in the current configuration process, after the network device receives the configuration information, it usually first takes effect on the active main control board, and then synchronizes the data on the active main control board after the configuration information takes effect to the standby main control board and the interface board.
[0106] The configuration process corresponding to the embodiment of the present application may, for example, include: S21, the control entity 10 sends a message 1 to the network device 21, and the message 1 includes configuration information 1 and a check mark 1; S22, the network device 21 determines that the configuration information 1 needs to be checked first based on the check mark 1, and the configuration information 1 is effective on the standby main control board 212, the main main control board 211 and the interface board 213 do not perceive the configuration information 1, and the data of the standby main control board 212 is updated to data 3'; S23, the network device 21 determines the difference 1 between the data 1 on the main main control board 211 and the data 3' on the standby main control board 212; S24, the network device 21 may record the data change of the standby main control board 212 caused by the configuration information 1 as information 2, and flood the information 2 and the check mark 2 in the network. It should be noted that the information 2 may be the difference 1, for example; S25, other network devices in the network except the network device 21 perform corresponding processing based on the information 2 and the check mark 2. For S25, taking the processing performed by the network device 22 based on information 2 as an example, assuming that the network device 22 includes a main main control board 221, a backup main control board 222 and an interface board 223, the data on the main main control board 221 and the backup main control board 222 are both data 5, and the data on the interface board 223 is data 6, then S25 may include: S251, the network device 22 determines based on the verification mark 2 that the information 2 needs to be verified first, and updates the data 5 on the backup main control board 222 based on the information 2 to obtain data 7', and the main main control board 221 and the interface board 223 do not perceive the information 2; S252, the network device 22 determines the difference 2 between the data 5 on the main main control board 221 and the data 7' on the backup main control board 212.Assuming that the differences determined by network devices 23 to 28 are differences 3 to 8 respectively, after S25, the process may also include: S26, in response to the query operation, the control entity 10 obtains differences 1 to 8 corresponding to network devices 21 to 28 and displays differences 1 to 8; S27, in response to determining that differences 1 to 8 respectively meet the expected impact of the configuration information 1 on network devices 21 to 28, it is determined that the local verification of the configuration information 1 has passed; S28, the control entity 10 performs a global verification on the differences 1 to 8 using a preset simulation verification algorithm to obtain a global verification result; S29, the control entity 10 determines that the global verification of the configuration information 1 has passed according to the global verification result, and then sends a configuration indication 1 to the network device 21; S30, the network device Based on the configuration indication 1, the standby 21 takes effect on the active main control board 211, and the data on the active main control board 211 is updated to data 3 (data 3 is the same as data 3' in the scenario where this step is implemented), and the data on the interface board 213 is updated to data 4; S31, the network device 21 can flood the information 2 in the network; S32, other network devices in the network except the network device 21 perform corresponding processing based on the information 2 to complete the configuration of the configuration information 1 in the network, or, S31 can also refer to the network device 21 flooding the configuration indication 2 in the network, and S32 can refer to other network devices in the network except the network device 21 updating the data on the active main control board and the interface board respectively based on the configuration indication 2, and the data on the active main control board after the update is the same as the data on the standby main control board. Taking the network device 22 as an example, after S32, the data on the active main control board 221 is updated to data 7 (data 7 is the same as data 7' in this scenario), and the data on the interface board 223 is updated to data 8. In this way, the verification and configuration of the configuration information 1 in the network are completed simply, conveniently and accurately, making it possible to provide a more reliable and stable network environment for business services.
[0107] It should be noted that, if it is determined in S27 and / or S29 that the verification of configuration information 1 has failed, S30 to S32 will no longer be executed, and configuration information 1 can be modified to configuration information 2 based on the verification result, and the configuration verification method provided in the embodiment of the present application can be continued to verify configuration information 2 until the verified configuration information passes the verification, and then the configuration operation is performed on the configuration information that passes the verification (see S30 to S32 for details).
[0108] In some implementations, in order to save resources for configuration verification, local verification can be performed first. Once the local verification of a network device fails, the local verification of other network devices and the global verification of the network will no longer be performed. Instead, the local verification will be restarted after the configuration information is modified. If the local verification of all network devices participating in the local verification passes, the global verification of the network will be performed.
[0109] Combined with the above Figure 3 and Figure 4 In the scenario to which the embodiments of the present application are applicable, a comparison is made between the current configuration process and the configuration process including configuration verification provided by the embodiments of the present application.
[0110] Below Figure 3 In the network shown, Figure 5 Taking a specific scenario as an example, the changes in routing-related configuration information are explained.
[0111] See also Figure 5 , network device 22 and network device 26 are area border routers (ABR) 22 and ABR 26 respectively, network device 21 and network device 25 belong to ISIS process 1, network device 23, network device 24, network device 27 and network device 28 belong to ISIS process 2, ABR 22 and ABR 26 belong to both ISIS process 1 and ISIS process 2, and the Internet Protocol (IP) address of network device 24 is 1.1.1.1 / 32. Then, when ABR 22 introduces route 1 to 1.1.1.1 / 32 in ISIS process 2 into ISIS process 1, a 2-to-1 routing policy (i.e., route-policy 2to1) is adopted, and tag information tag 2 is added to route 1; when ABR 26 introduces route 1 of ISIS process 1 into ISIS process 2, it is recognized that route 1 has tag 2, and route 1 will not be introduced back to ISIS process 2, thereby avoiding a routing loop. However, if the configuration information of ABR 22 is changed, due to an error operation, the tag 2 in route-policy 2to1 of introduced route 1 that indicates marking route 1 may be partially deleted (for example, apply tag 2 in route-policy 2to1 is deleted). Then, when ABR 26 introduces route 1 of ISIS process 1 into ISIS process 2, since route 1 does not have tag 2, route 1 originally announced by ISIS process 2 will be introduced back to ISIS process 2 again, thereby causing a routing loop.
[0112] If the configuration verification method provided by the embodiment of the present application is adopted, when apply tag 2 in route-policy2to1 is deleted from the configuration information on ABR 22, ABR 22 will respond to the configuration information only on the standby main control board of ABR 22 according to the verification mark in the configuration information, and modify the control plane related information, so that route 1 introduced from ISIS process 2 to ISIS process 1 no longer carries the tag 2. The standby main control board of ABR 22 publishes information indicating that route 1 does not carry the tag 2 mark to the network devices in ISIS process 1 by flooding the LSP message; thus, the network devices in ISIS process 1 all learn the LSP information in the flooded LSP message, and since the LSP information carries the verification mark, the network devices in ISIS process 1 use the standby main control board to process the LSP information. In this way, after the standby main control board of ABR 26 learns the route 1, since route 1 does not carry the tag 2 mark, ABR 26 introduces the route 1 back to ISIS process 2, thereby causing a loop. In this case, through the configuration verification method of the embodiment of the present application, on the one hand, the user can obtain the network device in the ISIS process 1 through the query operation on the control entity or other device, and determine the impact of the configuration information including route-policy 2to1 but not including apply tag 2 on the network device; thereby, it is determined whether the impact of the configuration information on the network device meets the expected impact. If it does, it is considered that the verification of the configuration information on the network device has passed. On the other hand, in the scenario where the control entity performs simulation verification, the network device in the network can send the difference between the data on the main control board and the backup control board to the control entity, and the control entity determines that there is a routing loop on ABR 22 and ABR 26 based on the received multiple differences. Then, after the local verification of the network device passes, if the global verification fails, it can also be considered that the configuration information is insufficient, so the configuration information can be checked, modified, and continued to be verified based on the global verification result.
[0113] The route-policy 2to1 on ABR 23 can be expressed as follows:
[0114]
[0115] After deleting apply tag 2 in route-policy 2to1, the following expression can be used:
[0116]
[0117] Similarly, the route-policy 1to2 on ABR 24 can be expressed as:
[0118]
[0119] The following example uses the default cost of imported routes in the ISIS process as 0.
[0120] Before the configuration change, the routing information of ABR 22 can be expressed as shown in Table 1 below:
[0121] Table 1
[0122] Prefix / Mask Outbound interface Next hop cost 1.1.1.1 / 32 Interface 1 on ABR 22 connected to network device 24 Network equipment 24 20
[0123] Before the configuration change, the routing information of ABR 26 can be expressed as shown in Table 2 below:
[0124] Table 2
[0125] Prefix / Mask Outbound interface Next hop cost 1.1.1.1 / 32 ABR 26 connects to interface 2 of ABR 22 ABR 22 10
[0126] After the configuration change, ABR 26 reintroduces the route into ISIS process 2, and ABR 22 learns the route 1.1.1.1 / 32 through ABR 26, with cost = 10. This route is better than the original cost = 20 route, so the routing information of the standby main control board of ABR 22 is refreshed. The updated routing information of ABR 22 can be expressed as the following Table 3:
[0127] Table 3
[0128] Prefix / Mask Outbound interface Next hop cost 1.1.1.1 / 32 Interface 3 on ABR 22 connected to ABR 26 ABR 26 10
[0129] After the configuration change, the routing information of ABR 26 can be expressed as shown in Table 4 below:
[0130] Table 4
[0131] Prefix / Mask Outbound interface Next hop cost 1.1.1.1 / 32 ABR 26 connects to interface 2 of ABR 22 ABR 22 10
[0132] Therefore, when the command line is used to view the difference in routing information between the active and standby main control boards on ABR 22, it can be found that the routing information of 1.1.1.1 / 32 has changed before and after the configuration change. The user (such as an operator) can determine whether the change is in line with expectations by viewing the difference that indicates the change. If it is not in line with expectations, there is a problem with the configuration information of the authentication verification.
[0133] Similarly, other network devices learn the information corresponding to the difference on the standby main control boards of ABR 22 and ABR 26 caused by the configuration information through LSP flooding. Taking network device 27 as an example, before receiving the flooded information, the routing information on network device 27 can be expressed as shown in the following Table 5:
[0134] Table 5
[0135] Prefix / Mask Outbound interface Next hop cost 1.1.1.1 / 32 Interface 4 on network device 27 connected to network device 28 Network equipment 28 20
[0136] After the configuration change, since ABR 26 republished the destination network segment route, network device 27 learned the route from ABR 26 through LSP, and the cost is 10, which is better than the current route. Therefore, network device 27 updates the routing information on the local standby main control board. The routing information on network device 27 can be expressed as shown in the following Table 6:
[0137] Table 6
[0138] Prefix / Mask Outbound interface Next hop cost 1.1.1.1 / 32 Interface 5 of network device 27 connected to ABR 26 ABR 26 10
[0139] Therefore, in the local network device 27, by checking the difference between the routing information on the active main control board and the standby main control board, it can be found that the 1.1.1.1 / 32 routing information of the configuration information to be verified has changed before and after the standby main control board takes effect. The user (such as an operator) can determine whether the change meets expectations by checking the difference that shows the change. If it does not meet expectations, there is a problem with the configuration information of the authentication verification.
[0140] Similarly, before and after the backup main control board of each network device takes effect, the changes in routing information can be sent to the control entity, and the control entity can compare the differences in routing information and give a comprehensive evaluation and judgment based on the global routing information. Taking the above example, the control entity finds that before and after the configuration information takes effect on the backup main control board of each network device, there is a loop in the routing information on ABR 22 and ABR 26 for the same destination network segment, that is: for the route 1.1.1.1 / 32, the outbound interface and next hop of ABR 22 both correspond to ABR 26, and the outbound interface and next hop of ABR 26 both correspond to ABR 22. The control entity can easily determine that a loop has occurred in the route, and the control entity can display it through alarms or error prompts to notify users (such as configuration administrators).
[0141] It can be seen that in Figure 5 In the specific scenario shown, the method provided in the embodiment of the present application is used to discover possible problems when the configuration information is actually configured in the network. Before the configuration information is actually configured in the network, a more comprehensive and accurate verification of the configuration information to be configured is achieved. Only the configuration information that passes the verification is configured in the network, which improves the stability of the network to a certain extent.
[0142] It should be noted that in the embodiments of the present application, network devices and nodes refer to the same meaning and can be understood and used interchangeably. Network devices can refer to communication devices with message forwarding functions such as switches, routers, virtual routing devices or virtual forwarding devices. For example, Figure 3 In the embodiment, network device 21 and network device 28 may be provider edge (PE) devices, and network device 22, network device 23, network device 24, network device 25, network device 26 and network device 27 may be provider (P) devices. The control entity may be a controller or other entity having the configuration verification function provided in the embodiment of the present application.
[0143] Accordingly, the embodiment of the present application further provides a network device 600, such as Figure 6 The network device 600 is applied to a first network device, the first network device includes a main module and a backup module, and the network device 600 may include: an acquisition unit 601 and a processing unit 602. Wherein:
[0144] The obtaining unit 601 is configured to obtain first information, wherein the first information includes a verification mark and second information, wherein the verification mark is used to indicate that the second information is information to be verified, and the second information is information related to the configuration information to be configured. The obtaining unit 601 may execute Figure 1 S101 shown.
[0145] The processing unit 602 is configured to update only the data on the standby module based on the second information. The processing unit 602 may execute Figure 1 S102 shown.
[0146] The processing unit 602 is further configured to determine the difference between the data of the active module and the data of the standby module, wherein the difference is used to reflect the configuration result corresponding to the configuration information. Figure 1 S103 shown.
[0147] In some implementations, the obtaining unit 601 is specifically used to obtain the verification mark and the configuration information.
[0148] As an example, the obtaining unit 601 is specifically used to: obtain a command line, where the command line includes the first information; or receive a first message sent by a control entity, where the first message includes the first information.
[0149] As an example, the processing unit 602 is specifically configured to: make the configuration information effective only on the standby module.
[0150] As an example, the network device also includes a sending unit, and the processing unit 602 is further used to generate a second message based on the data of the backup module, the second message including indication information and third information, the third information being used to indicate the change of data on the backup module caused by the configuration information, and the indication information being used to indicate that the third information is information related to configuration verification; the sending unit is used to flood the second message in the network.
[0151] The second message may be an ISIS message, and the third information is carried by LSP information; or, the second message may be an OSPF message, and the third information is carried by LSA; or, the second message may be a BGP message, and the third information is carried by NLRI.
[0152] In some other implementations, the obtaining unit 601 is specifically used to: receive a third message sent by the second network device, the third message including the check mark and the second information, and the second information indicates that the configuration information causes a change in data on a backup module of the second network device.
[0153] As an example, the processing unit 602 is specifically configured to: based on the second information, only process the data on the standby module.
[0154] In some other implementations, the network device further includes: a sending unit, and the sending unit is further configured to send the difference.
[0155] In some implementations, the processing unit 602 is further used to perform processing related to the configuration information on the first network device in response to a configuration indication, wherein the configuration indication is used to indicate that the configuration information is effective in the main module of the first network device, or the configuration indication is used to instruct the backup module of the first network device to synchronize the data of the main module of the first network device.
[0156] It should be noted that in this example Figure 6 The network device 600 shown may be Figure 1 The first network device in the embodiment shown, therefore, various specific embodiments of the network device 600 can be found in Figure 1 The corresponding introduction of method 100 will not be repeated in this embodiment.
[0157] Accordingly, the embodiment of the present application further provides a control entity 700, such as Figure 7 The control entity 700 may include: a processing unit 701 and a sending unit 702. Among them:
[0158] The processing unit 701 is configured to obtain configuration information to be configured to a first network device.
[0159] The sending unit 702 is used to send first information to the first network device, where the first information includes the configuration information and a verification mark, and the verification mark is used to indicate that the configuration information is information to be verified.
[0160] In some implementations, the control entity 700 also includes a receiving unit, which is used to receive a first difference sent by the first network device, where the first difference is the difference between the data of the backup module of the first network device and the data of the main module of the first network device only after the configuration information takes effect on the backup module of the first network device, and the first difference is used to characterize the configuration result corresponding to the configuration information on the first network device; the receiving unit is also used to receive a second difference sent by a second network device in the network, where the second difference is the difference between the data of the backup module of the second network device and the data of the main module of the second network device after only the backup module of the second network device is updated based on the second information, and the second difference is used to characterize the configuration result corresponding to the configuration information on the second network device, and the second information reflects the impact of the configuration information on the data on the backup module of the first network device; the processing unit 701 is also used to determine a global verification result based on the first difference and the second difference, and the global verification result is used to characterize the configuration result of the network corresponding to the configuration information, and the network includes at least the first network device and the second network device.
[0161] As an example, the processing unit 701 is also used to determine a configuration indication based on the global verification result; the sending unit 702 is also used to send the configuration indication to the first network device; wherein, if the global verification result indicates that the configuration result of the network corresponding to the configuration information is verified to be passed, then the configuration indication is used to indicate that the configuration information is effective in the main module of the first network device; or, if the global verification result indicates that the configuration result of the network corresponding to the configuration information is verified to be failed, then the configuration indication is used to instruct the backup module of the first network device to synchronize the data of the main module of the first network device.
[0162] It should be noted that in this example Figure 7 The control entity 700 shown may be Figure 1 The control entity in the embodiment shown, therefore, various specific embodiments of the control entity 700 can be found in Figure 1 The relevant introduction about the control entity implementing the operation in the corresponding method 100 is not repeated in this embodiment.
[0163] In the above network device 600 and control entity 700, the active module included in the first network device may be an active main control board, and the standby module may be a standby main control board.
[0164] See also Figure 8 , an embodiment of the present application provides a communication device 800. The communication device 800 may be a network device in any of the above embodiments, for example, Figure 1 The first network device or the second network device in Figure 6 Alternatively, the communication device 800 may be a control entity in any of the above embodiments, for example, Figure 1 The control entity in ; for example, it can also be Figure 7 The communication device 800 can implement the functions of various network devices or control entities in the above embodiments. The communication device 800 includes at least one processor 801, a bus system 802, a memory 803 and at least one communication interface 804.
[0165] The communication device 800 is a hardware structure device that can be used to implement Figure 6 The functional modules in the network device 600 are shown. For example, those skilled in the art may think of Figure 6 The obtaining unit 601 and the processing unit 602 in the network device 600 shown in the figure can be implemented by the at least one processor 801 calling the code in the memory 803. For another example, those skilled in the art can imagine Figure 7 The processing unit 701 and the sending unit 702 in the control entity 700 shown can be implemented by the at least one processor 801 calling the code in the memory 803 .
[0166] Optionally, the communication device 800 may also be used to implement the functions of the network device or the control entity in any of the above embodiments.
[0167] Optionally, the processor 801 may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0168] The bus system 802 may include a path for transmitting information between the components.
[0169] The communication interface 804 is used to communicate with other devices or communication networks.
[0170] The above-mentioned memory 803 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this. The memory can exist independently and be connected to the processor through a bus. The memory can also be integrated with the processor.
[0171] The memory 803 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 801. The processor 801 is used to execute the application code stored in the memory 803, so as to realize the functions in the method of the present application.
[0172] In a specific implementation, as an embodiment, the processor 801 may include one or more CPUs, such as Figure 8 CPU0 and CPU1 in.
[0173] In a specific implementation, as an embodiment, the communication device 800 may include multiple processors, such as Figure 8 801 and processor 807 in the embodiment of the present invention. Each of these processors may be a single-CPU processor or a multi-CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0174] Fig. 9 is a schematic diagram of the structure of another communication device 900 provided in an embodiment of the present application. The communication device 900 may be a network device in any of the above embodiments, for example, Figure 1 The first network device or the second network device in Figure 6 Alternatively, the communication device 900 may be a control entity in any of the above embodiments, for example, Figure 1 The control entity in ; for example, it can also be Figure 7 The communication device 900 can implement the functions of various network devices or control entities in the above embodiments.
[0175] The communication device 900 includes: a main control board 910 and an interface board 930. It should be noted that: Fig. 9 Only one main control board 910 is shown in FIG. 9 , and the main control board 910 may be a main control board or a standby main control board in the communication device 900 . The other main control boards have the same structure as the main control board 910 . Fig. 9 Not shown.
[0176] The main control board 910 is also called a main processing unit (MPU) or a route processor card. The main control board 910 controls and manages various components in the communication device 900, including routing calculation, device management, device maintenance, and protocol processing functions. The main control board 910 includes: a central processing unit 911 and a memory 912.
[0177] The interface board 930 is also called a line processing unit (LPU), a line card or a service board. The interface board 930 is used to provide various service interfaces and realize the forwarding of data packets. The service interface includes but is not limited to an Ethernet interface, a POS (Packet over SONET / SDH) interface, etc., and the Ethernet interface is, for example, a Flexible Ethernet Service Interface (Flexible Ethernet Clients, FlexE Clients). The interface board 930 includes: a central processing unit 931, a network processor 932, a forwarding table entry memory 934 and a physical interface card (ph8sical interface card, PIC) 933.
[0178] The central processor 931 on the interface board 930 is used to control and manage the interface board 930 and communicate with the central processor 911 on the main control board 910 .
[0179] The network processor 932 is used to implement message forwarding processing. The network processor 932 may be in the form of a forwarding chip. Specifically, the processing of uplink messages includes: message inbound interface processing, forwarding table search; the processing of downlink messages: forwarding table search, etc.
[0180] The physical interface card 933 is used to implement the docking function of the physical layer, from which the original traffic enters the interface board 930, and the processed message is sent from the physical interface card 933. The physical interface card 933 includes at least one physical interface, which is also called a physical port. The physical interface card 933 corresponds to the FlexE physical interface in the system architecture. The physical interface card 933, also known as a daughter card, can be installed on the interface board 930, and is responsible for converting the optical signal into a message and forwarding the message to the network processor 932 for processing after checking the legitimacy of the message. In some embodiments, the central processor 931 of the interface board 930 can also perform the functions of the network processor 932, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 932 is not required in the physical interface card 933.
[0181] Optionally, the communication device 900 includes a plurality of interface boards. For example, the communication device 900 further includes an interface board 940 . The interface board 940 includes a central processor 941 , a network processor 942 , a forwarding table entry memory 944 , and a physical interface card 943 .
[0182] Optionally, the communication device 900 further includes a switching fabric board 920. The switching fabric board 920 may also be referred to as a switch fabric unit (SFU). When the network device has multiple interface boards 930, the switching fabric board 920 is used to complete data exchange between the interface boards. For example, the interface board 930 and the interface board 940 may communicate via the switching fabric board 920.
[0183] The main control board 910 is coupled to the interface board 930. For example, the main control board 910, the interface board 930, the interface board 940, and the switching network board 920 are connected to the system backplane through a system bus to achieve intercommunication. In a possible implementation, an inter-process communication (IPC) channel is established between the main control board 910 and the interface board 930, and the main control board 910 and the interface board 930 communicate through the IPC channel.
[0184] Logically, the communication device 900 includes a control plane and a forwarding plane. The control plane includes a main control board 910 and a central processing unit 931. The forwarding plane includes various components for performing forwarding, such as a forwarding table entry memory 934, a physical interface card 933, and a network processor 932. The control plane performs functions such as a router, generating a forwarding table, processing signaling and protocol messages, and configuring and maintaining the status of the device. The control plane sends the generated forwarding table to the forwarding plane. On the forwarding plane, the network processor 932 forwards the message received by the physical interface card 933 based on the forwarding table sent by the control plane. The forwarding table sent by the control plane can be stored in the forwarding table entry memory 934. In some embodiments, the control plane and the forwarding plane can be completely separated and not on the same device.
[0185] If the communication device 900 is configured as a first network device, as an example, the central processor 911 can obtain first information including a verification mark and second information, wherein the verification mark is used to indicate that the second information is information to be verified, and the second information is information related to the configuration information to be configured; the central processor 911 can also perceive through the verification mark that the second information needs to be verified first, and based on the second information, only update the data on the backup module of the first network device; the central processor 911 can also determine the difference between the data of the main module and the data of the backup module of the first network device, and the difference is used to reflect the configuration result corresponding to the configuration information.
[0186] It should be understood that the obtaining unit 601 in the network device 600 (implemented by the receiving step as shown in the figure) and the communication interface 804 in the communication device 800 can be equivalent to the physical interface card 933 or the physical interface card 943 in the communication device 900; the processing unit 602 in the network device 600 and the processor 801 in the communication device 800 can be equivalent to the central processing unit 911 or the central processing unit 931 in the communication device 900.
[0187] If the communication device 900 is configured as a control entity, as an example, the central processor 911 can obtain configuration information to be configured to the first network device; the network processor 932 can trigger the physical interface card 933 to send first information including the configuration information and a verification mark to the first network device, and the verification mark is used to indicate that the configuration information is information to be verified.
[0188] It should be understood that the sending unit 702 in 700 and the communication interface 804 in the communication device 800 can be equivalent to the physical interface card 933 or the physical interface card 943 in the communication device 900; the processing unit 701 in the control entity 700 and the processor 801 in the communication device 800 can be equivalent to the central processing unit 911 or the central processing unit 931 in the communication device 900.
[0189] It should be understood that the operation on the interface board 940 in the embodiment of the present application is consistent with the operation of the interface board 930, and for the sake of brevity, it will not be repeated. It should be understood that the communication device 900 of this embodiment can correspond to the device or network device for routing announcement in the above-mentioned various method embodiments, and the main control board 910, the interface board 930 and / or the interface board 940 in the communication device 900 can implement the functions and / or various steps implemented in the network device 600, the control entity 700 or the communication device 800 in the above-mentioned various method embodiments, and for the sake of brevity, it will not be repeated here.
[0190] It should be understood that there may be one or more main control boards, and when there are multiple boards, they may include a primary main control board and a backup main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. There may also be one or more physical interface cards on the interface board. There may be no switching network board, or there may be one or more switching network boards. When there are multiple switching network boards, they can jointly realize load sharing and redundant backup. Under a centralized forwarding architecture, the network device may not need a switching network board, and the interface board is responsible for the processing function of the business data of the entire system. Under a distributed forwarding architecture, the network device may have at least one switching network board, and the switching network board is used to realize data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices with a distributed architecture are greater than those of devices with a centralized architecture. Optionally, the network device may have only one board, that is, no switching board, and the functions of the interface board and the main control board are integrated on the board. In this case, the central processor on the interface board and the central processor on the main control board can be combined into one central processor on the board to perform the functions of the two. This type of device has low data exchange and processing capabilities (for example, low-end switches or routers and other network devices). The specific architecture to be adopted depends on the specific networking deployment scenario.
[0191] In some possible embodiments, each of the above-mentioned network devices or network devices can be implemented as a virtualized device. For example, a virtualized device can be a virtual machine (English: Virtual Machine, VM) running a program for sending message functions, and the virtual machine is deployed on a hardware device (for example, a physical server). A virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. The virtual machine can be configured as each network device or control entity in the embodiments of the present application. For example, each network device or network device can be implemented based on a general physical server in combination with network function virtualization (NFV) technology. Each network device or network device is a virtual host, a virtual router or a virtual switch. Those skilled in the art can virtualize each network device or network device with the above-mentioned functions on a general physical server in combination with NFV technology by reading this application, which will not be repeated here.
[0192] It should be understood that the network devices in the above-mentioned various product forms have any functions of the network devices or communication devices in the above-mentioned method embodiments, which will not be repeated here.
[0193] The embodiment of the present application also provides a chip, including a processor and an interface circuit, the interface circuit is used to receive instructions and transmit them to the processor; the processor, for example, can be a specific implementation form of the message processing device in the embodiment of the present application, and can be used to execute the above-mentioned message processing method. Wherein, the processor is coupled with a memory, and the memory is used to store programs or instructions. When the program or instruction is executed by the processor, the chip system implements the method in any of the above-mentioned method embodiments.
[0194] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0195] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be separately provided with the processor, which is not limited in the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be provided on different chips. The present application does not specifically limit the type of memory and the arrangement of the memory and the processor.
[0196] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0197] In addition, the present application embodiment also provides a communication system 1000, see Fig.10 The communication system 1000 may include: a first network device 1001 and a control entity 1002. The first network device 1001 is used to execute the steps corresponding to the first network device in any possible implementation of the above method 100; the control entity 1002 is used to execute the steps corresponding to the control entity in any possible implementation of the above method 100.
[0198] In addition, the embodiment of the present application further provides a storage medium, in which program codes or instructions are stored, and when the program codes or instructions are run on a processor, the processor executes the above Figure 1 A method under any one of the implementation modes in the illustrated embodiments.
[0199] In addition, an embodiment of the present application also provides a program product, which, when executed on a processor, enables the processor to execute any one of the implementation methods of the aforementioned method 100.
[0200] It should be understood that "determining B based on A" mentioned in the embodiments of the present application does not mean determining B only based on A, but B can also be determined based on A and / or other information.
[0201] The "first" in the name of "first information" mentioned in this application is only used as a name identifier and does not mean the first in order. The same rule applies to "second" and so on.
[0202] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0203] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for system embodiments and device embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and system embodiments described above are merely schematic, in which the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0204] The above is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. It should be noted that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the present application, and these improvements and modifications should also be regarded as the protection scope of the present application.< / commmit> < / validate> < / commit> < / verify>
Claims
1. A configuration verification method, It is characterized in that The method is applied to a first network device, the first network device includes a main module and a backup module, and the method includes: Obtaining first information, where the first information includes a verification mark and second information, where the verification mark is used to indicate that the second information is information to be verified, and the second information is information related to configuration information to be configured; Based on the second information, only the data on the standby module is updated; A difference between the data of the active module and the data of the standby module is determined, where the difference is used to reflect a configuration result corresponding to the configuration information.
2. The method according to claim 1, It is characterized in that The obtaining of the first information includes: The verification mark and the configuration information are obtained.
3. The method according to claim 2, It is characterized in that The obtaining of the first information includes: Obtaining a command line, wherein the command line includes the first information; Alternatively, a first message sent by a receiving control entity is received, where the first message includes the first information.
4. The method according to claim 2 or 3, It is characterized in that The updating of only the data on the standby module based on the second information comprises: The configuration information is effective only on the standby module.
5. The method according to any one of claims 2 to 4, It is characterized in that The method further comprises: Generate a second message according to the data of the standby module, the second message including indication information and third information, the third information is used to indicate the change of data on the standby module caused by the configuration information, and the indication information is used to indicate that the third information is information related to configuration verification; The second message is flooded in the network.
6. The method according to claim 5, It is characterized in that The second message is an intermediate system to intermediate system ISIS message, and the third information is carried by link state protocol LSP information; Alternatively, the second message is an open shortest path first OSPF message, and the third information is carried by a link state advertisement LSA; Alternatively, the second message is a Border Gateway Protocol BGP message, and the third information is carried via Network Layer Reachability Information NLRI.
7. The method according to claim 1, It is characterized in that The obtaining of the first information includes: A third message sent by the second network device is received, wherein the third message includes the verification mark and the second information, and the second information indicates that the configuration information causes a change in data on the standby module of the second network device.
8. The method according to claim 7, It is characterized in that The updating of only the data on the standby module based on the second information comprises: Based on the second information, only the data on the standby module is processed.
9. The method according to any one of claims 1 to 8, It is characterized in that The method further comprises: The difference is sent.
10. The method according to any one of claims 1 to 9, It is characterized in that The method further comprises: In response to the configuration indication, the first network device is processed related to the configuration information, wherein the configuration indication is used to indicate that the configuration information is effective in the main module of the first network device, or the configuration indication is used to instruct the backup module of the first network device to synchronize the data of the main module of the first network device.
11. The method according to any one of claims 1 to 10, It is characterized in that The main module is a main main control board, and the standby module is a standby main control board.
12. A configuration verification method, It is characterized in that The method is applied to a control entity, comprising: Obtaining configuration information to be configured to the first network device; Sending first information to the first network device, the first information including the configuration information and a verification mark, the verification mark being used to indicate that the configuration information is information to be verified.
13. The method according to claim 12, It is characterized in that The method further comprises: receiving a first difference sent by the first network device, where the first difference is a difference between data of the backup module of the first network device and data of the active module of the first network device only after the configuration information takes effect on the backup module of the first network device, and the first difference is used to reflect a configuration result corresponding to the configuration information on the first network device; A second difference sent by a second network device in the receiving network, wherein the second difference is a difference between data of the standby module of the second network device and data of the active module of the second network device after only the standby module of the second network device is updated based on the second information, the second difference is used to reflect the configuration result corresponding to the configuration information on the second network device, and the second information reflects the influence of the configuration information on the data on the standby module of the first network device; A global verification result is determined according to the first difference and the second difference, where the global verification result is used to characterize a configuration result of the configuration information on a network, where the network includes at least the first network device and the second network device.
14. The method according to claim 13, It is characterized in that The method further comprises: Determining a configuration instruction based on the global verification result; Sending the configuration indication to the first network device; Among them, if the global verification result indicates that the configuration result of the network corresponding to the configuration information is verified, then the configuration indication is used to indicate that the configuration information is effective in the main module of the first network device; or if the global verification result indicates that the configuration result of the network corresponding to the configuration information is verified unsuccessful, then the configuration indication is used to instruct the backup module of the first network device to synchronize the data of the main module of the first network device.
15. A network device, It is characterized in that The network device is a first network device in the network, and the first network device includes a main module and a backup module, including: an obtaining unit, configured to obtain first information, the first information including a verification mark and second information, the verification mark being used to indicate that the second information is information to be verified, and the second information is information related to configuration information to be configured; a processing unit, configured to update only the data on the standby module based on the second information; The processing unit is further used to determine the difference between the data of the active module and the data of the standby module, and the difference is used to reflect the configuration result corresponding to the configuration information.
16. The network device according to claim 15, It is characterized in that The obtaining unit is specifically used for: The verification mark and the configuration information are obtained.
17. The network device according to claim 16, It is characterized in that The obtaining unit is specifically used for: Obtaining a command line, wherein the command line includes the first information; Alternatively, a first message sent by a receiving control entity is received, where the first message includes the first information.
18. The network device according to claim 16 or 17, It is characterized in that The processing unit is specifically used for: The configuration information is effective only on the standby module.
19. The network device according to any one of claims 16 to 18, It is characterized in that The network device further includes a sending unit, The processing unit is further used to generate a second message according to the data of the standby module, wherein the second message includes indication information and third information, wherein the third information is used to indicate a change in the data on the standby module caused by the configuration information, and the indication information is used to indicate that the third information is information related to configuration verification; The sending unit is used to flood the second message in the network.
20. The network device according to claim 15, It is characterized in that The obtaining unit is specifically used for: A third message sent by the second network device is received, wherein the third message includes the verification mark and the second information, and the second information indicates that the configuration information causes a change in data on the standby module of the second network device.
21. The network device according to claim 20, It is characterized in that The processing unit is specifically used for: Based on the second information, only the data on the standby module is processed.
22. The network device according to any one of claims 15 to 21, It is characterized in that The processing unit is further used to perform processing related to the configuration information on the first network device in response to a configuration indication, wherein the configuration indication is used to indicate that the configuration information is effective in the main module of the first network device, or the configuration indication is used to instruct the backup module of the first network device to synchronize the data of the main module of the first network device.
23. The network device according to any one of claims 15 to 22, It is characterized in that The main module is a main main control board, and the standby module is a standby main control board.
24. A controlling entity, It is characterized in that include: A processing unit, configured to obtain configuration information to be configured to the first network device; A sending unit is used to send first information to the first network device, where the first information includes the configuration information and a verification mark, and the verification mark is used to indicate that the configuration information is information to be verified.
25. The control entity according to claim 24, It is characterized in that The control entity further comprises a receiving unit, The receiving unit is configured to receive a first difference sent by the first network device, where the first difference is a difference between data of the backup module of the first network device and data of the main module of the first network device only after the configuration information takes effect on the backup module of the first network device, and the first difference is used to characterize a configuration result corresponding to the configuration information on the first network device; The receiving unit is further used to receive a second difference sent by a second network device in the network, the second difference being a difference between data of the standby module of the second network device and data of the active module of the second network device after only the standby module of the second network device is updated based on the second information, the second difference being used to characterize a configuration result corresponding to the configuration information on the second network device, and the second information reflecting an impact of the configuration information on the data on the standby module of the first network device; The processing unit is further used to determine a global verification result based on the first difference and the second difference, and the global verification result is used to characterize the configuration result of the network corresponding to the configuration information, and the network at least includes the first network device and the second network device.
26. The control entity according to claim 25, It is characterized in that The processing unit is further configured to determine a configuration indication based on the global verification result; The sending unit is further configured to send the configuration indication to the first network device; Among them, if the global verification result indicates that the configuration result of the network corresponding to the configuration information is verified, then the configuration indication is used to indicate that the configuration information is effective in the main module of the first network device; or if the global verification result indicates that the configuration result of the network corresponding to the configuration information is verified unsuccessful, then the configuration indication is used to instruct the backup module of the first network device to synchronize the data of the main module of the first network device.
27. A network device, It is characterized in that The network device includes a memory and a processor; The memory is used to store instructions; The processor is used to execute the instructions in the memory and perform the method according to any one of claims 1 to 11.
28. A controlling entity, It is characterized in that The control entity includes a memory and a processor; The memory is used to store instructions; The processor is used to execute the instructions in the memory and perform the method according to any one of claims 12 to 14.
29. A communication system, It is characterized in that The communication system includes a network device and a control entity; The network device is used to indicate the method described in any one of claims 1 to 11; The control entity is used to execute the method described in any one of claims 12-14.
30. A program product, It is characterized in that The method comprises instructions, which, when executed on a processor, cause the processor to execute the method according to any one of claims 1 to 14.
