CN103152262B - A kind of method and apparatus of connection establishment - Google Patents

A kind of method and apparatus of connection establishment Download PDF

Info

Publication number
CN103152262B
CN103152262B CN201310058242.1A CN201310058242A CN103152262B CN 103152262 B CN103152262 B CN 103152262B CN 201310058242 A CN201310058242 A CN 201310058242A CN 103152262 B CN103152262 B CN 103152262B
Authority
CN
China
Prior art keywords
network equipment
port
upstream
state
network device
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
CN201310058242.1A
Other languages
Chinese (zh)
Other versions
CN103152262A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310058242.1A priority Critical patent/CN103152262B/en
Publication of CN103152262A publication Critical patent/CN103152262A/en
Application granted granted Critical
Publication of CN103152262B publication Critical patent/CN103152262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present invention provides the method and apparatus of a kind of connection establishment, relates to the communications field, with the problem of the network connection interruption that solution causes due to the fault of heartbeat.The method includes: after the primary network equipment in upstream detects that the link between the first heartbeat port of the primary network equipment in this upstream and the second heartbeat port of upstream backup network equipment disconnects, downstream network device receives, by master port, the first state advertisement message that the primary network equipment in this upstream sends, and according to this first state advertisement message by this downstream network device from port by Standby state of awaiting orders switch to forwarding Forwarding state, so that the primary network equipment in this upstream and upstream backup network equipment by the master port of this downstream network device and set up connection from port, wherein, this master port and slave end mouth are in Forwarding state.The embodiment of the present invention is for setting up the primary network equipment in upstream and the connection of upstream backup network equipment.

Description

A kind of method and apparatus of connection establishment
Technical field
The present invention relates to the communications field, the method and apparatus particularly relating to a kind of connection establishment.
Background technology
Flexibly link (SmartLink), is also called backup link, is a kind of back up the solution with handover mechanism the most efficiently for the double up offer of link, is usually used in double-ascending network.
Comprising two ports on same access device in one group of SmartLink group, one of them is master port, and another is from port.Master port is in forwarding state, blocked from port, standby.When being in master port link failure (as physically fault or OAM connect fault etc.) of forwarding state, this master port can be blocked, and will be switched to forwarding state from port by armed state by SmartLink group automatically.
VRRP (VirtualRouterRedundancyProtocol, Virtual Router Redundacy Protocol) is current most widely used gateway redundancy protection mechanism, supports that the network equipment of VRRP agreement is referred to as VRRP router.
In VRRP networking based on SmartLink, one group of VRRP router includes primary route device and standby router, when primary route device breaks down, standby router takes over the work of former primary route device, become new primary route device, ensure each network equipment and the connectedness of network in LAN, wherein, connected by heartbeat between each VRRP router, the mutual of protocol massages is carried out by heartbeat between each VRRP router, the priority of this protocol massages is compared by the VRRP router receiving protocol massages with local first level, in-group priority the highest as primary route device.But, once heartbeat breaks down, and may result in primary route device and standby router operation irregularity, upstream data or downlink data are forwarded by different routers, causes the conflict that data are transmitted, thus causes the interruption that network connects.
Summary of the invention
The present invention provides the method and apparatus of a kind of connection establishment, with the problem of the network connection interruption that solution causes due to the fault of heartbeat.
First aspect present invention, it is provided that a kind of method of connection establishment, including:
After the primary network equipment in upstream detects that the link between the first heartbeat port of the primary network equipment in described upstream and the second heartbeat port of upstream backup network equipment disconnects, downstream network device receives, by master port, the first state advertisement message that the primary network equipment in described upstream sends;
Described downstream network device according to described first state advertisement message by described downstream network device from port by Standby state of awaiting orders switch to forwarding Forwarding state, now, described master port and described be in Forwarding state from port, in order to the primary network equipment in described upstream and upstream backup network equipment are connected by the master port of described downstream network device and setting up from port.
In the first possible implementation of first aspect, described method also includes:
After the primary network equipment in described upstream detects that the link between the first heartbeat port of the primary network equipment in described upstream and the second heartbeat port of described upstream backup network equipment re-establishes connection,
Described downstream network device receives, by described master port, the second state advertisement message that the primary network equipment in described upstream sends;
According to described second state advertisement message described downstream network device switched to Standby state from port by Forwarding state.
In conjunction with the first possible implementation of first aspect, in the implementation that the second is possible described according to described second state advertisement message by described downstream network device before port is switched to Standby state by Forwarding state, described method also includes:
Described downstream network device sends to the primary network equipment in described upstream and upstream backup network equipment and updates message, and described renewal message is used for making the primary network equipment in described upstream and described upstream backup network renewal of the equipment media access control layer mac address forwarding table item and ARP list item.
Second aspect present invention, it is provided that a kind of method of connection establishment, including:
The primary network equipment in upstream detects the state of the link between the first heartbeat port and the second heartbeat port of upstream backup network equipment of the primary network equipment in described upstream;
After the primary network equipment in described upstream determines that described link disconnects, the primary network equipment in described upstream sends the first state advertisement message to described downstream network device, after described first state advertisement message is used for making described downstream network device receive described first state advertisement message by master port, according to described first state advertisement message described downstream network device switched to Forwarding state from port by Standby state, now, described master port and described be in Forwarding state from port, so that the primary network equipment in described upstream and described upstream backup network equipment by the master port of described downstream network device and set up connection from port.
In the first possible implementation of second aspect, described method also includes: after the primary network equipment in described upstream detects that the link between the first heartbeat port of the primary network equipment in described upstream and the second heartbeat port of described upstream backup network equipment re-establishes connection
The primary network equipment in described upstream sends the second state advertisement message to described downstream network device, described second state advertisement message is used for making described downstream network device after received described second state advertisement message by described master port, according to described second state advertisement message by Forwarding state, described downstream network device is switched to Standby state from port.
In conjunction with the first possible implementation of second aspect, in the implementation that the second is possible, described method also includes:
Receive the renewal message that described downstream network device sends;Described renewal message is used for making the primary network equipment in described upstream update media access control layer mac address forwarding table item and ARP list item;
Media access control layer mac address forwarding table item and ARP list item is updated according to described renewal message.
In conjunction with the implementation that second aspect the second is possible, in the implementation that the third is possible, described method also includes: before sending the second state advertisement message to described downstream network device, is set to described first heartbeat port block Block state;
After receiving the renewal message that described downstream network device sends, described first heartbeat port is switched to Forwarding state by Block state.
Third aspect present invention, it is provided that a kind of network equipment, including:
Receive unit, after detecting that at the primary network equipment in upstream the link between the first heartbeat port of the primary network equipment in described upstream and the second heartbeat port of upstream backup network equipment disconnects, receive, by master port, the first state advertisement message that the primary network equipment in described upstream sends;
Processing unit, for the first state advertisement message of receiving according to described reception unit the described network equipment switched to Forwarding state from port by Standby state, now, described master port and described be in Forwarding state from port, in order to the primary network equipment in described upstream and upstream backup network equipment are connected by the master port of the described network equipment and setting up from port.
In the first possible implementation of the third aspect, described reception unit is additionally operable to, after the primary network equipment in described upstream detects that the link between the first heartbeat port of the primary network equipment in described upstream and the second heartbeat port of described upstream backup network equipment re-establishes connection, receive, by described master port, the second state advertisement message that the primary network equipment in described upstream sends;
Described processing unit is additionally operable to, and according to the second state advertisement message that described reception unit receives by Forwarding state, the described network equipment is switched to Standby state from port.
In conjunction with the first possible implementation of the third aspect, in the implementation that the second is possible, the described network equipment also includes: transmitting element, for described processing unit according to described second state advertisement message by described downstream network device before port is switched to Standby state by Forwarding state, send to the primary network equipment in described upstream and upstream backup network equipment and update message, described renewal message is used for making the primary network equipment in described upstream and described upstream backup network renewal of the equipment media access control layer mac address forwarding table item and ARP list item.
Fourth aspect present invention, it is provided that a kind of network equipment, including:
Detector unit, for detecting the state of the link between the first heartbeat port of the primary network equipment in described upstream and the second heartbeat port of upstream backup network equipment;
Transmitting element, after determining that described link disconnects in described detector unit, the first state advertisement message is sent to described downstream network device, after described first state advertisement message is used for making described downstream network device receive described first state advertisement message by master port, according to described first state advertisement message described downstream network device switched to Forwarding state from port by Standby state, now, described master port and described be in Forwarding state from port, so that the described network equipment and described upstream backup network equipment by the master port of described downstream network device and set up connection from port.
In the first possible implementation of fourth aspect, described transmitting element is additionally operable to, after described detector unit detects that the link between the first heartbeat port of the described network equipment and the second heartbeat port of described upstream backup network equipment re-establishes connection, the second state advertisement message is sent to described downstream network device, described second state advertisement message is used for making described downstream network device after received described second state advertisement message by described master port, according to described second state advertisement message described downstream network device switched to Standby state from port by Forwarding state.
In conjunction with the first possible implementation of fourth aspect, in the implementation that the second is possible, the described network equipment also includes:
Receive unit, for receiving the renewal message that described downstream network device sends;Described renewal message is used for making the primary network equipment in described upstream update media access control layer mac address forwarding table item and ARP list item;
Processing unit, updates media access control layer mac address forwarding table item and ARP list item for the renewal message received according to described reception unit.
In conjunction with the implementation that fourth aspect the second is possible, in the implementation that the third is possible, described processing unit, it is additionally operable to before sending the second state advertisement message to described downstream network device, is set to described first heartbeat port block Block state;After receiving the renewal message that described downstream network device sends, described first heartbeat port is switched to Forwarding state by Block state.
By using such scheme, when heartbeat breaks down, the upstream primary network equipment downstream network equipment sends the first state advertisement message, downstream network device is switched to forwarding state from port by armed state according to this first state advertisement message by downstream network device, so, the primary network equipment in upstream and upstream backup network equipment are set up by downstream network device connect, thus solve the primary network equipment in upstream caused because of heartbeat failure and the problem of upstream backup network equipment connection disconnection, ensure that the normal work of network when heartbeat breaks down.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The method flow diagram of a kind of connection establishment that Fig. 1 provides for the embodiment of the present invention;
The method flow diagram of the another kind of connection establishment that Fig. 2 provides for the embodiment of the present invention;
The signaling diagram of a kind of connection establishment method that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of network equipment that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the another kind of network equipment that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the another kind of network equipment that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the another kind of network equipment that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the another kind of network equipment that Fig. 8 provides for the embodiment of the present invention;
The structural representation of the another kind of network equipment that Fig. 9 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
The embodiment of the present invention provides a kind of method of connection establishment, as described in Figure 1, the executive agent of the method is downstream network device, this downstream network device includes belonging to the master port of a SmarkLink group and from port, wherein, master port is the port that this downstream network device and the primary network equipment in upstream carry out data interaction, is the port that this downstream network device and upstream backup network equipment carry out data interaction from port, and the method includes:
S101, after the primary network equipment in upstream detects that link between the first heartbeat port of the primary network equipment in this upstream and the second heartbeat port of upstream backup network equipment disconnects, downstream network device receives the first state advertisement message of this upstream primary network equipment transmission by master port.
Wherein, the link between the first heartbeat port and the second heartbeat port is the link at heartbeat place.Now, the master port of downstream network device is in forwarding Forwarding state, is in Standby state of awaiting orders from port.This downstream network device is switched to Forwarding state from port by Standby state for making this downstream network device by this first state advertisement message.
Alternatively, after link between the first heartbeat port and the second heartbeat port of upstream backup network equipment of the primary network equipment in upstream disconnects, the primary network equipment in upstream sends this first state advertisement message by the form of broadcast, and downstream network device receives this first state advertisement message by master port.
This downstream network device is switched to Forwarding state from port by Standby state according to this first state advertisement message by S102, this downstream network device, in order to the primary network equipment in this upstream and upstream backup network equipment are connected by the master port of this downstream network device and setting up from port.
Wherein, this downstream network device according to this first state advertisement message by this downstream network device after port is switched to Forwarding state by Standby state, this master port and slave end mouth are in Forwarding state.
nullSpecifically,Downstream network device receives, by master port, the first state advertisement message that the primary network equipment in upstream sends,Forwarding state will be switched to from port by Standby state according to this first state advertisement message,Now,Due to master port and from port all in Forwarding state,Therefore,The downstream network device protocol massages that the primary network equipment receives from upstream no longer abandons,But by this protocol massages by being in sending to upstream backup network equipment from port of Forwarding state,Similarly,The protocol massages that downstream network device receives from upstream backup network equipment the most no longer abandons,But this protocol massages is sent to upstream the primary network equipment by master port,Wherein,This protocol massages is for detecting the message of the other side's duty between the primary network equipment in upstream and upstream backup network equipment.So, the primary network equipment in this upstream and upstream backup network equipment by the master port of this downstream network device and set up connection from port, protocol massages realizes the transmission between the primary network equipment in upstream and upstream backup network equipment by downstream network device, thus instead of the function of heartbeat, it is ensured that the normal connection of network when heartbeat breaks down.
It should be noted that, although above-mentioned downstream network device switched to Forwarding state from port by Standby state, but, owing to the master port of now downstream network device is still Forwarding state, that is, MAC (the MediumAccessControl of the primary network equipment in above-mentioned upstream, media access control layer) address list item and ARP (AddressResolutionProtocol, address resolution protocol) list item do not changes, therefore, downstream network device can not send renewal message update this MAC Address list item and ARP.
Further, after the primary network equipment in this upstream detects that the link between the first heartbeat port of the primary network equipment in this upstream and the second heartbeat port of this upstream backup network equipment re-establishes connection, downstream network device receives, by this master port, the second state advertisement message that this upstream primary network equipment sends, and this downstream network device is switched to Standby state from port by Forwarding state for making this downstream network device by this second state advertisement message;This downstream network device is switched to Standby state from port by Forwarding state according to this second state advertisement message by this downstream network device.Additionally, it is also at Forwarding state from port due to now downstream network device, therefore, downstream network device can also receive, by slave end mouth, the second state advertisement message that this upstream backup network equipment sends, and according to this second state advertisement message by Forwarding state, this downstream network device is switched to Standby state from port.So, after heartbeat between the primary network equipment in upstream and this upstream backup network equipment recovers normal work, the primary network equipment in upstream and upstream backup network equipment can continue to by heartbeat interaction protocol message, and due to now from port be Standby state, thus (message that the network equipment as primary in upstream sends has been eventually returned to the primary network equipment in this upstream by downstream network device and upstream backup network equipment to avoid network loop phenomenon, thus cause the vicious cycle of message transmissions, cause network congestion).
nullIt should be noted that,Before the upstream primary network equipment downstream network equipment sends the second state advertisement message,The primary network equipment in upstream also needs to be set to the first heartbeat port block Block state (data message of reception can directly be abandoned by the port being in this Block state),Or,Before the upstream backup network equipment downstream network equipment sends the second state advertisement message,Second heartbeat port is set to Block state by upstream backup network equipment,Certainly,The primary network equipment in upstream the first heartbeat port can also be set to Block state,Second heartbeat is also set to Block state by upstream backup network equipment,Specifically,If the first heartbeat port is set to Block state by the primary network equipment in upstream,Then sent this second state advertisement message by the primary network equipment in this upstream;If the second heartbeat port is set to Block state by upstream backup network equipment, then sent this second state advertisement message by this upstream backup network equipment.But, owing to the message transmissions on the link of heartbeat place needs to ensure that the first heartbeat port and the second heartbeat port are all in Forwarding state, therefore, have only to one of them port and be in Block state, the interruption of this heartbeat place link packet transmission can be ensured, thus after the primary network equipment in upstream or upstream backup network equipment send the second state advertisement message, it is to avoid network loop phenomenon.
Further, downstream network device according to this second state advertisement message by this downstream network device before port is switched to Standby state by Forwarding state, sending to the primary network equipment in this upstream and upstream backup network equipment and update message (Flush message), this renewal message is used for making the primary network equipment in this upstream and this upstream backup network renewal of the equipment mac address forwarding table item and ARP.
Specifically, downstream network device is passed through master port respectively and sends renewal message from port to the primary network equipment in this upstream and upstream backup network equipment, and this renewal message is used for making the primary network equipment in this upstream update mac address forwarding table item and ARP;And this downstream network device is switched to Standby state from port by Forwarding state by this downstream network device, additionally, owing to the master port of upstream primary network equipment correspondence downstream network device does not occur state to switch, the primary network equipment in this upstream still carries out the mutual of message by master port with this downstream network device.The primary network equipment in this upstream and upstream backup network equipment, after receiving this renewal message, update mac address forwarding table item and ARP according to this renewal message.
It should be noted that, after the primary network equipment in upstream and upstream backup network equipment receive this renewal message, when the first heartbeat port is in Block state, this first heartbeat port is switched to Forwarding state by Block state by the primary network equipment in upstream;When the second heartbeat port is in Block state, this second heartbeat port is switched to Forwarding state by Block state by upstream backup network equipment, thus ensure that the normal transmission of message on the link of heartbeat place.
By using such scheme, when heartbeat breaks down, downstream network device receives the first state advertisement message that the primary network equipment in upstream sends, and according to this first state advertisement message downstream network device switched to Forwarding state from port by Standby state, so, make to be set up by downstream network device between the primary network equipment in upstream and upstream backup network equipment to connect, thus solve because the problem that disconnects of the link between the heartbeat failure primary network equipment in upstream and the upstream backup network equipment that cause, ensure that the normal work of network when heartbeat breaks down.
The embodiment of the present invention provides a kind of method of connection establishment, as in figure 2 it is shown, the executive agent of the method is the primary network equipment in upstream, including:
The state of the link between the first heartbeat port and the second heartbeat port of upstream backup network equipment of the primary network equipment in S201, the primary network equipment in upstream detection upstream;
S202, the primary network equipment in upstream determine link disconnect after, the primary network equipment in this upstream sends the first state advertisement message to this downstream network device, after this first state advertisement message is used for making this downstream network device receive this first state advertisement message by master port, according to this first state advertisement message this downstream network device switched to Forwarding state from port by Standby state;So that the primary network equipment in this upstream and this upstream backup network equipment by the master port of this downstream network device and set up connection from port.
Wherein, this downstream network device according to this first state advertisement message by this downstream network device after port is switched to Forwarding state by Standby state, this master port and slave end mouth are in Forwarding state.
Alternatively, after link between the first heartbeat port and the second heartbeat port of upstream backup network equipment of the primary network equipment in upstream disconnects, the primary network equipment in upstream sends this first state advertisement message by the form of broadcast, and downstream network device receives this first state advertisement message by master port.
nullSpecifically,Downstream network device receives, by master port, the first state advertisement message that the primary network equipment in upstream sends,Thus Forwarding state will be switched to from port by Standby state according to this first state advertisement message,Now,Due to master port and from port all in Forwarding state,Therefore,The downstream network device protocol massages that the primary network equipment receives from upstream no longer abandons,But by this protocol massages by being in sending to upstream backup network equipment from port of Forwarding state,Similarly,The protocol massages that downstream network device receives from upstream backup network equipment the most no longer abandons,But this protocol massages is sent to upstream the primary network equipment by master port,Wherein,This protocol massages is for detecting the message of the other side's duty between the primary network equipment in upstream and upstream backup network equipment.So, the primary network equipment in this upstream and upstream backup network equipment by the master port of this downstream network device and set up connection from port, protocol massages realizes the transmission between the primary network equipment in upstream and upstream backup network equipment by downstream network device, thus instead of the function of heartbeat, it is ensured that the normal connection of network when heartbeat breaks down.
It should be noted that, although above-mentioned downstream network device switched to Forwarding state from port by Standby state, but, owing to the master port of now downstream network device is still Forwarding state, that is, MAC (the MediumAccessControl of the primary network equipment in above-mentioned upstream, media access control layer) address list item and ARP (AddressResolutionProtocol, address resolution protocol) list item do not changes, therefore, downstream network device can not send renewal message update this MAC Address list item and ARP.
Further, after the primary network equipment in this upstream detects that the link between the first heartbeat port of the primary network equipment in this upstream and the second heartbeat port of this upstream backup network equipment re-establishes connection, the primary network equipment in this upstream sends the second state advertisement message to this downstream network device, so that this downstream network device after receiving this second state advertisement message by this master port, according to this second state advertisement message this downstream network device switched to Standby state from port by Forwarding state.
Additionally, it is also at Forwarding state from port due to now downstream network device, therefore, in a replacement scheme, upstream backup network equipment sends the second state advertisement message to this downstream network device, and this downstream network device is switched to Standby state from port by Forwarding state for making this downstream network device according to this second state advertisement message by described second state advertisement message.So, after heartbeat between the primary network equipment in upstream and this upstream backup network equipment recovers normal work, the primary network equipment in upstream and upstream backup network equipment can continue to by heartbeat interaction protocol message, and owing to being now Standby state from port, thus avoid network loop phenomenon.
Further, the primary network equipment in upstream receives the renewal message that this downstream network device sends, and updates mac address forwarding table item and ARP according to this renewal message.
Specifically, downstream network device passes through master port and from port respectively to visiting the primary network equipment in upstream and upstream backup network equipment transmission renewal message, and this renewal message is used for making the primary network equipment in this upstream update mac address forwarding table item and ARP;And this downstream network device is switched to Standby state from port by Forwarding state by this downstream network device, additionally, owing to the master port of upstream primary network equipment correspondence downstream network device does not occur state to switch, the primary network equipment in this upstream still carries out the mutual of message by master port with this downstream network device.The primary network equipment in this upstream and upstream backup network equipment, after receiving this renewal message, update mac address forwarding table item and ARP according to this renewal message.
Further, before sending the second state advertisement message to this downstream network device, this the first heartbeat port is set to block Block state by the primary network equipment in upstream, and after receiving the renewal message that this downstream network device sends, this first heartbeat port is switched to Forwarding state by Block state.
Specifically, before the upstream primary network equipment downstream network equipment sends the second state advertisement message, the primary network equipment in upstream also needs to the first heartbeat port is set to Block state, or, before the upstream backup network equipment downstream network equipment sends the second state advertisement message, second heartbeat port is set to Block state by upstream backup network equipment, certainly, the primary network equipment in upstream the first heartbeat port can also be set to Block state, second heartbeat is also set to Block state by upstream backup network equipment, specifically, if the first heartbeat port is set to Block state by the primary network equipment in upstream, then sent this second state advertisement message by the primary network equipment in this upstream;If the second heartbeat port is set to Block state by upstream backup network equipment, then sent this second state advertisement message by this upstream backup network equipment.But, owing to the message transmissions on the link of heartbeat place needs to ensure that the first heartbeat port and the second heartbeat port are all in Forwarding state, therefore, have only to one of them port and be in Block state, the interruption of this heartbeat place link packet transmission can be ensured, thus after the primary network equipment in upstream or upstream backup network equipment send the second state advertisement message, it is to avoid network loop phenomenon.
It addition, after the primary network equipment in upstream and upstream backup network equipment receive this renewal message, when the first heartbeat port is in Block state, this first heartbeat port is switched to Forwarding state by Block state by the primary network equipment in upstream;When the second heartbeat port is in Block state, this second heartbeat port is switched to Forwarding state by Block state by upstream backup network equipment, thus ensure that the normal transmission of message on the link of heartbeat place.
By using such scheme, when heartbeat breaks down, the upstream primary network equipment downstream network equipment sends the first state advertisement message, downstream network device is switched to forwarding state from port by armed state according to this first state advertisement message by downstream network device, so, link between the primary network equipment in upstream and upstream backup network equipment is set up by downstream network device connect, thus solve because the problem that disconnects of the link between the heartbeat failure primary network equipment in upstream and the upstream backup network equipment that cause, ensure that the normal work of network when heartbeat breaks down.
The embodiment of the present invention provides a kind of method of connection establishment, as it is shown on figure 3, include:
S301, the primary network equipment in upstream detect the Link State between the first heartbeat port of the primary network equipment in this upstream and the second heartbeat port of upstream backup network equipment.
S302, the primary network equipment in this upstream are after determining that this link disconnects, and downstream the network equipment sends the first state advertisement message.
Wherein, the link between the first heartbeat port and the second heartbeat port is the link at heartbeat place.Now, the master port of downstream network device is in Forwarding state, is in Standby state from port.This downstream network device is switched to Forwarding state from port by Standby state for making this downstream network device by this first state advertisement message.
Alternatively, after link between the first heartbeat port and the second heartbeat port of upstream backup network equipment of the primary network equipment in upstream disconnects, the primary network equipment in upstream sends this first state advertisement message by the form of broadcast, and downstream network device receives this first state advertisement message by master port.
S303, downstream network device receive this first state advertisement message by master port, and will be switched to Forwarding state from port by Standby state according to this first state advertisement message.
Wherein, this downstream network device according to this first state advertisement message by this downstream network device after port is switched to Forwarding state by Standby state, this master port and slave end mouth are in Forwarding state.Now, the primary network equipment in this upstream and upstream backup network equipment by the master port of this downstream network device and set up connection from port.
nullSpecifically,Downstream network device receives, by master port, the first state advertisement message that the primary network equipment in upstream sends,Thus Forwarding state will be switched to from port by Standby state according to this first state advertisement message,Now,Due to master port and from port all in Forwarding state,Therefore,The downstream network device protocol massages that the primary network equipment receives from upstream no longer abandons,But by this protocol massages by being in sending to upstream backup network equipment from port of Forwarding state,Similarly,The protocol massages that downstream network device receives from upstream backup network equipment the most no longer abandons,But this protocol massages is sent to upstream the primary network equipment by master port,Wherein,This protocol massages is for detecting the message of the other side's duty between the primary network equipment in upstream and upstream backup network equipment.So, the primary network equipment in this upstream and upstream backup network equipment by the master port of this downstream network device and set up connection from port, protocol massages realizes the transmission between the primary network equipment in upstream and upstream backup network equipment by downstream network device, thus instead of the function of heartbeat, it is ensured that the normal connection of network when heartbeat breaks down.
It should be noted that, although above-mentioned downstream network device switched to Forwarding state from port by Standby state, but, owing to the master port of now downstream network device is still Forwarding state, that is, MAC Address list item and the ARP of the primary network equipment in above-mentioned upstream do not change, and therefore, downstream network device can not send renewal message and update this MAC Address list item and ARP.
S304, after the primary network equipment in upstream detects that the link between the first heartbeat port of the primary network equipment in this upstream and the second heartbeat port of upstream backup network equipment re-establishes connection, the first heartbeat port is set to Block state by the primary network equipment in upstream.
It should be noted that, second heartbeat port can also be set to Block state by upstream backup network equipment, certainly, the primary network equipment in upstream the first heartbeat port can also be set to Block state, second heartbeat is also set to Block state by upstream backup network equipment, but, owing to the message transmissions on the link of heartbeat place needs to ensure that the first heartbeat port and the second heartbeat port are all in Forwarding state, therefore, have only to one of them port and be in Block state, the interruption of this heartbeat place link packet transmission can be ensured, thus after the primary network equipment in upstream or upstream backup network equipment send the second state advertisement message, avoid network loop phenomenon.
S305, the upstream primary network equipment downstream network equipment send the second state advertisement message.
Wherein, being also at Forwarding state due to now downstream network device from port, upstream backup network equipment downstream can also send the second state advertisement message by the network equipment.Described second state advertisement message is used for making this downstream network device after received this second state advertisement message by this master port, according to this second state advertisement message by Forwarding state, this downstream network device is switched to Standby state from port.
Specifically, if the first heartbeat port is set to Block state by the primary network equipment in upstream, then this second state advertisement message is sent by the primary network equipment in this upstream;If the second heartbeat port is set to Block state by upstream backup network equipment, then sent this second state advertisement message by this upstream backup network equipment.
S306, downstream network device are after receiving this second state advertisement message, respectively by master port with from the most primary network equipment of port and upstream backup network equipment transmission renewal message.
Wherein, this renewal message is used for making the primary network equipment in this upstream and this upstream backup network renewal of the equipment mac address forwarding table item and ARP.
This downstream network device is switched to Standby state from port by Forwarding state according to this second state advertisement message by S307, downstream network device.
So, after heartbeat between the primary network equipment in upstream and this upstream backup network equipment recovers normal work, the primary network equipment in upstream and upstream backup network equipment can continue to by heartbeat interaction protocol message, and owing to being now Standby state from port, thus avoid network loop phenomenon.
S308, the primary network equipment in upstream and upstream backup network equipment update mac address forwarding table item and ARP according to this renewal message.
Specifically, owing to the master port of upstream primary network equipment correspondence downstream network device does not occur state to switch, the primary network equipment in this upstream still carries out the mutual of message by master port with this downstream network device.The primary network equipment in this upstream and upstream backup network equipment, after receiving this renewal message, update mac address forwarding table item and ARP according to this renewal message.
First heartbeat port, after receiving this renewal message, is switched to Forwarding state by Block state by S309, the primary network equipment in upstream.
It should be noted that, after the primary network equipment in upstream and upstream backup network equipment receive this renewal message, when the first heartbeat port is in Block state, this first heartbeat port is switched to Forwarding state by Block state by the primary network equipment in upstream;When the second heartbeat port is in Block state, this second heartbeat port is switched to Forwarding state by Block state by upstream backup network equipment, thus ensure that the normal transmission of message on the link of heartbeat place.
By using such scheme, when heartbeat breaks down, the upstream primary network equipment downstream network equipment sends the first state advertisement message, downstream network device is switched to forwarding state from port by armed state according to this first state advertisement message by downstream network device, so, link between the primary network equipment in upstream and upstream backup network equipment is set up by downstream network device connect, thus solve because the problem that disconnects of the link between the heartbeat failure primary network equipment in upstream and the upstream backup network equipment that cause, ensure that the normal work of network when heartbeat breaks down.
It should be noted that, for said method embodiment, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement, secondly, those skilled in the art also should know, embodiment described in this description belongs to preferred embodiment, necessary to involved action and the module not necessarily present invention.
The embodiment of the present invention provides a kind of network equipment 40, and as shown in Figure 4, this network equipment 40 can be downstream network device, including:
Receive unit 41, after detecting that at the primary network equipment in upstream the link between the first heartbeat port of the primary network equipment in this upstream and the second heartbeat port of upstream backup network equipment disconnects, receive, by master port, the first state advertisement message that the primary network equipment in this upstream sends.
Wherein, the link between the first heartbeat port and the second heartbeat port is the link at heartbeat place.Now, the master port of downstream network device is in Forwarding state, is in Standby state from port.This downstream network device is switched to Forwarding state from port by Standby state for making this downstream network device by this first state advertisement message.
Alternatively, after link between the first heartbeat port and the second heartbeat port of upstream backup network equipment of the primary network equipment in upstream disconnects, the primary network equipment in upstream sends this first state advertisement message by the form of broadcast, and downstream network device receives this first state advertisement message by master port.
Processing unit 42, for the first state advertisement message of receiving according to this reception unit 41 this network equipment switched to Forwarding state from port by Standby state, so that the primary network equipment in this upstream and upstream backup network equipment by the master port of this network equipment and set up connection from port
Wherein, this downstream network device according to this first state advertisement message by this downstream network device after port is switched to Forwarding state by Standby state, this master port and slave end mouth are in Forwarding state.
nullSpecifically,Downstream network device receives, by master port, the first state advertisement message that the primary network equipment in upstream sends,Thus Forwarding state will be switched to from port by Standby state according to this first state advertisement message,Now,Due to master port and from port all in Forwarding state,Therefore,The downstream network device protocol massages that the primary network equipment receives from upstream no longer abandons,But by this protocol massages by being in sending to upstream backup network equipment from port of Forwarding state,Similarly,The protocol massages that downstream network device receives from upstream backup network equipment the most no longer abandons,But this protocol massages is sent to upstream the primary network equipment by master port,Wherein,This protocol massages is for detecting the message of the other side's duty between the primary network equipment in upstream and upstream backup network equipment.So, the primary network equipment in this upstream and upstream backup network equipment by the master port of this downstream network device and set up connection from port, protocol massages realizes the transmission between the primary network equipment in upstream and upstream backup network equipment by downstream network device, thus instead of the function of heartbeat, it is ensured that the normal connection of network when heartbeat breaks down.
Further, this reception unit 41 is additionally operable to, after the primary network equipment in this upstream detects that the link between the first heartbeat port of the primary network equipment in this upstream and the second heartbeat port of this upstream backup network equipment re-establishes connection, receive, by this master port, the second state advertisement message that the primary network equipment in this upstream sends.
Wherein, this second state advertisement message is for making this downstream network device that by Forwarding state, this downstream network device is switched to Standby state from port.
This processing unit 42 is additionally operable to, and according to the second state advertisement message that this reception unit 41 receives by Forwarding state, this network equipment is switched to Standby state from port.
So, after heartbeat between the primary network equipment in upstream and this upstream backup network equipment recovers normal work, the primary network equipment in upstream and upstream backup network equipment can continue to by heartbeat interaction protocol message, and owing to being now Standby state from port, thus avoid network loop phenomenon.
Further, as shown in Figure 5, this network equipment 40 also includes: transmitting element 43, for manage in this place unit 42 according to this second state advertisement message by this downstream network device before port is switched to Standby state by Forwarding state, sending to the primary network equipment in this upstream and upstream backup network equipment and update message, this renewal message is used for making the primary network equipment in this upstream and this upstream backup network renewal of the equipment media access control layer mac address forwarding table item and ARP list item.
Specifically, downstream network device is passed through master port respectively and sends renewal message from port to the primary network equipment in this upstream and upstream backup network equipment, and this downstream network device switched to Standby state from port by Forwarding state, additionally, owing to the master port of upstream primary network equipment correspondence downstream network device does not occur state to switch, the primary network equipment in this upstream still carries out the mutual of message by master port with this downstream network device.The primary network equipment in this upstream and upstream backup network equipment, after receiving this renewal message, update mac address forwarding table item and ARP according to this renewal message.
By using the above-mentioned network equipment, when heartbeat breaks down, this network equipment receives the first state advertisement message that the primary network equipment in upstream sends, downstream network device is switched to forwarding state from port by armed state according to this first state advertisement message by this network equipment, so, link between the primary network equipment in upstream and upstream backup network equipment is set up by this network equipment connect, thus solve because the problem that disconnects of the link between heartbeat failure this network equipment and the upstream backup network equipment that cause, ensure that the normal work of network when heartbeat breaks down.
Affiliated those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, the specific works process of the downstream network device of foregoing description and description, it is referred to the corresponding process in preceding method embodiment, does not repeats them here.
The embodiment of the present invention provides a kind of network equipment 60, and as shown in Figure 6, this network equipment 60 can be the primary network equipment in upstream, including:
Detector unit 61, for detecting the state of the link between the first heartbeat port of the primary network equipment in this upstream and the second heartbeat port of upstream backup network equipment.
Transmitting element 62, after determining that this link disconnects in this detector unit 61, the first state advertisement message is sent to this downstream network device, after this first state advertisement message is used for making this downstream network device receive this first state advertisement message by master port, according to this first state advertisement message this downstream network device switched to Forwarding state from port by Standby state;So that this network equipment and this upstream backup network equipment by the master port of this downstream network device and set up connection from port.
Wherein, this downstream network device according to this first state advertisement message by this downstream network device after port is switched to Forwarding state by Standby state, this master port and slave end mouth are in Forwarding state.
Alternatively, after link between the first heartbeat port and the second heartbeat port of upstream backup network equipment of this network equipment disconnects, this network equipment sends this first state advertisement message by the form of broadcast, and downstream network device receives this first state advertisement message by master port.
nullSpecifically,Downstream network device receives, by master port, the first state advertisement message that this network equipment sends,Thus Forwarding state will be switched to from port by Standby state according to this first state advertisement message,Now,Due to master port and from port all in Forwarding state,Therefore,The protocol massages that downstream network device receives from this network equipment no longer abandons,But by this protocol massages by being in sending to upstream backup network equipment from port of Forwarding state,Similarly,The protocol massages that downstream network device receives from upstream backup network equipment the most no longer abandons,But this protocol massages is sent to this network equipment by master port,Wherein,This protocol massages is for detecting the message of the other side's duty between this network equipment and upstream backup network equipment.So, this network equipment and upstream backup network equipment by the master port of this downstream network device and set up connection from port, protocol massages realizes the transmission between this network equipment and upstream backup network equipment by downstream network device, thus instead of the function of heartbeat, it is ensured that the normal connection of network when heartbeat breaks down.
Further, this transmitting element 62 is additionally operable to, after link between first heartbeat port and the second heartbeat port of this upstream backup network equipment of this network equipment detected in this detector unit 61 re-establishes connection, the second state advertisement message is sent to this downstream network device, so that this downstream network device after receiving this second state advertisement message by this master port, according to this second state advertisement message this downstream network device switched to Standby state from port by Forwarding state.
Additionally, it is also at Forwarding state from port due to now downstream network device, therefore, upstream backup network equipment can also send the second state advertisement message to this downstream network device, and this downstream network device is switched to Standby state from port by Forwarding state for making this downstream network device according to this second state advertisement message by this second state advertisement message.So, after heartbeat between this network equipment and this upstream backup network equipment recovers normal work, this network equipment and upstream backup network equipment can continue to by heartbeat interaction protocol message, and owing to being now Standby state from port, thus avoid network loop phenomenon.
Further, as it is shown in fig. 7, this network equipment 60 also includes:
Receive unit 63, for receiving the renewal message that this downstream network device sends.
Wherein, this renewal message is used for making the primary network equipment in this upstream and this upstream backup network renewal of the equipment mac address forwarding table item and ARP.
Processing unit 64, updates media access control layer mac address forwarding table item and ARP list item for the renewal message received according to this reception unit 63.
Specifically, downstream network device is passed through master port respectively and sends renewal message from port to the primary network equipment in this upstream and upstream backup network equipment, and this downstream network device switched to Standby state from port by Forwarding state, additionally, owing to the master port of this network equipment correspondence downstream network device does not occur state to switch, this network equipment still carries out the mutual of message by master port with this downstream network device.The primary network equipment in this upstream and upstream backup network equipment, after receiving this renewal message, update mac address forwarding table item and ARP according to this renewal message.
Further, this processing unit 64, it is additionally operable to before sending the second state advertisement message to this downstream network device, is set to this first heartbeat port block Block state;After receiving the renewal message that this downstream network device sends, this first heartbeat port is switched to Forwarding state by Block state.
Specifically, second heartbeat port can also be set to Block state by upstream backup network equipment, certainly, this network equipment the first heartbeat port can also be set to Block state, second heartbeat is also set to Block state by upstream backup network equipment, specifically, if the first heartbeat port is set to Block state by the primary network equipment in upstream, then this second state advertisement message is sent by the primary network equipment in this upstream;If the second heartbeat port is set to Block state by upstream backup network equipment, then sent this second state advertisement message by this upstream backup network equipment.But, owing to the message transmissions on the link of heartbeat place needs to ensure that the first heartbeat port and the second heartbeat port are all in Forwarding state, therefore, have only to one of them port and be in Block state, the interruption of this heartbeat place link packet transmission can be ensured, thus after this network equipment or upstream backup network equipment send the second state advertisement message, it is to avoid network loop phenomenon.
It addition, after this network equipment and upstream backup network equipment receive this renewal message, when the first heartbeat port is in Block state, this first heartbeat port is switched to Forwarding state by Block state by this network equipment;When the second heartbeat port is in Block state, this second heartbeat port is switched to Forwarding state by Block state by upstream backup network equipment, thus ensure that the normal transmission of message on the link of heartbeat place.
By using the above-mentioned network equipment, when heartbeat breaks down, this network equipment downstream network equipment sends the first state advertisement message, downstream network device is switched to forwarding state from port by armed state according to this first state advertisement message by downstream network device, so, link between this network equipment and upstream backup network equipment is set up by downstream network device connect, thus solve because the problem that disconnects of the link between heartbeat failure this network equipment and the upstream backup network equipment that cause, ensure that the normal work of network when heartbeat breaks down.
Affiliated those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, the specific works process of the downstream network device of foregoing description and description, it is referred to the corresponding process in preceding method embodiment, does not repeats them here.
A kind of network equipment 80 of embodiment of the present invention offer, as shown in Figure 8, including:
Processor (processor) 81, master port 82, from port 83, memorizer (memory) 84 and communication bus 85;Wherein, described processor 81, described master port 82, described complete mutual communicate with described memorizer 84 by described communication bus 85 from port 83.
Processor 81 is probably a central processor CPU, or specific integrated circuit ASIC (ApplicationSpecificIntegratedCircuit), or is configured to implement one or more integrated circuits of the embodiment of the present invention.
Memorizer 84 is used for depositing program code, and described program code includes computer-managed instruction.Memorizer 84 may comprise high-speed RAM memorizer, it is also possible to also includes nonvolatile memory (non-volatilememory), for example, at least one disk memory.
Described master port 82, for network device communications primary with upstream.
Described from port 83, for communicating with upstream backup network equipment.
Described processor 81 performs program code, after detecting that at the primary network equipment in upstream the link between the first heartbeat port of the primary network equipment in this upstream and the second heartbeat port of upstream backup network equipment disconnects, the first state advertisement message that the primary network equipment in this upstream sends is received by master port 82, and forwarding Forwarding state will be switched to from port 83 by Standby state of awaiting orders according to this first state advertisement message, now, this master port 82 and slave end mouth 83 are in Forwarding state, so that the primary network equipment in this upstream and upstream backup network equipment set up connection by this master port 82 with from port 83.
Further, this processor 81 is additionally operable to, after the primary network equipment in this upstream detects that the link between the first heartbeat port of the primary network equipment in this upstream and the second heartbeat port of this upstream backup network equipment re-establishes connection, receive, by this master port 82, the second state advertisement message that the primary network equipment in this upstream sends, and according to this second state advertisement message, slave end mouth 83 is switched to Standby state by Forwarding state.
Further, this processor 81 is additionally operable to, before slave end mouth 83 is switched to Standby state by Forwarding state according to this second state advertisement message by this, sending to the primary network equipment in this upstream and upstream backup network equipment and update message, this renewal message is used for making the primary network equipment in this upstream and this upstream backup network renewal of the equipment media access control layer mac address forwarding table item and ARP list item.
The embodiment of the present invention provides a kind of network equipment 90, as it is shown in figure 9, include:
Processor (processor) 91, communication interface (CommunicationsInterface) 92, memorizer (memory) 93 and communication bus 94;Wherein, described processor 91, described communication interface 92 complete mutual communicating with described memorizer 93 by described communication bus 94.
Processor 91 is probably a central processor CPU, or specific integrated circuit ASIC (ApplicationSpecificIntegratedCircuit), or is configured to implement one or more integrated circuits of the embodiment of the present invention.
Memorizer 93 is used for depositing program code, and described program code includes computer-managed instruction.Memorizer 93 may comprise high-speed RAM memorizer, it is also possible to also includes nonvolatile memory (non-volatilememory), for example, at least one disk memory.
Described communication interface 92, is used for and downstream network device communication.
Described processor 91 performs program code, for detecting the state of the link between the first heartbeat port of the primary network equipment in upstream and the second heartbeat port of upstream backup network equipment;After determining that this link disconnects, the first state advertisement message is sent to this downstream network device, after this first state advertisement message is used for making this downstream network device receive this first state advertisement message by master port, according to this first state advertisement message this downstream network device switched to Forwarding state from port by Standby state, now, this master port and slave end mouth are in Forwarding state, in order to the primary network equipment in this upstream and this upstream backup network equipment by the master port of this downstream network device and set up connection from port.
Further, this processor 91 is additionally operable to, after the link detected between the first heartbeat port of the primary network equipment in this upstream and the second heartbeat port of this upstream backup network equipment re-establishes connection, the second state advertisement message is sent to this downstream network device, described second state advertisement message is used for making this downstream network device after received this second state advertisement message by this master port, according to this second state advertisement message by Forwarding state, this downstream network device is switched to Standby state from port.
Further, this processor 91 is additionally operable to, and receives the renewal message that this downstream network device sends;This renewal message is used for making the primary network equipment in this upstream update media access control layer mac address forwarding table item and ARP list item, and updates media access control layer mac address forwarding table item and ARP list item according to this renewal message.
Further, this processor 91 is additionally operable to, before sending the second state advertisement message to this downstream network device, it is set to this first heartbeat port block Block state, and after receiving the renewal message that this downstream network device sends, this first heartbeat port is switched to Forwarding state by Block state.
The above; being only the detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with scope of the claims.

Claims (14)

1. the method for a connection establishment, it is characterised in that including:
After the primary network equipment in upstream detects that the link between the first heartbeat port of the primary network equipment in described upstream and the second heartbeat port of upstream backup network equipment disconnects, downstream network device receives, by master port, the first state advertisement message that the primary network equipment in described upstream sends;
Described downstream network device according to described first state advertisement message by described downstream network device from port by Standby state of awaiting orders switch to forwarding Forwarding state, now, described master port and described be in Forwarding state from port, in order to the primary network equipment in described upstream and upstream backup network equipment are connected by the master port of described downstream network device and setting up from port.
Method the most according to claim 1, it is characterised in that described method also includes:
After the primary network equipment in described upstream detects that the link between the first heartbeat port of the primary network equipment in described upstream and the second heartbeat port of described upstream backup network equipment re-establishes connection,
Described downstream network device receives, by described master port, the second state advertisement message that the primary network equipment in described upstream sends;
According to described second state advertisement message described downstream network device switched to Standby state from port by Forwarding state.
Method the most according to claim 2, it is characterised in that described according to described second state advertisement message by described downstream network device before port is switched to Standby state by Forwarding state, described method also includes:
Described downstream network device sends to the primary network equipment in described upstream and upstream backup network equipment and updates message, and described renewal message is used for making the primary network equipment in described upstream and described upstream backup network renewal of the equipment media access control layer mac address forwarding table item and ARP list item.
4. the method for a connection establishment, it is characterised in that including:
The primary network equipment in upstream detects the state of the link between the first heartbeat port and the second heartbeat port of upstream backup network equipment of the primary network equipment in described upstream;
After the primary network equipment in described upstream determines that described link disconnects, the described upstream primary network equipment downstream network equipment sends the first state advertisement message, after described first state advertisement message is used for making described downstream network device receive described first state advertisement message by master port, according to described first state advertisement message described downstream network device switched to Forwarding state from port by Standby state, now, described master port and described be in Forwarding state from port, so that the primary network equipment in described upstream and described upstream backup network equipment by the master port of described downstream network device and set up connection from port.
Method the most according to claim 4, it is characterized in that, described method also includes: after the primary network equipment in described upstream detects that the link between the first heartbeat port of the primary network equipment in described upstream and the second heartbeat port of described upstream backup network equipment re-establishes connection
The primary network equipment in described upstream sends the second state advertisement message to described downstream network device, described second state advertisement message is used for making described downstream network device after received described second state advertisement message by described master port, according to described second state advertisement message by Forwarding state, described downstream network device is switched to Standby state from port.
Method the most according to claim 5, it is characterised in that described method also includes:
Receive the renewal message that described downstream network device sends;Described renewal message is used for making the primary network equipment in described upstream update media access control layer mac address forwarding table item and ARP list item;
Media access control layer mac address forwarding table item and ARP list item is updated according to described renewal message.
Method the most according to claim 6, it is characterised in that described method also includes: before sending the second state advertisement message to described downstream network device, is set to described first heartbeat port block Block state;
After receiving the renewal message that described downstream network device sends, described first heartbeat port is switched to Forwarding state by Block state.
8. a network equipment, it is characterised in that including:
Receive unit, after detecting that at the primary network equipment in upstream the link between the first heartbeat port of the primary network equipment in described upstream and the second heartbeat port of upstream backup network equipment disconnects, receive, by master port, the first state advertisement message that the primary network equipment in described upstream sends;
Processing unit, for the first state advertisement message of receiving according to described reception unit downstream network device switched to Forwarding state from port by Standby state, now, described master port and described be in Forwarding state from port, in order to the primary network equipment in described upstream and upstream backup network equipment are connected by the master port of described downstream network device and setting up from port.
The network equipment the most according to claim 8, it is characterized in that, described reception unit is additionally operable to, after the primary network equipment in described upstream detects that the link between the first heartbeat port of the primary network equipment in described upstream and the second heartbeat port of described upstream backup network equipment re-establishes connection, receive, by described master port, the second state advertisement message that the primary network equipment in described upstream sends;
Described processing unit is additionally operable to, and according to the second state advertisement message that described reception unit receives by Forwarding state, the described network equipment is switched to Standby state from port.
The network equipment the most according to claim 9, it is characterized in that, the described network equipment also includes: transmitting element, for described processing unit according to described second state advertisement message by described downstream network device before port is switched to Standby state by Forwarding state, sending to the primary network equipment in described upstream and upstream backup network equipment and update message, described renewal message is used for making the primary network equipment in described upstream and described upstream backup network renewal of the equipment media access control layer mac address forwarding table item and ARP list item.
11. 1 kinds of network equipments, it is characterised in that including:
Detector unit, for detecting the state of the link between the first heartbeat port of the primary network equipment in upstream and the second heartbeat port of upstream backup network equipment;
Transmitting element, after determining that described link disconnects in described detector unit, downstream the network equipment sends the first state advertisement message, after described first state advertisement message is used for making described downstream network device receive described first state advertisement message by master port, according to described first state advertisement message described downstream network device switched to Forwarding state from port by Standby state, now, described master port and described be in Forwarding state from port, so that the primary network equipment in described upstream and described upstream backup network equipment by the master port of described downstream network device and set up connection from port.
12. network equipments according to claim 11, it is characterized in that, described transmitting element is additionally operable to, after described detector unit detects that the link between the first heartbeat port of the primary network equipment in described upstream and the second heartbeat port of described upstream backup network equipment re-establishes connection, the second state advertisement message is sent to described downstream network device, described second state advertisement message is used for making described downstream network device after received described second state advertisement message by described master port, according to described second state advertisement message described downstream network device switched to Standby state from port by Forwarding state.
13. network equipments according to claim 12, it is characterised in that the described network equipment also includes:
Receive unit, for receiving the renewal message that described downstream network device sends;Described renewal message is used for making the primary network equipment in described upstream update media access control layer mac address forwarding table item and ARP list item;
Processing unit, updates media access control layer mac address forwarding table item and ARP list item for the renewal message received according to described reception unit.
14. network equipments according to claim 13, it is characterised in that described processing unit, are additionally operable to before sending the second state advertisement message to described downstream network device, are set to described first heartbeat port block Block state;After receiving the renewal message that described downstream network device sends, described first heartbeat port is switched to Forwarding state by Block state.
CN201310058242.1A 2013-02-25 2013-02-25 A kind of method and apparatus of connection establishment Active CN103152262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310058242.1A CN103152262B (en) 2013-02-25 2013-02-25 A kind of method and apparatus of connection establishment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310058242.1A CN103152262B (en) 2013-02-25 2013-02-25 A kind of method and apparatus of connection establishment

Publications (2)

Publication Number Publication Date
CN103152262A CN103152262A (en) 2013-06-12
CN103152262B true CN103152262B (en) 2016-08-03

Family

ID=48550134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310058242.1A Active CN103152262B (en) 2013-02-25 2013-02-25 A kind of method and apparatus of connection establishment

Country Status (1)

Country Link
CN (1) CN103152262B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106452834A (en) * 2016-08-31 2017-02-22 大连环宇移动科技有限公司 Method for guaranteeing series connection equipment to keep consistency of main/standby network ports in communication process

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242254A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Virtual redundant router system and method for transmitting virtual redundant routing protocol packet
CN101635648A (en) * 2009-08-05 2010-01-27 中兴通讯股份有限公司 Method for managing and rapidly switching virtual redundant route protocol group
CN102148677A (en) * 2010-02-10 2011-08-10 杭州华三通信技术有限公司 Method for updating address resolution protocol table entries and core switch
CN102413043A (en) * 2011-11-15 2012-04-11 中兴通讯股份有限公司 Heartbeat setting method, device and heartbeat system
CN102711234A (en) * 2012-05-22 2012-10-03 中兴通讯股份有限公司 Method for synchronizing ARP (address resolution protocol) tables between master and slave VRRP (virtual router redundancy protocol) devices and VRRP device
CN102724073A (en) * 2012-06-20 2012-10-10 华为技术有限公司 Method for network traffic recovery and routing device
CN102868606A (en) * 2012-09-27 2013-01-09 华为技术有限公司 Method, master router and system for sending VRRP (virtual router redundancy protocol) heartbeat messages
CN102891798A (en) * 2012-09-28 2013-01-23 华为技术有限公司 Heartbeat message transmission method and heartbeat message transmission device
CN102891769A (en) * 2012-10-16 2013-01-23 杭州华三通信技术有限公司 Link fault informing method and apparatus
CN102932183A (en) * 2012-11-06 2013-02-13 杭州华三通信技术有限公司 Double-up link failure processing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291201A (en) * 2007-12-05 2008-10-22 福建星网锐捷网络有限公司 Heart beat information transmission system and method
JP5074327B2 (en) * 2008-08-21 2012-11-14 株式会社日立製作所 Routing system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242254A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Virtual redundant router system and method for transmitting virtual redundant routing protocol packet
CN101635648A (en) * 2009-08-05 2010-01-27 中兴通讯股份有限公司 Method for managing and rapidly switching virtual redundant route protocol group
CN102148677A (en) * 2010-02-10 2011-08-10 杭州华三通信技术有限公司 Method for updating address resolution protocol table entries and core switch
CN102413043A (en) * 2011-11-15 2012-04-11 中兴通讯股份有限公司 Heartbeat setting method, device and heartbeat system
CN102711234A (en) * 2012-05-22 2012-10-03 中兴通讯股份有限公司 Method for synchronizing ARP (address resolution protocol) tables between master and slave VRRP (virtual router redundancy protocol) devices and VRRP device
CN102724073A (en) * 2012-06-20 2012-10-10 华为技术有限公司 Method for network traffic recovery and routing device
CN102868606A (en) * 2012-09-27 2013-01-09 华为技术有限公司 Method, master router and system for sending VRRP (virtual router redundancy protocol) heartbeat messages
CN102891798A (en) * 2012-09-28 2013-01-23 华为技术有限公司 Heartbeat message transmission method and heartbeat message transmission device
CN102891769A (en) * 2012-10-16 2013-01-23 杭州华三通信技术有限公司 Link fault informing method and apparatus
CN102932183A (en) * 2012-11-06 2013-02-13 杭州华三通信技术有限公司 Double-up link failure processing method and device

Also Published As

Publication number Publication date
CN103152262A (en) 2013-06-12

Similar Documents

Publication Publication Date Title
CN107846342B (en) Method, device and system for forwarding VXLAN message
CN102904818B (en) A kind of ARP information entry updating method and device
US8886831B2 (en) System and methodology for fast link failover based on remote upstream failures
CN105915400A (en) Data stream switching method and system
CN102821050B (en) A kind of RSTP is applied to the processing method of Single-ring network topology
US8509059B2 (en) Method for operating a virtual router redundancy protocol router and communication system therefor
CN102638389A (en) Redundancy backup method and system of TRILL (Transparent Interconnection over Lots of Links) network
CN103051536A (en) Quick multicast switching method of two-layer redundant link
CN101483558A (en) Method, system and apparatus for packet switching network access by network appliance
CN102780635B (en) The method of pretection switch, TOR switch and system is realized based on TRILL network
CN103534982A (en) Method, equipment and network virtualization system for protecting business reliability
CN108206759B (en) Method, equipment and system for forwarding message
CN101364927A (en) Method, apparatus and system realizing fault recovery of virtual private network
EP2553870B1 (en) An operations, administrations and management proxy and a method for handling operations, administrations and management messages
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
CN103684716A (en) Method for transmitting messages in a redundantly operable industrial communication network and communication device for the redundantly operable industrial communication network
CN101562576B (en) Route distribution method and equipment thereof
CN103490951A (en) Bidirectional forwarding detection method in multi-hop link on basis of BFD
CN102857316B (en) A kind of method and system realizing source looped network protection
CN112995002B (en) Switch ring network design method, switch and storage medium
US7869351B2 (en) Communication techniques and generic layer 3 automatic switching protection
JP5974911B2 (en) Communication system and network relay device
CN102769571B (en) Graceful restart realization method and equipment
CN111327524B (en) Flow forwarding method and system, SDN controller and computer readable storage medium
CN103152262B (en) A kind of method and apparatus of connection establishment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant