The existing network topology discovery protocol is adopted in the L2 network, so that the L2 network devices do not have to support protocols such as OSPF and ISIS. Therefore, the present invention is helpful to avoid resource consumption of OSPF and ISIS protocols on the L2 network devices and reduce the complexity in implementation of the TE over the L2 network.