Abstract:
A method for detecting loop position in an Ethernet network, includes: the Ethernet switch device learns a MAC address; in a MAC table, a first MAC address corresponds to a first port before the leaning of MAC address, and the first MAC address corresponds to a second port after the learning of MAC address; if the second port and the first port do not belong to the same sub-network, an interval between a time of learning on the second port and a time of transmitting a last packet or receiving a last packet from the first port is calculated; and if the interval is smaller than a predetermined judgment threshold of host migration, it is determined that a loop exists in a sub-network connected to the second port.
Abstract:
Embodiments of the present invention disclose a virtual network device. The virtual network device is configured to implement a broadband network gateway BNG function, and the virtual network device includes a load balance unit and a first forwarding unit; the load balance unit is configured to: receive a first data packet from a first user terminal, determine the first forwarding unit according to the first data packet and a first correspondence, and send the first data packet to the first forwarding unit, where the first correspondence indicates mapping from the first user terminal to the first forwarding unit; and the first forwarding unit is configured to receive and forward the first data packet. In addition, the embodiments of the present invention further disclose a method for implementing load sharing in a virtual network device.