CN106953750B - Detection path establishing method and device - Google Patents

Detection path establishing method and device Download PDF

Info

Publication number
CN106953750B
CN106953750B CN201710138935.XA CN201710138935A CN106953750B CN 106953750 B CN106953750 B CN 106953750B CN 201710138935 A CN201710138935 A CN 201710138935A CN 106953750 B CN106953750 B CN 106953750B
Authority
CN
China
Prior art keywords
pex
detection
message
mac address
equipment
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
CN201710138935.XA
Other languages
Chinese (zh)
Other versions
CN106953750A (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
Hangzhou 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201710138935.XA priority Critical patent/CN106953750B/en
Publication of CN106953750A publication Critical patent/CN106953750A/en
Application granted granted Critical
Publication of CN106953750B publication Critical patent/CN106953750B/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/12Discovery or management of network topologies
    • 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/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • H04L41/065Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis involving logical or physical relationship, e.g. grouping and hierarchies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/122Shortest path evaluation by minimising distances, e.g. by selecting a route with minimum of number of hops
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/583Stackable routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a detection path establishing method and a detection path establishing device, wherein the detection path establishing method applied to a main parent device of a longitudinal stacking system comprises the following steps: generating a notification message for triggering the establishment of the detection path according to the establishment period of the detection path; the source MAC address of the notification message is a main father device, and the destination MAC address of the notification message is a target father device; identifying a path to a target parent device according to the topology of the longitudinal stacking system; selecting a path from the identified paths according to the detected path priority; sending a notification message through a PEX physical port on the selected path; determining that the PEX physical port receives a response message in a notification detection path establishment period; and establishing a detection message forwarding table entry of which the output port is a PEX physical port so as to establish a detection path.

Description

Detection path establishing method and device
Technical Field
The present invention relates to communication technologies, and in particular, to a split detection technology for a vertical stacking system, and more particularly, to a method and an apparatus for establishing a detection path.
Background
The IRF3(Intelligent resource Framework 3, third generation Intelligent Resilient Framework) is a vertical network integration virtualization technology developed for improving the access capability and management efficiency of a network access layer. The core idea of the method is that a plurality of PEX (Port Extender) devices are connected to a father device, after necessary configuration is carried out, each PEX device is virtualized into a remote interface board of the father device, and the father device manages the PEX devices in a unified mode. The virtualization technology can improve the interface density of the parent equipment, simplify the network topology and reduce the network maintenance cost with lower cost.
In the IRF3 networking shown in fig. 1, a parent device is typically an IRF consisting of two or more devices interconnected by a stacking link. When a stacking link between two father devices fails, one IRF is split into two new IRFs, the two IRFs have the same three-layer configuration of IP (Internet Protocol ) and the like, and if the two IRFs are both in an Active state, address conflict is caused, so that the failure is expanded in a network.
When a longitudinal stacking system between parent devices of an IRF system fails, how to construct a detection link for sending a stacking split detection packet becomes a technical problem to be solved urgently.
Disclosure of Invention
The invention aims to provide a detection path establishing method and a detection path establishing device, which are respectively applied to a main device and a port expander PEX device of a longitudinal stacking system and used for establishing a detection path in the longitudinal stacking system, wherein the detection path is used for sending a stacking detection message in a state that stacking between a main father device and a target father device is disconnected, so that the networking reliability of the longitudinal stacking system is improved.
In order to achieve the above object, the present invention provides a method for establishing a detection path of a primary parent device applied to a vertical stack system, the method comprising: generating a notification message for triggering the establishment of the detection path according to the establishment period of the detection path; the source MAC address of the notification message is a main father device, and the destination MAC address of the notification message is a target father device; identifying a path to a target parent device according to the topology of the longitudinal stacking system; selecting a path from the identified paths according to the detected path priority; sending a notification message through a PEX physical port on the selected path; determining that the PEX physical port receives a response message in a notification detection path establishment period; and establishing a detection message forwarding table entry of which the output port is a PEX physical port so as to establish a detection path.
In order to achieve the above object, the present invention further provides a detection path establishing method applied to a port expander PEX device of a vertical stack system, where the method includes: receiving a notification message through a PEX physical port connected with the main father equipment or a cascade port connected with the primary PEX equipment; the source MAC address of the notification message is a main father device, and the destination MAC address of the notification message is a target father device; judging whether a PEX physical port directly connected with the target parent equipment exists according to the topology of the longitudinal stacking system; if yes, establishing a detection message forwarding table item of which the output port is a PEX physical port connected with the main parent equipment so as to establish a detection path; generating a response message, wherein the destination MAC address of the response message is the main parent equipment; and sending the generated response message through a PEX physical port connected with the main father equipment or a cascade port connected with the primary PEX equipment to inform the main father equipment that a detection path is established.
Compared with the prior art, the invention generates the detection path established in the longitudinal stacking system, and the detection path is used for sending the stacking detection message in the state of stacking disconnection between father equipment, thereby improving the networking reliability of the longitudinal stacking system.
Drawings
FIG. 1 is a schematic networking diagram of a prior art vertical stacking system;
fig. 2 is a flowchart of a detection path establishment method applied to a primary parent device of a vertical stack system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a vertical stacking system provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of a vertical stacking system provided by an embodiment of the present invention;
fig. 5 is a schematic diagram of a detection path establishing apparatus applied to a primary parent device of a vertical stack system according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a detection path establishing apparatus applied to an active parent device of a vertical stack system according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Fig. 2 is a flowchart of a detection path establishing method applied to an active parent device of a vertical stack system according to an embodiment of the present invention, where the method shown in fig. 2 includes the following steps:
step 201, generating a notification message for triggering the establishment of the detection path according to the detection path establishment period.
In step 201, the source MAC address of the notification packet generated by the primary parent device is the MAC address of the primary parent device, and the destination MAC address of the notification packet is the MAC address of the target parent device.
Step 202, identifying a path to a target parent device according to the topology of the longitudinal stacking system; one of the identified paths is selected based on the detected path priority.
Step 203; and sending a notification message through the PEX physical port on the selected path.
Step 204, determining that the PEX physical port receives the response message.
Step 205, a detection message forwarding table entry with an output port being a PEX physical port is established to establish a detection path.
Based on the detection path establishing method shown in fig. 2, the primary parent device of the vertical stacking system establishes a detection path other than the stacking link with the target parent device, and the detection path is used for sending a stacking detection message when the stacking between the primary parent device and the target parent device is disconnected, so that the networking reliability of the vertical stacking system is improved.
Fig. 3 shows that in the vertical stacking system according to the embodiment of the present invention, parent device 311 and parent device 312 form a chain stack through a stacking link, and Port Extender (PEX) devices are fully connected. Parent devices 311 and 312 elect parent device 311 as the master. The parent device 311 elected as the master device sends a notification message through the PEX physical port after detecting that the entire vertical stack system is established, so as to establish a detection message forwarding path.
In the IRF3 vertical stack system, the PEX physical port of the parent device is used to connect the PEX device; the PEX physical interface on the PEX device is used for connecting the parent device; the PEX devices are connected through a cascade port. The PEX physical ports 311-1 and 311-2 of the parent device 311 in fig. 3 are connected to PEX devices 321 and 324, respectively. The PEX physical ports 321-1 and 321-2 of the PEX device 321 are connected to the parent devices 311 and 312, respectively; PEX physical ports 324-1 and 324-2 of the PEX device 324 connect the parent devices 311 and 312, respectively. The cascade port 321-3 of the PEX device 321 is connected with the cascade port 322-1 of the PEX device 322; the cascade port 322-2 of the PEX device 322 is connected with the cascade port 323-1 of the PEX device 323; the cascade port 323-2 of the PEX apparatus 323 is connected to the cascade port 324-3 of the PEX apparatus 324.
The parent device 311 generates a notification message for triggering establishment of the detection path according to the detection path establishment period. Parent device 311 learns three paths to parent device 312 from the vertical stacking system topology:
route 1: parent device 311- > PEX device 321- > parent device 312;
route 2: parent device 311- > PEX device 321- > PEX device 322- > PEX device 323- > PEX device 324- > parent device 312;
route 3: parent device 311- > PEX device 324- > parent device 312.
Parent device 311 determines that the hop count of path 1 and path 3 is the same and minimum, and selects path 1 according to the detection path priority rule. In this embodiment, the detection path priority rule is that the path with the smallest hop count has the highest priority; and among a plurality of paths with the same and minimum hop count, the path with the minimum identification of the PEX device closest to the main parent device has the highest priority.
Parent device 311 selects one of the three paths that can reach parent device 312 outside the stacking link to establish a detection path, so that it is possible to prevent a detection packet for stacking disconnection from being sent to all PEX devices when the stacking between parent devices 311 and 312 is disconnected.
Parent device 311 sends notification message 330 through PEX physical port 311-1; in the notification packet 330, the source MAC address is the MAC address of the parent device 311, and the destination MAC address is the MAC address of the parent device 312; the notification message 330 is used to indicate that a detection path to the parent device 312 is established.
The PEX device 321 receives the notification message 330, determines that the PEX physical port 321-2 directly connected to the parent device 312 exists according to the topology of the stacking system, and then does not continue to send the notification message 330, and establishes a detection message forwarding table entry to establish a detection path to the target parent device.
In fig. 3, the PEX device 321 establishes a detection packet forwarding entry, and sets the PEX physical port 321-2 connected to the target parent device 312 as an output port for detecting the MAC address entry. The PEX device 321 generates a response message 331, where the source MAC address is the MAC address of the PEX device 321, and the destination MAC address is the MAC address of the parent device 311; reply message 331 is used to notify that a detection path has been established to parent device 312. The PEX device 321 sends a reply message 331 through the PEX physical port 321-1 that receives the notification message 330.
Parent device 311 receives reply message 331 through PEX physical port 311-1, establishes a detection MAC address table entry, sets PEX physical port 311-1 as an output port of the detection MAC address table entry, and establishes a detection path to target parent device 312.
After the parent device 311 detects that the stacking link connected to the parent device 312 is disconnected, the parent device 312 may select itself as a primary parent device in the IRF system domain.
The parent device 311 sends a detection packet carrying the identifier of the IRF system domain and the identifier of the main parent device 311, where the destination MAC address is a detection MAC address. Parent device 311 finds that the destination MAC address of the detection packet matches the detection packet forwarding entry, and sends the detection packet through PEX physical port 311-1.
The PEX device 321 receives the detection message through the PEX physical port 321-1, finds that the destination MAC address of the detection message matches the detection message forwarding entry, and sends the detection message through the PEX physical port 321-2.
Parent device 312 receives the detection packet through the PEX physical port connected to PEX device 321, and determines that the identity of the IRF system domain is the same, but the identity of the primary parent device is different from that of the IRF system domain, that is, the IRF system domain has two primary parent devices, and the stack of the IRF system domain is split. Parent devices 311 and 312 may reselect the primary parent device through the detection path, which is not described herein again in detail for multi-active detection of the IRF system.
The system shown in fig. 3 provides a process for establishing a detection path other than a stacking link between parent devices, and can be used for multi-active detection when a stack between the parent devices is disconnected in an IRF system (vertical stacking system).
FIG. 4 is a schematic diagram of another vertical stacking system provided by the present invention, in which a PEX physical port 411-1 of a parent device 411 is connected to a PEX physical port 421-1 of a PEX device 421. A cascade port 421-2 of the PEX device 421 is connected with a cascade port 422-1 of the PEX device 422; the cascade port 422-2 of the PEX device 422 is connected with the cascade port 423-1 of the PEX device 423; the cascading port 423-2 of the PEX device 423 is connected with the cascading port 424-1 of the PEX device 424. The PEX port of PEX device 424 connects to parent device 412.
The parent device 411 generates a notification packet for triggering the establishment of the detection path according to the detection path establishment period. The parent device 411 learns the path to the parent device 412 from the vertical stacking system topology: parent device 411- > PEX device 421- > PEX device 422- > PEX device 423- > PEX device 424- > parent device 412.
Parent device 411 sends notification message 430 through PEX physical port 411-1; in the notification message 430, the source MAC address is the MAC address of the parent device 411, and the destination MAC address is the MAC address of the parent device 412; the notification message 430 is used to indicate that a detection path to the parent device 412 is established.
The PEX device 421 receives the notification message 430, determines that there is no PEX physical port of the parent device 412 according to the topology of the stacking system, and sends the notification message 430 through the cascade port 421-2.
PEX device 422 receives notification message 430, determines that there is no PEX physical port directly connected to parent device 412 according to the topology of the stacking system, and sends notification message 430 through cascade port 422-2.
The PEX device 423 receives the notification message 430, determines that there is no PEX physical port directly connected to the parent device 412 according to the topology of the stacking system, and sends the notification message 430 through the cascade port 423-2.
The PEX device 424 receives the notification message 430, determines that there is a PEX physical port 424-2 directly connected to the parent device 412 according to the topology of the stacking system, establishes a detection message forwarding table, that is, the PEX device 424 establishes a detection Virtual Local Area Network (VLAN) broadcast table, sets the PEX physical port 424-2 as an output port for detecting the VLAN broadcast table, and thereby adds the PEX physical port 424-2 to the detection VLAN. And detecting the virtual local area network matching and detecting the virtual local area network identification carried by the message. PEX device 424 sends reply message 431 through tandem port 424-1.
In fig. 4, if the PEX device 423 causes the response message 431 to be discarded or the processing is delayed due to the device processing load being too large or the link congestion of the PEX device 422. The PEX device 422 does not receive the response message within the predetermined notification message retransmission period, determines that the number of times of sending the notification message 430 does not reach the maximum number M, and retransmits the notification message 430 and waits for the message retransmission period to be overtime. When the PEX device 422 determines that the number of times of sending the notification message 430 has reached the maximum number of times M, a failure message is sent to the upper-stage PEX device 421 through the cascade port 422-1. PEX device 421 receives the failure message through cascade port 421-2, and sends parent device 411 through the PEX physical port. The parent device 411 receives the failure message, determines that the detection path establishment fails, and then continues to wait for the timeout of the detection path establishment period and resends the notification message.
When the PEX device 423 recovers or the link of the PEX device 423 connected to the PEX device 422 recovers, the PEX device 422 receives the response message 431 through the cascade port 422-2, establishes the detection VLAN broadcast table entry, sets the cascade port 422-2 as an output port of the detection VLAN broadcast table entry, and sends the response message 431 through the cascade port 422-1. PEX device 421 receives response message 431 through cascade port 421-2, establishes a detection VLAN broadcast table entry, sets cascade port 421-2 as an output port of the detection VLAN broadcast table entry, and sends response message 431 through PEX physical port 421-1.
Parent device 411 receives reply message 431 through PEX physical port 411-1, establishes a detection VLAN broadcast entry, sets PEX physical port 411-1 as an output port of the detection VLAN broadcast entry, and establishes a detection path to target parent device 412.
After the parent device 411 detects that the stacking link connected to the parent device 412 is disconnected, the parent device 412 may select itself as the primary parent device in the IRF system domain. The parent device 411 sends a detection packet carrying an IRF system domain identifier and an active parent device 411 identifier, where the destination MAC address is a broadcast MAC address and the VLAN ID (identifier) is a detection VLAN ID. The parent device 411 finds that the VLAN ID of the detection packet matches the detection packet forwarding entry, and sends the detection packet through the PEX physical port 411-1.
The PEX device 421 receives the detection message through the PEX physical port 421-1, finds that the VLAN ID of the detection message matches the detection message forwarding entry, and sends the detection message through the PEX physical port 421-2.
The PEX device 422 receives the detection message through the PEX physical port 422-1, finds that the VLAN ID of the detection message matches the detection message forwarding entry, and sends the detection message through the PEX physical port 422-2.
The PEX device 423 receives the detection message through the PEX physical port 423-1, finds that the VLAN ID of the detection message matches the detection message forwarding entry, and sends the detection message through the PEX physical port 423-2.
The PEX device 424 receives the detection message through the PEX physical port 424-1, finds that the VLAN ID of the detection message matches the detection message forwarding entry, and sends the detection message through the PEX physical port 424-2.
Parent device 412 receives the detection packet through the PEX physical port connected to PEX device 424, and determines that the identity of the system domain carrying the IRF is the same but the identity of the primary parent device is different from that of the primary parent device, that is, the IRF system domain has two primary parent devices, and the stack of the IRF system domain is split. The parent devices 411 and 412 may reselect the primary parent device along the detection path, and the multi-active detection of the IRF system is not described herein again.
Fig. 5 is a detection path establishing apparatus 500 according to an embodiment of the present invention, where the apparatus 500 is applied to an active parent device of a vertical stack system. The detection path establishment apparatus 500 includes:
a generating unit 501 configured to generate a notification message according to a detection path establishment period; the source MAC address of the notification message is the primary father device, and the destination MAC address of the notification message is the target father device. A path unit 502 that identifies a path to a target parent device according to the topology of the vertical stack system; one of the identified paths is selected based on the detected path priority. The sending unit 504 sends the notification message through the PEX physical port on the selected path. The receiving unit 503 receives the response message through the PEX physical port. The control unit 505 establishes a forwarding table entry of the detection message, where the output port is a PEX physical port.
The receiving unit 503 receives the failure message through the PEX physical port. Control section 505 waits for the detection path establishment period to time out, and notifies transmission section 504 to retransmit the notification message. The sending unit 504 resends the notification message.
The establishment of the forwarding table entry of the detection message whose output port is the PEX physical port by the control unit 505 includes: establishing a detection MAC address table item, and setting a PEX physical port as an output port of the detection MAC address table item; wherein the detection MAC address is a destination MAC address of the detection message; or; establishing a detection virtual local area network broadcast table item, and setting a PEX physical port as an output port for detecting the virtual local area network broadcast table item; the detection virtual local area network is matched with the virtual local area network identification carried by the detection message.
Fig. 6 is a detection path establishing apparatus 600 according to an embodiment of the present invention, where the apparatus 600 is applied to a port expander PEX device of a vertical stack system. The detection path establishing apparatus 600 includes: receiving section 601, routing section 602, control section 603, and transmitting section 604.
A receiving unit 601, receiving the notification message through a PEX physical port connected to the primary parent device or a cascade port connected to the primary PEX device; the source MAC address of the notification message is the primary father device, and the destination MAC address of the notification message is the target father device. The path unit 602 is configured to determine whether a PEX physical port directly connected to the target parent device exists according to the topology of the vertical stacking system; if so, the control unit 603 is notified. The control unit 603 establishes that the output port is a PEX physical port connected with the primary parent device; and generating a response message, wherein the destination MAC address of the response message is the main father equipment. The sending unit 604 sends the generated response packet through the PEX physical port connected to the primary parent device or the cascade port connected to the primary PEX device.
The path unit 602 determines that there is no PEX physical port directly connected to the target parent device, determines a next-stage PEX device that reaches the target parent device according to the topology of the vertical stacking system, and notifies the sending unit 604. The sending unit 604 sends the notification message through the cascade port connected to the next PEX device.
The receiving unit 601 receives the response message through the cascade port connected to the next PEX device, and notifies the control unit 603. The control unit 603 establishes a detection packet forwarding table entry whose output port is a cascade port connected to the next-stage PEX device. The sending unit 604 sends the received response packet through the PEX physical port connected to the primary parent device or the cascade port connected to the primary PEX device.
The control unit 603 determines that the notification packet retransmission cycle is overtime and the cascade port connected to the next-stage PEX device does not receive the response packet; judging whether the sending times of the notification message reach the maximum value or not; if so, a failure message is generated and sent to sending section 604, and if not, sending section 604 is notified to retransmit the notification message. A sending unit 604, configured to send the generated failure packet through a PEX physical port connected to the primary parent device or a cascade port connected to the primary PEX device; or retransmitting the notification message through a cascade port connected with the next-level PEX equipment.
The receiving unit 601 receives the failure message through a cascade port connected to the next PEX device. The sending unit 604 sends the received failure message through the PEX physical port connected to the primary parent device or the cascade port connected to the primary PEX device.
The control unit 603, which establishes the PEX physical port with the output port connected to the primary parent device, includes: establishing a detection MAC address table item, and setting a PEX physical port connected with the main parent equipment as an output port of the detection MAC address table item; wherein the detection MAC address is a destination MAC address of the detection message; or; establishing a detection virtual local area network broadcast table item, and setting a PEX physical port connected with the main parent equipment as an output port for detecting the virtual local area network broadcast table item; the detection virtual local area network is matched with the virtual local area network identification carried by the detection message.
The control unit 603, which establishes an egress port as a forwarding table entry of the detection packet, where the egress port is a cascade port connected to the PEX device of the next stage, includes: establishing a detection MAC address table item, and setting a cascade port connected with the next-stage PEX equipment as an output port of the detection MAC address table item; wherein the detection MAC address is a destination MAC address of the detection message; or; establishing a detection virtual local area network broadcast table item, and setting a cascade port connected with the next-stage PEX equipment as an output port for detecting the virtual local area network broadcast table item; the detection virtual local area network is matched with the virtual local area network identification carried by the detection message.
From the embodiments described above, further variations and modifications of these embodiments will occur to those skilled in the art, given the benefit of the basic inventive concepts herein. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.

Claims (16)

1. A method for establishing a detection path is used for sending a stacking detection message when stacking between father equipment of a longitudinal stacking system is disconnected, and is characterized in that the method is applied to main father equipment of the longitudinal stacking system;
generating a notification message for triggering the establishment of the detection path according to the establishment period of the detection path; the source MAC address of the notification message is the MAC address of the main father device, and the destination MAC address of the notification message is the MAC address of the target father device;
identifying a path to the target parent device according to the topology of the vertical stacking system;
selecting a path from the identified paths according to the detected path priority;
sending the notification message through a PEX physical port on the selected path;
determining that the PEX physical port receives a response message;
and establishing a detection message forwarding table entry of which the output port is the PEX physical port so as to establish the detection path.
2. The method of claim 1, further comprising:
determining that the PEX physical port receives a failure message;
waiting for the detection path establishment period to time out,
and retransmitting the notification message through the PEX physical port.
3. The method of claim 1, wherein establishing a forwarding entry for the detection packet whose egress port is the PEX physical port comprises:
establishing a detection MAC address table item, and setting the PEX physical port as an output port of the detection MAC address table item; wherein the detection MAC address is a destination MAC address of the detection message; or;
establishing a detection virtual local area network broadcast table item, and setting the PEX physical port as an output port of the detection virtual local area network broadcast table item; and the detection virtual local area network is matched with the virtual local area network identification carried by the detection message.
4. A device for establishing a detection path, where the detection path is used to send a stack detection packet when stacking between parent devices of a vertical stack system is disconnected, where the device is applied to a primary parent device of the vertical stack system, and the device includes:
the generating unit generates a notification message according to the detection path establishment period; the source MAC address of the notification message is the MAC address of the main father device, and the destination MAC address of the notification message is the MAC address of the target father device;
a path unit which identifies a path to the target parent device according to the topology of the vertical stacking system; selecting a path from the identified paths according to the detected path priority;
the sending unit sends the notification message through a PEX physical port on the selected path;
the receiving unit receives a response message through the PEX physical port;
and the control unit is used for establishing a detection message forwarding table entry of which the output port is the PEX physical port so as to establish the detection path.
5. The apparatus of claim 4, further comprising:
the receiving unit receives a failure message through the PEX physical port;
the control unit waits for the overtime of the detection path establishment period and informs the sending unit;
and the sending unit resends the notification message.
6. The apparatus of claim 4, wherein the control unit establishes the detection packet forwarding entry whose output port is the PEX physical port comprises:
the control unit establishes a detection MAC address table item and sets the PEX physical port as an output port of the detection MAC address table item; wherein the detection MAC address is a destination MAC address of the detection message; or;
the control unit establishes a detection virtual local area network broadcast table item, and sets the PEX physical port as an output port of the detection virtual local area network broadcast table item; and the detection virtual local area network is matched with the virtual local area network identification carried by the detection message.
7. A method for establishing a detection path, wherein the detection path is used for sending a stack detection message when a stack between parent devices of a vertical stack system is disconnected, and the method is applied to a port extender PEX device of the vertical stack system, and is characterized in that the method comprises the following steps:
receiving a notification message through a PEX physical port connected with the main father equipment or a cascade port connected with the primary PEX equipment; the source MAC address of the notification message is the MAC address of the main father device, and the destination MAC address of the notification message is the MAC address of the target father device;
judging whether a PEX physical port directly connected with the target parent device exists according to the topology of the longitudinal stacking system;
if yes, establishing a detection message forwarding table item of which the output port is a PEX physical port connected with the main parent equipment so as to establish the detection path;
generating a response message, wherein the destination MAC address of the response message is the MAC address of the main father equipment;
and sending the generated response message through a PEX physical port connected with the main father equipment or a cascade port connected with the upper-level PEX equipment to inform the main father equipment that a detection path is established.
8. The method of claim 7, further comprising:
judging that no PEX physical port directly connected with the target parent equipment exists;
determining the next-level PEX device reaching the target parent device according to the topology of the longitudinal stacking system;
and sending the notification message through a cascade port connected with the next-stage PEX equipment.
9. The method of claim 8, further comprising:
receiving a response message through a cascade port connected with the next-stage PEX equipment;
establishing a detection message forwarding table item of which an output port is connected with a cascade port of the next-stage PEX equipment so as to establish the detection path;
and sending the received response message through the PEX physical port connected with the main parent equipment or the cascade port connected with the upper-level PEX equipment.
10. The method of claim 8, further comprising:
determining that the notification message retransmission cycle is overtime and the cascade port connected with the next-stage PEX equipment does not receive the response message;
judging whether the sending times of the notification message reach the maximum value or not;
if so, generating a failure message, and sending the generated failure message through the PEX physical port connected with the main parent equipment or the cascade port connected with the upper-level PEX equipment;
and if not, retransmitting the notification message through a cascade port connected with the next-stage PEX equipment.
11. The method of claim 9, further comprising;
receiving a failure message through the cascade port connected with the next-stage PEX equipment;
and sending the received failure message through the PEX physical port connected with the main father equipment or the cascade port connected with the upper-level PEX equipment.
12. An apparatus for establishing a detection path, the detection path being used to send a stack detection packet when a stack between parent devices of a vertical stack system is disconnected, the apparatus being applied to a port extender PEX device of the vertical stack system, the apparatus comprising:
the receiving unit receives the notification message through a PEX physical port connected with the main parent equipment or a cascade port connected with the primary PEX equipment; the source MAC address of the notification message is the MAC address of the main father device, and the destination MAC address of the notification message is the MAC address of the target father device;
the path unit is used for judging whether a PEX physical port directly connected with the target parent equipment exists or not according to the topology of the longitudinal stacking system; if yes, informing the control unit;
the control unit establishes a detection message forwarding table item of which an output port is a PEX physical port connected with the main parent equipment so as to establish the detection path; generating a response message, wherein the destination MAC address of the response message is the MAC address of the main father equipment;
and the sending unit is used for sending the generated response message through the PEX physical port connected with the main father equipment or the cascade port connected with the upper-level PEX equipment.
13. The apparatus of claim 12,
the path unit is used for judging that no PEX physical port directly connected with the target parent equipment exists, determining the PEX equipment reaching the next level of the target parent equipment according to the topology of the longitudinal stacking system, and informing the sending unit;
and the sending unit sends the notification message through a cascade port connected with the next-stage PEX equipment.
14. The apparatus of claim 13,
the receiving unit receives a response message through a cascade port connected with the next-stage PEX device and informs the control unit;
the control unit establishes a detection message forwarding table item of which an output port is a cascade port connected with the next-stage PEX equipment;
the sending unit sends the received response message through the PEX physical port connected with the primary parent device or the cascade port connected with the upper-level PEX device.
15. The apparatus of claim 14,
the control unit determines that the notification message retransmission cycle is overtime and the cascade port connected with the next-stage PEX equipment does not receive the response message; judging whether the sending times of the notification message reach the maximum value or not; if so, generating a failure message and informing the sending unit, and if not, informing the sending unit to retransmit the informing message;
the sending unit sends the generated failure message through the PEX physical port connected with the primary parent device or the cascade port connected with the upper-level PEX device; or retransmitting the notification message through a cascade port connected with the next-stage PEX equipment.
16. The apparatus of claim 14,
the receiving unit receives a failure message through the cascade port connected with the next-stage PEX equipment;
the sending unit sends the received failure message through the PEX physical port connected with the primary parent device or the cascade port connected with the upper-level PEX device.
CN201710138935.XA 2017-03-09 2017-03-09 Detection path establishing method and device Active CN106953750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710138935.XA CN106953750B (en) 2017-03-09 2017-03-09 Detection path establishing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710138935.XA CN106953750B (en) 2017-03-09 2017-03-09 Detection path establishing method and device

Publications (2)

Publication Number Publication Date
CN106953750A CN106953750A (en) 2017-07-14
CN106953750B true CN106953750B (en) 2020-12-04

Family

ID=59468325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710138935.XA Active CN106953750B (en) 2017-03-09 2017-03-09 Detection path establishing method and device

Country Status (1)

Country Link
CN (1) CN106953750B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639535B (en) * 2019-01-18 2020-09-11 广州小鹏汽车科技有限公司 Routing relation detection method and device
CN109547298B (en) * 2019-01-28 2020-06-09 新华三技术有限公司 Forwarding path detection method and device
CN116260777A (en) * 2023-02-13 2023-06-13 杭州迪普科技股份有限公司 Method and device for constructing virtual switching matrix

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100479408C (en) * 2007-03-12 2009-04-15 中兴通讯股份有限公司 A method for implementing the forward table in the stack system
CN101299708B (en) * 2007-09-20 2011-10-12 上海寰创通信科技有限公司 Dynamic broadcast routing method
CN103220189B (en) * 2013-04-12 2017-02-08 杭州华三通信技术有限公司 Multi-active detection (MAD) backup method and equipment
CN106034038B (en) * 2015-03-13 2019-04-12 新华三技术有限公司 Prevent the method and apparatus stacked that more conflict
CN106452921B (en) * 2016-11-28 2019-12-06 新华三技术有限公司 Stacking system splitting detection method and device

Also Published As

Publication number Publication date
CN106953750A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
US7944913B2 (en) Node, communication method, and program for node
US7233991B2 (en) Self-healing tree network
US9007958B2 (en) External loop detection for an ethernet fabric switch
CN106953750B (en) Detection path establishing method and device
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
CN109246008B (en) Network equipment, system and method for transmitting BGP information
CN110191066B (en) Method, equipment and system for determining maximum transmission unit (PMTU)
EP2553870B1 (en) An operations, administrations and management proxy and a method for handling operations, administrations and management messages
CN105187311B (en) A kind of message forwarding method and device
CN102347867A (en) Processing method and equipment for stacking splitting detection
US11197177B2 (en) Outdoor lighting network as a contingency connectivity infrastructure
EP2672665B1 (en) Communication system, communication method, and communication device
CN106452921B (en) Stacking system splitting detection method and device
US10116511B2 (en) Method and apparatus for controlling topology
CN107872368B (en) Method and device for detecting accessibility of gateway in network node cluster and terminal
US8797847B2 (en) Network relay device and control method thereof
JP4242876B2 (en) Phase detection method and apparatus for nodes and bridges constituting network
CN103532863A (en) Method and device for realizing software stacking
EP3504902B1 (en) Outdoor lighting network as a contingency connectivity infrastructure
CN106452882B (en) Backup switching method and system for universal network passport server
CN104104596A (en) Intelligent resilient framework (IRF) split processing method and device
JP2007124184A (en) Loop detecting method and loop detection device
CN110572326A (en) Method, device, network equipment and system for establishing forwarding path
EP3537671B1 (en) Protection switching method and system, and nodes
JPWO2006075402A1 (en) Open loop network node device and open loop network control method

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

Effective date of registration: 20230531

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

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.