CN108737189B - DR device role updating method and device - Google Patents

DR device role updating method and device Download PDF

Info

Publication number
CN108737189B
CN108737189B CN201810516739.6A CN201810516739A CN108737189B CN 108737189 B CN108737189 B CN 108737189B CN 201810516739 A CN201810516739 A CN 201810516739A CN 108737189 B CN108737189 B CN 108737189B
Authority
CN
China
Prior art keywords
role
equipment
slave
message
negotiation
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.)
Active
Application number
CN201810516739.6A
Other languages
Chinese (zh)
Other versions
CN108737189A (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.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810516739.6A priority Critical patent/CN108737189B/en
Publication of CN108737189A publication Critical patent/CN108737189A/en
Application granted granted Critical
Publication of CN108737189B publication Critical patent/CN108737189B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The present disclosure relates to a method and an apparatus for updating roles of DR devices, where the method is applied to a distributed aggregation system, where the distributed aggregation system includes two DR devices, and the method includes: when an IPL link of an internal control link fails, each DR device receives a role negotiation message sent by an opposite-end DR device, wherein the role negotiation message comprises role information of the DR device which sends the role negotiation message; each DR device sends a role negotiation response message according to the received role negotiation message, wherein the role negotiation response message comprises role information of the DR device which sends the role negotiation response message; and each DR device determines the updated role of the DR device according to the role information of the DR device and the role information of the opposite DR device. In the embodiment of the disclosure, each DR device can resume working according to the updated role, thereby avoiding the problem of secondary closing of the device caused by different roles.

Description

DR device role updating method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for updating roles of a DR device.
Background
In a distributed aggregation system, ports on slave DR devices are shut down when IPL links fail. After the IPL link is restored, the role of the DR device is reselected. When the role of the slave DR device is reselected as the master device during the failure, and when the role of the master DR device is reselected as the slave device during the failure, the port of the DR device with the role as the slave device is closed again, so that the situations that the devices are closed twice occur, and the upper-layer service is affected.
Disclosure of Invention
In view of this, the present disclosure provides a method and an apparatus for updating a role of a DR device, so as to solve the problem that when an IPL link fails, the DR device is closed twice to affect a service.
According to an aspect of the present disclosure, there is provided a method for updating roles of DR devices, the method being applied to a distributed aggregation system, the distributed aggregation system including two DR devices, the method including:
when an IPL link of an internal control link fails, each DR device receives a role negotiation message sent by an opposite-end DR device, wherein the role negotiation message comprises role information of the DR device which sends the role negotiation message;
each DR device sends a role negotiation response message according to the received role negotiation message, wherein the role negotiation response message comprises role information of the DR device which sends the role negotiation response message;
and each DR device determines the updated role of the DR device according to the role information of the DR device and the role information of the opposite DR device.
According to another aspect of the present disclosure, there is provided a method for updating a role of a DR device, the method being applied to a distributed aggregation system including a master DR device and a slave DR device, the method including:
when an IPL link fails, the master DR equipment sends a first role negotiation message to the slave DR equipment, wherein the first role negotiation message comprises role information of the master DR equipment;
the master DR equipment receives a first role negotiation response message sent by the slave DR equipment, wherein the first role negotiation response message is sent by the slave DR equipment after receiving the first role negotiation message, and the first role negotiation response message comprises role information of the slave DR equipment;
and the main DR equipment determines the updated role of the main DR equipment according to the role information of the auxiliary DR equipment and the role information of the main DR equipment.
In one possible implementation, the method further includes;
and when the updated role of the main DR equipment is determined to be the slave equipment, the main DR equipment closes the ports except the reserved port.
In a possible implementation manner, when an IPL link fails, the sending, by the master DR apparatus, a role negotiation packet to the slave DR apparatus includes:
when the IPL link fails, the main DR equipment updates own role information according to the role change information;
and the master DR equipment sends the first role negotiation message to the slave DR equipment according to the updated role information.
In one possible implementation, the method further includes:
the master DR equipment receives a second role negotiation message sent by the slave DR equipment, wherein the second role negotiation message comprises role information of the slave DR equipment, and the role information of the slave DR equipment is determined according to role change information of the slave DR equipment;
the master DR equipment sends a second role negotiation response message to the slave DR equipment according to the second role negotiation message, wherein the second role negotiation response message comprises role information of the master DR equipment;
and the main DR equipment determines the updated role of the main DR equipment according to the role information of the auxiliary DR equipment and the role information of the main DR equipment.
In one possible implementation, the role information includes role priority and/or bridge MAC.
According to another aspect of the present disclosure, there is provided a DR device role updating apparatus applied in a DR device of a distributed aggregation system, the apparatus including:
an opposite end message receiving module, configured to receive a role negotiation message sent by an opposite end DR device when an internal control link IPL link fails, where the role negotiation message includes role information of the DR device that sent the role negotiation message;
the response message sending module is used for sending a role negotiation response message according to the received role negotiation message, wherein the role negotiation response message comprises role information of the DR equipment which sends the role negotiation response message;
and the role updating module is used for determining the updated role according to the role information of the role updating module and the role information of the opposite-end DR equipment.
According to another aspect of the present disclosure, there is provided a DR device role updating apparatus applied to a master DR device and a slave DR device of a distributed aggregation system, the apparatus in the master DR device including:
a message sending module, configured to send a first role negotiation message to the slave DR device when the IPL link fails, where the first role negotiation message includes role information of the master DR device;
a response message receiving module, configured to receive a first role negotiation response message sent by the slave DR device, where the first role negotiation response message is sent by the slave DR device after receiving the first role negotiation message, and the first role negotiation response message includes role information of the slave DR device;
and the first role updating module is used for determining the role after self updating according to the role information of the slave DR equipment and the role information of the slave DR equipment.
In one possible implementation, the apparatus further includes;
and the port closing module is used for closing the ports except the reserved port when the updated role is determined to be the slave equipment.
In a possible implementation manner, the message sending module includes:
the role information updating submodule is used for updating the role information of the module according to the role change information when the IPL link fails;
and the first message sending submodule is used for sending the first role negotiation message to the slave DR equipment by the master DR equipment according to the updated role information.
In one possible implementation, the apparatus further includes:
a message receiving module, configured to receive a second role negotiation message sent by the slave DR device, where the second role negotiation message includes role information of the slave DR device, and the role information of the slave DR device is determined according to role change information of the slave DR device;
a response message sending module, configured to send a second role negotiation response message to the slave DR device according to the second role negotiation message, where the second role negotiation response message includes role information of the master DR device;
and the second role updating module is used for determining the updated role of the slave DR equipment according to the role information of the slave DR equipment and the role information of the slave DR equipment.
In one possible implementation, the role information includes role priority and/or bridge MAC.
In the embodiment of the present disclosure, when the IPL link fails, each DR device sends a role negotiation message to the peer DR device, and analyzes the received role negotiation response message sent by the peer DR device to obtain role information of the peer DR device. And the two DR devices determine the updated roles of the two DR devices according to the same role judgment rule. By sending the role negotiation message and the role negotiation response message, each DR device determines the updated role of the DR device, and when the IPL link is recovered, each DR device can recover according to the updated role, so that the problem of secondary shutdown of the device caused by different roles is avoided.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 illustrates a flowchart of a DR device role update method according to an embodiment of the present disclosure;
FIG. 2 illustrates a flow chart of a DR device role update method according to an embodiment of the present disclosure;
FIG. 3 illustrates a flow chart of a DR device role update method according to an embodiment of the present disclosure;
FIG. 4 illustrates a flow chart of a DR device role update method according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating Keepalive messages in a method for updating a role of a DR device according to an embodiment of the present disclosure;
fig. 6 illustrates a block diagram of a DR device role update apparatus according to an embodiment of the present disclosure;
fig. 7 illustrates a block diagram of a DR device role update apparatus according to an embodiment of the present disclosure;
fig. 8 is a block diagram illustrating an apparatus for role update of a DR device according to an exemplary embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Fig. 1 is a flowchart illustrating a method for updating a role of a DR device according to an embodiment of the present disclosure, where the method is applied to a distributed aggregation system, the distributed aggregation system including two DR devices, and the method includes:
step S1, when the IPL link fails, each DR device receives a role negotiation packet sent by an opposite DR device, where the role negotiation packet includes role information of the DR device that sent the role negotiation packet.
In a possible implementation manner, when the roles of two DR devices in the distributed aggregation system are the same (or a master and a slave are not already separated), both DR devices may send a role negotiation packet to a DR device of an opposite end. For example, when the Keepalive link is not configured in the distributed aggregation system and the IPL link fails, after the Keepalive link is established, roles of two DR devices in the distributed aggregation system are both master devices (or both slave devices), and both DR devices may send a role negotiation packet to a DR device of an opposite end.
The role negotiation message may use an existing message format, for example, the role negotiation message may use a format of a Keepalive message.
In one possible implementation, the role information includes role priority and/or bridge MAC. The role negotiation message sent by each DR device may include its own role priority and/or bridge MAC.
Each DR device may send a plurality of role negotiation messages, or may continuously send role negotiation messages, so as to ensure that the DR device of the opposite end can receive the role negotiation messages.
Step S2, each DR device sends a role negotiation response message according to the received role negotiation message, where the role negotiation response message includes role information of the DR device that sent the role negotiation response message.
In a possible implementation manner, after each DR device receives a role negotiation message sent by a DR device of an opposite end, a role negotiation response message is sent to the DR device of the opposite end. The role negotiation response message may use an existing message format, for example, the role negotiation response message may use a format of a Keepalive message.
And each DR equipment receives the role negotiation response message sent by the opposite end DR equipment and analyzes the role negotiation response message to obtain the role priority and/or the bridge MAC of the opposite end DR equipment.
In a possible implementation manner, after each DR device receives a role negotiation response message sent by an opposite-end DR device, sending of the role negotiation message may be stopped.
Step S3, each DR device determines its updated role according to its own role information and the role information of the peer DR device.
In a possible implementation manner, each DR device determines its updated role according to its own role priority and/or bridge MAC and the role priority and/or bridge MAC of the peer DR device obtained through analysis. For example, if the role priority value of the current DR device is smaller than that of the peer DR device, the updated role of the current DR device is determined to be the master device. If the role priority value of the current DR equipment is equal to the role priority value of the opposite-end DR equipment, and the bridge MAC value of the current DR equipment is smaller than that of the opposite-end DR equipment, the current DR equipment determines the updated role as the main equipment. The correspondence between the updated role and the value of the role priority and/or the value of the bridge MAC can be set as required.
In this embodiment, when the IPL link fails, each DR device sends a role negotiation packet to the peer DR device, and analyzes the received role negotiation response packet sent by the peer DR device to obtain role information of the peer DR device. And the two DR devices determine the updated roles of the two DR devices according to the same role judgment rule. By sending the role negotiation message and the role negotiation response message, each DR device determines the updated role of the DR device, and when the IPL link is recovered, each DR device can recover to work according to the updated role, so that the problem of secondary shutdown of the device caused by different roles is solved.
In one possible implementation, the method further includes:
and determining that the updated role of the slave device is that the DR device of the slave device closes the ports except the reserved port.
In a possible implementation manner, if the updated role determined by the current DR device is a slave device and the updated role of the peer DR device is a master device, the current DR device closes (MAD DOWN) other ports except the reserved port.
And if the updated role determined by the DR equipment at the opposite end is the slave equipment and the updated role of the current DR equipment is the master equipment, closing (MADDOWN) other ports except the reserved port by the DR equipment at the opposite end.
In this embodiment, the updated role is that the DR device of the slave device closes the ports except the reserved port, so that the problem of secondary closing of the device due to different roles when the IPL link is restored can be avoided.
In a possible implementation manner, the role negotiation packet and the role negotiation response packet further include type information, where the type information includes a type that supports role update and a type that does not support role update.
Fig. 2 is a flowchart illustrating a method for updating a role of a DR device according to an embodiment of the present disclosure, where the method is applied to a distributed aggregation system, as illustrated in fig. 2, and the distributed aggregation system includes a master DR device and a slave DR device, and the method includes:
step S10, when the IPL link fails, the master DR device sends a first role negotiation packet to the slave DR device, where the first role negotiation packet includes role information of the master DR device.
In a possible implementation manner, when two DR devices in the distributed aggregation system are respectively a master device or a slave device, for example, when a Keepalive link is configured in the distributed aggregation system, and roles of the two DR devices are one master device and one slave device, the IPL link fails, and the master DR device sends a first role negotiation message to the slave DR device. The first role negotiation message may use an existing message format, for example, the first role negotiation message may use a format of a Keepalive message.
In one possible implementation, the role information includes role priority and/or bridge MAC. The first role negotiation message sent by the master DR device may include the role priority and/or the bridge MAC of the master DR device itself.
The master DR device may send a plurality of first role negotiation messages, and the master DR device may also continuously send the first role negotiation messages to ensure that the slave DR device can receive the first role negotiation messages.
Step S20, the master DR device receives a first role negotiation response packet sent by the slave DR device, where the first role negotiation response packet is sent by the slave DR device after receiving the first role negotiation packet, and the first role negotiation response packet includes role information of the slave DR device.
In a possible implementation manner, after receiving the first role negotiation message sent by the master DR device, the slave DR device sends a first role negotiation response message to the master DR device. The first role negotiation response message may use an existing message format, for example, the first role negotiation response message may use a format of a Keepalive message. The first role negotiation response message transmitted from the DR device may include the role priority and/or bridge MAC of the DR device itself. And the master DR equipment receives the first role negotiation response message sent by the slave DR equipment, and analyzes to obtain the role priority and/or the bridge MAC of the slave DR equipment.
In one possible implementation manner, after the master DR device receives the first role negotiation response message sent from the DR device, the master DR device may stop sending the first role negotiation message.
Step S30, the master DR device determines its updated role according to the role information of the slave DR device and its own role information.
In one possible implementation, the master DR device determines its updated role according to its role priority and/or bridge MAC and the role priority and/or bridge MAC of the slave DR device obtained through parsing. For example, if the role priority value of the master DR apparatus is smaller than the role priority value of the slave DR apparatus, the master DR apparatus determines the updated role thereof as the master. If the role priority value of the master DR device is equal to the role priority value of the slave DR device, and the bridge MAC value of the master DR device is smaller than the bridge MAC value of the slave DR device, the master DR device determines that the updated role is the master.
And the slave DR equipment determines the updated role of the slave DR equipment by using the same rule as the master DR equipment according to the role priority and/or the bridge MAC of the master DR equipment and the role priority and/or the bridge MAC of the slave DR equipment obtained by analysis. For example, if the role priority value of the slave DR apparatus is greater than the role priority value of the master DR apparatus, the slave DR apparatus determines that the updated role thereof is a slave. And if the role priority value of the slave DR equipment is equal to the role priority value of the slave DR equipment, and the bridge MAC value of the slave DR equipment is larger than that of the slave DR equipment, determining the updated role as the slave equipment by the slave DR equipment. The corresponding relation between the value of the role priority and/or the value of the bridge MAC and the determined updated role can be set according to the requirement.
In this embodiment, when the IPL link fails, the master DR device sends the first role negotiation packet to the slave DR device, so that the slave DR device obtains role information of the master DR device after parsing the first role negotiation packet, the slave DR device sends the first role negotiation response packet to the master DR device according to the received first role negotiation packet, and the master DR device parses the first role negotiation response packet to obtain role information of the slave DR device. And the master DR equipment and the slave DR equipment determine the roles updated by the master DR equipment and the slave DR equipment according to the same role judgment rule. By sending the first role negotiation message and the first role negotiation response message, the master DR device and the slave DR device respectively determine updated roles of the master DR device and the slave DR device, and when the IPL link is restored, the master DR device and the slave DR device can restore work according to the updated roles, so that the problem of secondary closing of the devices caused by different roles is solved.
In one possible implementation, the method further includes;
and when the updated role of the main DR equipment is determined to be the slave equipment, the main DR equipment closes the ports except the reserved port.
In one possible implementation, when the updated role determined by the master DR device is the slave device and the updated role of the slave DR device is the master device, the master DR device closes (maddown) the other ports except the reserved port.
And when the updated role determined by the slave DR equipment is the slave equipment and the updated role of the master DR equipment is the master equipment, closing (MADDOWN) other ports except the reserved port by the slave DR equipment.
In this embodiment, when the updated role of the master DR apparatus is the slave apparatus, the master DR apparatus closes the ports except the reserved port, so as to avoid the problem of secondary closing of the apparatus due to different roles when the IPL link is restored.
Fig. 3 is a flowchart illustrating a DR device role updating method according to an embodiment of the present disclosure, where, as shown in fig. 3, step S10 in the DR device role updating method includes:
step S11, when the IPL link fails, the master DR device updates its own role information according to the role change information.
In a possible implementation manner, when the IPL link fails, the role of the DR device may update its own role information according to the received role change information. For example, the master DR device and/or the slave DR device may update their own role priorities or bridge MACs according to the received role change information.
Step S12, the master DR device sends the first role negotiation packet to the slave DR device according to the updated role information.
In a possible implementation manner, the master DR device sends a first role negotiation packet to the slave DR device according to the updated role information. The first role negotiation message comprises role information updated by the main DR equipment. And the main DR equipment determines the updated role of the main DR equipment according to the updated role information of the main DR equipment and the role information of the auxiliary DR equipment obtained by analysis.
The slave DR apparatus may determine its own updated role based on the updated role information of the master DR apparatus and the role information of the slave DR apparatus itself.
In a possible implementation manner, when the IPL link fails and the main DR device does not receive role change information, the main DR device sends a first role negotiation packet according to its own role information, and determines an updated role. When the main DR equipment receives the role change information, the main DR equipment sends a first role negotiation message according to the updated role information and determines the updated role of the main DR equipment again.
In this embodiment, after the master DR apparatus receives the role change information, the master DR apparatus updates its own color reference information; and sending the first role negotiation message to the slave DR equipment according to the updated role information. According to the embodiment, when the role information of the master DR equipment changes, the slave DR equipment can be informed in time, and the master DR equipment and the slave DR equipment can obtain more accurate updated roles.
Fig. 4 is a flowchart illustrating a DR device role updating method according to an embodiment of the present disclosure, and as shown in fig. 4, the DR device role updating method further includes:
step S40, the master DR device receives a second role negotiation packet sent by the slave DR device, where the second role negotiation packet includes role information of the slave DR device, and the role information of the slave DR device is determined according to the role change information of the slave DR device.
In one possible implementation, the second negotiation packet may have the same format as the first negotiation packet. The second role negotiation packet may use an existing packet format, for example, the second role negotiation packet may use a format of a Keepalive packet.
When the IPL link fails, the slave DR device may update its own role priority or bridge MAC according to the received role change information. After the slave DR device updates its own role information, the slave DR device may send a second role negotiation packet to the master DR device. The second negotiation packet may include role information updated by the slave DR device according to the role change information.
The slave DR device may send a plurality of second negotiation messages, or may continuously send the second negotiation messages, so that the master DR device can receive the second negotiation messages.
Step S50, the master DR device sends a second role negotiation response message to the slave DR device according to the second role negotiation message, where the second role negotiation response message includes role information of the master DR device.
In a possible implementation manner, after the master DR device receives the second role negotiation message sent from the slave DR device, the master DR device sends a second role negotiation response message to the slave DR device. The second role negotiation response message may have the same format as the first role negotiation response message. The second role negotiation response message may use an existing message format, for example, the second role negotiation response message may use a format of a Keepalive message.
After receiving the second role negotiation response message sent by the master DR device, the slave DR device may stop sending the second role negotiation message.
Step S60, the master DR device determines its updated role according to the role information of the slave DR device and its own role information.
In a possible implementation manner, the master DR device may determine an updated role thereof according to the role information of the master DR device and the role information of the slave DR device obtained through analysis.
In a possible implementation manner, the slave DR device may obtain role information of the master DR device through parsing according to the received second role negotiation response message sent by the master DR device. The slave DR device may determine its own updated role according to the updated role information of the slave DR device and the role information of the master DR device obtained through analysis.
In this embodiment, after receiving role change information from the DR apparatus, the DR apparatus updates its own role information; and sending a second role negotiation message to the main DR equipment according to the updated role information. And the master DR equipment sends a second role negotiation response message to the slave DR equipment according to the received second role negotiation message. The master DR apparatus and the slave DR apparatus can obtain more accurate updated roles.
In a possible implementation manner, the first role negotiation packet, the second role negotiation packet, the first role negotiation response packet, and the second role negotiation response packet further include type information, where the type information includes a type that supports role update and a type that does not support role update.
Fig. 5 is a schematic diagram illustrating a Keepalive message in a DR device role updating method according to an embodiment of the present disclosure, and as shown in fig. 5, the Keepalive message includes:
the Keepalive Header comprises a version field and a reserved field, wherein the version field and the reserved field can respectively occupy one byte.
Global Information TLV Global Information field, which carries system mac, system priority, system number.
Local Device Information TLV Local Information field, Local Device Information TLV carries Keepalive's transmission time interval, role priority, Device bridge mac.
The type information may be represented by a value of a version field in the keepalive message. The version field may support 2 values, for example, a value of the version field is 1, which indicates that an existing Keepalive message does not have a role update capability, and a value of the version field is 2, which indicates that a Keepalive message applicable to the embodiment of the present disclosure has a role update capability.
The value of the reserved field in the keepalive message can be used to indicate whether the message is a first role negotiation message or a second role negotiation message, or a first role negotiation response message or a second role negotiation response message. The value of the reserved field in the keepalive message can support 3. For example, when the version field value is 1, the existing packet may be represented by a reserved field value of 0, and no role update may be triggered. When the version field value is 2, the message can be represented as a first role negotiation message or a second role negotiation message by using the value of the reserved field as 1; the message may be represented as a first role negotiation response message or a second role negotiation response message by setting the value of the reserved field to 2. With the value of the reserved field being 1 or 2, a role update result error caused by a change in role priority of the DR device or a bridge MAC during a role update can be avoided.
In one possible implementation, if one of the DR devices does not support the role update function in the embodiments of the present disclosure, the distributed aggregation system is configured without role update capability. In this case, keepalive message version sent by the DR device that supports the role update function in the embodiment of the present disclosure may be filled to 2, and the DR device that does not support the role update function in the embodiment of the present disclosure may process as a common keepalive message after receiving the keepalive message whose version is 2. When the IPL link is down, the DR device supporting the role update function in the embodiment of the present disclosure may determine, according to the keepalive message received before, that the DR device of the opposite end does not support the role update function in the embodiment of the present disclosure, and may not send the first role negotiation message to the DR device of the opposite end.
In this embodiment, through the type information, it may be distinguished whether the DR device in the distributed aggregation system supports the role update function in the embodiment of the present disclosure, and the application range of the DR device role update method of this embodiment is wider.
In a possible implementation manner, when no role takes effect in the distributed aggregation system, the establishment of the keepalive session, the role priority change and the bridge MAC change do not trigger the DR device to send the first role negotiation message, the second role negotiation message or the role negotiation message, so as to avoid role election conflict of the DR system.
In a possible implementation manner, under the condition of the IPL link UP, the DR device does not send the first role negotiation packet, the second role negotiation packet, or the role negotiation packet, thereby avoiding role election conflict of the DR system.
Fig. 6 is a block diagram illustrating a DR device role updating apparatus according to an embodiment of the present disclosure, and as shown in fig. 6, the apparatus is applied to a DR device of a distributed aggregation system, and includes:
an opposite end message receiving module 1, configured to receive a role negotiation message sent by an opposite end DR device when an internal control link IPL link fails, where the role negotiation message includes role information of the DR device that sent the role negotiation message;
the response message sending module 2 is configured to send a role negotiation response message according to the received role negotiation message, where the role negotiation response message includes role information of the DR device that sent the role negotiation response message;
and the role updating module 3 is used for determining the updated role according to the role information of the role updating module and the role information of the opposite-end DR equipment.
Fig. 7 is a block diagram illustrating a DR device role updating apparatus according to an embodiment of the present disclosure, where the apparatus is applied to a master DR device and a slave DR device of a distributed aggregation system, as shown in fig. 7, and the apparatus in the master DR device includes:
a message sending module 10, configured to send a first role negotiation message to the slave DR device when the IPL link fails, where the first role negotiation message includes role information of the master DR device;
a response message receiving module 20, configured to receive a first role negotiation response message sent by the slave DR device, where the first role negotiation response message is sent by the slave DR device after receiving the first role negotiation message, and the first role negotiation response message includes role information of the slave DR device;
and the first role updating module 30 is configured to determine a role updated by itself according to the role information of the slave DR device and the role information of itself.
In one possible implementation, the apparatus further includes;
and the port closing module is used for closing the ports except the reserved port when the updated role is determined to be the slave equipment.
In a possible implementation manner, the message sending module 10 includes:
the role information updating submodule is used for updating the role information of the module according to the role change information when the IPL link fails;
and the first message sending submodule is used for sending the first role negotiation message to the slave DR equipment by the master DR equipment according to the updated role information.
In one possible implementation, the apparatus further includes:
a message receiving module, configured to receive a second role negotiation message sent by the slave DR device, where the second role negotiation message includes role information of the slave DR device, and the role information of the slave DR device is determined according to role change information of the slave DR device;
a response message sending module, configured to send a second role negotiation response message to the slave DR device according to the second role negotiation message, where the second role negotiation response message includes role information of the master DR device;
and the second role updating module is used for determining the updated role of the slave DR equipment according to the role information of the slave DR equipment and the role information of the slave DR equipment.
In one possible implementation, the role information includes role priority and/or bridge MAC.
Fig. 8 is a block diagram illustrating an apparatus 900 for role update of a DR device according to an exemplary embodiment. Referring to fig. 8, the apparatus 900 may include a processor 901, a machine-readable storage medium 902 having stored thereon machine-executable instructions. The processor 901 and the machine-readable storage medium 902 may communicate via a system bus 903. Also, the processor 901 performs the asynchronous communication method described above by reading machine-executable instructions in the machine-readable storage medium 902 corresponding to the asynchronous communication logic.
The machine-readable storage medium 902 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A distributed aggregation member DR device role updating method is applied to a distributed aggregation system, the distributed aggregation system comprises two DR devices, and the method comprises the following steps:
when an IPL link of an internal control link fails, each DR device receives a role negotiation message sent by an opposite-end DR device, wherein the role negotiation message comprises role information of the DR device which sends the role negotiation message;
each DR device sends a role negotiation response message according to the received role negotiation message, wherein the role negotiation response message comprises role information of the DR device which sends the role negotiation response message;
each DR device determines the updated role of the DR device according to the role information of the DR device and the role information of the opposite DR device;
the role negotiation message and the role negotiation response message use the format of a Keepalive message;
the role information includes role priority and/or bridge MAC.
2. A method for updating roles of DR devices is applied to a distributed aggregation system, wherein the distributed aggregation system comprises a master DR device and slave DR devices, and the method comprises the following steps:
when an IPL link of an internal control link fails, the master DR equipment sends a first role negotiation message to the slave DR equipment, wherein the first role negotiation message comprises role information of the master DR equipment;
the master DR equipment receives a first role negotiation response message sent by the slave DR equipment, wherein the first role negotiation response message is sent by the slave DR equipment after receiving the first role negotiation message, and the first role negotiation response message comprises role information of the slave DR equipment;
the main DR equipment determines the updated role of the main DR equipment according to the role information of the auxiliary DR equipment and the role information of the main DR equipment;
the first role negotiation message and the first role negotiation response message use the format of a Keepalive message;
the role information includes role priority and/or bridge MAC.
3. The method of claim 2, further comprising;
and when the updated role of the main DR equipment is determined to be the slave equipment, the main DR equipment closes the ports except the reserved port.
4. The method of claim 2, wherein when the IPL link fails, the master DR device sending a role negotiation packet to the slave DR device comprises:
when the IPL link fails, the main DR equipment updates own role information according to the role change information;
and the master DR equipment sends the first role negotiation message to the slave DR equipment according to the updated role information.
5. The method of claim 2, further comprising:
the master DR equipment receives a second role negotiation message sent by the slave DR equipment, wherein the second role negotiation message comprises role information of the slave DR equipment, and the role information of the slave DR equipment is determined according to role change information of the slave DR equipment;
the master DR equipment sends a second role negotiation response message to the slave DR equipment according to the second role negotiation message, wherein the second role negotiation response message comprises role information of the master DR equipment;
and the main DR equipment determines the updated role of the main DR equipment according to the role information of the auxiliary DR equipment and the role information of the main DR equipment.
6. A role updating apparatus of DR equipment, which is applied in DR equipment of a distributed aggregation system, the apparatus comprising:
an opposite end message receiving module, configured to receive a role negotiation message sent by an opposite end DR device when an internal control link IPL link fails, where the role negotiation message includes role information of the DR device that sent the role negotiation message;
the response message sending module is used for sending a role negotiation response message according to the received role negotiation message, wherein the role negotiation response message comprises role information of the DR equipment which sends the role negotiation response message;
the role updating module is used for determining the updated role of the role updating module according to the role information of the role updating module and the role information of the opposite-end DR equipment; the role negotiation message and the role negotiation response message use the format of a Keepalive message;
the role information includes role priority and/or bridge MAC.
7. A DR device role updating apparatus, wherein the apparatus is applied to a master DR device and a slave DR device of a distributed aggregation system, and the apparatus in the master DR device comprises:
a message sending module, configured to send a first role negotiation message to the slave DR device when an internal control link IPL link fails, where the first role negotiation message includes role information of the master DR device;
a response message receiving module, configured to receive a first role negotiation response message sent by the slave DR device, where the first role negotiation response message is sent by the slave DR device after receiving the first role negotiation message, and the first role negotiation response message includes role information of the slave DR device;
the first role updating module is used for determining a role after self updating according to the role information of the slave DR equipment and the role information of the slave DR equipment; the first role negotiation message and the first role negotiation response message use Keepalive messages;
the role information includes role priority and/or bridge MAC.
8. The apparatus of claim 7, further comprising;
and the port closing module is used for closing the ports except the reserved port when the updated role is determined to be the slave equipment.
9. The apparatus of claim 7, wherein the messaging module comprises:
the role information updating submodule is used for updating the role information of the module according to the role change information when the IPL link fails;
and the first message sending submodule is used for sending the first role negotiation message to the slave DR equipment by the master DR equipment according to the updated role information.
10. The apparatus of claim 7, further comprising:
a message receiving module, configured to receive a second role negotiation message sent by the slave DR device, where the second role negotiation message includes role information of the slave DR device, and the role information of the slave DR device is determined according to role change information of the slave DR device;
a response message sending module, configured to send a second role negotiation response message to the slave DR device according to the second role negotiation message, where the second role negotiation response message includes role information of the master DR device;
and the second role updating module is used for determining the updated role of the slave DR equipment according to the role information of the slave DR equipment and the role information of the slave DR equipment.
CN201810516739.6A 2018-05-25 2018-05-25 DR device role updating method and device Active CN108737189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810516739.6A CN108737189B (en) 2018-05-25 2018-05-25 DR device role updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810516739.6A CN108737189B (en) 2018-05-25 2018-05-25 DR device role updating method and device

Publications (2)

Publication Number Publication Date
CN108737189A CN108737189A (en) 2018-11-02
CN108737189B true CN108737189B (en) 2021-11-05

Family

ID=63936131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810516739.6A Active CN108737189B (en) 2018-05-25 2018-05-25 DR device role updating method and device

Country Status (1)

Country Link
CN (1) CN108737189B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953591A (en) * 2020-07-17 2020-11-17 新华三技术有限公司 Fault processing method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841478B (en) * 2010-04-27 2013-11-20 北京星网锐捷网络技术有限公司 Route equipment switching method and route equipment
CN103731286A (en) * 2012-10-12 2014-04-16 中兴通讯股份有限公司 Method and device for distributing aggregation port IDs
US9660861B2 (en) * 2013-04-23 2017-05-23 Telefonaktiebolaget L M Ericsson (Publ) Method and system for synchronizing with neighbor in a distributed resilient network interconnect (DRNI) link aggregation group
CN104125088B (en) * 2013-04-28 2019-05-10 中兴通讯股份有限公司 In DRNI in the same end between system interactive information method and system
US9813290B2 (en) * 2014-08-29 2017-11-07 Telefonaktiebolaget Lm Ericsson (Publ) Method and system for supporting distributed relay control protocol (DRCP) operations upon misconfiguration
CN107682261B (en) * 2017-10-24 2020-04-03 新华三技术有限公司 Flow forwarding method and device

Also Published As

Publication number Publication date
CN108737189A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN107332726B (en) Communication link detection method and device
US9547502B2 (en) Rebooting InfiniBand clusters
US8937869B2 (en) Communication device, communication system, and communication fault detection method
US10560550B1 (en) Automatic configuration of a replacement network device in a high-availability cluster
CN108718282B (en) Method and device for determining message sequence number
CN115152192B (en) PCE controlled network reliability
US20110019590A1 (en) Neighbor discovery using address registration protocol over elmi
CN109150659B (en) Processor and BFD message transmission method
JP2007060326A (en) Session relay and session relief method
CN108337159B (en) Port operation control method and device
CN112367257A (en) Route notification method and device
US11936762B2 (en) Processing protocol packet
CN107547374B (en) Aggregation route processing method and device
US7676623B2 (en) Management of proprietary devices connected to infiniband ports
CN108737189B (en) DR device role updating method and device
CN108712783B (en) CAPWAP tunnel establishment method and device
CN107547341B (en) Access method and device of virtual extensible local area network VXLAN
KR20190051585A (en) Sever and network system using the same
CN105406989A (en) Message processing method, network card and system, information updating method and host
CN112214466B (en) Distributed cluster system, data writing method, electronic equipment and storage device
CN107819648B (en) Method and device for detecting NETCONF connection of network configuration
CN112953883A (en) Equipment protocol intercommunication method, equipment and storage medium
CN111953521A (en) SerDes port configuration method, system and readable storage medium
JP6601198B2 (en) Relay device, setting method, setting program, and information processing system
CN105991448B (en) Neighbor discovery method and device

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
TR01 Transfer of patent right

Effective date of registration: 20230616

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right