WO2017124725A1 - 一种环网节点的mac地址转发表更新方法及装置 - Google Patents

一种环网节点的mac地址转发表更新方法及装置 Download PDF

Info

Publication number
WO2017124725A1
WO2017124725A1 PCT/CN2016/092720 CN2016092720W WO2017124725A1 WO 2017124725 A1 WO2017124725 A1 WO 2017124725A1 CN 2016092720 W CN2016092720 W CN 2016092720W WO 2017124725 A1 WO2017124725 A1 WO 2017124725A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
mac address
forwarding table
network topology
address forwarding
Prior art date
Application number
PCT/CN2016/092720
Other languages
English (en)
French (fr)
Inventor
游莉萍
吴克巍
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017124725A1 publication Critical patent/WO2017124725A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • 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
    • 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

Definitions

  • the present application relates to, but is not limited to, the field of network communication technologies, and in particular, to a method and an apparatus for updating a MAC address forwarding table of a ring network node.
  • the ring network is a commonly used technology in the network.
  • the ring network can implement link backup and improve network reliability.
  • the ring network protection protocol such as the ERPS (Ethernet Ring Protection Switching) protocol
  • the RPL Ring Protection Link
  • Switch traffic to the RPL link to reduce packet data loss.
  • the MAC Media Access Control
  • the new MAC address is generally reconstructed by clearing the original MAC address forwarding table of the node. Forwarding table. Due to the reconstruction of the new MAC address forwarding table, the update of the node's MAC address forwarding table takes a long time, and the update efficiency is low.
  • the embodiment of the invention provides a method and a device for updating a MAC address forwarding table of a ring network node, which can solve the technical problem of long time and low efficiency of updating the MAC address forwarding table of a node in the ring network in the related art.
  • a method for updating a MAC address forwarding table of a ring network node comprising:
  • the first node in the ring network When the first node in the ring network receives the link failure message including the node identifier, the first node deletes the communication chain with the node corresponding to the node identifier as the intermediate node in the saved network topology. And updating the network topology of the first node.
  • the first node determines whether the second node corresponding to each inner layer virtual network vlan tag in the MAC address forwarding table of the first node is in the updated network topology.
  • the first node updates the MAC address forwarding table of the first node by modifying a port corresponding to the inner vlan tag of the second node in the MAC address forwarding table.
  • the method further includes:
  • the first node When the first node detects that the communication link where the first node is located is faulty, the first node sends a link failure message to other nodes in the network topology, and passes the saved network topology. In the structure, the communication link corresponding to the blocked port of the first node is deleted, and the network topology of the first node is updated.
  • the method further includes: before the first node deletes, in the saved network topology, the node corresponding to the node identifier is a communication link of the intermediate node, the first node receives the The inner vlan tag carried in the packet is obtained when the packet is received.
  • the first node updates the saved MAC address forwarding table of the first node according to the obtained inner layer vlan tag.
  • the method further includes: after the first node updates the MAC address forwarding table of the first node by modifying a port corresponding to the inner vlan tag of the second node in the MAC address forwarding table, Transmitting, by the first node, a link tracking message to each of the second nodes, so that each of the second nodes feeds back a link tracking response message to the The first node.
  • the first node updates a network topology of the first node according to a communication link of the first node to each of the second nodes.
  • the first node determines whether the second node corresponding to each inner vlan tag in the MAC address forwarding table of the first node is included in the updated network topology:
  • the first node sequentially selects an inner vlan tag in the MAC address forwarding table to determine whether the currently selected inner vlan tag is consistent with the inner vlan tag of the first node.
  • the second node corresponding to the currently selected inner vlan tag is not in the updated network topology. In the structure.
  • a device for updating a MAC address forwarding table of a ring network node comprising: a network topology update module, a judging module, and a MAC address forwarding table update module.
  • the network topology update module is configured to: when the first node in the ring network receives the link failure message that includes the node identifier, delete the node corresponding to the node identifier in the saved network topology.
  • the communication link of the intermediate node updates the network topology of the first node.
  • the determining module is configured to determine whether the second node corresponding to each inner vlan tag in the MAC address forwarding table of the first node is in the updated network topology.
  • the MAC address forwarding table update module is configured to modify an inner vlan tag of the second node in the MAC address forwarding table when one or more of the second nodes are not in the updated network topology. Corresponding port, updating the MAC address forwarding table of the first node.
  • the network topology update module is further configured to:
  • the first node When the first node detects that the communication link where the first node is faulty, sends a link failure message to other nodes in the network topology, and deletes the saved network topology by The blocked port of the first node corresponds to the communication link of the direction, and the network topology of the first node is updated.
  • the device further includes: an obtaining module and a learning module.
  • the acquiring module is configured to receive, at the first node, a message before the node corresponding to the node identifier is a communication link of the intermediate node in the saved network topology in the network topology update module.
  • the inner vlan tag carried in the packet is obtained.
  • the learning module is configured to update the saved MAC address forwarding table of the first node according to the obtained inner layer vlan tag.
  • the device further includes: a sending module, a first determining module, and a second determining module.
  • the sending module is configured to: after the MAC address forwarding table update module updates the port corresponding to the inner vlan tag of the second node in the MAC address forwarding table, and update the MAC address forwarding table of the first node, Transmitting a link tracking message to each of the second nodes, so that each of the second nodes feeds back a link tracking response message to the The first node.
  • the first determining module is configured to: when receiving the link tracking response message fed back by each of the second nodes, determining, according to the link tracking response message, the first node to each of the Two-node communication link.
  • a second determining module configured to update a network topology of the first node according to a communication link of the first node to each of the second nodes.
  • the determining module includes: a first determining unit and a second determining unit.
  • the determining module determines whether the second node corresponding to each inner vlan tag in the MAC address forwarding table of the first node is included in the updated network topology:
  • the first determining unit is configured to sequentially select an inner vlan tag in the MAC address forwarding table to determine whether the currently selected inner vlan tag is consistent with the inner vlan tag of the first node.
  • the second determining unit is configured to determine, if the currently selected inner layer vlan label is inconsistent with the inner layer vlan label of the first node, determining that the second node corresponding to the currently selected inner layer vlan label is not updated. In the network topology.
  • a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement a media access control MAC address forwarding table update method of the ring network node.
  • a method and device for updating a MAC address forwarding table of a ring network node in a method for updating a MAC address forwarding table of a ring network node, a first node in the ring network receives a chain including a node identifier When the road fault message is sent, the first node first updates its network topology, and then determines whether the second node corresponding to each inner VLAN tag in the MAC address forwarding table is in the updated network topology, when one or more When the second node is not in the updated network topology, the first node modifies the port corresponding to the inner vlan tag of the second node in the MAC address forwarding table to update the MAC address forwarding table, thereby avoiding emptying the node.
  • the MAC address forwarding table, and then re-construct the new MAC address forwarding table cumbersome steps, thereby reducing the time to update the MAC address forwarding table, improving the update efficiency.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for updating a MAC address forwarding table of a ring network node according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a ring network according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a second embodiment of a method for updating a MAC address forwarding table of a ring network node according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of functional modules of a first embodiment of a device for updating a MAC address forwarding table of a ring network node according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for updating a MAC address forwarding table of a ring network node according to an embodiment of the present invention.
  • the method for updating the MAC address forwarding table of the ring network node includes steps S10-S30:
  • Step S10 when the first node in the ring network receives the link failure message including the node identifier, the first node deletes the node corresponding to the node identifier as an intermediate node in the saved network topology.
  • the communication link updates the network topology of the first node.
  • a general link includes a corresponding RPL (Ring Protection Link).
  • RPL Ring Protection Link
  • the corresponding RPL link is enabled to switch the service to the RPL link.
  • each node in the ring network updates its own network topology.
  • a single node is taken as an example to describe in detail how each node in the ring network updates its network topology.
  • the first node in the ring network receives an R-APS (SF) (Ring Automatic Protection Switching-Signal Failure) including a node identifier, the first node is currently in the saved network topology.
  • SF R-APS
  • the R-APS (SF) message includes a node identifier of a node that sends the R-APS (SF) message and a fault port corresponding to the node.
  • step S20 the first node determines whether the second node corresponding to each inner vlan tag in the MAC address forwarding table of the first node is in the updated network topology.
  • the first node After the first node updates its network topology, according to the updated network topology structure of the first node, the first node sequentially determines the second corresponding to each inner vlan tag in the MAC address forwarding table. Whether the node is in the network topology of the updated first node. That is, in the network topology of the updated first node, whether there is a communication link of the second node corresponding to the first node to each inner vlan tag.
  • Step S30 when one or more of the second nodes are not in the updated network topology, the first node is configured to modify a port corresponding to an inner vlan tag of the second node in the MAC address forwarding table. And updating the MAC address forwarding table of the first node.
  • the first node modifies the port corresponding to the inner vlan tag of the second node in the MAC address forwarding table to update the MAC address forwarding table of the first node. For example, if the port corresponding to the inner vlan tag of the second node in the MAC address forwarding table is port0, when the first node determines that the second node is not in the updated network topology. The first node modifies the port port0 corresponding to the inner vlan tag of the second node to port1.
  • the method further includes the steps a-c:
  • Step a the first node sends a link tracking message to each of the second nodes, so that each of the second nodes feeds back a link tracking response report when receiving the link tracking message.
  • the text is to the first node.
  • Step b the first node, when receiving the link tracking response message fed back by each of the second nodes, determining, according to the link tracking response message, the first node to each of the second The communication link of the node.
  • Step c The first node updates a network topology of the first node according to a communication link of the first node to each of the second nodes.
  • each node in the ring network reacquires the present The network topology of the node.
  • the method of regaining the network topology of the node in each ring network is described by taking a single node as an example.
  • the first node sends an LTM (Link Trace Message) to each of the second nodes in the ring network, in each of the second nodes.
  • LTM Link Trace Message
  • each of the second nodes feeds back an LTR (Link Trace Reply) to the first node.
  • the first node After receiving the LTR fed back by each of the second nodes, the first node determines a communication link of the first node to each of the second nodes according to the feedback LTR, and the first node according to the The communication link to each of the second nodes updates the network topology of the first node, thereby obtaining a network topology of the first node when the ring network is in a stable protection state.
  • the method before the step S10, the method further includes the step d-e:
  • Step d The first node acquires an inner vlan tag carried by the packet when receiving the packet.
  • Step e the first node updates the saved MAC address forwarding table of the first node according to the obtained inner layer vlan tag.
  • the inner vlan tag corresponding to each node in the ring network is pre-configured, and the inner vlan tag preset by each node is different, and the inner vlan tag can be identified and identified by the inner vlan tag.
  • Corresponding node From the non-ring network port (there are two ports on each ring network that belong to the ring network port called port0, port1, and the packets do not enter the ring network from these two ports, you need to join the inner vlan tag of the ring network node). The inner VLAN tag corresponding to the node is added to the packet of the node in the ring network.
  • the inner VLAN tag carried by the packet is obtained, and then the MAC address forwarding table of the first node is updated according to the obtained inner VLAN tag.
  • the MAC address forwarding table includes the source MAC address of the packet, the outer VLAN tag of the packet, and the port that the packet enters, and the inner VLAN tag carried by the packet. .
  • the nodes in the ring network include an A node, a B node, a C node, a D node, and an E node, and the link 5 between the A node and the E node is the RPL link.
  • the node A is the owner node (owner node) of the RPL link, and is responsible for blocking the port port 0 of the RPL link under normal network operation;
  • the E node is the neighbor node of the RPL link (neighbor)
  • the node is responsible for blocking the port port1 of the RPL link under normal network operation.
  • Each node in the ring network has its own non-ring network port information.
  • the port corresponding to the A node is portA
  • the port corresponding to the B node is portB
  • the port corresponding to the C node is portC
  • the port corresponding to the D node is portD
  • the port corresponding to the E node is portE.
  • the inner vlan tag corresponding to each node in the ring network is pre-configured.
  • the inner vlan tag of the A node is configured as vlanA
  • the inner vlan tag of the B node is vlanB
  • the inner vlan tag of the C node is vlanC
  • the inner vlan tag of the D node is vlanD
  • the inner vlan tag of the E node is vlanE.
  • the outer vlan tag of the packet is vlanX.
  • the source MAC address of the packet sent from the port port B is mac1
  • the destination MAC address sent to the D node is mac2
  • the source MAC address of the packet sent from the port portD is mac2.
  • the destination MAC address sent to the Node B is mac1.
  • the packet entering the D node from the port portD is added with the preset inner layer vlan tag vlanD of the D node; the packet forwarded from the B node to the D node is added with the preset inner vlan tag of the B node. vlanB;
  • the MAC address forwarding table learned by the D node is shown in Table 2 below:
  • each node in the ring network When the ring network is in an idle state, each node in the ring network performs link tracking to obtain The network topology of each node.
  • each node in the ring network sends an LTM to other nodes in the ring network, and the LTR is fed back after the other nodes receive the LTM.
  • each node in the ring network After receiving the LTR fed back by other nodes, each node in the ring network establishes a communication link to other nodes, and records the port direction corresponding to the communication link according to the port that receives the LTR.
  • the network topology of the A node obtained by the A node performing link tracking is: port1 direction: A->B; A->B->C; A->B->C- >D;A->B->C->D->E;
  • the network topology of the Node B obtained by the Node B performing link tracking is: port1 direction: B->C; B->C->D ; B->C->D->E; port0 direction: B->A;
  • the network topology of the C node obtained by the C node performing link tracking is: port1 direction: C->D; C->D ->E;port0 direction: C->B; C->B->A;
  • the network topology of the D node obtained by the D node performing link tracking is: port1 direction: D->E; port0 direction: D ->C;D->C->B;D->C->B->A;
  • the network topology of the E-node obtained by the E-node performing link tracking is: port0 direction: E->D; E -> D->C; E->D
  • the RPL link is opened to implement service switching.
  • the network topology of each node in the ring network changes accordingly. Updating the network topology of each node in the ring network according to the node identifier of the neighboring node of the faulty link 3 and the blocked port corresponding to the neighboring node. As shown in FIG. 2,
  • the neighboring node of the faulty link 3 includes a C node and a D node, according to the node identifier of the C node and the D node, and the blocked port corresponding to the C node and the D node, where The blocked port corresponding to the C node is the port port1, and the blocked port corresponding to the D node is the port port0, and the network topology of each node in the ring network is updated.
  • the C node deletes the communication link in the direction corresponding to the blocked port port1, and the updated network topology of the C node is: port0 direction: C->B; C->B->A
  • the D node deletes the network topology in the direction corresponding to the blocked port port0, and the updated network topology of the D node is: port1 direction: D->E;
  • the A node delete corresponds to the port1
  • the network topology of the node after the C node exists in the direction of the network, and the updated network topology of the node A is: port1 direction: A->B; A->B->C;
  • the network topology of the node after the C node exists in the direction corresponding to the port1, and the updated network topology of the B node is: port0 direction: B->A; port1 direction: B->C;
  • the E node deletes the corresponding port 0
  • the network topology of the node after the D node exists in the direction, and the updated network topology of the E node is
  • each node in the ring network modifies the port in its own MAC address forwarding according to the updated network topology to update the MAC address forwarding table.
  • the B node and the D node are still taken as examples, and the update of the MAC address forwarding table of each node is described in detail.
  • the node corresponding to the inner vlan tag vlanB is the B node, and the port portB corresponding to the inner vlan tag vlanB is not modified; the node corresponding to the inner vlan tag vlanD is the D node.
  • the updated MAC address forwarding table of the Node B is as shown in Table 3 below:
  • the node corresponding to the inner vlan tag vlanD is a D node, and the port portD corresponding to the inner vlan tag vlanD is not modified;
  • the node corresponding to the inner vlan tag vlanB is a Node B, querying whether a communication link of the D node to the Node B exists in the updated network topology of the D node, and discovering that the communication link of the D node to the Node B does not exist Then, the port port 0 corresponding to the inner vlan tag vlanB is modified, and the port port0 is modified to be port port 1.
  • the updated MAC address forwarding table of the D node is as shown in Table 4 below:
  • the ring network After the update of the MAC address forwarding table of each node in the ring network is completed, the ring network is cut. After the switch to the protection state, the service packets in the ring network forward the packets according to the updated MAC address forwarding table.
  • each node in the ring network reacquires the network topology of the node to other nodes.
  • the A node performs link tracking to obtain a new network topology structure: port0 direction: A->E; A-> E->D; port1 direction: A->B; A->B->C;
  • Node B performs link tracking to obtain a new network topology: port0 direction: B->A; B->A-> E; B->A->D; port1 direction: B->C;
  • C node performs link tracking to obtain a new network topology: port0 direction: C->B; C->B->A; C ->B->A->E;C->B->A->E->D;
  • D node performs link tracking to obtain a new network topology: port1 direction: D->E; D-> E->A;D->E->A->B;D->E->A->B->C
  • the link in the ring network fails, when the first node in the ring network receives the link fault message including the node identifier, the first node first updates its network topology structure, and then determines its Whether the second node corresponding to each inner vlan tag in the MAC address forwarding table is in the updated network topology, and the first node modifies the MAC when the second node is not in the updated network topology.
  • the port corresponding to the inner vlan tag of the second node in the address forwarding table is used to update the MAC address forwarding table, thereby avoiding the cumbersome steps of clearing the MAC address forwarding table of the node and then reconstructing the new MAC address forwarding table, thereby reducing the update.
  • the time of the MAC address forwarding table improves the update efficiency. At the same time, the probability of storms is reduced because the time for updating the MAC address forwarding table is reduced.
  • a second embodiment of the method for updating the MAC address forwarding table of the ring network node of the present invention is provided based on the first embodiment.
  • the MAC address forwarding table of the ring network node is updated.
  • the method also includes steps S40-S50:
  • Step S40 When the first node detects that the communication link where the first node is faulty, the first node sends a link failure message to other nodes in the network topology.
  • step S50 the first node deletes the communication link in the corresponding direction of the blocked port of the first node in the saved network topology to update the network topology of the first node.
  • the first node sends an R-APS (SF) message to other nodes in the network topology of the first node.
  • the R-APS (SF) message includes a node identifier of the first node and a blocked port corresponding to the first node.
  • the other node updates its network topology when receiving the R-APS (SF) message sent by the first node. Deleting, by the first node, the communication link in the corresponding direction of the blocked port of the first node, in the network topology of the first node that is currently saved, to the network topology currently saved by the first node The structure is updated. Then, updating the MAC address forwarding table of the first node according to the updated network topology of the first node.
  • each node in the ring network is Update their respective network topologies again.
  • the first node is an owner node or a neighbor node of the RPL link of the ring network
  • the first node sends the node identifier and the blocked port information.
  • R-APS NR-RB
  • R-AMP Ring Automatic Protection Switching
  • the first node receives the R-APS (NR) sent by the owner node or the neighbor node of the RPL link.
  • the first node deletes the communication link of the owner node or the neighbor node as an intermediate node in the currently saved network topology to update the network topology of the first node.
  • the first node After the first node updates its network topology, according to the updated network topology structure of the first node, the first node updates the first node according to the method described in the first embodiment.
  • MAC address forwarding table After the first node updates its network topology, according to the updated network topology structure of the first node, the first node updates the first node according to the method described in the first embodiment.
  • the first node When the ring network is in an idle state, the first node sends an LTM, and performs link tracking to regain the network topology of the first node when the ring network is in an idle state.
  • the step S20 includes the step f-g:
  • Step f The first node sequentially selects an inner vlan tag in the MAC address forwarding table to determine whether the currently selected inner vlan tag is consistent with the inner vlan tag of the first node.
  • Step g if the currently selected inner vlan tag and the inner vlan tag of the first node If the two nodes are inconsistent, it is determined that the second node corresponding to the currently selected inner vlan tag is not in the updated network topology.
  • the first node After the first node updates its network topology, the first node sequentially selects each inner vlan tag in the MAC address forwarding table to determine the currently selected inner vlan tag and the first node. Whether the layer vlan labels are consistent. If the currently selected inner vlan tag is consistent with the inner vlan tag of the first node, no response processing is performed. If the currently selected inner vlan tag is inconsistent with the inner vlan tag of the first node, it is determined again whether the second node corresponding to the currently selected inner vlan tag is in the updated network topology of the first node. In the network topology of the first node that is updated, whether there is a communication link of the second node corresponding to the currently selected inner vlan tag.
  • the first node when the faulty link recovers in the ring network, the first node updates the network topology of the first node again, and then according to the updated network topology structure of the first node.
  • the MAC address forwarding table of the first node is updated again, so that it is not necessary to reconstruct a new MAC address forwarding table when the link is restored, thereby reducing the time for updating the MAC address forwarding table and improving the update efficiency.
  • FIG. 4 is a schematic diagram of a functional module of a device for updating a MAC address forwarding table of a ring network node according to an embodiment of the present invention. .
  • the MAC address forwarding table update device of the ring network node includes: a network topology update module 10, a determination module 20, and a MAC address forwarding table update module 30.
  • the network topology update module 10 is configured to: when the first node in the ring network receives the link failure message including the node identifier, delete the node corresponding to the node identifier in the saved network topology as the middle The communication link of the node updates the network topology of the first node.
  • a general link includes a corresponding RPL (Ring Protection Link).
  • RPL Ring Protection Link
  • the corresponding RPL link is enabled to switch the service to the RPL link.
  • each node in the ring network updates its own network topology.
  • a single node is taken as an example to describe in detail how each node in the ring network updates its network topology.
  • the network topology update module 10 deletes, in the network topology currently saved by the first node, a node corresponding to the node identifier as a communication link of the intermediate node, to update the first The network topology of the node.
  • the R-APS (SF) message includes a node identifier of a node that sends the R-APS (SF) message and a blocked port corresponding to the node.
  • the determining module 20 is configured to determine whether the second node corresponding to each inner vlan tag in the MAC address forwarding table of the first node is in the updated network topology.
  • the determining module 20 sequentially determines each of the MAC address forwarding tables of the first node according to the updated network topology structure of the first node. Whether the second node corresponding to the inner vlan tag is in the updated network topology of the first node, that is, whether the first node exists in the updated network topology of the first node The communication link to the second node corresponding to each inner vlan tag.
  • the MAC address forwarding table update module 30 is configured to: when one or more of the second nodes are not in the updated network topology, modify an inner vlan tag corresponding to the second node in the MAC address forwarding table.
  • the port updates the MAC address forwarding table of the first node.
  • the MAC address forwarding table update module 30 modifies the port corresponding to the inner vlan tag of the second node in the MAC address forwarding table of the first node, to the MAC address of the first node.
  • the forwarding table is updated. For example, if the port corresponding to the inner vlan tag of the second node in the MAC address forwarding table of the first node is port0, the determining module 20 determines that the second node is not in the updated network topology. In the middle, the MAC address forwarding table update module 30 modifies the port port0 corresponding to the inner vlan tag of the second node to port1.
  • the device for updating the MAC address forwarding table of the ring network node further includes: a sending module, a first determining module, and a second determining module.
  • a sending module configured to: after the MAC address forwarding table update module updates a port corresponding to an inner vlan tag of the second node in the MAC address forwarding table, and update a MAC address forwarding table of the first node, the sending chain Tracking messages to each of the second nodes, so that each of the The second node feeds back the link tracking response message to the first node when receiving the link tracking message.
  • a first determining module configured to determine, according to the link tracking response message, the first node to each of the second nodes when receiving a link tracking response message fed back by each of the second nodes Communication link.
  • a second determining module configured to update a network topology of the first node according to a communication link of the first node to each of the second nodes.
  • each node in the ring network reacquires the network topology of the node.
  • the method of regaining the network topology of the node in each ring network is described by taking a single node as an example.
  • the sending module sends an LTM (Link Trace Message) to each of the second nodes in the ring network, and receives the second node at each of the second nodes.
  • LTM Link Trace Message
  • each of the second nodes feeds back an LTR (Link Trace Reply) to the first node.
  • the first determining module determines, according to the feedback LTR, the communication link of the first node to each of the second nodes, and the second determining The module updates the network topology of the first node according to the communication link of the first node to each of the second nodes, thereby obtaining a network of the first node in a stable protection state of the ring network. Topology.
  • the device for updating the MAC address forwarding table of the ring network node further includes: an obtaining module and a learning module.
  • An obtaining module configured to: when the network topology update module deletes the communication link of the node corresponding to the node identifier in the saved network topology, when the first node receives the packet The inner vlan tag carried in the packet is obtained.
  • the learning module is configured to update the saved MAC address forwarding table of the first node according to the obtained inner layer vlan tag.
  • the inner vlan tag corresponding to each node in the ring network is pre-configured, and the inner vlan tag preset by each node is different, and the inner vlan tag can be identified and identified by the inner vlan tag.
  • Corresponding node From a non-ring network port (each ring has two ports belonging to the ring network port called Port0, port1. If the packet does not enter the ring network from the two ports, you need to add the inner vlan tag of the ring node. Add the inner vlan tag corresponding to the node.
  • the acquiring module acquires the inner vlan tag carried by the packet, and then the learning module updates the MAC address of the first node according to the inner vlan tag acquired by the obtaining module.
  • Forwarding table includes the source MAC address of the packet, the outer VLAN tag of the packet, and the port that the packet enters, and the inner VLAN tag carried by the packet. .
  • the network topology update module 10 updates the network topology of the first node when the first node in the ring network receives the link failure message including the node identifier.
  • the structure, and then the determining module 20 determines whether the second node corresponding to each inner vlan tag in the MAC address forwarding table of the first node is in the updated network topology, and the second node is not updated.
  • the MAC address forwarding table update module 30 modifies the port corresponding to the inner vlan tag of the second node in the MAC address forwarding table of the first node, so as to update the MAC address forwarding table of the first node, thereby avoiding emptying.
  • the node's MAC address forwarding table and then re-construct the new MAC address forwarding table cumbersome steps, thereby reducing the time to update the MAC address forwarding table, improving the update efficiency.
  • the probability of storms is reduced because the time for updating the MAC address forwarding table is reduced.
  • the second embodiment of the device for updating the MAC address forwarding table of the ring network node according to the embodiment of the present invention is provided based on the first embodiment.
  • the network topology update module 10 is further configured to:
  • the first node When the first node detects that the communication link where the first node is faulty, sends a link failure message to other nodes in the network topology, and deletes the saved network topology by The blocked port of the first node corresponds to the communication link of the direction, and the network topology of the first node is updated.
  • the network topology update module 10 sends the R-APS (SF).
  • the message is to other nodes in the network topology of the first node.
  • the R-APS (SF) message includes a node identifier of the first node and a blocked port corresponding to the first node.
  • the other node updates its network topology when receiving the R-APS (SF) message sent by the first node.
  • the network topology update module 10 deletes the communication link in the corresponding direction of the blocked port of the first node, so as to update the network topology currently saved by the first node.
  • the MAC address forwarding table update module 30 updates the MAC address forwarding table of the first node according to the updated network topology structure of the first node.
  • each node in the ring network is Update their respective network topologies again.
  • the network topology update module 10 sends the node identifier and the blocked port information, if the first node is the owner node or the neighbor node of the RPL link of the ring network.
  • the R-APS (NR-RB) message to the other node in the network topology of the first node, the network topology update module 10 deletes the communication link corresponding to the blocked port of the first node, to The network topology of the first node is updated.
  • the first node receives the R-APS (NR) sent by the owner node or the neighbor node of the RPL link.
  • the network topology update module 10 deletes the communication link of the owner node or the neighbor node as an intermediate node in the network topology currently saved by the first node, to update the first The network topology of the node.
  • the MAC address forwarding table update module 30 updates the MAC address forwarding table of the first node according to the updated network topology structure of the first node. .
  • the sending module When the ring network is in an idle state, the sending module sends an LTM to perform link tracking to regain the network topology of the first node when the ring network is in an idle state.
  • the determining module 20 includes: a first determining unit and a second determining unit.
  • the first determining unit is configured to sequentially select the inner vlan tag in the MAC address forwarding table to determine whether the currently selected inner vlan tag is consistent with the inner vlan tag of the first node.
  • the second determining unit is configured to determine that the second node corresponding to the currently selected inner layer vlan tag is not in the updated network topology, if the currently selected inner layer vlan tag is inconsistent with the inner layer vlan tag of the first node. In the structure.
  • the first determining unit sequentially selects each inner vlan tag in the MAC address forwarding table of the first node to determine the currently selected inner vlan tag. Whether it is consistent with the inner vlan tag of the first node. If the currently selected inner vlan tag is consistent with the inner vlan tag of the first node, no response processing is performed. If the currently selected inner vlan tag is inconsistent with the inner vlan tag of the first node, the second determining unit determines again whether the second node corresponding to the currently selected inner vlan tag is the updated first node. In the network topology, that is, in the updated network topology of the first node, whether there is a communication link of the first node to the second node corresponding to the currently selected inner layer vlan tag.
  • the network topology update module 10 updates the network topology of the first node again, and then the MAC address forwarding table update module 30 is based on the updated The network topology of the first node is updated, and the MAC address forwarding table of the first node is updated again, so that it is not necessary to reconstruct a new MAC address forwarding table when the link is restored, thereby reducing the time for updating the MAC address forwarding table. , improve the update efficiency.
  • a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement a media access control MAC address forwarding table update method of the ring network node.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the first node in the ring network When the first node in the ring network receives the link fault message including the node identifier, the first node first updates its network topology structure, and then determines each inner layer vlan tag in the MAC address forwarding table. Whether the corresponding second node is in the updated network topology, when the one or more second nodes are not in the updated network topology, the first node modifies the second in the MAC address forwarding table
  • the port corresponding to the inner vlan tag of the node is used to update the MAC address forwarding table, thereby avoiding the cumbersome steps of clearing the MAC address forwarding table of the node and then reconstructing the new MAC address forwarding table, thereby reducing the time for updating the MAC address forwarding table. Increased update efficiency.

Landscapes

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

Abstract

本申请公开了一种环网节点的MAC地址转发表更新方法和装置,该方法包括:在环网内的第一节点接收到包含节点标识符的链路故障消息时,第一节点通过在保存的网络拓扑结构中删除以所述节点标识符对应的节点为中间节点的通信链路,更新第一节点的网络拓扑结构;第一节点判断所述第一节点的MAC地址转发表中每个内层vlan标签对应的第二节点是否均在更新后的所述网络拓扑结构中;当一个或多个所述第二节点不在更新后的所述网络拓扑结构中时,第一节点通过修改所述MAC地址转发表中第二节点的内层vlan标签对应的端口,更新第一节点的MAC地址转发表。

Description

一种环网节点的MAC地址转发表更新方法及装置 技术领域
本申请涉及但不限于网络通信技术领域,尤其涉及环网节点的MAC地址转发表更新方法及装置。
背景技术
环网是网络中常用的技术,采用环网可以实现链路备份,提高网络可靠性。基于环网保护协议,例如ERPS(Ethernet Ring Protection Switching,以太网多环保护技术)协议,在环网内的链路出现故障时,开启RPL(Ring Protection Link,环路保护链路),以实现将业务切换至RPL链路上,从而减少报文数据的丢失。环网的链路切换后,需要更新环网内节点的MAC(Media Access Control,介质访问控制)地址转发表,相关技术中一般是通过清空节点原来的MAC地址转发表,重新构建新的MAC地址转发表。由于重新构建新的MAC地址转发表,使得更新节点的MAC地址转发表的时间较长,更新效率低。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提出了一种环网节点的MAC地址转发表更新方法及装置,能够解决相关技术中更新环网内节点的MAC地址转发表的时间长、效率低的技术问题。
一种环网节点的MAC地址转发表更新方法,所述方法包括:
在环网内的第一节点接收到包含节点标识符的链路故障消息时,所述第一节点通过在保存的网络拓扑结构中删除以所述节点标识符对应的节点为中间节点的通信链路,更新所述第一节点的网络拓扑结构。
所述第一节点判断所述第一节点的MAC地址转发表中每个内层虚拟局域网vlan标签对应的第二节点是否均在更新后的所述网络拓扑结构中。
当一个或多个所述第二节点不在更新后的所述网络拓扑结构中时,所述 第一节点通过修改所述MAC地址转发表中第二节点的内层vlan标签对应的端口,更新所述第一节点的MAC地址转发表。
可选地,所述方法还包括:
在所述第一节点检测到所述第一节点所在的通信链路出现故障时,所述第一节点发送链路故障消息至所述网络拓扑结构中的其它节点,并通过在保存的网络拓扑结构中删除所述第一节点的阻塞端口对应方向的通信链路,更新所述第一节点的网络拓扑结构。
可选地,所述方法还包括:在所述第一节点在保存的网络拓扑结构中,删除所述节点标识符对应的节点为中间节点的通信链路之前,所述第一节点在接收到报文时,获取所述报文携带的内层vlan标签。
所述第一节点根据获取的所述内层vlan标签,更新所述第一节点的保存的MAC地址转发表。
可选地,所述方法还包括:在所述第一节点通过修改所述MAC地址转发表中第二节点的内层vlan标签对应的端口,更新所述第一节点的MAC地址转发表之后,所述第一节点发送链路追踪报文至每个所述第二节点,令每个所述第二节点在在接收到所述链路追踪报文时反馈链路追踪响应报文至所述第一节点。
所述第一节点在接收到每个所述第二节点反馈的链路追踪响应报文时,根据所述链路追踪响应报文确定所述第一节点至每个所述第二节点的通信链路。
所述第一节点根据所述第一节点至每个所述第二节点的通信链路,更新所述第一节点的网络拓扑结构。
可选地,所述第一节点判断所述第一节点的MAC地址转发表中每个内层vlan标签对应的第二节点是否均在更新后的所述网络拓扑结构中包括:
所述第一节点依次选中所述MAC地址转发表中的内层vlan标签,判断当前选中的内层vlan标签与所述第一节点的内层vlan标签是否一致。
如果当前选中的内层vlan标签与所述第一节点的内层vlan标签不一致,则判定当前选中的内层vlan标签对应的第二节点不在更新后的所述网络拓扑 结构中。
一种环网节点的MAC地址转发表更新装置,所述装置包括:网络拓扑结构更新模块、判断模块和MAC地址转发表更新模块。
所述网络拓扑结构更新模块,设置为在环网内的第一节点接收到包含节点标识符的链路故障消息时,通过在保存的网络拓扑结构中删除以所述节点标识符对应的节点为中间节点的通信链路,更新所述第一节点的网络拓扑结构。
所述判断模块,设置为判断所述第一节点的MAC地址转发表中每个内层vlan标签对应的第二节点是否均在更新后的所述网络拓扑结构中。
所述MAC地址转发表更新模块,设置为当一个或多个所述第二节点不在更新后的所述网络拓扑结构中时,通过修改所述MAC地址转发表中第二节点的内层vlan标签对应的端口,更新所述第一节点的MAC地址转发表。
可选地,所述网络拓扑结构更新模块还设置为:
在所述第一节点检测到所述第一节点所在的通信链路出现故障时,发送链路故障消息至所述网络拓扑结构中的其它节点,并通过在保存的网络拓扑结构中删除所述第一节点的阻塞端口对应方向的通信链路,更新所述第一节点的网络拓扑结构。
可选地,所述装置还包括:获取模块和学习模块。
所述获取模块,设置为在所述网络拓扑结构更新模块在保存的网络拓扑结构中,删除所述节点标识符对应的节点为中间节点的通信链路之前,在所述第一节点接收到报文时,获取所述报文携带的内层vlan标签。
所述学习模块,设置为根据获取的所述内层vlan标签,更新所述第一节点的保存的MAC地址转发表。
可选地,所述装置还包括:发送模块、第一确定模块和第二确定模块。
所述发送模块,设置为在所述MAC地址转发表更新模块通过修改所述MAC地址转发表中第二节点的内层vlan标签对应的端口,更新所述第一节点的MAC地址转发表之后,发送链路追踪报文至每个所述第二节点,令每个所述第二节点在在接收到所述链路追踪报文时反馈链路追踪响应报文至所述 第一节点。
所述第一确定模块,设置为在接收到每个所述第二节点反馈的链路追踪响应报文时,根据所述链路追踪响应报文确定所述第一节点至每个所述第二节点的通信链路。
第二确定模块,设置为根据所述第一节点至每个所述第二节点的通信链路,更新所述第一节点的网络拓扑结构。
可选地,所述判断模块包括:第一判断单元和第二判断单元。
所述判断模块判断所述第一节点的MAC地址转发表中每个内层vlan标签对应的第二节点是否均在更新后的所述网络拓扑结构中包括:
所述第一判断单元,设置为依次选中所述MAC地址转发表中的内层vlan标签,判断当前选中的内层vlan标签与所述第一节点的内层vlan标签是否一致。
所述第二判断单元,设置为如果当前选中的内层vlan标签与所述第一节点的内层vlan标签不一致,则判定当前选中的内层vlan标签对应的第二节点不在更新后的所述网络拓扑结构中。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的环网节点的介质访问控制MAC地址转发表更新方法。
本发明实施例提出的环网节点的MAC地址转发表更新方法及装置,在所述环网节点的MAC地址转发表更新方法中,在环网内的第一节点接收到包含节点标识符的链路故障消息时,第一节点首先更新其网络拓扑结构,然后判断其MAC地址转发表中每个内层vlan标签对应的第二节点是否在更新后的所述网络拓扑结构中,当一个或多个第二节点不在更新后的所述网络拓扑结构中时,第一节点修改其MAC地址转发表中该第二节点的内层vlan标签对应的端口,以更新MAC地址转发表,避免了清空节点的MAC地址转发表,然后重新构建新MAC地址转发表的繁琐步骤,从而减少了更新MAC地址转发表的时间,提高了更新效率。
附图概述
图1为本发明实施例环网节点的MAC地址转发表更新方法第一实施例的流程示意图;
图2为本发明实施例一种环网的示意图;
图3为本发明实施例环网节点的MAC地址转发表更新方法第二实施例的流程示意图;
图4为本发明实施例环网节点的MAC地址转发表更新装置第一实施例的功能模块示意图。
本发明的实施方式
下文中将结合附图对本发明的实施例进行详细说明需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
本发明实施例提供了一种环网节点的MAC地址转发表更新方法,参照图1,图1为本发明实施例环网节点的MAC地址转发表更新方法第一实施例的流程示意图。
在本实施例中,所述环网节点的MAC地址转发表更新方法包括步骤S10-S30:
步骤S10,在环网内的第一节点接收到包含节点标识符的链路故障消息时,所述第一节点通过在保存的网络拓扑结构中删除以所述节点标识符对应的节点为中间节点的通信链路,更新所述第一节点的网络拓扑结构。
在环网内,一般链路包括对应的RPL(Ring Protection Link,环路保护链路)。在链路发生故障时,则开启对应的RPL链路,以实现将业务切换至所述RPL链路上。在环网内链路切换时,所述环网内每个节点更新各自的网络拓扑结构。在本实施例中,以单个节点为例,对所述环网内每个节点更新其网络拓扑结构的方式进行详细说明。当在环网内的第一节点接收到包含节点标识符的R-APS(SF)(Ring Automatic Protection Switching-Signal Failure,链路故障消息)时,所述第一节点在当前保存的网络拓扑结构中,删除所述节点标识符对应的节点为中间节点的通信链路,以更新所述第一节点的网络拓扑结构。可选地,所述R-APS(SF)消息中包含发送所述R-APS(SF)消息的节点的节点标识符和该节点对应的故障端口。
步骤S20,所述第一节点判断所述第一节点的MAC地址转发表中每个内层vlan标签对应的第二节点是否均在更新后的所述网络拓扑结构中。
所述第一节点在更新其网络拓扑结构后,根据更新后的所述第一节点的网络拓扑结构,所述第一节点依次判断其MAC地址转发表中每个内层vlan标签对应的第二节点是否在更新后的所述第一节点的网络拓扑结构中。也即查询在更新后的所述第一节点的网络拓扑结构中,是否存在所述第一节点至每个内层vlan标签对应的第二节点的通信链路。
步骤S30,当一个或多个所述第二节点不在更新后的所述网络拓扑结构中时,所述第一节点通过修改所述MAC地址转发表中第二节点的内层vlan标签对应的端口,更新所述第一节点的MAC地址转发表。
当所述第一节点判断有第二节点不在更新后的所述网络拓扑结构中时,也即在更新后的所述第一节点的网络拓扑结构中,不存在所述第一节点至所述第二节点的通信链路时,所述第一节点修改其MAC地址转发表中所述第二节点的内层vlan标签对应的端口,以对所述第一节点的MAC地址转发表进行更新。例如,如果在所述MAC地址转发表中所述第二节点的内层vlan标签对应的端口为port0,当所述第一节点判断所述第二节点不在更新后的所述网络拓扑结构中时,所述第一节点将所述第二节点的内层vlan标签对应的端口port0修改为port1。
可选地,在本实施例中,所述步骤S30之后,还包括步骤a-c:
步骤a,所述第一节点发送链路追踪报文至每个所述第二节点,以供每个所述第二节点在在接收到所述链路追踪报文时反馈链路追踪响应报文至所述第一节点。
步骤b,所述第一节点在接收到每个所述第二节点反馈的链路追踪响应报文时,根据所述链路追踪响应报文确定所述第一节点至每个所述第二节点的通信链路。
步骤c,所述第一节点根据所述第一节点至每个所述第二节点的通信链路,更新所述第一节点的网络拓扑结构。
当所述环网处于稳定的保护状态后,所述环网内的每个节点重新获取本 节点的网络拓扑结构。仍以单个节点为例,对所述环网内每个节点重新获取本节点的网络拓扑结构的方式进行说明。当所述环网处于稳定的保护状态后,所述第一节点发送LTM(Link Trace Message,链路追踪报文)至环网内的每个所述第二节点,在每个所述第二节点接收到所述第一节点发送的所述LTM后,每个所述第二节点反馈LTR(Link Trace Reply,链路追踪响应报文)至所述第一节点。所述第一节点在接收到每个所述第二节点反馈的LTR后,根据反馈的LTR确定所述第一节点至每个所述第二节点的通信链路,所述第一节点根据其至每个所述第二节点的通信链路更新所述第一节点的网络拓扑结构,从而获得在所述环网处于稳定的保护状态下所述第一节点的网络拓扑结构。
可选地,在本实施例中,所述步骤S10之前,还包括步骤d-e:
步骤d,所述第一节点在接收到报文时,获取所述报文携带的内层vlan标签。
步骤e,所述第一节点根据获取的所述内层vlan标签,更新所述第一节点的保存的MAC地址转发表。
在本实施例中,预先配置所述环网内每个节点对应的内层vlan标签,每个节点预置的内层vlan标签不同,通过内层vlan标签即可识别与所述内层vlan标签对应的节点。从非环网端口(每个环网有两个端口属于环网端口称为port0,port1,报文不从这两个端口进入环网就需要加入该环网节点的内层vlan标签)进入所述环网内节点的报文添加该节点对应的内层vlan标签。当所述第一节点接收到报文时,获取所述报文携带的内层vlan标签,然后根据获取的所述内层vlan标签,更新所述第一节点的MAC地址转发表。其中,所述MAC地址转发表除了包括所述报文的源MAC地址、所述报文的外层vlan标签、所述报文进入的端口外,还包括所述报文携带的内层vlan标签。
下面以图2所示的环网为例,对本发明实施例的环网节点的MAC地址转发表更新方法进行详细说明。所述环网内节点包括A节点、B节点、C节点、D节点、E节点,A节点与E节点之间的链路5为所述RPL链路。A节点为所述RPL链路的owner节点(拥有节点),负责在网络正常运行情况下,阻塞所述RPL链路的端口port0;E节点为所述RPL链路的neighbor节点(邻 居节点),负责在网络正常运行情况下,阻塞所述RPL链路的端口port1。所述环网内的每个节点对应有各自的非环网端口信息,例如,所述A节点对应的端口为portA,所述B节点对应的端口为portB,所述C节点对应的端口为portC,所述D节点对应的端口为portD,所述E节点对应的端口为portE。并且,在本实施例中,预先配置所述环网内每个节点对应的内层vlan标签,例如,配置所述A节点的内层vlan标签为vlanA,所述B节点的内层vlan标签为vlanB,所述C节点的内层vlan标签为vlanC,所述D节点的内层vlan标签为vlanD,所述E节点的内层vlan标签为vlanE。
以所述环网内B节点与D节点上的业务为例,当所述B节点与D节点互发单播报文,假设当前业务为vlanX,则报文的外层vlan标签为vlanX。设定从所述端口portB上发的报文的源MAC地址为mac1,发送至所述D节点对应的目的MAC地址为mac2;从所述端口portD上发的报文的源MAC地址为mac2,发送至所述B节点对应的目的MAC地址为mac1。从所述端口portB进入B节点的报文添加B节点的预置内层vlan标签vlanB;从所述D节点转发至所述B节点的报文添加D节点的预置内层vlan标签vlanD;B节点学习的MAC地址转发表如下表1所示:
表1
Index 源MAC地址 外层vlan标签 内层vlan标签 端口
1 mac1 vlanX vlanB portB
2 mac2 vlanX vlanD port1
同理,从所述端口portD进入D节点的报文添加D节点的预置内层vlan标签vlanD;从所述B节点转发至所述D节点的报文添加B节点的预置内层vlan标签vlanB;D节点学习的MAC地址转发表如下表2所示:
表2
Index 源MAC地址 外层vlan标签 内层vlan标签 端口
1 mac2 vlanX vlanD portD
2 mac1 vlanX vlanB port0
当所述环网处于空闲状态时,所述环网内的每个节点执行链路追踪获得 每个节点的网络拓扑结构。可选地,所述环网内每个节点发送LTM至所述环网内的其他节点,在其他节点接收到所述LTM后反馈LTR。所述环网内每个节点在接收到其他节点反馈的LTR后,建立到达其他节点的通信链路,同时,根据接收到LTR的端口记录所述通信链路对应的端口方向。例如,在本实施例中,所述A节点执行链路追踪获得的A节点的网络拓扑结构为:port1方向:A->B;A->B->C;A->B->C->D;A->B->C->D->E;所述B节点执行链路追踪获得的B节点的网络拓扑结构为:port1方向:B->C;B->C->D;B->C->D->E;port0方向:B->A;所述C节点执行链路追踪获得的C节点的网络拓扑结构为:port1方向:C->D;C->D->E;port0方向:C->B;C->B->A;所述D节点执行链路追踪获得的D节点的网络拓扑结构为:port1方向:D->E;port0方向:D->C;D->C->B;D->C->B->A;所述E节点执行链路追踪获得的E节点的网络拓扑结构为:port0方向:E->D;E->D->C;E->D->C->B;E->D->C->B->A。
当所述环网内的链路发生故障时,例如,如图2所示,所述C节点与D节点之间的链路3发生故障时,开启所述RPL链路,以实现将业务切换至所述RPL链路上。在环网内链路切换至所述RPL链路后,所述环网内每个节点的网络拓扑结构也相应发生改变。根据所述故障链路3的邻节点的节点标识符和所述邻节点对应的阻塞端口,更新所述环网内每个节点的网络拓扑结构。如图2所示,所述故障链路3的邻节点包括C节点和D节点,根据所述C节点与D节点的节点标识符和所述C节点和D节点对应的阻塞端口,其中,所述C节点对应的阻塞端口为端口port1,所述D节点对应的阻塞端口为端口port0,更新所述环网内每个节点的网络拓扑结构。可选地,所述C节点删除所述阻塞端口port1对应的方向的通信链路,更新后的所述C节点的网络拓扑结构为:port0方向:C->B;C->B->A;所述D节点删除所述阻塞端口port0对应的方向的网络拓扑结构,更新后的所述D节点的网络拓扑结构为:port1方向:D->E;所述A节点删除在所述port1对应的方向上存在所述C节点之后的节点的网络拓扑结构,更新后的所述A节点的网络拓扑结构为:port1方向:A->B;A->B->C;所述B节点删除在所述port1对应的方向上存在所述C节点之后的节点的网络拓扑结构,更新后的所述B节点的网络拓扑结构为:port0方向:B->A;port1方向:B->C;所述E节点删除在所述port0对应的 方向上存在所述D节点之后的节点的网络拓扑结构,更新后的所述E节点的网络拓扑结构为:port0方向:E->D。
之后,所述环网内每个节点根据更新后的网络拓扑结构,修改自身的MAC地址转发中的端口,以对MAC地址转发表进行更新。依然以B节点和D节点为例,对每个节点的MAC地址转发表的更新进行详细说明。在所述B节点的MAC地址转发表中,内层vlan标签vlanB对应的节点为B节点,不修改所述内层vlan标签vlanB对应的端口portB;内层vlan标签vlanD对应的节点为D节点,查询在更新后的所述B节点的网络拓扑结构中是否存在所述B节点至所述D节点的通信链路,发现已经不存在所述B节点至所述D节点的通信链路,则修改所述内层vlan标签vlanD对应的端口port1,将所述端口port1修改为端口port0。更新后的所述B节点的MAC地址转发表如下表3所示:
表3
Index 源MAC地址 外层vlan标签 内层vlan标签 端口
1 mac1 vlanX vlanB portB
2 mac2 vlanX vlanD port0
同理,在所述D节点的MAC地址转发表中,内层vlan标签vlanD对应的节点为D节点,不修改所述内层vlan标签vlanD对应的端口portD;内层vlan标签vlanB对应的节点为B节点,查询在更新后的所述D节点的网络拓扑结构中是否存在所述D节点至所述B节点的通信链路,发现已经不存在所述D节点至所述B节点的通信链路,则修改所述内层vlan标签vlanB对应的端口port0,将所述端口port0修改为端口port1。更新后的所述D节点的MAC地址转发表如下表4所示:
表4
Index 源MAC地址 外层vlan标签 内层vlan标签 端口
1 mac2 vlanX vlanD portD
2 mac1 vlanX vlanB port1
完成了所述环网内每个节点的MAC地址转发表的更新后,所述环网切 换到保护状态,环网内的业务报文根据更新后的MAC地址转发表对报文进行转发。
当所述环网处于稳定的保护状态后,所述环网内的每个节点重新获取本节点到达其他节点的网络拓扑结构。可选地,依照所述环网处于空闲状态时获得每个节点的网络拓扑结构的方法,A节点执行链路追踪获取到新的网络拓扑结构为:port0方向:A->E;A->E->D;port1方向:A->B;A->B->C;B节点执行链路追踪获取到新的网络拓扑结构为:port0方向:B->A;B->A->E;B->A->D;port1方向:B->C;C节点执行链路追踪获取到新的网络拓扑结构为:port0方向:C->B;C->B->A;C->B->A->E;C->B->A->E->D;D节点执行链路追踪获取到新的网络拓扑结构为:port1方向:D->E;D->E->A;D->E->A->B;D->E->A->B->C;E节点执行链路追踪获取到新的网络拓扑结构为:port1方向:E->A;E->A->B;E->A->B->C;port0方向:E->D。
本实施例提供的方案,当环网内链路发生故障,在环网内的第一节点接收到包含节点标识符的链路故障消息时,第一节点首先更新其网络拓扑结构,然后判断其MAC地址转发表中各个内层vlan标签对应的第二节点是否在更新后的所述网络拓扑结构中,在有第二节点不在更新后的所述网络拓扑结构中时,第一节点修改其MAC地址转发表中该第二节点的内层vlan标签对应的端口,以更新MAC地址转发表,避免了清空节点的MAC地址转发表,然后重新构建新MAC地址转发表的繁琐步骤,从而减少了更新MAC地址转发表的时间,提高了更新效率。同时,由于减少了更新MAC地址转发表的时间,降低了报文发生泛洪,从而引发风暴的概率。
可选地,如图3所示,基于第一实施例提出本发明环网节点的MAC地址转发表更新方法第二实施例,在本实施例中,所述环网节点的MAC地址转发表更新方法还包括步骤S40-S50:
步骤S40,在所述第一节点检测到其所在的通信链路出现故障时,所述第一节点发送链路故障消息至所述网络拓扑结构中的其它节点。
步骤S50,所述第一节点在保存的网络拓扑结构中,删除所述第一节点的阻塞端口对应方向的通信链路,以更新所述第一节点的网络拓扑结构。
在本实施例中,如果所述第一节点所在的通信链路出现故障,当所述第 一节点检测到所述通信链路出现故障时,所述第一节点发送R-APS(SF)消息至所述第一节点的网络拓扑结构中的其它节点。其中,所述R-APS(SF)消息中包含所述第一节点的节点标识符以及所述第一节点对应的阻塞端口。其他节点在接收到所述第一节点发送的所述R-APS(SF)消息时,更新其网络拓扑结构。所述第一节点在当前保存的所述第一节点的网络拓扑结构中,删除所述第一节点的阻塞端口对应方向的通信链路,以对所述第一节点当前保存的所述网络拓扑结构进行更新。然后,根据更新后的所述第一节点的网络拓扑结构,对所述第一节点的MAC地址转发表进行更新。
可选地,在本实施例中,当所述环网内故障链路恢复时,关闭所述RPL链路,以实现将业务切换至故障恢复的链路上,所述环网内每个节点再次更新各自的网络拓扑结构。仍以所述环网内单个节点为例,如果所述第一节点为所述环网的RPL链路的owner节点或neighbor节点时,所述第一节点发送携带了节点标识和阻塞端口信息的R-APS(NR-RB)(Ring Automatic Protection Switching,链路恢复消息)至所述第一节点的网络拓扑结构中的其它节点,并删除所述第一节点的阻塞端口对应方向的通信链路,以对所述第一节点的网络拓扑结构进行更新。如果所述第一节点不为所述环网的RPL链路的owner节点与neighbor节点时,所述第一节点在接收到所述RPL链路的owner节点或neighbor节点发送的R-APS(NR-RB)消息时,所述第一节点在当前保存的网络拓扑结构中,删除所述owner节点或所述neighbor节点为中间节点的通信链路,以更新所述第一节点的网络拓扑结构。
所述第一节点在更新其网络拓扑结构后,根据更新后的所述第一节点的网络拓扑结构,所述第一节点依照第一实施例中所述的方法,更新所述第一节点的MAC地址转发表。
当所述环网处于空闲状态时,所述第一节点发送LTM,执行链路追踪重新获得所述第一节点在所述环网处于空闲状态下的网络拓扑结构。
可选地,在本实施例中,所述步骤S20包括步骤f-g:
步骤f,所述第一节点依次选中所述MAC地址转发表中的内层vlan标签,判断当前选中的内层vlan标签与所述第一节点的内层vlan标签是否一致。
步骤g,如果当前选中的内层vlan标签与所述第一节点的内层vlan标签 不一致,则判定当前选中的内层vlan标签对应的第二节点不在更新后的所述网络拓扑结构中。
所述第一节点在更新其网络拓扑结构后,所述第一节点依次选中其MAC地址转发表中的每个内层vlan标签,判断当前选中的内层vlan标签与所述第一节点的内层vlan标签是否一致。如果当前选中的内层vlan标签与所述第一节点的内层vlan标签一致,则不进行响应处理。如果当前选中的内层vlan标签与所述第一节点的内层vlan标签不一致,则再次判断当前选中的内层vlan标签对应的第二节点是否在更新后的所述第一节点的网络拓扑结构中,也即查询在更新后的所述第一节点的网络拓扑结构中,是否存在所述第一节点至当前选中的内层vlan标签对应的第二节点的通信链路。
本实施例提供的方案,在环网内发生故障的链路恢复时,所述第一节点再次更新所述第一节点的网络拓扑结构,然后根据更新后的所述第一节点的网络拓扑结构,再次更新所述第一节点的MAC地址转发表,因此在链路恢复时也不需要重新构建新的MAC地址转发表,从而减少了更新MAC地址转发表的时间,提高了更新效率。
本发明实施例提供了一种环网节点的MAC地址转发表更新装置,如图4所示,图4为本发明实施例环网节点的MAC地址转发表更新装置第一实施例的功能模块示意图。
在本实施例中,该环网节点的MAC地址转发表更新装置包括:网络拓扑结构更新模块10、判断模块20和MAC地址转发表更新模块30。
网络拓扑结构更新模块10,设置为在环网内的第一节点接收到包含节点标识符的链路故障消息时,通过在保存的网络拓扑结构中删除以所述节点标识符对应的节点为中间节点的通信链路,更新所述第一节点的网络拓扑结构。
在环网内,一般链路包括对应的RPL(Ring Protection Link,环路保护链路)。在链路发生故障时,则开启对应的RPL链路,以实现将业务切换至所述RPL链路上。在环网内链路切换时,所述环网内每个节点更新各自的网络拓扑结构。在本实施例中,以单个节点为例,对所述环网内每个节点更新其网络拓扑结构的方式进行详细说明。当在环网内的第一节点接收到包含节点标识符的R-APS(SF)(Ring Automatic Protection Switching-Signal Failure, 链路故障消息)时,网络拓扑结构更新模块10在所述第一节点当前保存的网络拓扑结构中,删除所述节点标识符对应的节点为中间节点的通信链路,以更新所述第一节点的网络拓扑结构。可选地,所述R-APS(SF)消息中包含发送所述R-APS(SF)消息的节点的节点标识符和该节点对应的阻塞端口。
判断模块20,设置为判断所述第一节点的MAC地址转发表中每个内层vlan标签对应的第二节点是否在更新后的所述网络拓扑结构中。
网络拓扑结构更新模块10更新所述第一节点的网络拓扑结构后,根据更新后的所述第一节点的网络拓扑结构,判断模块20依次判断所述第一节点的MAC地址转发表中每个内层vlan标签对应的第二节点是否在更新后的所述第一节点的网络拓扑结构中,也即查询在更新后的所述第一节点的网络拓扑结构中,是否存在所述第一节点至每个内层vlan标签对应的第二节点的通信链路。
MAC地址转发表更新模块30,设置为当一个或多个所述第二节点不在更新后的所述网络拓扑结构中时,通过修改所述MAC地址转发表中第二节点的内层vlan标签对应的端口,更新所述第一节点的MAC地址转发表。
当判断模块20判断有第二节点不在更新后的所述网络拓扑结构中时,也即在更新后的所述第一节点的网络拓扑结构中,不存在所述第一节点至所述第二节点的通信链路时,MAC地址转发表更新模块30修改所述第一节点的MAC地址转发表中所述第二节点的内层vlan标签对应的端口,以对所述第一节点的MAC地址转发表进行更新。例如,如果在所述第一节点的MAC地址转发表中所述第二节点的内层vlan标签对应的端口为port0,当判断模块20判断所述第二节点不在更新后的所述网络拓扑结构中时,所述MAC地址转发表更新模块30将所述第二节点的内层vlan标签对应的端口port0修改为port1。
可选地,在本实施例中,所述环网节点的MAC地址转发表更新装置还包括:发送模块、第一确定模块和第二确定模块。
发送模块,设置为在所述MAC地址转发表更新模块通过修改所述MAC地址转发表中第二节点的内层vlan标签对应的端口,更新所述第一节点的MAC地址转发表之后,发送链路追踪报文至每个所述第二节点,令每个所述 第二节点在在接收到所述链路追踪报文时反馈链路追踪响应报文至所述第一节点。
第一确定模块,设置为在接收到每个所述第二节点反馈的链路追踪响应报文时,根据所述链路追踪响应报文确定所述第一节点至每个所述第二节点的通信链路。
第二确定模块,设置为根据所述第一节点至每个所述第二节点的通信链路,更新所述第一节点的网络拓扑结构。
当所述环网处于稳定的保护状态后,所述环网内的每个节点重新获取本节点的网络拓扑结构。仍以单个节点为例,对所述环网内每个节点重新获取本节点的网络拓扑结构的方式进行说明。当所述环网处于稳定的保护状态后,发送模块发送LTM(Link Trace Message,链路追踪报文)至环网内的每个所述第二节点,在每个所述第二节点接收到所述第一节点发送的所述LTM后,每个所述第二节点反馈LTR(Link Trace Reply,链路追踪响应报文)至所述第一节点。所述第一节点在接收到每个所述第二节点反馈的LTR后,第一确定模块根据反馈的LTR确定所述第一节点至每个所述第二节点的通信链路,第二确定模块根据所述第一节点至每个所述第二节点的通信链路更新所述第一节点的网络拓扑结构,从而获得在所述环网处于稳定的保护状态下所述第一节点的网络拓扑结构。
可选地,在本实施例中,所述环网节点的MAC地址转发表更新装置还包括:获取模块和学习模块。
获取模块,设置为在所述网络拓扑结构更新模块在保存的网络拓扑结构中,删除所述节点标识符对应的节点为中间节点的通信链路之前,在所述第一节点接收到报文时,获取所述报文携带的内层vlan标签。
学习模块,设置为根据获取的所述内层vlan标签,更新所述第一节点的保存的MAC地址转发表。
在本实施例中,预先配置所述环网内每个节点对应的内层vlan标签,每个节点预置的内层vlan标签不同,通过内层vlan标签即可识别与所述内层vlan标签对应的节点。从非环网端口(每个环网有两个端口属于环网端口称为 port0,port1,报文不从这两个端口进入环网就需要加入该环网节点的内层vlan标签)添加该节点对应的内层vlan标签。当所述第一节点接收到报文时,获取模块获取所述报文携带的内层vlan标签,然后学习模块根据获取模块获取的所述内层vlan标签,更新所述第一节点的MAC地址转发表。其中,所述MAC地址转发表除了包括所述报文的源MAC地址、所述报文的外层vlan标签、所述报文进入的端口外,还包括所述报文携带的内层vlan标签。
本实施例提供的方案,当环网内链路发生故障,在环网内的第一节点接收到包含节点标识符的链路故障消息时,网络拓扑结构更新模块10更新第一节点的网络拓扑结构,然后判断模块20判断第一节点的MAC地址转发表中每个内层vlan标签对应的第二节点是否在更新后的所述网络拓扑结构中,在有第二节点不在更新后的所述网络拓扑结构中时,MAC地址转发表更新模块30修改第一节点的MAC地址转发表中该第二节点的内层vlan标签对应的端口,以更新第一节点的MAC地址转发表,避免了清空节点的MAC地址转发表,然后重新构建新MAC地址转发表的繁琐步骤,从而减少了更新MAC地址转发表的时间,提高了更新效率。同时,由于减少了更新MAC地址转发表的时间,降低了报文发生泛洪,从而引发风暴的概率。
可选地,基于第一实施例提出本发明实施例的环网节点的MAC地址转发表更新装置第二实施例,在本实施例中,所述网络拓扑结构更新模块10还设置为:
在所述第一节点检测到所述第一节点所在的通信链路出现故障时,发送链路故障消息至所述网络拓扑结构中的其它节点,并通过在保存的网络拓扑结构中删除所述第一节点的阻塞端口对应方向的通信链路,更新所述第一节点的网络拓扑结构。
在本实施例中,如果所述第一节点所在的通信链路出现故障,当所述第一节点检测到所述通信链路出现故障时,网络拓扑结构更新模块10发送R-APS(SF)消息至所述第一节点的网络拓扑结构中的其它节点。其中,所述R-APS(SF)消息中包含所述第一节点的节点标识符以及所述第一节点对应的阻塞端口。其他节点在接收到所述第一节点发送的所述R-APS(SF)消息时,更新其网络拓扑结构。在所述第一节点当前保存的网络拓扑结构中, 网络拓扑结构更新模块10删除所述第一节点的阻塞端口对应方向的通信链路,以对所述第一节点当前保存的所述网络拓扑结构进行更新。然后,MAC地址转发表更新模块30根据更新后的所述第一节点的网络拓扑结构,对所述第一节点的MAC地址转发表进行更新。
可选地,在本实施例中,当所述环网内故障链路恢复时,关闭所述RPL链路,以实现将业务切换至故障恢复的链路上,所述环网内每个节点再次更新各自的网络拓扑结构。仍以所述环网内单个节点为例,如果所述第一节点为所述环网的RPL链路的owner节点或neighbor节点时,网络拓扑结构更新模块10发送携带了节点标识和阻塞端口信息的R-APS(NR-RB)消息至所述第一节点的网络拓扑结构中的其它节点,网络拓扑结构更新模块10删除所述第一节点的阻塞端口对应方向的通信链路,以对所述第一节点的网络拓扑结构进行更新。如果所述第一节点不为所述环网的RPL链路的owner节点与neighbor节点时,在所述第一节点接收到所述RPL链路的owner节点或neighbor节点发送的R-APS(NR-RB)消息时,网络拓扑结构更新模块10在所述第一节点当前保存的网络拓扑结构中,删除所述owner节点或所述neighbor节点为中间节点的通信链路,以更新所述第一节点的网络拓扑结构。
网络拓扑结构更新模块10更新所述第一节点的网络拓扑结构后,MAC地址转发表更新模块30根据更新后的所述第一节点的网络拓扑结构,更新所述第一节点的MAC地址转发表。
当所述环网处于空闲状态时,发送模块发送LTM,以执行链路追踪重新获得所述第一节点在所述环网处于空闲状态下的网络拓扑结构。
可选地,在本实施例中,所述判断模块20包括:第一判断单元和第二判断单元。
第一判断单元,设置为依次选中所述MAC地址转发表中的内层vlan标签,判断当前选中的内层vlan标签与所述第一节点的内层vlan标签是否一致。
第二判断单元,设置为如果当前选中的内层vlan标签与所述第一节点的内层vlan标签不一致,则判定当前选中的内层vlan标签对应的第二节点不在更新后的所述网络拓扑结构中。
网络拓扑结构更新模块10更新所述第一节点的网络拓扑结构后,第一判断单元依次选中所述第一节点的MAC地址转发表中每个内层vlan标签,判断当前选中的内层vlan标签与所述第一节点的内层vlan标签是否一致。如果当前选中的内层vlan标签与所述第一节点的内层vlan标签一致,则不进行响应处理。如果当前选中的内层vlan标签与所述第一节点的内层vlan标签不一致,则第二判断单元再次判断当前选中的内层vlan标签对应的第二节点是否在更新后的所述第一节点的网络拓扑结构中,也即查询在更新后的所述第一节点的网络拓扑结构中,是否存在所述第一节点至当前选中的内层vlan标签对应的第二节点的通信链路。
本实施例提供的方案,在环网内发生故障的链路恢复时,网络拓扑结构更新模块10再次更新所述第一节点的网络拓扑结构,然后MAC地址转发表更新模块30根据更新后的所述第一节点的网络拓扑结构,再次更新所述第一节点的MAC地址转发表,因此在链路恢复时也不需要重新构建新的MAC地址转发表,从而减少了更新MAC地址转发表的时间,提高了更新效率。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的环网节点的介质访问控制MAC地址转发表更新方法。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一个计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。 上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施例方案在环网内的第一节点接收到包含节点标识符的链路故障消息时,第一节点首先更新其网络拓扑结构,然后判断其MAC地址转发表中每个内层vlan标签对应的第二节点是否在更新后的所述网络拓扑结构中,当一个或多个第二节点不在更新后的所述网络拓扑结构中时,第一节点修改其MAC地址转发表中该第二节点的内层vlan标签对应的端口,以更新MAC地址转发表,避免了清空节点的MAC地址转发表,然后重新构建新MAC地址转发表的繁琐步骤,从而减少了更新MAC地址转发表的时间,提高了更新效率。

Claims (11)

  1. 一种环网节点的介质访问控制MAC地址转发表更新方法,所述方法包括:
    在环网内的第一节点接收到包含节点标识符的链路故障消息时,所述第一节点通过在保存的网络拓扑结构中删除以所述节点标识符对应的节点为中间节点的通信链路,更新所述第一节点的网络拓扑结构;
    所述第一节点判断所述第一节点的MAC地址转发表中每个内层虚拟局域网vlan标签对应的第二节点是否均在更新后的所述网络拓扑结构中;
    当一个或多个所述第二节点不在更新后的所述网络拓扑结构中时,所述第一节点通过修改所述MAC地址转发表中第二节点的内层vlan标签对应的端口,更新所述第一节点的MAC地址转发表。
  2. 如权利要求1所述的环网节点的MAC地址转发表更新方法,所述方法还包括:
    在所述第一节点检测到所述第一节点所在的通信链路出现故障时,所述第一节点发送链路故障消息至所述网络拓扑结构中的其它节点,并通过在保存的网络拓扑结构中删除所述第一节点的阻塞端口对应方向的通信链路,更新所述第一节点的网络拓扑结构。
  3. 如权利要求1所述的环网节点的MAC地址转发表更新方法,所述方法还包括:在所述第一节点在保存的网络拓扑结构中,删除所述节点标识符对应的节点为中间节点的通信链路之前,所述第一节点在接收到报文时,获取所述报文携带的内层vlan标签;
    所述第一节点根据获取的所述内层vlan标签,更新所述第一节点的保存的MAC地址转发表。
  4. 如权利要求1所述的环网节点的MAC地址转发表更新方法,所述方法还包括:在所述第一节点通过修改所述MAC地址转发表中第二节点的内层vlan标签对应的端口,更新所述第一节点的MAC地址转发表之后,所述第一节点发送链路追踪报文至每个所述第二节点,令每个所述第二节点在在接收到所述链路追踪报文时反馈链路追踪响应报文至所述第一节点;
    所述第一节点在接收到每个所述第二节点反馈的链路追踪响应报文时,根据所述链路追踪响应报文确定所述第一节点至每个所述第二节点的通信链路;
    所述第一节点根据所述第一节点至每个所述第二节点的通信链路,更新所述第一节点的网络拓扑结构。
  5. 如权利要求1-4任一项所述的环网节点的MAC地址转发表更新方法,其中,所述第一节点判断所述第一节点的MAC地址转发表中每个内层vlan标签对应的第二节点是否均在更新后的所述网络拓扑结构中包括:
    所述第一节点依次选中所述MAC地址转发表中的内层vlan标签,判断当前选中的内层vlan标签与所述第一节点的内层vlan标签是否一致;
    如果当前选中的内层vlan标签与所述第一节点的内层vlan标签不一致,则判定当前选中的内层vlan标签对应的第二节点不在更新后的所述网络拓扑结构中。
  6. 一种环网节点的介质访问控制MAC地址转发表更新装置,,所述装置包括:网络拓扑结构更新模块、判断模块和MAC地址转发表更新模块;
    所述网络拓扑结构更新模块,设置为在环网内的第一节点接收到包含节点标识符的链路故障消息时,通过在保存的网络拓扑结构中删除以所述节点标识符对应的节点为中间节点的通信链路,更新所述第一节点的网络拓扑结构;
    所述判断模块,设置为判断所述第一节点的MAC地址转发表中每个内层虚拟局域网vlan标签对应的第二节点是否均在更新后的所述网络拓扑结构中;
    所述MAC地址转发表更新模块,设置为当一个或多个所述第二节点不在更新后的所述网络拓扑结构中时,通过修改所述MAC地址转发表中第二节点的内层vlan标签对应的端口,更新所述第一节点的MAC地址转发表。
  7. 如权利要求6所述的环网节点的MAC地址转发表更新装置,所述网络拓扑结构更新模块还设置为:
    在所述第一节点检测到所述第一节点所在的通信链路出现故障时,发送 链路故障消息至所述网络拓扑结构中的其它节点,并通过在保存的网络拓扑结构中删除所述第一节点的阻塞端口对应方向的通信链路,更新所述第一节点的网络拓扑结构。
  8. 如权利要求6所述的环网节点的MAC地址转发表更新装置,其中,所述装置还包括:获取模块和学习模块;
    所述获取模块,设置为在所述网络拓扑结构更新模块在保存的网络拓扑结构中,删除所述节点标识符对应的节点为中间节点的通信链路之前,在所述第一节点接收到报文时,获取所述报文携带的内层vlan标签;
    所述学习模块,设置为根据获取的所述内层vlan标签,更新所述第一节点的保存的MAC地址转发表。
  9. 如权利要求6所述的环网节点的MAC地址转发表更新装置,所述装置还包括:发送模块、第一确定模块和第二确定模块;
    所述发送模块,设置为在所述MAC地址转发表更新模块通过修改所述MAC地址转发表中第二节点的内层vlan标签对应的端口,更新所述第一节点的MAC地址转发表之后,发送链路追踪报文至每个所述第二节点,令每个所述第二节点在在接收到所述链路追踪报文时反馈链路追踪响应报文至所述第一节点;所述第一确定模块,设置为在接收到每个所述第二节点反馈的链路追踪响应报文时,根据所述链路追踪响应报文确定所述第一节点至每个所述第二节点的通信链路;
    第二确定模块,设置为根据所述第一节点至每个所述第二节点的通信链路,更新所述第一节点的网络拓扑结构。
  10. 如权利要求6-9所述的环网节点的MAC地址转发表更新装置,其中,所述判断模块包括:第一判断单元和第二判断单元;
    所述判断模块判断所述第一节点的MAC地址转发表中每个内层vlan标签对应的第二节点是否均在更新后的所述网络拓扑结构中包括:
    所述第一判断单元,设置为依次选中所述MAC地址转发表中的内层vlan标签,判断当前选中的内层vlan标签与所述第一节点的内层vlan标签是否一致;
    所述第二判断单元,设置为如果当前选中的内层vlan标签与所述第一节点的内层vlan标签不一致,则判定当前选中的内层vlan标签对应的第二节点不在更新后的所述网络拓扑结构中。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求1至5任意一项所述的环网节点的介质访问控制MAC地址转发表更新方法。
PCT/CN2016/092720 2016-01-22 2016-08-01 一种环网节点的mac地址转发表更新方法及装置 WO2017124725A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610044696.7 2016-01-22
CN201610044696.7A CN106998298A (zh) 2016-01-22 2016-01-22 环网节点的mac地址转发表更新方法及装置

Publications (1)

Publication Number Publication Date
WO2017124725A1 true WO2017124725A1 (zh) 2017-07-27

Family

ID=59361863

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/092720 WO2017124725A1 (zh) 2016-01-22 2016-08-01 一种环网节点的mac地址转发表更新方法及装置

Country Status (2)

Country Link
CN (1) CN106998298A (zh)
WO (1) WO2017124725A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514593A (zh) * 2022-11-17 2022-12-23 之江实验室 工业控制环网链路中断快速获取链路节点数据的方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683580B (zh) * 2018-05-24 2020-11-03 西安电子科技大学 基于Mac地址划分的虚拟局域网数据处理方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815107A (zh) * 2010-05-13 2010-08-25 华为技术有限公司 一种以太环网中管理地址的方法、系统以及设备
CN102104520A (zh) * 2009-12-18 2011-06-22 中兴通讯股份有限公司 基于拓扑信息的环网保护方法与装置
CN102315967A (zh) * 2011-09-19 2012-01-11 中兴通讯股份有限公司 一种组播标签交换路径的中间节点保护方法及装置
US20130343179A1 (en) * 2011-03-07 2013-12-26 Tejas Networks Ltd Ethernet chain protection switching

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100512212C (zh) * 2005-07-29 2009-07-08 华为技术有限公司 以太网桥设备、基于以太网桥设备的数据传输方法及应用
CN100409634C (zh) * 2006-01-23 2008-08-06 杭州华三通信技术有限公司 快速环网保护方法及系统
JP4887897B2 (ja) * 2006-05-12 2012-02-29 富士通株式会社 パケット伝送装置、パケット転送方法及びパケット伝送システム
CN100446500C (zh) * 2007-01-08 2008-12-24 杭州华三通信技术有限公司 生成树网络连接环网的保护方法及其应用的网络节点
CN102055658B (zh) * 2009-11-05 2013-01-16 杭州华三通信技术有限公司 快速环网保护协议单环组网中实现故障保护的方法及设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104520A (zh) * 2009-12-18 2011-06-22 中兴通讯股份有限公司 基于拓扑信息的环网保护方法与装置
CN101815107A (zh) * 2010-05-13 2010-08-25 华为技术有限公司 一种以太环网中管理地址的方法、系统以及设备
US20130343179A1 (en) * 2011-03-07 2013-12-26 Tejas Networks Ltd Ethernet chain protection switching
CN102315967A (zh) * 2011-09-19 2012-01-11 中兴通讯股份有限公司 一种组播标签交换路径的中间节点保护方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514593A (zh) * 2022-11-17 2022-12-23 之江实验室 工业控制环网链路中断快速获取链路节点数据的方法
WO2024103582A1 (zh) * 2022-11-17 2024-05-23 之江实验室 获取链路节点数据的方法和系统

Also Published As

Publication number Publication date
CN106998298A (zh) 2017-08-01

Similar Documents

Publication Publication Date Title
US9019814B1 (en) Fast failover in multi-homed ethernet virtual private networks
CN106992874B (zh) 用于通信的方法和网络设备
US9781032B1 (en) MPLS label usage in ethernet virtual private networks
US20170207961A1 (en) Spanning tree protocol optimization
US8953618B2 (en) IP multicast service leave process for MPLS-based virtual private cloud networking
US9485194B2 (en) Virtual link aggregation of network traffic in an aggregation switch
US9258211B1 (en) Extending VPLS support for CE lag multi-homing
US8831000B2 (en) IP multicast service join process for MPLS-based virtual private cloud networking
US7480258B1 (en) Cross stack rapid transition protocol
EP2643940B1 (en) Method of shrinking a data loss window in a packet network device
US8717888B2 (en) Optimizations for N-way gateway load balancing in fabric path switching networks
CN101771618B (zh) 一种分组传送网络接入环中主机路由可达的方法及系统
US7609658B2 (en) Method and system for identifying instability or a spanning tree protocol loop in a network
EP2560325A1 (en) Method, system and apparatus for managing addresses in ethernet ring network
JP5692553B2 (ja) リング型ネットワークにおけるノード装置およびその経路切替制御方法
US20080317030A1 (en) Method of creating address forwarding table in ethernet ring network
US9231831B2 (en) Method and network system of converting a layer two network from a spanning tree protocol mode to a routed mesh mode without a spanning tree protocol
CN105162704A (zh) Overlay网络中组播复制的方法及装置
CN103873333B (zh) 环网三层收敛方法及装置
EP2899919B1 (en) Distributed link aggregation group service handover method and device
CN103475583A (zh) 清除媒体接入控制转发表项的方法和设备
WO2017050199A1 (zh) 一种网络环路检测方法及控制器
CN102957620A (zh) 一种trill网络中mac地址表项的管理方法和设备
CN102437967B (zh) 报文转发方法和装置
US20170302562A1 (en) Topological Learning Method and Apparatus for OPENFLOW Network Cross Conventional IP Network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16885985

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16885985

Country of ref document: EP

Kind code of ref document: A1