Device control method, system, computer readable medium and electronic device

By configuring the data set on the master device and receiving control instructions, the slave device is configured and the master device controls the slave device. This solves the problems of low processing efficiency and waste of bandwidth resources of the SDN controller and improves the overall efficiency of the system.

CN114338377BActive Publication Date: 2024-10-08CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111614421.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2024-10-08
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

The existing SDN controller has low processing efficiency and wastes bandwidth resources when managing master and slave devices, mainly because it cannot effectively utilize the control relationship between the master device and the slave device.

Method used

By configuring the candidate data set and startup data set on the master device and receiving control instructions from the software-defined network controller, the candidate data set or startup data set of the slave device is configured, and the slave device configuration data is generated and sent to the slave device. The running data is executed in a centralized manner, thereby enabling the master device to control the slave devices and reducing the need for the SDN controller to directly control the slave devices.

Benefits of technology

It improves the processing efficiency of the SDN controller, saves bandwidth resources, and avoids efficiency reduction and resource waste caused by directly controlling slave devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114338377B_ABST
    Figure CN114338377B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of communication technology, and specifically relates to a device control method, system, computer-readable medium and electronic device. The present application receives a control instruction issued by a software-defined network controller to the at least one slave device, and configures the data in the candidate data set or at least one startup data set based on the control instruction to obtain the slave device configuration data; and then sends the slave device configuration data to the second running data set of the at least one slave device for execution. Through the method of the present application, the candidate data set and the startup data set of the slave device can be configured on the master device, and the candidate data set or at least one startup data set on the master device can be used for data configuration to realize the control of the slave device by the master device. Therefore, it is possible to avoid the SDN controller directly controlling the slave device, improve the processing efficiency of the SDN controller, and save bandwidth resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a device control method, a device control apparatus, a computer-readable medium, and an electronic device. Background Art

[0002] Software Defined Network (SDN) is a new type of innovative network architecture. Its core technology separates the control plane from the data plane of network devices, thereby achieving flexible control of network traffic and making the network as a pipeline more intelligent.

[0003] SDN mainly uses the network configuration protocol (NETCONF protocol) for network management. However, under the existing network configuration protocol, the SDN controller and the device can only perform one-to-many direct management. For the master and slave devices with a master-slave relationship, the SDN controller can only be used to directly control multiple slave devices, and the master-slave relationship between the master and slave devices cannot be used for control, which will reduce the processing efficiency of the SDN controller and waste bandwidth resources.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the present application is to provide a device control method, a device control apparatus, a computer-readable medium and an electronic device, which at least to some extent overcome the technical problems of low service processing efficiency and waste of bandwidth resources of SDN controllers in related technologies.

[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0007] According to one aspect of an embodiment of the present application, a device control method is provided, which is used for a master device and at least one slave device, wherein a candidate data set, a first operating data set, and at least one startup data set are configured on the master device, and the at least one slave device is connected to the master device, and a second operating data set is configured on the at least one slave device; the method comprises:

[0008] receiving a control instruction for the at least one slave device issued by a software defined network controller;

[0009] Based on the control instruction, configure the data in the candidate data set or at least one startup data set to obtain slave device configuration data;

[0010] The slave device configuration data is sent to a second operating data set of the at least one slave device for execution.

[0011] In some embodiments of the present application, based on the above technical solution, the master device is configured with a candidate data set, a first running data set, and multiple startup data sets, the multiple startup data sets include a first startup data set for storing configuration data when the master device is started and at least one second startup data set for storing configuration data when the slave device is started, and the number of the second startup data sets is the same as the number of the slave devices;

[0012] The method for configuring the data in the candidate data set or at least one startup data set based on the control instruction includes:

[0013] The data in the candidate data set or the second startup data set is configured based on the control instruction.

[0014] In some embodiments of the present application, based on the above technical solution, a data set tag is set in the control instruction, and the data set tag is used to determine the location of the data set to be configured by the control instruction; based on the control instruction, the data in the candidate data set or at least one startup data set is configured to obtain the method for slave device configuration data, including:

[0015] Obtaining a data set label from the control instruction;

[0016] Determining the location of the data set to be configured by the control instruction according to the data set label;

[0017] The data in the data set at the location where the data set is located is configured to obtain slave device configuration data.

[0018] In some embodiments of the present application, based on the above technical solution, the control instruction includes an editing instruction, and the method for configuring the data in the candidate data set or at least one startup data set based on the control instruction to obtain the slave device configuration data includes:

[0019] The data in the candidate data set is edited based on the editing instruction to obtain slave device configuration data.

[0020] In some embodiments of the present application, based on the above technical solution, the control instruction includes a slave device restart instruction; and the method of configuring the data in the candidate data set or at least one startup data set based on the control instruction to obtain slave device configuration data includes:

[0021] The data in the at least one startup data set is configured based on the slave device restart instruction to obtain slave device restart data.

[0022] In some embodiments of the present application, based on the above technical solution, the control instruction includes a data backup instruction, and the method includes:

[0023] Based on the data backup instruction, copy the data in the second running data set of the at least one slave device to obtain slave device backup data;

[0024] The slave device backup data is sent to the at least one startup data set corresponding to the at least one slave device for backup.

[0025] In some embodiments of the present application, based on the above technical solution, the method further includes:

[0026] receiving a service request sent by the master device or the slave device to request data from the software defined network controller;

[0027] Request data from the software defined network controller according to the service request.

[0028] According to one aspect of an embodiment of the present application, a device control apparatus is provided, which is used for a master device and at least one slave device, wherein a candidate data set, a first operating data set and at least one startup data set are configured on the master device, and the at least one slave device is connected to the master device, and a second operating data set is configured on the at least one slave device; the apparatus comprises:

[0029] An acquisition module, configured to receive a control instruction for the at least one slave device issued by a software defined network controller;

[0030] A data configuration module, configured to configure the data in the candidate data set or at least one startup data set based on the control instruction to obtain slave device configuration data;

[0031] The execution module is used to send the slave device configuration data to the second operation data set of the at least one slave device for execution.

[0032] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the device control method in the above technical solution is implemented.

[0033] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute a device control method as in the above technical solution by executing the executable instructions.

[0034] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the device control method in the above technical solution.

[0035] In the technical solution provided in the embodiment of the present application, the present application receives a control instruction issued by a software defined network controller to the at least one slave device; and configures the data in the candidate data set or at least one startup data set based on the control instruction to obtain the slave device configuration data; and then sends the slave device configuration data to the second running data set of the at least one slave device for execution. Through the method of the present application, the candidate data set and the startup data set of the slave device can be configured on the master device, and the candidate data set or at least one startup data set on the master device can be used for data configuration to realize the control of the slave device by the master device. Therefore, it can avoid the SDN controller directly controlling the slave device, improve the processing efficiency of the SDN controller, and save bandwidth resources.

[0036] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 The diagram schematically shows the connection relationship between the existing SDN controller and the master and slave devices.

[0039] Figure 2 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.

[0040] Figure 3 The flowchart of the device control method of the present application is schematically shown.

[0041] Figure 4 The diagram schematically shows the connection relationship between the SDN controller of the present application and the master and slave devices.

[0042] Figure 5 The flowchart of the method for obtaining slave device configuration data under the data set tag of the present application is schematically shown.

[0043] Figure 6 The diagram schematically shows the correspondence between the second startup data set of the present application and the slave device.

[0044] Figure 7 The schematic diagram shows the operation of editing a slave device in the present application.

[0045] Figure 8 The schematic diagram shows the operation of restarting a slave device in the present application.

[0046] Fig. 9 The schematic diagram schematically shows the operation of backing up data from a slave device in the present application.

[0047] Fig.10 A flowchart schematically shows a method in which a master device and a slave device of the present application request data from a software defined network controller.

[0048] Fig.11 The structural block diagram of the device control device provided in the embodiment of the present application is schematically shown.

[0049] Fig.12 The structure block diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0050] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0051] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the present application.

[0052] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0053] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0054] Software Defined Network (SDN) is a new type of innovative network architecture and a way to implement network virtualization. Its core technology separates the control plane from the data plane of network devices, thereby achieving flexible control of network traffic, making the network as a pipeline more intelligent, and providing a good platform for innovation of core networks and applications.

[0055] The key point of SDN is to add an SDN controller to the network architecture, centralize the original distributed control plane to an SDN controller, and use this centralized controller to realize centralized network control. The network programmability is improved through the network softwareization process of the SDN controller. Since the entire network is controlled by the controller, the automation of the network service network is a matter of course, and no other system is required for configuration and decomposition. Under the SDN network architecture, the SDN controller can complete the network service deployment by itself, provide various network services, such as L2VPN, L3VPN, etc., shield the internal details of the network, and provide network service automation capabilities. The SDN controller can intelligently adjust the network traffic path according to the network traffic status to improve network utilization.

[0056] Based on the characteristics of SDN, we have to mention the Network Configuration Protocol (NETCONF protocol). Access network SDN devices mainly use the NETCONF protocol for network management. The NETCONF protocol provides a mechanism for managing network devices. Users can use this mechanism to add, modify, and delete the configuration of network devices and obtain the configuration and status information of network devices.

[0057] Through the NETCONF protocol, network devices can provide standardized application programming interfaces (APIs), and applications can directly use these APIs to send and obtain configurations from network devices. The purpose of the NETCONF protocol is to automate network configuration in a programmable manner, thereby simplifying and accelerating the deployment of network devices and services, and saving costs for network operators and enterprise users. Therefore, SDN can use the NETCONF protocol to implement network control of SDN controllers.

[0058] The NETCONF protocol believes that network model data can be divided into two categories, namely state data and configuration data. State data generally refers to the inherent attribute data of the server (device) and the current running state data, etc. This type of data can only be queried. Configuration data refers to the data configured on the device by the user (in some way). The configuration data itself can exist in multiple databases. The standard mentions <running / > The library (hereinafter referred to as the running data set) is used to save the currently effective configuration; <candidate / > (hereinafter referred to as candidate data set) is used to store data that can be submitted for validation; and <startup / > (hereinafter referred to as the boot data set) is used to save the configuration data at startup. NETCONF defines the existence of multiple configuration data sets and allows configuration operations on them. A configuration data set is defined as a complete set of configuration data required to bring a device from its initial default state to the desired operating state.

[0059] In the process of using NETCONF protocol to manage devices, some devices have a master-slave relationship, and the performance of the slave devices in the master-slave relationship is low. For example, in the distributed OLT architecture (Optical Line Terminal), OLT consists of a master control device and various board devices, which become multiple devices with a master-slave relationship. However, the existing methods for managing master-slave devices are as follows: Figure 1 As shown, Figure 1 The connection relationship diagram between the existing SDN controller and the master and slave devices is schematically shown. In the figure, the master device 120 and the slave device 130 are both configured with a candidate data set 121, a startup data set 122 and a running data set 123, and the SDN controller 110 directly controls the master device 120 and the slave device 130. Since the performance of the slave device 130 is low and is rarely used in actual applications, directly controlling the slave device 130 by the SDN controller 110 will reduce the processing efficiency of the SDN controller and waste bandwidth resources.

[0060] In order to solve the above problems, the present application provides a device control method, a device control apparatus, a computer-readable medium and an electronic device. The device control provided by the present application is described in detail below in combination with multiple aspects.

[0061] Figure 2 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.

[0062] like Figure 2As shown, the system architecture 200 may include a terminal device 210, a network 220, and a server 230. The terminal device 210 may include various electronic devices such as a smart phone, a tablet computer, a laptop computer, and a desktop computer. The server 230 may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The network 220 may be a communication medium of various connection types that can provide a communication link between the terminal device 210 and the server 230, such as a wired communication link or a wireless communication link.

[0063] According to the implementation needs, the system architecture in the embodiment of the present application can have any number of terminal devices, networks and servers. For example, the server 230 can be a server group composed of multiple server devices. In addition, the technical solution provided in the embodiment of the present application can be applied to the terminal device 210, can also be applied to the server 230, or can be implemented by the terminal device 210 and the server 230 together, and the present application does not make special restrictions on this.

[0064] Among them, the terminal device 210 of the present application can be used to obtain the user's control instructions for the SDN controller. When the SDN controller obtains the user's control instructions, it can issue control instructions to the master device 120 or the slave device 130. The terminal device 210 or server 230 of the present application can also receive control instructions for at least one slave device issued by the software-defined network controller; and configure the data in the candidate data set or at least one startup data set based on the control instruction to obtain the slave device configuration data; finally, send the slave device configuration data to the second running data set of the at least one slave device for execution to achieve control of the slave device.

[0065] Among them, when the technical solution provided in the embodiment of the present application is applied to the server 230, the server 230 can be set up independently of the main device 120, or the server 230 can be set inside the main device 120. For example, the server 230 can be used as a data forwarding module in the main device 120 to execute the method of the present application. In the figures corresponding to the following embodiments, the server 230 is set inside the main device 120 as an example for explanation.

[0066] The above section introduces the contents of an exemplary system architecture that applies the technical solution of the present application. Next, the device control method of the present application will be introduced.

[0067] like Figure 3 As shown, Figure 3 The flowchart of the device control method of the present application is schematically shown.

[0068] According to one aspect of an embodiment of the present application, the present application provides a device control method, which can be used to control a master device and at least one slave device, wherein the present application modifies the data sets configured in the master device and at least one slave device, specifically as follows: Figure 4 As shown, Figure 4 The connection relationship diagram between the SDN controller and the master and slave devices of the present application is schematically shown. The master device 120 of the present application is configured with a candidate data set 121, a first operating data set 410 and at least one startup data set. At least one slave device 130 is connected to the master device 120, and at least one slave device 130 is configured with a second operating data set 420. That is, in the master device and slave device corresponding to the present application, the present application configures the startup data set and the candidate data set 121 of the slave device 130 in the master device 120, and only retains the operating data set. The operating data set stores the currently effective configuration, so the slave device only needs to execute the instruction. For example, continue to refer to Figure 4 In one embodiment of the present application, a candidate data set 121, a first running data set 410 and four startup data sets are configured on the master device 120 of the present application. The four startup data sets include a first startup data set 430 for storing configuration data when the master device 120 is started and three second startup data sets 440 for storing configuration data when the slave devices 130 are started. The number of the second startup data sets 440 is the same as the number of the slave devices 130, and the second startup data sets 420 correspond to the slave devices 130 one by one. Each slave device 130 has a second startup data set 420 to help the slave device 130 configure data.

[0069] Based on the above master-slave device connection relationship, the device control method corresponding to the present application includes steps S310 to S330:

[0070] In step S310: receiving a control instruction for at least one slave device issued by a software defined network controller.

[0071] Among them, the control instruction to at least one slave device is issued by the software-defined network controller 110, and the control instruction is generally issued by the user through the user terminal 210. After receiving the control instruction from the user, the software-defined network controller 110 issues a control instruction to at least one slave device.

[0072] The control instructions for at least one slave device may include data editing instructions, data backup instructions, and restart instructions for the slave device. The data editing instructions are sent to the slave device for execution after editing the configuration data of the slave device. The data backup instructions are to back up and save the data on the slave device. The restart instructions are to restart the slave device. Of course, the control instructions of the slave device are not limited to the above instructions, and different operations can be performed according to the specific instructions issued by the SDN controller.

[0073] In step S320: data in the candidate data set or at least one startup data set is configured based on the control instruction to obtain slave device configuration data.

[0074] The present application will control the candidate data set 121 or at least one startup data set respectively according to different control instructions. The specific control method is as follows.

[0075] In one embodiment of the present application, when a candidate data set, a first running data set, and multiple startup data sets are configured on a master device of the present application, and the multiple startup data sets include a first startup data set for storing configuration data when the master device is started and at least one second startup data set for storing configuration data when the slave device is started. A method for configuring data in the candidate data set or at least one startup data set based on a control instruction includes:

[0076] The data in the candidate data set 121 or the second startup data set 440 are configured based on the control instruction. The present application can also receive a control instruction for the master device 120, and correspondingly configure the data in the candidate data set 121 or the first startup data set 130 based on the control instruction.

[0077] In one embodiment of the present application, since there are multiple startup data sets in the present application, in order to facilitate the distinction between the data sets, a data set label is set in the control instruction of the present application, and the data set label is used to determine the data set location to be configured by the control instruction.

[0078] like Figure 5 As shown, Figure 5 The method for obtaining slave device configuration data by configuring the data in the candidate data set or at least one startup data set based on the control instruction includes steps S510 to S530.

[0079] Step S510: Obtain a data set label from a control instruction.

[0080] The data set tag refers to the location of the data set that needs to be controlled, which corresponds to the slave device 130. In addition, the tag of the second startup data set and the tag of the second running data set may be included. Figure 6 As shown, Figure 6 The diagram schematically shows the correspondence between the second startup data set of the present application and the slave device. The three second startup data sets are the second startup data set A610, the second startup data set B620 and the third startup data set C630. The corresponding slave device 130 includes a first slave device 640, a second slave device 650, and a third slave device 660, and the first slave device 640 corresponds to the second startup data set A610, the second slave device 650 corresponds to the second startup data set B620, and the third slave device 660 corresponds to the third startup data set C630. After the control instruction is obtained, it can be determined which slave device the control instruction is specifically for, and the corresponding data set label can be obtained. For example, the control instruction obtained is a control instruction for the first slave device 640, and the corresponding data set label can be A, which means the second startup data set A610.

[0081] Step S520: Determine the location of the data set to be configured by the control instruction according to the data set tag.

[0082] When the data set label is determined, the location of the data set to be configured by the control instruction can be determined according to the data set label. For example, if the data set label is A, the location of the data set to be configured by the control instruction is in the second startup data set A610 of the master device 120.

[0083] Step S530: configuring the data in the data set at the location where the data set is located, and obtaining slave device configuration data.

[0084] After the location of the data set is determined, the data in the data set at the location of the data set can be configured to obtain slave device configuration data.

[0085] Steps S510 to S530 of the present application are included in the subsequent steps corresponding to different control instructions. Different control steps under different control instructions are specifically disclosed below.

[0086] In one embodiment of the present application, the control instruction of the present application includes an editing instruction, and the method for obtaining slave device configuration data by configuring data in a candidate data set or at least one startup data set based on the control instruction includes:

[0087] The data in the candidate data set is edited based on the editing instruction to obtain the slave device configuration data.

[0088] For example, Figure 7 As shown, Figure 7The schematic diagram of the operation of editing a slave device in the present application is shown schematically. Among them, the server 230 that applies the corresponding method of the technical solution of the present application is set inside the master device 120. First, in step S710, the SDN controller 110 sends an editing instruction of the slave device to the server 230. After the server 230 receives the editing instruction, it performs step S720. In step S720, the data in the candidate data set 121 is edited based on the editing instruction to form the required slave device configuration data, and then the slave device configuration data is sent back to the server 230. Then step S730 is performed to send the corresponding slave device configuration data to the running data set of the corresponding slave device.

[0089] In one embodiment of the present application, the control instruction of the present application includes a slave device restart instruction; and a method for configuring data in a candidate data set or at least one startup data set based on the control instruction to obtain slave device configuration data includes:

[0090] The data in at least one startup data set is configured based on the slave device restart instruction to obtain slave device restart data.

[0091] For example, Figure 8 As shown, Figure 8 The schematic diagram of the operation of the present application when restarting the slave device is shown schematically. Among them, the server 230 that applies the corresponding method of the technical solution of the present application is set inside the master device 120. First, in step S810, the SDN controller 110 sends a slave device restart instruction to the server 230. After the server 230 receives the slave device restart instruction, step S820 is performed. In step S820, based on the slave device restart instruction, the second startup data set A610 and / or the second startup data set B620 can be configured respectively, and the slave device restart data in the second startup data set A610 and / or the second startup data set B620 is obtained. Then the slave device restart data is sent back to the server 230. Then step S830 is performed to send the corresponding slave device restart data to the operation data set of the corresponding slave device respectively, for example, the slave device restart data formed from the second startup data set A610 is sent to the second operation data set in the first slave device 640.

[0092] In one embodiment of the present application, the control instruction also includes a data backup instruction. When the control instruction is a data backup instruction, the corresponding control method is different. The specific control method is as follows.

[0093] Based on the data backup instruction, copy the data in the second running data set of at least one slave device to obtain slave device backup data;

[0094] The slave device backup data is sent to at least one startup data set corresponding to at least one slave device for backup.

[0095] For example, Fig. 9 As shown, Fig. 9 The schematic diagram of the operation of the present application when backing up data from a slave device is schematically shown. Among them, the server 230 that applies the corresponding method of the technical solution of the present application is set inside the master device 120. First, in step S910, the SDN controller 110 sends a slave device data backup instruction to the server 230. After the server 230 receives the slave device data backup instruction, step S920 is performed. In step S920, based on the slave device data backup instruction, the data in the second running data set of the first slave device 640 or the second slave device 650 can be copied respectively to obtain the slave device backup data, and then the slave device backup data is sent back to the server 230. Continue to step S830, send the corresponding slave device backup data to the second startup data set of the corresponding slave device respectively, for example, send the slave device backup data formed by the first slave device 640 to the second startup data set A610 for backup and preservation. Among them, during the backup, the data in the second startup data set A610 can be replaced.

[0096] After completing the above steps, you can proceed to step S330.

[0097] In step S330: the slave device configuration data is sent to a second operating data set of at least one slave device for execution.

[0098] After the second operating data set of at least one slave device acquires the slave device configuration data, the corresponding slave device configuration data can be executed, thereby realizing control over the slave device.

[0099] Among them, the present application can also receive control instructions for the master device issued by the SDN controller. For the control instructions for the master device, the server 230 of the present application can be directly executed in the master device. For example, for the editing instructions of the master device, the candidate data set 121 of the master device can be directly used to edit, and then sent to the first running data set 410 in the master device for execution. For the restart instruction, the server 230 can send the restart instruction to the first startup data set 430 to complete the configuration of the master device restart data, and then send the master device restart data to the first running data set 410 in the master device for execution. Therefore, the present application can realize the control of the slave device while ensuring the control of the master device.

[0100] The above method can complete the specific execution of the control instructions issued by the SDN controller. This application can not only receive the control instructions issued by the SDN controller, but also perform the following steps.

[0101] like Fig.10 As shown, Fig.10 A flowchart schematically shows a method in which a master device and a slave device of the present application request data from a software defined network controller.

[0102] In one embodiment of the present application, the device control method of the present application further includes steps S1010 to S102.

[0103] Step S1010: receiving a service request sent by a master device or a slave device to request data from a software defined network controller.

[0104] The master device or slave device may request certain data from the upper device, so the server 230 of the present application may receive a service request from the master device or slave device to request data from the software defined network controller. The request data may include alarm data of the master device or slave device, and when the master device or slave device fails, the alarm information may be sent upward.

[0105] Step S1020: Request data from the software defined network controller according to the service request.

[0106] When the server 230 receives the service request, it can send the corresponding service request to the SDN controller, and the SDN controller can receive the service request and send the corresponding data to the master device or each slave device through the server 230. At the same time, the SDN controller can also obtain alarm information, thereby reminding the user to repair the master device and the slave device.

[0107] In the technical solution provided in the embodiment of the present application, the present application receives a control instruction for at least one slave device issued by a software defined network controller; and configures the data in a candidate data set or at least one startup data set based on the control instruction to obtain the slave device configuration data; and then sends the slave device configuration data to the second running data set of at least one slave device for execution. Through the method of the present application, the candidate data set and the startup data set of the slave device can be configured on the master device, and the candidate data set or at least one startup data set on the master device can be used for data configuration to realize the control of the slave device by the master device. Therefore, it is possible to avoid the SDN controller directly controlling the slave device, improve the processing efficiency of the SDN controller, and save bandwidth resources.

[0108] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0109] The above introduces the specific scheme of the device management method of the present application, and the scheme of the device management device of the present application will be disclosed next.

[0110] The following introduces an apparatus embodiment of the present application, which can be used to execute the device control method in the above-mentioned embodiment of the present application. Fig.11 The structure block diagram of the device control device provided in the embodiment of the present application is schematically shown. Fig.11 As shown,

[0111] According to one aspect of an embodiment of the present application, a device control apparatus 1100 is provided, which is used for a master device and at least one slave device, wherein a candidate data set, a first operating data set and at least one startup data set are configured on the master device, and at least one slave device is connected to the master device, and a second operating data set is configured on the at least one slave device; the apparatus comprises:

[0112] The acquisition module 1110 is used to receive a control instruction for at least one slave device issued by the software defined network controller;

[0113] A data configuration module 1120, configured to configure data in a candidate data set or at least one startup data set based on a control instruction to obtain slave device configuration data;

[0114] The execution module 1130 is configured to send the slave device configuration data to a second operation data set of at least one slave device for execution.

[0115] The specific details of the equipment control device provided in each embodiment of the present application have been described in detail in the corresponding method embodiments and will not be repeated here.

[0116] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the device control method in the above technical solution is implemented.

[0117] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute a device control method as in the above technical solution by executing the executable instructions.

[0118] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the device control method in the above technical solution.

[0119] Fig.12 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.

[0120] It should be noted that Fig.12 The computer system 1200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0121] like Fig.12 As shown, the computer system 1200 includes a central processing unit 1201 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1202 (ROM) or the program loaded from the storage part 1208 to the random access memory 1203 (RAM). Various programs and data required for system operation are also stored in the random access memory 1203. The central processing unit 1201, the read-only memory 1202 and the random access memory 1203 are connected to each other through a bus 1204. The input / output interface 1205 (Input / Output interface, i.e., I / O interface) is also connected to the bus 1204.

[0122] The following components are connected to the input / output interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc.; and a communication section 1209 including a network interface card such as a LAN card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the input / output interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed so that a computer program read therefrom is installed into the storage section 1208 as needed.

[0123] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1209, and / or installed from the removable medium 1211. When the computer program is executed by the central processor 1201, various functions defined in the system of the present application are executed.

[0124] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0125] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0126] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0127] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0128] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.

[0129] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A device control method, characterized in that: For a master device and at least one slave device, the master device is configured with a candidate data set, a first operating data set and at least one startup data set, the at least one slave device is connected to the master device, the at least one slave device is configured with a second operating data set, the candidate data set, the first operating data set, the at least one startup data set and the second operating data set are model data of a network under a network configuration protocol; the method comprises: Receiving a control instruction for the at least one slave device issued by a software defined network controller, wherein the control instruction is provided with a data set tag, and the data set tag is used to determine a data set location to be configured by the control instruction; Based on the control instruction, the data in the candidate data set or at least one startup data set is configured to obtain slave device configuration data; wherein, based on the control instruction, the data in the candidate data set or at least one startup data set is configured to obtain slave device configuration data, including: obtaining a data set tag from the control instruction; determining the location of the data set to be configured by the control instruction according to the data set tag; configuring the data in the data set at the location of the data set to obtain the slave device configuration data; The slave device configuration data is sent to a second operating data set of the at least one slave device for execution.

2. The device control method according to claim 1, characterized in that: The master device is configured with a candidate data set, a first running data set and a plurality of startup data sets, wherein the plurality of startup data sets include a first startup data set for storing configuration data when the master device is started and at least one second startup data set for storing configuration data when the slave device is started, and the number of the second startup data sets is the same as the number of the slave devices; Configuring data in the candidate data set or at least one startup data set based on the control instruction includes: The data in the candidate data set or the second startup data set is configured based on the control instruction.

3. The device control method according to claim 1, characterized in that: The control instruction includes an editing instruction, and configuring the data in the candidate data set or at least one startup data set based on the control instruction to obtain slave device configuration data includes: The data in the candidate data set is edited based on the editing instruction to obtain slave device configuration data.

4. The device control method according to claim 1, characterized in that: The control instruction includes a slave device restart instruction; configuring the data in the candidate data set or at least one startup data set based on the control instruction to obtain slave device configuration data, including: The data in the at least one startup data set is configured based on the slave device restart instruction to obtain slave device restart data.

5. The device control method according to claim 1, characterized in that: The control instruction includes a data backup instruction, and the method includes: Based on the data backup instruction, copy the data in the second running data set of the at least one slave device to obtain slave device backup data; The slave device backup data is sent to the at least one startup data set corresponding to the at least one slave device for backup.

6. The device control method according to claim 1, characterized in that: The method further comprises: receiving a service request sent by the master device or the slave device to request data from the software defined network controller; Request data from the software defined network controller according to the service request.

7. A device control device, characterized in that: Used for a master device and at least one slave device, the master device is configured with a candidate data set, a first operating data set and at least one startup data set, the at least one slave device is connected to the master device, the at least one slave device is configured with a second operating data set, the candidate data set, the first operating data set, the at least one startup data set and the second operating data set are model data of a network under a network configuration protocol; The device comprises: An acquisition module, configured to receive a control instruction for the at least one slave device issued by a software defined network controller, wherein the control instruction is provided with a data set tag, and the data set tag is used to determine a data set location to be configured by the control instruction; A data configuration module, configured to configure the data in the candidate data set or at least one startup data set based on the control instruction to obtain slave device configuration data; wherein the data configuration module is further configured to: obtain a data set tag from the control instruction; determine the location of the data set to be configured by the control instruction according to the data set tag; configure the data in the data set at the location of the data set to obtain slave device configuration data; The execution module is used to send the slave device configuration data to the second operation data set of the at least one slave device for execution.

8. A computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the device control method according to any one of claims 1 to 6.

9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the device control method according to any one of claims 1 to 6 by executing the executable instructions.