A method, apparatus and device for information conversion

By ensuring model version consistency between controllers and network devices in an SDN network and generating conversion object templates to convert control commands, the problem of poor compatibility between controllers and network devices is solved. This enables network devices from different manufacturers to access and transmit control commands, thus improving the compatibility of the SDN network architecture.

CN115344746BActive Publication Date: 2026-06-05CHINA MOBILE SHANGHAI ICT CO LTD +2

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MOBILE SHANGHAI ICT CO LTD
Filing Date
2021-05-13
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

In existing technologies, poor compatibility between controllers and network devices in SDN networks leads to increased user costs and reduced efficiency.

Method used

By ensuring the consistency of model versions between the controller and network devices, a conversion object template is generated, and the control instructions are converted based on the template to generate target instructions, thereby achieving compatibility between network devices from different manufacturers.

Benefits of technology

It improves the compatibility between the controller and network devices, enables normal access for network devices from different manufacturers, and enhances the compatibility of the control layer under the SDN network architecture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115344746B_ABST
    Figure CN115344746B_ABST
Patent Text Reader

Abstract

The application provides an information conversion method, device and equipment, and relates to the technical field of communication. The information conversion method comprises the following steps: determining the consistency of a first model version of a controller and a second model version of a network device; in the case that it is determined that the first model version and the second model version are inconsistent, generating a conversion object template according to the first model version of the controller and the second model version of the network device; and converting a control instruction issued by the controller according to the conversion object template to generate a target instruction. According to the application, in the case that it is determined that the first model version of the controller and the second model version of the network device are inconsistent, the conversion object template generated according to the first model version and the second model version is used to convert the control instruction issued by the controller to generate a target instruction, and the target instruction is sent to the network device, so that the controller can access network devices of different manufacturers, and the compatibility between the controller and the network device is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to an information conversion method, apparatus, and device. Background Technology

[0002] Software-defined networking (SDN) technology enables the separation of network control and forwarding. An SDN network architecture model is as follows: Figure 1 As shown.

[0003] SDN networks are divided into orchestration, control, and forwarding layers. Users orchestrate configuration policies through a visual interface at the orchestration layer. The control layer provides an open interface to the orchestration layer via an Application Programming Interface (API), receiving configuration policies from the orchestration layer and implementing control plane functions. Interaction between the control layer and the forwarding layer is accomplished through a protocol, such as the Network Configuration Protocol (NETCONF). The controller distributes configuration policies to network devices in the forwarding layer, and the network devices return notification messages to the controller.

[0004] The NETCONF protocol is a network configuration and management protocol based on Extensible Markup Language (XML), which enables communication between controllers and network devices based on the Remote Procedure Call (RPC) mechanism. The NETCONF protocol is divided into a transport layer, an RPC layer, an operational layer, and a content layer. The content layer is not standardized; it is modeled using the YANG modeling language to manipulate and model the data models of this layer and the operational layer.

[0005] The YANG model models XML data format, has its own syntax, and can be converted into XML format without difference. The syntax and semantics of the YANG model itself indicate that the model has good readability and scalability.

[0006] To ensure normal communication between different layers of an SDN network, it is necessary to maintain consistency in the YANG model configuration interface of the orchestration layer, the YANG model of the control layer, and the YANG model of the forwarding layer network devices. Because the YANG model has high scalability, in practical applications, different manufacturers define YANG models with their own characteristics. This leads to the orchestration, control, and forwarding layers needing to be used in a bundled manner, lacking compatibility. Network devices from different manufacturers cannot receive control commands from the controller, increasing user costs and reducing efficiency. Summary of the Invention

[0007] This invention provides an information conversion method, apparatus, and device to solve the problem of poor compatibility between controllers and network devices in the prior art.

[0008] To address the aforementioned technical problems, the embodiments of the present invention provide the following technical solutions:

[0009] This invention provides an information conversion method, including:

[0010] Determine the consistency between the first model version of the controller and the second model version of the network device;

[0011] If it is determined that the first model version and the second model version are inconsistent, a conversion object template is generated based on the first model version and the second model version;

[0012] Based on the conversion object template, the control commands issued by the controller are converted to generate target commands.

[0013] Optionally, determining the consistency between the first model version of the controller and the second model version of the network device includes:

[0014] Obtain the version flag identifier sent by the network device;

[0015] Based on the version flag, the consistency between the first model version of the controller and the second model version of the network device is determined.

[0016] Optionally, the version flag includes: a first preset value and a second preset value;

[0017] The step of determining the consistency between the first model version of the controller and the second model version of the network device based on the version flag sent by the network device includes:

[0018] When the version flag sent by the network device is the first preset value, it is determined that the first model version of the controller is consistent with the second model version of the network device;

[0019] When the version flag sent by the network device is identified as the second preset value, it is determined that the first model version of the controller is inconsistent with the second model version of the network device.

[0020] Optionally, generating a conversion object template based on the first model version and the second model version includes:

[0021] The conversion object template is generated based on the first Extensible Markup Language (XML) message and the second XML message;

[0022] The first Extensible Markup Language message is obtained by converting the first model version and the control instructions;

[0023] The second Extensible Markup Language message is obtained by converting the second model version.

[0024] Optionally, generating the conversion object template based on the first Extensible Markup Language (XML) message and the second XML message includes:

[0025] The same field in the first and second Extensible Markup Language (XML) messages is identified as a third XML message.

[0026] The fields in the second Extensible Markup Language message that are not included in the first Extensible Markup Language message are identified as the fourth Extensible Markup Language message;

[0027] The third and fourth Extensible Markup Language (XML) messages are merged to obtain the conversion object template.

[0028] Optionally, the step of converting the control instructions of the controller according to the conversion object template to generate target instructions includes:

[0029] The control commands are converted into a fifth extensible markup language message.

[0030] The fifth Extensible Markup Language (XML) message is found to have the same target field as the third XML message;

[0031] The conversion object template is updated based on the target field to obtain the target instruction.

[0032] Optionally, if it is determined that the first model version and the second model version are consistent, the method further includes:

[0033] The control command is determined to be the target command.

[0034] This invention also provides an information conversion device, comprising:

[0035] The version determination module is used to determine the consistency between the first model version of the controller and the second model version of the network device.

[0036] The template generation module is used to generate a conversion object template based on the first model version and the second model version when it is determined that the first model version and the second model version are inconsistent.

[0037] The instruction conversion module is used to convert the control instructions issued by the controller according to the conversion object template to generate target instructions.

[0038] Optionally, the version determination module includes:

[0039] The identifier acquisition unit is used to acquire the version flag identifier sent by the network device;

[0040] The version determination unit is used to determine the consistency between the first model version of the controller and the second model version of the network device based on the version flag.

[0041] Optionally, the version flag includes: a first preset value and a second preset value;

[0042] The version determination unit is specifically used for:

[0043] When the version flag sent by the network device is the first preset value, it is determined that the first model version of the controller is consistent with the second model version of the network device;

[0044] When the version flag sent by the network device is identified as the second preset value, it is determined that the first model version of the controller is inconsistent with the second model version of the network device.

[0045] Optionally, the template generation module includes:

[0046] The template generation unit is used to generate the conversion object template based on the first Extensible Markup Language (XML) message and the second XML message;

[0047] The first Extensible Markup Language message is obtained by converting the first model version and the control instructions;

[0048] The second Extensible Markup Language message is obtained by converting the second model version.

[0049] Optionally, the template generation unit is specifically used for:

[0050] The same field in the first and second Extensible Markup Language (XML) messages is identified as a third XML message.

[0051] The fields in the second Extensible Markup Language message that are not included in the first Extensible Markup Language message are identified as the fourth Extensible Markup Language message;

[0052] The third and fourth Extensible Markup Language (XML) messages are merged to obtain the conversion object template.

[0053] Optionally, the instruction conversion module includes:

[0054] The instruction conversion unit is used to convert the control instructions into a fifth extensible markup language message;

[0055] A field determination unit is used to determine the same target field in the fifth Extensible Markup Language message and the third Extensible Markup Language message;

[0056] The template update unit is used to update the conversion object template according to the target field to obtain the target instruction.

[0057] Optionally, if it is determined that the first model version and the second model version are consistent, the apparatus further includes:

[0058] The instruction determination module is used to determine that the control instruction is the target instruction.

[0059] This invention also provides an information conversion device, including a processor, the processor being used for:

[0060] Determine the consistency between the first model version of the controller and the second model version of the network device;

[0061] If it is determined that the first model version and the second model version are inconsistent, a conversion object template is generated based on the first model version and the second model version;

[0062] Based on the conversion object template, the control commands issued by the controller are converted to generate target commands.

[0063] This invention also provides an information conversion device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the information conversion method as described in any of the preceding embodiments.

[0064] This invention also provides a readable storage medium storing a program, which, when executed by a processor, implements the steps of the information conversion method described in any of the preceding claims.

[0065] The beneficial effects of this invention are:

[0066] In this embodiment of the invention, when it is determined that the first model version of the controller is inconsistent with the second model version of the network device, the control instructions issued by the controller are converted according to the conversion object template generated by the first model version and the second model version to generate target instructions, and the target instructions are sent to the network device. This can achieve the technical effect of increasing the compatibility between the controller and the network device when the controller is connected to network devices from different manufacturers. Attached Figure Description

[0067] Figure 1 A model block diagram illustrating the SDN network architecture provided by this invention;

[0068] Figure 2 One of the flowcharts represents an information conversion method provided in an embodiment of the present invention;

[0069] Figure 3 This diagram illustrates the model version verification process provided in this embodiment of the invention.

[0070] Figure 4 This is a flowchart illustrating the process of obtaining a conversion object template as provided in an embodiment of the present invention.

[0071] Figure 5 The second flowchart illustrates the information conversion method provided in this embodiment of the invention.

[0072] Figure 6 This is a schematic diagram of the structure of the information conversion device provided in an embodiment of the present invention;

[0073] Figure 7 A block diagram illustrating the information conversion device provided in an embodiment of the present invention;

[0074] Figure 8 This is a block diagram illustrating an information conversion device provided in another embodiment of the present invention. Detailed Implementation

[0075] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0076] This invention addresses the problem of poor compatibility between controllers and network devices in the prior art by providing an information conversion method, apparatus, and device.

[0077] like Figure 2 As shown, an embodiment of the present invention provides an information conversion method, including:

[0078] Step 201: Determine the consistency between the first model version of the controller and the second model version of the network device.

[0079] It should be noted that the information conversion method provided in this embodiment of the invention can be applied to a controller, or to an information conversion system independent of the controller and network devices. In this embodiment of the invention, the application of the information conversion method to an information conversion system is used as an example for explanation.

[0080] It should also be noted that both the controller and the network device are modeled based on XML network configuration and management protocols, such as the YANG model. In this embodiment of the invention, the YANG model is used as an example for illustration.

[0081] In this embodiment of the invention, both the first model version and the second model version are presented in the format of YANG model version number. For example, the format of YANG model version number can be: initiating unit-version number, such as: cmcc-v0001. Optionally, the format of YANG model version number can also be: version number, such as: v0001.

[0082] The information conversion system uses the YANG model version number of the controller and the YANG model version number of the network device to confirm whether the first model version of the controller is consistent with the second model version of the network device.

[0083] Step 202: If the first model version and the second model version are inconsistent, generate a conversion object template based on the first model version and the second model version.

[0084] In this embodiment of the invention, when the information conversion system confirms that the YANG model version of the controller and the YANG model version of the network device are inconsistent based on the YANG model version number of the controller and the YANG model version number of the network device, a YANG model conversion object template is defined based on the YANG model version of the controller and the YANG model version of the network device.

[0085] If the information conversion system confirms that the YANG model versions of the controller and the network device are consistent based on the YANG model version number of the controller and the YANG model version number of the network device, then it is not necessary to generate a YANG model conversion object template based on the YANG model versions of the controller and the network device.

[0086] Step 203: Based on the conversion object template, convert the control instructions issued by the controller to generate the target instructions.

[0087] In this embodiment of the invention, when the information conversion system confirms that the YANG model versions of the controller and the network device are inconsistent based on the YANG model version number of the controller and the YANG model version number of the network device, the control command issued by the controller is transferred to the information conversion system and converted to generate a target command. The information conversion system then sends the converted target command to the network device, and the network device performs network configuration according to the target command.

[0088] Once the YANG model version numbers of the controller and the network device are confirmed to be consistent, the control commands issued by the controller are directly sent to the network device, and the network device performs network configuration according to the control commands.

[0089] Optionally, the control command can be the first command issued by the controller or a command issued before.

[0090] In this embodiment of the invention, when it is determined that the first model version of the controller is inconsistent with the second model version of the network device, the control instructions issued by the controller are converted according to the conversion object template generated by the first model version and the second model version to generate target instructions. The target instructions are then sent to the network device, and the network device performs network configuration according to the target instructions. This enables the controller to access network devices from different manufacturers and increases the compatibility between the controller and the network device.

[0091] Optionally, determining the consistency between the first model version of the controller and the second model version of the network device includes:

[0092] Obtain the version flag identifier sent by the network device;

[0093] Based on the version flag, the consistency between the first model version of the controller and the second model version of the network device is determined.

[0094] In this embodiment of the invention, a version flag identifier Tag of the controller and a version flag identifier Tag1 of the network device are defined. Based on the value of the version flag identifier Tag1 sent by the network device, it is determined whether the YANG model versions of the controller and the network device are consistent.

[0095] Optionally, both the version flag of the controller and the version flag of the network device are XML-encoded version flags.

[0096] Optionally, the version flag includes: a first preset value and a second preset value;

[0097] Based on the version flag sent by the network device, determine the consistency between the controller's first model version and the network device's second model version, including:

[0098] When the version flag sent by the network device is set to the first preset value, it is determined that the first model version of the controller is consistent with the second model version of the network device.

[0099] When the version flag sent by the network device is set to the second preset value, it is determined that the first model version of the controller is inconsistent with the second model version of the network device.

[0100] In this embodiment of the invention, the first preset value is 0 and the second preset value is 1.

[0101] The following is combined Figure 3 The process of confirming the model version will be explained in detail.

[0102] In the model version verification system, YANG model versions are defined for the controller and network devices. The controller's initial version flag (Tag = 0) and the network device's initial version flag (Tag1 = 0) are defined. When the network device first connects to the controller, both the controller and the network device use XML-encoded version flags and YANG model version numbers. The controller sends its YANG model version number to the network device. If the version numbers match, the network device's version flag is set to 0 (Tag1 = 0). If the version numbers do not match, the network device's version flag is set to 1 (Tag1 = 1). The network device then sends the updated version flag to the controller, and the controller's version flag (Tag = Tag1) is updated.

[0103] Based on the YANG model, before sending a control command to a network device, the controller queries the version flag of the corresponding network device. If the version flag Tag of the corresponding network device is 0, it is determined that the versions of the two boards are consistent, and no conversion is required. The controller directly sends the control command to the network device. If the version flag Tag of the corresponding network device is 1, it is determined that the versions of the two boards are inconsistent, and the control command sent by the controller is transferred to the information conversion system for conversion.

[0104] In this embodiment, when the network device's Tag=0, the controller's YANG model version number is consistent with the network device's YANG model version number. When the network device's version flag Tag=1, the controller's YANG model version number is inconsistent with the network device's YANG model version number. Since both the first model version and the second model version are presented in the format of YANG model version number, when the network device's version flag Tag=0, the controller's first model version (YANG model version) is consistent with the network device's second model version (YANG model version). When the network device's version flag Tag=1, the controller's first model version (YANG model version) is inconsistent with the network device's second model version (YANG model version).

[0105] Optionally, a conversion object template is generated based on the first model version and the second model version, including:

[0106] Generate a transformation object template based on the first and second Extensible Markup Language (XML) messages;

[0107] The first Extensible Markup Language message is obtained by converting the first model version and control instructions;

[0108] The second Extensible Markup Language message is derived from the second model version.

[0109] In this embodiment of the invention, the information conversion system converts an initial control command example issued by the controller into XML format under the controller's YANG model version, generating a first Extensible Markup Language (XML) message. It also converts an initial blank model example of the network device into XML format under the network device's YANG model version, generating a second XML message. Based on the first and second XML messages, a conversion object template is generated.

[0110] Optionally, a transformation object template is generated based on the first Extensible Markup Language (XML) message and the second XML message, including:

[0111] Identify that the same field in the first and second Extensible Markup Language (XML) messages is a third XML message;

[0112] Determine a field in a second Extensible Markup Language (XML) message that is not included in the first Extensible Markup Language (XML) message as a fourth XML message;

[0113] The third and fourth extensible markup language messages are merged to obtain the transformation object template.

[0114] The following is combined Figure 4 This section details the process of obtaining the conversion object template.

[0115] The controller's control instruction example based on the YANG model is converted into XML format to generate the first Extensible Markup Language (XML) message XML_1. The blank model example of the network device based on the YANG model is converted into XML format to generate the second Extensible Markup Language (XML) message XML_2. The key fields in the first Extensible Markup Language (XML) message XML_1 and the second Extensible Markup Language (XML) message XML_2 are compared, and the fields that are repeated in XML_1 and XML_2 are marked and defined as valid fields of the controller's YANG model. The third Extensible Markup Language (XML) message XML_3 defines the key fields in XML_2 that are not included in XML_1 as fields not covered by the controller's YANG model. The fourth Extensible Markup Language (XML) message XML_4 merges XML_3 and XML_4 into the controller's YANG model transformation object template XML_obj.

[0116] Optionally, based on the conversion object template, the controller's control instructions are converted to generate target instructions, including:

[0117] The control commands are converted into Extensible Markup Language (XML) messages.

[0118] Identify the same target fields in the fifth Extensible Markup Language (XML) message as in the third XML message;

[0119] Based on the target field, the conversion object template is updated to obtain the target instruction.

[0120] In this embodiment of the invention, after determining the conversion object template XML_obj, the controller converts the initial control instructions into XML format to obtain a fifth Extensible Markup Language (XML) message. It then identifies the same key field in the fifth XML message that is identical to the third XML_3 message, which is the target field. The target field is then overwritten in the conversion object template XML_obj, while other fields in the conversion object template XML_obj remain unchanged. The conversion object template XML_obj is then updated to obtain an updated XML_obj. The updated XML_obj is an instruction recognizable by the network device, and this recognizable, updated XML_obj is sent as the target instruction to the corresponding network device.

[0121] It should be noted that when the controller has new control commands to issue, the steps after confirming the conversion object template XML_obj can be repeated.

[0122] Optionally, if it is determined that the first model version and the second model version are consistent, the method further includes:

[0123] The control command is identified as the target command.

[0124] In this embodiment of the invention, if the YANG model version of the controller is determined to be consistent with the YANG model version of the network device based on the version flag bit sent by the network device, then the control command issued by the controller is the target command, and the control command is directly sent to the corresponding network device.

[0125] Optionally, the control command can be an initial control command issued by the controller, or it can be a non-initial control command.

[0126] The following is combined Figure 5 The information conversion process will be explained in detail.

[0127] First, confirm the YANG model version of the controller and the YANG model version of the network device. Exchange and confirm the YANG model versions of both parties. Determine whether YANG model conversion is needed based on whether the YANG model versions of both parties are consistent. If it is determined that the YANG model versions of both parties are inconsistent, YANG model conversion is required. Obtain the conversion object template XML_obj based on the YANG model versions of the controller and the network device. Convert the control commands issued by the controller into XML format and overwrite the corresponding identical fields in the corresponding conversion object template XML_obj. Leave other fields of the conversion object template XML_obj unchanged. Update the conversion object template XML_obj and send the updated conversion object template XML_obj to the network device. If the controller issues new control commands, simply convert the new control commands into XML format, and then perform the subsequent overwrite and update steps before sending them to the corresponding network device.

[0128] In this embodiment of the invention, when it is determined that the first model version of the controller is inconsistent with the second model version of the network device, the control instructions issued by the controller are converted according to the conversion object template generated by the first model version and the second model version to generate target instructions. The target instructions are then sent to the network device. This not only enables network devices with different YANG models to access the controller normally and transmit control instructions, but also enables the controller to access network devices from different manufacturers, improving the compatibility of the control layer under the SDN network architecture.

[0129] like Figure 6 As shown, embodiments of the present invention also provide an information conversion device, comprising:

[0130] Version determination module 601 is used to determine the consistency between the first model version of the controller and the second model version of the network device;

[0131] The template generation module 602 is used to generate a conversion object template based on the first model version and the second model version when it is determined that the first model version and the second model version are inconsistent.

[0132] The instruction conversion module 603 is used to convert the control instructions issued by the controller according to the conversion object template and generate the target instructions.

[0133] In this embodiment of the invention, when it is determined that the first model version of the controller is inconsistent with the second model version of the network device, the control instructions issued by the controller are converted according to the conversion object template generated by the first model version and the second model version to generate target instructions, and the target instructions are sent to the network device. This can enable the controller to access network devices from different manufacturers and increase the compatibility between the controller and the network device.

[0134] Optionally, the version determination module 601 includes:

[0135] The identifier acquisition unit is used to acquire the version flag identifier sent by the network device;

[0136] The version determination unit is used to determine the consistency between the first model version of the controller and the second model version of the network device based on the version flag.

[0137] Optionally, the version flag includes: a first preset value and a second preset value;

[0138] The version determination unit is specifically used for:

[0139] When the version flag sent by the network device is set to the first preset value, it is determined that the first model version of the controller is consistent with the second model version of the network device.

[0140] When the version flag sent by the network device is set to the second preset value, it is determined that the first model version of the controller is inconsistent with the second model version of the network device.

[0141] Optionally, the template generation module 602 includes:

[0142] The template generation unit is used to generate a conversion object template based on the first Extensible Markup Language (XML) message and the second XML message.

[0143] The first Extensible Markup Language message is obtained by converting the first model version and control instructions;

[0144] The second Extensible Markup Language message is derived from the second model version.

[0145] Optionally, the template generation unit is specifically used for:

[0146] Identify that the same field in the first and second Extensible Markup Language (XML) messages is a third XML message;

[0147] Determine a field in a second Extensible Markup Language (XML) message that is not included in the first Extensible Markup Language (XML) message as a fourth XML message;

[0148] The third and fourth extensible markup language messages are merged to obtain the transformation object template.

[0149] Optionally, the instruction conversion module 603 includes:

[0150] The instruction conversion unit is used to convert control instructions into Extensible Markup Language (XML) messages.

[0151] The field determination unit is used to determine the same target fields in the fifth Extensible Markup Language (XML) message and the third XML message.

[0152] The template update unit is used to update the transformation object template according to the target field to obtain the target instruction.

[0153] Optionally, if it is determined that the first model version and the second model version are consistent, the apparatus further includes:

[0154] The instruction determination module is used to determine whether a control instruction is the target instruction.

[0155] It should be noted that the information conversion device provided in the embodiments of the present invention is a device capable of performing the above-described information conversion method. Therefore, all embodiments of the above-described information conversion method are applicable to this device and can achieve the same or similar technical effects.

[0156] like Figure 7 As shown, this embodiment of the invention also provides an information conversion device 700, including a processor 710, the processor 710 being used for:

[0157] Determine the consistency between the first model version of the controller and the second model version of the network device;

[0158] If the first model version and the second model version are found to be inconsistent, a conversion object template is generated based on the first model version and the second model version.

[0159] Based on the conversion object template, the control commands issued by the controller are converted to generate the target commands.

[0160] As can be seen, when the first model version of the controller and the second model version of the network device are inconsistent, the information conversion device 700 converts the control commands issued by the controller according to the conversion object template generated by the first model version and the second model version, generates the target command, and sends the target command to the network device. This enables the controller to access network devices from different manufacturers and increases the compatibility between the controller and the network device.

[0161] Optionally, the information conversion device 700 further includes a transceiver 720, which is used to: obtain the version flag identifier sent by the network device.

[0162] Optionally, the processor 710 is configured to: determine the consistency between the first model version of the controller and the second model version of the network device based on the version flag.

[0163] Optionally, the version flag includes: a first preset value and a second preset value;

[0164] The processor 710 is used for:

[0165] When the version flag sent by the network device is set to the first preset value, it is determined that the first model version of the controller is consistent with the second model version of the network device.

[0166] When the version flag sent by the network device is set to the second preset value, it is determined that the first model version of the controller is inconsistent with the second model version of the network device.

[0167] Optionally, the processor 710 is used for:

[0168] Generate a transformation object template based on the first and second Extensible Markup Language (XML) messages;

[0169] The first Extensible Markup Language message is obtained by converting the first model version and control instructions;

[0170] The second Extensible Markup Language message is derived from the second model version.

[0171] Optionally, the processor 710 is used for:

[0172] Identify that the same field in the first and second Extensible Markup Language (XML) messages is a third XML message;

[0173] Determine a field in a second Extensible Markup Language (XML) message that is not included in the first Extensible Markup Language (XML) message as a fourth XML message;

[0174] The third and fourth extensible markup language messages are merged to obtain the transformation object template.

[0175] Optionally, the processor 710 is used for:

[0176] The control commands are converted into Extensible Markup Language (XML) messages.

[0177] Identify the same target fields in the fifth Extensible Markup Language (XML) message as in the third XML message;

[0178] Based on the target field, the conversion object template is updated to obtain the target instruction.

[0179] Optionally, the processor 710 is further configured to:

[0180] The control command is identified as the target command.

[0181] The information conversion device 700 provided in this application embodiment, when it is determined that the first model version of the controller and the second model version of the network device are inconsistent, converts the control instructions issued by the controller according to the conversion object template generated by the first model version and the second model version, generates the target instructions, and sends the target instructions to the network device. This can enable the controller to access network devices from different manufacturers and increase the compatibility between the controller and the network device.

[0182] Another embodiment of the present invention also provides an information conversion device, such as... Figure 8 As shown, it includes: a processor 801, a memory 802, and a program stored in the memory 802 and executable on the processor 801. When the program is executed by the processor 801, it implements the above-described information conversion method.

[0183] Optionally, it also includes a transceiver 803, which is used to receive and send data under the control of the processor 801.

[0184] Among them, Figure 8 In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 801) and memory (memory 802). The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 803 can be multiple elements, including transmitters and receivers, providing a unit for communicating with various other devices over a transmission medium. The processor 801 is responsible for managing the bus architecture and general processing, and the memory 802 can store data used by the processor 801 during operation.

[0185] This invention also provides a readable storage medium storing a program, which, when executed by a processor, implements the steps of the information conversion method described in any of the preceding claims.

[0186] The processor mentioned above is the processor in the information conversion device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0187] It should be further noted that the information conversion devices described in this specification include, but are not limited to, smartphones, tablets, etc., and many of the described functional components are referred to as modules in order to emphasize the independence of their implementation methods.

[0188] In this embodiment of the invention, the module can be implemented in software so that it can be executed by various types of processors. For example, an identified executable code module may include one or more physical or logical blocks of computer instructions, which may be constructed as objects, procedures, or functions. Nevertheless, the executable code of the identified module does not need to be physically located together, but may include different instructions stored in different bits, which, when logically combined, constitute the module and achieve the module's intended purpose.

[0189] In practice, an executable code module can be a single instruction or many instructions, and can even be distributed across multiple different code segments, different programs, and across multiple memory devices. Similarly, operational data can be identified within the module and can be implemented in any suitable form and organized within any suitable type of data structure. This operational data can be collected as a single dataset or distributed across different locations (including different storage devices), and can exist, at least in part, solely as electronic signals within the system or network.

[0190] When a module can be implemented using software, considering the current level of hardware technology, modules that can be implemented in software can be implemented using hardware circuits by those skilled in the art to achieve the corresponding functions, without considering cost. These hardware circuits include conventional very-large-scale integrated circuits (VLSI) or gate arrays, as well as existing semiconductors such as logic chips and transistors, or other discrete components. Modules can also be implemented using programmable hardware devices, such as field-programmable gate arrays, programmable array logic, and programmable logic devices.

[0191] The exemplary embodiments described above are with reference to the accompanying drawings. Many different forms and embodiments are feasible without departing from the spirit and teachings of the invention. Therefore, the invention should not be construed as limiting the exemplary embodiments set forth herein. Rather, these exemplary embodiments are provided to make the invention complete and convey the scope of the invention to those skilled in the art. In these drawings, component dimensions and relative dimensions may be exaggerated for clarity. The terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. As used herein, unless clearly indicated otherwise, the singular forms “a,” “an,” and “the” are intended to include all such forms. It will be further understood that the terms “comprising” and / or “including”, when used in this specification, indicate the presence of the stated features, integers, steps, operations, components, and / or elements, but do not exclude the presence or addition of one or more other features, integers, steps, operations, components, and / or groups thereof. Unless otherwise indicated, when stated, a range of values ​​includes the upper and lower limits of the range and any subranges in between.

[0192] The above describes the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also within the scope of protection of the present invention.

Claims

1. An information conversion method, characterized in that, include: Determine the consistency between the first model version of the controller and the second model version of the network device; If it is determined that the first model version and the second model version are inconsistent, a conversion object template is generated based on the first model version and the second model version; Based on the conversion object template, the control instructions issued by the controller are converted to generate target instructions; The step of generating a conversion object template based on the first model version and the second model version includes: The conversion object template is generated based on the first Extensible Markup Language (XML) message and the second XML message; wherein the first XML message is obtained by converting the first model version and the control instructions; and the second XML message is obtained by converting the second model version. The step of generating the conversion object template based on the first Extensible Markup Language (XML) message and the second XML message includes: The same field in the first and second Extensible Markup Language (XML) messages is identified as a third XML message. The fields in the second Extensible Markup Language message that are not included in the first Extensible Markup Language message are identified as the fourth Extensible Markup Language message; The third Extensible Markup Language (XML) message and the fourth XML message are merged to obtain the conversion object template; The step of converting the controller's control instructions according to the conversion object template to generate target instructions includes: The control commands are converted into a fifth extensible markup language message. The fifth Extensible Markup Language (XML) message is found to have the same target field as the third XML message; The conversion object template is updated based on the target field to obtain the target instruction.

2. The information conversion method according to claim 1, characterized in that, Determining the consistency between the first model version of the controller and the second model version of the network device includes: Obtain the version flag identifier sent by the network device; Based on the version flag, the consistency between the first model version of the controller and the second model version of the network device is determined.

3. The information conversion method according to claim 2, characterized in that, The version flag includes: a first preset value and a second preset value; The step of determining the consistency between the first model version of the controller and the second model version of the network device based on the version flag sent by the network device includes: When the version flag sent by the network device is the first preset value, it is determined that the first model version of the controller is consistent with the second model version of the network device; When the version flag sent by the network device is identified as the second preset value, it is determined that the first model version of the controller is inconsistent with the second model version of the network device.

4. The information conversion method according to claim 1, characterized in that, If it is determined that the first model version and the second model version are consistent, the method further includes: The control command is determined to be the target command.

5. An information conversion device, characterized in that, include: The version determination module is used to determine the consistency between the first model version of the controller and the second model version of the network device. The template generation module is used to generate a conversion object template based on the first model version and the second model version when it is determined that the first model version and the second model version are inconsistent. The instruction conversion module is used to convert the control instructions issued by the controller according to the conversion object template to generate target instructions; The template generation module includes: The template generation unit is configured to generate the conversion object template based on a first Extensible Markup Language (XML) message and a second XML message; wherein the first XML message is obtained by converting the first model version and the control instructions; and the second XML message is obtained by converting the second model version. Specifically, the template generation unit is used for: The same field in the first and second Extensible Markup Language (XML) messages is identified as a third XML message. The fields in the second Extensible Markup Language message that are not included in the first Extensible Markup Language message are identified as the fourth Extensible Markup Language message; The third Extensible Markup Language (XML) message and the fourth XML message are merged to obtain the conversion object template; The instruction conversion module includes: The instruction conversion unit is used to convert the control instructions into a fifth extensible markup language message; A field determination unit is used to determine the same target field in the fifth Extensible Markup Language message and the third Extensible Markup Language message; The template update unit is used to update the conversion object template according to the target field to obtain the target instruction.

6. An information conversion device, characterized in that, Includes a processor, the processor being used for: Determine the consistency between the first model version of the controller and the second model version of the network device; If it is determined that the first model version and the second model version are inconsistent, a conversion object template is generated based on the first model version and the second model version; Based on the conversion object template, the control instructions issued by the controller are converted to generate target instructions; The processor is used for: A conversion object template is generated based on the first Extensible Markup Language (XML) message and the second XML message; wherein the first XML message is obtained by conversion of the first model version and control instructions; and the second XML message is obtained by conversion of the second model version. The processor is used for: Identify that the same field in the first and second Extensible Markup Language (XML) messages is a third XML message; Determine a field in a second Extensible Markup Language (XML) message that is not included in the first Extensible Markup Language (XML) message as a fourth XML message; The third and fourth Extensible Markup Language (XML) messages are merged to obtain the transformation object template; The processor is used for: The control commands are converted into Extensible Markup Language (XML) messages. Identify the same target fields in the fifth Extensible Markup Language (XML) message as in the third XML message; Based on the target field, the conversion object template is updated to obtain the target instruction.

7. An information conversion device, characterized in that, include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the information conversion method as described in any one of claims 1 to 4.

8. A readable storage medium, characterized in that, The readable storage medium stores a program that, when executed by a processor, implements the steps of the information conversion method as described in any one of claims 1 to 4.