Consistency verification method for configuration data of control layer and forwarding layer

By serializing local configuration items between the control layer and forwarding layer in the SDN network and MD5 calculation, data consistency verification is performed based on MD5, which solves the impact of data consistency verification on network bandwidth and performance consumption in the SDN network, and efficient data consistency verification is achieved and network stability is improved.

CN119520331APending Publication Date: 2025-02-25THE 34TH RESEARCH INSTITUTE OF CETC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411625855.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In SDN networks, when the network scale is large, when the data consistency verification of the whole network forwarding layer equipment and control layer data, the performance of the controller software consumes a lot, and in wireless scenarios, data consistency verification occupies a large wireless bandwidth, affecting the transmission of user services.

Method used

The control layer controller software interacts with the forwarding layer device embedded software to interact with the data consistency verification request and configuration item data processing request, and the configuration item serialization and MD5 calculation are performed locally, and data consistency verification is performed based on MD5.

Benefits of technology

It reduces the amount of interactive data, avoids the impact on network bandwidth, simplifies the configuration item data comparison process, reduces the probability of errors, ensures the consistency of the SDN network control plane and forwarding plane data, and improves network stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520331A_ABST
    Figure CN119520331A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of optical communication, in particular to a control layer and forwarding layer configuration data consistency verification method, which comprises the following steps that control layer controller software and forwarding layer equipment embedded software carry out data consistency verification request and configuration item data processing request interaction; the control layer controller software and the forwarding layer equipment embedded software independently carry out serialization and MD5 calculation of configuration items locally respectively; and the control layer controller software and the forwarding layer equipment carry out data consistency verification based on MD5. The method has the advantages that the interactive data volume is small, the network bandwidth is not influenced, the implementation process is simple, and the error probability during configuration item data comparison is reduced. Therefore, the consistency of the data of the control plane and the forwarding plane of the SDN network can be ensured, the stability of the SDN network is improved, and the problem that the network bandwidth is influenced by a large amount of interaction data in the existing verification method is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optical communication technology, and in particular to a method for checking the consistency of control layer and forwarding layer configuration data. Background Art

[0002] SDN (Software Defined Network) is a new network design concept. Its core idea is to separate the management plane from the control plane, and the forwarding plane from the control plane. In China, SDN is regarded as one of the important development directions of network technology. SDN networks are mainly used in data center networks, enterprise networks, cloud computing networks, wireless networks, and Internet of Things networks.

[0003] At present, the method for data consistency verification between the control plane and the forwarding plane of the SDN network is mainly that the controller software of the control layer reads the runtime configuration from the forwarding layer device and compares it with the configuration data in the memory of the controller software. If the configuration data is inconsistent, the configuration data of the forwarding layer device is added or deleted based on the data in the memory of the controller software, and finally the data of the control layer and the forwarding layer are guaranteed to be consistent. Using this method for data consistency verification faces the following problems:

[0004] When the network scale is large, the controller software needs to read the runtime configuration of each device when performing data consistency check on the forwarding layer devices and control layer of the entire network (a single device often contains multiple configuration items, and each configuration contains multiple entries), which consumes a lot of performance of the controller software.

[0005] In wireless scenarios, when performing network-wide data consistency verification, a large amount of configuration data needs to be read from the forwarding layer, which occupies a large amount of wireless bandwidth, has a significant impact on the wireless network, and may affect the transmission of user services.

[0006] When comparing configuration item data, the unit is the configuration item entry. Each configuration item entry is actually a structure object, which often contains multiple fields. The comparison process is cumbersome and prone to errors. Summary of the invention

[0007] The purpose of the present invention is to provide a control layer and forwarding layer configuration data consistency verification method, aiming to solve the problem that the existing verification method has a large amount of interactive data that affects the network bandwidth.

[0008] To achieve the above object, the present invention provides a method for checking the consistency of control layer and forwarding layer configuration data, comprising the following steps:

[0009] The control layer controller software interacts with the forwarding layer device embedded software to perform data consistency check requests and configuration item data processing requests;

[0010] The control layer controller software and the forwarding layer device embedded software independently perform serialization and MD5 calculation of configuration items locally;

[0011] The control layer controller software and forwarding layer devices perform data consistency verification based on MD5.

[0012] Among them, in “the control layer controller software and the forwarding layer device embedded software perform data consistency verification request and configuration item data processing request interaction”, the following steps are included;

[0013] The control layer controller software sends a request to the forwarding layer device embedded software;

[0014] The embedded software of the forwarding layer device responds to the controller software of the control layer;

[0015] The control layer controller software sends a request for consistency check of the specified configuration item data to the forwarding layer device;

[0016] The forwarding layer device responds to the control layer controller software with a request for consistency check of the specified configuration item data;

[0017] The control layer controller software requests the MD5 code of the specified configuration item data from the forwarding layer device;

[0018] The forwarding layer device responds to the control layer controller software with a request for the MD5 code of the specified configuration item data;

[0019] The control layer controller software requests the forwarding plane device to query the specified configuration item;

[0020] The forwarding plane device responds to the query of the specified configuration item data to the control layer controller software.

[0021] Among them, in "the control layer controller software and the forwarding layer device embedded software independently serialize and calculate MD5 of the configuration items locally", the following steps are included:

[0022] Determine the mapping relationship between structures and configuration items;

[0023] The control layer controller software and the forwarding layer device embedded software agree to use the same structure name;

[0024] The controller software sends a configuration item processing request to the forwarding layer device. After the forwarding layer device responds to the request, the embedded software of the forwarding layer device performs a configuration item serialization operation. After the controller software receives the response, it starts the serialization operation.

[0025] The control layer controller software and the forwarding layer device embedded software convert the structure object into a string;

[0026] If the embedded software of the forwarding layer device fails to serialize the configuration items, the failure information will be reported to the controller software of the control layer; if the controller software or the device embedded software fails to serialize the configuration items, the entire data consistency verification process will fail;

[0027] The control layer controller software takes the string generated by the configuration item as input and calculates its MD5 value; if the calculation fails, the failure information is recorded using an identifier; the sending layer device embedded software takes the string generated by the configuration item as input and calculates its MD5 value; if the calculation fails, the failure information is reported to the control layer controller software.

[0028] Among them, in “the control layer controller software and the forwarding layer device embedded software convert the structure object into a string”, the format of the string is JSON format.

[0029] Among them, in "the control layer controller software and the forwarding layer device perform data consistency verification based on MD5", the following steps are included:

[0030] If the embedded software of the forwarding layer device calculates MD5 successfully, it reports the MD5 value to the controller software of the control layer;

[0031] If the layer controller software successfully calculates the MD5 code of the configuration item, it will compare it with the MD5 code of the same configuration item reported by the embedded software of the forwarding layer device;

[0032] If the control layer MD5 code and the forwarding layer MD5 code of the same configuration item are the same, the configuration item content is the same. If the MD5 codes are different, the control layer controller software will add or delete the configuration of the forwarding layer device based on the calculated configuration data difference, ultimately ensuring that the control layer and forwarding layer configuration data are consistent.

[0033] A control layer and forwarding layer configuration data consistency verification method of the present invention comprises the following steps: the control layer controller software and the forwarding layer device embedded software interact with each other in data consistency verification requests and configuration item data processing requests; the control layer controller software and the forwarding layer device embedded software respectively and independently perform serialization and MD5 calculation of configuration items locally; the control layer controller software and the forwarding layer device perform data consistency verification based on MD5. The present invention has the advantages of small interactive data volume, no impact on network bandwidth, simple implementation process, and reduced error probability when comparing configuration item data. Thereby, the consistency of the data of the SDN network control plane and the forwarding plane can be ensured, and the stability of the SDN network can be improved, thereby solving the problem of large interactive data volume affecting network bandwidth in the existing verification method. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 This is a schematic diagram of the data consistency verification protocol interaction.

[0036] Figure 2 The present invention provides a flow chart of a method for checking the consistency of control layer and forwarding layer configuration data.

[0037] Figure 3 It is a flow chart of the interaction between the control layer controller software and the forwarding layer device embedded software in performing data consistency check requests and configuration item data processing requests.

[0038] Figure 4 It is a flowchart in which the control layer controller software and the forwarding layer device embedded software independently perform serialization and MD5 calculation of configuration items locally.

[0039] Figure 5 It is a flow chart of data consistency verification based on MD5 between the control layer controller software and the forwarding layer equipment. DETAILED DESCRIPTION

[0040] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0041] See also Figures 1 to 5 The present invention provides a method for checking the consistency of control layer and forwarding layer configuration data, comprising the following steps:

[0042] The S1 control layer controller software interacts with the forwarding layer device embedded software to request data consistency verification and configuration item data processing;

[0043] S11 The control layer controller software sends a request to the forwarding layer device embedded software;

[0044] Specifically, the control layer controller software requests data consistency verification from the forwarding layer device using a JSON format protocol. The fields in the protocol are shown in Table 1.

[0045] Table 1 Data consistency check request protocol

[0046] Serial number Fields significance 1 seqNum Requested sequence number 2 command The command code of the request; 3 src Controller software IP address 4 dst Forwarding device IP

[0047] The embedded software of the S12 forwarding layer device responds to the control layer controller software;

[0048] Specifically, the forwarding layer device returns a response to the data consistency check request to the control layer controller software, using a protocol in JSON format. The fields in the protocol are specifically shown in Table 2.

[0049] Table 2 Data consistency check request response protocol

[0050] Serial number Fields significance 1 seqNum Requested sequence number 2 command The command code of the request; 3 src Controller software IP address 4 dst Forwarding device IP 5 replay Answer request

[0051] S13 The control layer controller software sends a request for consistency check of the specified configuration item data to the forwarding layer device;

[0052] Specifically, the control layer controller software sends a request to the forwarding layer device to specify the data consistency check of a certain configuration item, using a protocol in JSON format. The fields in the protocol are shown in Table 3.

[0053] Table 3 Request for consistency check of specified configuration item data

[0054] Serial number Fields significance 1 seqNum Requested sequence number 2 command The command code of the request; 3 src Controller software IP address 4 dst Forwarding device IP 5 cfg_name Configuration item name

[0055] S14 The forwarding layer device responds to the control layer controller software with a request for consistency check of the specified configuration item data;

[0056] Specifically, the forwarding layer device responds to the control layer controller software with a specified configuration item data consistency check request, using a JSON format protocol. The fields in the protocol are specifically shown in Table 4.

[0057] Table 4 Request response for consistency check of specified configuration item data

[0058] Serial number Fields significance 1 seqNum Requested sequence number 2 command The command code of the request; 3 src Controller software IP address 4 dst Forwarding device IP 5 cfg_name Configuration item name 6 reply 0 / 1

[0059] The S15 control layer controller software requests the MD5 code of the specified configuration item data from the forwarding layer device;

[0060] Specifically, the control layer controller software requests the forwarding layer device for the MD5 code of the specified configuration item data, using a JSON format protocol. The fields in the protocol are specifically shown in Table 5.

[0061] Table 5 Configuration item MD5 request

[0062] Serial number Fields significance 1 seqNum Requested sequence number 2 command The command code of the request; 3 src Controller software IP address 4 dst Forwarding device IP 5 cfg_name Configuration item name

[0063] The S16 forwarding layer device responds to the control layer controller software with a request for the MD5 code of the specified configuration item data;

[0064] Specifically, the forwarding layer device responds to the control layer controller software with a request for the MD5 code of the specified configuration item data, using a protocol in JSON format. The fields in the protocol are specifically shown in Table 6.

[0065] Table 6 Configuration item MD5 request and response

[0066] Serial number Fields significance 1 seqNum Requested sequence number 2 command The command code of the request; 3 src Controller software IP address 4 dst Forwarding device IP 5 cfg_name Configuration item name 6 md5 MD5 code corresponding to the configuration item

[0067] S17 control layer controller software requests the forwarding plane device to query the specified configuration item;

[0068] Specifically, the control layer controller software requests the forwarding plane device to query the specified configuration item data (including the range of entries), using the JSON format protocol. The fields in the protocol are specifically shown in Table 7;

[0069] Table 7 Configuration item query request

[0070]

[0071]

[0072] The S18 forwarding plane device responds to the query of the specified configuration item data to the control layer controller software.

[0073] Specifically, the forwarding plane device responds to the control layer controller software with the configuration item data of the specified query, using a protocol in JSON format. The fields in the protocol are specifically shown in Table 8.

[0074] Table 8 Configuration item query response

[0075] Serial number Fields significance 1 seqNum Requested sequence number 2 command The command code of the request; 3 src Controller software IP address 4 dst Forwarding device IP 5 cfg_name Configuration item name 6 data Configuration item content

[0076] The S2 control layer controller software and the forwarding layer device embedded software independently perform serialization and MD5 calculation of configuration items locally;

[0077] S21 determines the mapping relationship between the structure and the configuration item;

[0078] Specifically, determine the mapping relationship between the configuration items involved in the consistency check and the structures in the program code. The controller software and the embedded software should use the same mapping relationship.

[0079] S22 control layer controller software and forwarding layer device embedded software agree to use the same structure name;

[0080] Specifically, the control layer controller software and the forwarding layer device embedded software agree to use a structure with the same name, and the field names in the structure are the same.

[0081] S23 The controller software sends a configuration item processing request to the forwarding layer device. After the forwarding layer device responds to the request, the embedded software of the forwarding layer device performs a configuration item serialization operation. After the controller software receives the response, it starts the serialization operation.

[0082] Specifically, the controller software sends a configuration item serialization processing request to the forwarding layer device. After the forwarding layer device responds to the request, the embedded software of the forwarding layer device performs the configuration item serialization operation. After receiving the response, the controller software starts the serialization operation.

[0083] The S24 control layer controller software and the forwarding layer device embedded software convert the structure object into a string;

[0084] The format of the string is JSON format.

[0085] Specifically, the control layer controller software and the forwarding layer device embedded software convert the structure object into a string in JSON format.

[0086] If the configuration item serialization fails in the embedded software of the S25 forwarding layer device, the failure information will be reported to the controller software of the control layer; if the configuration item serialization fails in the controller software or the device embedded software, the entire data consistency verification process will fail;

[0087] Specifically, if the forwarding layer device embedded software fails to serialize the configuration items, the failure information is reported to the control layer controller software. If the controller software or the device embedded software fails to serialize the configuration items, the entire data consistency verification process fails.

[0088] The S26 control layer controller software takes the string generated by the configuration item as input and calculates its MD5 value; if the calculation fails, the failure information is recorded using an identifier; the sending layer device embedded software takes the string generated by the configuration item as input and calculates its MD5 value; if the calculation fails, the failure information is reported to the control layer controller software.

[0089] Specifically, the control layer controller software takes the JSON format string generated by the configuration item as input and calculates its MD5 value; if the calculation fails, the failure information is recorded using an identifier, and the forwarding layer device embedded software takes the JSON format string generated by the configuration item as input and calculates its MD5 value; if the calculation fails, the failure information is reported to the control layer controller software.

[0090] The S3 control layer controller software and forwarding layer devices perform data consistency verification based on MD5.

[0091] If the embedded software of the S31 forwarding layer device calculates MD5 successfully, it reports the MD5 value to the control layer controller software;

[0092] Specifically, if the embedded software of the forwarding layer device calculates the MD5 successfully, it reports the MD5 value to the controller software of the control layer.

[0093] If the S32 layer controller software successfully calculates the MD5 code of the configuration item, it compares it with the MD5 code of the same configuration item reported by the embedded software of the forwarding layer device;

[0094] Specifically, if the control layer controller software successfully calculates the MD5 code of the configuration item, it compares it with the MD5 code of the same configuration item reported by the embedded software of the forwarding layer device.

[0095] S33 If the control layer MD5 code and the forwarding layer MD5 code of the same configuration item are the same, the configuration item content is the same. If the MD5 codes are different, the control layer controller software adds or deletes the configuration of the forwarding layer device based on the calculated configuration data difference, ultimately ensuring that the control layer and forwarding layer configuration data are consistent.

[0096] Specifically, if the control layer MD5 code and the forwarding layer MD5 code of the same configuration item are the same, the configuration item content is the same; if the MD5 codes are different, the corresponding configuration item content is different. If the control layer MD5 code and the forwarding layer MD5 code of the same configuration item are inconsistent, the control layer controller software adds or deletes the configuration of the forwarding layer device based on the calculated configuration data difference, and ultimately ensures that the control layer and forwarding layer configuration data are consistent.

[0097] Beneficial effects:

[0098] 1. The present invention provides a data consistency check interaction process between the control layer controller software and the forwarding layer device. The interaction process is generally described as follows: Figure 1 As shown in the figure, the various steps and stages of data consistency verification are reflected. Using interactive protocols instead of directly querying configuration data for data consistency verification can reduce the transmission of configuration data in the network, so as to cope with various network abnormalities and ensure the rigor and stability of the data consistency verification process.

[0099] 2. The present invention provides a method for serializing configuration items and creating MD5 codes. The main work of data consistency verification is configuration item data serialization and MD5 code calculation, which are completed independently in the control layer controller software and the forwarding layer device embedded software, and the final calculation result is the MD5 code. The MD5 code is a fixed-length byte number, which reduces the number of configuration data read from the forwarding layer device during data consistency verification and reduces bandwidth usage.

[0100] 3. The present invention provides a complete data consistency verification method. First, the consistency verification of the configuration item data is performed based on the MD5 code after the configuration item data is serialized. If the MD5 code is found to be inconsistent, the data consistency verification is performed based on the actual configuration item data, and finally the consistency of the control layer data and the forwarding layer data is ensured.

[0101] What is disclosed above is only a preferred embodiment of a method for checking the consistency of control layer and forwarding layer configuration data of the present invention. Of course, this cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiments and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A method for checking the consistency of configuration data of a control layer and a forwarding layer, characterized in that: The following steps are involved: The control layer controller software interacts with the forwarding layer device embedded software to perform data consistency check requests and configuration item data processing requests; The control layer controller software and the forwarding layer device embedded software independently perform serialization and MD5 calculation of configuration items locally; The control layer controller software and forwarding layer devices perform data consistency verification based on MD5.

2. The method for checking the consistency of control layer and forwarding layer configuration data according to claim 1, characterized in that: In "Control layer controller software and forwarding layer device embedded software interact with each other for data consistency check request and configuration item data processing request", The steps include: The control layer controller software sends a request to the forwarding layer device embedded software; The embedded software of the forwarding layer device responds to the controller software of the control layer; The control layer controller software sends a request for consistency check of the specified configuration item data to the forwarding layer device; The forwarding layer device responds to the control layer controller software with a request for consistency check of the specified configuration item data; The control layer controller software requests the MD5 code of the specified configuration item data from the forwarding layer device; The forwarding layer device responds to the control layer controller software with a request for the MD5 code of the specified configuration item data; The control layer controller software requests the forwarding plane device to query the specified configuration item; The forwarding plane device responds to the query of the specified configuration item data to the control layer controller software.

3. The method for checking the consistency of control layer and forwarding layer configuration data according to claim 1, characterized in that: In "the control layer controller software and the forwarding layer device embedded software independently and locally serialize the configuration items and calculate the MD5", the following steps are included: Determine the mapping relationship between structures and configuration items; The control layer controller software and the forwarding layer device embedded software agree to use the same structure name; The controller software sends a configuration item processing request to the forwarding layer device. After the forwarding layer device responds to the request, the embedded software of the forwarding layer device performs a configuration item serialization operation. After the controller software receives the response, it starts the serialization operation. The control layer controller software and the forwarding layer device embedded software convert the structure object into a string; If the embedded software of the forwarding layer device fails to serialize the configuration items, the failure information will be reported to the controller software of the control layer; if the controller software or the device embedded software fails to serialize the configuration items, the entire data consistency verification process will fail; The control layer controller software takes the string generated by the configuration item as input and calculates its MD5 value; if the calculation fails, the failure information is recorded using an identifier; the sending layer device embedded software takes the string generated by the configuration item as input and calculates its MD5 value; if the calculation fails, the failure information is reported to the control layer controller software.

4. The method for checking the consistency of control layer and forwarding layer configuration data according to claim 3, characterized in that: In "the control layer controller software and the forwarding layer device embedded software convert the structure object into a string", the format of the string is JSON format.

5. The method for checking the consistency of control layer and forwarding layer configuration data according to claim 1, characterized in that: In "Control layer controller software and forwarding layer device perform data consistency check based on MD5", the following steps are included: If the embedded software of the forwarding layer device calculates MD5 successfully, it reports the MD5 value to the controller software of the control layer; If the layer controller software successfully calculates the MD5 code of the configuration item, it will compare it with the MD5 code of the same configuration item reported by the embedded software of the forwarding layer device; If the control layer MD5 code and the forwarding layer MD5 code of the same configuration item are the same, the configuration item content is the same. If the MD5 codes are different, the control layer controller software will add or delete the configuration of the forwarding layer device based on the calculated configuration data difference, ultimately ensuring that the control layer and forwarding layer configuration data are consistent.

Citation Information

Patent Citations

  • Method, device and system for updating configuration information

    CN105553727A

  • Configuration data processing method, software-defined network equipment, system and storage medium

    CN111327446A

  • Judgment method, system and equipment for data type snapshot generation and medium

    CN116010170A