主权项 |
1. A method for managing bearer resources when a user equipment device (UE) changes its attachment from a first intermediate network element to a second intermediate network element, comprising:
sending, by the second intermediate network element, to a home subscriber server (HSS) an update location message, wherein the update location message carries an update type flag, the update type flag indicates whether the UE is performing an attach procedure or a location update procedure; sending, by the HSS, a cancel location message to the first intermediate network element, wherein the cancel location message contains a cancellation type indication parameter; when the cancellation type indication parameter indicates an attach type, and a bearer corresponding to the UE exists on the first intermediate network element, deleting, by the first intermediate network element, the bearer in a serving gateway corresponding to the bearer and the bearer in a packet data network gateway corresponding to the bearer; when the cancellation type indication parameter indicates an update type, and when a serving gateway change indication is received by the first intermediate network element, deleting, by the first intermediate network element, a bearer corresponding to the UE in a serving gateway corresponding to the bearer; and when the cancellation type indication parameter indicates the update type, and when the serving gateway change indication is not received by the first intermediate network element, deleting, by the first intermediate network element, context information corresponding to the UE stored in the first intermediate network element. |