Abstract:
The present invention provides a route calculation method and a master node device in a virtual network element. The method includes: receiving and storing, by the master node, topology information; performing, according to a topology type of the VNE, topology verification for all topology information locally stored on the master node; and calculating, after the topology verification is passed, internal paths in the VNE and weights of the internal paths, generating and storing an internal routing entry, and sending the internal routing entry to nodes except the master node in the VNE. Therefore, in various topology structures, such as a dual-homing tree, a ring, and a half ring, calculation of the internal routes in the VNE and load balancing within the VNE can be implemented.