Deployment method and device for SDN controller of programmable switch, equipment and medium

By pre-integrating the deployment package of SDN controllers in a programmable switch and automatically completing the deployment, the complexity and inefficiency of traditional deployment methods are solved, and efficient and secure SDN controller deployment is achieved, suitable for large-scale data centers.

CN119071166AActive Publication Date: 2024-12-03INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In data centers, the separate deployment of traditional SDN controllers and switches results in high deployment complexity, high time cost, low efficiency, and easy to introduce configuration errors and compatibility issues, affecting network stability and performance.

Method used

The deployment package of the SDN controller is pre-integrated in a specified switch with programmable characteristics, and connected to the target server through the switch, automatically completing the deployment of the SDN controller, using SSH and SCP protocols for secure, remote login and data transmission, simplifying deployment process and reduce human resources requirements.

Benefits of technology

Simplifies the deployment process, saves time and labor costs, improves deployment efficiency, ensures deployment security and flexibility, and is suitable for large-scale data center deployments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071166A_ABST
    Figure CN119071166A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an SDN (Software Defined Network) controller deployment method and device for a programmable switch, equipment and a medium. The SDN controller deployment method comprises the following steps: pre-integrating a deployment package of an SDN controller in a specified switch with a programmable characteristic; when the SDN controller is deployed, connecting to the specified switch, and writing an IP address and login information of a target server in the specified switch; and logging in to the target server through the specified switch according to the IP address and the login information so as to process a deployment packet of the SDN controller at the target server, thereby completing deployment of the SDN controller. According to the embodiment of the invention, the deployment package of the SDN controller is pre-integrated into the specified switch, and additional docking work does not need to be carried out after deployment is completed, so that the deployment process is simplified, and the complexity of deployment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and medium for deploying an SDN controller of a programmable switch. Background Art

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

[0003] There are some problems with this separate deployment method. First, it requires engineers from the SDN controller and the switch to perform deployment work, which increases the complexity and time cost of deployment. Second, in large-scale deployment in data centers, this method may take up a lot of human resources and lead to inefficiency. In addition, due to the need for additional docking work, some configuration errors or compatibility issues may be introduced, affecting the stability and performance of the network. Summary of the invention

[0004] One or more embodiments of the present specification provide a method, apparatus, device and medium for deploying an SDN controller of a programmable switch, which are used to solve the technical problems raised by the background technology.

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

[0006] One or more embodiments of this specification provide a method for deploying an SDN controller of a programmable switch, the method comprising:

[0007] A deployment package that pre-integrates an SDN controller in a specified switch with programmable features;

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

[0009] The designated switch is used to log in to the target server according to the IP address and the login information, so as to process the deployment package of the SDN controller on the target server and complete the deployment of the SDN controller.

[0010] It should be noted that the embodiments of this specification have the following beneficial effects regarding the above content:

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

[0012] Save time and labor costs: SDN controllers and switches no longer need their own engineers to perform deployment work, which reduces the demand for human resources, saves deployment time, and improves deployment efficiency.

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

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

[0015] The deployment command line is executed in the command line interface of the designated switch to obtain the IP address and login information of the target server, and the IP address and login information of the target server are written into the designated switch.

[0016] It should be noted that the embodiments of this specification have the following beneficial effects regarding the above content:

[0017] Simplified operation: By executing the deployment command line in the command line interface of the specified switch, users can easily obtain the IP address and login information of the target server and write them to the switch without complex manual configuration.

[0018] Save time: Automatically obtaining and writing target server information 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.

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

[0020] The deployment package of the SDN controller is copied to the preset path of the target server, and the command line required for deployment preset in the deployment package of the SDN controller is executed on the target server to complete the deployment of the SDN controller on the target server.

[0021] It should be noted that the embodiments of this specification have the following beneficial effects regarding the above content:

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

[0023] Improve deployment efficiency: Automatically execute the command lines required for deployment, greatly saving configuration time and improving deployment efficiency. Especially in large-scale data center deployment, it can significantly reduce the use of human resources.

[0024] Further, logging into the target server through the designated switch according to the IP address and the login information includes:

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

[0026] It should be noted that the embodiments of this specification have the following beneficial effects regarding the above content:

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

[0028] Simplify the login process: SSH provides a simple and efficient login method that does not require complex configuration and additional software installation. You only need to specify the IP address and login information to log in to the target server.

[0029] Support remote management: By logging in to the target server via SSH, remote management and control can be achieved, making it easier for administrators to maintain and manage the server and improving work efficiency.

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

[0031] If the target server is logged in via SSH, 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, obtain the cluster information filled in the command line interface, 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-in deployment information and the cluster information through the SCP method.

[0034] It should be noted that the embodiments of this specification have the following beneficial effects regarding the above content:

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

[0036] Further, executing the command line required for deployment preset in the deployment package of the SDN controller on the target server includes:

[0037] The command line required for deployment preset in the deployment package of the SDN controller is executed on the target server through SSH.

[0038] It should be noted that the embodiments of this specification have the following beneficial effects regarding the above content:

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

[0040] Furthermore, after acquiring 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 embodiments of this specification have the following beneficial effects regarding the above content:

[0043] Data standardization: JSON is a standardized data format with a 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: Data in JSON format is easy to parse and process. Many programming languages ​​provide built-in JSON parsing libraries, allowing developers to easily read, modify, and manipulate JSON data. This helps improve the efficiency and accuracy of data processing.

[0045] One or more embodiments of this specification provide an SDN controller deployment device for a programmable switch, including:

[0046] A deployment package storage unit, in which a deployment package of an SDN controller is pre-integrated in a designated switch having programmable characteristics;

[0047] A switch connection unit, which is connected 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;

[0048] The login unit logs 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 at the target server and complete the deployment of the SDN controller.

[0049] One or more embodiments of this specification provide an SDN controller deployment device for a programmable switch, including:

[0050] at least one processor; and,

[0051] a memory communicatively connected to the at least one processor; wherein,

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

[0053] A deployment package that pre-integrates an SDN controller in a specified switch with programmable features;

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

[0055] The designated switch is used to log in to the target server according to the IP address and the login information, so as to process the deployment package of the SDN controller on the target server and complete the deployment of the SDN controller.

[0056] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, which can achieve the following when executed by a computer:

[0057] A deployment package that pre-integrates an SDN controller in a specified switch with programmable features;

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

[0059] The designated switch is used to log in to the target server according to the IP address and the login information, so as to process the deployment package of the SDN controller on the target server and complete the deployment of the SDN controller.

[0060] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:

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

[0062] Save time and labor costs: SDN controllers and switches no longer need their own engineers to perform deployment work, which reduces the demand for human resources, saves deployment time, and improves deployment efficiency.

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

[0064] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:

[0065] Figure 1 A flowchart of a method for deploying an SDN controller of a programmable switch provided in one or more embodiments of this specification;

[0066] Figure 2 A schematic diagram of the structure of an SDN controller deployment device for a programmable switch provided in one or more embodiments of this specification;

[0067] Figure 3 A schematic diagram of the structure of an SDN controller deployment device for a programmable switch provided in one or more embodiments of this specification. DETAILED DESCRIPTION

[0068] The embodiments of this specification provide a method, apparatus, device and medium for deploying an SDN controller of a programmable switch.

[0069] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

[0070] Figure 1A schematic diagram of a process flow of a method for deploying an SDN controller of a programmable switch provided in one or more embodiments of this specification, the process can be executed by an SDN controller deployment system. Certain input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.

[0071] The method steps of the embodiment of this specification are as follows:

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

[0073] In the embodiments of this specification, regarding the above S102, the following specific implementation scheme can be adopted:

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

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

[0076] Connect to the switch: Connect the computer or management device to the designated switch using an appropriate connection method, such as Ethernet.

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

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

[0079] Configure the switch: Perform necessary configuration in the switch management interface according to the requirements of the SDN controller. This may include setting the switch's network parameters, port configuration, etc.

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

[0081] Verify integration results: Verify whether the switch has been successfully integrated with the SDN controller. You can check the status of the switch, the connection status of the controller, and whether related functions are working properly.

[0082] S104, when deploying the SDN controller, connecting to the designated switch, and writing the IP address and login information of the target server into the designated switch.

[0083] In the embodiments of this specification, regarding the above S104, the following specific implementation scheme can be adopted:

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

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

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

[0087] Find the configuration options for the target server: In the management interface of the specified switch, find the configuration options or menus related to the target server.

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

[0089] Write the target server's login information: In the target server's configuration options, find the login information field and enter the target server's login information (such as user name and password) into the field.

[0090] Save the configuration: After completing writing the target server's IP address and login information, save the configuration for the changes to take effect.

[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 on the target server and complete the deployment of the SDN controller.

[0092] In the embodiments of this specification, regarding the above S106, the following specific implementation scheme can be adopted:

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

[0094] Establish a connection to the target server: Specifies that the switch connects to the target server through the network using the configured login information.

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

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

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

[0098] Furthermore, when the IP address and login information of the target server are written into the designated switch in the embodiment of the present specification, a deployment command line can be executed in the command line interface of the designated 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 designated switch.

[0099] It should be noted that the IP address and login information written into the target server can be implemented through the following specific implementation plan:

[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, enter 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 it to the configuration of the specified switch.

[0102] Provide the target server's IP address and login information: Provide the target server's IP address and login information as requested by the command line. This can be entered manually or obtained from other sources (such as configuration files, databases, etc.).

[0103] Confirm the write 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 viewing the switch configuration file or using related commands.

[0104] Save Configuration: After completing the write operation, make sure to save the switch configuration for the changes to take effect.

[0105] It should be noted that the embodiments of this specification have the following beneficial effects regarding the above content:

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

[0107] Save time: Automatically obtaining and writing target server information 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] Furthermore, in the embodiment of the present specification, when the target server processes the deployment package of the SDN controller to complete the deployment of the SDN controller, the deployment package of the SDN controller can be copied to a preset path of the target server, and the command lines required for deployment preset in the deployment package of the SDN controller can be executed on the target server to complete the deployment of the SDN controller on the target server.

[0109] In the examples of this specification, the above content can be implemented by the following specific implementation scheme:

[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 an appropriate method (such as file transfer protocol or remote copy tool) to copy the SDN controller deployment package to the preset path of the target server.

[0112] Log in to the target server: Log in to the target server using the appropriate login credentials such as user name and password.

[0113] Switch to the preset path: On the target server, switch to the preset path where the deployment package is stored.

[0114] Execute the command lines required for deployment: In the preset path, execute the command lines required for deployment preset in the deployment package of the SDN controller. These command lines may include operations related to installing, configuring, and starting the SDN controller.

[0115] Monitor the deployment process: During the execution of the command lines required for deployment, monitor the output and logs of the deployment process to ensure that the deployment is going smoothly.

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

[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 command lines required for deployment. There is no need for complex manual configuration, which simplifies the deployment process and reduces the complexity of deployment.

[0118] Improve deployment efficiency: Automatically execute the command lines required for deployment, greatly saving configuration time and improving deployment efficiency. Especially in large-scale data center deployment, it can significantly reduce the use of human resources.

[0119] Furthermore, in the embodiment of the present specification, when the designated switch logs in to the target server according to the IP address and the login information, the designated switch may also log in to the target server according to the IP address and the login information through SSH.

[0120] It should be noted that you need to first ensure that the designated switch supports the SSH protocol and has correctly configured the SSH service. Then, obtain the IP address and login information of the target server, including the user name and password. Open the terminal or command line interface on the designated switch and use the SSH command to connect to the target server. The general format of the SSH command is: ssh username@target server IP address. For example, if the user name is "admin" and the IP address of the target server is "192.168.0.100", the command is: ssh admin@192.168.0.100. Enter the login password of the target server to complete the login process. After a 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 this specification have the following beneficial effects regarding the above content:

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

[0123] Simplify the login process: SSH provides a simple and efficient login method that does not require complex configuration and additional software installation. You only need to specify the IP address and login information to log in to the target server.

[0124] Support remote management: By logging in to the target server via SSH, remote management and control can be achieved, making it easier for administrators to maintain and manage the server and improving work efficiency.

[0125] Furthermore, in the process of copying the deployment package of the SDN controller to the preset path of the target server in the embodiment of the present specification, if the target server is logged in through SSH, the deployment information filled in the command line interface is obtained, and 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, 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; the switch copies the deployment package of the SDN controller to the preset path of the target server through SCP according to the filled-in deployment information and the cluster information.

[0126] It should be noted that the above content can be implemented through the following specific implementation plans:

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

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

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

[0130] SCP copies the deployment package: Based on the deployment information and cluster information entered by the user, the switch uses SCP to copy the SDN controller deployment package 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 copy 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 files or directories exist in the target path.

[0132] It should be noted that the embodiments of this specification have the following beneficial effects regarding the above content:

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

[0134] Furthermore, in the embodiment of the present specification, when the command line required for deployment preset in the deployment package of the SDN controller is executed on the target server, the command line required for deployment preset in the deployment package of the SDN controller can be executed on the target server through SSH.

[0135] It should be noted that the above content can be implemented through the following specific implementation plans:

[0136] SSH connection to the target server: Use an SSH client to connect to the target server. In the SSH client, enter the IP address or host name of the target server and log in with 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 the command lines required for deployment: In the directory where the deployment package is located, find and execute the preset command lines required for deployment. These command lines may be scripts, executable files, or other commands used to complete the deployment process of the SDN controller.

[0139] Monitor and verify the deployment process: During the execution of the command lines required for deployment, monitor the command line output and logs to ensure that the deployment process is proceeding normally. If errors or abnormalities occur, troubleshoot based on the log information. After the deployment is complete, verify that the SDN controller has been successfully deployed and is running normally. This can be verified by checking the relevant service status, network connectivity, and functional testing.

[0140] It should be noted that the embodiments of this specification have the following beneficial effects regarding the above content:

[0141] Improve security: SSH is a secure remote login protocol. Executing the command lines required for deployment 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 the deployment information filled in the command line interface is obtained in the embodiment of this specification, the deployment information can be stored in JSON format. The deployment information is converted into JSON format, and the JSON library in a programming language (such as Python) can be used to complete this conversion. The deployment information in JSON format is stored in a specified location, such as a file or a database.

[0143] It should be noted that the embodiments of this specification have the following beneficial effects regarding the above content:

[0144] Data standardization: JSON is a standardized data format with a 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.

[0145] Easy to parse and process: Data in JSON format is easy to parse and process. Many programming languages ​​provide built-in JSON parsing libraries, allowing developers to easily read, modify, and manipulate JSON data. This helps improve the efficiency and accuracy of data processing.

[0146] It should be noted that the embodiments of this specification have the following beneficial effects regarding the above content:

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

[0148] Save time and labor costs: SDN controllers and switches no longer need their own engineers to perform deployment work, which reduces the demand for human resources, saves deployment time, and improves deployment efficiency.

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

[0150] It should be noted that with the development of network technology, more and more data centers have introduced SDN controllers to manage the network. The SDN controller can realize dynamic configuration, optimization and security of the network, and improve the operating efficiency and reliability of the data center. In the data center deployment stage, the SDN controller and switch equipment usually need to be deployed separately. After the deployment is completed, the controller and the equipment are connected to complete the SDN controller's management of the network. This process often requires the SDN controller and the switch to be deployed by their respective engineers, which takes up some time and human resources during the deployment of the data center. Therefore, how to complete the rapid deployment and management of SDN controllers and switches while saving manpower and time costs has become an urgent problem to be solved in the data center deployment process.

[0151] The embodiments of this specification provide a method and system for SDN deployment based on a programmable switch, which pre-integrates an SDN deployment package in a switch with programmable characteristics. When the switch and server networking is completed, the target server IP and login information are specified in the switch, and the switch will connect to the specific IP server to automatically complete the SDN controller deployment. In addition, when the SDN controller is deployed, the switch device to be deployed is managed.

[0152] The embodiments of this specification provide an SDN deployment method and system based on a programmable switch. By pre-integrating the SDN deployment package in a switch with programmable characteristics, when the switch and server networking is completed, the target server IP and login information are specified in the switch, and the switch will connect to the specific IP server to automatically complete the SDN controller deployment. After the SDN controller is deployed, the switch device for deployment is managed.

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

[0154] When users need to deploy an SDN controller, they can connect to the programmable switch device that needs to be deployed and execute the deployment command line in the command line interface. After executing the deployment command line, you need to fill in the target server IP address information, user name, and password information according to the switch prompt. After completing the above information, the switch will log in to the target server through SSH based on the information obtained. If the login is successful, the next deployment step will be carried out. If the login fails, the failure information will be fed back in the switch command line interface and the current deployment step will be interrupted.

[0155] If the SSH login is successful, the user needs to fill in additional deployment information in the switch command line interface, including the SDN controller management IP and 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 must also be filled in.

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

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

[0158] In addition, when the user enters the information required for SDN controller deployment in 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 copied to the target server in the subsequent steps. When the SDN controller executes the deployment steps from the switch command, it will read the json file content according to the format during the deployment process to obtain the various information required for the deployment of the SDN controller filled in by the user. The file also includes various information required for the SDN controller to manage the switch, such as the management network IP reachable by the SDN controller, management username and password, SNMP related configuration, etc.

[0159] When the SDN controller is deployed, the switch interface will generate corresponding log information to prompt the user of the deployment result. If it is a cluster deployment, you need to wait for the cluster service and cluster management IP to start before prompting the corresponding deployment result.

[0160] Subsequently, the SDN controller will also complete the management of the switches that execute the SDN controller deployment operation based on the required management information provided by the switches. After the management is completed, the SDN will configure and regulate the managed devices in the network based on the saved device management information during subsequent use, and obtain various device information.

[0161] Through the above method, after the user completes the initial deployment of switches and servers in the computer room, the user can execute relevant commands in the programmable switch to enable the switch to automatically execute the SDN controller deployment in the target server and manage the switch equipment after the deployment is completed, saving the manpower and time costs brought by manual deployment and improving the implementation and operation and maintenance efficiency of data center users.

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

[0163] A deployment package storage unit 202 pre-integrates a deployment package of the SDN controller in a designated switch having a programmable feature;

[0164] The switch connection unit 204 is connected 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;

[0165] The login unit 206 logs 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 at the target server and complete the deployment of the SDN controller.

[0166] Figure 3 A schematic diagram of a structure of an SDN controller deployment device of a programmable switch provided for one or more embodiments of this specification includes:

[0167] at least one processor; and,

[0168] a memory communicatively connected to the at least one processor; wherein,

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

[0170] A deployment package that pre-integrates an SDN controller in a specified switch with programmable features;

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

[0172] The designated switch is used to log in to the target server according to the IP address and the login information, so as to process the deployment package of the SDN controller on the target server and complete the deployment of the SDN controller.

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

[0174] A deployment package that pre-integrates an SDN controller in a specified switch with programmable features;

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

[0176] The designated switch is used to log in to the target server according to the IP address and the login information, so as to process the deployment package of the SDN controller on the target server and complete the deployment of the SDN controller.

[0177] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for 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 partial description of the method embodiment.

Claims

1. A method for deploying an SDN controller of a programmable switch, characterized in that: include: A deployment package that pre-integrates an SDN controller in a specified switch with programmable features; When deploying the SDN controller, connect to the designated switch, and write the IP address and login information of the target server into the designated switch; The designated switch is used to log in to the target server according to the IP address and the login information, so as to process the deployment package of the SDN controller on the target server and complete the deployment of the SDN controller.

2. The method according to claim 1, characterized in that The IP address and login information of the target server are written into the designated switch, including: The deployment command line is executed in the command line interface of the designated switch to obtain the IP address and login information of the target server, and the IP address and login information of the target server are written into the designated switch.

3. The method according to claim 1, characterized in that The step of processing the deployment package of the SDN controller on the target server to complete the deployment of the SDN controller includes: The deployment package of the SDN controller is copied to the preset path of the target server, and the command line required for deployment preset in the deployment package of the SDN controller is executed on the target server to complete the deployment of the SDN controller on the target server.

4. The method according to claim 3, characterized in that The step of logging into the target server through the designated switch according to the IP address and the login information includes: The designated switch logs in to the target server through SSH according to the IP address and the login information.

5. The method according to claim 4, characterized in that The step of copying the deployment package of the SDN controller to a preset path of the target server includes: If the target server is logged in via SSH, 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; If the deployment mode of the deployment information is selected as cluster deployment, obtain the cluster information filled in the command line interface, the cluster information includes 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-in deployment information and the cluster information through the SCP method.

6. The method according to claim 3, characterized in that The step of executing the command line required for deployment preset in the deployment package of the SDN controller on the target server includes: The command line required for deployment preset in the deployment package of the SDN controller is executed on the target server through SSH.

7. The method according to claim 5, characterized in that After acquiring the deployment information filled in the command line interface, the method further includes: The deployment information is stored in json format.

8. A SDN controller deployment device for a programmable switch, characterized in that: include: A deployment package integration unit that pre-integrates the deployment package of the SDN controller in a designated switch with programmable features; A switch connection unit, which is connected 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 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 at the target server and complete the deployment of the SDN controller.

9. A 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, the instructions being executed by the at least one processor to enable the at least one processor to: A deployment package that pre-integrates an SDN controller in a specified switch with programmable features; When deploying the SDN controller, connect to the designated switch, and write the IP address and login information of the target server into the designated switch; The designated switch is used to log in to the target server according to the IP address and the login information, so as to process the deployment package of the SDN controller on the target server and complete the deployment of the SDN controller.

10. A non-volatile computer storage medium, characterized in that: Computer executable instructions are stored, and when the computer executable instructions are executed by a computer, the following can be achieved: A deployment package that pre-integrates an SDN controller in a specified switch with programmable features; When deploying the SDN controller, connect to the designated switch, and write the IP address and login information of the target server into the designated switch; The designated switch is used to log in to the target server according to the IP address and the login information, so as to process the deployment package of the SDN controller on the target server and complete the deployment of the SDN controller.

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

  • System and method for declarative automation for deployment of a software-defined network (SDN)

    US20230344723A1

  • Login method and login system based on open-source secure shell protocol

    WO2017080334A1