摘要 |
The present invention discloses a method and a device for transmitting data, and relates to the field of communications. The method includes: generating an active route between a first network element and a second network element, where the active route includes a first route between an active core device and the first network element and a second route between the active core device and the second network element, and transmitting data between the first network element and the second network element through the active route; sending an identity ID and a state of a first gateway interface that is connected to the first network element and is included in the active core device to a standby core device, so that the standby core device generates a standby route between the first network element and the second network element, where the standby route includes a third route between the standby core device and the first network element and a fourth route between the standby core device and the second network element; and when a fault occurs on the first route, transmitting the data between the first network element and the second network element through the standby route. In the present invention, a time for switching a route can be shortened, and loss of data transmitted between a base station and a base station controller can also be reduced. |