EP2575296A1

Method and apparatus for recovering unicast traffic during ethernet ring failover

Abstract

The present invention discloses a method and an apparatus for recovering unicast traffic during an Ethernet ring failover, relates to the field of communication technologies, and solves the problem of interruption of the unicast traffic caused by a link failure during the Ethernet ring failover and before completion of flushing of the MAC address table. In embodiments of the present invention, because a network switch sets the broadcast flags of the ports in the loop of the Ethernet ring to the set state before completion of flushing of the MAC address table, if the broadcast flag of the destination port corresponding to the destination address in a unicast packet received by the network switch is in the set state, the network switch broadcasts the unicast packet. Therefore, the network switch in the loop of the Ethernet ring can recover the interrupted unicast traffic without waiting for completion of flushing of the MAC address table, thereby implementing recovering the unicast traffic during an Ethernet ring failover.

EP2575296A1, drawing sheet 1
Sheet 1 of 5

Term

Projected expiry 18 July 2032.

  1. Priority
  2. Filed
  3. Published
  4. Today
  5. Projected expiry

6 claims: 2 independent, 4 dependent

  1. 1
    A method for recovering unicast traffic during an Ethernet ring failover, comprising:receiving, by a network switch in a loop of an Ethernet ring, a packet;if a destination address in the packet is a unicast address and the destination address is comprised in a local MAC address table, searching, by the network switch, the local MAC address table for a destination port corresponding to the destination address;if a broadcast flag of the destination port is in a set state, broadcasting, by the network switch, the packet;andsetting, by the network switch, broadcast flags of ports in the loop of the Ethernet ring to a set state before completion of flushing of the local MAC address table, and to a reset state after completion of flushing of the local MAC address table.
  2. 4
    An apparatus for recovering unicast traffic during an Ethernet ring failover, comprising:a receiving module, configured to receive a packet;a searching module, configured to: when a destination address in the packet is a unicast address and the destination address is comprised in a local MAC address table, search the local MAC address table for a destination port corresponding to the destination address;a forwarding module, configured to broadcast the packet when a broadcast flag of the destination port is in a set state;anda setting module, configured to set broadcast flags of ports in a loop of an Ethernet ring to a set state before completion of flushing of the local MAC address table, and set the broadcast flags of the ports in the loop of the Ethernet ring to a reset state after completion of flushing of the local MAC address table.