[go: up one dir, main page]

WO2019100355A1 - Network stream transmission control method, and relevant apparatus and device - Google Patents

Network stream transmission control method, and relevant apparatus and device Download PDF

Info

Publication number
WO2019100355A1
WO2019100355A1 PCT/CN2017/112983 CN2017112983W WO2019100355A1 WO 2019100355 A1 WO2019100355 A1 WO 2019100355A1 CN 2017112983 W CN2017112983 W CN 2017112983W WO 2019100355 A1 WO2019100355 A1 WO 2019100355A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
network
switching device
routing rule
coincidence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2017/112983
Other languages
French (fr)
Chinese (zh)
Inventor
徐冠
李艳华
叶荣标
程捷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2017/112983 priority Critical patent/WO2019100355A1/en
Priority to CN201780097201.XA priority patent/CN111373697B/en
Publication of WO2019100355A1 publication Critical patent/WO2019100355A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing

Definitions

  • the present application relates to the field of information technology, and realizes network transmission of a network stream by selecting a routing rule with the smallest energy consumption increment.
  • IDC Internet Data Center
  • PUE Power Usage Effectiveness
  • a network control device in a data center network calculates a network node from a source node to a target node.
  • a plurality of alternative routing rules that are available at the current time, and sequentially determine the working state of the switch at each current routing rule at the current time, and select an available routing rule of the switch that has the most busy state at the current time.
  • the switch in the idle state can sleep, when the network flow enters the switch in the idle state, the switch in the idle state needs to end the sleep and switch to the busy state, which causes additional power consumption. increase.
  • a switch that is already busy will not perform the above state switching, and thus will not cause an increase in additional power consumption.
  • the prior art selects the available routing rules of the switch that has the most busy state at the current moment, and the source node sends the network flow to the target node through the selected available routing rule, which can minimize the switch from the dormant state to the busy state.
  • the quantity which reduces the energy consumption, saves energy.
  • the prior art only considers the routing rules available at the current moment, so the real-time computing capability of the network control device is required to be high, and the same routing rule may not be applicable to the same network flow at the next moment due to the real-time change of the network state.
  • the routing rules need to be calculated repeatedly to increase the computational complexity.
  • the present application discloses a network stream transmission control method and related device and device, and selects a routing rule with a minimum energy consumption increment and a start time according to the working state of the switch on the alternate routing rule and the working state of the port of the switch, thereby avoiding Repeated calculation of routing rules occurs and reduces the need for real-time computing power.
  • the present application provides a network stream transmission control method, including the following steps: receiving a route request sent by a sender, where the route request includes a destination address and a source address of a network stream that needs to be transmitted in the network, and the source address is sent.
  • the network address of the end, the destination address is the network address of the receiving end of the network stream, and the destination address and source in the network are calculated.
  • the shortest N alternative routing rules between the addresses based on the working status of the switching devices on the N alternate routing rules in different time periods and the working state of the ports of the switching device in different time periods, in N alternative routing rules Select the target routing rule with the smallest energy consumption increment and determine the sending time.
  • the number of switching devices in the busy state on the target routing rule is the largest, and the target port of each switch on the target routing rule is in the middle.
  • the target port is a port to be used by the network stream, and the target routing rule and the sending time are sent to the sending end, so that the sending end sends the network stream to the receiving end through the target routing rule at the sending time.
  • the target routing rule having the smallest energy consumption increment and the sending time thereof are selected according to the working state of the switch on the shortest alternate routing rule and the working state of the port of the switch, and waiting to send The network stream is sent at a time, so that under the premise of ensuring energy saving, the situation of repeatedly calculating routing rules is avoided, and the requirement of real-time computing capability is reduced.
  • the working states of the switching devices on the N alternate routing rules in different time periods and the working states of the ports of the switching device in different time periods are in N options.
  • the step of selecting the target routing rule with the smallest energy consumption increment and determining the sending time in the routing rule includes the following sub-steps: obtaining N candidate routes according to the working state of the switching device on the N alternate routing rules in different time segments.
  • the busy time period and the idle time period of each switching device on each candidate routing rule in the rule, the busy time period is a time period in which the switching device is in a busy state, and the idle time period is a time period in which the switching device is in an idle state.
  • the working state selects a target coincidence period in a plurality of coincidence periods, wherein the target coincidence period has The switching device with the largest number is in a busy state, and the target port in each switching device on the alternate routing rule corresponding to the target coincidence time in the target coincidence period is in an idle state, and the candidate corresponding to the target coincidence period is selected.
  • the routing rule is used as the target routing rule with the smallest energy consumption increment, and the sending time is selected within the target coincidence time period.
  • the target overlapping time period is selected in multiple overlapping time periods, and the link state in the future time is fully considered, and the optimal routing rule is selected.
  • the time dimension is introduced and considered together, it can ensure that the calculation of the routing rule is repeated under the premise of achieving maximum energy saving.
  • the routing request further includes a size of the network stream
  • selecting a sending moment in the target coincidence period includes:
  • t is the central time of the target coincidence period
  • f is the size of the network flow
  • B is the bandwidth of the switching device on the target routing rule
  • t 0 is the transmission time
  • the routing request further includes a deadline, and the busy time period and the idle time period are both before the deadline.
  • the deadline is the latest transmission time that the network stream can accept, and the busy time period and the idle time period are set to be before the deadline, thereby ensuring the transmission of the network flow acquired according to the busy time period and the idle time period in the subsequent steps. It can be located before the latest transmission time that the network stream can accept.
  • the application provides a network control apparatus, including: a receiving module, configured to receive a routing request sent by a sending end, where the routing request includes a destination address and a source address of a network flow that needs to be transmitted in the network, where the source address is The network address of the sender, the destination address is the network address of the receiving end of the network stream, and the alternative routing rule calculation module is used to calculate the shortest N alternative routing rules between the destination address and the source address in the network, and the target routing rule selection module.
  • a receiving module configured to receive a routing request sent by a sending end, where the routing request includes a destination address and a source address of a network flow that needs to be transmitted in the network, where the source address is The network address of the sender, the destination address is the network address of the receiving end of the network stream, and the alternative routing rule calculation module is used to calculate the shortest N alternative routing rules between the destination address and the source address in the network, and the target routing rule selection module.
  • the rule determines the sending time, wherein, at the sending time, the number of switching devices in the busy state on the target routing rule is the largest, and the target port of each switch on the target routing rule is in an idle state, and the target port needs to be used for the network flow.
  • Port, sending module used to send the target routing rules and sending time To the transmitting end, so that the transmission time of the transmission end transmits the network stream to the receiving end through the target routing rules.
  • the implementation of the second aspect or the second aspect is the device implementation corresponding to the first aspect or the implementation manner of any one of the first aspect, and the description in any one of the first aspect or the first aspect is applicable to the second aspect. Or any implementation of the second aspect, and details are not described herein again.
  • the present application provides a host, including a memory and a processor, the memory storing program instructions, and the processor running the program instructions to perform the network streaming control method provided by the first aspect or any one of the first aspects.
  • the present application provides a storage medium in which program code is stored, and when the program code is run by a storage controller, the storage controller performs any of the foregoing first aspect or the first aspect.
  • the network streaming control method provided by the method.
  • the storage medium includes, but is not limited to, a read only memory, a random access memory, a flash memory, an HDD, or an SSD.
  • the present application provides a computer program product, the computer program product comprising program code, when the computer program product is executed by a storage controller, the memory controller performs any of the foregoing first aspect or the first aspect A network streaming control method provided by an implementation manner.
  • the computer program product may be a software installation package, and if the network stream transmission control method provided by the foregoing first aspect or any one of the foregoing aspects is required, the computer program product may be downloaded to the storage controller and The computer program product is run on the storage controller.
  • FIG. 1 is a schematic structural diagram of a network system according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a network system according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a network stream transmission control method according to an embodiment of the present invention.
  • FIG. 4 is another schematic structural diagram of a network system according to an embodiment of the present invention.
  • FIG. 5 is a sub-flow diagram of a network stream transmission control method according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an operation state of a switching device on an alternative routing rule 1 according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of an operation state of a switching device on an alternative routing rule 2 according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a coincidence time period on an alternative routing rule 1 according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a coincidence time period on an alternative routing rule 2 according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a central timing of a target coincidence time period according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of an apparatus of a network controller according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a device of a host according to an embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a network system according to an embodiment of the present invention.
  • a network system according to an embodiment of the present invention includes a network controller 100, a transmitting end 101, a receiving end 102, and a network 20.
  • the network controller 100, the transmitting end 101, and the receiving end 102 respectively access the network 20.
  • the network 20 is a data center network, and the data center network has a fat-tree type network structure, and the fat-tree type network structure is composed of the same type of switching device, and all of the switching devices The ports all have the same specifications, and the uplink and downlink bandwidths are the same.
  • the number of network flows transmitted at the same time in any routing rule of the network 20 is not greater than 1.
  • FIG. 2 is a schematic diagram of a specific structure of a network system according to an embodiment of the present invention.
  • a plurality of switching devices (including switching devices 1 to 6) form a data center network, wherein each switching device One port has the same specifications and the uplink and downlink bandwidths are the same.
  • the servers 100 to 105 are respectively connected to the switching devices 1 to 6, and the server 100 can be implemented as the network controller shown in FIG. 1.
  • the network controller 100 is, for example, an SDN controller, and the server 101 can be implemented as the transmission shown in FIG.
  • the server 102 can be implemented as the receiving end shown in FIG. 1.
  • the network controller 100 is responsible for monitoring network status, configuring a routing table on each switching device, deploying routing rules, and scheduling the transmission sequence of the network flows. During network initialization, the network controller 100 configures a default routing table for all switching devices in the network to support routing of network flows. In addition, the transmitting end 101 pre-records the network address of the network controller 100, and the network controller 100 allows the transmitting end 101 to actively initiate a resource request and reserve a network path to the network controller 100.
  • the network system shown in FIG. 2 is taken as an example for specific description. It is worth noting that in other examples, other types of network systems may also be employed.
  • both the switching device and the port are regarded as the energy consumption component of the network 20, and the switching device and the port have a fixed power consumption.
  • the switching device When any port of the switching device is in the working state, the switching device is in the working state.
  • the switching device When all the ports of the switching device are in the idle state, the switching device enters the idle state, that is, the switching device can sleep, so that the sleeping switching device is working.
  • the switching device of the state can generate lower power consumption. Therefore, in the embodiment of the present invention, a Sw (t) represents the state of the switching device, and a Po (t) represents the state of the port, where t represents the time from the current time to the future time. , P O represents the port, and S W represents the switching device.
  • the network energy consumption increment comes from the idle nodes and ports that need to be opened on the alternate routing rules.
  • the mathematical model of network energy consumption increment is as follows:
  • f is the data size of the network stream to be transmitted
  • t 0 is the transmission time of the network flow on the alternate routing rule
  • P sw is the energy consumption of a switching device while in a busy state
  • P po represents a switching device The energy consumption of the port when it is busy
  • P sw and P po are fixed values, which can be obtained by measuring or querying the device manual.
  • the target port of the switching device on the alternate routing rule that defines the minimum energy consumption increment must remain idle for the period of time t 0 to t 0 +f/B.
  • the network streaming control method disclosed below is proposed based on the above principles.
  • FIG. 3 is a flowchart of a method for controlling network stream transmission according to an embodiment of the present invention. As shown in FIG. 3, the network stream transmission control method specifically includes the following steps:
  • Step S101 The network controller 100 receives the routing request sent by the sending end 101, where the routing request includes the destination address and the source address of the network stream that needs to be transmitted in the network 20, and the source address is the network address of the sending end 101, and the destination address is the network.
  • the network address of the receiving end 102 of the stream is the routing request sent by the sending end 101, where the routing request includes the destination address and the source address of the network stream that needs to be transmitted in the network 20, and the source address is the network address of the sending end 101, and the destination address is the network.
  • the network address of the receiving end 102 of the stream is the routing request sent by the sending end 101, where the routing request includes the destination address and the source address of the network stream that needs to be transmitted in the network 20, and the source address is the network address of the sending end 101, and the destination address is the network.
  • the network address of the receiving end 102 of the stream is the routing request sent by the sending end 101, where the routing request includes the destination address and the source address of the network stream that needs to
  • Step S102 The network controller 100 calculates the shortest N alternative routing rules between the destination address and the source address in the network 20.
  • FIG. 4 is another schematic structural diagram of a network system according to an embodiment of the present invention, which specifically shows a port connection manner of the switching device of FIG. 2, as shown in FIG.
  • switching device 1 comprises ports 01 to 04
  • switching device 2 comprises ports 11 to 14
  • switching device 3 comprises ports 21 to 24
  • switching device 4 comprises ports 31 to 36
  • switching device 5 comprises ports 51 to 54
  • switching devices 6 includes ports 61 to 64
  • each port of each switching device has an uplink and downlink bandwidth of 1000 Mbps.
  • the network controller 100 has set up 7 network flows in the switching devices involved in the N candidate routing rules at the current time, namely network flows f1, f2, f3, f4, f5, f6, and f7, respectively.
  • the size of the stream f1 is 300 Mb
  • the size of the network stream f2 is 400 Mb
  • the size of the network stream f3 is 300 Mb
  • the size of the network stream f4 is 100 Mb
  • the size of the network stream f5 is 300 Mb
  • the size of the network stream f6 is 500 Mb
  • the network stream f7 The size is 400Mb.
  • the transmission path of the network flow f1 is: the transmitting end 101, the port 01, the port 02, the port 11, the port 12, the port 21, the port 22, the port 31, the port 32, and the receiving end 102.
  • the transmission path of the network stream f2 is: port 14, port 13.
  • the transmission path of the network stream f3 is: port 24, port 23.
  • the transmission path of the network stream f4 is: port 03, port 04, port 04, port 51, port 52, port 61, port 62, port 34, port 33.
  • the transmission path of the network stream f5 is: port 54, port 53.
  • the transmission path of the network stream f6 is: port 64, port 63.
  • the transmission path of the network stream f7 is: port 36, port 35.
  • the network controller 100 After receiving the routing request, the network controller 100 calculates the shortest N alternative routing rules between the destination address and the source address, and detects the working states of the switching devices involved in the N candidate routing rules that have been set. Specifically, the network controller 100 acquires the transmission paths of the network flows f1 to f7, and the size of each network flow, wherein the alternative routing rule refers to the shortest path between the destination address and the source address, and in the shortest path, involved The number of switching devices is the least.
  • the alternative routing rule does not consider whether the shortest path in the current time is occupied by other flows, which is only the path with the least number of switching devices involved.
  • the network controller 100 obtains the two shortest alternative routing rules between the sending end 101 and the receiving end 102 through calculation, specifically:
  • Switches 1 switching device 1 (via port 01 and port 02), switching device 2 (via port 11 and port 12), switching device 3 (via port 21 and port 22), switching device 4 (via port 31 and Port 32).
  • Switches 1 via port 01 and port 04
  • switching device 5 via port 51 and port 52
  • switching device 6 via port 61 and port 62
  • switching device 4 via port 34 and Port 32.
  • the port involved in the alternative routing rule is called a target port, and the target port is a port that the network stream needs to use.
  • the target ports of the alternative routing rule 1 are port 01, port 02, port 11, port 12, port 21, port 22, port 31, and port 32.
  • the target ports of the alternative routing rule 2 are port 01, port 04, port 51, port 52, port 61, port 62, port 34, and port 32.
  • Step S103 The network controller 100 works according to the switching devices on the N alternate routing rules in different time periods.
  • the state and the working state of the port of the switching device in different time periods select the target routing rule with the smallest energy consumption increment among the N alternative routing rules, and determine the sending time, where the target routing rule is busy at the sending time.
  • the number of switching devices is the largest, and the destination port of each switch on the target routing rule is idle.
  • FIG. 5 is a sub-flow diagram of a network stream transmission control method according to an embodiment of the present invention.
  • the step S103 is specifically illustrated. As shown in FIG. 5, step S103 specifically includes the following steps. :
  • Step S1031 The network controller 100 acquires a busy time period of each switching device on each of the N alternative routing rules according to the working state of the switching device on the N candidate routing rules in different time segments. And the idle time period, the busy time period is a time period in which the switching device is in a busy state, and the idle time period is a time period in which the switching device is in an idle state.
  • the network controller 100 calculates the working states of the switching devices on the alternate routing rule 1 and the alternative routing rule 2 at different time periods.
  • the network stream f1 and the network stream f4 flow through the switching device 1, wherein the duration of f1 is 300 ms and the duration of f4 is 100 ms, so the busy period of the switching device 1 is 0-300s.
  • the network flow f1 and the network flow f2 flow through the switching device 2, wherein the duration of f1 is 300 ms and the duration of f2 is 400 ms, so the busy period of the switching device 2 is 0-400 s.
  • the network flow f1 and the network flow f3 flow through the switching device 3, wherein the duration of f1 is 300 ms and the duration of f3 is 300 ms, so the busy period of the switching device 3 is 0-300 s.
  • the network flow f1, the network flow f4 and the network flow f7 flow through the switching device 4, wherein the duration of f1 is 300 ms, the duration of f4 is 100 ms, and the duration of f7 is 400 ms, so that the switching device 4 is busy
  • the time period is 0-400s.
  • the network flow f4 and the network flow f5 flow through the switching device 5, wherein the duration of f4 is 100 ms and the duration of f5 is 300 ms, so the busy period of the switching device 5 is 0-300 s.
  • the network flow f4 and the network flow f6 flow through the switching device 6, wherein the duration of f4 is 100 ms and the duration of f6 is 300 ms, so the busy period of the switching device 5 is 0-300 s.
  • FIG. 6 is a schematic diagram showing the working state of the switching device on the alternative routing rule 1 according to the embodiment of the present invention
  • FIG. 7 is an exchange on the alternative routing rule 2 according to the embodiment of the present invention.
  • the abscissa indicates the switching device
  • the ordinate indicates time
  • the busy period of the switching device 1 and the switching device 3 are both 0-300 ms
  • the busy periods of the switching device 2 and the switching device 4 are both 0-400 ms.
  • the abscissa represents the switching device, the ordinate represents time, the switching device 1 is 0-300 ms, the busy period of the switching device 4 and the switching device 5 is 0-400 ms, and the busy period of the switching device 6 is 0- 500ms.
  • the sending end 101 may also set the cutoff time in the routing request, the cutoff time is the latest sending time that the network flow f can accept, the busy time period acquired by the network controller 100 in this step, and The idle time periods are all located before the deadline, so that the transmission time of the network flow f acquired according to the busy time period and the idle time period in the subsequent steps can be located before the latest transmission time that the network flow f can accept.
  • Step S1032 The network controller 100 determines a plurality of coincidence time periods of each candidate routing rule according to the busy time period and the idle time period, wherein at least one switching device is in a busy state in each coincidence time period.
  • FIG. 8 is a schematic diagram of a coincidence time period on an alternative routing rule 1 according to an embodiment of the present invention
  • FIG. 9 is an alternative routing rule 2 according to an embodiment of the present invention. Schematic diagram of the coincidence time period.
  • the coincidence time period 1 is 0-300 ms, and the coincidence time period 2 is 300-400 ms.
  • the switching devices 1 to 4 are all in a busy state.
  • the switching device 2 and the switching device 4 are in a busy state, and the switching device 1 and the switching device 3 are in an idle state.
  • the coincidence time period 3 is 0-300 ms
  • the coincidence time period 4 is 300 ms-400 ms
  • the coincidence time period 5 is 400 ms-500 ms.
  • the switching device 1, 5, 6, and 4 are all in a busy state.
  • the switching devices 5, 6, and 4 are all in a busy state, and the switching device 1 is in an idle state.
  • the switching device 6 is busy. State, switching devices 1, 5, 4 are in an idle state.
  • At least one switching device is in a busy state in each coincidence period, and the coincidence period is distinguished by a change in the working state of any switching device on the alternate routing rule.
  • the coincidence period 1 ends, and the coincidence period 2 starts.
  • the coincidence period 3 ends, and the coincidence period 4 starts.
  • the switching device 5 and the switching device 4 switch from the busy state to the idle state at the 400th ms, the coincidence period 4 ends, and the coincidence period 5 starts.
  • the coincidence period 5 ends.
  • Step S1033 The network controller 100 selects a target coincidence time period in a plurality of coincidence time periods according to the working state of the port of the switching device in different time periods, wherein the switching device with the largest number of the switching devices in the target coincidence time period is in a busy state. And the target port in each switching device on the alternate routing rule corresponding to the target coincidence time in the target coincidence period is in an idle state.
  • the network controller 100 selects the target coincidence period in the coincidence period 1-5.
  • the network controller 100 determines that the coincidence period 1 has four switching devices in a busy state, and the coincidence period 3 has The four switching devices are in a busy state.
  • the coincidence period 4 three switches are in a busy state.
  • the coincidence time period 2 two switches are in a busy state, and one switch in the coincidence time period 5 has a busy state.
  • the coincidence period 1 (0-300 ms), the target ports 01 and 02 of the switching device 1, the target ports 11 and 12 of the switching device 2, the target ports 21 and 22 of the switching device 3, and the target port 31 of the switching device 4
  • the network flow f1 exists in the sum 32, and therefore, the coincidence time period 1 has the target port in a busy state, so the coincidence time period 1 does not meet the requirement.
  • the target ports 01 and 02 of the switching device 1 and the target ports 31 and 32 of the switching device 4 have the network stream f1, and therefore, there is a target in the coincidence period 3
  • the port is busy
  • the state is too busy, so the coincidence time period 3 does not meet the requirements.
  • the switching device 1 In the coincidence period 4 (300ms-400ms), the switching device 1 is in an idle state, the switching devices 5, 6, 4 are in a busy state, and since the duration of f4 is 0-100 ms, in the switching device 5, the target port 51 and 52 are idle at 300ms-400ms, and in the switching device 6, the target ports 61 and 62 are idle at 300ms-400ms. In the switching device 4, the target port 34 is idle at 300ms - 400ms, and since the duration of f1 is 0-300ms, the target port 32 is idle at 300ms - 400ms.
  • the switching device having the largest number (there are 3 switching devices 5, 6, 4) in the coincidence period 4 is in a busy state, and on the alternative routing rule 2 corresponding to the coincidence period 4 in the coincidence period 4
  • the target ports in each switching device (switching devices 1, 5, 6, 4) are all idle.
  • the network controller 100 selects the coincidence period 4 as the target coincidence period.
  • Step S1034 The network controller 100 uses the alternative routing rule corresponding to the target coincidence time period as an alternative routing rule with the smallest energy consumption increment, and selects the sending time in the target coincidence time period.
  • the network controller 100 selects the alternative routing rule 2 corresponding to the target coincidence period 4 as the alternative routing rule with the smallest energy consumption increment, and selects the sending moment in the target coincidence period 4 (300ms-400ms). .
  • the network controller 100 may set the center time and target of the transmission period f/B of the network stream f.
  • the center time of the coincidence period of 300ms-400ms is set to be consistent, and therefore, the network controller 100 can acquire the selection of the transmission time in the target coincidence period according to the following equation:
  • t is the central moment of the target coincidence time period
  • f is the size of the network flow
  • B is the bandwidth of the switching device on the target routing rule
  • t 0 is the transmission time, wherein the size f of the network flow can be set by the transmitting end 101 in the routing request
  • the network controller 100 can obtain f from the routing request.
  • FIG. 10 is a schematic diagram of a central timing of a target coincidence time period according to an embodiment of the present invention.
  • the alternative routing rule with the smallest energy consumption increment is the alternative routing rule 2, and the sending time is 300 ms.
  • Step S104 The network controller 100 sends the target routing rule and the sending moment to the sending end 101, so that the sending end 101 sends the network stream to the receiving end 102 through the target routing rule at the sending moment.
  • the transmitting end 101 waits 300 ms after the current time, passes through the switching device 1 (via port 01 and port 04), the switching device 5 (via port 51 and port 52), and the switching device 6 (via port 61 and port 62)
  • the switching device 4 (via port 34 and port 32) sends the network stream f to the receiving end 102.
  • the switching devices 5, 6, 4 are in a busy state, and the destination ports of the switching devices 1, 5, 6, 4 are all idle. State, so the network flow f can be transmitted from the transmitting end 101 to the receiving end 102 without blocking in the 300th to 400ms, and during the transmission, only the switching device 1 needs to be switched from the idle state to the busy state, involving only one exchange. The energy consumption of the device is increased, thus greatly reducing energy consumption.
  • the target routing rule having the smallest energy consumption increment and the sending time thereof are selected according to the working state of the switch on the shortest alternate routing rule and the working state of the port of the switch, and waiting to send The network stream is sent at a time, so that under the premise of ensuring energy saving, the situation of repeatedly calculating routing rules is avoided, and the requirement of real-time computing capability is reduced.
  • the network controller 100 sets the coincidence factor threshold ⁇ 0 according to the environment of the network 20, and the coincidence factor threshold ⁇ 0 may be, for example, 0.1, and the coincidence factor includes a double criterion of the coincidence duration and the number of coincidences, and the plurality of coincidence factors ⁇ 1 to ⁇ 5, the network
  • the order in which the controller 100 selects and traverses the coincidence time period is: first traversing the coincidence factor with the highest number of coincidences and the coincidence time is greater than f/2B, and then reducing the number of coincidence times, continuing to traverse the coincidence factor satisfying the coincidence duration until it is lowered to Refers to the coincidence factor threshold ⁇ 0.
  • the larger the coincidence factor threshold ⁇ 0 is, the less the traversal time period is, the faster the traversal is completed, and the more time periods are skipped.
  • the tradeoff between the solution precision and the speed is achieved by setting the coincidence factor threshold ⁇ 0.
  • FIG. 11 is a schematic structural diagram of a device of a network controller according to an embodiment of the present invention.
  • the network controller 100 includes:
  • the receiving module 201 is configured to receive a routing request sent by the sending end 101, where the routing request includes a destination address and a source address of the network stream that needs to be transmitted in the network 20, the source address is a network address of the sending end 101, and the destination address is a network stream.
  • the candidate routing rule calculation module 201 is configured to calculate the shortest N candidate routing rules between the destination address and the source address in the network 20;
  • the target routing rule selection module 202 is configured to select, among the N candidate routing rules, according to the working states of the switching devices on the N candidate routing rules in different time periods and the working states of the ports of the switching device in different time segments.
  • the target routing rule with the smallest increment is used to determine the sending time, wherein, at the sending time, the number of switching devices that are busy in the target routing rule is the largest, and the target port of each switch on the target routing rule is idle.
  • the target port is the port that the network stream needs to use;
  • the sending module 204 is configured to send the target routing rule and the sending moment to the sending end 101, so that the sending end 101 sends the network flow to the receiving end 102 through the target routing rule at the sending moment.
  • the target routing rule selection module 202 is configured to: obtain, according to the working state of the switching device on the N candidate routing rules, the candidate state in each of the N alternative routing rules.
  • the busy time period and the idle time period of each switching device, the busy time period is a time period in which the switching device is in a busy state, and the idle time period is a time period in which the switching device is in an idle state; each of the busy time period and the idle time period is determined according to the busy time period and the idle time period.
  • a plurality of coincidence time periods of the alternate routing rule wherein at least one switching device is in a busy state in each coincidence time period; selecting a target in the multiple overlapping time periods according to the working state of the port of the switching device in different time periods a coincidence time period, wherein the switching device having the largest number of switching devices in the target coincidence time period is in a busy state, and the target port in each switching device on the alternate routing rule corresponding to the target coincidence time in the target coincidence time period is In the idle state; the alternate routing rule corresponding to the target coincidence time period is used as the energy consumption increment.
  • Target routing rules, and select the sending time period coincides with the target.
  • the target routing rule selection module 202 is specifically configured to:
  • t is the central time of the target coincidence period
  • f is the size of the network flow
  • B is the bandwidth of the switching device on the target routing rule
  • t0 is the transmission time
  • the routing request further includes a deadline, and the busy time period and the idle time period are both before the deadline.
  • the number of network flows transmitted at the same time in any routing rule of the network 20 is not greater than one.
  • the target routing rule having the smallest energy consumption increment and the sending time thereof are selected according to the working state of the switch on the shortest alternate routing rule and the working state of the port of the switch, and waiting to send The network stream is sent at a time, so that under the premise of ensuring energy saving, the situation of repeatedly calculating routing rules is avoided, and the requirement of real-time computing capability is reduced.
  • FIG. 12 is a schematic structural diagram of a device according to an embodiment of the present invention.
  • the host 1000 includes a bus 304, a network card 302, a memory 303, and processing.
  • the memory 301 stores program instructions, and the processor 301 runs program instructions to perform the network streaming control method described above.
  • the switching device may include a switch and a router.
  • any of the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as the cells may or may not be Physical units can be located in one place or distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the connection relationship between the modules indicates that there is a communication connection between them, and specifically, one or more communication buses or signal lines can be realized.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, dedicated hardware, dedicated CPU, dedicated memory, dedicated memory, Special components and so on.
  • functions performed by computer programs can be easily implemented with the corresponding hardware, and the specific hardware structure used to implement the same function can be various, such as analog circuits, digital circuits, or dedicated circuits. Circuits, etc.
  • software program implementation is a better implementation in more cases.
  • the technical solution of the present invention which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • U disk mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., including a number of commands to make a computer device (may be A personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
  • a computer device may be A personal computer, server, or network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed in the embodiments of the present application are a network stream transmission control method, and a relevant apparatus and device, wherein the network stream transmission control method comprises: receiving a routing request sent from a sending end, calculating the shortest N alternative routing rules between a destination address and a source address in a network, selecting a target routing rule with the smallest energy consumption from the N alternative routing rules, and determining a sending moment, according to operating states of a switching device on the N alternative routing rules in different time periods and working states of a port of the switching device in the different time periods, and then sending the target routing rule and a starting moment to the sending end. By means of the solution, the case of repeatedly calculating routing rules can be avoided, and the requirement for a real-time calculation capacity is decreased.

Description

网络流传输控制方法及相关装置和设备Network stream transmission control method and related device and device 技术领域Technical field

本申请涉及信息技术领域,通过选择能耗增量最小的路由规则来实现网络流的网络传输。The present application relates to the field of information technology, and realizes network transmission of a network stream by selecting a routing rule with the smallest energy consumption increment.

背景技术Background technique

2016年全球互联网数据中心(Internet Data Center,IDC)整体市场规模达到451.9亿美元,相比2015年继续保持稳定增长,其中促进IDC市场增速提升的主要原因是伴随着移动互联网及云计算的高速发展和广泛应用而来的数据存储、计算以及网络流量的大幅度增加。In 2016, the overall market size of the Internet Data Center (IDC) reached US$45.19 billion, which continued to grow steadily compared to 2015. The main reason for the increase in IDC market growth was the high speed of mobile Internet and cloud computing. Development and widespread application of data storage, computing and a significant increase in network traffic.

制约数据中心的一大因素是数据中心能效,电源使用效率(Power Usage Effectiveness,PUE)是数据中心能效的度量衡,定义为总能耗与IT能耗的比值。在美国,数据中心PUE的平均值已达1.9,先进数据中心PUE已达到1.2以下。在中国,数据中心PUE的平均值为2.2。近年来,政府对于数据中心的要求越来越高,北京市经济信息化委明文禁止新增PUE高于1.5的数据中心。A major factor constraining the data center is data center energy efficiency. Power Usage Effectiveness (PUE) is a measure of data center energy efficiency, defined as the ratio of total energy consumption to IT energy consumption. In the United States, the average data center PUE has reached 1.9, and the advanced data center PUE has reached 1.2 or less. In China, the average value of data center PUE is 2.2. In recent years, the government's requirements for data centers are getting higher and higher. The Beijing Municipal Economic Information Commission has banned the addition of data centers with PUEs higher than 1.5.

为了节约数据中心网络的能耗,在现有技术中,数据中心网络中的网络控制设备,例如软件定义网络(Software Defined Network,SDN)控制器,为网络流计算出从源节点至目标节点在当前时刻可用的多条备选路由规则,并依次判断每条备选路由规则上的交换机在当前时刻的工作状态,选出当前时刻具有最多处于忙碌状态的交换机的可用路由规则。在现有技术中,由于处于空闲状态的交换机可进行休眠,在网络流进入处于空闲状态的交换机时,处于空闲状态的交换机需要结束休眠,并切换至忙碌状态,此时会造成额外能耗的增加。而本来就处于忙碌状态的交换机则不会进行上述状态切换,因而不会造成额外能耗的增加。现有技术通过选出当前时刻具有最多处于忙碌状态的交换机的可用路由规则,源节点经选择的可用路由规则将网络流发送至目标节点,可最大限度地减少从休眠状态进入忙碌状态的交换机的数量,从而减少能耗增加,可节约能耗。In order to save power consumption of the data center network, in the prior art, a network control device in a data center network, such as a Software Defined Network (SDN) controller, calculates a network node from a source node to a target node. A plurality of alternative routing rules that are available at the current time, and sequentially determine the working state of the switch at each current routing rule at the current time, and select an available routing rule of the switch that has the most busy state at the current time. In the prior art, since the switch in the idle state can sleep, when the network flow enters the switch in the idle state, the switch in the idle state needs to end the sleep and switch to the busy state, which causes additional power consumption. increase. A switch that is already busy will not perform the above state switching, and thus will not cause an increase in additional power consumption. The prior art selects the available routing rules of the switch that has the most busy state at the current moment, and the source node sends the network flow to the target node through the selected available routing rule, which can minimize the switch from the dormant state to the busy state. The quantity, which reduces the energy consumption, saves energy.

但是,现有技术只考虑当前时刻可用的路由规则,因此对网络控制设备的实时计算能力要求较高,并且由于网络状态实时变化,在下一时刻相同的路由规则针对相同的网络流可能不适用,需要重复计算路由规则,从而增加计算的复杂度。However, the prior art only considers the routing rules available at the current moment, so the real-time computing capability of the network control device is required to be high, and the same routing rule may not be applicable to the same network flow at the next moment due to the real-time change of the network state. The routing rules need to be calculated repeatedly to increase the computational complexity.

发明内容Summary of the invention

本申请公开了一种网络流传输控制方法及相关装置和设备,根据备选路由规则上的交换机的工作状态和交换机的端口的工作状态选择具有能耗增量最小的路由规则和开始时刻,避免重复计算路由规则的情况发生,并降低实时计算能力的要求。The present application discloses a network stream transmission control method and related device and device, and selects a routing rule with a minimum energy consumption increment and a start time according to the working state of the switch on the alternate routing rule and the working state of the port of the switch, thereby avoiding Repeated calculation of routing rules occurs and reduces the need for real-time computing power.

第一方面,本申请提供一种网络流传输控制方法,包括以下步骤:接收发送端发送的路由请求,路由请求包括需要在网络中进行传输的网络流的目的地址以及源地址,源地址为发送端的网络地址,目的地址为网络流的接收端的网络地址,计算网络中目的地址和源 地址之间最短的N个备选路由规则,根据N个备选路由规则上的交换设备在不同时间段的工作状态以及交换设备的端口在不同时间段的工作状态,在N个备选路由规则中选择能耗增量最小的目标路由规则并确定发送时刻,其中,在发送时刻,目标路由规则上处于忙碌状态的交换设备数量最多,并且在目标路由规则上的每一交换机的目标端口均处于空闲状态,目标端口为网络流需要使用的端口,将目标路由规则和发送时刻发送至发送端,以使得发送端在发送时刻通过目标路由规则将网络流发送至接收端。In a first aspect, the present application provides a network stream transmission control method, including the following steps: receiving a route request sent by a sender, where the route request includes a destination address and a source address of a network stream that needs to be transmitted in the network, and the source address is sent. The network address of the end, the destination address is the network address of the receiving end of the network stream, and the destination address and source in the network are calculated. The shortest N alternative routing rules between the addresses, based on the working status of the switching devices on the N alternate routing rules in different time periods and the working state of the ports of the switching device in different time periods, in N alternative routing rules Select the target routing rule with the smallest energy consumption increment and determine the sending time. At the sending time, the number of switching devices in the busy state on the target routing rule is the largest, and the target port of each switch on the target routing rule is in the middle. In the idle state, the target port is a port to be used by the network stream, and the target routing rule and the sending time are sent to the sending end, so that the sending end sends the network stream to the receiving end through the target routing rule at the sending time.

综上,在本发明实施例中,根据最短的备选路由规则上的交换机的工作状态和交换机的端口的工作状态选择具有能耗增量最小的目标路由规则及其发送时刻,通过等待至发送时刻才进行网络流发送,从而在保证节能的前提下,避免重复计算路由规则的情况发生,并降低实时计算能力的要求。In summary, in the embodiment of the present invention, the target routing rule having the smallest energy consumption increment and the sending time thereof are selected according to the working state of the switch on the shortest alternate routing rule and the working state of the port of the switch, and waiting to send The network stream is sent at a time, so that under the premise of ensuring energy saving, the situation of repeatedly calculating routing rules is avoided, and the requirement of real-time computing capability is reduced.

在第一方面的第一种可能的实现方式中,根据N个备选路由规则上的交换设备在不同时间段的工作状态以及交换设备的端口在不同时间段的工作状态,在N个备选路由规则中选择能耗增量最小的目标路由规则并确定发送时刻的步骤,具体包括以下子步骤:根据N个备选路由规则上的交换设备在不同时间段的工作状态获取N个备选路由规则中的每一备选路由规则上的每一交换设备的忙碌时间段和空闲时间段,忙碌时间段为交换设备处于忙碌状态的时间段,空闲时间段为交换设备处于空闲状态的时间段,根据忙碌时间段和空闲时间段确定每一备选路由规则的多个重合时间段,其中,在每一重合时间段中具有至少一个交换设备处于忙碌状态,根据交换设备的端口在不同时间段的工作状态在多个重合时间段中选择目标重合时间段,其中,在目标重合时间段中具有数量最多的交换设备处于忙碌状态,并且在目标重合时间段中与目标重合时间对应的备选路由规则上的每一交换设备中的目标端口均处于空闲状态,将目标重合时间段对应的备选路由规则作为能耗增量最小的目标路由规则,并在目标重合时间段内选择发送时刻。In a first possible implementation manner of the first aspect, the working states of the switching devices on the N alternate routing rules in different time periods and the working states of the ports of the switching device in different time periods are in N options. The step of selecting the target routing rule with the smallest energy consumption increment and determining the sending time in the routing rule includes the following sub-steps: obtaining N candidate routes according to the working state of the switching device on the N alternate routing rules in different time segments The busy time period and the idle time period of each switching device on each candidate routing rule in the rule, the busy time period is a time period in which the switching device is in a busy state, and the idle time period is a time period in which the switching device is in an idle state. Determining, according to the busy time period and the idle time period, multiple coincidence time periods of each candidate routing rule, wherein at least one switching device is in a busy state in each coincidence time period, according to the port of the switching device at different time periods The working state selects a target coincidence period in a plurality of coincidence periods, wherein the target coincidence period has The switching device with the largest number is in a busy state, and the target port in each switching device on the alternate routing rule corresponding to the target coincidence time in the target coincidence period is in an idle state, and the candidate corresponding to the target coincidence period is selected. The routing rule is used as the target routing rule with the smallest energy consumption increment, and the sending time is selected within the target coincidence time period.

根据交换设备的忙碌时间段和空闲时间段,来获取多个重合时间段,在多个重合时间段中选择目标重合时间段,充分考虑了未来时刻的链路状态,在选择最佳的路由规则时,引入了时间的维度进行一并考虑,可保证实现最大限度的节能的前提下,避免重复计算路由规则的情况发生。According to the busy time period and the idle time period of the switching device, multiple overlapping time periods are acquired, and the target overlapping time period is selected in multiple overlapping time periods, and the link state in the future time is fully considered, and the optimal routing rule is selected. When the time dimension is introduced and considered together, it can ensure that the calculation of the routing rule is repeated under the premise of achieving maximum energy saving.

根据第一方面的第一种可能的实现方式,在第二种可能的实现方式中,路由请求还包括网络流的大小,在目标重合时间段内选择发送时刻,包括:According to the first possible implementation manner of the first aspect, in a second possible implementation manner, the routing request further includes a size of the network stream, and selecting a sending moment in the target coincidence period includes:

根据以下等式获取发送时刻,Get the transmission time according to the following equation,

t0=t-f/2Bt 0 =tf/2B

其中,t是目标重合时间段的中心时刻,f是网络流的大小,B是目标路由规则上的交换设备的带宽,t0是发送时刻。Where t is the central time of the target coincidence period, f is the size of the network flow, B is the bandwidth of the switching device on the target routing rule, and t 0 is the transmission time.

将网络流的传输时段f/B的中心时刻与目标重合时段的中心时刻设置为一致,可保证需要传输的网络流f的传输时段f/B与目标重合时段最大程度的重合。Setting the center time of the transmission period f/B of the network stream to be consistent with the center time of the target coincidence period ensures that the transmission period f/B of the network stream f to be transmitted coincides with the maximum degree of the target coincidence period.

根据第一方面的第一或第二种可能的实现方式,在第三种可能的实现方式中,路由请求还包括截止时间,忙碌时间段和空闲时间段均位于截止时间之前。According to the first or second possible implementation manner of the first aspect, in a third possible implementation manner, the routing request further includes a deadline, and the busy time period and the idle time period are both before the deadline.

截止时间是网络流可以接受的最迟发送时刻,将忙碌时间段和空闲时间段设置为位于截止时间之前,从而保证后续步骤中根据忙碌时间段和空闲时间段获取的网络流的发送时 刻可位于网络流可以接受的最迟发送时刻之前。The deadline is the latest transmission time that the network stream can accept, and the busy time period and the idle time period are set to be before the deadline, thereby ensuring the transmission of the network flow acquired according to the busy time period and the idle time period in the subsequent steps. It can be located before the latest transmission time that the network stream can accept.

根据第一方面以及第一方面的第一至第三种可能的实现方式中的任一者,在第四种可能的实现方式中,在网络的任一路由规则中同一时刻传输的网络流数量不大于1。According to the first aspect and any one of the first to third possible implementation manners of the first aspect, in the fourth possible implementation, the number of network flows transmitted at the same time in any routing rule of the network Not more than 1.

通过以上设置,可保证在同一链路中只有一个网络流进行传输,不会发生网络流混合传输的情况。Through the above settings, it is guaranteed that only one network stream is transmitted in the same link, and no mixed flow of network streams occurs.

第二方面,本申请提供一种网络控制装置,包括:接收模块,用于接收发送端发送的路由请求,路由请求包括需要在网络中进行传输的网络流的目的地址以及源地址,源地址为发送端的网络地址,目的地址为网络流的接收端的网络地址,备选路由规则计算模块,用于计算网络中目的地址和源地址之间最短的N个备选路由规则,目标路由规则选择模块,用于根据N个备选路由规则上的交换设备在不同时间段的工作状态以及交换设备的端口在不同时间段的工作状态,在N个备选路由规则中选择能耗增量最小的目标路由规则并确定发送时刻,其中,在发送时刻,目标路由规则上处于忙碌状态的交换设备数量最多,并且在目标路由规则上的每一交换机的目标端口均处于空闲状态,目标端口为网络流需要使用的端口,发送模块,用于将目标路由规则和发送时刻发送至发送端,以使得发送端在发送时刻通过目标路由规则将网络流发送至接收端。In a second aspect, the application provides a network control apparatus, including: a receiving module, configured to receive a routing request sent by a sending end, where the routing request includes a destination address and a source address of a network flow that needs to be transmitted in the network, where the source address is The network address of the sender, the destination address is the network address of the receiving end of the network stream, and the alternative routing rule calculation module is used to calculate the shortest N alternative routing rules between the destination address and the source address in the network, and the target routing rule selection module. For selecting the working state of the switching device on the N alternate routing rules in different time periods and the working state of the port of the switching device in different time periods, selecting the target route with the smallest energy consumption increment among the N alternative routing rules The rule determines the sending time, wherein, at the sending time, the number of switching devices in the busy state on the target routing rule is the largest, and the target port of each switch on the target routing rule is in an idle state, and the target port needs to be used for the network flow. Port, sending module, used to send the target routing rules and sending time To the transmitting end, so that the transmission time of the transmission end transmits the network stream to the receiving end through the target routing rules.

第二方面或第二方面任意一种实现方式是第一方面或第一方面任意一种实现方式对应的装置实现,第一方面或第一方面任意一种实现方式中的描述适用于第二方面或第二方面任意一种实现方式,在此不再赘述。The implementation of the second aspect or the second aspect is the device implementation corresponding to the first aspect or the implementation manner of any one of the first aspect, and the description in any one of the first aspect or the first aspect is applicable to the second aspect. Or any implementation of the second aspect, and details are not described herein again.

第三方面,本申请提供一种主机,包括存储器和处理器,存储器存储有程序指令,处理器运行程序指令以执行第一方面或第一方面任一种实现方式提供的网络流传输控制方法。In a third aspect, the present application provides a host, including a memory and a processor, the memory storing program instructions, and the processor running the program instructions to perform the network streaming control method provided by the first aspect or any one of the first aspects.

第四方面,本申请提供了一种存储介质,该存储介质中存储了程序代码,该程序代码被存储控制器运行时,该存储控制器执行前述第一方面或第一方面的任意一种实现方式提供的网络流传输控制方法。该存储介质包括但不限于只读存储器,随机访问存储器,快闪存储器、HDD或SSD。In a fourth aspect, the present application provides a storage medium in which program code is stored, and when the program code is run by a storage controller, the storage controller performs any of the foregoing first aspect or the first aspect. The network streaming control method provided by the method. The storage medium includes, but is not limited to, a read only memory, a random access memory, a flash memory, an HDD, or an SSD.

第五方面,本申请提供了一种计算机程序产品,该计算机程序产品包括程序代码,当该计算机程序产品被存储控制器执行时,该存储控制器执行前述第一方面或第一方面的任意一种实现方式提供的网络流传输控制方法。该计算机程序产品可以为一个软件安装包,在需要使用前述第一方面或第一方面的任意一种实现方式提供的网络流传输控制方法的情况下,可以下载该计算机程序产品至存储控制器并在该存储控制器上运行该计算机程序产品。In a fifth aspect, the present application provides a computer program product, the computer program product comprising program code, when the computer program product is executed by a storage controller, the memory controller performs any of the foregoing first aspect or the first aspect A network streaming control method provided by an implementation manner. The computer program product may be a software installation package, and if the network stream transmission control method provided by the foregoing first aspect or any one of the foregoing aspects is required, the computer program product may be downloaded to the storage controller and The computer program product is run on the storage controller.

附图说明DRAWINGS

图1是根据本发明实施例的网络系统的结构示意图;1 is a schematic structural diagram of a network system according to an embodiment of the present invention;

图2是根据本发明实施例的网络系统的具体结构示意图;2 is a schematic structural diagram of a network system according to an embodiment of the present invention;

图3是根据本发明实施例的网络流传输控制方法的流程图;3 is a flowchart of a network stream transmission control method according to an embodiment of the present invention;

图4是根据本发明实施例的网络系统的另一具体结构示意图;4 is another schematic structural diagram of a network system according to an embodiment of the present invention;

图5是根据本发明实施例的网络流传输控制方法的子流程图; FIG. 5 is a sub-flow diagram of a network stream transmission control method according to an embodiment of the present invention; FIG.

图6是根据本发明实施例的备选路由规则1上的交换设备的工作状态示意图;6 is a schematic diagram of an operation state of a switching device on an alternative routing rule 1 according to an embodiment of the present invention;

图7是根据本发明实施例的备选路由规则2上的交换设备的工作状态示意图;7 is a schematic diagram of an operation state of a switching device on an alternative routing rule 2 according to an embodiment of the present invention;

图8是根据本发明实施例的备选路由规则1上的重合时间段示意图;FIG. 8 is a schematic diagram of a coincidence time period on an alternative routing rule 1 according to an embodiment of the present invention; FIG.

图9是根据本发明实施例的备选路由规则2上的重合时间段示意图;FIG. 9 is a schematic diagram of a coincidence time period on an alternative routing rule 2 according to an embodiment of the present invention; FIG.

图10是根据本发明实施例的目标重合时间段的中心时刻示意图;10 is a schematic diagram of a central timing of a target coincidence time period according to an embodiment of the present invention;

图11是根据本发明实施例的网络控制器的装置结构示意图;11 is a schematic structural diagram of an apparatus of a network controller according to an embodiment of the present invention;

图12是根据本发明实施例的主机的装置结构示意图。FIG. 12 is a schematic structural diagram of a device of a host according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings. It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments.

首先请参见图1,图1是根据本发明实施例的网络系统结构示意图,如图1所示,根据本发明实施例的网络系统包括网络控制器100、发送端101、接收端102以及网络20,网络控制器100、发送端101以及接收端102分别接入网络20。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of a network system according to an embodiment of the present invention. As shown in FIG. 1 , a network system according to an embodiment of the present invention includes a network controller 100, a transmitting end 101, a receiving end 102, and a network 20. The network controller 100, the transmitting end 101, and the receiving end 102 respectively access the network 20.

在一些示例中,网络20为数据中心网络,数据中心网络具有胖树(Fat-Tree)型网络结构,该胖树(Fat-Tree)型网络结构由同一型号的交换设备组成,交换设备的所有端口均具有相同的规格,且上下行带宽相同,在网络20的任一路由规则中同一时刻传输的网络流数量不大于1。In some examples, the network 20 is a data center network, and the data center network has a fat-tree type network structure, and the fat-tree type network structure is composed of the same type of switching device, and all of the switching devices The ports all have the same specifications, and the uplink and downlink bandwidths are the same. The number of network flows transmitted at the same time in any routing rule of the network 20 is not greater than 1.

参见图2,图2是根据本发明实施例的网络系统的具体结构示意图,在图2中,多个交换设备(包括交换设备1至6)形成数据中心网络,其中,每一交换设备的每一端口均具有相同的规格,且上下行带宽相同。服务器100至105分别与交换设备1至6连接,并且,服务器100可实现为图1所示的网络控制器,网络控制器100例如为SDN控制器,服务器101可实现为图1所示的发送端,服务器102可实现为图1所示的接收端。Referring to FIG. 2, FIG. 2 is a schematic diagram of a specific structure of a network system according to an embodiment of the present invention. In FIG. 2, a plurality of switching devices (including switching devices 1 to 6) form a data center network, wherein each switching device One port has the same specifications and the uplink and downlink bandwidths are the same. The servers 100 to 105 are respectively connected to the switching devices 1 to 6, and the server 100 can be implemented as the network controller shown in FIG. 1. The network controller 100 is, for example, an SDN controller, and the server 101 can be implemented as the transmission shown in FIG. At the end, the server 102 can be implemented as the receiving end shown in FIG. 1.

值得注意的是,在本发明实施例中,网络控制器100负责监视网络状态、配置每一交换设备上的路由表、部署路由规则、以及调度网络流的发送顺序。在网络初始化时,网络控制器100为网络中的所有交换设备配置默认路由表,支持网络流的路由。另外,发送端101预先记录网络控制器100的网络地址,网络控制器100允许发送端101向网络控制器100主动发起资源请求和预约网路路径。It should be noted that in the embodiment of the present invention, the network controller 100 is responsible for monitoring network status, configuring a routing table on each switching device, deploying routing rules, and scheduling the transmission sequence of the network flows. During network initialization, the network controller 100 configures a default routing table for all switching devices in the network to support routing of network flows. In addition, the transmitting end 101 pre-records the network address of the network controller 100, and the network controller 100 allows the transmitting end 101 to actively initiate a resource request and reserve a network path to the network controller 100.

为便于描述,于下文以图2所示的网络系统为例进行具体说明,值得注意的是,在另一些示例中,也可采用其他类型的网络系统。For convenience of description, the network system shown in FIG. 2 is taken as an example for specific description. It is worth noting that in other examples, other types of network systems may also be employed.

在本发明实施例中,将交换设备和端口均视为网络20能耗组件,交换设备和端口具有固定功耗。当交换设备的任意端口处于工作状态时,交换设备处于工作状态,当交换设备的所有端口处于空闲状态时,交换设备进入空闲状态,即交换设备可进行休眠,从而休眠的交换设备相对于处于工作状态的交换设备可产生较低的功耗,因此本发明实施例以aSw(t)表示交换设备状态,以aPo(t)表示端口状态,其中,t表示从当前时刻到未来时刻的时间,PO表示端口,SW表示交换设备。In the embodiment of the present invention, both the switching device and the port are regarded as the energy consumption component of the network 20, and the switching device and the port have a fixed power consumption. When any port of the switching device is in the working state, the switching device is in the working state. When all the ports of the switching device are in the idle state, the switching device enters the idle state, that is, the switching device can sleep, so that the sleeping switching device is working. The switching device of the state can generate lower power consumption. Therefore, in the embodiment of the present invention, a Sw (t) represents the state of the switching device, and a Po (t) represents the state of the port, where t represents the time from the current time to the future time. , P O represents the port, and S W represents the switching device.

在同一交换设备中,交换设备状态与端口状态的关系满足: In the same switching device, the relationship between the state of the switching device and the state of the port satisfies:

Figure PCTCN2017112983-appb-000001
Figure PCTCN2017112983-appb-000001

在为新的网络流计算路由规则时,衡量使用备选路由规则时,网络能耗增量来自备选路由规则上需要开启的空闲节点和端口,网络能耗增量的数学模型如下:When calculating routing rules for new network flows, when using alternative routing rules, the network energy consumption increment comes from the idle nodes and ports that need to be opened on the alternate routing rules. The mathematical model of network energy consumption increment is as follows:

Figure PCTCN2017112983-appb-000002
Figure PCTCN2017112983-appb-000002

其中,f为需要传输的网络流的数据大小,t0为网络流在备选路由规则上的发送时刻,Psw为一个交换设备在忙碌状态时的能耗,Ppo表示一个交换设备的一个端口在忙碌状态时的能耗,Psw和Ppo均为固定值,可通过测量或查询设备手册获取。Where f is the data size of the network stream to be transmitted, t 0 is the transmission time of the network flow on the alternate routing rule, P sw is the energy consumption of a switching device while in a busy state, and P po represents a switching device The energy consumption of the port when it is busy, P sw and P po are fixed values, which can be obtained by measuring or querying the device manual.

由于网络流f在发送时间段内(t0,t0+f/B)一直占用备选路由规则Pk上的交换设备的端口,假设路径长度为Lk,Lk表示备选路由规则的端口的数量,其为常数,因此Since the network flow f always occupies the port of the switching device on the alternative routing rule Pk during the transmission time period (t 0 , t 0 +f/B), assuming that the path length is L k , L k represents the alternative routing rule. The number of ports, which is a constant, so

Figure PCTCN2017112983-appb-000003
Figure PCTCN2017112983-appb-000003

因此,增加的能耗

Figure PCTCN2017112983-appb-000004
Therefore, increased energy consumption
Figure PCTCN2017112983-appb-000004

由于流的各条备选路由规则长度相同(途径的交换设备的数量均为最少),因此

Figure PCTCN2017112983-appb-000005
为固定值,在求解能耗增量最小备选路由规则时,只需求解t0,使得:Because each of the alternate routing rules of the flow has the same length (the number of switching devices in the path is the smallest),
Figure PCTCN2017112983-appb-000005
For a fixed value, when solving the minimum alternative routing rule for energy consumption increment, just solve t 0 so that:

Figure PCTCN2017112983-appb-000006
Figure PCTCN2017112983-appb-000006

Figure PCTCN2017112983-appb-000007
Figure PCTCN2017112983-appb-000007

其中,

Figure PCTCN2017112983-appb-000008
为限制条件,限定能耗增量最小的备选路由规则上的交换设备的目标端口在t0至t0+f/B的时间段内必须一直处于空闲状态。among them,
Figure PCTCN2017112983-appb-000008
For the constraint, the target port of the switching device on the alternate routing rule that defines the minimum energy consumption increment must remain idle for the period of time t 0 to t 0 +f/B.

因此,在为需要传输的网络流选择到N个最短的备选路由规则时,在获取N个备选路由规则上的交换设备及端口在当前时刻至未来时刻的工作状态之后,可根据公式(1)在N各备选路由规则选择能耗增量最小的备选路由规则,并为所选择的备选路由规则选择待传输的网络流的发送时刻t0Therefore, after selecting the N shortest alternate routing rules for the network flow that needs to be transmitted, after obtaining the working state of the switching device and the port on the N candidate routing rules from the current time to the future time, according to the formula ( 1) Select an alternative routing rule with the smallest energy consumption increment in each of the N alternative routing rules, and select a transmission time t 0 of the network flow to be transmitted for the selected alternative routing rule.

下文揭示的网络流传输控制方法是基于上述原理而提出。The network streaming control method disclosed below is proposed based on the above principles.

具体请参见图3,图3是根据本发明实施例的网络流传输控制方法的流程图,如图3所示,网络流传输控制方法具体包括以下步骤:Referring to FIG. 3, FIG. 3 is a flowchart of a method for controlling network stream transmission according to an embodiment of the present invention. As shown in FIG. 3, the network stream transmission control method specifically includes the following steps:

步骤S101:网络控制器100接收发送端101发送的路由请求,路由请求包括需要在网络20中进行传输的网络流的目的地址以及源地址,源地址为发送端101的网络地址,目的地址为网络流的接收端102的网络地址。 Step S101: The network controller 100 receives the routing request sent by the sending end 101, where the routing request includes the destination address and the source address of the network stream that needs to be transmitted in the network 20, and the source address is the network address of the sending end 101, and the destination address is the network. The network address of the receiving end 102 of the stream.

步骤S102:网络控制器100计算网络20中目的地址和源地址之间最短的N个备选路由规则。Step S102: The network controller 100 calculates the shortest N alternative routing rules between the destination address and the source address in the network 20.

为便于理解,举例而言,请结合图4进行参考,图4是根据本发明实施例的网络系统的另一具体结构示意图,其具体示出图2的交换设备的端口连接方式,如图4所示,交换设备1包括端口01至04,交换设备2包括端口11至14,交换设备3包括端口21至24,交换设备4包括端口31至36,交换设备5包括端口51至54,交换设备6包括端口61至64,每一交换设备的每一端口的上下行带宽均为1000Mbps。For ease of understanding, for example, please refer to FIG. 4 for reference. FIG. 4 is another schematic structural diagram of a network system according to an embodiment of the present invention, which specifically shows a port connection manner of the switching device of FIG. 2, as shown in FIG. As shown, switching device 1 comprises ports 01 to 04, switching device 2 comprises ports 11 to 14, switching device 3 comprises ports 21 to 24, switching device 4 comprises ports 31 to 36, switching device 5 comprises ports 51 to 54, switching devices 6 includes ports 61 to 64, and each port of each switching device has an uplink and downlink bandwidth of 1000 Mbps.

假设网络控制器100已经设置好在当前时刻N个备选路由规则涉及的交换设备中有7条网络流开始传输,分别为网络流f1、f2、f3、f4、f5、f6及f7,其中网络流f1的大小为300Mb,网络流f2的大小为400Mb,网络流f3的大小为300Mb,网络流f4的大小为100Mb,网络流f5的大小为300Mb,网络流f6的大小为500Mb,网络流f7的大小为400Mb。It is assumed that the network controller 100 has set up 7 network flows in the switching devices involved in the N candidate routing rules at the current time, namely network flows f1, f2, f3, f4, f5, f6, and f7, respectively. The size of the stream f1 is 300 Mb, the size of the network stream f2 is 400 Mb, the size of the network stream f3 is 300 Mb, the size of the network stream f4 is 100 Mb, the size of the network stream f5 is 300 Mb, and the size of the network stream f6 is 500 Mb, and the network stream f7 The size is 400Mb.

网络流f1的传输路径为:发送端101、端口01、端口02、端口11、端口12、端口21、端口22、端口31、端口32、接收端102。The transmission path of the network flow f1 is: the transmitting end 101, the port 01, the port 02, the port 11, the port 12, the port 21, the port 22, the port 31, the port 32, and the receiving end 102.

网络流f2的传输路径为:端口14、端口13。The transmission path of the network stream f2 is: port 14, port 13.

网络流f3的传输路径为:端口24、端口23。The transmission path of the network stream f3 is: port 24, port 23.

网络流f4的传输路径为:端口03、端口04、端口04、端口51、端口52、端口61、端口62、端口34、端口33。The transmission path of the network stream f4 is: port 03, port 04, port 04, port 51, port 52, port 61, port 62, port 34, port 33.

网络流f5的传输路径为:端口54、端口53。The transmission path of the network stream f5 is: port 54, port 53.

网络流f6的传输路径为:端口64、端口63。The transmission path of the network stream f6 is: port 64, port 63.

网络流f7的传输路径为:端口36、端口35。The transmission path of the network stream f7 is: port 36, port 35.

网络控制器100在接收到路由请求之后,计算目的地址和源地址之间最短的N个备选路由规则,并检测已经设置好的N个备选路由规则涉及的各交换设备的工作状态。具体地,网络控制器100获取网络流f1至f7的传输路径,以及各网络流的大小,其中,备选路由规则是指目的地址和源地址之间的最短路径,在最短路径中,涉及的交换设备的数量最少。After receiving the routing request, the network controller 100 calculates the shortest N alternative routing rules between the destination address and the source address, and detects the working states of the switching devices involved in the N candidate routing rules that have been set. Specifically, the network controller 100 acquires the transmission paths of the network flows f1 to f7, and the size of each network flow, wherein the alternative routing rule refers to the shortest path between the destination address and the source address, and in the shortest path, involved The number of switching devices is the least.

值得注意的是,在本发明实施例中,备选路由规则并没有考虑到当前时刻中最短路径是否被其他流占用,其仅为涉及的交换设备数量最少的路径。It should be noted that, in the embodiment of the present invention, the alternative routing rule does not consider whether the shortest path in the current time is occupied by other flows, which is only the path with the least number of switching devices involved.

在图4的示例中,网络控制器100经计算获取到发送端101与接收端102之间具有2个最短的备选路由规则,具体为:In the example of FIG. 4, the network controller 100 obtains the two shortest alternative routing rules between the sending end 101 and the receiving end 102 through calculation, specifically:

备选路由规则1:交换设备1(经端口01和端口02)、交换设备2(经端口11和端口12)、交换设备3(经端口21和端口22)、交换设备4(经端口31和端口32)。Alternative routing rules 1: switching device 1 (via port 01 and port 02), switching device 2 (via port 11 and port 12), switching device 3 (via port 21 and port 22), switching device 4 (via port 31 and Port 32).

备选路由规则2:交换设备1(经端口01和端口04)、交换设备5(经端口51和端口52)、交换设备6(经端口61和端口62)、交换设备4(经端口34和端口32)。Alternative routing rules 2: switching device 1 (via port 01 and port 04), switching device 5 (via port 51 and port 52), switching device 6 (via port 61 and port 62), switching device 4 (via port 34 and Port 32).

其中,在本发明实施例中,备选路由规则涉及的端口称之为目标端口,目标端口为网络流需要使用的端口。In the embodiment of the present invention, the port involved in the alternative routing rule is called a target port, and the target port is a port that the network stream needs to use.

例如,备选路由规则1的目标端口为端口01、端口02、端口11、端口12、、端口21、端口22、端口31以及端口32。备选路由规则2的目标端口为端口01、端口04、端口51、端口52、端口61、端口62、端口34和端口32。For example, the target ports of the alternative routing rule 1 are port 01, port 02, port 11, port 12, port 21, port 22, port 31, and port 32. The target ports of the alternative routing rule 2 are port 01, port 04, port 51, port 52, port 61, port 62, port 34, and port 32.

步骤S103:网络控制器100根据N个备选路由规则上的交换设备在不同时间段的工作 状态以及交换设备的端口在不同时间段的工作状态,在N个备选路由规则中选择能耗增量最小的目标路由规则并确定发送时刻,其中,在发送时刻,目标路由规则上处于忙碌状态的交换设备数量最多,并且在目标路由规则上的每一交换机的目标端口均处于空闲状态。Step S103: The network controller 100 works according to the switching devices on the N alternate routing rules in different time periods. The state and the working state of the port of the switching device in different time periods, select the target routing rule with the smallest energy consumption increment among the N alternative routing rules, and determine the sending time, where the target routing rule is busy at the sending time. The number of switching devices is the largest, and the destination port of each switch on the target routing rule is idle.

为了作出清楚说明,结合图5进行参考,图5是根据本发明实施例的网络流传输控制方法的子流程图,其对步骤S103作出具体说明,如图5所示,步骤S103具体包括以下步骤:For a clear description, refer to FIG. 5 for reference. FIG. 5 is a sub-flow diagram of a network stream transmission control method according to an embodiment of the present invention. The step S103 is specifically illustrated. As shown in FIG. 5, step S103 specifically includes the following steps. :

步骤S1031:网络控制器100根据N个备选路由规则上的交换设备在不同时间段的工作状态获取N个备选路由规则中的每一备选路由规则上的每一交换设备的忙碌时间段和空闲时间段,忙碌时间段为交换设备处于忙碌状态的时间段,空闲时间段为交换设备处于空闲状态的时间段。Step S1031: The network controller 100 acquires a busy time period of each switching device on each of the N alternative routing rules according to the working state of the switching device on the N candidate routing rules in different time segments. And the idle time period, the busy time period is a time period in which the switching device is in a busy state, and the idle time period is a time period in which the switching device is in an idle state.

举例而言,在本步骤中,网络控制器100计算备选路由规则1和备选路由规则2上的交换设备在不同时间段的工作状态。For example, in this step, the network controller 100 calculates the working states of the switching devices on the alternate routing rule 1 and the alternative routing rule 2 at different time periods.

首先,网络控制器100计算网络流f1、f2、f3、f4、f5、f6及f7的持续时间,其中,网络流f1的持续时间为f1/B=300Mb/1000Mbps=0.3s=300ms,网络流f2的持续时间为f2/B=400Mb/1000Mbps=0.4s=400ms,网络流f3的持续时间为f3/B=300Mb/1000Mbps=0.3s=300ms,网络流f4的持续时间为f4/B=100Mb/1000Mbps=0.1s=100ms,网络流f5的持续时间为f5/B=300Mb/1000Mbps=0.3s=300ms,网络流f6的持续时间为500Mb/1000Mbps=0.5s=500ms,网络流f7的持续时间为400Mb/1000Mbps=0.4s=400ms。First, the network controller 100 calculates the durations of the network flows f1, f2, f3, f4, f5, f6, and f7, wherein the duration of the network flow f1 is f1/B=300Mb/1000Mbps=0.3s=300ms, the network flow The duration of f2 is f2/B=400Mb/1000Mbps=0.4s=400ms, the duration of network flow f3 is f3/B=300Mb/1000Mbps=0.3s=300ms, and the duration of network flow f4 is f4/B=100Mb /1000Mbps=0.1s=100ms, the duration of network flow f5 is f5/B=300Mb/1000Mbps=0.3s=300ms, and the duration of network flow f6 is 500Mb/1000Mbps=0.5s=500ms, the duration of network flow f7 It is 400Mb/1000Mbps=0.4s=400ms.

针对交换设备1,由步骤S102及图4可知,网络流f1和网络流f4流经交换设备1,其中f1的持续时间为300ms,f4的持续时间为100ms,因此交换设备1的忙碌时间段为0-300s。For the switching device 1, as shown in step S102 and FIG. 4, the network stream f1 and the network stream f4 flow through the switching device 1, wherein the duration of f1 is 300 ms and the duration of f4 is 100 ms, so the busy period of the switching device 1 is 0-300s.

针对交换设备2,网络流f1和网络流f2流经交换设备2,其中f1的持续时间为300ms,f2的持续时间为400ms,因此交换设备2的忙碌时间段为0-400s。For the switching device 2, the network flow f1 and the network flow f2 flow through the switching device 2, wherein the duration of f1 is 300 ms and the duration of f2 is 400 ms, so the busy period of the switching device 2 is 0-400 s.

针对交换设备3,网络流f1和网络流f3流经交换设备3,其中f1的持续时间为300ms,f3的持续时间为300ms,因此交换设备3的忙碌时间段为0-300s。For the switching device 3, the network flow f1 and the network flow f3 flow through the switching device 3, wherein the duration of f1 is 300 ms and the duration of f3 is 300 ms, so the busy period of the switching device 3 is 0-300 s.

针对交换设备4,网络流f1、网络流f4和网络流f7流经交换设备4,其中f1的持续时间为300ms,f4的持续时间为100ms,f7的持续时间为400ms,因此交换设备4的忙碌时间段为0-400s。For the switching device 4, the network flow f1, the network flow f4 and the network flow f7 flow through the switching device 4, wherein the duration of f1 is 300 ms, the duration of f4 is 100 ms, and the duration of f7 is 400 ms, so that the switching device 4 is busy The time period is 0-400s.

针对交换设备5,网络流f4和网络流f5流经交换设备5,其中f4的持续时间为100ms,f5的持续时间为300ms,因此交换设备5的忙碌时间段为0-300s。For the switching device 5, the network flow f4 and the network flow f5 flow through the switching device 5, wherein the duration of f4 is 100 ms and the duration of f5 is 300 ms, so the busy period of the switching device 5 is 0-300 s.

针对交换设备6,网络流f4和网络流f6流经交换设备6,其中f4的持续时间为100ms,f6的持续时间为300ms,因此交换设备5的忙碌时间段为0-300s。For the switching device 6, the network flow f4 and the network flow f6 flow through the switching device 6, wherein the duration of f4 is 100 ms and the duration of f6 is 300 ms, so the busy period of the switching device 5 is 0-300 s.

以下请结合图6和7进行参考,图6是根据本发明实施例的备选路由规则1上的交换设备的工作状态示意图,图7是根据本发明实施例的备选路由规则2上的交换设备的工作状态示意图。在图6中,横坐标表示交换设备,纵坐标表示时间,交换设备1和交换设备3的忙碌时间段均为0-300ms,交换设备2和交换设备4的忙碌时间段均为0-400ms。在图7中,横坐标表示交换设备,纵坐标表示时间,交换设备1为0-300ms,交换设备4和交换设备5的忙碌时间段为0-400ms,交换设备6的忙碌时间段为0-500ms。 Please refer to FIG. 6 and FIG. 7 for reference. FIG. 6 is a schematic diagram showing the working state of the switching device on the alternative routing rule 1 according to the embodiment of the present invention, and FIG. 7 is an exchange on the alternative routing rule 2 according to the embodiment of the present invention. Schematic diagram of the working status of the device. In FIG. 6, the abscissa indicates the switching device, the ordinate indicates time, the busy period of the switching device 1 and the switching device 3 are both 0-300 ms, and the busy periods of the switching device 2 and the switching device 4 are both 0-400 ms. In FIG. 7, the abscissa represents the switching device, the ordinate represents time, the switching device 1 is 0-300 ms, the busy period of the switching device 4 and the switching device 5 is 0-400 ms, and the busy period of the switching device 6 is 0- 500ms.

可选地,一些示例中,发送端101还可将截止时间设置在路由请求中,截止时间是网络流f可以接受的最迟发送时刻,网络控制器100在本步骤中获取的忙碌时间段和空闲时间段均位于截止时间之前,从而保证后续步骤中根据忙碌时间段和空闲时间段获取的网络流f的发送时刻可位于网络流f可以接受的最迟发送时刻之前。Optionally, in some examples, the sending end 101 may also set the cutoff time in the routing request, the cutoff time is the latest sending time that the network flow f can accept, the busy time period acquired by the network controller 100 in this step, and The idle time periods are all located before the deadline, so that the transmission time of the network flow f acquired according to the busy time period and the idle time period in the subsequent steps can be located before the latest transmission time that the network flow f can accept.

步骤S1032:网络控制器100根据忙碌时间段和空闲时间段确定每一备选路由规则的多个重合时间段,其中,在每一重合时间段中具有至少一个交换设备处于忙碌状态。Step S1032: The network controller 100 determines a plurality of coincidence time periods of each candidate routing rule according to the busy time period and the idle time period, wherein at least one switching device is in a busy state in each coincidence time period.

为便于理解,请结合图8和图9进行参考,图8是根据本发明实施例的备选路由规则1上的重合时间段示意图,图9是根据本发明实施例的备选路由规则2上的重合时间段示意图。For ease of understanding, reference is made to FIG. 8 and FIG. 9. FIG. 8 is a schematic diagram of a coincidence time period on an alternative routing rule 1 according to an embodiment of the present invention, and FIG. 9 is an alternative routing rule 2 according to an embodiment of the present invention. Schematic diagram of the coincidence time period.

如图8所示,在备选路由规则1中,重合时间段1为0-300ms,重合时间段2为300-400ms,在重合时间段1中,交换设备1至4均处于忙碌状态,在重合时间段2中,交换设备2和交换设备4处于忙碌状态,交换设备1和交换设备3处于空闲状态。As shown in FIG. 8, in the alternative routing rule 1, the coincidence time period 1 is 0-300 ms, and the coincidence time period 2 is 300-400 ms. In the coincidence time period 1, the switching devices 1 to 4 are all in a busy state. In the coincidence period 2, the switching device 2 and the switching device 4 are in a busy state, and the switching device 1 and the switching device 3 are in an idle state.

如图9所示,在备选路由规则2中,重合时间段3为0-300ms,重合时间段4为300ms-400ms,重合时间段5为400ms-500ms,在重合时间段3中,交换设备1、5、6、4均处于忙碌状态,在重合时间段4中,交换设备5、6、4均处于忙碌状态,交换设备1处于空闲状态,在重合时间段5中,交换设备6处于忙碌状态,交换设备1、5、4处于空闲状态。As shown in FIG. 9, in the alternative routing rule 2, the coincidence time period 3 is 0-300 ms, the coincidence time period 4 is 300 ms-400 ms, and the coincidence time period 5 is 400 ms-500 ms. In the coincidence time period 3, the switching device 1, 5, 6, and 4 are all in a busy state. In the coincidence period 4, the switching devices 5, 6, and 4 are all in a busy state, and the switching device 1 is in an idle state. In the coincidence period 5, the switching device 6 is busy. State, switching devices 1, 5, 4 are in an idle state.

根据图8和图9可知,在每一重合时间段中具有至少一个交换设备处于忙碌状态,并且,重合时间段之间通过备选路由规则上的任一交换设备的工作状态的变化来进行区分,如针对图8,由于交换设备1和3在第300ms从忙碌状态切换到空闲状态,重合时间段1结束,重合时间段2开始。针对图9,由于交换设备1在第300ms从忙碌状态切换到空闲状态,重合时间段3结束,重合时间段4开始。由于交换设备5和交换设备4在第400ms从忙碌状态切换到空闲状态,重合时间段4结束,重合时间段5开始。并且,由于交换设备6在第500ms从忙碌状态切换到空闲状态,重合时间段5结束。According to FIG. 8 and FIG. 9, at least one switching device is in a busy state in each coincidence period, and the coincidence period is distinguished by a change in the working state of any switching device on the alternate routing rule. As for FIG. 8, since the switching devices 1 and 3 are switched from the busy state to the idle state at the 300th ms, the coincidence period 1 ends, and the coincidence period 2 starts. With respect to FIG. 9, since the switching device 1 switches from the busy state to the idle state at the 300th ms, the coincidence period 3 ends, and the coincidence period 4 starts. Since the switching device 5 and the switching device 4 switch from the busy state to the idle state at the 400th ms, the coincidence period 4 ends, and the coincidence period 5 starts. And, since the switching device 6 switches from the busy state to the idle state at the 500th ms, the coincidence period 5 ends.

步骤S1033:网络控制器100根据交换设备的端口在不同时间段的工作状态在多个重合时间段中选择目标重合时间段,其中,在目标重合时间段中具有数量最多的交换设备处于忙碌状态,并且在目标重合时间段中与目标重合时间对应的备选路由规则上的每一交换设备中的目标端口均处于空闲状态。Step S1033: The network controller 100 selects a target coincidence time period in a plurality of coincidence time periods according to the working state of the port of the switching device in different time periods, wherein the switching device with the largest number of the switching devices in the target coincidence time period is in a busy state. And the target port in each switching device on the alternate routing rule corresponding to the target coincidence time in the target coincidence period is in an idle state.

在本步骤中,网络控制器100在重合时间段1-5中选择目标重合时间段,首先,网络控制器100判断到,重合时间段1具有4个交换设备处于忙碌状态,重合时间段3具有4个交换设备处于忙碌状态,重合时间段4有3个交换机处于忙碌状态,重合时间段2有2个交换机处于忙碌状态,重合时间段5有1个交换机处于忙碌状态。In this step, the network controller 100 selects the target coincidence period in the coincidence period 1-5. First, the network controller 100 determines that the coincidence period 1 has four switching devices in a busy state, and the coincidence period 3 has The four switching devices are in a busy state. In the coincidence period 4, three switches are in a busy state. In the coincidence time period 2, two switches are in a busy state, and one switch in the coincidence time period 5 has a busy state.

在重合时间段1(0-300ms)中,交换设备1的目标端口01和02、交换设备2的目标端口11和12、交换设备3的目标端口21和22、以及交换设备4的目标端口31和32存在有网络流f1,因此,重合时间段1具有目标端口处于忙碌状态,故重合时间段1不符合要求。In the coincidence period 1 (0-300 ms), the target ports 01 and 02 of the switching device 1, the target ports 11 and 12 of the switching device 2, the target ports 21 and 22 of the switching device 3, and the target port 31 of the switching device 4 The network flow f1 exists in the sum 32, and therefore, the coincidence time period 1 has the target port in a busy state, so the coincidence time period 1 does not meet the requirement.

类似地,在重合时间段3(0-300ms)中,交换设备1的目标端口01和02、以及交换设备4的目标端口31和32存在有网络流f1,因此,重合时间段3中具有目标端口处于忙 碌状态,故重合时间段3不符合要求。Similarly, in the coincidence period 3 (0-300 ms), the target ports 01 and 02 of the switching device 1 and the target ports 31 and 32 of the switching device 4 have the network stream f1, and therefore, there is a target in the coincidence period 3 The port is busy The state is too busy, so the coincidence time period 3 does not meet the requirements.

在重合时间段4(300ms-400ms)中,交换设备1处于空闲状态,交换设备5、6、4处于忙碌状态,由于f4的持续时间是0-100ms,因此,在交换设备5中,目标端口51和52在300ms-400ms空闲,在交换设备6中,目标端口61和62在300ms-400ms空闲。在交换设备4中,目标端口34在300ms-400ms空闲,并且由于f1的持续时间是0-300ms,因此目标端口32在300ms-400ms空闲。In the coincidence period 4 (300ms-400ms), the switching device 1 is in an idle state, the switching devices 5, 6, 4 are in a busy state, and since the duration of f4 is 0-100 ms, in the switching device 5, the target port 51 and 52 are idle at 300ms-400ms, and in the switching device 6, the target ports 61 and 62 are idle at 300ms-400ms. In the switching device 4, the target port 34 is idle at 300ms - 400ms, and since the duration of f1 is 0-300ms, the target port 32 is idle at 300ms - 400ms.

因此,在重合时间段4具有数量最多的交换设备(有3个交换设备5、6、4)处于忙碌状态,并且在重合时间段4中与重合时间段4对应的备选路由规则2上的每一交换设备(交换设备1、5、6、4)中的目标端口均处于空闲状态。Therefore, the switching device having the largest number (there are 3 switching devices 5, 6, 4) in the coincidence period 4 is in a busy state, and on the alternative routing rule 2 corresponding to the coincidence period 4 in the coincidence period 4 The target ports in each switching device (switching devices 1, 5, 6, 4) are all idle.

因此,网络控制器100选择重合时间段4作为目标重合时间段。Therefore, the network controller 100 selects the coincidence period 4 as the target coincidence period.

步骤S1034:网络控制器100将目标重合时间段对应的备选路由规则作为能耗增量最小的备选路由规则,并在目标重合时间段内选择发送时刻。Step S1034: The network controller 100 uses the alternative routing rule corresponding to the target coincidence time period as an alternative routing rule with the smallest energy consumption increment, and selects the sending time in the target coincidence time period.

在本步骤中,网络控制器100将目标重合时间段4对应的备选路由规则2作为能耗增量最小的备选路由规则,并在目标重合时间段4(300ms-400ms)内选择发送时刻。In this step, the network controller 100 selects the alternative routing rule 2 corresponding to the target coincidence period 4 as the alternative routing rule with the smallest energy consumption increment, and selects the sending moment in the target coincidence period 4 (300ms-400ms). .

具体而言,为了保证需要传输的网络流f的传输时段f/B与目标重合时段300ms-400ms最大程度的重合,网络控制器100可将网络流f的传输时段f/B的中心时刻与目标重合时段300ms-400ms的中心时刻设置为一致,因此,网络控制器100可根据以下等式获取在目标重合时段中选择发送时刻:Specifically, in order to ensure that the transmission period f/B of the network stream f to be transmitted overlaps with the target coincidence period 300ms-400ms to the maximum extent, the network controller 100 may set the center time and target of the transmission period f/B of the network stream f. The center time of the coincidence period of 300ms-400ms is set to be consistent, and therefore, the network controller 100 can acquire the selection of the transmission time in the target coincidence period according to the following equation:

t0=t-f/2Bt 0 =tf/2B

t是目标重合时间段的中心时刻,f是网络流的大小,B是目标路由规则上的交换设备的带宽,t0是发送时刻,其中,网络流的大小f可由发送端101设置在路由请求中,网络控制器100可从路由请求中获取f。t is the central moment of the target coincidence time period, f is the size of the network flow, B is the bandwidth of the switching device on the target routing rule, and t 0 is the transmission time, wherein the size f of the network flow can be set by the transmitting end 101 in the routing request The network controller 100 can obtain f from the routing request.

具体可结合图10进行参考,图10是根据本发明实施例的目标重合时间段的中心时刻示意图,根据图10,t=300+(400-300)/2=350ms,f/2B=100Mb/(2*1000Mbps)=50ms,因此t0=t-f/2B=350ms-50ms=300ms。Specifically, reference may be made to FIG. 10, which is a schematic diagram of a central timing of a target coincidence time period according to an embodiment of the present invention. According to FIG. 10, t=300+(400-300)/2=350 ms, f/2B=100 Mb/ (2*1000Mbps) = 50ms, so t0=tf/2B=350ms-50ms=300ms.

因此,能耗增量最小的备选路由规则为备选路由规则2,发送时刻为300ms。Therefore, the alternative routing rule with the smallest energy consumption increment is the alternative routing rule 2, and the sending time is 300 ms.

步骤S104:网络控制器100将目标路由规则和发送时刻发送至发送端101,以使得发送端101在发送时刻通过目标路由规则将网络流发送至接收端102。Step S104: The network controller 100 sends the target routing rule and the sending moment to the sending end 101, so that the sending end 101 sends the network stream to the receiving end 102 through the target routing rule at the sending moment.

具体而言,发送端101在当前时刻等待300ms之后,通过交换设备1(经端口01和端口04)、交换设备5(经端口51和端口52)、交换设备6(经端口61和端口62)、交换设备4(经端口34和端口32)将网络流f发送至接收端102。Specifically, the transmitting end 101 waits 300 ms after the current time, passes through the switching device 1 (via port 01 and port 04), the switching device 5 (via port 51 and port 52), and the switching device 6 (via port 61 and port 62) The switching device 4 (via port 34 and port 32) sends the network stream f to the receiving end 102.

由于在目标路由规则2的第300ms至400ms中,只有交换设备1是处于空闲状态,交换设备5、6、4均处于忙碌状态,且交换设备1、5、6、4的目标端口均处于空闲状态,因此网络流f可在第300ms至400ms中无阻塞地从发送端101传输至接收端102,并且在发送过程中,仅需交换设备1从空闲状态切换至忙碌状态,仅涉及1个交换设备的能耗增量,因此可极大地降低能耗。Since in the 300th to 400ms of the target routing rule 2, only the switching device 1 is in the idle state, the switching devices 5, 6, 4 are in a busy state, and the destination ports of the switching devices 1, 5, 6, 4 are all idle. State, so the network flow f can be transmitted from the transmitting end 101 to the receiving end 102 without blocking in the 300th to 400ms, and during the transmission, only the switching device 1 needs to be switched from the idle state to the busy state, involving only one exchange. The energy consumption of the device is increased, thus greatly reducing energy consumption.

综上,在本发明实施例中,根据最短的备选路由规则上的交换机的工作状态和交换机的端口的工作状态选择具有能耗增量最小的目标路由规则及其发送时刻,通过等待至发送 时刻才进行网络流发送,从而在保证节能的前提下,避免重复计算路由规则的情况发生,并降低实时计算能力的要求。In summary, in the embodiment of the present invention, the target routing rule having the smallest energy consumption increment and the sending time thereof are selected according to the working state of the switch on the shortest alternate routing rule and the working state of the port of the switch, and waiting to send The network stream is sent at a time, so that under the premise of ensuring energy saving, the situation of repeatedly calculating routing rules is avoided, and the requirement of real-time computing capability is reduced.

值得注意的是,在本发明的另外一些示例中,针对网络20状态较为复杂的情况,网络控制器100可定义重合度因子,重合度因子λ=重合时长×重合次数,例如,针对图8所示的示例而言,重合时间段1的重合度因子λ1=0.3s*4=1.2,重合时间段2的重合度因子λ2=0.1s*2=0.2,重合时间段3的重合度因子λ3=0.3s*4=1.2,重合时间段4的重合度因子λ4=0.1s*3=0.3,重合时间段5的重合度因子λ5=0.1s*1=0.1。It should be noted that in other examples of the present invention, for the case where the state of the network 20 is relatively complicated, the network controller 100 may define a coincidence factor, a coincidence factor λ = coincidence duration × coincidence times, for example, for FIG. For the illustrated example, the coincidence factor λ1=0.3s*4=1.2 of the coincidence period 1 , the coincidence factor λ2=0.1s*2=0.2 of the coincidence period 2, and the coincidence factor λ3= of the coincidence period 3= 0.3s*4=1.2, the coincidence factor λ4=0.1s*3=0.3 of the coincidence period 4, and the coincidence factor λ5=0.1s*1=0.1 of the coincidence period 5.

网络控制器100根据网络20环境设置重合度因子阈值λ0,重合度因子阈值λ0可例如为0.1,重合度因子包含重合时长和重合次数的双重标准,对上述多个重合度因子λ1至λ5,网络控制器100选择和遍历重合时间段的顺序为:首先遍历重合次数最高且重合时长大于f/2B的重合度因子,然后降低重合次数要求,继续遍历满足重合时长要求的重合度因子,直到降低到指重合度因子阈值λ0为止。显然,重合度因子阈值λ0越大,遍历的时间段越少,遍历完的速度越快,略过的时间段也越多,通过设置重合度因子阈值λ0实现求解精度和速度之间进行权衡。The network controller 100 sets the coincidence factor threshold λ0 according to the environment of the network 20, and the coincidence factor threshold λ0 may be, for example, 0.1, and the coincidence factor includes a double criterion of the coincidence duration and the number of coincidences, and the plurality of coincidence factors λ1 to λ5, the network The order in which the controller 100 selects and traverses the coincidence time period is: first traversing the coincidence factor with the highest number of coincidences and the coincidence time is greater than f/2B, and then reducing the number of coincidence times, continuing to traverse the coincidence factor satisfying the coincidence duration until it is lowered to Refers to the coincidence factor threshold λ0. Obviously, the larger the coincidence factor threshold λ0 is, the less the traversal time period is, the faster the traversal is completed, and the more time periods are skipped. The tradeoff between the solution precision and the speed is achieved by setting the coincidence factor threshold λ0.

以下请参见图11,图11是根据本发明实施例的网络控制器的装置结构示意图,网络控制器100包括:Referring to FIG. 11, FIG. 11 is a schematic structural diagram of a device of a network controller according to an embodiment of the present invention. The network controller 100 includes:

接收模块201,用于接收发送端101发送的路由请求,路由请求包括需要在网络20中进行传输的网络流的目的地址以及源地址,源地址为发送端101的网络地址,目的地址为网络流的接收端102的网络地址;The receiving module 201 is configured to receive a routing request sent by the sending end 101, where the routing request includes a destination address and a source address of the network stream that needs to be transmitted in the network 20, the source address is a network address of the sending end 101, and the destination address is a network stream. The network address of the receiving end 102;

备选路由规则计算模块201,用于计算网络20中目的地址和源地址之间最短的N个备选路由规则;The candidate routing rule calculation module 201 is configured to calculate the shortest N candidate routing rules between the destination address and the source address in the network 20;

目标路由规则选择模块202,用于根据N个备选路由规则上的交换设备在不同时间段的工作状态以及交换设备的端口在不同时间段的工作状态,在N个备选路由规则中选择能耗增量最小的目标路由规则并确定发送时刻,其中,在发送时刻,目标路由规则上处于忙碌状态的交换设备数量最多,并且在目标路由规则上的每一交换机的目标端口均处于空闲状态,目标端口为网络流需要使用的端口;The target routing rule selection module 202 is configured to select, among the N candidate routing rules, according to the working states of the switching devices on the N candidate routing rules in different time periods and the working states of the ports of the switching device in different time segments. The target routing rule with the smallest increment is used to determine the sending time, wherein, at the sending time, the number of switching devices that are busy in the target routing rule is the largest, and the target port of each switch on the target routing rule is idle. The target port is the port that the network stream needs to use;

发送模块204,用于将目标路由规则和发送时刻发送至发送端101,以使得发送端101在发送时刻通过目标路由规则将网络流发送至接收端102。The sending module 204 is configured to send the target routing rule and the sending moment to the sending end 101, so that the sending end 101 sends the network flow to the receiving end 102 through the target routing rule at the sending moment.

可选地,目标路由规则选择模块202,具体用于:根据N个备选路由规则上的交换设备在不同时间段的工作状态获取N个备选路由规则中的每一备选路由规则上的每一交换设备的忙碌时间段和空闲时间段,忙碌时间段为交换设备处于忙碌状态的时间段,空闲时间段为交换设备处于空闲状态的时间段;根据忙碌时间段和空闲时间段确定每一备选路由规则的多个重合时间段,其中,在每一重合时间段中具有至少一个交换设备处于忙碌状态;根据交换设备的端口在不同时间段的工作状态在多个重合时间段中选择目标重合时间段,其中,在目标重合时间段中具有数量最多的交换设备处于忙碌状态,并且在目标重合时间段中与目标重合时间对应的备选路由规则上的每一交换设备中的目标端口均处于空闲状态;将目标重合时间段对应的备选路由规则作为能耗增量最小的目标路由规则,并在目标重合时间段内选择发送时刻。 Optionally, the target routing rule selection module 202 is configured to: obtain, according to the working state of the switching device on the N candidate routing rules, the candidate state in each of the N alternative routing rules. The busy time period and the idle time period of each switching device, the busy time period is a time period in which the switching device is in a busy state, and the idle time period is a time period in which the switching device is in an idle state; each of the busy time period and the idle time period is determined according to the busy time period and the idle time period. a plurality of coincidence time periods of the alternate routing rule, wherein at least one switching device is in a busy state in each coincidence time period; selecting a target in the multiple overlapping time periods according to the working state of the port of the switching device in different time periods a coincidence time period, wherein the switching device having the largest number of switching devices in the target coincidence time period is in a busy state, and the target port in each switching device on the alternate routing rule corresponding to the target coincidence time in the target coincidence time period is In the idle state; the alternate routing rule corresponding to the target coincidence time period is used as the energy consumption increment. Target routing rules, and select the sending time period coincides with the target.

可选地,目标路由规则选择模块202,具体用于:Optionally, the target routing rule selection module 202 is specifically configured to:

根据以下等式获取发送时刻:Get the sending time according to the following equation:

t0=t-f/2BT0=t-f/2B

其中,t是目标重合时间段的中心时刻,f是网络流的大小,B是目标路由规则上的交换设备的带宽,t0是发送时刻。Where t is the central time of the target coincidence period, f is the size of the network flow, B is the bandwidth of the switching device on the target routing rule, and t0 is the transmission time.

可选地,路由请求还包括截止时间,忙碌时间段和空闲时间段均位于截止时间之前。Optionally, the routing request further includes a deadline, and the busy time period and the idle time period are both before the deadline.

可选地,在网络20的任一路由规则中同一时刻传输的网络流数量不大于1。Optionally, the number of network flows transmitted at the same time in any routing rule of the network 20 is not greater than one.

综上,在本发明实施例中,根据最短的备选路由规则上的交换机的工作状态和交换机的端口的工作状态选择具有能耗增量最小的目标路由规则及其发送时刻,通过等待至发送时刻才进行网络流发送,从而在保证节能的前提下,避免重复计算路由规则的情况发生,并降低实时计算能力的要求。In summary, in the embodiment of the present invention, the target routing rule having the smallest energy consumption increment and the sending time thereof are selected according to the working state of the switch on the shortest alternate routing rule and the working state of the port of the switch, and waiting to send The network stream is sent at a time, so that under the premise of ensuring energy saving, the situation of repeatedly calculating routing rules is avoided, and the requirement of real-time computing capability is reduced.

本发明实施例进一步提供一种主机,以下请参见图12,图12是根据本发明实施例的主机的装置结构示意图,如图12所示,主机1000包括总线304、网卡302、存储器303和处理器301,存储器303存储有程序指令,处理器301运行程序指令以执行上文介绍的网络流传输控制方法。The embodiment of the present invention further provides a host. Referring to FIG. 12, FIG. 12 is a schematic structural diagram of a device according to an embodiment of the present invention. As shown in FIG. 12, the host 1000 includes a bus 304, a network card 302, a memory 303, and processing. The memory 301 stores program instructions, and the processor 301 runs program instructions to perform the network streaming control method described above.

值得注意的是,在本发明实施例中,交换设备可包括交换机和路由器。It should be noted that in the embodiment of the present invention, the switching device may include a switch and a router.

需说明的是,以上描述的任意装置实施例都仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that any of the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as the cells may or may not be Physical units can be located in one place or distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, in the drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and specifically, one or more communication buses or signal lines can be realized. Those of ordinary skill in the art can understand and implement without any creative effort.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本发明而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等,包括若干命令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, dedicated hardware, dedicated CPU, dedicated memory, dedicated memory, Special components and so on. In general, functions performed by computer programs can be easily implemented with the corresponding hardware, and the specific hardware structure used to implement the same function can be various, such as analog circuits, digital circuits, or dedicated circuits. Circuits, etc. However, for the purposes of the present invention, software program implementation is a better implementation in more cases. Based on the understanding, the technical solution of the present invention, which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer. , U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., including a number of commands to make a computer device (may be A personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.

所属领域的技术人员可以清楚地了解到,上述描述的系统、装置或单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that the specific working process of the system, the device or the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (11)

一种网络流传输控制方法,其特征在于,包括:A network stream transmission control method, comprising: 接收发送端发送的路由请求,所述路由请求包括需要在网络中进行传输的网络流的目的地址以及源地址,所述源地址为所述发送端的网络地址,所述目的地址为所述网络流的接收端的网络地址;Receiving a routing request sent by the sending end, where the routing request includes a destination address and a source address of the network flow that needs to be transmitted in the network, where the source address is a network address of the sending end, and the destination address is the network flow The network address of the receiving end; 计算所述网络中所述目的地址和所述源地址之间最短的N个备选路由规则;Calculating a shortest N candidate routing rules between the destination address and the source address in the network; 根据所述N个备选路由规则上的交换设备在不同时间段的工作状态以及所述交换设备的端口在不同时间段的工作状态,在所述N个备选路由规则中选择能耗增量最小的目标路由规则并确定发送时刻,其中,在所述发送时刻,所述目标路由规则上处于忙碌状态的交换设备数量最多,并且在所述目标路由规则上的每一交换机的目标端口均处于空闲状态,所述目标端口为所述网络流需要使用的端口;Selecting an energy consumption increment in the N candidate routing rules according to the working states of the switching devices on the N candidate routing rules in different time periods and the working states of the ports of the switching device in different time periods. a minimum target routing rule and determining a transmission time, wherein, at the sending moment, the number of switching devices in the busy state on the target routing rule is the largest, and the target port of each switch on the target routing rule is at In an idle state, the target port is a port that is required to be used by the network stream; 将所述目标路由规则和所述发送时刻发送至所述发送端,以使得所述发送端在所述发送时刻通过所述目标路由规则将所述网络流发送至所述接收端。Sending the target routing rule and the sending moment to the sending end, so that the sending end sends the network stream to the receiving end by using the target routing rule at the sending moment. 根据权利要求1所述的方法,其特征在于,所述根据所述N个备选路由规则上的交换设备在不同时间段的工作状态以及所述交换设备的端口在不同时间段的工作状态,在所述N个备选路由规则中选择能耗增量最小的目标路由规则并确定发送时刻,包括:The method according to claim 1, wherein the working state of the switching device on the N alternative routing rules in different time periods and the working state of the port of the switching device in different time periods, Selecting a target routing rule with the smallest energy consumption increment and determining a sending time in the N candidate routing rules, including: 根据所述N个备选路由规则上的交换设备在不同时间段的工作状态获取所述N个备选路由规则中的每一备选路由规则上的每一交换设备的忙碌时间段和空闲时间段,所述忙碌时间段为所述交换设备处于忙碌状态的时间段,所述空闲时间段为所述交换设备处于空闲状态的时间段;Obtaining a busy time period and an idle time of each switching device on each of the N candidate routing rules according to the working state of the switching device on the N candidate routing rules in different time periods And the busy time period is a time period in which the switching device is in a busy state, and the idle time period is a time period in which the switching device is in an idle state; 根据所述忙碌时间段和所述空闲时间段确定每一备选路由规则的多个重合时间段,其中,在每一所述重合时间段中具有至少一个交换设备处于忙碌状态;Determining, according to the busy time period and the idle time period, a plurality of coincidence time periods of each candidate routing rule, wherein at least one switching device is in a busy state in each of the overlapping time periods; 根据所述交换设备的端口在不同时间段的工作状态在多个重合时间段中选择目标重合时间段,其中,在所述目标重合时间段中具有数量最多的交换设备处于忙碌状态,并且在所述目标重合时间段中与所述目标重合时间对应的备选路由规则上的每一交换设备中的目标端口均处于空闲状态;Selecting a target coincidence time period in a plurality of coincidence time periods according to an operating state of the port of the switching device in different time periods, wherein the switching device having the largest number among the target coincidence time periods is in a busy state, and The target port in each switching device on the alternate routing rule corresponding to the target coincidence time in the target coincidence period is in an idle state; 将所述目标重合时间段对应的备选路由规则作为所述能耗增量最小的目标路由规则,并在所述目标重合时间段内选择所述发送时刻。The candidate routing rule corresponding to the target coincidence period is used as the target routing rule with the smallest energy consumption increment, and the sending moment is selected within the target coincidence period. 根据权利要求2所述的方法,其特征在于,所述路由请求还包括所述网络流的大小,所述在所述目标重合时间段内选择所述发送时刻,包括:The method according to claim 2, wherein the routing request further comprises a size of the network flow, and the selecting the sending moment in the target coincidence period comprises: 根据以下等式获取所述发送时刻:The sending moment is obtained according to the following equation: t0=t-f/2Bt 0 =tf/2B 其中,t是所述目标重合时间段的中心时刻,f是所述网络流的大小,B是所述目标路由规则上的交换设备的带宽,t0是所述发送时刻。Where t is the central time of the target coincidence period, f is the size of the network flow, B is the bandwidth of the switching device on the target routing rule, and t 0 is the transmission time. 根据权利要求2或3所述的方法,其特征在于,所述路由请求还包括截止时间,所述忙碌时间段和所述空闲时间段均位于所述截止时间之前。The method according to claim 2 or 3, wherein the routing request further comprises a deadline, the busy time period and the idle time period being both before the deadline. 根据权利要求1至4任一项所述的方法,其特征在于,在所述网络的任一路由规则 中同一时刻传输的网络流数量不大于1。Method according to any of claims 1 to 4, characterized in that any routing rule in the network The number of network streams transmitted at the same time is not more than 1. 一种网络控制装置,其特征在于,包括:A network control device, comprising: 接收模块,用于接收发送端发送的路由请求,所述路由请求包括需要在网络中进行传输的网络流的目的地址以及源地址,所述源地址为所述发送端的网络地址,所述目的地址为所述网络流的接收端的网络地址;a receiving module, configured to receive a routing request sent by the sending end, where the routing request includes a destination address and a source address of a network flow that needs to be transmitted in the network, where the source address is a network address of the sending end, and the destination address is a network address of the receiving end of the network stream; 备选路由规则计算模块,用于计算所述网络中所述目的地址和所述源地址之间最短的N个备选路由规则;An alternative routing rule calculation module, configured to calculate a shortest N candidate routing rules between the destination address and the source address in the network; 目标路由规则选择模块,用于根据所述N个备选路由规则上的交换设备在不同时间段的工作状态以及所述交换设备的端口在不同时间段的工作状态,在所述N个备选路由规则中选择能耗增量最小的目标路由规则并确定发送时刻,其中,在所述发送时刻,所述目标路由规则上处于忙碌状态的交换设备数量最多,并且在所述目标路由规则上的每一交换机的目标端口均处于空闲状态,所述目标端口为所述网络流需要使用的端口;a target routing rule selection module, configured to: according to the working state of the switching device on the N candidate routing rules in different time periods and the working state of the port of the switching device in different time periods, in the N candidates The routing rule selects a target routing rule with the smallest energy consumption increment and determines a sending time, wherein, at the sending time, the number of switching devices that are in a busy state on the target routing rule is the largest, and the target routing rule is The target port of each switch is in an idle state, and the target port is a port that the network stream needs to use; 发送模块,用于将所述目标路由规则和所述发送时刻发送至所述发送端,以使得所述发送端在所述发送时刻通过所述目标路由规则将所述网络流发送至所述接收端。a sending module, configured to send the target routing rule and the sending moment to the sending end, so that the sending end sends the network stream to the receiving by using the target routing rule at the sending moment end. 根据权利要求6所述的装置,其特征在于,所述目标路由规则选择模块,用于:The device according to claim 6, wherein the target routing rule selection module is configured to: 根据所述N个备选路由规则上的交换设备在不同时间段的工作状态获取所述N个备选路由规则中的每一备选路由规则上的每一交换设备的忙碌时间段和空闲时间段,所述忙碌时间段为所述交换设备处于忙碌状态的时间段,所述空闲时间段为所述交换设备处于空闲状态的时间段;Obtaining a busy time period and an idle time of each switching device on each of the N candidate routing rules according to the working state of the switching device on the N candidate routing rules in different time periods And the busy time period is a time period in which the switching device is in a busy state, and the idle time period is a time period in which the switching device is in an idle state; 根据所述忙碌时间段和所述空闲时间段确定每一备选路由规则的多个重合时间段,其中,在每一所述重合时间段中具有至少一个交换设备处于忙碌状态;Determining, according to the busy time period and the idle time period, a plurality of coincidence time periods of each candidate routing rule, wherein at least one switching device is in a busy state in each of the overlapping time periods; 根据所述交换设备的端口在不同时间段的工作状态在多个重合时间段中选择目标重合时间段,其中,在所述目标重合时间段中具有数量最多的交换设备处于忙碌状态,并且在所述目标重合时间段中与所述目标重合时间对应的备选路由规则上的每一交换设备中的目标端口均处于空闲状态;Selecting a target coincidence time period in a plurality of coincidence time periods according to an operating state of the port of the switching device in different time periods, wherein the switching device having the largest number among the target coincidence time periods is in a busy state, and The target port in each switching device on the alternate routing rule corresponding to the target coincidence time in the target coincidence period is in an idle state; 将所述目标重合时间段对应的备选路由规则作为所述能耗增量最小的目标路由规则,并在所述目标重合时间段内选择所述发送时刻。The candidate routing rule corresponding to the target coincidence period is used as the target routing rule with the smallest energy consumption increment, and the sending moment is selected within the target coincidence period. 根据权利要求7所述的装置,其特征在于,所述目标路由规则选择模块,用于:The device according to claim 7, wherein the target routing rule selection module is configured to: 根据以下等式获取所述发送时刻:The sending moment is obtained according to the following equation: t0=t-f/2Bt 0 =tf/2B 其中,t是所述目标重合时间段的中心时刻,f是所述网络流的大小,B是所述目标路由规则上的交换设备的带宽,t0是所述发送时刻。Where t is the central time of the target coincidence period, f is the size of the network flow, B is the bandwidth of the switching device on the target routing rule, and t 0 is the transmission time. 根据权利要求7或8所述的装置,其特征在于,所述路由请求还包括截止时间,所述忙碌时间段和所述空闲时间段均位于所述截止时间之前。The apparatus according to claim 7 or 8, wherein the routing request further comprises a deadline, and the busy period and the idle period are both before the deadline. 根据权利要求6至9任一项所述的装置,其特征在于,在所述网络的任一路由规则中同一时刻传输的网络流数量不大于1。The apparatus according to any one of claims 6 to 9, characterized in that the number of network streams transmitted at the same time in any routing rule of the network is not more than one. 一种主机,其特征在于,包括存储器和处理器,所述存储器存储有程序指令,所述处理器运行所述程序指令以执行权利要求1至5任一项所述的方法。 A host characterized by comprising a memory and a processor, the memory storing program instructions, the processor running the program instructions to perform the method of any one of claims 1 to 5.
PCT/CN2017/112983 2017-11-25 2017-11-25 Network stream transmission control method, and relevant apparatus and device Ceased WO2019100355A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/112983 WO2019100355A1 (en) 2017-11-25 2017-11-25 Network stream transmission control method, and relevant apparatus and device
CN201780097201.XA CN111373697B (en) 2017-11-25 2017-11-25 Network stream transmission control method and related apparatus and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/112983 WO2019100355A1 (en) 2017-11-25 2017-11-25 Network stream transmission control method, and relevant apparatus and device

Publications (1)

Publication Number Publication Date
WO2019100355A1 true WO2019100355A1 (en) 2019-05-31

Family

ID=66631756

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/112983 Ceased WO2019100355A1 (en) 2017-11-25 2017-11-25 Network stream transmission control method, and relevant apparatus and device

Country Status (2)

Country Link
CN (1) CN111373697B (en)
WO (1) WO2019100355A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102326361A (en) * 2011-08-10 2012-01-18 华为技术有限公司 Data flow transmission method, apparatus and system
CN102413509A (en) * 2011-11-09 2012-04-11 中国科学院上海微系统与信息技术研究所 Construction method of time-delay-constrained energy consumption balance data acquisition tree in WSN (Wireless Sensor Network)
EP3253011A2 (en) * 2013-02-01 2017-12-06 Telefonaktiebolaget LM Ericsson (PUBL) Method and system of shortest path bridging (spb) enhanced resilience with loop mitigation

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8842574B2 (en) * 2010-11-19 2014-09-23 Marvell Israel (M.I.S.L) Ltd. Energy efficient networking
US10091294B2 (en) * 2014-08-13 2018-10-02 Vmware, Inc. Networking component management in host computing systems in a virtual computing environment
CN105392170A (en) * 2015-09-30 2016-03-09 联想(北京)有限公司 Information processing method and electronic device
CN105429766A (en) * 2015-11-04 2016-03-23 上海科技网络通信有限公司 Energy consumption optimization method of cloud computing data center
CN105429876A (en) * 2015-11-04 2016-03-23 上海斐讯数据通信技术有限公司 SDN-based data forwarding method
CN106411770B (en) * 2016-09-08 2019-05-31 重庆邮电大学 A kind of data center network energy-saving routing algorithm based on SDN framework
CN106533743A (en) * 2016-10-24 2017-03-22 上海斐讯数据通信技术有限公司 SDN-based full-network low-energy-consumption routing method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102326361A (en) * 2011-08-10 2012-01-18 华为技术有限公司 Data flow transmission method, apparatus and system
CN102413509A (en) * 2011-11-09 2012-04-11 中国科学院上海微系统与信息技术研究所 Construction method of time-delay-constrained energy consumption balance data acquisition tree in WSN (Wireless Sensor Network)
EP3253011A2 (en) * 2013-02-01 2017-12-06 Telefonaktiebolaget LM Ericsson (PUBL) Method and system of shortest path bridging (spb) enhanced resilience with loop mitigation

Also Published As

Publication number Publication date
CN111373697B (en) 2021-10-22
CN111373697A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN109981753B (en) Software-defined edge computing system and resource allocation method for Internet of things
US11894978B1 (en) Computing power scheduling methods, apparatus, electronic devices and storage media
CN113485822A (en) Memory management method, system, client, server and storage medium
CN106537348A (en) A power aware job scheduler and manager for a data processing system
US20130182575A1 (en) Systems And Methods For Automatically Selecting A Communication Channel
CN107454017B (en) A collaborative scheduling method for mixed data flow in cloud data center network
US20180131531A1 (en) Dynamic Power Management
CN105159775A (en) Load balancer based management system and management method for cloud computing data center
WO2014026613A1 (en) Network bandwidth distribution method and terminal
CN113949665B (en) Method, device, chip and computer storage medium for determining flow control threshold
WO2015101089A1 (en) Large-scale cluster management method, device and system
CN105302497A (en) Cache management method and cache management system
WO2021083196A1 (en) Network traffic migration method and apparatus
US20140047260A1 (en) Network management system, network management computer and network management method
BR102012028349B1 (en) METHOD TO MANAGE MOBILE RADIO RESOURCES TO IMPROVE PACKAGE RECEPTION
WO2015067144A1 (en) Method and apparatus for software disposition
CN109873772A (en) Flow scheduling method, device, computer equipment and storage medium based on stable matching
CN116318585A (en) Data transmission method and device, terminal, storage medium
WO2019100355A1 (en) Network stream transmission control method, and relevant apparatus and device
CN114006910B (en) Information synchronization method and device
CN115643209A (en) SDDCN energy-saving routing method, system, equipment and storage medium based on bandwidth matching
WO2026017051A1 (en) Scheduling method and apparatus, gateway, storage medium, and computer program product
WO2014000294A1 (en) Service channel allocation method and device
CN112787844B (en) Flexe client state processing method and device, network equipment and readable storage medium
CN101651572B (en) Method and device for achieving topology search in network management system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17933065

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17933065

Country of ref document: EP

Kind code of ref document: A1