CN113572695A - Link aggregation method and device, computing equipment and computer storage medium - Google Patents

Link aggregation method and device, computing equipment and computer storage medium Download PDF

Info

Publication number
CN113572695A
CN113572695A CN202010349425.9A CN202010349425A CN113572695A CN 113572695 A CN113572695 A CN 113572695A CN 202010349425 A CN202010349425 A CN 202010349425A CN 113572695 A CN113572695 A CN 113572695A
Authority
CN
China
Prior art keywords
port
network element
element port
adaptation
rate
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.)
Granted
Application number
CN202010349425.9A
Other languages
Chinese (zh)
Other versions
CN113572695B (en
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.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010349425.9A priority Critical patent/CN113572695B/en
Publication of CN113572695A publication Critical patent/CN113572695A/en
Application granted granted Critical
Publication of CN113572695B publication Critical patent/CN113572695B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/827Aggregation of resource allocation or reservation requests

Abstract

The invention discloses a link aggregation method, a link aggregation device, a computing device and a computer storage medium, wherein the method comprises the following steps: acquiring port configuration information of a first network element port and a second network element port; judging whether the port configuration information of the first network element port is consistent with the port configuration information of the second network element port; if not, generating an adaptation notification message, and sending the adaptation notification message to the first network element port and the second network element port, so that the first network element port and the second network element port determine that the port configuration of the other port is consistent with the port configuration of the port according to the adaptation notification message; and/or generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port; and interconnecting the first network element port and the second network element port to form a group port in link aggregation.

Description

Link aggregation method and device, computing equipment and computer storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a link aggregation method, an apparatus, a computing device, and a computer storage medium.
Background
The method is used for meeting the service requirements of high bandwidth and high availability of a mobile network and a data center network. Currently, in current data communication devices, when the traffic of a service link is heavily loaded or congested, forwarding of traffic with a larger traffic is mainly carried by aggregating a plurality of ethernet physical links into one logical link. This is a simple and efficient solution.
However, the inventor finds out in the process of implementing the invention that: in the existing link aggregation mode, only on the premise that the port rate, the duplex mode and the negotiation mode of interconnection of two end devices are all consistent, the newly added link aggregation can work, so that the load sharing is performed on the flow of the original service.
Disclosure of Invention
In view of the above, the present invention has been made to provide a link aggregation method, apparatus, computing device and computer storage medium that overcome or at least partially address the above-mentioned problems.
According to an aspect of the present invention, there is provided a link aggregation method, including:
acquiring port configuration information of a first network element port and a second network element port;
judging whether the port configuration information of the first network element port is consistent with the port configuration information of the second network element port;
if not, generating an adaptation notification message, and sending the adaptation notification message to the first network element port and the second network element port, so that the first network element port and the second network element port determine that the port configuration of the other port is consistent with the port configuration of the port according to the adaptation notification message;
and/or generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port;
and interconnecting the first network element port and the second network element port to form a group port in link aggregation.
Optionally, the port configuration information includes: the port rate information, after sending the adaptation notification message to the first network element port and the second network element port, further includes:
determining a target bandwidth utilization rate according to the port rate of the first network element port and the port rate of the second network element port;
and generating a notification message of the target bandwidth utilization rate and sending the notification message to the network element port with higher port rate, so that the network element port with higher port rate sets the highest bandwidth utilization rate as the target bandwidth utilization rate according to the notification message.
Alternatively, the target bandwidth utilization is equal to the quotient of the value of the lower-rate bandwidth and the value of the higher-rate bandwidth.
Optionally, the port configuration information includes: duplex mode information; generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port, further comprising:
if one network element port of the first network element port and the second network element port is in a full duplex mode, and the other network element port is in a half duplex mode, generating a duplex mode modification command, and sending the duplex mode modification command to the network element port in the half duplex mode, so that the network element port in the half duplex mode modifies the network element port in the full duplex mode into the full duplex mode according to the duplex mode modification command.
Optionally, the port configuration information includes: negotiating mode information; generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port, further comprising:
if one network element port of the first network element port and the second network element port is in the auto-negotiation mode, and the other network element port is in the full duplex mode, a port adaptation command is generated, and the port adaptation command is issued to the network element port in the auto-negotiation mode, so that the network element port in the auto-negotiation mode adapts the port configuration of the network element port in the full duplex mode according to the port adaptation command.
According to another aspect of the present invention, there is provided a link aggregation device, including:
the information acquisition module is suitable for acquiring port configuration information of a first network element port and a second network element port;
the control module is suitable for judging whether the port configuration information of the first network element port is consistent with the port configuration information of the second network element port;
if not, generating an adaptation notification message, and sending the adaptation notification message to the first network element port and the second network element port, so that the first network element port and the second network element port determine that the port configuration of the other port is consistent with the port configuration of the port according to the adaptation notification message;
and/or generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port;
and the interconnection module is suitable for interconnecting the first network element port and the second network element port to form a group port in link aggregation.
Optionally, the port configuration information includes: port rate information, the control module is further adapted to:
determining a target bandwidth utilization rate according to the port rate of the first network element port and the port rate of the second network element port;
and generating a notification message of the target bandwidth utilization rate and sending the notification message to the network element port with higher port rate, so that the network element port with higher port rate sets the highest bandwidth utilization rate as the target bandwidth utilization rate according to the notification message.
Alternatively, the target bandwidth utilization is equal to the quotient of the value of the lower-rate bandwidth and the value of the higher-rate bandwidth.
Optionally, the port configuration information includes: duplex mode information; the control module is further adapted to:
if one network element port of the first network element port and the second network element port is in a full duplex mode, and the other network element port is in a half duplex mode, generating a duplex mode modification command, and sending the duplex mode modification command to the network element port in the half duplex mode, so that the network element port in the half duplex mode modifies the network element port in the full duplex mode into the full duplex mode according to the duplex mode modification command.
Optionally, the port configuration information includes: negotiating mode information; the control module is further adapted to:
if one network element port of the first network element port and the second network element port is in the auto-negotiation mode, and the other network element port is in the full duplex mode, a port adaptation command is generated, and the port adaptation command is issued to the network element port in the auto-negotiation mode, so that the network element port in the auto-negotiation mode adapts the port configuration of the network element port in the full duplex mode according to the port adaptation command.
According to yet another aspect of the present invention, there is provided a computing device comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the link aggregation method.
According to still another aspect of the present invention, a computer storage medium is provided, where at least one executable instruction is stored, and the executable instruction causes a processor to perform operations corresponding to the above link aggregation method.
According to the link aggregation method, the device, the computing equipment and the computer storage medium, the port configuration information of the first network element port and the second network element port is acquired; judging whether the port configuration information of the first network element port is consistent with the port configuration information of the second network element port; if not, generating an adaptation notification message, and sending the adaptation notification message to the first network element port and the second network element port, so that the first network element port and the second network element port determine that the port configuration of the other port is consistent with the port configuration of the port according to the adaptation notification message; and/or generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port; and interconnecting the first network element port and the second network element port to form a group port in link aggregation. The method realizes the capacity expansion of the link without difference and network interruption by adapting the configuration of two incompatible network element ports and combining the two adapted network element ports into a group of ports which can share the service in the link aggregation, reduces the condition of adding link aggregation between different ports of different equipment and solves the problem that the two incompatible network element ports in the prior art can not form the group port in the link aggregation; meanwhile, the mode does not need to replace equipment or board cards, is easier to implement, does not need to cut services, and ensures that the services are not interrupted.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a link aggregation method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a link aggregation method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a link aggregation device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computing device provided in an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 shows a flowchart of a link aggregation method provided by an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step S110, collecting port configuration information of the first network element port and the second network element port.
Respectively acquiring port configuration information of a first network element port and port configuration information of a second network element port, where the port configuration information may include: port rate information, duplex mode information, and negotiation mode information, among others.
Step S120, determining whether the port configuration information of the first network element port is consistent with the port configuration information of the second network element port.
Step S130, if the port configuration of the port is not consistent with the port configuration of the local port, generating an adaptation notification message, and sending the adaptation notification message to the first network element port and the second network element port, so that the first network element port and the second network element port determine, according to the adaptation notification message, that the port configuration of the other port is consistent with the port configuration of the local port.
And/or generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port.
In this embodiment, when the port information of the first network element port is inconsistent with the port configuration information of the second network element port, the port configuration of the first network element port and the port configuration of the second network element port are adapted, so that the first network element port and the second network element port can perform link aggregation.
Specifically, on the one hand, an adaptation notification message is generated and sent to the first network element port and the second network element port. Wherein, the adaptation notification message is used to notify the network element that the port configuration of the other port is consistent with the port configuration of the port. That is, after the first network element port receives the adaptation notification message, it is determined that the port configuration of the second network element port is consistent with the port configuration of the local terminal according to the adaptation notification message. And after the second network element port receives the adaptation notification message, determining that the port configuration of the first network element port is consistent with the port configuration of the port according to the adaptation notification message. Briefly, a first network element port and a second network element port are made to consider the port configurations of each other as consistent by sending an adaptation notification message to the first network element port and the second network element port.
And on the other hand, generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port. The adaptation command is used for controlling the network element port to adapt and modify the configuration of the network element port. After receiving the adaptation command, the first network element port modifies the port configuration of the first network element port to adapt to the configuration of the second network element port; and after receiving the adaptation command, the second network element port modifies the port configuration of the second network element port to adapt to the configuration of the first network element port.
It follows that the adaptation described in this embodiment involves two implications: first, by sending notification messages to two network element ports, the two network element ports are made consistent for each other's port configuration. And secondly, the configuration of the first network element port and the second network element port is adapted by issuing an adaptation command.
Step S140, the first network element port and the second network element port are interconnected to form a group port in link aggregation.
Through step S130, the port information of the first network element port and the second network element port is adapted, and at this time, the first network element port and the second network element port can perform link aggregation, and the first network element port and the second network element port are interconnected to form a pair of group ports in link aggregation.
According to the link aggregation method provided by the embodiment, port configuration information of a first network element port and port configuration information of a second network element port are collected and compared, if the port configuration information of the first network element port is inconsistent with the port configuration information of the second network element port, the first network element port and the second network element port consider that the port configurations of the first network element port and the second network element port are consistent or directly adapt the port configurations of the first network element port and the second network element port by means of issuing an adaptation notification message and/or issuing an adaptation command, so that the first network element port and the second network element port are adapted, the two adapted network element ports are interconnected, and a group of ports in link aggregation is formed. The method adapts the configuration of two incompatible network element ports, and the two network element ports after adaptation become a group of ports which can share service in link aggregation, thereby realizing the link capacity expansion of a non-differential uninterrupted network, reducing the condition of adding link aggregation between different ports of different equipment, and solving the problem that the two incompatible network element ports in the prior art can not form a group of ports in link aggregation; meanwhile, the mode does not need to replace equipment or board cards, is easier to implement, does not need to cut services, and ensures that the services are not interrupted.
Fig. 2 shows a flowchart of a link aggregation method according to another embodiment of the present invention, and as shown in fig. 2, the method includes the following steps:
step S210, collecting port configuration information of a first network element port and a second network element port, where the port configuration information includes: port rate information, duplex mode information, and negotiation mode information.
Step S220, determine whether the port configuration information of the first network element port is consistent with the port configuration information of the second network element port.
Respectively judging whether the port rate information of the first network element port is consistent with the port rate information of the second network element port; judging whether the duplex mode information of the first network element port is consistent with the duplex mode information of the second network element port; and judging whether the negotiation mode information of the first network element port is consistent with the negotiation mode information of the second network element port.
Step S230, if the port rate information is not consistent, generating an adaptation notification message, and sending the adaptation notification message to the first network element port and the second network element port, so that the first network element port and the second network element port determine, according to the adaptation notification message, that the port rate of the other port is consistent with the port rate of the port.
If the port rates of the first network element port and the second network element port are not consistent, generating an adaptation notification message, sending the adaptation notification message to the first network element port, and determining that the rate of the second network element port is consistent with the rate of the first network element port by the first network element port according to the adaptation notification message; and the second network element port determines that the rate of the first network element port is consistent with the rate of the port according to the received adaptation notification message. Briefly, a first network element port and a second network element port consider port rates of each other to be consistent by sending an adaptation notification message to the first network element port and the second network element port.
For example, the rate of the port of the first network element is 100M, the rate of the port of the second network element is 1000M, and the rates of the two are not the same. Then a first notification message for notifying that the rate bandwidth of the second network element port is 100M is generated and sent to the first network element port, and after the first network element port receives the first notification message, it is determined that the rate of the second network element port is also 100M and is consistent with the rate of the port. And generating a second notification message for notifying that the rate of the first network element port is 1000M and sending the second notification message to the second network element port, wherein after the second network element port receives the second notification message, the rate of the first network element port is also 1000M and is consistent with the rate of the port.
Step S240, determining a target bandwidth utilization rate according to the port rate of the first network element port and the port rate of the second network element port, generating a notification message of the target bandwidth utilization rate and sending the notification message to the network element port with a higher port rate, so that the network element port with the higher port rate sets the highest bandwidth utilization rate thereof as the target bandwidth utilization rate according to the notification message.
And determining the target bandwidth utilization rate according to the rate of the first network element port and the rate of the second network element port, generating a notification message of the target bandwidth utilization rate, sending the notification message to the network element port with higher rate, and setting the highest bandwidth utilization rate of the network element port with higher rate as the target bandwidth utilization rate according to the notification message.
Alternatively, the target bandwidth utilization is equal to the quotient of the value of the lower-rate bandwidth and the value of the higher-rate bandwidth. Following the above example, the maximum bandwidth utilization X1 of the first network element port is set as the default 100% in advance, and the maximum bandwidth utilization X2 of the second network element port is set as the default 100%, the rate bandwidth of the first network element port is 100M, the rate bandwidth of the second network element port is 1000M, and the target bandwidth utilization X is 100M/1000M is 10%. The notification message of the target bandwidth utilization rate X is sent to the second network element port (the network element port with the higher rate), and the second network element port sets the highest bandwidth utilization rate X2 to 10% according to the notification message, so as to prevent the situation that the utilization rate of the second network element port exceeds 10%, which results in the utilization rate of the second network element port exceeding 100%. And sending a notification message of the highest bandwidth utilization rate X1 (100%) to the first network element port. It can be seen that the present embodiment is directed to the rate of the network element port, and the high rate port is adapted to the low rate port.
Step S250, if the duplex mode information is inconsistent, and one of the first network element port and the second network element port is in a full duplex mode, and the other network element port is in a half duplex mode, generating a duplex mode modification command, and sending the duplex mode modification command to the half duplex mode network element port, so that the half duplex mode network element port can modify the half duplex mode into the full duplex mode according to the duplex mode modification command.
If the duplex mode of the first network element port is inconsistent with that of the second network element port is judged, and the duplex mode of one network element port is determined to be the full duplex mode and the duplex mode of the other network element port is determined to be the half duplex mode according to the collected duplex mode information, a duplex mode modification command is generated and sent to the network element port in the half duplex mode, and the network element port in the half duplex mode is modified into the full duplex mode according to the received modification command. Briefly, for the duplex mode, the embodiment forces the half-duplex mode to issue the full-duplex mode.
Step S260, if the negotiation mode information is inconsistent, and one of the first network element port and the second network element port is in the auto-negotiation mode, and the other network element port is in the full duplex mode, generating a port adaptation command, and issuing the port adaptation command to the network element port in the auto-negotiation mode, so that the network element port in the auto-negotiation mode adapts the network element port in the full duplex mode according to the port adaptation command.
If the negotiation mode information of the two network elements is not consistent, one network element port is determined to be in an auto-negotiation mode according to the negotiation mode information, and the other network element port is in a full duplex mode, a port adaptation command is generated and issued to the network element port in the auto-negotiation mode, and the network element port in the auto-negotiation mode adapts the port configuration of the network element port in the full duplex mode according to the port adaptation command. Briefly, this embodiment is directed to a network element port in auto-negotiation mode, and the port configuration of the network element port is adapted to a network element port in full duplex mode.
It should be noted that, the adaptation process for the three different port configurations may be performed serially according to a predetermined sequence, or may be performed in parallel, which is not limited by the present invention.
According to the link aggregation method provided by the embodiment, port information including a port rate, a duplex mode, a negotiation mode and the like, which is obtained by interconnecting a first network element and a second network element, is collected; by controlling the high-rate port to adapt to the low-rate port, the auto-negotiation mode to adapt to the full-duplex mode and the half-duplex mode to forcibly send the full-duplex mode, port link aggregation under different rates, duplex modes and negotiation modes between two network elements is realized, link capacity expansion without difference and network interruption is realized, and interruption of important services such as financial services and security services can be guaranteed.
Fig. 3 shows a schematic structural diagram of a link aggregation apparatus provided in an embodiment of the present invention, and as shown in fig. 3, the apparatus includes: an information acquisition module 31, a control module 32 and an interconnection module 33.
The information acquisition module 31 is adapted to acquire port configuration information of a first network element port and a second network element port;
the control module 32 is adapted to determine whether the port configuration information of the first network element port is consistent with the port configuration information of the second network element port;
if not, generating an adaptation notification message, and sending the adaptation notification message to the first network element port and the second network element port, so that the first network element port and the second network element port determine that the port configuration of the other port is consistent with the port configuration of the port according to the adaptation notification message;
and/or generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port;
the interconnecting module 33 is adapted to interconnect the first network element port and the second network element port to form a group port in link aggregation.
In an optional manner, the port configuration information includes: port rate information, the control module 32 is further adapted to:
determining a target bandwidth utilization rate according to the port rate of the first network element port and the port rate of the second network element port;
and generating a notification message of the target bandwidth utilization rate and sending the notification message to the network element port with higher port rate, so that the network element port with higher port rate sets the highest bandwidth utilization rate as the target bandwidth utilization rate according to the notification message.
In an alternative approach, the target bandwidth utilization is equal to the quotient of the value of the lower-rate bandwidth and the value of the higher-rate bandwidth.
In an optional manner, the port configuration information includes: duplex mode information; the control module 32 is further adapted to:
if one network element port of the first network element port and the second network element port is in a full duplex mode, and the other network element port is in a half duplex mode, generating a duplex mode modification command, and sending the duplex mode modification command to the network element port in the half duplex mode, so that the network element port in the half duplex mode modifies the network element port in the full duplex mode into the full duplex mode according to the duplex mode modification command.
In an optional manner, the port configuration information includes: negotiating mode information; the control module 32 is further adapted to:
if one network element port of the first network element port and the second network element port is in the auto-negotiation mode, and the other network element port is in the full duplex mode, a port adaptation command is generated, and the port adaptation command is issued to the network element port in the auto-negotiation mode, so that the network element port in the auto-negotiation mode adapts the port configuration of the network element port in the full duplex mode according to the port adaptation command.
In this embodiment, a device including an information acquisition module and a control module is added between a first network element and a second network element for establishing link aggregation, and port information including a port rate, a duplex mode, a negotiation mode, and the like, which is interconnected between the first network element and the second network element, is acquired through the information acquisition module; the principle that the full duplex mode is forcibly issued through the high-rate port in the control module adapting to the low-rate port, the auto-negotiation mode adapting to the full duplex mode and the half duplex mode is adopted, so that port link aggregation under different rates, duplex modes and negotiation modes between two network elements is realized, the condition of adding link aggregation between different ports of different equipment can be reduced, equipment, board cards or cut-over services are not required to be replaced, and uninterrupted services are guaranteed.
An embodiment of the present invention provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the link aggregation method in any of the above method embodiments.
The executable instructions may be specifically configured to cause the processor to:
acquiring port configuration information of a first network element port and a second network element port;
judging whether the port configuration information of the first network element port is consistent with the port configuration information of the second network element port;
if not, generating an adaptation notification message, and sending the adaptation notification message to the first network element port and the second network element port, so that the first network element port and the second network element port determine that the port configuration of the other port is consistent with the port configuration of the port according to the adaptation notification message;
and/or generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port;
and interconnecting the first network element port and the second network element port to form a group port in link aggregation.
In an optional manner, the port configuration information includes: port rate information, the executable instructions causing the processor to:
after the adaptation notification message is sent to the first network element port and the second network element port, determining the target bandwidth utilization rate according to the port rate of the first network element port and the port rate of the second network element port;
and generating a notification message of the target bandwidth utilization rate and sending the notification message to the network element port with higher port rate, so that the network element port with higher port rate sets the highest bandwidth utilization rate as the target bandwidth utilization rate according to the notification message.
In an alternative approach, the target bandwidth utilization is equal to the quotient of the value of the lower-rate bandwidth and the value of the higher-rate bandwidth.
In an optional manner, the port configuration information includes: duplex mode information; the executable instructions cause the processor to:
if one network element port of the first network element port and the second network element port is in a full duplex mode, and the other network element port is in a half duplex mode, generating a duplex mode modification command, and sending the duplex mode modification command to the network element port in the half duplex mode, so that the network element port in the half duplex mode modifies the network element port in the full duplex mode into the full duplex mode according to the duplex mode modification command.
In an optional manner, the port configuration information includes: negotiating mode information; the executable instructions cause the processor to:
if one network element port of the first network element port and the second network element port is in the auto-negotiation mode, and the other network element port is in the full duplex mode, a port adaptation command is generated, and the port adaptation command is issued to the network element port in the auto-negotiation mode, so that the network element port in the auto-negotiation mode adapts the port configuration of the network element port in the full duplex mode according to the port adaptation command.
Fig. 4 is a schematic structural diagram of an embodiment of a computing device according to the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 4, the computing device may include: a processor (processor)402, a Communications Interface 404, a memory 406, and a Communications bus 408.
Wherein: the processor 402, communication interface 404, and memory 406 communicate with each other via a communication bus 408. A communication interface 404 for communicating with network elements of other devices, such as clients or other servers. The processor 402, configured to execute the program 410, may specifically perform relevant steps in the above-described embodiment of the link aggregation method for a computing device.
In particular, program 410 may include program code comprising computer operating instructions.
The processor 402 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 410 may specifically be configured to cause the processor 402 to perform the following operations:
acquiring port configuration information of a first network element port and a second network element port;
judging whether the port configuration information of the first network element port is consistent with the port configuration information of the second network element port;
if not, generating an adaptation notification message, and sending the adaptation notification message to the first network element port and the second network element port, so that the first network element port and the second network element port determine that the port configuration of the other port is consistent with the port configuration of the port according to the adaptation notification message;
and/or generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port;
and interconnecting the first network element port and the second network element port to form a group port in link aggregation.
In an optional manner, the port configuration information includes: port rate information, the program 410 causing the processor 402 to:
after the adaptation notification message is sent to the first network element port and the second network element port, determining the target bandwidth utilization rate according to the port rate of the first network element port and the port rate of the second network element port;
and generating a notification message of the target bandwidth utilization rate and sending the notification message to the network element port with higher port rate, so that the network element port with higher port rate sets the highest bandwidth utilization rate as the target bandwidth utilization rate according to the notification message.
In an alternative approach, the target bandwidth utilization is equal to the quotient of the value of the lower-rate bandwidth and the value of the higher-rate bandwidth.
In an optional manner, the port configuration information includes: duplex mode information; the program 410 causes the processor 402 to perform the following operations:
if one network element port of the first network element port and the second network element port is in a full duplex mode, and the other network element port is in a half duplex mode, generating a duplex mode modification command, and sending the duplex mode modification command to the network element port in the half duplex mode, so that the network element port in the half duplex mode modifies the network element port in the full duplex mode into the full duplex mode according to the duplex mode modification command.
In an optional manner, the port configuration information includes: negotiating mode information; the program 410 causes the processor 402 to perform the following operations:
if one network element port of the first network element port and the second network element port is in the auto-negotiation mode, and the other network element port is in the full duplex mode, a port adaptation command is generated, and the port adaptation command is issued to the network element port in the auto-negotiation mode, so that the network element port in the auto-negotiation mode adapts the port configuration of the network element port in the full duplex mode according to the port adaptation command.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form. It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

Claims (10)

1. A link aggregation method, comprising:
acquiring port configuration information of a first network element port and a second network element port;
judging whether the port configuration information of the first network element port is consistent with the port configuration information of the second network element port;
if not, generating an adaptation notification message, and sending the adaptation notification message to the first network element port and the second network element port, so that the first network element port and the second network element port determine that the port configuration of the other port is consistent with the port configuration of the port according to the adaptation notification message;
and/or generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port;
and interconnecting the first network element port and the second network element port to form a group port in link aggregation.
2. The method of claim 1, wherein the port configuration information comprises: the port rate information, after sending the adaptation notification message to the first network element port and the second network element port, further includes:
determining a target bandwidth utilization rate according to the port rate of the first network element port and the port rate of the second network element port;
and generating a notification message of the target bandwidth utilization rate and sending the notification message to the network element port with higher port rate, so that the network element port with higher port rate sets the highest bandwidth utilization rate as the target bandwidth utilization rate according to the notification message.
3. The method of claim 2, wherein the target bandwidth utilization is equal to a quotient of a value of a lower-rate bandwidth and a value of a higher-rate bandwidth.
4. The method of claim 1, wherein the port configuration information comprises: duplex mode information;
generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port, further comprising:
if one network element port of the first network element port and the second network element port is in a full duplex mode, and the other network element port is in a half duplex mode, generating a duplex mode modification command, and sending the duplex mode modification command to the network element port in the half duplex mode, so that the network element port in the half duplex mode modifies the network element port in the full duplex mode into the full duplex mode according to the duplex mode modification command.
5. The method of claim 4, wherein the port configuration information comprises: negotiating mode information;
generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port, further comprising:
if one network element port of the first network element port and the second network element port is in an auto-negotiation mode, and the other network element port is in a full-duplex mode, generating a port adaptation command, and issuing the port adaptation command to the network element port in the auto-negotiation mode, so that the network element port in the auto-negotiation mode adapts the port configuration of the network element port in the full-duplex mode according to the port adaptation command.
6. A link aggregation device, comprising:
the information acquisition module is suitable for acquiring port configuration information of a first network element port and a second network element port;
the control module is suitable for judging whether the port configuration information of the first network element port is consistent with the port configuration information of the second network element port;
if not, generating an adaptation notification message, and sending the adaptation notification message to the first network element port and the second network element port, so that the first network element port and the second network element port determine that the port configuration of the other port is consistent with the port configuration of the port according to the adaptation notification message;
and/or generating an adaptation command of the port configuration, and sending the adaptation command to the first network element port or the second network element port, so that the first network element port or the second network element port modifies the port configuration of the port according to the adaptation command to adapt to the port configuration of the other port;
and the interconnection module is suitable for interconnecting the first network element port and the second network element port to form a group port in link aggregation.
7. The apparatus of claim 6, wherein the port configuration information comprises port rate information, the control module is further adapted to:
determining a target bandwidth utilization rate according to the port rate of the first network element port and the port rate of the second network element port;
and generating a notification message of the target bandwidth utilization rate and sending the notification message to the network element port with higher port rate, so that the network element port with higher port rate sets the highest bandwidth utilization rate as the target bandwidth utilization rate according to the notification message.
8. The apparatus of claim 7, wherein the target bandwidth utilization is equal to a quotient of a value of a lower-rate bandwidth and a value of a higher-rate bandwidth.
9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the link aggregation method according to any one of claims 1-5.
10. A computer storage medium having stored therein at least one executable instruction that causes a processor to perform operations corresponding to the link aggregation method of any one of claims 1-5.
CN202010349425.9A 2020-04-28 2020-04-28 Link aggregation method, device, computing equipment and computer storage medium Active CN113572695B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010349425.9A CN113572695B (en) 2020-04-28 2020-04-28 Link aggregation method, device, computing equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010349425.9A CN113572695B (en) 2020-04-28 2020-04-28 Link aggregation method, device, computing equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN113572695A true CN113572695A (en) 2021-10-29
CN113572695B CN113572695B (en) 2023-11-14

Family

ID=78157945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010349425.9A Active CN113572695B (en) 2020-04-28 2020-04-28 Link aggregation method, device, computing equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113572695B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230006918A1 (en) * 2021-06-30 2023-01-05 Fortinet, Inc. Automatic link aggregation for incompatible data ports on a computer network

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725761A (en) * 2005-06-10 2006-01-25 杭州华为三康技术有限公司 Method of implementing link aggregation of network equipment
CN101420332A (en) * 2008-12-12 2009-04-29 杭州华三通信技术有限公司 Notifying method and network device for member terminal port configuring condition
CN102045243A (en) * 2009-10-10 2011-05-04 中兴通讯股份有限公司 Method and system for of adaptively recognizing duplex mode of network port of opposite terminal among network devices
US20110280124A1 (en) * 2010-05-17 2011-11-17 Stephen John Unger Systems and Methods for Load Balancing of Management Traffic Over a Link Aggregation Group
CN103841047A (en) * 2014-02-28 2014-06-04 杭州华三通信技术有限公司 Link aggregation method and device
CN104104570A (en) * 2013-04-07 2014-10-15 杭州华三通信技术有限公司 Aggregation processing method in IRF (Intelligent Resilient Framework) system and device
CN104253747A (en) * 2014-10-17 2014-12-31 杭州晨晓科技有限公司 Transmission method and transmission device for performing 1: 1 protection on message in link aggregation group
US9071559B1 (en) * 2012-11-15 2015-06-30 Qlogic, Corporation Network devices having configurable receive packet queues and related methods
CN105743816A (en) * 2014-12-10 2016-07-06 华为技术有限公司 Link aggregation method and device
US20170310548A1 (en) * 2016-04-21 2017-10-26 Super Micro Computer, Inc. Automatic configuration of a network switch in a multi-chassis link aggregation group
US20180367408A1 (en) * 2017-06-19 2018-12-20 Quanta Computer Inc. Methods for automatically configuring multiple chassis link aggregation group (mc-lag)
CN109120421A (en) * 2017-06-22 2019-01-01 中兴通讯股份有限公司 A kind of method for interface adaptation, device, system and storage medium
CN109428816A (en) * 2017-08-28 2019-03-05 中国电信股份有限公司 Link protection method, device and storage medium
WO2019238006A1 (en) * 2018-06-12 2019-12-19 中兴通讯股份有限公司 Access authentication method for port, terminal, and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725761A (en) * 2005-06-10 2006-01-25 杭州华为三康技术有限公司 Method of implementing link aggregation of network equipment
CN101420332A (en) * 2008-12-12 2009-04-29 杭州华三通信技术有限公司 Notifying method and network device for member terminal port configuring condition
CN102045243A (en) * 2009-10-10 2011-05-04 中兴通讯股份有限公司 Method and system for of adaptively recognizing duplex mode of network port of opposite terminal among network devices
US20110280124A1 (en) * 2010-05-17 2011-11-17 Stephen John Unger Systems and Methods for Load Balancing of Management Traffic Over a Link Aggregation Group
US9071559B1 (en) * 2012-11-15 2015-06-30 Qlogic, Corporation Network devices having configurable receive packet queues and related methods
CN104104570A (en) * 2013-04-07 2014-10-15 杭州华三通信技术有限公司 Aggregation processing method in IRF (Intelligent Resilient Framework) system and device
CN103841047A (en) * 2014-02-28 2014-06-04 杭州华三通信技术有限公司 Link aggregation method and device
CN104253747A (en) * 2014-10-17 2014-12-31 杭州晨晓科技有限公司 Transmission method and transmission device for performing 1: 1 protection on message in link aggregation group
CN105743816A (en) * 2014-12-10 2016-07-06 华为技术有限公司 Link aggregation method and device
US20170310548A1 (en) * 2016-04-21 2017-10-26 Super Micro Computer, Inc. Automatic configuration of a network switch in a multi-chassis link aggregation group
US20180367408A1 (en) * 2017-06-19 2018-12-20 Quanta Computer Inc. Methods for automatically configuring multiple chassis link aggregation group (mc-lag)
CN109120421A (en) * 2017-06-22 2019-01-01 中兴通讯股份有限公司 A kind of method for interface adaptation, device, system and storage medium
CN109428816A (en) * 2017-08-28 2019-03-05 中国电信股份有限公司 Link protection method, device and storage medium
WO2019238006A1 (en) * 2018-06-12 2019-12-19 中兴通讯股份有限公司 Access authentication method for port, terminal, and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AHMED I. ABDULSHAKOOR; MAHMOUD M. ELMESALAWY; GAMAL A. KHALAF: "Proportional Traffic Splitting for Efficient LTE-WLAN Aggregation in Multi-RAT Heterogeneous Networks", IEEE *
吕永芝;苏锋文;: "链路聚合及其组网应用", 数字技术与应用, no. 09 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230006918A1 (en) * 2021-06-30 2023-01-05 Fortinet, Inc. Automatic link aggregation for incompatible data ports on a computer network

Also Published As

Publication number Publication date
CN113572695B (en) 2023-11-14

Similar Documents

Publication Publication Date Title
CN101616083B (en) Message forwarding method and device
WO2016187813A1 (en) Data transmission method and device for photoelectric hybrid network
CN107395572B (en) Data processing method and Internet of things gateway
CN110855792A (en) Message pushing method, device, equipment and medium
US8539089B2 (en) System and method for vertical perimeter protection
CN111163130A (en) Network service system and data transmission method thereof
CN112910802A (en) Message processing method and device
CN105141603A (en) Communication data transmission method and system
CN107968848B (en) A kind of method, terminal device and storage medium obtaining IP address
CN105743816A (en) Link aggregation method and device
WO2017097117A1 (en) Message scheduling method and apparatus
CN113572695B (en) Link aggregation method, device, computing equipment and computer storage medium
CN106131162B (en) A method of network service agent is realized based on IOCP mechanism
CN105635000A (en) Message storing and forwarding method, circuit and device
CN113347017B (en) Network communication method and device, network node equipment and hybrid network
CN114500528A (en) Data transmission method and device based on cloud platform
CN111064768B (en) Printer data transmission control method, device, equipment and storage medium
CN104038441A (en) Method and system for transmitting data
CN102117261B (en) Communication method between inner processors of chip
CN107547412B (en) STP calculation method and device
CN111245794B (en) Data transmission method and device
CN113904976A (en) Multi-path data transmission method and device for lossy network based on RDMA
CN115514698A (en) Protocol calculation method, switch, cross-device link aggregation system and storage medium
CN107454021B (en) Communication method and device
US7290055B2 (en) Multi-threaded accept mechanism in a vertical perimeter communication environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant