Method, device and medium for deploying an SDN controller of a programmable switch

By pre-integrating the SDN controller deployment package into the switch and automatically logging into the target server, the complexity and resource waste caused by deploying the SDN controller and the switch separately are solved, achieving an efficient and secure deployment process.

CN119071166BActive Publication Date: 2025-11-28INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411114993.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2025-11-28
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

In traditional data centers, the separate deployment of SDN controllers and switches leads to high deployment complexity, long time costs, high manpower requirements, and a high risk of configuration errors or compatibility issues.

Method used

The deployment package of the SDN controller is pre-integrated into the programmable switch, and the switch automatically logs into the target server, writes the IP address and login information, and completes the deployment of the SDN controller.

Benefits of technology

It simplifies the deployment process, saves time and manpower costs, improves deployment efficiency, enhances deployment flexibility and scalability, ensures the security of the login process, and simplifies operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071166B_ABST
    Figure CN119071166B_ABST
Patent Text Reader

Abstract

The embodiment of the present specification discloses an SDN controller deployment method, device, equipment and medium of a programmable switch, comprising: pre-integrating a deployment package of an SDN controller in a designated switch with programmable characteristics; when deploying the SDN controller, connecting to the designated switch and writing an IP address and login information of a target server in the designated switch; logging into the target server according to the IP address and the login information through the designated switch, so that the target server processes the deployment package of the SDN controller, and completes the deployment of the SDN controller. The embodiment of the present specification pre-integrates the deployment package of the SDN controller into the designated switch, without additional docking work after deployment, simplifying the deployment process and reducing the complexity of deployment.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present specification relates to the technical field of computer technology, and particularly relates to an SDN controller deployment method, device and equipment of a programmable switch and a medium. BACKGROUND

[0002] With the rapid development of data centers, software-defined network (SDN) technology has been widely applied. In traditional data center deployment, the SDN controller and the switch device are usually deployed separately, which means that after deployment, additional work is needed to complete the docking between the controller and the device, so that the SDN controller can manage the network.

[0003] This separate deployment method has some problems. First, it requires engineers corresponding to the SDN controller and the switch to perform deployment work, which increases the complexity and time cost of deployment. Second, in large-scale deployment of data centers, this method may occupy a large amount of human resources, resulting in low efficiency. In addition, due to the need for additional docking work, some configuration errors or compatibility problems may be introduced, affecting the stability and performance of the network. SUMMARY

[0004] One or more embodiments of the present specification provide an SDN controller deployment method, device and equipment of a programmable switch to solve the technical problems proposed in the background.

[0005] One or more embodiments of the present specification adopt the following technical solutions:

[0006] The SDN controller deployment method provided by one or more embodiments of the present specification comprises:

[0007] Pre-integrate a deployment package of the SDN controller in a designated switch with programmable characteristics;

[0008] When deploying the SDN controller, connect to the designated switch and write the IP address and login information of a target server in the designated switch;

[0009] Log in to the target server through the designated switch according to the IP address and the login information, so that the deployment package of the SDN controller is processed in the target server, and the SDN controller deployment is completed.

[0010] It should be noted that the above-mentioned content of the embodiments of the present specification has the following beneficial effects:

[0011] Simplify the deployment process: the deployment package of the SDN controller is pre-integrated into the designated switch, without the need for additional docking work after deployment, simplifying the deployment process and reducing the complexity of deployment.

[0012] Save time and labor cost: no longer need to deploy the SDN controller and the corresponding engineer of the switch, reduce the demand for human resources, and also save the time required for deployment, improve the deployment efficiency.

[0013] Flexible selection of target server: the target server for deploying the SDN controller can be flexibly selected according to actual needs, increasing the flexibility and scalability of deployment.

[0014] Further, the writing of the IP address and login information of the target server in the designated switch includes:

[0015] Executing a deployment command line in the command line interface of the designated switch to obtain the IP address and login information of the target server, and writing the IP address and login information of the target server in the designated switch.

[0016] It should be noted that the above-mentioned embodiments of the present application have the following beneficial effects:

[0017] Simplify the operation: by executing the deployment command line in the command line interface of the designated switch, the user can conveniently obtain the IP address and login information of the target server and write it into the switch without complex manual configuration.

[0018] Save time: automatic acquisition and writing of the information of the target server can greatly save the configuration time and improve the deployment efficiency, especially in large-scale data center deployment, which can significantly reduce the occupation of human resources.

[0019] Further, the processing of the deployment package of the SDN controller by the target server to complete the deployment of the SDN controller includes:

[0020] Copying the deployment package of the SDN controller to the preset path of the target server, and executing the preset deployment required command line in the deployment package of the SDN controller under the target server to complete the deployment of the SDN controller on the target server.

[0021] It should be noted that the above-mentioned embodiments of the present application have the following beneficial effects:

[0022] Simplify the deployment process: copying the deployment package of the SDN controller to the preset path of the target server and executing the preset deployment required command line, without complex manual configuration, simplifying the deployment process and reducing the complexity of deployment.

[0023] Improving deployment efficiency: automatically executing the required command line for deployment, greatly saving configuration time and improving deployment efficiency, especially in large-scale data center deployment, which can significantly reduce the occupation of human resources.

[0024] Further, the login to the target server by the specified switch according to the IP address and the login information includes:

[0025] The specified switch logs in to the target server according to the IP address and the login information through the SSH mode.

[0026] It should be noted that the above-mentioned embodiments of the present application have the following beneficial effects:

[0027] Improve security: SSH is a secure remote login protocol, and logging in to the target server through the SSH mode can ensure the security of the login process and prevent sensitive information from being stolen or tampered with.

[0028] Simplify the login process: the SSH mode provides a simple and efficient login method, without complex configuration and additional software installation, and only needs to specify the IP address and login information to log in to the target server.

[0029] Support remote management: logging in to the target server through the SSH mode can realize remote management and control, which is convenient for administrators to maintain and manage the server and improves work efficiency.

[0030] Further, the copying of the deployment package of the SDN controller to the preset path of the target server includes:

[0031] If the target server is logged in through the SSH mode, the deployment information filled in the command line interface is obtained, the deployment information includes the SDN controller management IP address and the deployment mode, and the deployment mode includes single node deployment and cluster deployment.

[0032] If the deployment mode of the deployment information is selected as cluster deployment, the cluster information filled in the command line interface is obtained, and the cluster information includes the cluster management IP address and the current server cluster serial number information.

[0033] The switch copies the deployment package of the SDN controller to the preset path of the target server according to the filled deployment information and cluster information through the SCP mode.

[0034] It should be noted that the above-mentioned embodiments of the present application have the following beneficial effects:

[0035] Simplify deployment process: By automatically obtaining deployment information and cluster information, and using SCP method to copy deployment package, the deployment process of SDN controller is simplified, and the complexity of manual operation and configuration is reduced.

[0036] Further, the execution of the pre-set deployment required command line in the deployment package of the SDN controller under the target server includes:

[0037] The execution of the pre-set deployment required command line in the deployment package of the SDN controller under the target server through SSH method.

[0038] It should be noted that the above-mentioned content of the embodiments of the present application has the following beneficial effects:

[0039] Improve security: SSH is a secure remote login protocol, and the execution of the deployment required command line under the target server through SSH method can ensure the security of the command line and prevent sensitive information from being stolen or tampered with.

[0040] Further, after obtaining the deployment information filled in the command line interface, the method further includes:

[0041] The deployment information is stored in json format.

[0042] It should be noted that the above-mentioned content of the embodiments of the present application has the following beneficial effects:

[0043] Data standardization: JSON is a standardized data format with clear structure and syntax. Storing deployment information in JSON format can ensure data consistency and readability, and facilitate data exchange and processing between different systems and tools.

[0044] Easy to parse and process: JSON format data is easy to parse and process. Many programming languages provide built-in JSON parsing libraries, making it easy for developers to read, modify and operate JSON data. This helps improve data processing efficiency and accuracy.

[0045] One or more embodiments of the present application provide an SDN controller deployment device of a programmable switch, comprising:

[0046] Deployment package storage unit, pre-integrating the deployment package of the SDN controller in the specified switch with programmable characteristics;

[0047] Switch connection unit, when deploying the SDN controller, connected to the specified switch, and writing the IP address and login information of the target server in the specified switch;

[0048] The login unit logs into the target server through the specified switch according to the IP address and the login information, so that the target server processes the deployment package of the SDN controller to complete the deployment of the SDN controller.

[0049] The SDN controller deployment device of the programmable switch provided by one or more embodiments of the present specification comprises:

[0050] at least one processor; and

[0051] a memory in communication connection with the at least one processor; wherein

[0052] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:

[0053] pre-integrate a deployment package of an SDN controller in a specified switch with programmable characteristics;

[0054] When deploying the SDN controller, connect to the specified switch and write an IP address and login information of a target server in the specified switch;

[0055] Log into the target server through the specified switch according to the IP address and the login information, so that the target server processes the deployment package of the SDN controller to complete the deployment of the SDN controller.

[0056] The non-volatile computer storage medium provided by one or more embodiments of the present specification stores computer executable instructions, and the computer executable instructions can realize the following when executed by a computer:

[0057] pre-integrate a deployment package of an SDN controller in a specified switch with programmable characteristics;

[0058] When deploying the SDN controller, connect to the specified switch and write an IP address and login information of a target server in the specified switch;

[0059] Log into the target server through the specified switch according to the IP address and the login information, so that the target server processes the deployment package of the SDN controller to complete the deployment of the SDN controller.

[0060] The above at least one technical scheme adopted by the embodiments of the present specification can achieve the following beneficial effects:

[0061] Simplify the deployment process: The deployment package of the SDN controller is pre-integrated into the designated switch, without the need for additional docking work after deployment, simplifying the deployment process and reducing the complexity of deployment.

[0062] Save time and labor costs: No longer need to deploy the respective engineers of the SDN controller and the switch, reducing the demand for human resources, while saving the time required for deployment and improving the efficiency of deployment.

[0063] Flexible selection of target server: The target server for deploying the SDN controller can be flexibly selected according to actual needs, increasing the flexibility and scalability of deployment. BRIEF DESCRIPTION OF DRAWINGS

[0064] In order to more clearly illustrate the technical solutions in the embodiments of the present specification or the prior art, the following will briefly introduce the drawings needed to be used in the embodiment or prior art description. Obviously, the drawings in the following description are only some embodiments described in the present specification, and those skilled in the art can obtain other drawings according to these drawings without creative labor. In the drawings:

[0065] Figure 1 A flowchart of a SDN controller deployment method of a programmable switch provided for one or more embodiments of the present specification;

[0066] Figure 2 A structural diagram of a SDN controller deployment device of a programmable switch provided for one or more embodiments of the present specification;

[0067] Figure 3 A structural diagram of a SDN controller deployment device of a programmable switch provided for one or more embodiments of the present specification. DETAILED DESCRIPTION

[0068] The embodiments of the present specification provide a SDN controller deployment method, device, equipment and medium of a programmable switch.

[0069] In order to make the person skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be described clearly and completely below in conjunction with the drawings in the embodiments of the present specification. Obviously, the described embodiments are only some embodiments of the present specification, not all embodiments. Based on the embodiments of the present specification, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present specification.

[0070] Figure 1A flowchart of a method for deploying an SDN controller for a programmable switch is provided for one or more embodiments of the present specification. Some input parameters or intermediate results in the flow allow for human intervention to adjust, to help improve accuracy.

[0071] The method flow steps of the embodiments of the present specification are as follows:

[0072] S102, pre-integrate the deployment package of the SDN controller in the designated switch with programmable characteristics.

[0073] In the embodiments of the present specification, regarding the above S102, the following specific implementation can be used:

[0074] Select the appropriate switch: Determine the switch that needs to integrate the SDN controller deployment package. Select a switch with programmable characteristics to support subsequent integration operations.

[0075] Get the SDN controller deployment package: Get the corresponding deployment package from the supplier or official channel of the SDN controller. Ensure that the deployment package is compatible with the selected switch.

[0076] Connect to the switch: Use appropriate connection methods (such as Ethernet) to connect a computer or management device to the designated switch.

[0077] Enter the management interface of the switch: Access the management interface of the switch through a web browser or specific management tools.

[0078] Upload the deployment package: In the management interface of the switch, find the option to upload or install software. Upload the obtained SDN controller deployment package to the storage space of the switch.

[0079] Configure the switch: According to the requirements of the SDN controller, perform necessary configurations in the management interface of the switch. This may include setting the network parameters of the switch, port configuration, etc.

[0080] Start the integration process: In the management interface of the switch, find the option to start or activate integration. Start the integration process to make the switch load and run the deployment package of the SDN controller.

[0081] Verify the integration result: Verify whether the switch successfully integrates the SDN controller. You can check the status of the switch, the connection of the controller, and whether the related functions are working normally.

[0082] S104, when deploying the SDN controller, connect to the designated switch and write the IP address and login information of the target server in the designated switch.

[0083] In the embodiments of the present specification, regarding the above S104, the following specific implementation can be used:

[0084] Determine the deployment location and network connection of the SDN controller: Determine where to deploy the SDN controller and ensure that it has network connection with the designated switch.

[0085] Connect to the designated switch: Use appropriate network connection methods (such as Ethernet) to connect the SDN controller to the designated switch.

[0086] Log in to the designated switch: Use appropriate login credentials (such as username and password) to log in to the management interface of the designated switch.

[0087] Find the configuration option of the target server: In the management interface of the designated switch, find the configuration option or menu related to the target server.

[0088] Write the IP address of the target server: In the configuration option of the target server, find the IP address field and input the IP address of the target server into the field.

[0089] Write the login information of the target server: In the configuration option of the target server, find the login information field and input the login information (such as username and password) of the target server into the field.

[0090] Save the configuration: After completing the writing of the IP address and login information of the target server, save the configuration to make the changes effective.

[0091] S106, log in to the target server through the designated switch according to the IP address and the login information, so as to process the deployment package of the SDN controller in the target server, and complete the deployment of the SDN controller.

[0092] In the embodiments of the present specification, regarding the above S106, the following specific implementation can be used:

[0093] Configure login information on the designated switch: Configure the IP address and login information (such as username and password) of the target server on the designated switch. This can be done through the management interface or command line interface of the switch.

[0094] Establish a connection with the target server: The designated switch uses the configured login information to connect to the target server through the network.

[0095] Transfer the deployment package: Transfer the deployment package of the SDN controller from the designated switch to the target server. This can be done through network file transfer protocols (such as FTP, SCP, etc.) or other appropriate methods.

[0096] Processing the deployment package on the target server: After the target server receives the deployment package, it processes it according to the requirements of the SDN controller. This may include decompression, installation, configuration, etc.

[0097] Completing the SDN controller deployment: After the processing of the deployment package is completed on the target server, the SDN controller will be successfully deployed and ready to run.

[0098] Further, in the embodiment of the present specification, when writing the IP address and login information of the target server in the specified switch, a deployment command line can be executed in the command line interface of the specified switch to obtain the IP address and login information of the target server and write the IP address and login information of the target server in the specified switch.

[0099] It should be noted that, regarding the above writing of the IP address and login information of the target server, the following specific implementation can be used:

[0100] Open the command line interface of the specified switch: Use appropriate terminal software or remote login tools to connect to the management interface of the specified switch.

[0101] Execute the deployment command line: In the command line interface, input the corresponding deployment command line. The command line should contain instructions to obtain the IP address and login information of the target server and write them into the configuration of the specified switch.

[0102] Provide the IP address and login information of the target server: According to the requirements of the command line, provide the IP address and login information of the target server. This can be done by manually inputting or obtaining from other sources (such as configuration files, databases, etc.).

[0103] Confirm the writing operation: After executing the command line, confirm that the IP address and login information of the target server have been successfully written into the configuration of the specified switch. This can be verified by checking the configuration file of the switch or using related commands.

[0104] Save the configuration: After completing the writing operation, ensure that the configuration of the switch is saved to make the changes effective.

[0105] It should be noted that, regarding the above content, the embodiment of the present specification has the following beneficial effects:

[0106] Simplify the operation: By executing the deployment command line in the command line interface of the specified switch, the user can conveniently obtain the IP address and login information of the target server and write them into the switch without complex manual configuration.

[0107] Time-saving: Automatically fetching and writing information to the target server can greatly save configuration time and improve deployment efficiency, especially in large-scale data center deployment, which can significantly reduce the occupation of human resources.

[0108] Further, in the process of the target server processing the deployment package of the SDN controller and completing the deployment of the SDN controller, the deployment package of the SDN controller can be copied to the preset path of the target server, and the preset deployment required command line in the deployment package of the SDN controller can be executed under the target server, so as to complete the deployment of the SDN controller on the target server.

[0109] In the embodiments of the present specification, regarding the above, the following specific implementation can be used:

[0110] Determine the preset path of the target server: Determine a preset path on the target server for storing the deployment package of the SDN controller.

[0111] Copy the deployment package to the target server: Use appropriate methods (such as file transfer protocol or remote copy tool) to copy the deployment package of the SDN controller to the preset path of the target server.

[0112] Log in to the target server: Log in to the target server using appropriate login credentials (such as username and password).

[0113] Switch to the preset path: On the target server, switch to the preset path that stores the deployment package.

[0114] Execute the deployment required command line: In the preset path, execute the preset deployment required command line in the deployment package of the SDN controller. These command lines may include related operations such as installation, configuration and startup of the SDN controller.

[0115] Monitor the deployment process: During the execution of the deployment required command line, monitor the output and log of the deployment process to ensure that the deployment proceeds smoothly.

[0116] It should be noted that the embodiments of the present specification regarding the above have the following beneficial effects:

[0117] Simplify the deployment process: Copy the deployment package of the SDN controller to the preset path of the target server and execute the preset deployment required command line, without the need for complex manual configuration, which simplifies the deployment process and reduces the complexity of deployment.

[0118] Improve deployment efficiency: Automatically execute the deployment required command line, which greatly saves configuration time and improves deployment efficiency, especially in large-scale data center deployment, which can significantly reduce the occupation of human resources.

[0119] Further, when the specified switch logs in to the target server according to the IP address and the login information, the specified switch can also log in to the target server according to the IP address and the login information through an SSH mode.

[0120] It should be noted that it is necessary to ensure that the specified switch supports the SSH protocol and has correctly configured the SSH service. Then, the IP address and login information of the target server are obtained, including the username and password. And the terminal or command line interface is opened on the specified switch, and the SSH command is used to connect to the target server. The general format of the SSH command is:'ssh username@target server IP address'. For example, if the username is "admin" and the IP address of the target server is "192.168.0.100", the command is:'ssh admin@192.168.0.100'. The login password of the target server is input to complete the login process. After successful login, the deployment package of the SDN controller can be processed on the target server to complete the deployment of the SDN controller.

[0121] It should be noted that the embodiments of the present specification have the following beneficial effects with respect to the above content:

[0122] Improve security: SSH is a secure remote login protocol, and logging in to the target server through the SSH mode can ensure the security of the login process and prevent sensitive information from being stolen or tampered with.

[0123] Simplify the login process: the SSH mode provides a simple and efficient login method, without complex configuration and additional software installation, and only needs to specify the IP address and login information to log in to the target server.

[0124] Support remote management: logging in to the target server through the SSH mode can realize remote management and control, which is convenient for administrators to maintain and manage the server and improves work efficiency.

[0125] Further, in the process of copying the deployment package of the SDN controller to the preset path of the target server, if the target server is logged in through the SSH mode, the deployment information filled in the command line interface is obtained, including the SDN controller management IP address and the deployment mode, and the deployment mode includes single-node deployment and cluster deployment. If the deployment mode of the deployment information is selected as cluster deployment, the cluster information filled in the command line interface is obtained, including the cluster management IP address and the current server cluster serial number information. The switch copies the deployment package of the SDN controller to the preset path of the target server according to the filled deployment information and cluster information through the SCP mode.

[0126] It should be noted that, in relation to the above, the following specific implementation can be used:

[0127] Preparation: Ensure that the target server has installed and configured the SSH service, and the SSH service is running. Ensure that the switch has installed and configured the SCP service, and the SCP service is running. Determine the location and name of the deployment package of the SDN controller. Determine the preset path of the target server for storing the deployment package of the SDN controller.

[0128] SSH login target server: Use the SSH client to connect to the target server. In the command line interface, enter the username and password to log in.

[0129] Get deployment information: In the command line interface of the target server, prompt the user to input the deployment information, including the SDN controller management IP address and the deployment method (single node deployment or cluster deployment). After the user inputs the deployment method, further prompt the user to input the corresponding information according to the selected deployment method. If cluster deployment is selected, the cluster management IP address and the current server cluster serial number information need to be input.

[0130] SCP copy deployment package: According to the deployment information and cluster information input by the user, the switch uses the SCP method to copy the deployment package of the SDN controller to the preset path of the target server. In the SCP command, specify the source path of the SDN controller deployment package and the target path of the target server.

[0131] Verify the replication result: On the target server, verify whether the deployment package of the SDN controller has been successfully copied to the preset path. You can check whether the corresponding file or directory exists under the target path.

[0132] It should be noted that, in relation to the above, the following specific implementation can be used:

[0133] Simplify the deployment process: By automatically obtaining deployment information and cluster information, and using the SCP method to copy the deployment package, the deployment process of the SDN controller is simplified, and the complexity of manual operation and configuration is reduced.

[0134] Further, in the target server, the deployment package of the SDN controller can be executed by the SSH method in the deployment package of the SDN controller.

[0135] It should be noted that, in relation to the above, the following specific implementation can be used:

[0136] SSH connection to target server: Use an SSH client to connect to the target server. In the SSH client, enter the IP address or hostname of the target server and log in using the correct username and password.

[0137] Switch to the directory where the deployment package is located: In the SSH session, use the command line to navigate to the directory where the SDN controller deployment package is located.

[0138] Execute deployment required command lines: In the directory where the deployment package is located, find and execute the pre-set deployment required command lines. These command lines may be scripts, executable files or other commands that are used to complete the deployment process of the SDN controller.

[0139] Monitor and verify the deployment process: During the execution of the deployment required command lines, monitor the output and logs of the command lines to ensure that the deployment process is proceeding normally. If errors or exceptions occur, troubleshooting can be performed according to the log information. After the deployment is completed, verify whether the SDN controller has been successfully deployed and is running normally. Verification can be performed by checking the relevant service status, network connection and function test.

[0140] It should be noted that the above-mentioned embodiments of the present application have the following beneficial effects:

[0141] Improve security: SSH is a secure remote login protocol, and executing deployment required command lines on the target server through SSH can ensure the security of the command lines and prevent sensitive information from being stolen or tampered with.

[0142] Further, after obtaining the deployment information filled in the command line interface, the deployment information can be stored in JSON format. Converting deployment information to JSON format can be completed using a JSON library in a programming language such as Python. The JSON format deployment information is stored in a specified location, such as a file or a database.

[0143] It should be noted that the above-mentioned embodiments of the present application have the following beneficial effects:

[0144] Data standardization: JSON is a standardized data format with clear structure and syntax. Storing deployment information in JSON format can ensure data consistency and readability, facilitating data exchange and processing between different systems and tools.

[0145] Easy to parse and process: JSON format data is easy to parse and process. Many programming languages provide built-in JSON parsing libraries, making it easy for developers to read, modify and manipulate JSON data. This helps improve data processing efficiency and accuracy.

[0146] It should be noted that the embodiments of the present specification have the following beneficial effects in relation to the above content:

[0147] Simplify the deployment process: the deployment package of the SDN controller is pre-integrated into the specified switch, without the need for additional docking work after deployment is completed, simplifying the deployment process and reducing the complexity of deployment.

[0148] Save time and labor costs: there is no longer a need for engineers corresponding to the SDN controller and the switch to perform deployment work, reducing the demand for human resources and also saving the time required for deployment, thereby improving deployment efficiency.

[0149] Flexible selection of target servers: the target servers for deploying the SDN controller can be flexibly selected according to actual needs, thereby increasing the flexibility and scalability of deployment.

[0150] It should be noted that, with the development of network technology, more and more data centers introduce SDN controllers to manage the network. Through the SDN controller, dynamic configuration, optimization and security protection of the network can be achieved, thereby improving the operation efficiency and reliability of the data center. In the deployment stage of the data center, the SDN controller and the switch device usually need to be deployed separately, and docking between the controller and the device is performed after deployment is completed, so as to complete the management of the network by the SDN controller. This process often requires engineers corresponding to the SDN controller and the switch to perform deployment work, and in the deployment process of the data center, a part of time and human resources needs to be occupied. Therefore, how to complete the rapid deployment and management of the SDN controller and the switch while saving labor and time costs has become a problem to be solved in the deployment process of the data center.

[0151] The embodiments of the present specification provide an SDN deployment method and system based on a programmable switch, by pre-integrating an SDN deployment package in a switch with programmable characteristics, when the switch and the server are networked and built, the target server IP and login information are specified in the switch, the switch is connected to the specific IP server, and the deployment of the SDN controller is automatically completed. Moreover, when the deployment of the SDN controller is completed, the switch device deployed is managed.

[0152] The embodiments of the present specification provide an SDN deployment method and system based on a programmable switch, by pre-integrating an SDN deployment package in a switch with programmable characteristics, when the switch and the server are networked and built, the target server IP and login information are specified in the switch, the switch is connected to the specific IP server, and the deployment of the SDN controller is automatically completed. Moreover, when the deployment of the SDN controller is completed, the switch device deployed is managed.

[0153] When the server in the network that needs to deploy the SDN controller has completed system deployment, and the corresponding IP is configured at the interconnection interface with the switch according to the network planning, and at this time the switch and server environment have completed deployment.

[0154] When the user needs to deploy the SDN controller, the user can connect to the programmable switch device that needs to perform the deployment operation, and execute the deployment command line at the command line interface. After executing the deployment command line, the user needs to fill in the target server IP address information, username, and password information according to the switch prompt. After completing the above information filling, the switch will log in to the target server through SSH according to the obtained information. If the login is successful, the next deployment step is performed. If the login fails, the switch command line interface will feedback the failure information and interrupt the current deployment step.

[0155] If the SSH login is successful, the user needs to fill in additional deployment information at the switch command line interface. The required information includes the SDN controller management IP, and the deployment mode (single node / cluster deployment). If the cluster deployment mode is selected, the cluster management IP and the current server cluster serial number information also need to be filled in.

[0156] After completing the above information filling, the switch will copy the SDN controller deployment package originally placed in the switch memory to the target server preset path according to the filled corresponding information through SCP. Then, the switch will execute the deployment required command line in the target server system through SSH, and complete the SDN controller deployment in the target server.

[0157] The SDN controller deployment package is preset with the corresponding deployment command line script. When the deployment command line is executed in the deployed corresponding system server, the deployment step will be automatically completed according to the script content.

[0158] In addition, when the user inputs the SDN controller deployment required information at the switch command line interface, the information will be saved in the switch in the form of a json file according to the format, and will be copied to the target server in the subsequent step. When the SDN controller executes the deployment step from the switch command, the json file content will be read according to the format during the deployment process, and the user filled in each item of information required for deploying the SDN controller will be obtained. The file also includes each item of information required for the SDN controller to manage the switch, such as the SDN controller reachable management network IP, management username and password, SNMP related configuration, etc.

[0159] When the SDN controller deployment is completed, the switch interface will generate corresponding log information to prompt the user about the deployment result. If it is a cluster deployment mode, the corresponding deployment result will be prompted after waiting for the cluster service and cluster management IP to start.

[0160] Subsequently, the SDN controller will also complete the management of the switch performing the SDN controller deployment operation according to the information provided by the switch required for the management, and after the management is completed, the SDN will configure and control the networked managed equipment in the subsequent use process according to the saved device management information, obtain the information of the equipment, etc.

[0161] In the above manner, after the user completes the initialization and deployment of the switch and the server in the machine room, the user can execute the related command in the switch with programmable characteristics, so that the switch automatically executes the SDN controller deployment in the target server, and manages the switch equipment after the deployment is completed. The human and time costs brought by manual deployment are saved, and the work efficiency of the data center user implementation and operation is improved.

[0162] Figure 2 A structural schematic diagram of an SDN controller deployment device of a programmable switch provided for one or more embodiments of the present specification, comprising: a deployment package storage unit 202, a switch connection unit 204, and a login unit 206.

[0163] The deployment package storage unit 202 pre-integrates the deployment package of the SDN controller in the specified switch with programmable characteristics;

[0164] The switch connection unit 204 is connected to the specified switch when the SDN controller is deployed, and writes the IP address and login information of the target server in the specified switch;

[0165] The login unit 206 logs into the target server through the specified switch according to the IP address and the login information, so as to process the deployment package of the SDN controller in the target server, and complete the deployment of the SDN controller.

[0166] Figure 3 A structural schematic diagram of an SDN controller deployment device of a programmable switch provided for one or more embodiments of the present specification, comprising:

[0167] at least one processor; and

[0168] a memory in communication connection with the at least one processor; wherein

[0169] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:

[0170] pre-integrate the deployment package of the SDN controller in the specified switch with programmable characteristics;

[0171] In the deployment of the SDN controller, connect to the designated switch and write the IP address and login information of the target server in the designated switch;

[0172] Log in to the target server through the designated switch according to the IP address and the login information, so as to process the deployment package of the SDN controller in the target server and complete the deployment of the SDN controller.

[0173] One or more embodiments of the present specification provide a non-volatile computer storage medium, which stores computer executable instructions, and the computer executable instructions can realize the following when executed by a computer:

[0174] Pre-integrate the deployment package of the SDN controller in the designated switch with programmable characteristics;

[0175] In the deployment of the SDN controller, connect to the designated switch and write the IP address and login information of the target server in the designated switch;

[0176] Log in to the target server through the designated switch according to the IP address and the login information, so as to process the deployment package of the SDN controller in the target server and complete the deployment of the SDN controller.

[0177] Each of the embodiments in the present specification is described in a progressive manner, and the same and similar parts between each embodiment can be referred to each other. Each embodiment focuses on the difference from other embodiments. In particular, for the device, equipment and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.

Claims

1. A method for deploying an SDN controller for a programmable switch, characterized in that, include: Deployment packages that pre-integrate SDN controllers within specified switches with programmable features; When deploying the SDN controller, it connects to the designated switch and writes the target server's IP address and login information into the designated switch; Log in to the target server through the designated switch using the IP address and login information, so that the SDN controller deployment package can be processed on the target server to complete the SDN controller deployment; The step of processing the deployment package of the SDN controller on the target server to complete the deployment of the SDN controller includes: Copy the deployment package of the SDN controller to a preset path on the target server, and execute the preset deployment command line in the deployment package of the SDN controller on the target server to complete the deployment of the SDN controller on the target server; The step of logging into the target server via the designated switch based on the IP address and the login information includes: The designated switch logs into the target server via SSH using the IP address and login information. The step of copying the deployment package of the SDN controller to a preset path on the target server includes: If you log in to the target server via SSH and obtain the deployment information entered in the command line interface, the deployment information includes the SDN controller management IP address and deployment method, and the deployment method includes single-node deployment and cluster deployment. If the deployment method of the deployment information is selected as cluster deployment, obtain the cluster information filled in on the command line interface. The cluster information includes the cluster management IP address and the current server cluster sequence number. The switch copies the deployment package of the SDN controller to a preset path on the target server using the SCP method, based on the deployment information and cluster information filled in.

2. The method according to claim 1, characterized in that, The step of writing the target server's IP address and login information into the designated switch includes: Execute the deployment command line in the command line interface of the specified switch to obtain the IP address and login information of the target server, and write the IP address and login information of the target server into the specified switch.

3. The method according to claim 1, characterized in that, The command lines required for deployment, preset in the deployment package of the SDN controller, are executed on the target server, including: Execute the pre-defined deployment command lines in the deployment package of the SDN controller on the target server via SSH.

4. The method according to claim 1, characterized in that, After obtaining the deployment information entered in the command-line interface, the method further includes: The deployment information is stored in JSON format.

5. An SDN controller deployment device for a programmable switch, characterized in that, include: Deployment package integration unit, which pre-integrates the deployment package of the SDN controller within a specified switch with programmable features; The switch connection unit connects to the designated switch when the SDN controller is deployed, and writes the IP address and login information of the target server into the designated switch; The login unit logs into the target server through the designated switch based on the IP address and the login information, so that the SDN controller deployment package can be processed on the target server to complete the SDN controller deployment; The step of processing the deployment package of the SDN controller on the target server to complete the deployment of the SDN controller includes: Copy the deployment package of the SDN controller to a preset path on the target server, and execute the preset deployment command line in the deployment package of the SDN controller on the target server to complete the deployment of the SDN controller on the target server; The step of logging into the target server via the designated switch based on the IP address and the login information includes: The designated switch logs into the target server via SSH using the IP address and login information. The step of copying the deployment package of the SDN controller to a preset path on the target server includes: If you log in to the target server via SSH and obtain the deployment information entered in the command line interface, the deployment information includes the SDN controller management IP address and deployment method, and the deployment method includes single-node deployment and cluster deployment. If the deployment method of the deployment information is selected as cluster deployment, obtain the cluster information filled in on the command line interface. The cluster information includes the cluster management IP address and the current server cluster sequence number. The switch copies the deployment package of the SDN controller to a preset path on the target server using the SCP method, based on the deployment information and cluster information filled in.

6. An SDN controller deployment device for a programmable switch, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to: Deployment packages that pre-integrate SDN controllers within specified switches with programmable features; When deploying the SDN controller, it connects to the designated switch and writes the target server's IP address and login information into the designated switch; Log in to the target server through the designated switch using the IP address and login information, so that the SDN controller deployment package can be processed on the target server to complete the SDN controller deployment; The step of processing the deployment package of the SDN controller on the target server to complete the deployment of the SDN controller includes: Copy the deployment package of the SDN controller to a preset path on the target server, and execute the preset deployment command line in the deployment package of the SDN controller on the target server to complete the deployment of the SDN controller on the target server; The step of logging into the target server via the designated switch based on the IP address and the login information includes: The designated switch logs into the target server via SSH using the IP address and login information. The step of copying the deployment package of the SDN controller to a preset path on the target server includes: If you log in to the target server via SSH and obtain the deployment information entered in the command line interface, the deployment information includes the SDN controller management IP address and deployment method, and the deployment method includes single-node deployment and cluster deployment. If the deployment method of the deployment information is selected as cluster deployment, obtain the cluster information filled in on the command line interface. The cluster information includes the cluster management IP address and the current server cluster sequence number. The switch copies the deployment package of the SDN controller to a preset path on the target server using the SCP method, based on the deployment information and cluster information filled in.

7. A non-volatile computer storage medium, characterized in that, It stores computer-executable instructions, which, when executed by a computer, can achieve the following: Deployment packages that pre-integrate SDN controllers within specified switches with programmable features; When deploying the SDN controller, it connects to the designated switch and writes the target server's IP address and login information into the designated switch; Log in to the target server through the designated switch using the IP address and login information, so that the SDN controller deployment package can be processed on the target server to complete the SDN controller deployment; The step of processing the deployment package of the SDN controller on the target server to complete the deployment of the SDN controller includes: Copy the deployment package of the SDN controller to a preset path on the target server, and execute the preset deployment command line in the deployment package of the SDN controller on the target server to complete the deployment of the SDN controller on the target server; The step of logging into the target server via the designated switch based on the IP address and the login information includes: The designated switch logs into the target server via SSH using the IP address and login information. The step of copying the deployment package of the SDN controller to a preset path on the target server includes: If you log in to the target server via SSH and obtain the deployment information entered in the command line interface, the deployment information includes the SDN controller management IP address and deployment method, and the deployment method includes single-node deployment and cluster deployment. If the deployment method of the deployment information is selected as cluster deployment, obtain the cluster information filled in on the command line interface. The cluster information includes the cluster management IP address and the current server cluster sequence number. The switch copies the deployment package of the SDN controller to a preset path on the target server using the SCP method, based on the deployment information and cluster information filled in.

Citation Information

Patent Citations

  • Automatic deploying method and device for switch in SDN network

    CN104104572A

  • Deployment method and device for SDN controller mounting and medium

    CN113986267A