Wireless communication method and device
A wireless communication method and device are provided. The wireless communication method includes the steps of receiving a Traffic Flow Template (TFT) which is assigned by a network; determining whether a first evaluation precedence index (EPI) corresponding to a new packet filter of the TFT is the same as a second EPI corresponding to an old packet filter which belongs to an evolved packet system (EPS) bearer or a packet data protocol (PDP) context; determining whether the new packet filter belongs to the EPS bearer or the PDP context when the first EPI is the same as the second EPI; and replacing the old packet filter with the new packet filter without deleting the EPS bearer or the PDP context when the new packet filter belongs to the EPS bearer or the PDP context.
1. A wireless communication method, comprising:
receiving, by a processor of a wireless communication device, a Traffic Flow Template (TFT) which is assigned by a network;
determining, by the processor, whether a first evaluation precedence index (EPI) corresponding to a new packet filter of the TFT is the same as a second EPI corresponding to an old packet filter which belongs to an evolved packet system (EPS) bearer or a packet data protocol (PDP) context;
determining, by the processor, whether the new packet filter belongs to the EPS bearer or the PDP context when the first EPI is the same as the second EPI; and
replacing, by the processor, the old packet filter by the new packet filter without deleting the EPS bearer or the PDP context when the new packet filter belongs to the EPS bearer or the PDP context,
wherein the PDP context is a primary PDP context or a secondary PDP context,
wherein when the PDP context is the primary PDP context, the wireless communication method further comprises: initiating an PDP context deactivation procedure to disconnect a packet data network (PDN) connection corresponding to the primary PDP context when the first EPI is the same as the second EPI and the new packet filter belongs to the secondary PDP context.
2. The wireless communication method of claim 1 , wherein the EPS bearer is applied to a 4G network and the PDP context is applied to a 2/3G network.
3. The wireless communication method of claim 2 , wherein the EPS bearer is a default EPS bearer or a dedicated EPS bearer.
4. The wireless communication method of claim 3 , wherein when the EPS bearer is the default EPS bearer, the wireless communication method further comprises:
initiating an EPS bearer deactivation procedure to disconnecting a packet data network (PDN) connection corresponding to the default EPS bearer when the first EPI is the same as the second EPI and the new packet filter belongs to the dedicated EPS bearer.
5. The wireless communication method of claim 3 , wherein when the EPS bearer is the dedicated EPS bearer, the wireless communication method further comprises:
initiating an EPS bearer deactivation procedure to delete the dedicated EPS bearer when the first EPI is the same as the second EPI and the new packet filter belongs to the default EPS bearer or another dedicated EPS bearer.
6. The wireless communication method of claim 1 , wherein when the PDP context is the secondary PDP context, the wireless communication method further comprises:
initiating a PDP context deactivation procedure to delete the secondary PDP context when the first EPI is the same as the second EPI and the new packet filter belongs to the primary PDP context and another secondary PDP.
7. The wireless communication method of claim 2 , further comprising:
assigning the new packet filter to a corresponding EPS bearer or PDP context when the first EPI is not the same as the second EPI, wherein the corresponding EPS bearer or PDP context is the same as or different from the EPS bearer or the PDP context.
8. The wireless communication method of claim 1 , further comprising:
determining whether the new TFT has a semantic error or a syntactic error.
9. A wireless communication device, comprising:
a processor, configured to receive a Traffic Flow Template (TFT) which is assigned by a network, determine whether a first evaluation precedence index (EPI) corresponding to a new packet filter of the TFT is the same as a second EPI corresponding to an old packet filter which belongs to an evolved packet system (EPS) bearer or a packet data protocol (PDP) context, determine whether the new packet filter belongs to the EPS bearer or the PDP context when the first EPI is the same as the second EPI, and replace the old packet filter with the new packet filter without deleting the EPS bearer or the PDP context when the new packet filter belongs to the EPS bearer or the PDP context,
wherein the PDP context is a primary PDP context or a secondary PDP context,
wherein when the PDP context is the primary PDP context, the processor is further configured to initiate an PDP context deactivation procedure to disconnect a packet data network (PDN) connection corresponding to the primary PDP context when the first EPI is the same as the second EPI and the new packet filter belongs to the secondary PDP context.
10. The wireless communication device of claim 9 , wherein the EPS bearer is applied to a 4G network and the PDP context is applied to a 2/3G network.
11. The wireless communication device of claim 10 , wherein the EPS bearer is a default EPS bearer or a dedicated EPS bearer.
12. The wireless communication device of claim 11 , wherein if the EPS bearer is the default EPS bearer, the processor is further configured to initiate an EPS bearer deactivation procedure to disconnect a packet data network (PDN) connection corresponding to the default EPS bearer when the first EPI is the same as the second EPI and the new packet filter belongs to the dedicated EPS bearer.
13. The wireless communication device of claim 11 , wherein if the EPS bearer is the dedicated EPS bearer, the processor is further configured to initiate an EPS bearer deactivation procedure to delete the dedicated EPS bearer when the first EPI is the same as the second EPI and the new packet filter belongs to the default EPS bearer or another dedicated EPS bearer.
14. The wireless communication device of claim 9 , wherein when the PDP context is the secondary PDP context, the processor is further configured to initiate an PDP context deactivation procedure to delete the secondary PDP context when the first EPI is the same as the second EPI and the new packet filter belongs to the primary PDP context and another secondary PDP.
15. The wireless communication device of claim 10 , wherein the processor is further configured to assign the new packet filter to a corresponding EPS bearer or PDP context when the first EPI is not the same as the second EPI, wherein the corresponding EPS bearer or PDP context is the same as or different from the EPS bearer or the PDP context.
16. The wireless communication device of claim 9 , wherein the processor is further configured to determine whether the TFT has a semantic error or a syntactic error.