Nothing Special   »   [go: up one dir, main page]

CN106302217A - A kind of data link management method and device - Google Patents

A kind of data link management method and device Download PDF

Info

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
links
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
Application number
CN201510270986.9A
Other languages
Chinese (zh)
Inventor
董建波
赵博彦
李花芳
侯锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Institute of Computing Technology of CAS
Original Assignee
Huawei Technologies Co Ltd
Institute of Computing Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd, Institute of Computing Technology of CAS filed Critical Huawei Technologies Co Ltd
Priority to CN201510270986.9A priority Critical patent/CN106302217A/en
Publication of CN106302217A publication Critical patent/CN106302217A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例公开了一种数据链路管理方法及装置,涉及通信技术领域,用以提高数据中心的节能效果。该方法包括:第一节点获取与第二节点连通的N条数据链路的待发送数据量和/或带宽利用率;当所述N条数据链路中的M条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率时,所述第一节点向所述第二节点发送链路关闭请求消息;所述第一节点接收所述第二节点发送的链路关闭响应消息,所述链路关闭响应消息包括所述第二节点确定关闭的m条数据链路的信息;所述第一节点根据所述链路关闭响应消息关闭所述m条数据链路。本发明实施例提供的技术方案可以用于降低数据链路的功耗。

The embodiment of the invention discloses a data link management method and device, which relate to the technical field of communication and are used to improve the energy-saving effect of a data center. The method includes: the first node obtains the amount of data to be sent and/or the bandwidth utilization rate of the N data links connected to the second node; when the data to be sent of the M data links in the N data links When the amount is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, the first node sends a link shutdown request message to the second node; the first node receives the first A link closing response message sent by two nodes, the link closing response message including the information of the m data links determined to be closed by the second node; the first node closing the link closing response message according to the link closing response message m data links. The technical solution provided by the embodiment of the present invention can be used to reduce the power consumption of the data link.

Description

一种数据链路管理方法及装置A data link management method and device

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种数据链路管理方法及装置。The invention relates to the field of communication technology, in particular to a data link management method and device.

背景技术Background technique

随着通信技术的发展,数据中心的规模越来越大,数据中心的耗电量也越来也多,而数据中心百分之一的功耗降低都会节约大量的电能,因此,关于如何降低数据中心的功耗的研究也越来越热门。在数据中心的功耗中,相当一部分的功耗来自于服务器闲置时带来的空闲功耗,空闲功耗中又有很大比例的功耗由服务器之间的空闲的数据链路产生。With the development of communication technology, the scale of the data center is getting bigger and bigger, and the power consumption of the data center is also increasing, and the power consumption reduction of the data center will save a lot of power. Therefore, how to reduce Research on power consumption of data centers is also becoming more and more popular. In the power consumption of the data center, a considerable part of the power consumption comes from the idle power consumption brought by the server when it is idle, and a large proportion of the idle power consumption is generated by the idle data link between the servers.

目前,在基于PCIe(PCI-Express,总线接口)协议的电源管理方案中,当数据链路繁忙(即频繁的通过该数据链路发送数据)时,数据链路处于L0状态,此时,数据链路上可以传输数据。当PCIe设备发现与另一PCIe设备之间的某条数据链路在预设时间段内不传输数据时,可以通过改变该条数据链路对应的电源管理状态机的状态使得该数据链路进入低功耗状态,处于低功耗状态的数据链路上不可以传输数据。当PCIe设备接收到向另一PCIe设备发送的数据时,会逐步的唤醒电源管理状态机的状态使得该数据链路由低功耗状态进入L0状态。At present, in the power management scheme based on the PCIe (PCI-Express, bus interface) protocol, when the data link is busy (that is, frequently send data through the data link), the data link is in the L 0 state. At this time, Data can be transmitted on the data link. When a PCIe device finds that a data link with another PCIe device does not transmit data within a preset period of time, the data link can be entered by changing the state of the power management state machine corresponding to the data link. In the low power consumption state, no data can be transmitted on the data link in the low power consumption state. When the PCIe device receives data sent to another PCIe device, it will gradually wake up the state of the power management state machine so that the data link enters the L 0 state from the low power consumption state.

上述降低数据链路的功耗的方法中,当PCIe设备每隔较长时间才接收到一次向另一PCIe设备发送的数据时,例如,每间隔1秒PCIe设备才接收到一个向另一PCIe设备发送的数据,那么传输该数据的数据链路的状态会频繁的在L0状态与低功耗状态之间切换,导致数据中心的节能效果较差。In the above method for reducing the power consumption of the data link, when the PCIe device receives data sent to another PCIe device every long time, for example, the PCIe device receives a data sent to another PCIe device every 1 second. The data sent by the device, the state of the data link that transmits the data will frequently switch between the L 0 state and the low power consumption state, resulting in poor energy saving effect of the data center.

发明内容Contents of the invention

本发明的实施例提供一种数据链路管理方法及装置,用以提高数据中心的节能效果。Embodiments of the present invention provide a data link management method and device for improving the energy saving effect of a data center.

为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:

第一方面,提供一种数据链路管理方法,包括:In the first aspect, a data link management method is provided, including:

第一节点获取与第二节点连通的N条数据链路的待发送数据量和/或带宽利用率;其中,N≥2,N为整数;The first node obtains the amount of data to be sent and/or the bandwidth utilization rate of the N data links connected to the second node; wherein, N≥2, N is an integer;

当所述N条数据链路中的M条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率时,所述第一节点向所述第二节点发送链路关闭请求消息;其中,所述链路关闭请求消息包括所述第一节点向所述第二节点请求关闭的所述M条数据链路中的X条数据链路的信息;2≤M≤N,1≤X≤M,M、X均为整数;When the amount of data to be sent of the M data links in the N data links is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, the first node sends the The second node sends a link closing request message; wherein, the link closing request message includes information about X data links among the M data links that the first node requests closing from the second node ;2≤M≤N, 1≤X≤M, both M and X are integers;

所述第一节点接收所述第二节点发送的链路关闭响应消息,所述链路关闭响应消息包括所述第二节点确定关闭的m条数据链路的信息;其中,当1≤X<M时,1≤m≤X;当X=M时,1≤m<X;m为整数;The first node receives the link closing response message sent by the second node, and the link closing response message includes the information of the m data links determined to be closed by the second node; wherein, when 1≤X< When M, 1≤m≤X; when X=M, 1≤m<X; m is an integer;

所述第一节点根据所述链路关闭响应消息关闭所述m条数据链路。The first node closes the m data links according to the link close response message.

结合第一方面,在第一种可能的实现方式中,在所述第一节点接收所述第二节点发送的链路关闭响应消息之后,所述方法还包括:With reference to the first aspect, in a first possible implementation manner, after the first node receives the link shutdown response message sent by the second node, the method further includes:

所述第一节点根据所述m条数据链路的信息更新网络节点连通表,所述网络节点连通表包括有所述第一节点与所述第二节点连通的数据链路的信息;The first node updates a network node connection table according to the information of the m data links, and the network node connection table includes information about the data links between the first node and the second node;

所述第一节点根据更新后的所述网络节点连通表更新路由表,以使得所述第一节点根据更新后的所述路由表与所述第二节点传输数据。The first node updates a routing table according to the updated network node connectivity 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 of the first aspect, in a second possible implementation, before the first node sends a link shutdown request message to the second node, the method Also includes:

所述第一节点预留至少一条所述M条数据链路中的、且网络延时小于预设延时的数据链路,所述X条数据链路为所述M条数据链路中的除预留的数据链路之外的数据链路;或者,The first node reserves at least one of the M data links and a data link whose network delay is less than a preset delay, and the X data links are one of the M data links A data link other than a reserved data link; or,

所述第一节点向所述第二节点发送数据链路预留消息,用于请求所述第二节点预留至少一条K条数据链路中的、且网络延时小于预设延时的数据链路,所述X条数据链路为所述M条数据链路;其中,所述K条数据链路为所述第二节点确定的所述X条数据链路中的待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的数据链路;2≤K≤X;K为整数。The first node sends a data link reservation message to the second node, which is used to request the second node to reserve data in at least one K data link with a network delay less than a preset delay Links, the X data links are the M data links; wherein, the K data links are the amount of data to be sent in the X data links determined by the second node is less than The first preset data volume and/or the data link whose bandwidth utilization rate is smaller than the preset utilization rate; 2≤K≤X; K is an integer.

结合第一方面、第一方面的第一种可能的实现方式或第二种可能的实现方式,在第三种可能的实现方式中,在所述第一节点根据所述链路关闭响应消息关闭所述m条数据链路之后,所述方法还包括: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, the first node shuts down the link according to the link shutdown response message After the m data links, the method also includes:

当所述第一节点在预设时间段内接收到第二预设数据量的向所述第二节点发送的数据时,所述第一节点开启所述m条数据链路中的至少一条数据链路;When the first node receives a second preset amount of data sent to the second node within a preset time period, the first node starts at least one data link in the m data links link;

所述第一节点向所述第二节点发送链路开启通知消息,通知所述第二节点开启所述至少一条数据链路;其中,所述链路开启通知消息包括所述至少一条数据链路的信息。The first node sends a link opening notification message to the second node, notifying the second node to open the at least one data link; wherein, the link opening notification message includes the at least one data link Information.

结合第一方面、第一方面的第一种可能的实现方式或第二种可能的实现方式,在第四种可能的实现方式中,在所述第一节点根据所述链路关闭响应消息关闭所述m条数据链路之后,所述方法还包括:With reference to the first aspect, the first possible implementation of the first aspect, or the second possible implementation of the first aspect, in a fourth possible implementation, the first node shuts down the link according to the link shutdown response message After the m data links, the method also includes:

所述第一节点接收所述第二节点发送的链路开启通知消息;其中,所述链路开启通知消息包括所述第二节点通知开启的所述m条数据链路中的至少一条数据链路的信息;The first node receives the link opening notification message sent by the second node; wherein the link opening notification message includes at least one data link among the m data links that the second node notifies to open road information;

所述第一节点根据所述链路开启通知消息开启所述至少一条数据链路。The first node starts the at least one data link according to the link start notification message.

第二方面,提供一种数据链路管理方法,包括:In the second aspect, a data link management method is provided, including:

第二节点接收第一节点发送的链路关闭请求消息;其中,所述链路关闭请求消息包括所述第一节点向所述第二节点请求关闭的M条数据链路中的X条数据链路的信息;所述M条数据链路为所述第一节点确定的与所述第二节点连通的N条数据链路中的待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的数据链路;1≤X≤M,2≤M≤N,N、M、X均为整数;The second node receives the link closing request message sent by the first node; wherein, the link closing request message includes X data links among the M data links that the first node requests to close to the second node The information of the road; the M data links are the N data links determined by the first node and connected to the second node. The amount of data to be sent is less than the first preset data amount and/or bandwidth utilization The data link whose utilization rate is less than the preset utilization rate; 1≤X≤M, 2≤M≤N, where N, M, and X are all integers;

所述第二节点根据所述链路关闭请求消息确定关闭X条数据链路中的m条数据链路;其中,当1≤X<M时,1≤m≤X;当X=M时,1≤m<X;m为整数;The second node determines to close m data links among the X data links according to the link closing request message; wherein, when 1≤X<M, 1≤m≤X; when X=M, 1≤m<X; m is an integer;

所述第二节点根据所述m条数据链路的信息生成链路关闭响应消息并向所述第一节点发送所述链路关闭响应消息,以使得所述第一节点根据所述链路关闭响应消息关闭所述m条数据链路;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 link according to the Closing the m data links in response to the message;

所述第二节点关闭所述m条数据链路。The second node closes the m data links.

结合第二方面,在第一种可能的实现方式中,在所述第二节点根据所述链路关闭请求消息确定关闭X条数据链路中的m条数据链路之后,所述方法还包括:With reference to the second aspect, in a first possible implementation manner, after the second node determines to close m data links among the X data links according to the link close request message, the method further includes :

所述第二节点根据所述m条数据链路的信息更新网络节点连通表,所述网络节点连通表包括有所述第二节点与所述第一节点连通的数据链路的信息;The second node updates a network node connection table according to the information of the m data links, and the network node connection table includes information about the data links between the second node and the first node;

所述第二节点根据更新后的所述网络节点连通表更新路由表,以使得所述第二节点根据更新后的所述路由表与所述第一节点传输数据。The second node updates a routing table according to the updated network node connectivity table, so that the second node transmits data with the first node according to the updated routing table.

结合第二方面或第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述第二节点根据所述链路关闭请求消息确定关闭X条数据链路中的m条数据链路,包括:With reference to the second aspect or the first possible implementation manner of the second aspect, in the second possible implementation manner, the second node determines to close m among the X data links according to the link shutdown request message. data links, including:

所述第二节点统计所述X条数据链路的待发送数据量和/或带宽利用率,若所述X条数据链路中的m条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率,确定关闭所述m条数据链路;The second node counts the amount of data to be sent and/or the bandwidth utilization rate of the X data links, and if the amount of data to be sent of the m data links in the X data links is less than the first preset Assuming that the amount of data and/or the utilization rate of the bandwidth is less than the preset utilization rate, it is determined to close the m data links;

或者,or,

所述第二节点接收所述第一节点发送的数据链路预留消息;所述第二节点统计所述X条数据链路的待发送数据量和/或带宽利用率,若所述X条数据链路中的K条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率,预留至少一条所述K条数据链路中的网络延时小于预设延时的数据链路,确定关闭所述K条数据链路中的除预留的数据链路之外的m条数据链路;2≤K≤X,K为整数。The second node receives the data link reservation message sent by the first node; the second node counts the amount of data to be sent and/or bandwidth utilization of the X data links, and if the X data links The amount of data to be sent in the K data links in the data link is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, and at least one network in the K data links is reserved For the data links whose delay is less than the preset delay, it is determined to close the m data links except the reserved data links among the K data links; 2≤K≤X, K is an integer.

结合第二方面、第二方面的第一种可能的实现方式或第二种可能的实现方式,在第三种可能的实现方式中,在所述第二节点关闭所述m条数据链路之后,所述方法还包括:With reference to the second aspect, the first possible implementation manner or the second possible implementation manner of the second aspect, in a third possible implementation manner, after the second node closes the m data links , the method also includes:

所述第二节点接收所述第一节点发送的链路开启通知消息;其中,所述链路开启通知消息中包括所述第一节点通知开启的所述m条数据链路中的至少一条数据链路的信息;The second node receives the link opening notification message sent by the first node; wherein, the link opening notification message includes at least one piece of data in the m data links that the first node notifies to open link information;

所述第二节点根据所述链路开启通知消息开启所述至少一条数据链路。The second node starts the at least one data link according to the link start notification message.

结合第二方面、第二方面的第一种可能的实现方式或第二种可能的实现方式,在第四种可能的实现方式中,在所述第二节点关闭所述m条数据链路之后,所述方法还包括:With reference to the second aspect, the first possible implementation manner or the second possible implementation manner of the second aspect, in a fourth possible implementation manner, after the second node closes the m data links , the method also includes:

当所述第二节点在预设时间段内接收到第二预设数据量的向所述第一节点发送的数据时,所述第二节点开启所述m条数据链路中的至少一条数据链路;When the second node receives a second preset amount of data sent to the first node within a preset time period, the second node starts at least one data link in the m data links link;

所述第二节点向所述第一节点发送链路开启通知消息,通知所述第一节点开启所述至少一条数据链路;其中,所述链路开启通知消息包括所述至少一条数据链路的信息。The second node sends a link opening notification message to the first node, notifying the first node to open the at least one data link; wherein, the link opening notification message includes the at least one data link Information.

第三方面,提供一种第一节点,包括:In a third aspect, a first node is provided, including:

获取单元,用于获取与第二节点连通的N条数据链路的待发送数据量和/或带宽利用率;其中,N≥2,N为整数;An acquisition unit, configured to acquire the amount of data to be sent and/or bandwidth utilization of the N data links connected to the second node; wherein, N≥2, N is an integer;

发送单元,用于当所述N条数据链路中的M条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率时,向所述第二节点发送链路关闭请求消息;其中,所述链路关闭请求消息包括所述第一节点向所述第二节点请求关闭的所述M条数据链路中的X条数据链路的信息;2≤M≤N,1≤X≤M,M、X均为整数;A sending unit, configured to, when the amount of data to be sent in the M data links among the N data links is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, send the The second node sends a link closing request message; wherein, the link closing request message includes information about X data links among the M data links that the first node requests closing from the second node ;2≤M≤N, 1≤X≤M, both M and X are integers;

接收单元,用于接收所述第二节点发送的链路关闭响应消息,所述链路关闭响应消息包括所述第二节点确定关闭的m条数据链路的信息;其中,当1≤X<M时,1≤m≤X;当X=M时,1≤m<X;m为整数;A receiving unit, configured to receive a link shutdown response message sent by the second node, where the link shutdown response message includes information on the m data links determined to be closed by the second node; wherein, when 1≤X< When M, 1≤m≤X; when X=M, 1≤m<X; m is an integer;

执行单元,用于根据所述链路关闭响应消息关闭所述m条数据链路。An execution unit, configured to close the m data links according to the link close response message.

结合第三方面,在第一种可能的实现方式中,所述第一节点还包括:With reference to the third aspect, in a first possible implementation manner, the first node further includes:

第一更新单元,用于根据所述m条数据链路的信息更新网络节点连通表,所述网络节点连通表包括有所述第一节点与所述第二节点连通的数据链路的信息;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 connecting the first node to the second node;

第二更新单元,用于根据更新后的所述网络节点连通表更新路由表,以使得所述第一节点根据更新后的所述路由表与所述第二节点传输数据。The second updating unit is configured to update a routing table according to the updated connection table of network nodes, so that the first node transmits data with the second node according to the updated routing table.

结合第三方面或第三方面的第一种可能的实现方式,在第二种可能的实现方式中,In combination with the third aspect or the first possible implementation of the third aspect, in the second possible implementation,

所述第一节点还包括预留单元,所述预留单元用于预留至少一条所述M条数据链路中的、且网络延时小于预设延时的数据链路,所述X条数据链路为所述M条数据链路中的除预留的数据链路之外的数据链路;或者,The first node further includes a reservation unit, the reservation unit is used to reserve at least one of the M data links and a data link whose network delay is less than a preset delay, and the X The data link is a data link other than the reserved data link among the M data links; or,

所述发送单元,还用于向所述第二节点发送数据链路预留消息,用于请求所述第二节点预留至少一条K条数据链路中的、且网络延时小于预设延时的数据链路,所述X条数据链路为所述M条数据链路;其中,所述K条数据链路为所述第二节点确定的所述X条数据链路中的待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的数据链路;2≤K≤X;K为整数。The sending unit is further configured to send a data link reservation message to the second node, which is used to request the second node to reserve at least one K data link with a network delay less than a preset delay The data links at the time, the X data links are the M data links; wherein, the K data links are the ones to be sent in the X data links determined by the second node A data link whose data volume is less than the first preset data volume and/or whose bandwidth utilization rate is less than the preset utilization rate; 2≤K≤X; K is an integer.

结合第三方面、第三方面的第一种可能的实现方式或第二种可能的实现方式,在第三种可能的实现方式中,In combination with the third aspect, the first possible implementation of the third aspect or the second possible implementation, in the third possible implementation,

所述执行单元,还用于当所述第一节点在预设时间段内接收到第二预设数据量的向所述第二节点发送的数据时,开启所述m条数据链路中的至少一条数据链路;The execution unit is further configured to enable the m data links when the first node receives a second preset amount of data sent to the second node within a preset time period. at least one data link;

所述发送单元,还用于向所述第二节点发送链路开启通知消息,通知所述第二节点开启所述至少一条数据链路;其中,所述链路开启通知消息包括所述至少一条数据链路的信息。The sending unit is further configured to send a link start notification message to the second node to notify the second node to start the at least one data link; wherein the link start notification message includes the at least one Data link information.

结合第三方面、第三方面的第一种可能的实现方式或第二种可能的实现方式,在第四种可能的实现方式中,In combination with the third aspect, the first possible implementation of the third aspect or the second possible implementation, in the fourth possible implementation,

所述接收单元,还用于接收所述第二节点发送的链路开启通知消息;其中,所述链路开启通知消息包括所述第二节点通知开启的所述m条数据链路中的至少一条数据链路的信息;The receiving unit is further configured to receive a link start notification message sent by the second node; wherein the link start notification message includes at least one of the m data links that the second node notifies to start information on a data link;

所述执行单元,还用于根据所述链路开启通知消息开启所述至少一条数据链路。The execution unit is further configured to enable the at least one data link according to the link activation notification message.

第四方面,提供一种第二节点,包括:In a fourth aspect, a second node is provided, including:

接收单元,用于接收第一节点发送的链路关闭请求消息;其中,所述链路关闭请求消息包括所述第一节点向所述第二节点请求关闭的M条数据链路中的X条数据链路的信息;所述M条数据链路为所述第一节点确定的与所述第二节点连通的N条数据链路中的待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的数据链路;1≤X≤M,2≤M≤N,N、M、X均为整数;A receiving unit, configured to receive a link closing request message sent by the first node; wherein, the link closing request message includes X of the M data links that the first node requests to close from the second node Information about the data link; the M data links are the N data links determined by the first node and communicated with the second node. The amount of data to be sent is less than the first preset data amount and/or Data links whose bandwidth utilization rate is less than the preset utilization rate; 1≤X≤M, 2≤M≤N, where N, M, and X are all integers;

确定单元,用于根据所述链路关闭请求消息确定关闭X条数据链路中的m条数据链路;其中,当1≤X<M时,1≤m≤X;当X=M时,1≤m<X;m为整数;A determining unit, configured to determine to close m data links among the X data links according to the link closing request message; wherein, when 1≤X<M, 1≤m≤X; when X=M, 1≤m<X; m is an integer;

生成单元,用于根据所述m条数据链路的信息生成链路关闭响应消息;a generating unit, configured to generate a link shutdown response message according to the information of the m data links;

发送单元,用于向所述第一节点发送所述链路关闭响应消息,以使得所述第一节点根据所述链路关闭响应消息关闭所述m条数据链路;a sending unit, configured to send 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;

执行单元,用于关闭所述m条数据链路。An execution unit, configured to close the m data links.

结合第四方面,在第一种可能的实现方式中,所述第二节点还包括:With reference to the fourth aspect, in a first possible implementation manner, the second node further includes:

第一更新单元,用于根据所述m条数据链路的信息更新网络节点连通表,所述网络节点连通表包括有所述第二节点与所述第一节点连通的数据链路的信息;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 that the second node is connected to the first node;

第二更新单元,用于根据更新后的所述网络节点连通表更新路由表,以使得所述第二节点根据更新后的所述路由表与所述第一节点传输数据。The second updating unit is configured to update a routing table according to the updated connection table of network nodes, so that the second node transmits data with the first node according to the updated routing table.

结合第四方面或第四方面的第一种可能的实现方式,在第二种可能的实现方式中,In combination with the fourth aspect or the first possible implementation of the fourth aspect, in the second possible implementation,

所述确定单元,具体用于统计所述X条数据链路的待发送数据量和/或带宽利用率,若所述X条数据链路中的m条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率,确定关闭所述m条数据链路;The determining unit is specifically configured to count the amount of data to be sent and/or bandwidth utilization of the X data links, if the amount of data to be sent in the m data links of the X data links is less than Both the first preset data volume and/or the bandwidth utilization rate are smaller than the preset utilization rate, and it is determined to close the m data links;

或者,or,

所述接收单元,还用于接收所述第一节点发送的数据链路预留消息;所述确定单元,具体用于统计所述X条数据链路的待发送数据量和/或带宽利用率,若所述X条数据链路中的K条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率,预留至少一条所述K条数据链路中的网络延时小于预设延时的数据链路,确定关闭所述K条数据链路中的除预留的数据链路之外的m条数据链路;2≤K≤X,K为整数。The receiving unit is further configured to receive the data link reservation message sent by the first node; the determining unit is specifically configured to count the amount of data to be sent and/or bandwidth utilization of the X data links , if the amount of data to be sent in the K data links of the X data links is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, at least one of the K data links is reserved The network delay in the data link is less than the data link with the preset delay, and it is determined to close the m data links in the K data links except the reserved data link; 2≤K≤X , K is an integer.

结合第四方面、第四方面的第一种可能的实现方式或第二种可能的实现方式,在第三种可能的实现方式中,In combination with the fourth aspect, the first possible implementation manner or the second possible implementation manner of the fourth aspect, in the third possible implementation manner,

所述接收单元,还用于接收所述第一节点发送的链路开启通知消息;其中,所述链路开启通知消息中包括所述第一节点通知开启的所述m条数据链路中的至少一条数据链路的信息;The receiving unit is further configured to receive a link start notification message sent by the first node; wherein, the link start notification message includes the m data links that the first node notifies to start information on at least one data link;

所述执行单元,还用于根据所述链路开启通知消息开启所述至少一条数据链路。The execution unit is further configured to enable the at least one data link according to the link activation notification message.

结合第四方面、第四方面的第一种可能的实现方式或第二种可能的实现方式,在第四种可能的实现方式中,In combination with the fourth aspect, the first possible implementation manner or the second possible implementation manner of the fourth aspect, in the fourth possible implementation manner,

所述执行单元,还用于当所述第二节点在预设时间段内接收到第二预设数据量的向所述第一节点发送的数据时,开启所述m条数据链路中的至少一条数据链路;The executing unit is further configured to, when the second node receives a second preset amount of data sent to the first node within a preset time period, enable the m data links at least one data link;

所述发送单元,还用于所述第二节点向所述第一节点发送链路开启通知消息,通知所述第一节点开启所述至少一条数据链路;其中,所述链路开启通知消息包括所述至少一条数据链路的信息。The sending unit is further configured for the second node to send a link start notification message to the first node, to notify the first node to start the at least one data link; wherein, the link start notification message Information about the at least one data link is included.

第五方面,提供一种数据链路管理系统,其特征在于,包括:如第三方面所述任一种第一节点,和/或,如第四方面所述任一种第二节点。According to a fifth aspect, there is provided a data link management system, which is characterized by comprising: any first node described in the third aspect, and/or any second node described in the fourth aspect.

本发明实施例提供的方法及装置,第一节点可以统计与第二节点连通的数据链路的待发送数据量和/或带宽利用率,并与第二节点共同确定将待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的部分数据链路关闭,当第一节点每隔较长时间才接收到一次通过关闭的某条数据链路与第二节点传输的数据时,该某条数据链路也不会在L0状态与低功耗状态之间频繁切换,因此可以提高数据中心的节能效果。In the method and device provided by the embodiments of the present invention, the first node can count the amount of data to be sent and/or the bandwidth utilization rate of the data link connected to the second node, and jointly determine with the second node that the amount of data to be sent is less than the first node Part of the data link whose preset data volume and/or bandwidth utilization rate is less than the preset utilization rate is closed. During data transmission, the certain data link will not frequently switch between the L 0 state and the low power consumption state, so the energy saving effect of the data center can be improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本发明实施例提供的一种数据链路管理方法的流程图;FIG. 1 is a flowchart of a data link management method provided by an embodiment of the present invention;

图2为本发明实施例提供的又一种数据链路管理方法的流程图;FIG. 2 is a flowchart of another data link management method provided by an embodiment of the present invention;

图3为本发明实施例提供的再一种数据链路管理方法的流程图;FIG. 3 is a flowchart of another data link management method provided by an embodiment of the present invention;

图4为本发明实施例提供的再一种数据链路管理方法的流程图;FIG. 4 is a flowchart of another data link management method provided by an embodiment of the present invention;

图5为本发明实施例提供的一种第一节点的结构示意图;FIG. 5 is a schematic structural diagram of a first node provided by an embodiment of the present invention;

图6为本发明实施例提供的又一种第一节点的结构示意图;FIG. 6 is a schematic structural diagram of another first node provided by an embodiment of the present invention;

图7为本发明实施例提供的再一种第一节点的结构示意图;FIG. 7 is a schematic structural diagram of another first node provided by an embodiment of the present invention;

图8为本发明实施例提供的一种第二节点的结构示意图;FIG. 8 is a schematic structural diagram of a second node provided by an embodiment of the present invention;

图9为本发明实施例提供的又一种第二节点的结构示意图;FIG. 9 is a schematic structural diagram of another second node provided by an embodiment of the present invention;

图10为本发明实施例提供的再一种第二节点的结构示意图。FIG. 10 is a schematic structural diagram of another second node provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明实施例提供的方法可以用于降低数据中心的功耗。数据中心一般包括机架、机柜和服务器等,服务器之间可以通过数据链路传输数据。本发明实施例中的第一节点和第二节点均指网络节点,所属于服务器,第一节点与第二节点在同一网络中传输数据时不需要经过其他的网络节点,可以直接通过第一节点与第二节点之间连通的多条数据链路传输数据。The method provided by the embodiment of the present invention can be used to reduce the power consumption of the data center. Data centers generally include racks, cabinets, servers, etc., and data can be transmitted between servers through data links. The first node and the second node in the embodiment of the present invention both refer to network nodes, which belong to the server. When the first node and the second node transmit data in the same network, they do not need to pass through other network nodes, and can directly pass through the first node A plurality of data links communicating with the second node transmit data.

另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中的“多个”是指两个或者两个以上。In addition, the term "and/or" in this article is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B, which may mean: A exists alone, A and B exist at the same time, There are three cases of B alone. "Plurality" herein refers to two or more.

实施例一Embodiment one

本发明实施例提供一种数据链路管理方法,如图1所示,包括:An embodiment of the present invention provides a data link management method, as shown in FIG. 1 , including:

101、第一节点获取与第二节点连通的N条数据链路的待发送数据量和/或带宽利用率;其中,N≥2,N为整数。101. The first node obtains the amount of data to be sent and/or the bandwidth utilization rate of the N data links connected to the second node; where N≥2, and N is an integer.

其中,一条数据链路对应一个待发送数据量和一个带宽利用率。Wherein, a data link corresponds to a data volume to be sent and a bandwidth utilization rate.

步骤101在具体实现时,第一节点可以实时的统计数据链路的待发送数据量和/或带宽利用率,也可以统计一定时间段内的数据链路的待发送数据量和/或带宽利用率。When step 101 is actually implemented, the first node can count the amount of data to be sent and/or bandwidth utilization of the data link in real time, or can count the amount of data to be sent and/or bandwidth utilization of the data link within a certain period of time Rate.

102、当N条数据链路中的M条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率时,第一节点向第二节点发送链路关闭请求消息;其中,链路关闭请求消息包括第一节点向第二节点请求关闭的M条数据链路中的X条数据链路的信息;2≤M≤N,1≤X≤M,M、X均为整数。102. When the amount of data to be sent in the M data links among the N data links is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, the first node sends a message to the second node A link closing request message; wherein, the link closing request message includes information on X data links among the M data links that the first node requests to close to the second node; 2≤M≤N, 1≤X≤M , M and X are both integers.

具体的,当数据链路的待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率时,说明通过该条数据链路传输的数据较少。其中,第一预设数据量和预设利用率可以根据实际情况进行确定,本发明实施例对此不进行限制。Specifically, when the amount of data to be sent of the data link is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, it means that the data transmitted through the data link is less. Wherein, the first preset data amount and the preset utilization rate may be determined according to actual conditions, which is not limited in this embodiment of the present invention.

其中,数据链路的信息具体可以为数据链路的编号,也可以为其他可以用于区分不同的数据链路的信息。Wherein, the information of the data link may specifically be a serial number of the data link, or may be other information that can be used to distinguish different data links.

103、第一节点接收第二节点发送的链路关闭响应消息,链路关闭响应消息包括第二节点确定关闭的m条数据链路的信息;其中,当1≤X<M时,1≤m≤X;当X=M时,1≤m<X;m为整数。103. The first node receives the link closing response message sent by the second node, and the link closing response message includes information on the m data links that the second node determines to close; where, when 1≤X<M, 1≤m ≤X; when X=M, 1≤m<X; m is an integer.

104、第一节点根据链路关闭响应消息关闭m条数据链路。104. The first node closes the m data links according to the link close response message.

其中,本发明实施例中提到的关闭某条数据链路是指使得该条数据链路处于无法传输数据的状态。Wherein, the closing of a certain data link mentioned in the embodiment of the present invention refers to making the data link in a state of being unable to transmit data.

步骤104在具体实现时,第一节点中包含有电源管理状态机,一条数据链路可以对应一个电源管理状态机,当第一节点确定关闭某条数据链路时,可以控制该数据链路对应的电源管理状态机的状态使得该数据链路的状态从L0状态切换到低功耗状态,从而关闭该数据链路。When step 104 is actually implemented, the first node includes a power management state machine, and a data link can correspond to a power management state machine. When the first node determines to close a certain data link, it can control the data link corresponding to The state of the power management state machine makes the state of the data link switch from the L 0 state to a low power consumption state, thereby closing the data link.

本发明实施例提供的方法,第一节点可以统计与第二节点连通的数据链路的待发送数据量和/或带宽利用率,并与第二节点共同确定将待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的部分数据链路关闭,当第一节点每隔较长时间才接收到一次通过关闭的某条数据链路与第二节点传输的数据时,该某条数据链路也不会在L0状态与低功耗状态之间频繁切换,因此可以提高数据中心的节能效果。In the method provided by the embodiment of the present invention, the first node can count the amount of data to be sent and/or the bandwidth utilization rate of the data link connected to the second node, and jointly determine with the second node that the amount of data to be sent is less than the first preset Assume that some data links whose data volume and/or bandwidth utilization rate are less than the preset utilization rate are closed, when the first node only receives the data transmitted with the second node through a closed data link every long time , the certain data link will not frequently switch between the L 0 state and the low power consumption state, so the energy saving effect of the data center can be improved.

可选的,在步骤102之前,上述X条数据链路可以通过以下两种方式中的任意一种确定:Optionally, before step 102, the above X data links may be determined in any of the following two ways:

方式一:第一节点预留至少一条M条数据链路中的、且网络延时小于预设延时的数据链路,X条数据链路为M条数据链路中的除预留的数据链路之外的数据链路。Method 1: The first node reserves at least one data link among the M data links, and the network delay is less than the preset delay, and the X data links are the M data links except the reserved data Data link other than link.

方式二:第一节点向第二节点发送数据链路预留消息,用于请求第二节点预留至少一条K条数据链路中的、且网络延时小于预设延时的数据链路,X条数据链路为M条数据链路;其中,K条数据链路为第二节点确定的X条数据链路中的待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的数据链路;2≤K≤X;K为整数。Mode 2: the first node sends a data link reservation message to the second node, which is used to request the second node to reserve at least one data link among the K data links and whose network delay is less than the preset delay, The X data links are M data links; wherein, the K data links are the X data links determined by the second node, the amount of data to be sent is less than the first preset data amount and/or the bandwidth utilization rate is less than Data link with preset utilization; 2≤K≤X; K is an integer.

其中,方式一在具体实现时,第一节点需要计算M条数据链路的网络延时(一条数据链路对应一个网络延时),从中确定出网络延时小于预设延时的数据链路,预留其中的至少一条数据链路。另外,第一节点在计算出M条数据链路的网络延时后,也可以根据其他预设条件确定出预留的数据链路,例如,其他预设条件可以为:预留的每条数据链路的网络延时小于M条数据链路中的除预留的数据链路之外的其他数据链路的网络延时。Wherein, in the specific implementation of mode one, the first node needs to calculate the network delay of M data links (one data link corresponds to one network delay), and determine the data link whose network delay is less than the preset delay , at least one of the data links is reserved. In addition, after the first node calculates the network delay of the M data links, it can also determine the reserved data link according to other preset conditions. For example, other preset conditions can be: each reserved data link The network delay of the link is smaller than the network delay of other data links in the M data links except the reserved data link.

具体的,第一节点确定的预留的数据链路的条数可以根据实际情况进行确定,例如,若M条数据链路的待发送数据量的总和较多,可以预留多条数据链路,若M条数据链路的待发送数据量的总和较少,可以预留一条数据链路。Specifically, the number of reserved data links determined by the first node can be determined according to the actual situation, for example, if the sum of the data volumes to be sent in the M data links is large, multiple data links can be reserved , if the total amount of data to be sent in the M data links is less, one data link can be reserved.

上述方法中,预留的数据链路的网络延时较短,有利于提高数据的传输效率。In the above method, the network delay of the reserved data link is relatively short, which is conducive to improving the efficiency of data transmission.

可选的,在步骤103之后,上述方法还可以包括以下步骤11)-12):Optionally, after step 103, the above method may also include the following steps 11)-12):

11)第一节点根据m条数据链路的信息更新网络节点连通表,网络节点连通表包括有第一节点与第二节点连通的数据链路的信息。11) The first node updates the network node connection table according to the information of the m data links, and the network node connection table includes the information of the data links connected between the first node and the second node.

12)第一节点根据更新后的网络节点连通表更新路由表,以使得第一节点根据更新后的路由表与第二节点传输数据。12) The first node updates the routing table according to the updated network node connectivity table, so that the first node transmits data with the second node according to the updated routing table.

需要说明的是,该可选的方法可以执行在步骤104之前或之后,也可以与步骤104同时执行;优选的,该可选的方法执行在步骤104之前或者与步骤104同时执行。It should be noted that this optional method may be performed before or after step 104, or may be performed simultaneously with step 104; preferably, this optional method may be performed before step 104 or simultaneously with step 104.

具体的,第二节点在确定关闭的m条数据链路后可以直接更新自身的网络节点连通表并根据更新后的网络节点连通表更新自身的路由表,该情况下,第一节点在更新路由表后,则可以保证第一节点和第二节点根据各自更新后的路由表通过未关闭的数据链路传输数据。Specifically, after the second node determines the closed m data links, it can directly update its own network node connection table and update its own routing table according to the updated network node connection table. In this case, the first node updates the routing table table, it can ensure that the first node and the second node transmit data through the unclosed data link according to their respective updated routing tables.

可选的,在步骤104之后,上述方法还可以包括以下步骤21)-22):Optionally, after step 104, the above method may also include the following steps 21)-22):

21)当第一节点在预设时间段内接收到第二预设数据量的向第二节点发送的数据时,第一节点开启m条数据链路中的至少一条数据链路。21) When the first node receives a second preset amount of data sent to the second node within a preset time period, the first node starts at least one data link among the m data links.

22)第一节点向第二节点发送链路开启通知消息,通知第二节点开启至少一条数据链路;其中,链路开启通知消息包括至少一条数据链路的信息。22) The first node sends a link start notification message to the second node to notify the second node to start at least one data link; wherein, the link start notification message includes information about at least one data link.

具体的,在步骤22)之后,第一节点可以通过开启的至少一条数据链路、或者开启的至少一条数据链路和未关闭的数据链路向第二节点发送数据。Specifically, after step 22), the first node may send data to the second node through at least one enabled data link, or at least one enabled data link and an unclosed data link.

具体的,当第一节点在预设时间段内接收到第二预设数据量的向第二节点发送的数据时,利用未关闭的数据链路可能无法及时的发送数据,此时,可以开启已经关闭的数据链路。Specifically, when the first node receives the second preset amount of data sent to the second node within the preset time period, the unclosed data link may not be able to send data in time. At this time, you can open A data link that has been shut down.

可选的,在步骤104之后,上述方法还可以包括以下步骤31)-32):Optionally, after step 104, the above method may also include the following steps 31)-32):

31)第一节点接收第二节点发送的链路开启通知消息;其中,链路开启通知消息包括第二节点通知开启的m条数据链路中的至少一条数据链路的信息。31) The first node receives the link opening notification message sent by the second node; wherein, the link opening notification message includes information about at least one data link among the m data links that the second node notifies to open.

32)第一节点根据链路开启通知消息开启至少一条数据链路。32) The first node starts at least one data link according to the link start notification message.

该情况下,第二节点在预设时间段内接收到第二预设数据量的向第一节点发送的数据时,第二节点也可以向第一节点发送链路开启通知消息,以使得第一节点开启关闭的m条数据链路中的至少一条数据链路。In this case, 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 send a link start notification message to the first node, so that the second node A node turns on at least one data link among the m data links that are turned off.

另外,当第一节点确定开启某条数据链路时,可以控制该数据链路对应的电源管理状态机的状态使得该数据链路从低功耗状态切换到L0状态。In addition, when the first node determines to enable a certain data link, it may control the state of the power management state machine corresponding to the data link so that the data link switches from the low power consumption state to the L 0 state.

需要说明的是,一旦N条数据链路中的一条或者多条数据链路的状态由打开状态变为关闭状态或者由关闭状态变为打开状态,第一节点和第二节都需要及时的更新自身的网络节点连通表和路由表,保证数据的正确传输。It should be noted that once the state of one or more data links among 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 section need to be updated in time Its own network node connection table and routing table ensure the correct transmission of data.

需要说明的是,背景技术中描述的降低数据链路的功耗的方法,当PCIe设备接收到向另一PCIe设备发送的数据时,会逐步的唤醒电源管理状态机的状态使得发送该数据的数据链路进入L0状态。低功耗状态又可分为L0s、L1、L2和L3状态,按照数据链路的功耗由大到小的顺序可以将低功耗状态排列为L0s>L1>L2>L3。可见,当数据链路进入L3状态时,数据链路的功耗最小。It should be noted that, in the method for reducing the power consumption of the data link described in the background art, when a PCIe device receives data sent to another PCIe device, it will gradually wake up the state of the power management state machine so that the data sent The data link enters the L 0 state. The low power consumption state can be further divided into L 0s , L 1 , L 2 and L 3 states, and the low power consumption states can be arranged as L 0s > L 1 > L 2 according to the order of power consumption of the data link from large to small > L 3 . It can be seen that when the data link enters the L3 state, the power consumption of the data link is minimum.

具体的,当数据链路处于低功耗状态L3时,若PCIe设备接收到向另一PCIe设备发送的数据时,就会唤醒电源管理状态机的状态使得该数据链路的状态从L3状态到L2状态,再到L1状态再到L0s状态,最后进入L0状态。这样,PCIe设备需要通过该数据链路向另一PCIe设备发送数据时,需要等到该数据链路被唤醒才可以,而数据链路从低功耗状态唤醒到L0状态需要较长的时延。而本发明实施例提供的数据链路管理方法,在满足条件的数据链路被关闭后,若第一节点接收到的向第二节点发送的数据的数据量较少时,第一节点和第二节点之间可以通过未关闭的数据链路进行数据传输,因此,不存在上述问题。Specifically, when the data link is in the low power consumption state L3, if the PCIe device receives data sent to another PCIe device, it will wake up the state of the power management state machine so that the state of the data link changes from L3 The state goes to the L2 state, then to the L1 state, then to the L0s state, and finally enters the L0 state . In this way, when a PCIe device needs to send data to another PCIe device through the data link, it needs to wait until the data link is awakened, and the data link wakes up from the low power consumption state to the L 0 state requires a long delay . However, in the data link management method provided by the embodiment of the present invention, after the data link that satisfies the conditions is closed, if the amount of data received by the first node and sent to the second node is small, the first node and the second node Data transmission can be performed between the two nodes through an unclosed data link, so the above-mentioned problem does not exist.

实施例二Embodiment two

本发明实施例提供一种数据链路管理方法,如图2所示,包括:An embodiment of the present invention provides a data link management method, as shown in FIG. 2 , including:

201、第二节点接收第一节点发送的链路关闭请求消息;其中,链路关闭请求消息包括第一节点向第二节点请求关闭的M条数据链路中的X条数据链路的信息;M条数据链路为第一节点确定的与第二节点连通的N条数据链路中的待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的数据链路;1≤X≤M,2≤M≤N,N、M、X均为整数。201. The second node receives a link closing request message sent by the first node; wherein, the link closing request message includes information about X data links among the M data links that the first node requests closing from the second node; The M data links are the data links whose amount of data to be sent is less than the first preset data amount and/or whose bandwidth utilization rate is less than the preset utilization rate among the N data links determined by the first node and connected to the second node ; 1≤X≤M, 2≤M≤N, where N, M, and X are all integers.

需要说明的是,本发明实施例中的相关解释可以参见上述实施例。It should be noted that, relevant explanations in the embodiments of the present invention may refer to the foregoing embodiments.

202、第二节点根据链路关闭请求消息确定关闭X条数据链路中的m条数据链路;其中,当1≤X<M时,1≤m≤X;当X=M时,1≤m<X;m为整数。202. The second node determines to close m data links among the X data links according to the link close request message; where, when 1≤X<M, 1≤m≤X; when X=M, 1≤ m<X; m is an integer.

可选的,步骤202在具体实现时可以通过以下两种方式中的任意一种方式实现:Optionally, step 202 may be implemented in any of the following two ways during specific implementation:

方式一、第二节点统计X条数据链路的待发送数据量和/或带宽利用率,若X条数据链路中的m条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率,确定关闭m条数据链路。Mode 1: The second node counts the amount of data to be sent and/or bandwidth utilization of the X data links, if the amount of data to be sent in the m data links of the X data links is less than the first preset data amount And/or the bandwidth utilization rate is less than the preset utilization rate, and it is determined to close the m data links.

方式二、第二节点接收第一节点发送的数据链路预留消息;第二节点统计X条数据链路中的待发送数据量和/或带宽利用率,若X条数据链路中的K条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率,预留至少一条K条数据链路中的网络延时小于预设延时的数据链路,确定关闭K条数据链路中的除预留的数据链路之外的m条数据链路;2≤K≤X,K为整数。Mode 2: The second node receives the data link reservation message sent by the first node; the second node counts the amount of data to be sent and/or the bandwidth utilization rate in the X data links, if K in the X data links The amount of data to be sent of each data link is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, and the network delay in at least one K data link is less than the preset delay time The data link is to determine to close m data links except the reserved data link among the K data links; 2≤K≤X, K is an integer.

其中,方式二在具体实现时,第二节点需要计算K条数据链路的网络延时(一条数据链路对应一个网络延时),从中确定出网络延时小于预设延时的数据链路,预留其中的至少一条数据链路。另外,第二节点在计算出K条数据链路中的网络延时后,也可以根据其他预设条件确定出预留的数据链路,例如,其他预设条件可以为:预留的每条数据链路的网络延时小于K条数据链路中的除预留的数据链路之外的其他数据链路的网络延时。Wherein, when mode 2 is actually implemented, the second node needs to calculate the network delay of K data links (one data link corresponds to one network delay), and determine the data link whose network delay is less than the preset delay , at least one of the data links is reserved. In addition, after the second node calculates the network delay in the K data links, it can also determine the reserved data links according to other preset conditions. For example, other preset conditions can be: each of the reserved The network delay of the data link is smaller than the network delay of other data links in the K data links except the reserved data link.

具体的,第二节点确定的预留的数据链路的条数可以根据实际情况进行确定,例如,若K条数据链路的待发送数据量的总和较多,可以预留多条数据链路,若K条数据链路的待发送数据量的总和较少,可以预留一条数据链路。上述方法中,预留的数据链路的网络延时较短,有利于提高数据的传输效率。Specifically, the number of reserved data links determined by the second node can be determined according to the actual situation. For example, if the sum of the data volumes to be sent in the K data links is large, multiple data links can be reserved , if the total amount of data to be sent in the K data links is less, one data link can be reserved. In the above method, the network delay of the reserved data link is relatively short, which is conducive to improving the efficiency of data transmission.

203、第二节点根据m条数据链路的信息生成链路关闭响应消息并向第一节点发送链路关闭响应消息,以使得第一节点根据链路关闭响应消息关闭m条数据链路。203. The second node generates a link shutdown response message according to the information of the m data links and sends 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.

204、第二节点关闭m条数据链路。204. The second node closes the m data links.

步骤204在具体实现时,第二节点中包含有电源管理状态机,一条数据链路可以对应一个电源管理状态机,当第二节点确定关闭某条数据链路时,可以控制该数据链路对应的电源管理状态机的状态使得该数据链路的状态从L0状态切换到低功耗状态,从而关闭该数据链路。When step 204 is actually implemented, the second node includes a power management state machine, and a data link can correspond to a power management state machine. When the second node determines to close a certain data link, it can control the data link corresponding to The state of the power management state machine makes the state of the data link switch from the L 0 state to a low power consumption state, thereby closing the data link.

本发明实施例中步骤203和步骤204的执行顺序不分先后。The execution order of step 203 and step 204 in the embodiment of the present invention is not in particular order.

本发明实施例提供的方法,第二节点可以通过接收到的第一节点发送的链路关闭请求消息中包含的数据链路的信息,与第一节点共同确定将待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的部分数据链路关闭,当第一节点每隔较长时间才接收到一次通过关闭的某条数据链路与第二节点传输的数据时,该某条数据链路也不会在L0状态与低功耗状态之间频繁切换,因此可以提高数据中心的节能效果。According to the method provided by the embodiment of the present invention, the second node can jointly determine with the first node that the amount of data to be sent is less than the first predetermined amount by receiving the information of the data link contained in the link closing request message sent by the first node. Assume that some data links whose data volume and/or bandwidth utilization rate are less than the preset utilization rate are closed, when the first node only receives the data transmitted with the second node through a closed data link every long time , the certain data link will not frequently switch between the L 0 state and the low power consumption state, so the energy saving effect of the data center can be improved.

可选的,在步骤202之后,上述方法还可以包括以下步骤41)-42):Optionally, after step 202, the above method may also include the following steps 41)-42):

41)第二节点根据m条数据链路的信息更新网络节点连通表,网络节点连通表包括有第二节点与第一节点连通的数据链路的信息。41) The second node updates the network node connection table according to the information of the m data links, and the network node connection table includes the information of the data links connected between the second node and the first node.

42)第二节点根据更新后的网络节点连通表更新路由表,以使得第二节点根据更新后的路由表与第一节点传输数据。42) The second node updates the routing table according to the updated network node connectivity table, so that the second node transmits data with the first node according to the updated routing table.

需要说明的是,该可选的方法可以执行在步骤204之前和之后,也可以与步骤204同时执行;优选的,该可选的方法执行在步骤204之前或者与步骤204同时执行。It should be noted that this optional method may be performed before and after step 204, or may be performed simultaneously with step 204; preferably, this optional method may be performed before step 204 or simultaneously with step 204.

具体的,第二节点在确定关闭的m条数据链路后可以直接更新自身的网络节点连通表并根据更新后的网络节点连通表更新自身的路由表,该情况下,第一节点在更新路由表后,则可以保证第一节点和第二节点根据各自更新后的路由表通过未关闭的数据链路传输数据。Specifically, after the second node determines the closed m data links, it can directly update its own network node connection table and update its own routing table according to the updated network node connection table. In this case, the first node updates the routing table table, it can ensure that the first node and the second node transmit data through the unclosed data link according to their respective updated routing tables.

可选的,在步骤204之后,上述方法还可以包括以下步骤51)-52):Optionally, after step 204, the above method may also include the following steps 51)-52):

51)第二节点接收第一节点发送的链路开启通知消息;其中,链路开启通知消息中包括第一节点通知开启的m条数据链路中的至少一条数据链路的信息。51) The second node receives the link start notification message sent by the first node; wherein, the link start notification message includes information about at least one of the m data links that the first node notifies to start.

52)第二节点根据链路开启通知消息开启至少一条数据链路。52) The second node starts at least one data link according to the link start notification message.

该情况下,第一节点在预设时间段内接收到第二预设数据量的向第二节点发送的数据时,向第二节点发送链路开启通知消息,使得第二节点开启关闭的m条数据链路中的至少一条数据链路。In this case, when the first node receives a second preset amount of data sent to the second node within a preset time period, it sends a link opening notification message to the second node, so that the second node turns on the closed m at least one of the data links.

可选的,在步骤204之后,上述方法还可以包括以下步骤61)-62):Optionally, after step 204, the above method may also include the following steps 61)-62):

61)当第二节点在预设时间段内接收到第二预设数据量的向第一节点发送的数据时,第二节点开启m条数据链路中的至少一条数据链路。61) When the second node receives a second preset amount of data sent to the first node within a preset time period, the second node starts at least one data link among the m data links.

62)第二节点向第一节点发送链路开启通知消息,通知第一节点开启至少一条数据链路;其中,链路开启通知消息包括至少一条数据链路的信息。62) The second node sends a link start notification message to the first node to notify the first node to start at least one data link; wherein, the link start notification message includes information about at least one data link.

具体的,在步骤62)之后,第二节点可以通过开启的至少一条数据链路、或者开启的至少一条数据链路和未关闭的数据链路向第一节点发送数据。Specifically, after step 62), the second node may send data to the first node through at least one enabled data link, or at least one enabled data link and an unclosed data link.

具体的,当第二节点在预设时间段内接收到第二预设数据量的向第一节点发送的数据时,利用未关闭的数据链路可能无法及时的发送数据,此时,可以开启已经关闭的数据链路。Specifically, when the second node receives the second preset amount of data sent to the first node within the preset time period, the unclosed data link may not be able to send data in time. At this time, you can open A data link that has been shut down.

另外,当第二节点确定开启某条数据链路时,可以控制该数据链路对应的电源管理状态机的状态使得该数据链路从低功耗状态切换到L0状态。In addition, when the second node determines to enable a certain data link, it may control the state of the power management state machine corresponding to the data link so that the data link switches from the low power consumption state to the L 0 state.

实施例三Embodiment three

本发明实施例是对实施例一和实施例二提供的数据链路管理方法的示例性说明,本发明实施例中的相关解释可以参见上述实施例,如图3所示,该方法包括:This embodiment of the present invention is an exemplary description of the data link management method provided by Embodiment 1 and Embodiment 2. For relevant explanations in this embodiment of the present invention, please refer to the foregoing embodiments, as shown in FIG. 3 , the method includes:

301、第一节点统计与第二节点连通的N条数据链路的待发送数据量和/或带宽利用率。301. The first node counts the amount of data to be sent and/or bandwidth utilization of the N data links connected to the second node.

具体的,第一节点可以通过查询自身缓存的待发送数据量确定自身的待发送数据量,待发送数据量越少的数据链路越空闲。第一节点可以通过在某条数据链路上向第二节点发送的数据量的多少和第二节点反馈的接收到的数据量的多少计算得到该数据链路的带宽利用率,带宽利用率越小的数据链路越空闲。Specifically, the first node may determine its own data volume to be sent by querying its cached data volume to be sent, and a data link with less data volume to be sent is more idle. The first node can calculate the bandwidth utilization rate of the data link by the amount of data sent to the second node on a certain data link and the amount of received data fed back by the second node. Smaller data links are more idle.

302、当N条数据链路中的M条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率时,第一节点向第二节点发送数据链路预留消息和链路关闭请求消息;其中,数据链路预留消息用于使第二节点预留M条数据链路中的一条网络延时最短的数据链路;链路关闭请求消息包括第一节点向第二节点请求关闭的M条数据链路的信息。302. When the amount of data to be sent in the M data links among the N data links is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, the first node sends a message to the second node A data link reservation message and a link closing request message; wherein, the data link reservation message is used to make the second node reserve a data link with the shortest network delay among the M data links; the link closing request The message includes information about the M data links that the first node requests the second node to close.

其中,数据链路的信息具体可以为数据链路的编号。Wherein, the information of the data link may specifically be a serial number of the data link.

303、第二节点根据接收到的链路关闭请求消息统计M条数据链路的待发送数据量和/或带宽利用率。303. The second node counts the amount of data to be sent and/or bandwidth utilization of the M data links according to the received link shutdown request message.

304、若M条数据链路中K条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率,第二节点计算该K条数据链路的网络延时。304. If the amount of data to be sent in the K data links among the M data links is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, the second node calculates the K data links network delay.

示例性的,第二节点可以在数据链路上发送一个用于计算网络延时的数据包,第二节点在接收到该数据包后立即发送一个反馈消息,第一节点根据发送数据包的时间点和接收到反馈消息的时间点计算该数据链路的网络延时。Exemplarily, the second node can send a data packet on the data link to calculate the network delay, the second node sends a feedback message immediately after receiving the data packet, and the first node Calculate the network delay of the data link based on the point and the time point when the feedback message is received.

305、第二节点根据数据链路预留消息预留K条数据链路中的一条网络延时最短的数据链路,确定K条数据链路中其余的数据链路为确定关闭的m条数据链路;其中,m=K-1。305. The second node reserves one of the K data links with the shortest network delay according to the data link reservation message, and determines that the rest of the K data links are the m data links that are determined to be closed link; where m=K-1.

需要说明的是,预留的数据链路的网络延时较短,有利于提高数据的传输效率。It should be noted that the reserved data link has a relatively short network delay, which is beneficial to improving data transmission efficiency.

306、第二节点生成链路关闭响应消息并向第一节点发送链路关闭响应消息;其中,链路关闭响应消息包括第二节点确定关闭的m条数据链路的信息。306. The second node generates a link shutdown response message and sends the link shutdown response message to the first node, where the link shutdown response message includes information about the m data links that the second node determines to shutdown.

307、第二节点根据确定关闭的m条数据链路的信息更新自身的网络节点连通表,并根据更新后的网络节点连通表更新自身的路由表。307. The second node updates its own network node connection table according to the information of the m data links determined to be closed, and updates its own routing table according to the updated network node connection table.

308、第二节点根据确定关闭的m条数据链路的信息关闭该m条数据链路。308. The second node closes the m data links determined to be closed according to the information about the m data links.

需要说明的是,本发明实施例对步骤307和308的执行顺序不进行限定,优选的,步骤307和308同时执行,或者步骤307先于步骤308执行。It should be noted that the execution order of steps 307 and 308 is not limited in this embodiment of the present invention. Preferably, steps 307 and 308 are executed at the same time, or step 307 is executed before step 308 .

309、第一节点根据接收到的链路关闭响应消息中包括的m条数据链路的信息更新自身的网络节点连通表,并根据更新后的网络节点连通表更新自身的路由表。309. The first node updates its own network node connection table according to the information of the m data links included in the received link shutdown response message, and updates its own routing table according to the updated network node connection table.

310、第一节点根据接收到的链路关闭响应消息中包括的m条数据链路的信息关闭该m条数据链路。310. 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.

需要说明的是,本发明实施例对步骤309和310的执行顺序不进行限定,优选的,步骤309和310同时执行,或者步骤309先于步骤310执行。另外,第二节点在执行步骤307和308时,第一节点可以执行步骤309和310,二者并不冲突。It should be noted that the execution order of steps 309 and 310 is not limited in this embodiment of the present invention. Preferably, steps 309 and 310 are executed at the same time, or step 309 is executed before step 310 . In addition, when the second node executes steps 307 and 308, the first node may execute steps 309 and 310, and the two do not conflict.

具体的,第一节点和第二节点中包含有电源管理状态机,一条数据链路可以对应一个电源管理状态机,当第一节点或第二节点确定关闭某条数据链路时,可以控制该数据链路对应的电源管理状态机的状态使得该数据链路的状态从L0状态切换到低功耗状态,从而关闭该数据链路。Specifically, the first node and the second node include a power management state machine, and a data link may correspond to a power management state machine. When the first node or the second node determines to close a certain data link, it can control the The state of the power management state machine corresponding to the data link makes the state of the data link switch from the L 0 state to the low power consumption state, thereby closing the data link.

311、第一节点根据更新后的路由表与第二节点传输数据。311. 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 can use the updated routing table in the unclosed data data transmission over the link.

其中,未关闭的数据链路为M条数据链路中的除m条数据链路之外的其他数据链路。Wherein, the unclosed data links are data links other than the m data links among the M data links.

当第一节点在预设时间段内接收到第二预设数据量的向第二节点发送的数据时,利用未关闭的数据链路可能无法及时的发送数据,该情况下,如图4所示,该方法还可以包括:When the first node receives the second preset amount of data sent to the second node within the preset time period, the unclosed data link may not be able to send the data in time. In this case, as shown in Figure 4 As indicated, the method may also include:

401、第一节点开启m条数据链路中的至少一条数据链路。401. The first node starts at least one data link among the m data links.

402、第一节点向第二节点发送链路开启通知消息;其中,链路开启通知消息包括第一节点通知开启的m条数据链路中的至少一条数据链路的信息。402. The first node sends a link start notification message to the second node. The link start notification message includes information about at least one data link among the m data links that the first node notifies to start.

403、第二节点根据接收到的链路开启通知消息开启m条数据链路中的至少一条数据链路。403. The second node starts at least one data link among the m data links according to the received link start notification message.

具体的,当第一节点或第二节点确定开启某条数据链路时,可以控制该数据链路对应的电源管理状态机的状态使得该数据链路从低功耗状态切换到L0状态。Specifically, when the first node or the second node determines to enable 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 switches from the low power consumption state to the L 0 state.

当然,当第二节点在预设时间段内接收到第二预设数据量的向第一节点发送的数据时,第二节点也可以执行步骤401和402,第一节点执行步骤403。Of course, when the second node receives the second preset data amount of data sent to the first node within the preset time period, the second node may also execute steps 401 and 402, and the first node executes step 403.

需要说明的是,一旦N条数据链路中的一条或者多条数据链路的状态由打开状态变为关闭状态或者由关闭状态变为打开状态,第一节点和第二节都需要及时的更新自身的网络节点连通表和路由表,保证数据的正确传输。It should be noted that once the state of one or more data links among 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 section need to be updated in time Its own network node connection table and routing table ensure the correct transmission of data.

本发明实施例提供的方法,第一节点可以统计与第二节点连通的数据链路的待发送数据量和/或带宽利用率,并与第二节点共同确定将待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的部分数据链路关闭,当第一节点每隔较长时间才接收到一次通过关闭的某条数据链路与第二节点传输的数据时,该某条数据链路也不会在L0状态与低功耗状态之间频繁切换,因此可以提高数据中心的节能效果。In the method provided by the embodiment of the present invention, the first node can count the amount of data to be sent and/or the bandwidth utilization rate of the data link connected to the second node, and jointly determine with the second node that the amount of data to be sent is less than the first preset Assume that some data links whose data volume and/or bandwidth utilization rate are less than the preset utilization rate are closed, when the first node only receives the data transmitted with the second node through a closed data link every long time , the certain data link will not frequently switch between the L 0 state and the low power consumption state, so the energy saving effect of the data center can be improved.

实施例四Embodiment Four

如图5所示,本发明实施例提供一种第一节点50,用于实现图1所示的数据链路管理方法,该第一节点50包括:As shown in FIG. 5, an embodiment of the present invention provides a first node 50 for implementing the data link management method shown in FIG. 1. The first node 50 includes:

获取单元501,用于获取与第二节点连通的N条数据链路的待发送数据量和/或带宽利用率;其中,N≥2,N为整数;The obtaining unit 501 is configured to obtain the amount of data to be sent and/or the bandwidth utilization rate of the N data links connected to the second node; wherein, N≥2, N is an integer;

发送单元502,用于当N条数据链路中的M条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率时,向第二节点发送链路关闭请求消息;其中,链路关闭请求消息包括第一节点50向第二节点请求关闭的M条数据链路中的X条数据链路的信息;2≤M≤N,1≤X≤M,M、X均为整数;The sending unit 502 is configured to, when the amount of data to be sent of the M data links in the N data links is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, send the second node Send a link closing request message; wherein, the link closing request message includes the first node 50 requesting the second node to close the information of X data links in the M data links; 2≤M≤N, 1≤X ≤M, M and X are both integers;

接收单元503,用于接收第二节点发送的链路关闭响应消息,链路关闭响应消息包括第二节点确定关闭的m条数据链路的信息;其中,当1≤X<M时,1≤m≤X;当X=M时,1≤m<X;m为整数;The receiving unit 503 is configured to receive a link shutdown response message sent by the second node, where the link shutdown response message includes information on the m data links determined to be closed by the second node; where, when 1≤X<M, 1≤ m≤X; when X=M, 1≤m<X; m is an integer;

执行单元504,用于根据链路关闭响应消息关闭m条数据链路。The execution unit 504 is configured to close the m data links according to the link close response message.

可选的,如图6所示,第一节点50还可以包括:Optionally, as shown in FIG. 6, the first node 50 may further include:

第一更新单元505,用于根据m条数据链路的信息更新网络节点连通表,网络节点连通表包括有第一节点50与第二节点连通的数据链路的信息;The first update unit 505 is configured to update the network node connection table according to the information of the m data links, the network node connection table includes the information of the data link connected between the first node 50 and the second node;

第二更新单元506,用于根据更新后的网络节点连通表更新路由表,以使得第一节点50根据更新后的路由表与第二节点传输数据。The second updating unit 506 is 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.

可选的,如图6所示,第一节点50还包括预留单元507,预留单元用于预留至少一条M条数据链路中的、且网络延时小于预设延时的数据链路,X条数据链路为M条数据链路中的除预留的数据链路之外的数据链路;或者,Optionally, as shown in FIG. 6 , the first node 50 further includes a reservation unit 507, which is used to reserve at least one data link among the M data links with a network delay less than a preset delay The X data links are data links other than the reserved data links among the M data links; or,

发送单元502,还用于向第二节点发送数据链路预留消息,用于请求第二节点预留至少一条K条数据链路中的、且网络延时小于预设延时的数据链路,X条数据链路为M条数据链路;其中,K条数据链路为第二节点确定的X条数据链路中的待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的数据链路;2≤K≤X;K为整数。The sending unit 502 is further configured to send a data link reservation message to the second node, which is used to request the second node to reserve at least one data link among the K data links and whose network delay is less than a preset delay , the X data links are M data links; wherein, the K data links are the amount of data to be sent in the X data links determined by the second node is less than the first preset data amount and/or bandwidth utilization A data link that is less than a preset utilization rate; 2≤K≤X; K is an integer.

可选的,执行单元504,还用于当第一节点50在预设时间段内接收到第二预设数据量的向第二节点发送的数据时,开启m条数据链路中的至少一条数据链路;发送单元502,还用于向第二节点发送链路开启通知消息,通知第二节点开启至少一条数据链路;其中,链路开启通知消息包括至少一条数据链路的信息。Optionally, the execution unit 504 is further configured to enable at least one of the m data links when the first node 50 receives a second preset amount of data sent to the second node within a preset time period Data link; the sending unit 502 is further configured to send a link start notification message to the second node, to notify the second node to start at least one data link; wherein, the link start notification message includes information about at least one data link.

可选的,接收单元503,还用于接收第二节点发送的链路开启通知消息;其中,链路开启通知消息包括第二节点通知开启的m条数据链路中的至少一条数据链路的信息;执行单元504,还用于根据链路开启通知消息开启至少一条数据链路。Optionally, the receiving unit 503 is further configured to receive a link opening notification message sent by the second node; wherein, the link opening notification message includes at least one data link among the m data links that the second node notifies to open Information; the executing unit 504 is further configured to enable at least one data link according to the link opening notification message.

本发明实施例提供的第一节点,可以统计与第二节点连通的数据链路的待发送数据量和/或带宽利用率,并与第二节点共同确定将待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的部分数据链路关闭,当第一节点每隔较长时间才接收到一次通过关闭的某条数据链路与第二节点传输的数据时,该某条数据链路也不会在L0状态与低功耗状态之间频繁切换,因此可以提高数据中心的节能效果。The first node provided by the embodiment of the present invention can count the amount of data to be sent and/or the bandwidth utilization rate of the data link connected to the second node, and jointly determine with the second node that the amount of data to be sent is less than the first preset Part of the data link whose data volume and/or bandwidth utilization rate is less than the preset utilization rate is closed, when the first node receives the data transmitted between the closed data link and the second node at a relatively long interval, The certain data link will not frequently switch between the L 0 state and the low power consumption state, so the energy saving effect of the data center can be improved.

实施例五Embodiment five

在硬件实现上,实施例四中的各个模块可以以硬件形式内嵌于或独立于第一节点的处理器中,也可以以软件形式存储于第一节点的存储器中,以便于处理器调用执行以上各个模块对应的操作,该处理器可以为中央处理单元(CPU)、微处理器、单片机等。In terms of hardware implementation, each module in Embodiment 4 can be embedded in or independent of the processor of the first node in the form of hardware, or can be stored in the memory of the first node in the form of software, so that the processor can call and execute For the corresponding operations of the above modules, the processor may be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, and the like.

如图7所示,本发明实施例提供一种第一节点70,用于实现图1所示的数据链路管理方法,该第一节点70包括:存储器701、处理器702、发送器703、接收器704和总线系统705;As shown in FIG. 7 , an embodiment of the present invention provides a first node 70 for implementing the data link management method shown in FIG. 1 , the first node 70 includes: a memory 701, a processor 702, a transmitter 703, receiver 704 and bus system 705;

其中,存储器701、处理器702、发送器703和接收器704之间是通过总线系统705耦合在一起的,其中存储器701可能包含随机存取存储器,也可能还包括非易失性存储器,例如至少一个磁盘存储器。总线系统705,可以是ISA总线、PCI总线或EISA总线等。该总线系统705可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Among them, the memory 701, the processor 702, the transmitter 703 and the receiver 704 are coupled together through the bus system 705, wherein the memory 701 may include a random access memory, and may also include a non-volatile memory, for example at least A disk storage. The bus system 705 may be an ISA bus, a PCI bus, or an EISA bus. The bus system 705 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 7 , but it does not mean that there is only one bus or one type of bus.

存储器701用于存储一组代码,该代码用于控制处理器702执行以下动作:获取与第二节点连通的N条数据链路的待发送数据量和/或带宽利用率;其中,N≥2,N为整数;The memory 701 is used to store a set of codes, and the codes are used to control the processor 702 to perform the following actions: acquire the amount of data to be sent and/or bandwidth utilization of the N data links connected to the second node; wherein, N≥2 , N is an integer;

发送器703,用于当N条数据链路中的M条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率时,向第二节点发送链路关闭请求消息;其中,链路关闭请求消息包括第一节点70向第二节点请求关闭的M条数据链路中的X条数据链路的信息;2≤M≤N,1≤X≤M,M、X均为整数;The sender 703 is configured to, when the amount of data to be sent of the M data links in the N data links is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, send the message to the second node Send a link closing request message; wherein, the link closing request message includes the first node 70 requesting the second node to close the information of X data links in the M data links; 2≤M≤N, 1≤X ≤M, M and X are both integers;

接收器704,用于接收第二节点发送的链路关闭响应消息,链路关闭响应消息包括第二节点确定关闭的m条数据链路的信息;其中,当1≤X<M时,1≤m≤X;当X=M时,1≤m<X;m为整数;The receiver 704 is configured to receive a link closing response message sent by the second node, where the link closing response message includes the information of the m data links determined to be closed by the second node; where, when 1≤X<M, 1≤ m≤X; when X=M, 1≤m<X; m is an integer;

处理器702,还用于根据链路关闭响应消息关闭m条数据链路。The processor 702 is further configured to close the m data links according to the link close response message.

可选的,处理器702还用于根据m条数据链路的信息更新网络节点连通表,网络节点连通表包括有第一节点70与第二节点连通的数据链路的信息;根据更新后的网络节点连通表更新路由表,以使得第一节点70根据更新后的路由表与第二节点传输数据。Optionally, the processor 702 is also configured to update the network node connection table according to the information of the m data links, the network node connection table includes the information of the data link connected between the first node 70 and the second node; according to the updated The network node connectivity table updates the routing table, so that the first node 70 transmits data with the second node according to the updated routing table.

可选的,处理器702还用于预留至少一条M条数据链路中的、且网络延时小于预设延时的数据链路,X条数据链路为M条数据链路中的除预留的数据链路之外的数据链路;或者,Optionally, the processor 702 is further configured to reserve at least one of the M data links and a data link whose network delay is less than the preset delay, and the X data links are all the M data links except a data link other than the reserved data link; or,

发送器703,还用于向第二节点发送数据链路预留消息,用于请求第二节点预留至少一条K条数据链路中的、且网络延时小于预设延时的数据链路,X条数据链路为M条数据链路;其中,K条数据链路为第二节点确定的X条数据链路中的待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的数据链路;2≤K≤X;K为整数。The sender 703 is further configured to send a data link reservation message to the second node, which is used to request the second node to reserve at least one data link among the K data links and whose network delay is less than a preset delay , the X data links are M data links; wherein, the K data links are the amount of data to be sent in the X data links determined by the second node is less than the first preset data amount and/or bandwidth utilization A data link that is less than a preset utilization rate; 2≤K≤X; K is an integer.

可选的,处理器702还用于当第一节点70在预设时间段内接收到第二预设数据量的向第二节点发送的数据时,开启m条数据链路中的至少一条数据链路;发送器703,还用于向第二节点发送链路开启通知消息,通知第二节点开启至少一条数据链路;其中,链路开启通知消息包括至少一条数据链路的信息。Optionally, the processor 702 is further configured to enable at least one of the m data links when the first node 70 receives a second preset amount of data sent to the second node within a preset time period. link; the sender 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 start notification message includes information about at least one data link.

可选的,接收器704还用于接收第二节点发送的链路开启通知消息;其中,链路开启通知消息包括第二节点通知开启的m条数据链路中的至少一条数据链路的信息;处理器702,还用于根据链路开启通知消息开启至少一条数据链路。Optionally, the receiver 704 is also configured to receive a link opening notification message sent by the second node; wherein, the link opening notification message includes information about at least one of the m data links that the second node notifies to open ; The processor 702 is also configured to enable at least one data link according to the link activation notification message.

本发明实施例提供的第一节点,可以统计与第二节点连通的数据链路的待发送数据量和/或带宽利用率,并与第二节点共同确定将待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的部分数据链路关闭,当第一节点每隔较长时间才接收到一次通过关闭的某条数据链路与第二节点传输的数据时,该某条数据链路也不会在L0状态与低功耗状态之间频繁切换,因此可以提高数据中心的节能效果。The first node provided by the embodiment of the present invention can count the amount of data to be sent and/or the bandwidth utilization rate of the data link connected to the second node, and jointly determine with the second node that the amount of data to be sent is less than the first preset Part of the data link whose data volume and/or bandwidth utilization rate is less than the preset utilization rate is closed, when the first node receives the data transmitted between the closed data link and the second node at a relatively long interval, The certain data link will not frequently switch between the L 0 state and the low power consumption state, so the energy saving effect of the data center can be improved.

实施例六Embodiment six

如图8所示,本发明实施例提供一种第二节点80,用于实现图2所示的数据链路管理方法,该第二节点80包括:As shown in FIG. 8, an embodiment of the present invention provides a second node 80, which is used to implement the data link management method shown in FIG. 2, and the second node 80 includes:

接收单元801,用于接收第一节点发送的链路关闭请求消息;其中,链路关闭请求消息包括第一节点向第二节点80请求关闭的M条数据链路中的X条数据链路的信息;M条数据链路为第一节点确定的与第二节点80连通的N条数据链路中的待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的数据链路;1≤X≤M,2≤M≤N,N、M、X均为整数;The receiving unit 801 is configured to receive a link closing request message sent by the first node; wherein, the link closing request message includes X data links among the M data links that the first node requests the second node 80 to close Information; the M data links are those in which the amount of data to be sent in the N data links connected to the second node 80 determined by the first node is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate Data link; 1≤X≤M, 2≤M≤N, N, M, and X are all integers;

确定单元802,用于根据链路关闭请求消息确定关闭X条数据链路中的m条数据链路;其中,当1≤X<M时,1≤m≤X;当X=M时,1≤m<X;m为整数;The determining unit 802 is configured to determine to close m data links among the X data links according to the link closing request message; where, when 1≤X<M, 1≤m≤X; when X=M, 1 ≤m<X; m is an integer;

生成单元803,用于根据m条数据链路的信息生成链路关闭响应消息;A generating unit 803, configured to generate a link shutdown response message according to the information of the m data links;

发送单元804,用于向第一节点发送链路关闭响应消息,以使得第一节点根据链路关闭响应消息关闭m条数据链路;A sending unit 804, configured to send a link closing response message to the first node, so that the first node closes m data links according to the link closing response message;

执行单元805,用于关闭m条数据链路。The execution unit 805 is configured to close the m data links.

可选的,如图9所示,第二节点80还包括:Optionally, as shown in FIG. 9, the second node 80 further includes:

第一更新单元806,用于根据m条数据链路的信息更新网络节点连通表,网络节点连通表包括有第二节点80与第一节点连通的数据链路的信息;The first update unit 806 is configured to update the network node connection table according to the information of the m data links, and the network node connection table includes the information of the data link connected between the second node 80 and the first node;

第二更新单元807,用于根据更新后的网络节点连通表更新路由表,以使得第二节点80根据更新后的路由表与第一节点传输数据。The second updating unit 807 is 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.

可选的,确定单元802具体用于统计X条数据链路的待发送数据量和/或带宽利用率,若X条数据链路中的m条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率,确定关闭m条数据链路;或者,Optionally, the determining unit 802 is specifically configured to count the amount of data to be sent and/or bandwidth utilization of the X data links, if the amount of data to be sent of the m data links in the X data links is less than the first The preset data volume and/or bandwidth utilization are both smaller than the preset utilization, and it is determined to close the m data links; or,

接收单元801,还用于接收第一节点发送的数据链路预留消息;确定单元802,具体用于统计X条数据链路的待发送数据量和/或带宽利用率,若X条数据链路中的K条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率,预留至少一条K条数据链路中的网络延时小于预设延时的数据链路,确定关闭K条数据链路中的除预留的数据链路之外的m条数据链路;2≤K≤X,K为整数。The receiving unit 801 is also configured to receive the data link reservation message sent by the first node; the determining unit 802 is specifically configured to count the amount of data to be sent and/or bandwidth utilization of the X data links, if the X data links The amount of data to be sent in the K data links in the road is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, and the network delay in at least one K data link is reserved less than the preset Assuming a delayed data link, it is determined to close the m data links except the reserved data link among the K data links; 2≤K≤X, K is an integer.

可选的,接收单元801还用于接收第一节点发送的链路开启通知消息;其中,链路开启通知消息中包括第一节点通知开启的m条数据链路中的至少一条数据链路的信息;执行单元805,还用于根据链路开启通知消息开启至少一条数据链路。Optionally, the receiving unit 801 is also configured to receive a link opening notification message sent by the first node; wherein, the link opening notification message includes the information of at least one data link among the m data links that the first node notifies to open Information; the executing unit 805 is further configured to enable at least one data link according to the link opening notification message.

可选的,执行单元805还用于当第二节点80在预设时间段内接收到第二预设数据量的向第一节点发送的数据时,开启m条数据链路中的至少一条数据链路;发送单元804还用于第二节点80向第一节点发送链路开启通知消息,通知第一节点开启至少一条数据链路;其中,链路开启通知消息包括至少一条数据链路的信息。Optionally, the execution unit 805 is further configured to enable at least one data link in the m data links when the second node 80 receives a second preset amount of data sent to the first node within a preset time period. link; the sending unit 804 is also used for the second node 80 to send a link start notification message to the first node, to notify the first node to start at least one data link; wherein, the link start notification message includes information about at least one data link .

本发明实施例提供的第二节点,可以通过接收到的第一节点发送的链路关闭请求消息中包含的数据链路的信息,与第一节点共同确定将待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的部分数据链路关闭,当第一节点每隔较长时间才接收到一次通过关闭的某条数据链路与第二节点传输的数据时,该某条数据链路也不会在L0状态与低功耗状态之间频繁切换,因此可以提高数据中心的节能效果。The second node provided in the embodiment of the present invention can jointly determine with the first node that the amount of data to be sent is less than the first preset Part of the data link whose data volume and/or bandwidth utilization rate is less than the preset utilization rate is closed, when the first node receives the data transmitted between the closed data link and the second node at a relatively long interval, The certain data link will not frequently switch between the L 0 state and the low power consumption state, so the energy saving effect of the data center can be improved.

实施例七Embodiment seven

在硬件实现上,实施例六中的各个模块可以以硬件形式内嵌于或独立于第二节点的处理器中,也可以以软件形式存储于第二节点的存储器中,以便于处理器调用执行以上各个模块对应的操作,该处理器可以为中央处理单元(CPU)、微处理器、单片机等。In terms of hardware implementation, each module in Embodiment 6 can be embedded in or independent of the processor of the second node in the form of hardware, or can be stored in the memory of the second node in the form of software, so that the processor can call and execute For the corresponding operations of the above modules, the processor may be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, and the like.

如图10所示,本发明实施例提供一种第二节点100,用于实现图2所示的数据链路管理方法,该第二节点100包括:接收器1001、存储器1002、处理器1003、发送器1004和总线系统1005。As shown in FIG. 10 , an embodiment of the present invention provides a second node 100 for implementing the data link management method shown in FIG. 2 . The second node 100 includes: a receiver 1001, a memory 1002, a processor 1003, Transmitter 1004 and bus system 1005.

其中,接收器1001、存储器1002、处理器1003和发送器1004之间是通过总线系统1005耦合在一起的,其中存储器1002可能包含随机存取存储器,也可能还包括非易失性存储器,例如至少一个磁盘存储器。总线系统1005,可以是ISA总线、PCI总线或EISA总线等。该总线系统1005可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Wherein, the receiver 1001, the memory 1002, the processor 1003 and the transmitter 1004 are coupled together through a bus system 1005, wherein the memory 1002 may include a random access memory, and may also include a non-volatile memory, for example at least A disk storage. The bus system 1005 may be an ISA bus, a PCI bus, or an EISA bus. The bus system 1005 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 10 , but it does not mean that there is only one bus or one type of bus.

接收器1001,用于接收第一节点发送的链路关闭请求消息;其中,链路关闭请求消息包括第一节点向第二节点100请求关闭的M条数据链路中的X条数据链路的信息;M条数据链路为第一节点确定的与第二节点100连通的N条数据链路中的待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的数据链路;1≤X≤M,2≤M≤N,N、M、X均为整数;The receiver 1001 is configured to receive a link closing request message sent by the first node; wherein, the link closing request message includes X data links among the M data links that the first node requests the second node 100 to close Information; the M data links are the N data links connected to the second node 100 determined by the first node, the amount of data to be sent is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate Data link; 1≤X≤M, 2≤M≤N, N, M, and X are all integers;

存储器1002用于存储一组代码,该代码用于控制处理器1003执行以下动作:根据链路关闭请求消息确定关闭X条数据链路中的m条数据链路;其中,当1≤X<M时,1≤m≤X;当X=M时,1≤m<X;m为整数;根据m条数据链路的信息生成链路关闭响应消息;The memory 1002 is used to store a set of codes, and the codes are used to control the processor 1003 to perform the following actions: determine to close the m data links among the X data links according to the link closing request message; wherein, when 1≤X<M When X=M, 1≤m≤X; when X=M, 1≤m<X; m is an integer; generate a link closing response message according to the information of m data links;

发送器1004,用于向第一节点发送链路关闭响应消息,以使得第一节点根据链路关闭响应消息关闭m条数据链路;The sender 1004 is configured to send a link closing response message to the first node, so that the first node closes m data links according to the link closing response message;

处理器1003,还用于关闭m条数据链路。The processor 1003 is further configured to close the m data links.

可选的,处理器1003还用于根据m条数据链路的信息更新网络节点连通表,网络节点连通表包括有第二节点100与第一节点连通的数据链路的信息;根据更新后的网络节点连通表更新路由表,以使得第二节点100根据更新后的路由表与第一节点传输数据。Optionally, the processor 1003 is further configured to update the network node connection table according to the information of the m data links, the network node connection table includes the information of the data link connected between the second node 100 and the first node; according to the updated The network node connectivity table updates the routing table, so that the second node 100 transmits data with the first node according to the updated routing table.

可选的,处理器1003具体用于统计X条数据链路的待发送数据量和/或带宽利用率,若X条数据链路中的m条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率,确定关闭m条数据链路;或者,Optionally, the processor 1003 is specifically configured to count the amount of data to be sent and/or bandwidth utilization of the X data links, if the amount of data to be sent of the m data links in the X data links is less than the first The preset data volume and/or bandwidth utilization are both smaller than the preset utilization, and it is determined to close the m data links; or,

接收器1001,还用于接收第一节点发送的数据链路预留消息;处理器1003具体用于统计X条数据链路的待发送数据量和/或带宽利用率,若X条数据链路中的K条数据链路的待发送数据量均小于第一预设数据量和/或带宽利用率均小于预设利用率,预留至少一条K条数据链路中的网络延时小于预设延时的数据链路,确定关闭K条数据链路中的除预留的数据链路之外的m条数据链路;2≤K≤X,K为整数。The receiver 1001 is further configured to receive the data link reservation message sent by the first node; the processor 1003 is specifically configured to count the amount of data to be sent and/or bandwidth utilization of the X data links, if the X data links The amount of data to be sent in the K data links is less than the first preset data amount and/or the bandwidth utilization rate is less than the preset utilization rate, and the network delay of at least one K data link is less than the preset For the delayed data link, it is determined to close the m data links except the reserved data link among the K data links; 2≤K≤X, K is an integer.

可选的,接收器1001还用于接收第一节点发送的链路开启通知消息;其中,链路开启通知消息中包括第一节点通知开启的m条数据链路中的至少一条数据链路的信息;处理器1003还用于根据链路开启通知消息开启至少一条数据链路。Optionally, the receiver 1001 is further configured to receive a link opening notification message sent by the first node; wherein, the link opening notification message includes the information of at least one of the m data links that the first node notifies to open Information; the processor 1003 is further configured to enable at least one data link according to the link opening notification message.

可选的,处理器1003还用于当第二节点100在预设时间段内接收到第二预设数据量的向第一节点发送的数据时,开启m条数据链路中的至少一条数据链路;发送器1004,还用于第二节点100向第一节点发送链路开启通知消息,通知第一节点开启至少一条数据链路;其中,链路开启通知消息包括至少一条数据链路的信息。Optionally, the processor 1003 is further configured to enable at least one of the m data links when the second node 100 receives a second preset amount of data sent to the first node within a preset time period. link; the sender 1004 is also used for the second node 100 to send a link start notification message to the first node, and notify the first node to start at least one data link; wherein, the link start notification message includes at least one data link information.

本发明实施例提供的第二节点,可以通过接收到的第一节点发送的链路关闭请求消息中包含的数据链路的信息,与第一节点共同确定将待发送数据量小于第一预设数据量和/或带宽利用率小于预设利用率的部分数据链路关闭,当第一节点每隔较长时间才接收到一次通过关闭的某条数据链路与第二节点传输的数据时,该某条数据链路也不会在L0状态与低功耗状态之间频繁切换,因此可以提高数据中心的节能效果。The second node provided in the embodiment of the present invention can jointly determine with the first node that the amount of data to be sent is less than the first preset Part of the data link whose data volume and/or bandwidth utilization rate is less than the preset utilization rate is closed, when the first node receives the data transmitted between the closed data link and the second node at a relatively long interval, The certain data link will not frequently switch between the L 0 state and the low power consumption state, so the energy saving effect of the data center can be improved.

本发明实施例还提供一种数据链路管理系统,包括:如实施例四或实施例五提供的任一种第一节点,和/或,如实施例六或实施例七提供的任一种第二节点。An embodiment of the present invention also provides a data link management system, including: any first node as provided in Embodiment 4 or Embodiment 5, and/or, as in any one of Embodiment 6 or Embodiment 7 second node.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may also be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, or in the form of hardware plus software function modules.

上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated modules implemented in the form of software function modules can be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), magnetic disk or optical disk, etc., which can store program codes. medium.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various 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.
CN201510270986.9A 2015-05-25 2015-05-25 A kind of data link management method and device Pending CN106302217A (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
王永庆 等: "支持可变功耗的多通道串行链路管理机制", 《计算机研究与发展》 *

Similar Documents

Publication Publication Date Title
US10552352B2 (en) Methods and apparatus for synchronizing uplink and downlink transactions on an inter-device communication link
US8595529B2 (en) Efficient power management and optimized event notification in multi-processor computing devices
US10948963B2 (en) Message handling unit
US7137018B2 (en) Active state link power management
TWI474734B (en) Power management method for a wireless communication device and wireless communication device
US10324513B2 (en) Control of peripheral device data exchange based on CPU power state
CN102204390A (en) Interim phy solution for lpi compatibility with legacy devices
CN108566634A (en) Reduce method, apparatus and Baffle Box of Bluetooth that Baffle Box of Bluetooth continuously wakes up delay
CN108551668B (en) Information transmission method, device, equipment and storage medium
WO2020093835A1 (en) Communication method and apparatus for ethernet, and device
WO2013063972A1 (en) Communication method, communication apparatus and electronic device
WO2012013057A1 (en) Method, equipment and system for controlling short message center cluster
WO2012149746A1 (en) Serial port baud rate configuration method, relevant equipment, and system
CN109314630A (en) Chain processing method, equipment and storage medium
CN109992314B (en) Data reporting method, device, terminal and storage medium
CN110417876A (en) Session method, node server and master control device in distributed system
WO2015103951A1 (en) Instant application message processing method and modem
EP2207309B1 (en) Method and system for a protocol with stateful negotiation for energy efficient network parameters in layer 2
CN106302217A (en) A kind of data link management method and device
WO2024255347A1 (en) Broadcasting method and system for field-programmable gate array accelerator cluster
CN101800814B (en) Power management method of wireless communication device and wireless communication device
WO2022068553A1 (en) Vehicle communication method and apparatus, computer-readable medium and electronic device
US20130198548A1 (en) Apparatus and method for saving power of usb device
CN114328336A (en) Android-based serial port transceiver method, system, terminal and storage medium
CN111836385A (en) Method and device for processing network beacon in wireless sensor network

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

Application publication date: 20170104

RJ01 Rejection of invention patent application after publication