Distributed computing and communication integrated scheduling method based on SDN and related components

By adopting SDN-based methods in distributed networks and using OpenFlow switches and SDN controllers for dynamic scheduling of computing and communication, the problem of communication bandwidth regulation and security between nodes is solved, and more refined service quality and network stability are achieved. .

CN115883490BActive Publication Date: 2024-09-13UNIV OF ELECTRONICS SCI & TECH OF CHINA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211509143.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-29
Publication Date
2024-09-13
Estimated Expiration
2042-11-29

AI Technical Summary

Technical Problem

In distributed networks, communication between nodes has problems with bandwidth control, security, and immediacy. The lack of detailed control and integrated scheduling of computing and communication results in unstable network functions.

Method used

Using an SDN-based distributed computing and communication integrated scheduling method, through OpenFlow switches and SDN controllers, POST requests are obtained and issued, bandwidth is adjusted, ports are marked, node types are changed, and computing node priorities are determined to realize computing and communication. Dynamic scheduling and balancing.

Benefits of technology

It provides more refined service quality, ensures instant transmission and resource optimization of computing and communication tasks, avoids network congestion and idleness, and improves bandwidth utilization and network stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115883490B
    Figure CN115883490B
Patent Text Reader

Abstract

The present application discloses a distributed computing and communication integrated scheduling method, system, device and medium based on SDN, which relates to the field of computer network networking and control technology, including: obtaining a POST request sent by a distributed network node through an OpenFlow switch; the distributed network node includes a communication node, a computing node and a communication computing node; sending a target command corresponding to the POST request to a corresponding SDN controller, so that the SDN controller sends flow table information to the OpenFlow switch based on the target command; and completing the response operation to the POST request based on the flow table information by the OpenFlow switch. The present application can provide more refined service quality for different types of distributed network nodes, and can perform integrated scheduling and balance of computing and communication in a distributed network where communication tasks and computing tasks coexist.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer network networking and control technology, and in particular to a distributed computing and communication integrated scheduling method based on SDN and related components. Background Art

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

[0003] A distributed network is also called a mesh network. It is composed of interconnected computer systems (nodes) distributed in different locations. It has no central node and is characterized by high reliability. The communication between nodes is no longer point-to-center-to-point, but point-to-point. Each node is both a network service object and a network service provider.

[0004] With the continuous development and evolution of network communication technology and the emergence of some new services, a task often requires coordination between multiple different computer systems. Computer systems distributed in different geographical locations communicate with each other through distributed networks. At the same time, each computer system may have both communication tasks and computing tasks in the network. However, in the current distributed network, on the one hand, there may be many problems in the communication between nodes, such as there is no rule to regulate the bandwidth required by a node or to ensure the security and immediacy of communication. In particular, when a node has both computing and communication functions, it has normal data packets to transmit and sends commands or notification information to other nodes. These special data packets that need to be transmitted immediately may be blocked by the ordinary data packets currently being transmitted. Furthermore, for different nodes under the same switch, since the proportion of computing and communication of each node is different, in the case of tight bandwidth, the bandwidth required by each node at all times needs to be dynamically regulated to ensure that the network will not be blocked or idle, so as to achieve the normal operation of network functions. However, in the current distributed network, there is still a lack of a solution for detailed regulation of communication between nodes and integrated scheduling and balancing of computing and communication.

[0005] In summary, in distributed networks, how to integrate and balance computing and communication and provide more refined service quality for distributed network nodes is a problem that needs to be solved. Summary of the invention

[0006] In view of this, the purpose of the present invention is to provide a distributed computing and communication integrated scheduling method, system, device and medium based on SDN, which can perform integrated scheduling and balance of computing and communication in a distributed network and provide a more refined service quality for distributed network nodes. The specific scheme is as follows:

[0007] In a first aspect, the present application discloses a distributed computing and communication integrated scheduling method based on SDN, which is applied to a virtual server, including:

[0008] Obtaining a POST request sent by a distributed network node through an OpenFlow switch; the distributed network node includes a communication node, a computing node, and a communication computing node;

[0009] Sending a target command corresponding to the POST request to a corresponding SDN controller, so that the SDN controller sends flow table information to the OpenFlow switch based on the target command;

[0010] The OpenFlow switch completes a response operation to the POST request based on the flow table information.

[0011] Optionally, obtaining a POST request sent by a distributed network node through an OpenFlow switch includes:

[0012] Obtain the POST request for applying for bandwidth adjustment sent by the distributed network node through the OpenFlow switch;

[0013] Or, obtaining a POST request for marking a special port sent by a distributed network node through an OpenFlow switch;

[0014] Or, obtaining a POST request for changing a node type sent by a distributed network node through an OpenFlow switch;

[0015] Or, obtain a POST request sent by the computing node through the OpenFlow switch for determining the priority of the computing node.

[0016] Optionally, completing the response operation to the POST request based on the flow table information by the OpenFlow switch includes:

[0017] Adjusting the bandwidth of the distributed network node based on the flow table information by the OpenFlow switch;

[0018] or, performing special marking on the ports of the distributed network nodes based on the flow table information by the OpenFlow switch;

[0019] or, changing the node type of the distributed network node based on the flow table information through the OpenFlow switch;

[0020] Or, the data packet in the computing node is sent to a target computing node for executing the computing task based on the flow table information through the OpenFlow switch.

[0021] Optionally, the process of sending the data packet in the computing node to the target computing node for executing the computing task based on the flow table information through the OpenFlow switch further includes:

[0022] Extracting a header field of the data packet through the OpenFlow switch, and matching the header field with a flow table entry in the flow table information to determine whether there is a matching target flow table entry in the flow table information;

[0023] If so, processing the data packet based on the operation flow corresponding to the target flow entry;

[0024] If not, the data packet is processed according to the operation instruction in the preset mismatch record; the operation instruction in the mismatch record is to forward the data packet to the SDN controller through the OpenFlow channel so that the SDN controller completes the forwarding process of the data packet.

[0025] Optionally, sending a target command corresponding to the POST request to a corresponding SDN controller includes:

[0026] If the POST request is used to determine the priority of a computing node, a data routing strategy and a computing node priority determination strategy are formulated based on the bandwidth resources and computing power resources of each distributed network node;

[0027] A corresponding target command is generated based on the data routing strategy and the computing node priority determination strategy, and the target command is sent to the corresponding SDN controller.

[0028] Optionally, the SDN-based distributed computing and communication integrated scheduling method further includes:

[0029] Sending an information query command to the SDN controller at a preset time interval, so that the SDN controller collects corresponding target resource information based on the information query command; the target resource information includes flow tables and queue information of each OpenFlow switch, and bandwidth resources and computing power resources of each distributed network node;

[0030] The target resource information reported by the SDN controller is obtained, and the target resource information is stored.

[0031] Optionally, formulating a data routing strategy and a computing node priority determination strategy based on bandwidth resources and computing power resources of each distributed network node includes:

[0032] Determine the corresponding traffic type based on the node type of each distributed network node, and assign different weight values ​​to traffic links of different traffic types;

[0033] Based on the bandwidth resources of each distributed network node and using the Dijkstra algorithm with the weight value, a routing path between computing nodes is determined to obtain a data routing strategy;

[0034] Based on the computing power resource information of each distributed network node and the routing path, a computing node priority determination strategy is formulated through a Markov decision process to determine the target computing node for executing the computing task.

[0035] Optionally, the SDN-based distributed computing and communication integrated scheduling method further includes:

[0036] Three queues are pre-set on the OpenFlow switch port; wherein the forwarding rate of the first queue is higher than that of the second queue, and the forwarding rate of the second queue is higher than that of the third queue;

[0037] Formulate a data packet forwarding rule based on the node type of the distributed network node, so as to send the data packet sent by the distributed network node to the corresponding queue for forwarding based on the data packet forwarding rule; wherein the data packet forwarding rule is set to:

[0038] If the distributed network node is a communication node, sending the data packet sent by the computing node to the first queue for forwarding;

[0039] If the distributed network node is a communication computing node, sending the data packet sent by the communication computing node to the second queue for forwarding;

[0040] If the distributed network node is a computing node, the data packet sent by the communication node is sent to the third queue for forwarding.

[0041] In a second aspect, the present application discloses a distributed computing and communication integrated scheduling system based on SDN, which is applied to a virtual server and includes:

[0042] A POST request acquisition module, used to acquire a POST request sent by a distributed network node through an OpenFlow switch; the distributed network node includes a communication node, a computing node, and a communication computing node;

[0043] A flow table sending module, used to send a target command corresponding to the POST request to a corresponding SDN controller, so that the SDN controller sends flow table information to the OpenFlow switch based on the target command;

[0044] A request response module is used to complete a response operation to the POST request based on the flow table information through the OpenFlow switch.

[0045] In a third aspect, the present application discloses an electronic device, comprising:

[0046] Memory, used to store computer programs;

[0047] The processor is used to execute the computer program to implement the steps of the aforementioned SDN-based distributed computing and communication integrated scheduling method disclosed above.

[0048] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned SDN-based distributed computing and communication integrated scheduling method are implemented.

[0049] It can be seen that the present application obtains the POST request sent by the distributed network node through the OpenFlow switch through the virtual server; the distributed network node includes a communication node, a computing node and a communication computing node; the target command corresponding to the POST request is sent to the corresponding SDN controller, so that the SDN controller sends the flow table information to the OpenFlow switch based on the target command; the OpenFlow switch completes the response operation to the POST request based on the flow table information. It can be seen that the distributed network nodes in the present application include communication nodes, computing nodes and communication computing nodes, so there are both communication tasks and computing tasks in the distributed network. These distributed network nodes can send POST requests to the virtual server through the OpenFlow switch to achieve the corresponding functional requirements or task execution; after the virtual server obtains the POST request, it will send the target command corresponding to the POST request to the corresponding SDN controller, so that the SDN controller sends the flow table information to the OpenFlow switch based on the target command, and the OpenFlow switch can complete the response to the POST request after obtaining the flow table information. In this way, the present application can provide more refined service quality for different types of distributed network nodes, and can integrate the scheduling and balancing of computing and communication in a distributed network where communication tasks and computing tasks exist simultaneously. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0051] Figure 1 This is a schematic diagram of a distributed computing and communication integrated network structure based on SDN disclosed in this application;

[0052] Figure 2 A schematic diagram of the connection relationship between the southbound interface and the northbound interface of an SDN controller disclosed in this application;

[0053] Figure 3 A schematic diagram of the specific structure of a network control system module disclosed in this application;

[0054] Figure 4 This is a flow chart of a distributed computing and communication integrated scheduling method based on SDN disclosed in this application;

[0055] Figure 5 A schematic diagram of a specific flow table structure disclosed in this application;

[0056] Figure 6 A schematic diagram of a counter list for information statistics disclosed in this application;

[0057] Figure 7 A specific connection diagram of an OpenFlow switch disclosed in this application;

[0058] Figure 8 A specific SDN-based distributed computing and communication integrated scheduling method flow chart disclosed in this application;

[0059] Fig. 9 A specific network control system module initialization flow chart disclosed in this application;

[0060] Fig.10 A specific data packet parsing process flow chart disclosed in this application;

[0061] Fig.11 This is a schematic diagram of the structure of a distributed computing and communication integrated scheduling system based on SDN disclosed in this application;

[0062] Fig.12 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0063] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0064] With the continuous development and evolution of network communication technology and the emergence of some new services, a task often requires coordination between multiple different computer systems. Computer systems distributed in different geographical locations communicate with each other through distributed networks. At the same time, each computer system may have both communication tasks and computing tasks in the network. However, in the current distributed network, on the one hand, there may be many problems in the communication between nodes, such as there is no rule to regulate the bandwidth required by a node or to ensure the security and immediacy of communication. In particular, when a node has both computing and communication functions, it has normal data packets to transmit and sends commands or notification information to other nodes. These special data packets that need to be transmitted immediately may be blocked by the ordinary data packets currently being transmitted. Furthermore, for different nodes under the same switch, since the proportion of computing and communication of each node is different, in the case of tight bandwidth, the bandwidth required by each node at all times needs to be dynamically regulated to ensure that the network will not be blocked or idle, so as to achieve the normal operation of network functions. However, in the current distributed network, there is still a lack of a solution for detailed regulation of communication between nodes and integrated scheduling and balancing of computing and communication. To this end, the embodiments of the present application disclose a distributed computing and communication integrated scheduling method, system, device and medium based on SDN, which can integrate and balance computing and communication in a distributed network and provide more refined service quality for distributed network nodes.

[0065] Figure 1 This is a schematic diagram of a distributed computing and communication integrated network structure based on SDN disclosed in this application, which is applicable to the distributed computing and communication integrated scheduling method based on SDN in this application, such as Figure 1As shown, the network system includes a distributed network node 01, an OpenFlow switch 02 and a network control system module 03, wherein the network control system module 03 is located in the wide area network as the control center of the entire distributed computing and communication integrated network, and includes a virtual server 031 and a multi-controller module 032. The distributed network node 01 may specifically include a communication node, a computing node and a communication computing node; the OpenFlow switch 02 supporting the OpenFlow protocol is connected to the distributed network node 01 to form a distributed computing and communication integrated network; the virtual server 031 is used to monitor the network dynamics of each distributed network node 01 in the distributed computing and communication integrated network; the multi-controller module 032 includes one or more SDN controllers, that is, supports single controller and multi-controller modes. In the single controller mode, the entire network control system has only one SDN controller, which is suitable for small distributed networks. In the multi-controller mode, there are multiple SDN controllers with strong processing capabilities and support for distributed deployment. Each SDN controller is connected to a virtual server. In this embodiment, a multi-controller mode is used. Each SDN controller is connected to one or more OpenFlow switches 02 through the WAN port. Each SDN controller dynamically sends flow tables and queues to the OpenFlow switches connected to it according to the commands of the virtual server, and allocates network bandwidth resources to each distributed network node connection and computing resources to each computing task from top to bottom, so as to provide fine QoS (Quality of Service) guarantee.

[0066] It should be pointed out that participating Figure 2 As shown in , the SDN controller must implement two interfaces, namely the southbound interface and the northbound interface. The southbound interface supports the communication between the SDN controller and the OpenFlow switch 02. The communication between the SDN controller and the OpenFlow switch 02 adopts the OpenFlow protocol. The connection between the SDN controller and the OpenFlow switch is a Transport Layer Security (TLS) connection. The interface that connects the OpenFlow switch 02 to the SDN controller is called a secure channel. The SDN controller configures and manages the OpenFlow switch through the secure channel interface. Using the OpenFlow protocol, the remote controller can add, update, and delete records in the OpenFlow switch flow table. The northbound interface provides a programmable API for the SDN controller and high-level policy applications and services. In this embodiment, the SDN controller used is the RYU controller, which calls the Rest API of its northbound interface through the virtual server to implement the management and control functions of the entire distributed network.

[0067] Further, participate Figure 3 As shown in FIG. 1 , the virtual server 031 in the network control system module 03 is connected to the multi-controller module 032. The virtual server 031 specifically includes an information acquisition module, an information analysis and processing module, a communication module 1, a communication module 2 and a storage module. The functions of each module are:

[0068] The communication module 1 is used to connect to the SDN controller in the multi-controller module 032. The module adopts a multi-threaded mode and creates a new thread for each connection with the SDN controller so that each connection does not interfere with each other. The northbound interface of the SDN controller is called through the connection to send commands to the SDN controller. In this embodiment, the C / S architecture is used as the communication mode between the multi-control module 032 and the virtual server 031. The information of the SDN controller is collected through the virtual server 031, which is conducive to the distributed deployment of the network and easy to manage.

[0069] Communication module 2 is used to communicate with distributed network node 01 and accept POST requests from each node, including bandwidth adjustment requests, special port marking requests, node type change and node priority determination requests. This module obtains the ID of the distributed network node, the ID of the OpenFlow switch connected to the node, and the request type and request value from the POST request, and puts it into the processing queue to wait for the virtual server to process.

[0070] Information collection module, which sends information query commands to each connected SDN controller through communication module 1 at regular intervals to obtain the flow table and queue information of all OpenFlow switches and the computing power resources of all computing nodes. For OpenFlow switches, it specifically includes the number of packet queries and packet matches in each flow table, the number of packets, bytes, and data flow duration of each data flow, the number of packets received, the number of packets sent, the number of bytes received, the number of bytes sent, the number of various errors, the number of packets and bytes sent by each queue, and the number of over-limit errors during sending. For computing nodes, it specifically includes the node computing power, that is, the number of computing instructions per second, the current computing power usage, and the above information is stored in the storage module.

[0071] The storage module mainly stores three parts of content, including the information collected from the information collection module, the information of all SDN controllers connected to the communication module 1, and the information of all nodes in the distributed network, including node addresses, node types, etc.

[0072] The information analysis and processing module mainly analyzes the collected data to formulate reasonable packet forwarding, routing strategies, and computing node allocation strategies; specifically, this module will read the data collected by the information collection module from the storage module, calculate the real-time network speed and computing power of each node, or formulate packet forwarding, routing and computing node priority determination strategies that are in line with the current situation based on the requests in the queue to be processed, combined with the network status and computing power resources at the time, according to the packet forwarding rules.

[0073] It can be seen that, on the basis of distributed network nodes connected to OpenFlow switches to form a distributed computing and communication integrated network, this application adds a network control system module composed of a virtual server and a multi-controller module. The virtual server is used to monitor the network dynamics of each distributed network node in the distributed computing and communication integrated network: receiving POST requests from distributed nodes, adjusting the bandwidth of distributed network nodes, marking special ports, and changing node types and computing node priority determination through SDN controllers and OpenFlow switches, and controlling the forwarding and routing of OpenFlow switches through SDN controllers, dynamically and accurately regulating the bandwidth occupied by each distributed network node so that it can reasonably use the bandwidth, and setting priorities for data packet forwarding between nodes according to ports, etc., dynamically adjusting the routing of data packets according to real-time network bandwidth resources, and providing QoS guarantees to ensure priority and timely transmission of command data packets.

[0074] See also Figure 4 As shown, the embodiment of the present application discloses a distributed computing and communication integrated scheduling method based on SDN, the method comprising:

[0075] Step S11: obtaining a POST request sent by a distributed network node through an OpenFlow switch; the distributed network node includes a communication node, a computing node and a communication computing node.

[0076] In this embodiment, the distributed network nodes include communication nodes with only network communication and forwarding functions, computing nodes with only computing functions, and communication computing nodes with not only computing functions but also network communication and forwarding functions. The distributed network nodes can communicate with each other and use distributed network synchronization algorithms to jointly complete a task. Among them, the distributed network nodes specifically refer to real computers, virtual computers, and other intelligent devices such as drones. When some nodes in the distributed network nodes fail or new nodes join the network, the network structure can be dynamically updated, and the tasks being executed can be dynamically adjusted according to the latest network structure. In this embodiment, these different types of distributed network nodes can all use the HTTP protocol to send POST requests to the virtual server through the OpenFlow switch connected to them. Correspondingly, the virtual server can also monitor the network dynamics of each distributed network node in the distributed computing and communication integrated network. Among them, the OpenFlow switch refers to a switch that supports the OpenFlow protocol. The distributed network nodes are connected to the OpenFlow switch to form a distributed computing and communication integrated network.

[0077] It should be noted that the above-mentioned acquisition of the POST request sent by the distributed network node through the OpenFlow switch includes: acquiring the POST request sent by the distributed network node through the OpenFlow switch for applying for bandwidth adjustment; or, acquiring the POST request sent by the distributed network node through the OpenFlow switch for marking special ports; or, acquiring the POST request sent by the distributed network node through the OpenFlow switch for changing the node type; or, acquiring the POST request sent by the computing node through the OpenFlow switch for determining the computing node priority. It can be understood that the distributed network node can send a POST request through the OpenFlow switch to meet the requirements of applying for bandwidth adjustment, marking special ports, changing node types, and determining computing node priorities.

[0078] Among them, applying for bandwidth adjustment means that when the current bandwidth of a distributed network node is less than the node's requirement or the bandwidth allocated to the node is idle, which will affect the node's function, the node will send a POST request to the virtual server to adjust the bandwidth; if a distributed network node has computing and communication functions, when the node's computing ratio is heavy and the duration is long, it can apply to the virtual server to release the bandwidth. Conversely, when a node's communication transmission ratio is heavy and the duration is long, it can apply to the virtual server to increase the bandwidth. Marking special ports means that when a distributed network node is a communication node or a computing communication node, when it needs to mark one or more of its own ports as special ports to perform special actions, the node sends a POST request to the virtual server to mark special ports; if a distributed network node with communication functions sends a special command to prevent being blocked by ordinary data packets, the node can send a POST request to the virtual server to mark special ports. Changing the node type means that when a distributed network node meets the requirements, the type can be changed between computing nodes, communication nodes and communication computing nodes. Meeting the requirements means that the distributed network node requesting to change the node type must have the basic functions of the node type applied for. For example, if the communication node does not have the required computing functions, it is not allowed to change its node type to a computing node or a communication computing node. In addition, after the node type is changed, the type of the node in the storage module will be updated. Computing node priority determination means that due to the distributed deployment of computing tasks in the network, different usage requirements will be generated for each computing node, so it is necessary to implement the priority management of each computing node in the overall network under the traditional network priority data transmission management framework. For example, when generating computing tasks, the virtual server should consider the current network bandwidth occupancy and computing node computing power occupancy, and assign the computing tasks to the most suitable computing nodes to execute, so as to complete the computing tasks efficiently.

[0079] It is necessary to supplement the above content that the node type of the distributed network node exists in the virtual server. When the distributed network node sends a POST request to change the node type to the virtual server, the virtual server modifies the node type of the node according to the request; in addition, the virtual server has different initialization processing strategies for computing nodes, communication nodes, and communication computing nodes: computing nodes are mainly used to implement computing functions, so they have the lowest priority in bandwidth allocation, communication nodes have the highest priority, and computing and communication nodes have a middle priority; the virtual server sends an initialization command to the corresponding SDN controller, and the corresponding SDN controller sends the flow table and queue to the corresponding OpenFlow switch to complete the allocation of distributed node bandwidth according to the initialization processing strategy.

[0080] Step S12: Sending a target command corresponding to the POST request to a corresponding SDN controller, so that the SDN controller sends flow table information to the OpenFlow switch based on the target command.

[0081] In this embodiment, after receiving the POST request, the virtual server will send the target command corresponding to the POST request to the corresponding SDN controller, so that the SDN controller sends the flow table information to the OpenFlow switch based on the target command. It should be pointed out that in this embodiment, the main function of the OpenFlow switch is to receive the instructions of the SDN controller in the network control system module, and create flow tables and queues under the command of the SDN controller.

[0082] Specifically, Figure 5 This is a specific flow table structure diagram disclosed in this application. Figure 5 As shown in , the created flow table consists of three parts: matching fields, operations, and counters. The function of the matching field is to match the input data packets. The matching fields include source port and destination port, source MAC address and destination MAC address, source IP address and destination IP address, etc. An operation refers to a set of instructions or specific operations applied to the matched data packets. It is used to instruct the OpenFlow switch how to handle the matched data packets. Operation types include forwarding, discarding, enqueuing, etc. It should be noted that the matching field of each record in the flow table contains a specific value or ANY (*, wildcard), and the wildcard can match any value. Counters are used to count specific flows, such as the number of received data packets, the number of bytes, and the duration of the flow. In particular, Figure 6 As shown in the figure, each flow, each table, each port, and each queue maintains a counter to store traffic statistics. Figure 6 The duration in the counter refers to the time a flow exists in the flow table of the OpenFlow switch. The network control system module will formulate a data packet forwarding strategy based on the information of the counter.

[0083] In addition, creating a queue is the basis for the refined QoS service of this embodiment. The OpenFlow switch is set with a queue at the port, and the queue can be set with a maximum rate and a minimum rate. When creating a flow table, the OpenFlow switch sets the operation type to the queue operation and specifies a specific queue number to map the flow to the queue. Then, when the OpenFlow switch performs a forwarding operation, it will match the flow table according to the information of the data packet and put it into the queue for forwarding, and ensure that its transmission speed is not lower than or higher than a certain value according to the maximum rate or minimum rate configured for the queue, so as to ensure that the data packet will not be lost in the case of network congestion. It should be noted that the OpenFlow switch used in this embodiment supports both required operations and normal operations. The specified operations include forwarding and discarding, entering the queue, modifying the field, etc. Forwarding means that the OpenFlow switch forwards the data packet to the physical port or the virtual port. The virtual ports include: ALL (i.e., sent to all interfaces except the input port), CONTROLLER (i.e., sent to the controller), LOCAL (i.e., sent to the local network line of the switch), TABLE (i.e., executing the operation in the flow table), IN_PORT (i.e., outputting the data packet from the input port). At the same time, when the switch is performing forwarding operations, it can choose to support NORMAL and FLOOD virtual ports. NORMAL port refers to forwarding data packets using the conventional forwarding path supported by the switch, and FLOOD refers to forwarding data packets to ports other than the input port in a flooding manner along the minimum support tree. Discarding means that if no specific operation is defined in the flow record, it will be discarded. The queue entry operation provides basic QoS support, which specifically means forwarding data packets by placing them in different queues in the port. The configuration of the specific queue is determined by the queue policy issued by the network control system. Modifying fields includes setting VLAN ID, setting VLAN priority, stripping VLAN headers, modifying source or destination Ethernet MAC addresses, modifying source or destination IPv4 addresses, modifying the service type (ToS) field value of the IP message, and modifying the source or destination port number of the transport layer.

[0084] Step S13: The OpenFlow switch completes a response operation to the POST request based on the flow table information.

[0085] In this embodiment, the OpenFlow switch completes the response operation to the POST request based on the flow table information. Further, the above-mentioned completion of the response operation to the POST request by the OpenFlow switch based on the flow table information includes: adjusting the bandwidth of the distributed network node by the OpenFlow switch based on the flow table information; or, marking the port of the distributed network node by the OpenFlow switch based on the flow table information; or, changing the node type of the distributed network node by the OpenFlow switch based on the flow table information; or, sending the data packet in the computing node to the target computing node for executing the computing task by the OpenFlow switch based on the flow table information. It can be understood that if the POST request is used to apply for bandwidth adjustment, the virtual server will send a bandwidth adjustment command to the corresponding SDN controller, the SDN controller will send a flow table and a queue to the corresponding OpenFlow switch, and the OpenFlow switch will adjust the bandwidth of the distributed network node based on the sent flow table and queue to ensure the normal operation of the network function, to ensure the accurate transmission of the data packet, so that the node can better occupy and release the bandwidth, and improve the utilization of the bandwidth. If the POST request is used to mark a special port, the virtual server sends a special port marking command to the corresponding SDN controller, and the SDN controller sends a flow table to the corresponding OpenFlow switch. This flow table has a higher priority than the general flow table. The OpenFlow switch will specially mark the ports of the distributed network nodes based on the sent flow table. When the OpenFlow switch recognizes that the source port number of the data packet is a marked special port, it will obtain a higher forwarding priority. If the POST request is used to change the node type, the virtual server sends a node type change command to the corresponding SDN controller, and the SDN controller sends the flow table information to the OpenFlow switch so that the OpenFlow switch can change the node type of the distributed network node based on the flow table information. If the POST request is used to determine the priority of the computing node, the virtual server sends a node priority determination command to the corresponding SDN controller, and the SDN controller sends the flow table information to the OpenFlow switch. The OpenFlow switch sends the data packet in the computing node to the target computing node for executing the computing task based on the flow table information. The target computing node is the optimal node at the current moment.

[0086] Further, the above-mentioned SDN-based distributed computing and communication integrated scheduling method also includes: pre-setting three queues on the OpenFlow switch port; wherein the forwarding rate of the first queue is higher than that of the second queue, and the forwarding rate of the second queue is higher than that of the third queue; formulating a packet forwarding rule based on the node type of the distributed network node, so as to send the data packet sent by the distributed network node to the corresponding queue for forwarding based on the packet forwarding rule; wherein the packet forwarding rule is set as follows: if the distributed network node is a communication node, the data packet sent by the computing node is sent to the first queue for forwarding; if the distributed network node is a communication computing node, the data packet sent by the communication computing node is sent to the second queue for forwarding; if the distributed network node is a computing node, the data packet sent by the communication node is sent to the third queue for forwarding. It can be understood that in this embodiment, three different queues can be set at each port of each OpenFlow switch, which are queues with three different rates of high, medium and low, respectively, and are recorded as the first queue, the second queue and the third queue, wherein the forwarding rate of the first queue is higher than that of the second queue, and the forwarding rate of the second queue is higher than that of the third queue, but the specific rate value will be formulated according to the maximum bandwidth supported by each port when the network control system is initialized. Then, data packet forwarding rules are formulated according to the node types of the distributed network nodes, so that data packets sent by different types of distributed network nodes are sent to corresponding queues for forwarding.

[0087] Among them, the packet forwarding rule is: if the distributed network node is a communication node, the data packet sent by the computing node is sent to the first queue for forwarding; if the distributed network node is a communication computing node, the data packet sent by the communication computing node is sent to the second queue for forwarding; if the distributed network node is a computing node, the data packet sent by the communication node is sent to the third queue for forwarding. In other words, when a distributed network node is a communication node, it is assumed that the ordinary data packet sent by the node will enter the high-speed queue for forwarding when it reaches the OpenFlow switch where the destination node is located; when a distributed network node is a communication computing node, it is assumed that the ordinary data packet sent by the node will enter the medium-speed queue for forwarding when it reaches the OpenFlow switch where the destination node is located; when a distributed network node is a computing node, it is assumed that the ordinary data packet sent by the node will enter the lowest-speed queue for forwarding when it reaches the OpenFlow switch where the destination node is located. It should be noted that if it is a communication computing node, the network control system module will pay attention to the real-time network speed of the node. If the speed of its port remains at a high level for a certain period of time, the data packets it sends will be temporarily placed in a high-speed queue for forwarding. When its speed remains at a low level for a certain period of time, it will be reduced to a medium speed. It should also be pointed out that in addition to the more conventional data packet forwarding rules disclosed above, the embodiments of the present application also provide corresponding forwarding rules for different types of POST requests, specifically: when a request for adjusting the bandwidth of a distributed network node is received, if it is a request to reduce the bandwidth, the data packet sent by it is placed in a lower queue for forwarding; if it is a request to increase the bandwidth, if there is no conflict, the data packet sent by it is placed in a higher queue for forwarding; the conflict situation refers to that different distributed network nodes connected to the same OpenFlow switch simultaneously issue requests to increase bandwidth, and this situation will be processed according to the order of the requests; when a request for changing the node type of a distributed network node is received, if the conditions are met, the virtual server will change the type of its node and select a new forwarding strategy for the data packet sent by the node according to the changed node type; when a request for marking a special port of a distributed network node is received, the virtual server will record the port and place the data packet sent by its port into a higher or lower queue for forwarding according to the value of its request. In this way, based on the idea of ​​SDN, using SDN-supported switches to separate the forwarding plane and the control plane in ordinary switches, the forwarding strategy can be dynamically adjusted using a program to ensure that high-priority data packets are not blocked by ordinary data flows, providing better services for each distributed network node in different application scenarios.

[0088] by Figure 7Taking the OpenFlow switch and distributed network node in the example, the above packet forwarding process is described in detail. Figure 7 As shown in the figure, three distributed network nodes are connected to the OpenFlow switch, namely the communication node (IP: 192.168.1.101), the communication computing node 1 (IP: 192.168.1.102), and the communication computing node 2 (IP: 192.168.1.103). The maximum bandwidth of the network where the OpenFlow switch is located is 10Gbps, so the queues of the switch ports are divided into high-speed queues (queue 0: minimum rate 5Gbps), medium-speed queues (queue 1: minimum rate 2Gbps, maximum rate 8Gbps), and low-speed queues (queue 2: maximum rate 5Gbps). After the OpenFlow switch receives the data packet, it processes the data packet according to the operation in the flow table information. The matching fields and actions in the flow table are shown in Table 2:

[0089] Table 1

[0090]

[0091] Table 1 includes three flow table entries. nw_src in the flow table entry refers to the source IPv4 address, dl_type refers to the Ethernet type code, tp_src refers to the source port number, SET_QUEUE refers to the queue operation, and GOTO_TABLE refers to the jump table. The matching rule of the first flow table entry is to match the data packet with source IP 192.168.1.101 and destination IP 192.168.1.103. When the OpenFlow switch receives the data packet matching the rule, it will put the data packet into the high-speed queue and jump to table1 to continue searching for the flow table entry. The second and third flow table entries match the data packets with destination IP 192.168.1.103 and ports 5001 and 5002 from communication node 1, respectively. It should be noted that ports 5001 and 5002 are specially marked ports of communication node 1. As shown in Table 1, packets from port 5001 will be placed in the high-speed queue, and packets from port 5002 will be placed in the low-speed queue.

[0092] It should be noted that the three levels of queue rate, high, medium and low, are only one strategy formulated in this embodiment. Other strategies that meet the situation can be formulated according to specific circumstances, and queue ports are not limited to setting three queues. Through the above scheme, the OpenFlow switch divides data packets from different types of nodes and different ports into different queues for forwarding, realizing more refined QoS services.

[0093] It can be seen that the present application obtains the POST request sent by the distributed network node through the OpenFlow switch through the virtual server; the distributed network node includes a communication node, a computing node and a communication computing node; the target command corresponding to the POST request is sent to the corresponding SDN controller, so that the SDN controller sends the flow table information to the OpenFlow switch based on the target command; the OpenFlow switch completes the response operation to the POST request based on the flow table information. It can be seen that the distributed network nodes in the present application include communication nodes, computing nodes and communication computing nodes, so there are both communication tasks and computing tasks in the distributed network. These distributed network nodes can send POST requests to the virtual server through the OpenFlow switch to achieve the corresponding functional requirements or task execution; after the virtual server obtains the POST request, it will send the target command corresponding to the POST request to the corresponding SDN controller, so that the SDN controller sends the flow table information to the OpenFlow switch based on the target command, and the OpenFlow switch can complete the response to the POST request after obtaining the flow table information. In this way, the present application can provide more refined service quality for different types of distributed network nodes, and can integrate the scheduling and balancing of computing and communication in a distributed network where communication tasks and computing tasks exist simultaneously.

[0094] See also Figure 8 As shown, the embodiment of the present application discloses a specific SDN-based distributed computing and communication integrated scheduling method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically, it includes:

[0095] Step S21: Obtain a POST request sent by a computing node through an OpenFlow switch for determining a computing node priority.

[0096] Step S22: Formulate a data routing strategy and a computing node priority determination strategy based on the bandwidth resources and computing power resources of each distributed network node.

[0097] In this embodiment, if the POST request is used to determine the priority of the computing node, the virtual server will formulate a data routing strategy and a computing node priority determination strategy based on the bandwidth resources and computing power resources of each distributed network node. It can be understood that distributed computing tasks usually require the cooperation of computing nodes distributed in different locations to complete. In order to ensure the real-time performance of distributed computing tasks, it is necessary to dynamically determine which computing node is the optimal node at the current moment when a computing task is generated, and assign the task to the computing node for execution. The specific process is that the computing node first receives a computing task. These tasks can be selected to be executed locally or sent to other computing nodes for execution as appropriate. Therefore, the computing node asks the virtual server how to execute the task through a POST request. When the virtual server receives the POST request from the computing node, it formulates a computing node priority determination strategy based on the bandwidth resources and computing power resources of each distributed network node to determine which target computing node is executed, and formulates a data routing strategy to give the optimal routing path to the target computing node.

[0098] Therefore, the above-mentioned data routing strategy and computing node priority determination strategy based on the bandwidth resources and computing power resources of each distributed network node can specifically include: determining the corresponding traffic type based on the node type of each distributed network node, and assigning different weight values ​​to traffic links of different traffic types; determining the routing path between computing nodes based on the bandwidth resources of each distributed network node and using the Dijkstra algorithm with the weight value to obtain the data routing strategy; based on the computing power resource information of each distributed network node and the routing path, and formulating the computing node priority determination strategy through the Markov decision process to determine the target computing node for performing the computing task. It can be understood that different types of distributed network nodes correspond to different traffic types. Nodes with computing functions correspond to computing traffic, while nodes with communication functions correspond to communication traffic. This embodiment assigns different weight values ​​to traffic links of different traffic types, and then determines the routing path between computing nodes based on the bandwidth resources of each distributed network node using the Dijkstra algorithm with weight values ​​(i.e., Dijkstra algorithm) to obtain the data routing strategy. Then, according to the computing resource information and routing path of each distributed network node, a computing node priority determination strategy is formulated through the Markov decision process to determine the target computing node for executing the computing task.

[0099] The specific data packet routing rules in the data routing strategy are as follows:

[0100] Rule 1: For computing traffic, in order to ensure that it occupies the shortest link first, the shortest path algorithm with a constant weight value of 1 is used.

[0101] Rule 2: For normal traffic, after calculating the routing paths for all computing nodes, the used links are marked as computing traffic links, and then the routes are calculated for normal communication traffic between two nodes:

[0102] (1) For all calculated traffic links, set the link extra weight to t;

[0103] (2) Use the weighted shortest path algorithm to calculate the path. The weight of each link is as follows:

[0104]

[0105] Where rate represents the current bandwidth occupancy rate of the link, bandwidth represents the total bandwidth of the link, and t is greater than T. When t is positive infinity, ordinary traffic will never occupy the link of the calculation traffic. When t is a positive value, ordinary traffic will occupy the calculation traffic link when the congestion reaches a certain level. By setting different t and T, the congestion level at which ordinary traffic needs to occupy the calculation traffic can be changed.

[0106] Rule 3: After setting up normal traffic routing, the information analysis and processing module will recalculate the routing path at fixed intervals. If there is a shorter path, it means there is a more suitable idle link, and the routing path will be switched immediately for normal traffic to ease congestion and improve link utilization.

[0107] After obtaining the routing path for computing traffic transmission, the priority of computing nodes can be determined. The Markov decision process under this system is defined as follows:

[0108] State space: Define the state space of the system at time t as the attributes of all computing nodes and the tasks W generated at this time t The collection of where ζ i , κ i , α i They represent the maximum computing capacity of computing node i, which is composed of its maximum number of simultaneous task transmissions, the current number of task transmissions, and the current computing resource occupancy ratio. t The amount of computation required t , the number of transmissions t And the computing node c that initiated the task POST request t The status will be updated periodically with the information collected by the information collection module.

[0109] Action space: The action in this problem is to assign a computing node to perform the calculation, so the action space at time t is A = {a|0≤a≤n}, where a means assigning the task to the computing node with index a, and n means the total number of computing nodes in the system.

[0110] Reward function: After each step of the action is executed, an immediate reward will be received from the system. The present invention uses the opposite of the estimated time to complete the task as the reward signal, and adds a constant delay C to make the reward a positive number.

[0111] Specifically, task W t The estimated total time to complete t(W t ) is composed of the task transmission time plus the task calculation time, expressed as h Wt =j represents task W t is decided to be executed on computing node j, then

[0112]

[0113] where c t Indicates that a POST request is initiated to query W t How to allocate computing nodes, It represents the computing time required for the task to be processed by node j. represents the transmission time of data on the link u, v, and p is the transmission time of node c t and the computational traffic routing path between node j, and the final reward is r(s,a)=Ct(W t ), t(W t ) The path is selected by the routing policy.

[0114] For the computing node allocation at time t, the embodiment of the present invention considers the future expected benefits based on discounts: γ is the discount factor. This optimization problem can be solved by using the value iteration reinforcement learning method.

[0115] It should be noted that the above method also includes: sending an information query command to the SDN controller at a preset time interval so that the SDN controller collects corresponding target resource information based on the information query command; the target resource information includes the flow table and queue information of each OpenFlow switch, as well as the bandwidth resources and computing power resources of each distributed network node; obtaining the target resource information reported by the SDN controller, and storing the target resource information. It can be understood that if Fig. 9As shown, when the network control system module is initialized, the SDN controller in the multi-controller module will send a connection request to the communication module 1 in the virtual server. If the virtual server has been started and the communication module 1 is running normally, the communication module 1 will create a new thread for each connection request from the SDN controller for transmitting messages; after the thread is created, the virtual server will send information query commands to the SDN controller through the communication module 1 at regular intervals, so that the SDN controller can collect the flow table and queue information of each OpenFlow switch, as well as the bandwidth resources and computing power resources of each distributed network node. For communication nodes, the controller collects the bandwidth and traffic load on its connection link, and for computing nodes, the controller also collects its computing power and computing load. In addition, the ID registered by the OpenFlow switch in the SDN controller, the port information of the switch, and the information of the distributed network nodes connected to the switch are also collected, including the MAC address, ipv4 address, ipv6 address and port number of each distributed network node, and the information is stored in the storage module of the virtual server. At the same time, the communication module 1 will send some flow tables to each OpenFlow switch connected to it through the SDN controller. These flow tables include mismatch records and the initialization flow table and queue of each OpenFlow switch; the initialization flow table and queue refer to the flow table and queue formulated by the information analysis module of the virtual server according to the information obtained during initialization. In other words, during operation, the communication module 1 will monitor new connection requests from the SDN controller in real time, scan the status of the distributed network nodes of the entire distributed computing and communication integrated network at regular intervals, and update the information of the OpenFlow switch, SDN controller and distributed network nodes in real time.

[0116] Step S23: Generate a corresponding target command based on the data routing strategy and the computing node priority determination strategy, and send the target command to the corresponding SDN controller, so that the SDN controller sends flow table information to the OpenFlow switch based on the target command.

[0117] In this embodiment, after the data routing strategy and computing node priority determination strategy are formulated, the node type and node address stored in the storage module will be combined to generate corresponding target commands, which will be sent to the SDN controller by calling the northbound interface of the SDN controller through the communication module 1. After receiving the command, the SDN controller will send new flow table information and queue information to the OpenFlow switch through the southbound interface of the SDN controller. That is, the formulated data routing strategy and computing node priority determination strategy will be implemented by relying on the flow table in each OpenFlow switch.

[0118] Step S24: sending the data packet in the computing node to the target computing node for executing the computing task based on the flow table information through the OpenFlow switch.

[0119] In this embodiment, the OpenFlow switch sends the data packet in the computing node to the target computing node for executing the computing task based on the flow table information. Furthermore, the process also includes: extracting the header field of the data packet through the OpenFlow switch, and matching the header field with the flow table item in the flow table information to determine whether there is a matching target flow table item in the flow table information; if so, processing the data packet based on the operation process corresponding to the target flow table item; if not, processing the data packet according to the operation instruction in the preset mismatch record; the operation instruction in the mismatch record is to forward the data packet to the SDN controller through the OpenFlow channel so that the SDN controller can complete the forwarding process of the data packet. It can be understood that the participants Fig.10 As shown in , the embodiment of the present application discloses a specific data packet parsing process flow chart. After receiving the data packet, the OpenFlow switch will first extract the header field of the data packet, and match the header field with the flow table item in the flow table information to determine whether there is a matching target flow table item in the flow table information. If there is, the data packet is processed based on the operation flow corresponding to the target flow table item. In a specific implementation, the header field is matched with the table items in the locally stored flow table in order according to the priority. The search and match starts from the first record of the flow table and proceeds downward in sequence, and the matching table item with the highest priority is used as the matching result. Once the match is successful, the counter of the corresponding flow table will be updated, and the data packet will be processed using a series of operation flows associated with the flow record. From the above content, it can be seen that when the data packet searches for a matching flow record, it is performed according to the priority of the flow record, and the flow record that accurately defines the matching rules will have the highest priority, and all flow records using wildcards have the priority associated with it. When matching, the flow record with a high priority always precedes the flow record with a low priority. In particular, when multiple flow records have the same priority, the switch will select an arbitrary matching order. Also, the larger the number, the higher the priority.

[0120] If there is no matching target flow table entry, that is, no matching table entry is found, the OpenFlow switch processes the data packet according to the operation instructions in the preset mismatch (table-missing) record. It should be pointed out that the flow table in the OpenFlow switch must contain a mismatch record, in which a set of operations are defined for processing input data packets that cannot find a match. Specifically, these operations include: discarding, sending the data packet to all interfaces, or forwarding the data packet to the controller through a secure OpenFlow channel. In an embodiment of the present invention, the operation instructions in the mismatch records of all OpenFlow switches are unified as follows: forward all data packets that do not find a matching flow table entry to the SDN controller through a secure OpenFlow channel, so that the SDN controller completes the data packet forwarding process. After the SDN controller completes the processing, it will automatically send the flow table to the corresponding OpenFlow switch according to the correctly forwarded record, and when the OpenFlow switch forwards the data packet again, there will be a table to check. In this way, when a data packet cannot find a corresponding matching flow table, the SDN controller will forward the data packet to all ports in a flooding manner. If a broadcast response is received from the destination node, the SDN controller will issue a new flow table and then update the flow table entry counter to make up for the lack of flow table entries. If no response is received, the data packet will be discarded.

[0121] For a more specific processing procedure of the above step S21, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described in detail here.

[0122] It can be seen that this embodiment is mainly about the relevant processing flow of the POST request sent by the computing node for determining the priority of the computing node. The two main features involved in this process are how to determine the optimal computing node and how to select an optimal routing path to transmit computing data. Therefore, after the virtual server obtains the POST request, it will formulate a computing node priority determination strategy based on the bandwidth resources and computing power resources of each distributed network node to determine the optimal target computing node, and formulate a data routing strategy to select the optimal routing path. Through a refined routing strategy, a more stable transmission channel is provided for communication between nodes, thereby alleviating the conflict problem between computing data and communication data, and at the same time, the original bandwidth resources of each distributed network node are uniformly managed to improve bandwidth utilization efficiency. A computing node priority determination rule based on a Markov decision process is used to uniformly manage the distributed computing resources in the network. This rule can not only realize the priority determination of each computing node under a global perspective, but also can naturally integrate into the priority management architecture of traditional communication data forwarding in the SDN network.

[0123] See also Fig.11As shown, the embodiment of the present application discloses a distributed computing and communication integrated scheduling system based on SDN, the system comprising:

[0124] A POST request acquisition module 11 is used to acquire a POST request sent by a distributed network node through an OpenFlow switch; the distributed network node includes a communication node, a computing node, and a communication computing node;

[0125] A flow table sending module 12, configured to send a target command corresponding to the POST request to a corresponding SDN controller, so that the SDN controller sends flow table information to the OpenFlow switch based on the target command;

[0126] The request response module 13 is used to complete the response operation to the POST request based on the flow table information through the OpenFlow switch.

[0127] It can be seen that the present application obtains the POST request sent by the distributed network node through the OpenFlow switch through the virtual server; the distributed network node includes a communication node, a computing node and a communication computing node; the target command corresponding to the POST request is sent to the corresponding SDN controller, so that the SDN controller sends the flow table information to the OpenFlow switch based on the target command; the OpenFlow switch completes the response operation to the POST request based on the flow table information. It can be seen that the distributed network nodes in the present application include communication nodes, computing nodes and communication computing nodes, so there are both communication tasks and computing tasks in the distributed network. These distributed network nodes can send POST requests to the virtual server through the OpenFlow switch to achieve the corresponding functional requirements or task execution; after the virtual server obtains the POST request, it will send the target command corresponding to the POST request to the corresponding SDN controller, so that the SDN controller sends the flow table information to the OpenFlow switch based on the target command, and the OpenFlow switch can complete the response to the POST request after obtaining the flow table information. In this way, the present application can provide more refined service quality for different types of distributed network nodes, and can integrate the scheduling and balancing of computing and communication in a distributed network where communication tasks and computing tasks exist simultaneously.

[0128] Fig.12A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Specifically, it may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the SDN-based distributed computing and communication integrated scheduling method performed by the electronic device disclosed in any of the aforementioned embodiments.

[0129] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0130] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0131] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.

[0132] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the SDN-based distributed computing and communication integrated scheduling method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to data transmitted from an external device received by the electronic device, the data 223 can also include data collected by its own input and output interface 25.

[0133] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the method steps performed in the SDN-based distributed computing and communication integrated scheduling process disclosed in any of the aforementioned embodiments are implemented.

[0134] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0135] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0136] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0137] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0138] The above is a detailed introduction to the SDN-based distributed computing and communication integrated scheduling method, system, device and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A distributed computing and communication integrated scheduling method based on SDN, characterized in that: Applicable to virtual servers, including: Obtain a POST request sent by a distributed network node through an OpenFlow switch; the distributed network node includes a communication node, a computing node, and a communication computing node; the communication node is a node with network communication and forwarding functions, the computing node is a node with computing functions, and the communication computing node is a node with computing functions, network communication and forwarding functions; Sending a target command corresponding to the POST request to a corresponding SDN controller, so that the SDN controller sends flow table information to the OpenFlow switch based on the target command; Complete a response operation to the POST request based on the flow table information by the OpenFlow switch; Among them, the OpenFlow switch is connected to the distributed network nodes to form a distributed computing and communication integrated network, the virtual server is used to monitor the network dynamics of each distributed network node in the distributed computing and communication integrated network, and the virtual server is connected to the SDN controller, and the number of the SDN controllers is one or more.

2. The SDN-based distributed computing and communication integrated scheduling method according to claim 1, characterized in that: The obtaining of the POST request sent by the distributed network node through the OpenFlow switch includes: Obtain the POST request for applying for bandwidth adjustment sent by the distributed network node through the OpenFlow switch; Or, obtaining a POST request for marking a special port sent by a distributed network node through an OpenFlow switch; Or, obtaining a POST request for changing a node type sent by a distributed network node through an OpenFlow switch; Or, obtain a POST request sent by the computing node through the OpenFlow switch for determining the priority of the computing node.

3. The SDN-based distributed computing and communication integrated scheduling method according to claim 2, characterized in that: The step of completing the response operation to the POST request based on the flow table information by the OpenFlow switch includes: Adjusting the bandwidth of the distributed network node based on the flow table information by the OpenFlow switch; or, performing special marking on the ports of the distributed network nodes based on the flow table information by the OpenFlow switch; or, changing the node type of the distributed network node based on the flow table information through the OpenFlow switch; Or, the data packet in the computing node is sent to a target computing node for executing the computing task based on the flow table information through the OpenFlow switch.

4. The SDN-based distributed computing and communication integrated scheduling method according to claim 3, characterized in that: The process of sending the data packet in the computing node to the target computing node for executing the computing task based on the flow table information through the OpenFlow switch also includes: Extracting a header field of the data packet through the OpenFlow switch, and matching the header field with a flow table entry in the flow table information to determine whether there is a matching target flow table entry in the flow table information; If so, processing the data packet based on the operation flow corresponding to the target flow entry; If not, the data packet is processed according to the operation instruction in the preset mismatch record; the operation instruction in the mismatch record is to forward the data packet to the SDN controller through the OpenFlow channel so that the SDN controller completes the forwarding process of the data packet.

5. The SDN-based distributed computing and communication integrated scheduling method according to claim 2, characterized in that: The sending of the target command corresponding to the POST request to the corresponding SDN controller includes: If the POST request is used to determine the priority of a computing node, a data routing strategy and a computing node priority determination strategy are formulated based on the bandwidth resources and computing power resources of each distributed network node; A corresponding target command is generated based on the data routing strategy and the computing node priority determination strategy, and the target command is sent to the corresponding SDN controller.

6. The SDN-based distributed computing and communication integrated scheduling method according to claim 5, characterized in that: Also includes: Sending an information query command to the SDN controller at a preset time interval, so that the SDN controller collects corresponding target resource information based on the information query command; The target resource information includes the flow table and queue information of each OpenFlow switch, and the bandwidth resources and computing power resources of each distributed network node; The target resource information reported by the SDN controller is obtained, and the target resource information is stored.

7. The SDN-based distributed computing and communication integrated scheduling method according to claim 5, characterized in that: The data routing strategy and computing node priority determination strategy are formulated based on the bandwidth resources and computing power resources of each distributed network node, including: Determine the corresponding traffic type based on the node type of each distributed network node, and assign different weight values ​​to traffic links of different traffic types; Based on the bandwidth resources of each distributed network node and using the Dijkstra algorithm with the weight value, a routing path between computing nodes is determined to obtain a data routing strategy; Based on the computing power resource information of each distributed network node and the routing path, a computing node priority determination strategy is formulated through a Markov decision process to determine the target computing node for executing the computing task.

8. The SDN-based distributed computing and communication integrated scheduling method according to any one of claims 1 to 7, characterized in that: Also includes: Three queues are pre-set on the OpenFlow switch port; wherein the forwarding rate of the first queue is higher than that of the second queue, and the forwarding rate of the second queue is higher than that of the third queue; Formulate a data packet forwarding rule based on the node type of the distributed network node, so as to send the data packet sent by the distributed network node to the corresponding queue for forwarding based on the data packet forwarding rule; wherein the data packet forwarding rule is set to: If the distributed network node is a communication node, sending the data packet sent by the computing node to the first queue for forwarding; If the distributed network node is a communication computing node, sending the data packet sent by the communication computing node to the second queue for forwarding; If the distributed network node is a computing node, the data packet sent by the communication node is sent to the third queue for forwarding.

9. A distributed computing and communication integrated scheduling system based on SDN, characterized in that: Applicable to virtual servers, including: A POST request acquisition module, used to acquire a POST request sent by a distributed network node through an OpenFlow switch; the distributed network node includes a communication node, a computing node, and a communication computing node; the communication node is a node with network communication and forwarding functions, the computing node is a node with computing functions, and the communication computing node is a node with computing functions, network communication and forwarding functions; A flow table sending module, used to send a target command corresponding to the POST request to a corresponding SDN controller, so that the SDN controller sends flow table information to the OpenFlow switch based on the target command; A request response module, configured to complete a response operation to the POST request based on the flow table information through the OpenFlow switch; Among them, the OpenFlow switch is connected to the distributed network nodes to form a distributed computing and communication integrated network, the virtual server is used to monitor the network dynamics of each distributed network node in the distributed computing and communication integrated network, and the virtual server is connected to the SDN controller, and the number of the SDN controllers is one or more.

10. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the SDN-based distributed computing and communication integrated scheduling method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the SDN-based distributed computing and communication integrated scheduling method as described in any one of claims 1 to 8 are implemented.