CN106302217A - A kind of data link management method and device - Google Patents
A kind of data link management method and device Download PDFInfo
- Publication number
- CN106302217A CN106302217A CN201510270986.9A CN201510270986A CN106302217A CN 106302217 A CN106302217 A CN 106302217A CN 201510270986 A CN201510270986 A CN 201510270986A CN 106302217 A CN106302217 A CN 106302217A
- Authority
- CN
- China
- Prior art keywords
- node
- data
- link
- data links
- equal
- 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.)
- Pending
Links
- 238000007726 management method Methods 0.000 title abstract description 38
- 230000004044 response Effects 0.000 claims abstract description 56
- 238000000034 method Methods 0.000 claims abstract description 55
- 238000004891 communication Methods 0.000 claims abstract description 31
- 230000000694 effects Effects 0.000 abstract description 11
- 230000005540 biological transmission Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 3
- 230000001934 delay Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of data link management method and device, relate to communication technical field, in order to improve the energy-saving effect of data center.The method includes: primary nodal point obtains data volume to be sent and/or the bandwidth availability ratio of the N data link connected with secondary nodal point;When the data volume to be sent of the M data link in described N data link is respectively less than the first preset data amount and/or bandwidth availability ratio is respectively less than default utilization rate, described primary nodal point sends link-down request message to described secondary nodal point;Described primary nodal point receives the link-down response message that described secondary nodal point sends, and described link-down response message includes that described secondary nodal point determines the information of the m data link of closedown;Described primary nodal point closes described m data link according to described link-down response message.The technical scheme that the embodiment of the present invention provides may be used for reducing the power consumption of data link.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for managing a data link.
Background
With the development of communication technology, the size of a data center is larger and larger, the power consumption of the data center is more and more, and one percent of power consumption of the data center can save a large amount of electric energy, so that research on how to reduce the power consumption of the data center is more and more popular. In the power consumption of a data center, a considerable portion of the power consumption comes from idle power consumption caused by the idle servers, and a large proportion of the idle power consumption is generated by idle data links between the servers.
Currently, in power management schemes based on the PCIe (PCI-Express) protocol, when a data link is busy (i.e., data is frequently sent over the data link), the data link is at L0Status, at which time, data can be transmitted over the data linkAnd (6) data transmission. When the PCIe device finds that a certain data link between the PCIe device and another PCIe device does not transmit data within a preset time period, the data link enters a low power consumption state by changing the state of a power management state machine corresponding to the data link, and the data link in the low power consumption state cannot transmit data. When the PCIe device receives data sent to another PCIe device, the state of the power management state machine is gradually awakened so that the data link enters L through the low power consumption state0Status.
In the method for reducing power consumption of the data link, when the PCIe device receives data sent to another PCIe device at regular intervals, for example, the PCIe device receives data sent to another PCIe device at every interval of 1 second, the state of the data link transmitting the data is frequently in L0The state and the low power consumption state are switched, so that the energy-saving effect of the data center is poor.
Disclosure of Invention
The embodiment of the invention provides a data link management method and a data link management device, which are used for improving the energy-saving effect of a data center.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a data link management method is provided, including:
the method comprises the steps that a first node obtains the data volume to be sent and/or the bandwidth utilization rate of N data links communicated with a second node; wherein N is more than or equal to 2 and is an integer;
when the data volume to be sent of M data links in the N data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate, the first node sends a link closing request message to the second node; wherein the link shutdown request message includes information of X data links of the M data links that the first node requests the second node to shutdown; m is more than or equal to 2 and less than or equal to N, X is more than or equal to 1 and less than or equal to M, and M, X are integers;
the first node receives a link closing response message sent by the second node, wherein the link closing response message comprises information of m data links determined to be closed by the second node; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer;
and the first node closes the m data links according to the link closing response message.
With reference to the first aspect, in a first possible implementation manner, after the first node receives a link shutdown response message sent by the second node, the method further includes:
the first node updates a network node communication table according to the information of the m data links, wherein the network node communication table comprises the information of the data links for communicating the first node with the second node;
and the first node updates a routing table according to the updated network node communication table, so that the first node transmits data with the second node according to the updated routing table.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, before the first node sends a link shutdown request message to the second node, the method further includes:
the first node reserves data links of at least one data link of the M data links, wherein the network delay is less than a preset delay, and the X data links are data links of the M data links except the reserved data links; or,
the first node sends a data link reservation message to the second node, and is used for requesting the second node to reserve at least one data link which is in K data links and has network delay smaller than preset delay, wherein the X data links are the M data links; the K data links are data links determined by the second node that the data volume to be sent in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate; k is more than or equal to 2 and less than or equal to X; k is an integer.
With reference to the first aspect, the first possible implementation manner of the first aspect, or the second possible implementation manner, in a third possible implementation manner, after the first node closes the m data links according to the link close response message, the method further includes:
when the first node receives data, sent to the second node, of a second preset data volume within a preset time period, the first node starts at least one data link in the m data links;
the first node sends a link opening notification message to the second node to notify the second node to open the at least one data link; wherein the link up notification message includes information of the at least one data link.
With reference to the first aspect, the first possible implementation manner of the first aspect, or the second possible implementation manner, in a fourth possible implementation manner, after the first node closes the m data links according to the link close response message, the method further includes:
the first node receives a link opening notification message sent by the second node; wherein the link opening notification message includes information that the second node notifies at least one of the m data links that are opened;
and the first node opens the at least one data link according to the link opening notification message.
In a second aspect, a data link management method is provided, including:
the second node receives a link closing request message sent by the first node; wherein the link shutdown request message includes information of X data links of the M data links that the first node requests the second node to shutdown; the M data links are data links determined by the first node, in which the data volume to be sent in the N data links communicated with the second node is less than a first preset data volume and/or the bandwidth utilization rate is less than a preset utilization rate; x is more than or equal to 1 and less than or equal to M, M is more than or equal to 2 and less than or equal to N, and N, M, X are integers;
the second node determines to close m data links in the X data links according to the link closing request message; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer;
the second node generates a link closing response message according to the information of the m data links and sends the link closing response message to the first node, so that the first node closes the m data links according to the link closing response message;
the second node closes the m data links.
With reference to the second aspect, in a first possible implementation manner, after the second node determines to close m data links of the X data links according to the link close request message, the method further includes:
the second node updates a network node communication table according to the information of the m data links, wherein the network node communication table comprises the information of the data links of the second node and the first node;
and the second node updates a routing table according to the updated network node communication table, so that the second node transmits data with the first node according to the updated routing table.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the determining, by the second node, to close m data links of the X data links according to the link close request message includes:
the second node counts the data volume to be sent and/or the bandwidth utilization rate of the X data links, and if the data volume to be sent of m data links in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate, the m data links are determined to be closed;
or,
the second node receives a data link reservation message sent by the first node; the second node counts data volume to be sent and/or bandwidth utilization rate of the X data links, if the data volume to be sent of K data links in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate, reserving data links of which the network delay is smaller than the preset delay in at least one K data link, and determining to close m data links except the reserved data links in the K data links; k is more than or equal to 2 and less than or equal to X, and K is an integer.
With reference to the second aspect, the first possible implementation manner of the second aspect, or the second possible implementation manner, in a third possible implementation manner, after the second node closes the m data links, the method further includes:
the second node receives a link opening notification message sent by the first node; wherein, the link starting notification message includes information of at least one data link in the m data links which are started by the first node;
and the second node opens the at least one data link according to the link opening notification message.
With reference to the second aspect, the first possible implementation manner of the second aspect, or the second possible implementation manner, in a fourth possible implementation manner, after the second node closes the m data links, the method further includes:
when the second node receives data, sent to the first node, of a second preset data volume within a preset time period, the second node starts at least one data link in the m data links;
the second node sends a link opening notification message to the first node to notify the first node to open the at least one data link; wherein the link up notification message includes information of the at least one data link.
In a third aspect, a first node is provided, including:
the acquiring unit is used for acquiring the data volume to be sent and/or the bandwidth utilization rate of N data links communicated with the second node; wherein N is more than or equal to 2 and is an integer;
a sending unit, configured to send a link shutdown request message to the second node when data volumes to be sent of M data links in the N data links are all smaller than a first preset data volume and/or bandwidth utilization rates are all smaller than a preset utilization rate; wherein the link shutdown request message includes information of X data links of the M data links that the first node requests the second node to shutdown; m is more than or equal to 2 and less than or equal to N, X is more than or equal to 1 and less than or equal to M, and M, X are integers;
a receiving unit, configured to receive a link shutdown response message sent by the second node, where the link shutdown response message includes information of m data links determined to be shutdown by the second node; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer;
and the execution unit is used for closing the m data links according to the link closing response message.
With reference to the third aspect, in a first possible implementation manner, the first node further includes:
a first updating unit, configured to update a network node connectivity table according to information of the m data links, where the network node connectivity table includes information of data links through which the first node and the second node are communicated;
and the second updating unit is used for updating a routing table according to the updated network node communication table so that the first node transmits data with the second node according to the updated routing table.
With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner,
the first node further comprises a reservation unit, wherein the reservation unit is used for reserving a data link which is in at least one of the M data links and has network delay smaller than preset delay, and the X data links are data links except the reserved data link in the M data links; or,
the sending unit is further configured to send a data link reservation message to the second node, where the data link reservation message is used to request the second node to reserve a data link, of the at least one K data links, where network delay is less than a preset delay, and the X data links are the M data links; the K data links are data links determined by the second node that the data volume to be sent in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate; k is more than or equal to 2 and less than or equal to X; k is an integer.
With reference to the third aspect, the first possible implementation manner, or the second possible implementation manner of the third aspect, in a third possible implementation manner,
the execution unit is further configured to open at least one data link of the m data links when the first node receives, within a preset time period, data of a second preset data volume that is sent to the second node;
the sending unit is further configured to send a link opening notification message to the second node, and notify the second node to open the at least one data link; wherein the link up notification message includes information of the at least one data link.
With reference to the third aspect, the first possible implementation manner, or the second possible implementation manner of the third aspect, in a fourth possible implementation manner,
the receiving unit is further configured to receive a link start notification message sent by the second node; wherein the link opening notification message includes information that the second node notifies at least one of the m data links that are opened;
the execution unit is further configured to open the at least one data link according to the link opening notification message.
In a fourth aspect, a second node is provided, including:
a receiving unit, configured to receive a link shutdown request message sent by a first node; wherein the link shutdown request message includes information of X data links of the M data links that the first node requests the second node to shutdown; the M data links are data links determined by the first node, in which the data volume to be sent in the N data links communicated with the second node is less than a first preset data volume and/or the bandwidth utilization rate is less than a preset utilization rate; x is more than or equal to 1 and less than or equal to M, M is more than or equal to 2 and less than or equal to N, and N, M, X are integers;
a determining unit, configured to determine to close m data links of the X data links according to the link closing request message; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer;
a generating unit, configured to generate a link closing response message according to the information of the m data links;
a sending unit, configured to send the link shutdown response message to the first node, so that the first node shuts down the m data links according to the link shutdown response message;
an execution unit to close the m data links.
With reference to the fourth aspect, in a first possible implementation manner, the second node further includes:
a first updating unit, configured to update a network node connectivity table according to information of the m data links, where the network node connectivity table includes information of data links through which the second node communicates with the first node;
and the second updating unit is used for updating a routing table according to the updated network node communication table so that the second node transmits data with the first node according to the updated routing table.
With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner,
the determining unit is specifically configured to count data volume to be sent and/or bandwidth utilization rate of the X data links, and determine to close m data links if the data volume to be sent of m data links in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate;
or,
the receiving unit is further configured to receive a data link reservation message sent by the first node; the determining unit is specifically configured to count data volume to be sent and/or bandwidth utilization rate of the X data links, reserve at least one data link of which network delay is smaller than a preset delay, and determine to close m data links of the K data links except the reserved data link, if the data volume to be sent of the K data links of the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate; k is more than or equal to 2 and less than or equal to X, and K is an integer.
With reference to the fourth aspect, the first possible implementation manner or the second possible implementation manner of the fourth aspect, in a third possible implementation manner,
the receiving unit is further configured to receive a link start notification message sent by the first node; wherein, the link starting notification message includes information of at least one data link in the m data links which are started by the first node;
the execution unit is further configured to open the at least one data link according to the link opening notification message.
With reference to the fourth aspect, the first possible implementation manner or the second possible implementation manner of the fourth aspect, in a fourth possible implementation manner,
the execution unit is further configured to open at least one data link of the m data links when the second node receives, within a preset time period, data of a second preset data volume that is sent to the first node;
the sending unit is further configured to send, by the second node, a link opening notification message to the first node, and notify the first node to open the at least one data link; wherein the link up notification message includes information of the at least one data link.
In a fifth aspect, a data link management system is provided, which includes: a first node according to any of the third aspects, and/or a second node according to any of the fourth aspects.
In the method and the device provided by the embodiment of the invention, the first node can count the data volume to be sent and/or the bandwidth utilization rate of the data link communicated with the second node, and together with the second node, the first node determines to close a part of the data link of which the data volume to be sent is smaller than the first preset data volume and/or the bandwidth utilization rate is smaller than the preset utilization rate, and when the first node receives data transmitted by the closed data link and the second node at a time every long time, the certain data link and the second node are closed at a timeThe data link will not be at L0The state and the low power consumption state are frequently switched, so that the energy-saving effect of the data center can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of a data link management method according to an embodiment of the present invention;
fig. 2 is a flowchart of another data link management method according to an embodiment of the present invention;
fig. 3 is a flowchart of another data link management method according to an embodiment of the present invention;
fig. 4 is a flowchart of another data link management method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a first node according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another first node according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another first node according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a second node according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another second node according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another second node according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method provided by the embodiment of the invention can be used for reducing the power consumption of the data center. Data centers typically include racks, cabinets, servers, etc. that may transmit data over data links. The first node and the second node in the embodiment of the invention both refer to network nodes, belong to a server, do not need to pass through other network nodes when the first node and the second node transmit data in the same network, and can directly transmit data through a plurality of data links communicated between the first node and the second node.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" herein means two or more.
Example one
An embodiment of the present invention provides a data link management method, as shown in fig. 1, including:
101. the method comprises the steps that a first node obtains the data volume to be sent and/or the bandwidth utilization rate of N data links communicated with a second node; wherein N is not less than 2 and is an integer.
Wherein, one data link corresponds to one data volume to be sent and one bandwidth utilization rate.
In step 101, in a specific implementation, the first node may count, in real time, the data volume to be sent and/or the bandwidth utilization rate of the data link, and may also count the data volume to be sent and/or the bandwidth utilization rate of the data link within a certain time period.
102. When the data volume to be sent of M data links in the N data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate, the first node sends a link closing request message to the second node; the link closing request message comprises information of X data links in M data links which are requested to be closed by the first node to the second node; m is more than or equal to 2 and less than or equal to N, X is more than or equal to 1 and less than or equal to M, and M, X are integers.
Specifically, when the data volume to be sent of the data link is smaller than the first preset data volume and/or the bandwidth utilization rate is smaller than the preset utilization rate, it is indicated that the data transmitted through the data link is less. The first preset data volume and the preset utilization rate may be determined according to an actual situation, which is not limited in the embodiment of the present invention.
The information of the data link may specifically be a number of the data link, or may also be other information that can be used to distinguish different data links.
103. The first node receives a link closing response message sent by the second node, wherein the link closing response message comprises information of m data links determined to be closed by the second node; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer.
104. And the first node closes the m data links according to the link closing response message.
In the embodiments of the present invention, closing a certain data link refers to making the certain data link in a state where it is unable to transmit data.
Step 104, in the specific implementation, the first node includes a power management state machine, a numberThe data link may correspond to a power management state machine, and when the first node determines to close a certain data link, the state of the power management state machine corresponding to the data link may be controlled such that the state of the data link is changed from L0The state switches to a low power state, thereby shutting down the data link.
In the method provided by the embodiment of the present invention, the first node may count the data volume to be sent and/or the bandwidth utilization rate of the data link communicated with the second node, and determine, together with the second node, that part of the data links whose data volume to be sent is smaller than the first preset data volume and/or whose bandwidth utilization rate is smaller than the preset utilization rate are closed, and when the first node receives data transmitted by the closed data link and the second node at a long time interval, the data link will not be at L0The state and the low power consumption state are frequently switched, so that the energy-saving effect of the data center can be improved.
Optionally, before step 102, the X data links may be determined in any one of the following two ways:
the first method is as follows: the first node reserves data links of at least one M data links, wherein the network delay is less than the preset delay, and X data links are data links of the M data links except the reserved data links.
The second method comprises the following steps: the method comprises the steps that a first node sends a data link reservation message to a second node, and the data link reservation message is used for requesting the second node to reserve at least one data link which is in K data links and has network delay smaller than preset delay, wherein the X data links are M data links; the K data links are data links which are determined by the second node and have the data volume to be sent smaller than a first preset data volume and/or the bandwidth utilization rate smaller than a preset utilization rate in the X data links; k is more than or equal to 2 and less than or equal to X; k is an integer.
In the first embodiment, the first node needs to calculate network delays of M data links (one data link corresponds to one network delay), determine a data link with a network delay less than a preset delay, and reserve at least one data link. In addition, after the first node calculates the network delay of the M data links, the first node may also determine the reserved data links according to other preset conditions, for example, the other preset conditions may be: the network delay of each reserved data link is smaller than the network delay of other data links except the reserved data link in the M data links.
Specifically, the number of reserved data links determined by the first node may be determined according to actual conditions, for example, if the sum of the data amounts to be sent of the M data links is large, multiple data links may be reserved, and if the sum of the data amounts to be sent of the M data links is small, one data link may be reserved.
In the method, the network delay of the reserved data link is short, and the transmission efficiency of the data is improved.
Optionally, after step 103, the method may further include the following steps 11) to 12):
11) and the first node updates a network node communication table according to the information of the m data links, wherein the network node communication table comprises the information of the data links for communicating the first node with the second node.
12) And the first node updates the routing table according to the updated network node communication table, so that the first node transmits data with the second node according to the updated routing table.
It should be noted that the optional method may be executed before or after step 104, or may be executed simultaneously with step 104; preferably, this optional method execution is performed prior to step 104 or concurrently with step 104.
Specifically, the second node may directly update its network node connection table after determining the m data links that are closed and update its routing table according to the updated network node connection table, in this case, after the first node updates the routing table, it may be ensured that the first node and the second node transmit data through the data links that are not closed according to their respective updated routing tables.
Optionally, after step 104, the method may further include the following steps 21) to 22):
21) when the first node receives data, sent to the second node, of a second preset data volume within a preset time period, the first node opens at least one data link of the m data links.
22) The first node sends a link opening notification message to the second node to notify the second node to open at least one data link; wherein the link up notification message includes information of at least one data link.
Specifically, after step 22), the first node may send data to the second node via the at least one data link that is open, or the at least one data link that is open and the data link that is not closed.
Specifically, when the first node receives data of a second preset data amount sent to the second node within a preset time period, the data may not be sent in time by using the data link that is not closed, and at this time, the closed data link may be opened.
Optionally, after step 104, the method may further include the following steps 31) to 32):
31) a first node receives a link opening notification message sent by a second node; the link opening notification message includes information of at least one data link of the m data links that the second node notifies of opening.
32) And the first node opens at least one data link according to the link opening notification message.
In this case, when the second node receives, within the preset time period, the data of the second preset data amount sent to the first node, the second node may also send a link opening notification message to the first node, so that the first node opens at least one data link of the m closed data links.
In addition, when the first node determines to open a certain data link, the state of the power management state machine corresponding to the data link can be controlled to enable the data link to be switched from the low power consumption state to the L state0Status.
It should be noted that once the state of one or more data links in the N data links changes from the open state to the closed state or from the closed state to the open state, both the first node and the second node need to update their own network node connectivity table and routing table in time, so as to ensure correct transmission of data.
It should be noted that, in the method for reducing power consumption of a data link described in the background art, when a PCIe device receives data sent to another PCIe device, the PCIe device gradually wakes up the state of the power management state machine so that the data link sending the data enters L0Status. Low power consumption state can be further divided into L0s、L1、L2And L3The low power consumption states can be arranged as L according to the sequence of the power consumption of the data link from large to small0s>L1>L2>L3. It can be seen that when the data link enters L3In state, the power consumption of the data link is minimal.
Specifically, when the data link is in the low power consumption state L3If the PCIe device receives data sent to another PCIe device, the state of the power management state machine is awakened to ensure that the state of the data link is L3State to L2State to L1State is returned to L0sState, finally enter L0Status. Thus, when a PCIe device needs to send data to another PCIe device through the data link, the PCIe device needs to wait until the data link is awakened, and the data link is awakened from the low power consumption state to L0The state requires a longer delay. In the data link management method provided in the embodiment of the present invention, after the data link satisfying the condition is closed, if the data amount of the data sent to the second node and received by the first node is larger than the data amount of the data sent to the second nodeWhen the data transmission is small, the data transmission can be carried out between the first node and the second node through the data link which is not closed, so that the problem does not exist.
Example two
An embodiment of the present invention provides a data link management method, as shown in fig. 2, including:
201. the second node receives a link closing request message sent by the first node; the link closing request message comprises information of X data links in M data links which are requested to be closed by the first node to the second node; the M data links are data links which are determined by the first node and are communicated with the second node, wherein the data volume to be sent in the N data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate; x is more than or equal to 1 and less than or equal to M, M is more than or equal to 2 and less than or equal to N, and N, M, X are integers.
It should be noted that, for the explanation of the embodiments of the present invention, reference may be made to the above-mentioned embodiments.
202. The second node determines to close m data links in the X data links according to the link closing request message; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer.
Optionally, when implemented specifically, step 202 may be implemented in any one of the following two ways:
in the first mode, the second node counts the data volume to be sent and/or the bandwidth utilization rate of the X data links, and determines to close the m data links if the data volume to be sent of m data links in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate.
In the second mode, the second node receives a data link reservation message sent by the first node; the second node counts the data volume to be sent and/or the bandwidth utilization rate in the X data links, if the data volume to be sent of K data links in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate, reserving the data links of which the network delay is smaller than the preset delay in at least one K data links, and determining to close m data links except the reserved data links in the K data links; k is more than or equal to 2 and less than or equal to X, and K is an integer.
In the second mode, in a specific implementation, the second node needs to calculate network delays of the K data links (one data link corresponds to one network delay), determine a data link with a network delay smaller than a preset delay, and reserve at least one of the data links. In addition, after the second node calculates the network delay in the K data links, the second node may also determine the reserved data links according to other preset conditions, for example, the other preset conditions may be: the network delay of each reserved data link is less than the network delay of other data links except the reserved data link in the K data links.
Specifically, the number of reserved data links determined by the second node may be determined according to actual conditions, for example, if the sum of the data amounts to be sent of the K data links is large, multiple data links may be reserved, and if the sum of the data amounts to be sent of the K data links is small, one data link may be reserved. In the method, the network delay of the reserved data link is short, and the transmission efficiency of the data is improved.
203. And the second node generates a link closing response message according to the information of the m data links and sends the link closing response message to the first node, so that the first node closes the m data links according to the link closing response message.
204. The second node closes the m data links.
In the specific implementation of step 204, the second node includes a power management state machine, one data link may correspond to one power management state machine, and when the second node determines to close a certain data link, the state of the power management state machine corresponding to the data link may be controlled so that the data link is enabledFrom L to L0The state switches to a low power state, thereby shutting down the data link.
In the embodiment of the present invention, the execution sequence of step 203 and step 204 is not sequential.
In the method provided by the embodiment of the present invention, the second node may determine, through the received information of the data link included in the link shutdown request message sent by the first node, that a part of the data links to be sent, of which the data amount is smaller than the first preset data amount and/or the bandwidth utilization rate is smaller than the preset utilization rate, is shutdown together with the first node, and when the first node receives data transmitted by the second node through a certain data link that is shutdown at a time every longer time, the certain data link may not be in L0The state and the low power consumption state are frequently switched, so that the energy-saving effect of the data center can be improved.
Optionally, after step 202, the method may further include the following steps 41) to 42):
41) and the second node updates a network node communication table according to the information of the m data links, wherein the network node communication table comprises the information of the data links communicated with the first node by the second node.
42) And the second node updates the routing table according to the updated network node communication table, so that the second node transmits data with the first node according to the updated routing table.
It should be noted that the alternative method may be executed before and after step 204, or may be executed simultaneously with step 204; preferably, this optional method execution is performed prior to step 204 or concurrently with step 204.
Specifically, the second node may directly update its network node connection table after determining the m data links that are closed and update its routing table according to the updated network node connection table, in this case, after the first node updates the routing table, it may be ensured that the first node and the second node transmit data through the data links that are not closed according to their respective updated routing tables.
Optionally, after step 204, the method may further include the following steps 51) -52):
51) the second node receives a link opening notification message sent by the first node; the link opening notification message includes information of at least one data link of the m data links that the first node notifies to open.
52) And the second node opens at least one data link according to the link opening notification message.
In this case, when the first node receives data of the second preset data volume, which is sent to the second node, within the preset time period, the first node sends a link opening notification message to the second node, so that the second node opens at least one data link of the m closed data links.
Optionally, after step 204, the method may further include the following steps 61) -62):
61) and when the second node receives data of a second preset data volume sent to the first node in a preset time period, the second node opens at least one data link in the m data links.
62) The second node sends a link opening notification message to the first node to notify the first node to open at least one data link; wherein the link up notification message includes information of at least one data link.
Specifically, after step 62), the second node may send data to the first node via the at least one data link that is open, or the at least one data link that is open and the data link that is not closed.
Specifically, when the second node receives data of a second preset data amount sent to the first node within a preset time period, the data may not be sent in time by using the data link that is not closed, and at this time, the closed data link may be opened.
In addition, when the second node determines to open a certain data link, the state of the power management state machine corresponding to the data link can be controlled to enable the data link to be switched from the low power consumption state to the L state0Status.
EXAMPLE III
The embodiment of the present invention is an exemplary description of the data link management method provided in the first embodiment and the second embodiment, and for relevant explanation in the embodiment of the present invention, reference may be made to the above-mentioned embodiment, as shown in fig. 3, where the method includes:
301. the first node counts the data volume to be sent and/or the bandwidth utilization rate of N data links communicated with the second node.
Specifically, the first node may determine its own amount of data to be sent by querying its own cached amount of data to be sent, and the data link with the smaller amount of data to be sent is idle. The first node may calculate the bandwidth utilization of a certain data link according to the amount of data sent to the second node on the data link and the amount of received data fed back by the second node, where the data link with the smaller bandwidth utilization is more idle.
302. When the data volume to be sent of M data links in the N data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate, the first node sends a data link reservation message and a link closing request message to the second node; the data link reservation message is used for enabling the second node to reserve one data link with shortest network delay in the M data links; the link shutdown request message includes information of M data links that the first node requests shutdown from the second node.
The information of the data link may specifically be a number of the data link.
303. And the second node counts the data volume to be sent and/or the bandwidth utilization rate of the M data links according to the received link closing request message.
304. And if the data volume to be sent of K data links in the M data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate, the second node calculates the network delay of the K data links.
For example, the second node may send a data packet for calculating the network delay on the data link, the second node sends a feedback message immediately after receiving the data packet, and the first node calculates the network delay of the data link according to a time point of sending the data packet and a time point of receiving the feedback message.
305. The second node reserves one data link with shortest network delay in the K data links according to the data link reservation message, and determines the rest data links in the K data links as m data links which are determined to be closed; wherein m is K-1.
It should be noted that the network delay of the reserved data link is short, which is beneficial to improving the transmission efficiency of data.
306. The second node generates a link closing response message and sends the link closing response message to the first node; wherein the link close response message includes information of the m data links that the second node determines to be closed.
307. And the second node updates the network node communication table of the second node according to the information of the m data links which are determined to be closed, and updates the routing table of the second node according to the updated network node communication table.
308. And the second node closes the m data links according to the information of the m data links determined to be closed.
It should be noted that, in the embodiment of the present invention, the execution sequence of steps 307 and 308 is not limited, and preferably, steps 307 and 308 are executed simultaneously, or step 307 is executed before step 308.
309. And the first node updates the network node communication table of the first node according to the information of the m data links included in the received link closing response message, and updates the routing table of the first node according to the updated network node communication table.
310. And the first node closes the m data links according to the information of the m data links included in the received link closing response message.
It should be noted that the execution order of steps 309 and 310 is not limited in the embodiment of the present invention, and preferably, steps 309 and 310 are executed simultaneously, or step 309 is executed before step 310. In addition, the second node, while performing steps 307 and 308, the first node may perform steps 309 and 310, which are not conflicting.
Specifically, the first node and the second node include power management state machines, one data link may correspond to one power management state machine, and when the first node or the second node determines to close a certain data link, the state of the power management state machine corresponding to the data link may be controlled so that the state of the data link is changed from L to L0The state switches to a low power state, thereby shutting down the data link.
311. And the first node transmits data with the second node according to the updated routing table.
Specifically, after the first node and the second node update the network node connection table and update the routing table according to the updated network node connection table, the first node or the second node may perform data transmission on the data link that is not closed according to the respective updated routing tables.
The data links which are not closed are other data links except the M data links in the M data links.
When the first node receives data, which is sent to the second node, in a second preset data amount within a preset time period, the data may not be sent in time by using the data link that is not closed, in this case, as shown in fig. 4, the method may further include:
401. the first node opens at least one data link of the m data links.
402. The first node sends a link opening notification message to the second node; the link opening notification message includes information of at least one data link of the m data links that the first node notifies of opening.
403. And the second node opens at least one data link in the m data links according to the received link opening notification message.
Specifically, when the first node or the second node determines to open a certain data link, the state of the power management state machine corresponding to the data link may be controlled so that the data link is switched from the low power consumption state to the L state0Status.
Of course, when the second node receives a second preset amount of data sent to the first node within a preset time period, the second node may also perform steps 401 and 402, and the first node performs step 403.
It should be noted that once the state of one or more data links in the N data links changes from the open state to the closed state or from the closed state to the open state, both the first node and the second node need to update their own network node connectivity table and routing table in time, so as to ensure correct transmission of data.
In the method provided by the embodiment of the present invention, the first node may count the data volume to be sent and/or the bandwidth utilization rate of the data link communicated with the second node, and determine, together with the second node, that part of the data links whose data volume to be sent is smaller than the first preset data volume and/or whose bandwidth utilization rate is smaller than the preset utilization rate are closed, and when the first node receives data transmitted by the closed data link and the second node at a long time interval, the data link will not be at L0The state and the low power consumption state are frequently switched, so that the energy-saving effect of the data center can be improved.
Example four
As shown in fig. 5, an embodiment of the present invention provides a first node 50, configured to implement the data link management method shown in fig. 1, where the first node 50 includes:
an obtaining unit 501, configured to obtain a data amount to be sent and/or a bandwidth utilization rate of N data links connected to a second node; wherein N is more than or equal to 2 and is an integer;
a sending unit 502, configured to send a link shutdown request message to a second node when data volumes to be sent of M data links in the N data links are all smaller than a first preset data volume and/or bandwidth utilization rates are all smaller than a preset utilization rate; wherein the link close request message includes information of X data links of the M data links that the first node 50 requests the second node to close; m is more than or equal to 2 and less than or equal to N, X is more than or equal to 1 and less than or equal to M, and M, X are integers;
a receiving unit 503, configured to receive a link shutdown response message sent by the second node, where the link shutdown response message includes information of m data links determined to be shutdown by the second node; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer;
an executing unit 504, configured to close the m data links according to the link close response message.
Optionally, as shown in fig. 6, the first node 50 may further include:
a first updating unit 505, configured to update a network node connectivity table according to information of the m data links, where the network node connectivity table includes information of data links through which the first node 50 communicates with the second node;
a second updating unit 506, configured to update the routing table according to the updated network node connectivity table, so that the first node 50 transmits data with the second node according to the updated routing table.
Optionally, as shown in fig. 6, the first node 50 further includes a reserving unit 507, where the reserving unit is configured to reserve a data link, of the at least one M data links, of which the network delay is smaller than a preset delay, and X data links are data links, of the M data links, except for the reserved data link; or,
a sending unit 502, configured to send a data link reservation message to the second node, where the data link reservation message is used to request the second node to reserve at least one data link of the K data links, where network delay is less than a preset delay, and X data links are M data links; the K data links are data links which are determined by the second node and have the data volume to be sent smaller than a first preset data volume and/or the bandwidth utilization rate smaller than a preset utilization rate in the X data links; k is more than or equal to 2 and less than or equal to X; k is an integer.
Optionally, the executing unit 504 is further configured to open at least one data link of the m data links when the first node 50 receives, within a preset time period, data of a second preset data volume that is sent to the second node; a sending unit 502, configured to send a link start notification message to the second node, and notify the second node to start at least one data link; wherein the link up notification message includes information of at least one data link.
Optionally, the receiving unit 503 is further configured to receive a link start notification message sent by the second node; the link opening notification message comprises information of at least one data link in the m data links which are opened and notified by the second node; the execution unit 504 is further configured to open at least one data link according to the link opening notification message.
The first node provided in the embodiment of the present invention may count the amount of data to be sent and/or the bandwidth utilization rate of the data link communicated with the second node, and determine, together with the second node, that a part of the data link whose amount of data to be sent is smaller than the first preset amount of data and/or whose bandwidth utilization rate is smaller than the preset utilization rate is closed, and when the first node receives data transmitted by the second node through a certain data link that is closed once every longer time, the certain data link may not be L-configured0State and low power consumption stateAnd therefore, the energy-saving effect of the data center can be improved.
EXAMPLE five
In terms of hardware implementation, each module in the fourth embodiment may be embedded in a hardware form or embedded in a processor independent of the first node, or may be stored in a memory of the first node in a software form, so that the processor calls and executes operations corresponding to each module, where the processor may be a Central Processing Unit (CPU), a microprocessor, a single chip microcomputer, or the like.
As shown in fig. 7, an embodiment of the present invention provides a first node 70, configured to implement the data link management method shown in fig. 1, where the first node 70 includes: a memory 701, a processor 702, a transmitter 703, a receiver 704, and a bus system 705;
the memory 701, the processor 702, the transmitter 703 and the receiver 704 are coupled together by a bus system 705, wherein the memory 701 may comprise a random access memory or may further comprise a non-volatile memory, such as at least one disk memory. The bus system 705 may be an ISA bus, PCI bus, EISA bus, or the like. The bus system 705 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The memory 701 is used to store a set of codes for controlling the processor 702 to perform the following actions: acquiring the data volume to be sent and/or the bandwidth utilization rate of N data links communicated with a second node; wherein N is more than or equal to 2 and is an integer;
a transmitter 703, configured to send a link shutdown request message to a second node when data volumes to be sent of M data links in the N data links are all smaller than a first preset data volume and/or bandwidth utilization rates are all smaller than a preset utilization rate; wherein the link shutdown request message includes information of X data links of the M data links that the first node 70 requests the second node to shutdown; m is more than or equal to 2 and less than or equal to N, X is more than or equal to 1 and less than or equal to M, and M, X are integers;
a receiver 704, configured to receive a link shutdown response message sent by the second node, where the link shutdown response message includes information of the m data links determined to be shutdown by the second node; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer;
the processor 702 is further configured to close the m data links according to the link close response message.
Optionally, the processor 702 is further configured to update a network node connectivity table according to the information of the m data links, where the network node connectivity table includes information of data links through which the first node 70 is connected to the second node; and updating the routing table according to the updated network node communication table so that the first node 70 transmits data with the second node according to the updated routing table.
Optionally, the processor 702 is further configured to reserve a data link, of the at least one M data links, of which the network delay is smaller than a preset delay, and the X data links are data links, of the M data links, except for the reserved data link; or,
the transmitter 703 is further configured to send a data link reservation message to the second node, where the data link reservation message is used to request the second node to reserve at least one data link of the K data links, where the network delay is less than a preset delay, and X data links are M data links; the K data links are data links which are determined by the second node and have the data volume to be sent smaller than a first preset data volume and/or the bandwidth utilization rate smaller than a preset utilization rate in the X data links; k is more than or equal to 2 and less than or equal to X; k is an integer.
Optionally, the processor 702 is further configured to open at least one data link of the m data links when the first node 70 receives, within a preset time period, data of a second preset data volume that is sent to the second node; the transmitter 703 is further configured to send a link start notification message to the second node, and notify the second node to start at least one data link; wherein the link up notification message includes information of at least one data link.
Optionally, the receiver 704 is further configured to receive a link up notification message sent by the second node; the link opening notification message comprises information of at least one data link in the m data links which are opened and notified by the second node; the processor 702 is further configured to open at least one data link according to the link open notification message.
The first node provided in the embodiment of the present invention may count the amount of data to be sent and/or the bandwidth utilization rate of the data link communicated with the second node, and determine, together with the second node, that a part of the data link whose amount of data to be sent is smaller than the first preset amount of data and/or whose bandwidth utilization rate is smaller than the preset utilization rate is closed, and when the first node receives data transmitted by the second node through a certain data link that is closed once every longer time, the certain data link may not be L-configured0The state and the low power consumption state are frequently switched, so that the energy-saving effect of the data center can be improved.
EXAMPLE six
As shown in fig. 8, an embodiment of the present invention provides a second node 80, configured to implement the data link management method shown in fig. 2, where the second node 80 includes:
a receiving unit 801, configured to receive a link shutdown request message sent by a first node; wherein, the link closing request message includes information of X data links of the M data links that the first node requests to close to the second node 80; the M data links are data links determined by the first node, in which the data volume to be sent in the N data links communicated with the second node 80 is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate; x is more than or equal to 1 and less than or equal to M, M is more than or equal to 2 and less than or equal to N, and N, M, X are integers;
a determining unit 802, configured to determine to close m data links in the X data links according to the link closing request message; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer;
a generating unit 803, configured to generate a link close response message according to the information of the m data links;
a sending unit 804, configured to send a link close response message to the first node, so that the first node closes the m data links according to the link close response message;
an execution unit 805 is configured to close the m data links.
Optionally, as shown in fig. 9, the second node 80 further includes:
a first updating unit 806, configured to update a network node connectivity table according to the information of the m data links, where the network node connectivity table includes information of data links where the second node 80 is connected to the first node;
a second updating unit 807, configured to update the routing table according to the updated network node connectivity table, so that the second node 80 transmits data with the first node according to the updated routing table.
Optionally, the determining unit 802 is specifically configured to count data volume to be sent and/or bandwidth utilization rate of X data links, and determine to close m data links if the data volume to be sent of m data links in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate; or,
a receiving unit 801, configured to receive a data link reservation message sent by a first node; a determining unit 802, specifically configured to count data volumes to be sent and/or bandwidth utilization rates of X data links, reserve a data link, of which network delay is smaller than a preset delay, in at least one K data link if the data volumes to be sent of the K data links in the X data links are smaller than a first preset data volume and/or the bandwidth utilization rates are smaller than a preset utilization rate, and determine to close m data links, of the K data links, except the reserved data link; k is more than or equal to 2 and less than or equal to X, and K is an integer.
Optionally, the receiving unit 801 is further configured to receive a link start notification message sent by the first node; the link opening notification message comprises information of at least one data link in m data links which are notified to be opened by the first node; the execution unit 805 is further configured to open at least one data link according to the link open notification message.
Optionally, the executing unit 805 is further configured to open at least one data link of the m data links when the second node 80 receives, within a preset time period, data of a second preset data amount sent to the first node; the sending unit 804 is further configured to send a link opening notification message to the first node by the second node 80, and notify the first node to open at least one data link; wherein the link up notification message includes information of at least one data link.
The second node provided in the embodiment of the present invention may determine, through the received information of the data link included in the link close request message sent by the first node, that a part of the data link whose data volume to be sent is smaller than the first preset data volume and/or whose bandwidth utilization rate is smaller than the preset utilization rate is closed together with the first node, and when the first node receives data transmitted by a certain data link and the second node that are closed once at intervals, the certain data link may not be in L0The state and the low power consumption state are frequently switched, so that the energy-saving effect of the data center can be improved.
EXAMPLE seven
In terms of hardware implementation, each module in the sixth embodiment may be embedded in a processor of the second node in a hardware form or independent from the processor of the second node, or may be stored in a memory of the second node in a software form, so that the processor invokes and executes operations corresponding to each module, where the processor may be a Central Processing Unit (CPU), a microprocessor, a single chip, or the like.
As shown in fig. 10, an embodiment of the present invention provides a second node 100, configured to implement the data link management method shown in fig. 2, where the second node 100 includes: a receiver 1001, a memory 1002, a processor 1003, a transmitter 1004, and a bus system 1005.
The receiver 1001, the memory 1002, the processor 1003 and the transmitter 1004 are coupled via a bus system 1005, wherein the memory 1002 may comprise a random access memory, and may further comprise a non-volatile memory, such as at least one disk memory. The bus system 1005 may be an ISA bus, PCI bus, EISA bus, or the like. The bus system 1005 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
A receiver 1001, configured to receive a link shutdown request message sent by a first node; wherein, the link closing request message includes information of X data links among the M data links that the first node requests the second node 100 to close; the M data links are data links determined by the first node, in which the data volume to be sent in the N data links communicated with the second node 100 is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate; x is more than or equal to 1 and less than or equal to M, M is more than or equal to 2 and less than or equal to N, and N, M, X are integers;
the memory 1002 is used to store a set of codes for controlling the processor 1003 to perform the following actions: determining to close m data links in the X data links according to the link closing request message; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer; generating a link closing response message according to the information of the m data links;
a transmitter 1004 for transmitting a link close response message to the first node so that the first node closes the m data links according to the link close response message;
the processor 1003 is further configured to close the m data links.
Optionally, the processor 1003 is further configured to update a network node connectivity table according to the information of the m data links, where the network node connectivity table includes information of the data links where the second node 100 is connected to the first node; and updating the routing table according to the updated network node communication table, so that the second node 100 transmits data with the first node according to the updated routing table.
Optionally, the processor 1003 is specifically configured to count data volume to be sent and/or bandwidth utilization rate of X data links, and determine to close m data links if the data volume to be sent of m data links in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate; or,
a receiver 1001, further configured to receive a data link reservation message sent by a first node; the processor 1003 is specifically configured to count data volume to be sent and/or bandwidth utilization rate of X data links, reserve a data link, of which network delay is smaller than preset delay, in at least one K data link if the data volume to be sent of K data links in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate, and determine to close m data links, of the K data links, except the reserved data link; k is more than or equal to 2 and less than or equal to X, and K is an integer.
Optionally, the receiver 1001 is further configured to receive a link start notification message sent by the first node; the link opening notification message comprises information of at least one data link in m data links which are notified to be opened by the first node; the processor 1003 is further configured to open at least one data link according to the link open notification message.
Optionally, the processor 1003 is further configured to open at least one data link of the m data links when the second node 100 receives, within a preset time period, data of a second preset data amount that is sent to the first node; a transmitter 1004, further configured to send a link open notification message to the first node by the second node 100, notifying the first node to open at least one data link; wherein the link up notification message includes information of at least one data link.
The second node provided in the embodiment of the present invention may determine, through the received information of the data link included in the link close request message sent by the first node, that a part of the data link whose data volume to be sent is smaller than the first preset data volume and/or whose bandwidth utilization rate is smaller than the preset utilization rate is closed together with the first node, and when the first node receives data transmitted by a certain data link and the second node that are closed once at intervals, the certain data link may not be in L0The state and the low power consumption state are frequently switched, so that the energy-saving effect of the data center can be improved.
An embodiment of the present invention further provides a data link management system, including: any one of the first nodes provided in example four or example five, and/or any one of the second nodes provided in example six or example seven.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware form, and can also be realized in a form of hardware and a software functional module.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (21)
1. A method for data link management, comprising:
the method comprises the steps that a first node obtains the data volume to be sent and/or the bandwidth utilization rate of N data links communicated with a second node; wherein N is more than or equal to 2 and is an integer;
when the data volume to be sent of M data links in the N data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate, the first node sends a link closing request message to the second node; wherein the link shutdown request message includes information of X data links of the M data links that the first node requests the second node to shutdown; m is more than or equal to 2 and less than or equal to N, X is more than or equal to 1 and less than or equal to M, and M, X are integers;
the first node receives a link closing response message sent by the second node, wherein the link closing response message comprises information of m data links determined to be closed by the second node; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer;
and the first node closes the m data links according to the link closing response message.
2. The method of claim 1, wherein after the first node receives the link shutdown response message sent by the second node, the method further comprises:
the first node updates a network node communication table according to the information of the m data links, wherein the network node communication table comprises the information of the data links for communicating the first node with the second node;
and the first node updates a routing table according to the updated network node communication table, so that the first node transmits data with the second node according to the updated routing table.
3. The method according to claim 1 or 2, wherein before the first node sends a link shutdown request message to the second node, the method further comprises:
the first node reserves data links of at least one data link of the M data links, wherein the network delay is less than a preset delay, and the X data links are data links of the M data links except the reserved data links; or,
the first node sends a data link reservation message to the second node, and is used for requesting the second node to reserve at least one data link which is in K data links and has network delay smaller than preset delay, wherein the X data links are the M data links; the K data links are data links determined by the second node that the data volume to be sent in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate; k is more than or equal to 2 and less than or equal to X; k is an integer.
4. The method according to any of claims 1-3, wherein after the first node closes the m data links according to the link close response message, the method further comprises:
when the first node receives data, sent to the second node, of a second preset data volume within a preset time period, the first node starts at least one data link in the m data links;
the first node sends a link opening notification message to the second node to notify the second node to open the at least one data link; wherein the link up notification message includes information of the at least one data link.
5. The method according to any of claims 1-3, wherein after the first node closes the m data links according to the link close response message, the method further comprises:
the first node receives a link opening notification message sent by the second node; wherein the link opening notification message includes information that the second node notifies at least one of the m data links that are opened;
and the first node opens the at least one data link according to the link opening notification message.
6. A method for data link management, comprising:
the second node receives a link closing request message sent by the first node; wherein the link shutdown request message includes information of X data links of the M data links that the first node requests the second node to shutdown; the M data links are data links determined by the first node, in which the data volume to be sent in the N data links communicated with the second node is less than a first preset data volume and/or the bandwidth utilization rate is less than a preset utilization rate; x is more than or equal to 1 and less than or equal to M, M is more than or equal to 2 and less than or equal to N, and N, M, X are integers;
the second node determines to close m data links in the X data links according to the link closing request message; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer;
the second node generates a link closing response message according to the information of the m data links and sends the link closing response message to the first node, so that the first node closes the m data links according to the link closing response message;
the second node closes the m data links.
7. The method of claim 6, wherein after the second node determines to close m of the X data links according to the link close request message, the method further comprises:
the second node updates a network node communication table according to the information of the m data links, wherein the network node communication table comprises the information of the data links of the second node and the first node;
and the second node updates a routing table according to the updated network node communication table, so that the second node transmits data with the first node according to the updated routing table.
8. The method according to claim 6 or 7, wherein the second node determines to close m data links of the X data links according to the link close request message, comprising:
the second node counts the data volume to be sent and/or the bandwidth utilization rate of the X data links, and if the data volume to be sent of m data links in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate, the m data links are determined to be closed;
or,
the second node receives a data link reservation message sent by the first node; the second node counts data volume to be sent and/or bandwidth utilization rate of the X data links, if the data volume to be sent of K data links in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate, reserving data links of which the network delay is smaller than the preset delay in at least one K data link, and determining to close m data links except the reserved data links in the K data links; k is more than or equal to 2 and less than or equal to X, and K is an integer.
9. The method according to any of claims 6-8, wherein after the second node closes the m data links, the method further comprises:
the second node receives a link opening notification message sent by the first node; wherein, the link starting notification message includes information of at least one data link in the m data links which are started by the first node;
and the second node opens the at least one data link according to the link opening notification message.
10. The method according to any of claims 6-8, wherein after the second node closes the m data links, the method further comprises:
when the second node receives data, sent to the first node, of a second preset data volume within a preset time period, the second node starts at least one data link in the m data links;
the second node sends a link opening notification message to the first node to notify the first node to open the at least one data link; wherein the link up notification message includes information of the at least one data link.
11. A first node, comprising:
the acquiring unit is used for acquiring the data volume to be sent and/or the bandwidth utilization rate of N data links communicated with the second node; wherein N is more than or equal to 2 and is an integer;
a sending unit, configured to send a link shutdown request message to the second node when data volumes to be sent of M data links in the N data links are all smaller than a first preset data volume and/or bandwidth utilization rates are all smaller than a preset utilization rate; wherein the link shutdown request message includes information of X data links of the M data links that the first node requests the second node to shutdown; m is more than or equal to 2 and less than or equal to N, X is more than or equal to 1 and less than or equal to M, and M, X are integers;
a receiving unit, configured to receive a link shutdown response message sent by the second node, where the link shutdown response message includes information of m data links determined to be shutdown by the second node; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer;
and the execution unit is used for closing the m data links according to the link closing response message.
12. The first node of claim 11, wherein the first node further comprises:
a first updating unit, configured to update a network node connectivity table according to information of the m data links, where the network node connectivity table includes information of data links through which the first node and the second node are communicated;
and the second updating unit is used for updating a routing table according to the updated network node communication table so that the first node transmits data with the second node according to the updated routing table.
13. The first node according to claim 11 or 12,
the first node further comprises a reservation unit, wherein the reservation unit is used for reserving a data link which is in at least one of the M data links and has network delay smaller than preset delay, and the X data links are data links except the reserved data link in the M data links; or,
the sending unit is further configured to send a data link reservation message to the second node, where the data link reservation message is used to request the second node to reserve a data link, of the at least one K data links, where network delay is less than a preset delay, and the X data links are the M data links; the K data links are data links determined by the second node that the data volume to be sent in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate; k is more than or equal to 2 and less than or equal to X; k is an integer.
14. The first node according to any of claims 11-13,
the execution unit is further configured to open at least one data link of the m data links when the first node receives, within a preset time period, data of a second preset data volume that is sent to the second node;
the sending unit is further configured to send a link opening notification message to the second node, and notify the second node to open the at least one data link; wherein the link up notification message includes information of the at least one data link.
15. The first node according to any of claims 11-13,
the receiving unit is further configured to receive a link start notification message sent by the second node; wherein the link opening notification message includes information that the second node notifies at least one of the m data links that are opened;
the execution unit is further configured to open the at least one data link according to the link opening notification message.
16. A second node, comprising:
a receiving unit, configured to receive a link shutdown request message sent by a first node; wherein the link shutdown request message includes information of X data links of the M data links that the first node requests the second node to shutdown; the M data links are data links determined by the first node, in which the data volume to be sent in the N data links communicated with the second node is less than a first preset data volume and/or the bandwidth utilization rate is less than a preset utilization rate; x is more than or equal to 1 and less than or equal to M, M is more than or equal to 2 and less than or equal to N, and N, M, X are integers;
a determining unit, configured to determine to close m data links of the X data links according to the link closing request message; wherein, when X is more than or equal to 1 and less than M, M is more than or equal to 1 and less than or equal to X; when X is M, M is more than or equal to 1 and less than X; m is an integer;
a generating unit, configured to generate a link closing response message according to the information of the m data links;
a sending unit, configured to send the link shutdown response message to the first node, so that the first node shuts down the m data links according to the link shutdown response message;
an execution unit to close the m data links.
17. The second node according to claim 16, characterized in that the second node further comprises:
a first updating unit, configured to update a network node connectivity table according to information of the m data links, where the network node connectivity table includes information of data links through which the second node communicates with the first node;
and the second updating unit is used for updating a routing table according to the updated network node communication table so that the second node transmits data with the first node according to the updated routing table.
18. The second node according to claim 16 or 17,
the determining unit is specifically configured to count data volume to be sent and/or bandwidth utilization rate of the X data links, and determine to close m data links if the data volume to be sent of m data links in the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate;
or,
the receiving unit is further configured to receive a data link reservation message sent by the first node; the determining unit is specifically configured to count data volume to be sent and/or bandwidth utilization rate of the X data links, reserve at least one data link of which network delay is smaller than a preset delay, and determine to close m data links of the K data links except the reserved data link, if the data volume to be sent of the K data links of the X data links is smaller than a first preset data volume and/or the bandwidth utilization rate is smaller than a preset utilization rate; k is more than or equal to 2 and less than or equal to X, and K is an integer.
19. The second node according to any of claims 16-18,
the receiving unit is further configured to receive a link start notification message sent by the first node; wherein, the link starting notification message includes information of at least one data link in the m data links which are started by the first node;
the execution unit is further configured to open the at least one data link according to the link opening notification message.
20. The second node according to any of claims 16-18,
the execution unit is further configured to open at least one data link of the m data links when the second node receives, within a preset time period, data of a second preset data volume that is sent to the first node;
the sending unit is further configured to send, by the second node, a link opening notification message to the first node, and notify the first node to open the at least one data link; wherein the link up notification message includes information of the at least one data link.
21. A data link management system, comprising: a first node according to any of claims 11-15, and/or a second node according to any of claims 16-20.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510270986.9A CN106302217A (en) | 2015-05-25 | 2015-05-25 | A kind of data link management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510270986.9A CN106302217A (en) | 2015-05-25 | 2015-05-25 | A kind of data link management method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106302217A true CN106302217A (en) | 2017-01-04 |
Family
ID=57634477
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510270986.9A Pending CN106302217A (en) | 2015-05-25 | 2015-05-25 | A kind of data link management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106302217A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103888352A (en) * | 2014-02-25 | 2014-06-25 | 电子科技大学 | Energy saving weight design method in IP network |
CN104335530A (en) * | 2012-06-29 | 2015-02-04 | 英特尔公司 | Network routing protocol power saving method for network elements |
-
2015
- 2015-05-25 CN CN201510270986.9A patent/CN106302217A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104335530A (en) * | 2012-06-29 | 2015-02-04 | 英特尔公司 | Network routing protocol power saving method for network elements |
CN103888352A (en) * | 2014-02-25 | 2014-06-25 | 电子科技大学 | Energy saving weight design method in IP network |
Non-Patent Citations (1)
Title |
---|
王永庆 等: "支持可变功耗的多通道串行链路管理机制", 《计算机研究与发展》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10613616B2 (en) | Systems and methods for facilitating low power on a network-on-chip | |
US9477280B1 (en) | Specification for automatic power management of network-on-chip and system-on-chip | |
CN102150393B (en) | Method and device for power management of network | |
WO2015023191A1 (en) | Power balancing to increase workload density and improve energy efficiency | |
US9288075B2 (en) | Method and system for auto-configuration, and network node | |
US10411911B2 (en) | Network as service service cross-domain orchestration method, orchestration device, and control device | |
CN112346833B (en) | Task processing method and processor for privacy computation and heterogeneous processing system | |
US9985893B2 (en) | Load sharing method and apparatus, and board | |
CN113645146B (en) | New stream density-based software defined network controller load balancing method and system | |
CN102204185A (en) | Multi-core router | |
CN102811152B (en) | Method for realizing real-time transaction and data exchange of multiple main bus network communication | |
CN109327386A (en) | A kind of link aggregation method, device, equipment and readable storage medium storing program for executing | |
CN103577469B (en) | Database connection multiplexing method and apparatus | |
CN112887117B (en) | Method, equipment and medium for accessing and configuring network slice | |
CN107517167B (en) | Data transmission control method and device and SoC chip | |
US20210328887A1 (en) | Method for performing task processing on common service entity, common service entity, apparatus and medium for task processing | |
US10511494B2 (en) | Network control method and apparatus | |
CN104158736A (en) | Method and apparatus for determining next hop, and method and apparatus for issuing router information | |
US20160020913A1 (en) | Method for power saving in optical access network by using synchronized sleep cycle | |
EP2207309A1 (en) | Method and system for a protocol with stateful negotiation for energy efficient network parameters in layer 2 | |
US10275283B2 (en) | Low latency distributed counters for quotas | |
CN106302217A (en) | A kind of data link management method and device | |
CN109450809B (en) | Data center scheduling system and method | |
CN110166506B (en) | Method for connecting hypertext transfer protocol Http and node equipment | |
CN115884252A (en) | Policy adjustment method, data transmission method, system, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170104 |