WO2016165088A1 - 一种流量统计方法、装置及终端设备 - Google Patents

一种流量统计方法、装置及终端设备 Download PDF

Info

Publication number
WO2016165088A1
WO2016165088A1 PCT/CN2015/076655 CN2015076655W WO2016165088A1 WO 2016165088 A1 WO2016165088 A1 WO 2016165088A1 CN 2015076655 W CN2015076655 W CN 2015076655W WO 2016165088 A1 WO2016165088 A1 WO 2016165088A1
Authority
WO
WIPO (PCT)
Prior art keywords
volte
traffic
packet
pdn
service
Prior art date
Application number
PCT/CN2015/076655
Other languages
English (en)
French (fr)
Inventor
贾银元
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2015/076655 priority Critical patent/WO2016165088A1/zh
Priority to CN201580078871.8A priority patent/CN107534880B/zh
Priority to US15/566,395 priority patent/US10701573B2/en
Priority to EP15888793.5A priority patent/EP3280169B1/en
Publication of WO2016165088A1 publication Critical patent/WO2016165088A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/04Large scale networks; Deep hierarchical networks
    • H04W84/042Public Land Mobile systems, e.g. cellular systems

Definitions

  • the present invention relates to the field of communications, and in particular, to a traffic statistics method, device, and terminal device.
  • the traffic generated by the Internet can be obtained through the traffic statistics function of the mobile phone system or by the third-party software installed on the mobile phone to facilitate the user to query.
  • the protocol stack used by the data service is deployed on the application processor (AP) side of the mobile phone, when counting the traffic generated by the user online, whether it is the traffic statistics function of the mobile phone system,
  • the third-party software installed on the mobile phone is implemented based on the AP of the mobile phone, that is, the AP of the mobile phone can perform statistics on the traffic generated by the Internet, and the traffic statistics function provided by the mobile phone system or the first installed on the mobile phone.
  • the three-party software is displayed to the user.
  • LTE Long Term Evolution
  • LTE network can not only provide users with high-speed data services, but also adopt LTE-based voice (English: Voice Over LTE, referred to as VoLTE technology, provides users with high-quality audio and video services, so that when users use LTE networks for audio and video calls, certain traffic will also be generated.
  • LTE-based voice English: Voice Over LTE, referred to as VoLTE technology
  • the protocol stack used by the audio and video service is not deployed on the AP side of the mobile phone. This will result in the inability to count the traffic generated when the user uses the LTE network for audio and video calls.
  • the invention provides a traffic statistics method, device and terminal device, which solves the problem that the traffic generated when a user uses an LTE network for audio and video calls cannot be counted.
  • a first aspect of the present invention provides a traffic statistics method, including:
  • the modem modem detects the first Internet Protocol IP packet
  • the first IP address of the first IP packet is obtained
  • the packet length of the first IP packet is obtained.
  • the Modem adds the packet length of the first IP packet to the Long Term Evolution (LTE) based The first statistic of the voice VoLTE traffic, where the first PDN is a PDN required for establishing a bearer of the VoLTE service.
  • LTE Long Term Evolution
  • the method before the modem Modem detects the first Internet Protocol IP packet, the method further includes:
  • the modem stores the IP address of the first PDN and the APN of the first PDN in the in-memory database.
  • the method further includes:
  • the modem adds a second statistic of the VoLTE traffic to a first statistic of the VoLTE traffic.
  • the Modem acquires a second statistic value of the VoLTE traffic that is obtained by the application processor AP, including:
  • the Modem queries the traffic data collected by the AP to obtain a second statistic value of the VoLTE traffic.
  • the Modem acquires an IP address of the first PDN, including:
  • the Modem sends a first PDN registration request to the network side;
  • the first PDN registration request includes an APN of the first PDN, so that the network side acquires the first PDN according to the APN of the first PDN.
  • IP address ;
  • the modem receives an IP address of the first PDN sent by the network side.
  • the method further includes:
  • the Modem transmits the VoLTE service according to the handover policy, where the VoLTE service is a VoLTE voice service or a VoLTE video service.
  • the method before the Modem transmits the VoLTE service according to the handover policy, the method further includes:
  • the modem receives the handover policy sent by the AP, where the handover policy is sent by the AP after receiving a trigger for selection of the handover policy by a user.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, the transmission of the VoLTE voice service and the VoLTE video service are not restricted;
  • the modem transmits the VoLTE service according to the handover policy, including:
  • the Modem transmits the collected voice data through an LTE network
  • the Modem transmits the collected voice data and image data through the LTE network.
  • the switching policy is that the first statistic value of the VoLTE traffic is greater than or equal to When the value of the VoLTE traffic is limited, the transmission of the VoLTE voice service is not limited, and the transmission of the VoLTE video service is limited;
  • the modem transmits the VoLTE service according to the handover policy, including:
  • the Modem transmits the collected voice data through an LTE network
  • the Modem switches the video mode to the voice mode, and the collected voice data is transmitted through the LTE network.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, the transmission of the VoLTE voice service and the VoLTE video service are restricted;
  • the modem transmits the VoLTE service according to the handover policy, including:
  • the Modem switches from the LTE network to the second generation mobile communication technology 2G/third generation mobile communication technology 3G network, and the collected voice data is passed through the circuit switched CS domain. Or packet switched PS domain for transmission;
  • the Modem switches the video mode to a voice mode, and transmits the collected voice data through the CS domain or the PS domain.
  • the switching policy is to reduce the codec rate of the VoLTE voice service and reduce the transmission parameter of the VoLTE video service when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic.
  • the modem transmits the VoLTE service according to the handover policy, including:
  • the Modem reduces a codec rate of the collected voice data
  • the Modem reduces transmission parameters of the collected video data
  • the transmission parameter of the video data includes one or more of the following: a resolution of image data in the video data, a frame rate of image data in the video data, and a voice data in the video data. Decoding rate.
  • a second aspect of the present invention provides a traffic statistics method, including:
  • the application processor AP detects the second Internet Protocol IP packet, the second IP address of the second IP packet is obtained, and the packet length of the second IP packet is obtained.
  • the AP adds the packet length of the second IP packet to the Long Term Evolution (LTE) based The second statistic of the voice VoLTE traffic, where the first PDN is a PDN required to establish a bearer of the VoLTE service.
  • LTE Long Term Evolution
  • the method further includes:
  • the AP adds a first statistic value of the VoLTE traffic to a second statistic value of the VoLTE traffic;
  • the AP displays the second statistical value of the VoLTE traffic to the user.
  • the acquiring, by the AP, the first statistics of the VoLTE traffic obtained by using the Modem statistics includes:
  • the AP queries the traffic data of the Modem to obtain a first statistic value of the VoLTE traffic.
  • the method further comprises:
  • the AP adds the packet length of the second IP packet to the statistics of the data traffic, where
  • the second PDN is a PDN required to establish a bearer of the data service;
  • the AP displays the statistical value of the data traffic to the user.
  • the method before the application processor AP detects the second Internet Protocol IP packet, the method further includes:
  • the AP stores the IP address of the second PDN and the APN of the second PDN in the in-memory database.
  • the acquiring, by the AP, the IP address of the second PDN includes:
  • the AP sends a second PDN registration request to the network side through the modem, and the second PDN registration request includes the APN of the second PDN, so that the network side acquires the second according to the APN of the second PDN. IP address of the PDN;
  • the AP receives an IP address of the second PDN sent by the network side through the Modem.
  • a third aspect of the present invention provides a traffic statistics method, including:
  • the application processor AP detects the second Internet Protocol IP packet, the packet length of the second IP packet is obtained.
  • the AP adds the packet length of the second IP packet to the statistics of the traffic
  • the AP adds the first statistic value of the VoLTE traffic to the statistic value of the traffic.
  • the AP acquires modulation
  • the first statistical value of the Longitudinal Evolution LTE-based voice VoLTE traffic obtained by the demodulator Modem statistics, including:
  • the AP queries the traffic data of the Modem to obtain a first statistic value of the VoLTE traffic.
  • a fourth aspect of the present invention provides a traffic statistics apparatus, including:
  • An acquiring unit configured to acquire a first IP address of the first IP packet, and obtain a packet length of the first IP packet, from the in-memory database, when the first Internet Protocol IP packet is detected Obtaining an access point name APN corresponding to the first IP address of the first IP packet;
  • an accumulating unit configured to: when the APN corresponding to the first IP address of the first IP packet obtained by the acquiring unit is an APN of the first public data network PDN, report the first IP packet The length of the text is added to a first statistic of the LTE-based voice VoLTE traffic, where the first PDN is a PDN required to establish a bearer of the VoLTE service.
  • the obtaining unit is further configured to acquire an IP address of the first PDN before the detecting the first Internet Protocol IP packet;
  • the device also includes:
  • a storage unit configured to store, in the in-memory database, an IP address of the first PDN acquired by the acquiring unit and an APN corresponding to the first PDN.
  • the acquiring unit is further configured to obtain a second statistic value of the VoLTE traffic that is obtained by the application processor AP.
  • the accumulating unit is further configured to accumulate a second statistic value of the VoLTE traffic acquired by the acquiring unit into a first statistic value of the VoLTE traffic.
  • the acquiring unit is specifically configured to:
  • the acquiring unit is specifically configured to:
  • the first PDN registration request includes an APN of the first PDN, so that the network side acquires an IP address of the first PDN according to the APN of the first PDN;
  • the apparatus further includes:
  • a determining unit configured to determine whether a first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic
  • a transmitting unit configured to: when the determining unit determines that the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, transmitting a VoLTE service according to a handover policy, where the VoLTE service is a VoLTE voice service Or VoLTE video service.
  • the receiving unit is further configured to: before the transmitting unit transmits the VoLTE service according to the handover policy, receive the handover policy sent by the AP, where the handover policy is that the AP receives a user to the handover policy The choice is sent after the trigger.
  • the switching policy is that the first statistic value of the VoLTE traffic is greater than or equal to When the value of the VoLTE traffic is limited, the transmission of the VoLTE voice service and the VoLTE video service are not limited;
  • the transmission unit is specifically configured to:
  • the collected voice data is transmitted through the LTE network
  • the collected voice data and image data are transmitted through the LTE network.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, the transmission of the VoLTE voice service is not limited, and the transmission of the VoLTE video service is restricted;
  • the transmission unit is specifically configured to:
  • the collected voice data is transmitted through the LTE network
  • the video mode is switched to a voice mode, and the collected voice data is transmitted through the LTE network.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, the transmission of the VoLTE voice service and the VoLTE video service are restricted;
  • the transmission unit is specifically configured to:
  • the LTE network is switched to the second generation mobile communication technology 2G/third generation mobile communication technology 3G network, and the collected voice data is passed through the circuit switched CS domain or packet switching. PS domain for transmission;
  • the video mode is switched to a voice mode, and the collected voice data is transmitted through the CS domain or the PS domain.
  • the switching policy is to reduce the codec rate of the VoLTE voice service and reduce the transmission parameter of the VoLTE video service when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic.
  • the transmission unit is specifically configured to:
  • the VoLTE service is the VoLTE voice service, reducing a codec rate of the collected voice data
  • the VoLTE service is the VoLTE video service, reducing transmission parameters of the collected video data
  • the transmission parameter of the video data includes one or more of the following: a resolution of image data in the video data, a frame rate of image data in the video data, and a voice data in the video data. Decoding rate.
  • a fifth aspect of the present invention provides a traffic statistics apparatus, including:
  • An acquiring unit configured to acquire a second IP address of the second IP packet, obtain a packet length of the second IP packet, and obtain the packet length from the in-memory database when the second Internet Protocol IP packet is detected.
  • An access point name APN corresponding to the second IP address of the second IP packet;
  • an accumulating unit configured to: when the APN corresponding to the second IP address of the second IP packet obtained by the acquiring unit is an APN of the first public data network PDN, report the second IP packet The length of the text is added to a second statistic of the LTE-based voice VoLTE traffic, where the first PDN is a PDN required to establish a bearer of the VoLTE service.
  • the acquiring unit is further configured to obtain a first statistic value of the VoLTE traffic obtained by using the Modem statistics;
  • the accumulating unit is further configured to add a first statistic value of the VoLTE traffic to a second statistic value of the VoLTE traffic;
  • the device also includes:
  • a display unit configured to display, by the accumulating unit, a second statistical value of the VoLTE traffic obtained by the accumulating unit to a user.
  • the acquiring unit is specifically configured to:
  • the accumulating unit is further configured to: when the APN corresponding to the second IP address of the second IP packet obtained by the acquiring unit is an APN of the second PDN, report the second IP packet The length of the text is added to the statistics of the data traffic, where the second PDN is a PDN required to establish a bearer of the data service;
  • the display unit is further configured to display a statistical value of the data traffic obtained by the accumulating unit to a user.
  • the obtaining unit is further configured to acquire an IP address of the second PDN before the acquiring unit detects the second Internet Protocol IP packet;
  • the device also includes:
  • a storage unit configured to store, in the in-memory database, an IP address of the second PDN acquired by the acquiring unit and an APN corresponding to the second PDN.
  • the acquiring unit is specifically configured to:
  • the Modem Transmitting, by the Modem, a second PDN registration request to the network side;
  • the second PDN registration request includes an APN of the second PDN, so that the network side acquires the IP of the second PDN according to the APN of the second PDN address;
  • a sixth aspect of the present invention provides a traffic statistics apparatus, including:
  • An acquiring unit configured to acquire a packet length of the second IP packet when the second Internet Protocol IP packet is detected
  • An accumulating unit configured to add a packet length of the second IP packet obtained by the acquiring unit to a statistical value of the traffic
  • the acquiring unit is further configured to acquire a first statistic value of the long-term evolution LTE-based voice VoLTE traffic obtained by the modem Modem statistics;
  • the accumulating unit is further configured to accumulate a first statistic value of the VoLTE traffic acquired by the acquiring unit into a statistic value of the traffic.
  • the acquiring unit is specifically configured to:
  • a seventh aspect of the present invention provides a traffic statistics apparatus, including:
  • a processor configured to acquire a first IP address of the first IP packet, and obtain a packet length of the first IP packet, from the in-memory database, when the first Internet Protocol IP packet is detected Obtaining an access point name APN corresponding to the first IP address of the first IP packet, when the APN corresponding to the first IP address of the first IP packet is the APN of the first public data network PDN, Adding the packet length of the first IP packet to the first statistic of the Longitudinal Evolution LTE-based voice VoLTE traffic, where the first PDN is a PDN required for establishing a bearer of the VoLTE service.
  • the processor is further configured to acquire an IP address of the first PDN before the detecting the first Internet Protocol IP packet;
  • the device also includes:
  • a memory configured to acquire an IP address of the first PDN by the processor Corresponding to the APN of the first PDN is stored in the in-memory database.
  • the processor is further configured to obtain a second statistic value of the VoLTE traffic that is obtained by the application processor AP, and add a second statistic value of the VoLTE traffic to the first statistic value of the VoLTE traffic.
  • the device further includes: a receiver, configured to receive a second statistic value of the VoLTE traffic sent by the AP;
  • the processor is configured to query the traffic data collected by the AP to obtain a second statistic value of the VoLTE traffic.
  • the device further includes: a transmitter, configured to send a first PDN registration request to the network side; the first PDN registration request includes an APN of the first PDN, so that the network side is configured according to the first PDN The APN obtains an IP address of the first PDN;
  • the receiver is further configured to receive an IP address of the first PDN sent by the network side.
  • the processor is further configured to determine whether a first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, where a first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic And transmitting the VoLTE service according to the handover policy, where the VoLTE service is a VoLTE voice service or a VoLTE video service.
  • the receiver is further configured to: before the processor transmits the VoLTE service according to the handover policy, receive the handover policy sent by the AP, where the handover policy is that the AP receives a user to the handover policy The choice is sent after the trigger.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, the transmission of the VoLTE voice service and the VoLTE video service are not restricted;
  • the processor is specifically configured to:
  • the collected voice data is transmitted through the LTE network
  • the collected voice data and image data are transmitted through the LTE network.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, the transmission of the VoLTE voice service is not limited, and the transmission of the VoLTE video service is restricted;
  • the processor is specifically configured to:
  • the collected voice data is transmitted through the LTE network
  • the video mode is switched to a voice mode, and the collected voice data is transmitted through the LTE network.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, the transmission of the VoLTE voice service and the VoLTE video service are restricted;
  • the processor is specifically configured to:
  • the LTE network is switched to the second generation mobile communication technology 2G/third generation mobile communication technology 3G network, and the collected voice data is passed through the circuit switched CS domain or packet switching. PS domain for transmission;
  • the video mode is switched to a voice mode, and the collected voice data is transmitted through the CS domain or the PS domain.
  • the switching policy is to reduce the codec rate of the VoLTE voice service and reduce the transmission parameter of the VoLTE video service when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic.
  • the processor is specifically configured to:
  • the VoLTE service is the VoLTE voice service, reducing a codec rate of the collected voice data
  • the VoLTE service is the VoLTE video service, reducing transmission parameters of the collected video data
  • the transmission parameter of the video data includes one or more of the following: a resolution of image data in the video data, a frame rate of image data in the video data, and a voice data in the video data. Decoding rate.
  • a traffic statistics apparatus includes:
  • a processor configured to acquire a second IP address of the second IP packet, obtain a packet length of the second IP packet, and obtain the packet length from the in-memory database when the second Internet Protocol IP packet is detected.
  • the access point name APN corresponding to the second IP address of the second IP packet when the APN corresponding to the second IP address of the second IP packet is the APN of the first public data network PDN,
  • the packet length of the second IP packet is added to the second statistic of the LTE-based voice VoLTE traffic, where the first PDN is a PDN required for establishing a bearer of the VoLTE service.
  • the processor is further configured to obtain the VoLTE traffic obtained by using the Modem statistics.
  • the first statistic value of the VoLTE traffic is added to the second statistic value of the VoLTE traffic, and the second statistic value of the VoLTE traffic is displayed to the user.
  • the device further includes: a receiver, configured to receive a first statistic value of the VoLTE traffic sent by the Modem;
  • the processor is specifically configured to query the traffic data of the Modem to obtain a first statistic value of the VoLTE traffic.
  • the processor is further configured to: when the APN corresponding to the second IP address of the second IP packet is the APN of the second PDN, add the packet length of the second IP packet to the data traffic.
  • the statistic value is displayed to the user, where the second PDN is a PDN required to establish a bearer of the data service.
  • the processor is further configured to acquire an IP address of the second PDN before the detecting the second Internet Protocol IP packet;
  • the device also includes:
  • a storage configured to store, in the in-memory database, an IP address of the second PDN acquired by the processor and an APN corresponding to the second PDN.
  • the transmitter is further configured to send, by using a modem, a second PDN registration request to the network side, where the second PDN registration request includes an APN of the second PDN, so that the network side is configured according to the APN of the second PDN.
  • the receiver is further configured to receive an IP address of the second PDN sent by the network side by using the Modem.
  • a ninth aspect of the present invention provides a traffic statistics apparatus, including:
  • the processor is configured to: when detecting the second Internet Protocol IP packet, obtain the packet length of the second IP packet, and add the packet length of the second IP packet to the statistics of the traffic, Obtaining a first statistic value of the long-term evolution LTE-based voice VoLTE traffic obtained by the modem Modem, and accumulating the first statistic value of the VoLTE traffic into the statistic value of the traffic.
  • the device further includes: a receiver, configured to receive a first statistic value of the VoLTE traffic sent by the Modem;
  • the processor is specifically configured to query the traffic data of the Modem to obtain a first statistic value of the VoLTE traffic.
  • a tenth aspect of the present invention provides a terminal device, including:
  • a modem modem configured to acquire a first IP address of the first IP packet, and obtain a packet length of the first IP packet when the first Internet Protocol IP packet is detected; and obtain the packet length from the in-memory database An access point name APN corresponding to the first IP address of the first IP packet; when the APN corresponding to the first IP address of the first IP packet is the APN of the first public data network PDN, The packet length of the first IP packet is added to the first statistic of the LTE-based voice VoLTE traffic, where the first PDN is a PDN required for establishing a bearer of the VoLTE service;
  • the application processor AP is configured to: obtain a second IP address of the second IP packet, and obtain a packet length of the second IP packet when the second IP packet is detected; and from the in-memory database Obtaining an APN corresponding to the second IP address of the second IP packet; and when the APN corresponding to the second IP address of the second IP packet is the APN of the first PDN, The packet length of the second IP packet is added to the second statistic of the VoLTE traffic.
  • the traffic statistics method, device, and terminal device obtained by the embodiment of the present invention obtain the first IP packet from the in-memory database and obtain the first IP address from the in-memory database.
  • the APN, and the APN corresponding to the first IP address of the first IP packet is the APN of the PDN required to establish the bearer of the VoLTE service, and the received packet length of the first IP packet is added to the VoLTE traffic.
  • the statistics of the VoLTE traffic are implemented, so that the statistics of the traffic generated when the user uses the LTE network for audio and video calls are compared with the statistics of the AP-side traffic in the prior art.
  • FIG. 1 is a flowchart of a traffic statistics method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a traffic statistics method according to another embodiment of the present invention.
  • FIG. 3 is a flowchart of a traffic statistics method according to another embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for collecting traffic statistics according to another embodiment of the present invention.
  • FIG. 5 is a flowchart of another method for traffic statistics according to another embodiment of the present invention.
  • FIG. 6 is a flowchart of a traffic statistics method according to another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a traffic statistics apparatus according to another embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of another traffic statistics apparatus according to another embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a traffic statistics apparatus according to another embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of another traffic statistics apparatus according to another embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a traffic statistics apparatus according to another embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a traffic statistics apparatus according to another embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a traffic statistics apparatus according to another embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a traffic statistics apparatus according to another embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of a terminal device according to another embodiment of the present invention.
  • LTE networks are becoming more and more popular. LTE networks can not only provide users with high-speed data services, but also provide users with high-quality audio and video services by using VoLTE technology, but because of the use of audio and video services.
  • the (IP Multimedia Subsystem, IMS) protocol stack is generally deployed on the modem side of the user equipment.
  • the AP cannot perform statistics on the traffic generated by the user using the audio and video services.
  • the traffic statistics method provided by the present invention can implement statistics on traffic generated during the process of using audio and video services by a user, and the specific implementation process is described in detail through the following embodiments.
  • the user equipment in the embodiment of the present invention may be a handheld device such as a mobile phone or a tablet PDA (PAD).
  • a handheld device such as a mobile phone or a tablet PDA (PAD).
  • PAD tablet PDA
  • An embodiment of the present invention provides a traffic statistics method. As shown in FIG. 1 , the method may include:
  • the modem detects the first Internet Protocol (IP) packet
  • IP Internet Protocol
  • the first IP address is when the first IP packet is a packet received by the modem.
  • the address is the source IP address of the first IP packet.
  • the first IP address is the destination IP address of the first IP packet.
  • the modem obtains an access point name (APN) corresponding to the first IP address of the first IP packet from the in-memory database.
  • APN access point name
  • the memory database stores at least one IP address and an APN corresponding to each IP address. After the first IP address of the first IP packet is obtained, the first IP address of the first IP packet can be matched with the IP address stored in the in-memory database, so as to obtain the first IP address from the in-memory database.
  • the APN corresponding to the first IP address of the IP packet is not limited to the IP address of the IP packet.
  • the Modem adds the packet length of the first IP packet to the VoLTE traffic. In the first statistical value.
  • the first PDN is a PDN required for establishing a bearer of the VoLTE service.
  • the modem can determine whether the APN corresponding to the first IP address of the first IP packet is a VoLTE.
  • the APN of the PDN required for the bearer of the service that is, the APN of the first PDN
  • the Modem will acquire the The packet length of an IP packet is added to the first statistic of the VoLTE traffic to implement statistics on the VoLTE traffic.
  • the traffic statistics method may further include: acquiring, by the Modem, an IP address of the first PDN, and storing the IP address of the first PDN and the APN of the first PDN in an in-memory database.
  • the traffic statistics method provided by the embodiment of the present invention may further include: Second statistic of VoLTE traffic, and accumulating the second statistic of VoLTE traffic The first statistical value of VoLTE traffic.
  • the Modem obtains the second statistic of the VoLTE traffic obtained by the AP.
  • the Modem may receive the second statistic of the VoLTE traffic sent by the AP.
  • the Modem queries the traffic data collected by the AP to obtain a second statistic value of the VoLTE traffic.
  • the Modem obtains the IP address of the first PDN, and the Modem may send the first PDN registration request to the network side.
  • the first PDN registration request includes the APN of the first PDN, so that the network side can be based on the first PDN.
  • the APN obtains the IP address of the first PDN; the Modem receives the IP address of the first PDN sent by the network side.
  • the traffic statistics method provided by the embodiment of the present invention further includes: the modem determines the VoLTE traffic, in order to save the user's traffic without affecting the user's use of the audio and video service. Whether the statistic value is greater than or equal to the limit value of the VoLTE traffic; when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic, the Modem transmits the VoLTE service according to the handover policy, where the VoLTE service is a VoLTE voice service or a VoLTE video. business.
  • the first statistic used by the Modem to determine whether the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic is used.
  • the value is the first statistic obtained by the Modem statistics in the step 103.
  • the Modem is used to determine whether the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic.
  • the first statistic value is a first statistic value obtained by accumulating the second statistic value of the VoLTE traffic obtained by the AP statistics to the first statistic value of the VoLTE traffic.
  • the traffic statistics method provided by the embodiment of the present invention further includes: the Modem receiving the limit value of the VoLTE traffic sent by the AP.
  • the traffic statistics method provided by the embodiment of the present invention further includes: the Modem receives the handover policy sent by the AP, where the handover policy is that the AP receives the user pair. The selection of the switching policy is triggered after the transmission.
  • the handover policy is that when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic, the transmission of the VoLTE voice service and the VoLTE video service are not restricted; the Modem transmits the VoLTE service according to the handover policy, and the specific :
  • the Modem transmits the collected voice data through the LTE network.
  • the modem transmits the collected voice data and image data through the LTE network.
  • the handover policy is that when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic, the transmission of the VoLTE voice service is not limited, and the transmission of the VoLTE video service is restricted; the Modem transmits the VoLTE service according to the handover policy, specifically Can be:
  • the Modem transmits the collected voice data through the LTE network.
  • the Modem switches the video mode to the voice mode, and the collected voice data is transmitted through the LTE network.
  • the handover policy is that when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic, the transmission of the VoLTE voice service and the VoLTE video service are restricted; the Modem transmits the VoLTE service according to the handover policy, and the specific one may be:
  • the Modem switches from the LTE network to the second generation mobile communication technology/2nd Generation/3rd Generation (2G/3G) network, and the collected voice data is passed through the circuit.
  • the circuit is switched in a Circuit Switching (CS) domain or a Packet Switch (PS) domain.
  • CS Circuit Switching
  • PS Packet Switch
  • the Modem switches from the LTE network to the 2G/3G network, and the collected voice data is transmitted through the CS domain, which refers to circuit switching fallback (Circuit) Switched FallBack, CSFB) technology.
  • CSFB circuit switching fallback
  • the Modem switches the video mode to the voice mode, and the collected voice data is transmitted through the CS domain or the PS domain.
  • the handover policy is to reduce the codec rate of the VoLTE voice service and reduce the transmission parameter of the VoLTE video service when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic.
  • the Modem transmits the VoLTE service according to the handover policy. Can be:
  • the Modem reduces the codec rate of the collected voice data.
  • the Modem reduces transmission parameters of the collected video data, where the transmission parameters of the video data include one or more of the following: resolution of image data in the video data, and image in the video data.
  • the traffic statistics method provided by the embodiment of the present invention further includes: the modem sends the first statistics of the VoLTE traffic to the AP.
  • the Modem obtains the first IP packet from the in-memory database according to the first IP address of the obtained first IP packet.
  • the APN corresponding to the IP address, and the APN corresponding to the first IP address of the first IP packet is the packet of the first IP packet obtained when the APN of the PDN required for the bearer of the VoLTE service is established.
  • the length is added to the first statistic of the VoLTE traffic to implement the statistics of the VoLTE traffic. Therefore, compared with the traffic of the AP side, the data can be generated when the user uses the LTE network for audio and video calls. Statistics of traffic.
  • Another embodiment of the present invention provides a traffic statistics method. As shown in FIG. 2, the method may include:
  • the AP detects the second IP packet, the second IP address of the second IP packet is obtained, and the packet length of the second IP packet is obtained.
  • the second IP address is the second IP address when the second IP packet is the packet received by the AP.
  • the source IP address of the second IP packet When the second IP packet is the packet that the AP needs to send to the network, the second IP address is the destination IP address of the second IP packet.
  • the AP acquires an APN corresponding to the second IP address of the second IP packet from the in-memory database.
  • the memory database stores at least one IP address and an APN corresponding to each IP address. After the AP obtains the second IP address of the second IP packet, the second IP address of the second IP packet is matched with the IP address stored in the in-memory database, so as to obtain the second IP address from the in-memory database. The APN corresponding to the second IP address of the IP packet.
  • the AP adds the packet length of the second IP packet to the second statistic of the VoLTE traffic.
  • the first PDN is a PDN required for establishing a bearer of the VoLTE service.
  • the operator is likely to set different charging standards.
  • the traffic generated by the user using the data service and the use of the VoLTE service are required.
  • the traffic is collected separately.
  • the AP can determine whether the APN corresponding to the second IP address of the second IP packet is The APN of the PDN required to establish the bearer of the VoLTE service, that is, the APN of the first PDN, and after determining that the APN corresponding to the second IP address of the second IP packet is the APN of the first PDN, the AP obtains the APN.
  • the packet length of the second IP packet is added to the second statistic of the VoLTE traffic.
  • the traffic statistics method provided by the embodiment of the present invention may further include: the AP sending the second statistics of the VoLTE traffic to the Modem.
  • the traffic statistics method provided by the embodiment of the present invention may further include: the AP acquiring the first statistic value of the VoLTE traffic obtained by the Modem statistics; the AP accumulating the first statistic value of the VoLTE traffic to the second statistic value of the VoLTE traffic; The AP displays the second statistical value of the VoLTE traffic to the user.
  • the second statistic of the VoLTE traffic displayed by the AP to the user is obtained by the AP.
  • the second statistic obtained after the first statistic of the VoLTE traffic is added to the second statistic of the VoLTE traffic.
  • the AP can directly directly measure the first statistic value of the VoLTE traffic obtained by the Modem. Displayed to the user.
  • the AP obtains the first statistic value of the VoLTE traffic obtained by the Modem.
  • the AP may receive the first statistic value of the VoLTE traffic sent by the Modem.
  • the AP may query the traffic data collected by the Modem to obtain the first statistic value of the VoLTE traffic.
  • the method for collecting traffic statistics may further include: when the APN corresponding to the second IP address of the second IP packet is the APN of the second PDN, the AP sets the packet length of the second IP packet. The statistics are added to the statistics of the data traffic to implement the statistics of the data traffic and the VoLTE traffic. The AP displays the statistics of the data traffic to the user.
  • the second PDN is the PDN required to establish the bearer of the data service.
  • the AP in step 201 detects the second IP packet.
  • the traffic statistics method provided by the embodiment of the present invention may further include: the AP acquiring the IP address of the second PDN; and the AP storing the IP address of the second PDN and the APN of the second PDN in the in-memory database.
  • the AP obtains the IP address of the second PDN, and the AP may send the second PDN registration request to the network side by using the modem.
  • the second PDN registration request includes the APN of the second PDN, so that the network side is configured according to the second PDN.
  • the APN obtains the IP address of the second PDN; the AP receives the IP address of the second PDN sent by the network side through the Modem.
  • the traffic statistics method obtains the second IP packet from the in-memory database according to the second IP address of the obtained second IP packet.
  • the APN corresponding to the second IP address of the second IP packet is obtained, and the APN corresponding to the second IP address of the second IP packet is obtained by the APN of the PDN required for establishing the bearer of the VoLTE service.
  • the packet length of the second IP packet is added to the second statistic of the VoLTE traffic to implement statistics on the data traffic and the VoLTE traffic.
  • Another embodiment of the present invention provides a traffic statistics method. As shown in FIG. 3, the method may include:
  • the AP obtains the packet length of the second IP packet.
  • the AP adds the packet length of the second IP packet to the statistics of the traffic.
  • the packet length of the second IP packet can be directly added to the statistics of the traffic.
  • the AP obtains a first statistic value of the VoLTE traffic obtained by using the Modem statistics.
  • the AP also needs to obtain the first statistic of the VoLTE traffic obtained by the Modem statistics, in order to ensure that all the traffic generated by the user is used.
  • the step 303 may be: the AP receives the first statistic value of the VoLTE traffic sent by the Modem.
  • the step 303 may be: the AP queries the traffic data of the Modem to obtain the first statistic of the VoLTE traffic.
  • the AP adds the first statistical value of the VoLTE traffic to the statistics of the traffic.
  • the AP may add the obtained first statistic value of the VoLTE traffic to the statistic value of the traffic to implement the user equipment. Statistics of all traffic. Further, the AP can also display the statistical statistics of the traffic statistics to the user for the convenience of the user.
  • the traffic statistics value displayed by the AP to the user is the traffic statistics obtained by the AP after the first statistical value of the VoLTE traffic obtained by the Modem is added to the traffic statistics.
  • the AP when the AP detects the second IP packet, the AP adds the packet length of the obtained second IP packet to the traffic statistics, and obtains the VoLTE traffic obtained by the Modem statistics. First statistic, and will be VoLTE traffic The first statistic value is added to the statistics of the traffic. Compared with the traffic on the AP side, the integrity of the traffic statistics is ensured.
  • Another embodiment of the present invention provides a traffic statistics method. As shown in FIG. 4, the method may include:
  • the Modem obtains an IP address of the first PDN.
  • the user equipment is powered on, or the flight mode is turned off, or is switched from the cell coverage of the 2G/3G network to the cell coverage of the IMS LTE network, or is switched from the cell coverage of the LTE network that does not support the VoLTE service.
  • the PDN of the LTE network that supports the VoLTE service is received, or when the indication of the PDN required to establish the VoLTE service is deactivated and the PDN activation is initiated and activated according to the indication, the Modem obtains the VoLTE service.
  • the required PDN is carried, that is, the IP address of the first PDN.
  • the obtaining, by the modem, the IP address of the first PDN may include: the Modem sends a first PDN registration request of the APN including the first PDN to the network side, and when the network side receives the first PDN registration request, the network side may be configured according to the The APN of the PDN obtains the IP address of the first PDN, and then sends the acquired IP address of the first PDN to the Modem, and the Modem can receive the IP address of the first PDN sent by the network side.
  • the Modem stores the IP address of the first PDN and the APN of the first PDN in an in-memory database.
  • the IP address of the first PDN After the IP address of the first PDN is obtained, the IP address of the first PDN and the APN of the first PDN are correspondingly stored in the in-memory database for subsequent use.
  • the in-memory database is used to store at least one IP address and an APN corresponding to each IP address, and the data stored in the in-memory database is erased when the user equipment is powered off.
  • the modem detects the first IP packet, obtains the first IP address of the first IP packet, and obtains the packet length of the first IP packet.
  • the first IP address is the source IP address of the first IP packet when the first IP packet is the packet received by the modem, and the first IP packet is sent to the network.
  • the first IP address is the destination IP address of the first IP packet.
  • the modem can parse the first IP packet to obtain the source IP address of the first IP packet, and obtain the first IP packet.
  • the source IP address is used as the first IP address, and the packet length of the first IP packet is also obtained.
  • the destination IP address of the first IP packet can be obtained by parsing the first IP packet, and the target of the obtained first IP packet is obtained.
  • the IP address is used as the first IP address, and the packet length of the first IP packet is also obtained.
  • the Modem obtains an APN corresponding to the first IP address of the first IP packet from the in-memory database.
  • the first IP address of the first IP packet can be matched with the IP address stored in the in-memory database, so as to obtain the same IP address from the in-memory database.
  • the APN corresponding to the first IP address of the first IP packet is obtained.
  • the modem After the modem obtains the APN corresponding to the first IP address of the first IP packet from the in-memory database, the modem can determine whether the obtained traffic is the VoLTE traffic. Whether the APN corresponding to the first IP address of the first IP packet is the APN of the PDN required for establishing the bearer of the VoLTE service, that is, the APN of the first PDN.
  • the Modem adds the packet length of the first IP packet to the first statistic of the VoLTE traffic.
  • the modem determines that the APN corresponding to the first IP address of the first IP packet is the APN of the first PDN, it indicates that the traffic generated by transmitting the first IP packet is VoLTE traffic, and the Modem can be configured.
  • the packet length of an IP packet is added to the first statistic of the VoLTE traffic to implement statistics on the VoLTE traffic.
  • the APN that is determined by the modem to be associated with the first IP address of the first IP packet is not the APN of the PDN required to establish the bearer of the VoLTE service, that is, when the first IP address is the first IP packet.
  • the APN corresponding to the address is not the APN of the first PDN. Modem does nothing to do.
  • the AP acquires an IP address of the second PDN.
  • the second PDN is a PDN required to establish a bearer of the data service.
  • the AP acquires the PDN required for establishing the bearer of the data service, that is, the IP address of the second PDN.
  • the acquiring the IP address of the second PDN by the AP may include: the AP sending the second PDN registration request of the APN of the second PDN to the network side by using the Modem, and when the network side receives the second PDN registration request, the network may Acquiring the IP address of the second PDN according to the APN of the second PDN, and then sending the acquired IP address of the second PDN to the Modem.
  • the Modem may set the IP address of the second PDN. The address is sent to the AP so that the AP receives the IP address of the second PDN.
  • data services in the embodiments of the present invention include, but are not limited to, Internet access, MMS, mobile phone version upgrade and update, and Global Positioning System (GPS) search and location.
  • GPS Global Positioning System
  • the AP stores the IP address of the second PDN and the APN of the second PDN in the in-memory database.
  • the acquired IP address of the second PDN and the APN of the second PDN may be stored in the in-memory database for subsequent use.
  • the AP detects the second IP packet, obtain the second IP address of the second IP packet, and obtain the packet length of the second IP packet.
  • the second IP address is the source IP address of the second IP packet when the second IP packet is the packet received by the AP.
  • the second IP address is the destination IP address of the second IP packet.
  • the source IP address of the second IP packet is obtained by parsing the second IP packet, and the obtained second IP packet is obtained.
  • the source IP address is used as the second IP address, and the packet length of the second IP packet is also obtained.
  • the target IP address of the second IP packet can be obtained by parsing the second IP packet, and The destination IP address of the second IP packet is obtained as the second IP address, and the packet length of the second IP packet is also obtained.
  • the AP acquires, from the in-memory database, an APN corresponding to the second IP address of the second IP packet.
  • the AP may match the second IP address of the second IP packet with the IP address stored in the in-memory database, so as to obtain the same from the in-memory database.
  • the APN corresponding to the second IP address of the second IP packet.
  • the AP can determine that the traffic generated by transmitting the second IP packet is VoLTE traffic or data traffic.
  • the APN corresponding to the second IP address of the second IP packet is the APN of the PDN required to establish the bearer of the VoLTE service, that is, the APN of the first PDN, or the APN of the PDN required to establish the bearer of the data service, that is, When the APN of the second PDN.
  • the AP adds the packet length of the second IP packet to the second statistic of the VoLTE traffic when the APN corresponding to the second IP address of the second IP packet is the APN of the first PDN.
  • the AP determines that the APN corresponding to the second IP address of the second IP packet is the APN of the first PDN, it indicates that the traffic generated by transmitting the second IP packet is VoLTE traffic, and the AP can The packet length of the second IP packet is added to the second statistic of the VoLTE traffic to implement statistics on the VoLTE traffic based on the AP.
  • the AP adds the packet length of the second IP packet to the statistics of the data traffic, and collects the statistics of the data traffic. The value is displayed to the user.
  • the AP determines that the APN corresponding to the second IP address of the second IP packet is the APN of the second PDN, it indicates that the traffic generated by transmitting the second IP packet is data traffic, and the AP can The packet length of the IP packet is added to the statistics of the data traffic, and the statistics of the data traffic obtained by the statistics can be displayed to the user for query.
  • the AP may further determine whether the statistical value of the statistical data traffic is greater than or equal to a limit value of the data traffic set by the user, and the statistical value of the data traffic is greater than or equal to the data traffic set by the user. When the value is limited, the data that needs to be transferred is limited.
  • step 401 - step 405 and step 406 - step 411 has no sequential relationship.
  • the VoLTE services in the IMS protocol stack are deployed in the In the case of the Modem side, after performing step 405, steps 414-417 may be directly performed, but it is considered that some VoLTE services using the IMS protocol stack may be deployed on the AP side, so before performing step 414, it is still required to be executed. Step 406 - Step 413.
  • the Modem obtains a second statistic value of the VoLTE traffic obtained by the AP.
  • the second statistical value of the VoLTE traffic obtained by the Modem obtaining the AP statistics may include two modes.
  • Mode 1 The Modem receives the second statistic of the VoLTE traffic sent by the AP.
  • the AP can periodically report the second statistic of the VoLTE traffic that is collected by the AP, so that the modem can receive the second statistic of the VoLTE traffic sent by the AP.
  • the modem can actively query the traffic data collected by the AP to obtain the second statistic of the VoLTE traffic that is collected by the AP.
  • the Modem adds the second statistic value of the VoLTE traffic to the first statistic value of the VoLTE traffic.
  • the second statistic of the VoLTE traffic obtained by the AP may be added to the first statistic of the VoLTE traffic to obtain all the generated VoLTE traffic.
  • the Modem receives the limit value of the VoLTE traffic sent by the AP.
  • the user can set a limit value for data traffic and VoLTE traffic respectively.
  • the AP may send the limit value of the VoLTE traffic set by the user to the modem.
  • the Modem determines whether the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic.
  • the first statistic used by the Modem to determine whether the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic is used.
  • the value is the first statistic obtained by the Modem statistics in the step 405.
  • the Modem is used to determine whether the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic.
  • the first statistic value is the first statistic value obtained by the Modem accumulating the second statistic value of the VoLTE traffic obtained by the AP statistics to the first statistic value of the VoLTE traffic in step 413.
  • the Modem receives the handover policy sent by the AP.
  • the switching policy is sent after the AP receives the trigger of the selection of the switching policy by the user. Specifically, after the Modem receives the limit value of the VoLTE traffic sent by the AP, it may be determined whether the first statistic of the measured VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic, and the first statistic value of the VoLTE traffic is determined to be greater than When it is equal to the limit value of the VoLTE traffic, it receives the user-selected handover policy sent by the AP.
  • the Modem transmits the VoLTE service according to the handover policy.
  • the VoLTE service is a VoLTE voice service or a VoLTE video service.
  • the Modem receives the handover policy sent by the AP, when the VoLTE service needs to be transmitted at this time, the Modem needs to transmit the VoLTE service according to the handover policy selected by the user. .
  • the handover policy is that when the first statistic of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic, the transmission of the VoLTE voice service and the VoLTE video service are not limited.
  • the Modem transmits the VoLTE service according to the handover policy. Specifically, when the VoLTE service is a VoLTE voice service, the Modem transmits the collected voice data through the LTE network; when the VoLTE service is In the VoLTE video service, Modem transmits the collected voice data and image data through the LTE network.
  • the Modem transmits the VoLTE service according to the handover policy. Specifically, when the VoLTE service is a VoLTE voice service, the Modem transmits the collected voice data through the LTE network. When the VoLTE service is a VoLTE video service, the Modem video. The mode is switched to the voice mode, and the collected voice data is transmitted through the LTE network.
  • the handover policy is that when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic, the transmission of the VoLTE voice service and the VoLTE video service are restricted.
  • the Modem transmits the VoLTE service according to the handover policy, and specifically, when the VoLTE service is a VoLTE voice service, the LTE network is switched to the 2G/3G network, and the collected voice data is used to pass the CS domain or the PS domain.
  • the VoLTE service is a VoLTE video service
  • the Modem switches the video mode to the voice mode and transmits the collected voice data through the CS domain or the PS domain.
  • the first statistic of the VoLTE traffic is less than the limit of the VoLTE traffic, for example, when the VoLTE traffic is re-stated, the VoLTE function of the user equipment needs to be re-enabled.
  • the handover policy is to reduce the codec rate of the VoLTE voice service and reduce the transmission parameter of the VoLTE video service when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic.
  • the Modem transmits the VoLTE service according to the handover policy. Specifically, when the VoLTE service is a VoLTE voice service, the Modem reduces the codec rate of the collected voice data.
  • Adaptive Multi-Rate-Narrowband (Adultive Multi-Rate-Narrowband) is used to encode speech data.
  • the codec rates of different coding modes are shown in Table 1.
  • Adaptive Multi-Rate Wideband Coding (Adaptive Multi) -Rate-Wideband, AMR-WB)
  • AMR-WB Adaptive Multi-Rate Wideband Coding
  • Coding mode Codec rate 0 4.75kbps 1 5.15kbps 2 5.90kbps 3 6.70kbps 4 7.40kbps 5 7.95kbps 6 10.20kbps 7 12.20kbps
  • Coding mode Codec rate 0 6.60kbps 1 8.85kbps 2 12.65kbps 3 14.25kbps 4 15.85kbps 5 18.25kbps 6 19.85kbps 7 23.05kbps 8 23.85kbps
  • the Modem can change the coding mode in the current coding mode to reduce the codec rate of the collected voice data.
  • the currently used coding mode is 4 (corresponding codec rate). If the first statistic of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic, the voice data to be transmitted is coded and decoded in the coding mode 2, that is, the 5.90 kbps code is used.
  • the decoding rate encodes and decodes the voice data.
  • the encoding and decoding rate of the collected voice data can be reduced by changing the encoding mode in the current encoding mode.
  • the purpose of reducing the codec rate of the collected voice data can also be achieved by changing the current coding mode.
  • the current coding mode is 2 (corresponding codec rate is 12.65 kbps), then the first is VoLTE traffic.
  • the voice data to be transmitted may be coded and decoded in the current coding mode (the corresponding codec rate is 8.85 kbps), or the current coding mode may be AMR-NB, and encodes and decodes in coding mode 7 (corresponding codec rate is 12.20 kbps) in AMR-NB coding mode.
  • the manner of reducing the codec rate of the collected voice data may be selected according to the requirements of the actual application scenario.
  • the embodiment of the present invention does not specifically limit the specific manner in which the codec rate of the collected voice data is reduced.
  • the Modem reduces transmission parameters of the collected video data, where the transmission parameters of the video data include one or more of the following: resolution of image data in the video data, and image in the video data.
  • the remote device that communicates with itself can also reduce the resolution of the image data in the collected video data and/or the frame rate of the image data in the video data through SDP negotiation.
  • the handover policy in the embodiment of the present invention may also be automatically selected when the Modem determines that the network is congested; or in the case that the VoLTE traffic does not reach the limit value of the VoLTE traffic, the user saves Direct flow selection After being triggered, it is sent by the AP to the Modem.
  • the method may further include Following steps 418-420.
  • the AP obtains a first statistic value of the VoLTE traffic obtained by using the Modem statistics.
  • the first statistical value of the VoLTE traffic obtained by the AP to obtain the Modem statistics may include two modes.
  • Manner 1 The AP receives the first statistic of the VoLTE traffic sent by the Modem.
  • the modem can periodically report the first statistic of the VoLTE traffic that is collected by the modem, so that the AP can receive the first statistic of the VoLTE traffic sent by the modem.
  • Manner 2 The AP queries the traffic data collected by the Modem to obtain the first statistic of the VoLTE traffic.
  • the AP can actively query the traffic data collected by the modem to obtain the first statistic of the VoLTE traffic that is collected by the modem.
  • the AP adds the first statistic value of the VoLTE traffic to the second statistic value of the VoLTE traffic.
  • the first statistic value of the VoLTE traffic may be added to the second statistic of the VoLTE traffic to obtain all generated VoLTE traffic.
  • the AP displays the second statistic value of the VoLTE traffic to the user.
  • the second statistic of the VoLTE traffic displayed by the AP to the user in step 420 is the Modem of the AP.
  • the second statistical value obtained after the first statistical value of the obtained VoLTE traffic is added to the second statistical value of the VoLTE traffic.
  • step 405 in order to display the statistically obtained VoLTE traffic to the user, step 405 is performed.
  • step 418 is performed, and the first statistical value of the obtained VoLTE traffic is directly displayed to the user, so that the VoLTE traffic is displayed to the user for query by the user.
  • the VoLTE traffic generated by the user during a certain call is also counted, that is, during the current call of the user, step 403-step 405 is repeatedly performed to obtain the user in the present
  • the first statistic of the VoLTE traffic generated during the current call is sent to the AP, so that the AP displays the VoLTE traffic generated during the call to the user.
  • the VoLTE traffic generated by transmitting the VoLTE voice service and the VoLTE traffic generated by transmitting the VoLTE video service may be separately counted.
  • the PDN required to establish a VoLTE voice service bearer is the same as the PDN required to establish a VoLTE video service bearer, and both are the first PDN
  • the port number of the port transmitting the first IP packet may be continuously determined, and the port number of the port transmitting the first IP packet is the transmission VoLTE.
  • the port number of the port of the voice service is accumulated in the statistics of the VoLTE voice traffic.
  • the port number of the port that transmits the first IP packet is the port that transmits the VoLTE video service.
  • the port number of the first IP packet is accumulated in the statistics of the VoLTE video traffic.
  • the step S104 may be performed to directly determine the first IP packet.
  • the APN corresponding to the first IP address is the APN of the PDN required to establish the VoLTE voice service bearer, or the APN of the PDN required to establish the VoLTE video service bearer, and the APN corresponding to the first IP address of the first IP packet.
  • the packet length of the first IP packet is accumulated in the statistics of the VoLTE voice traffic, and the APN corresponding to the first IP address of the first IP packet is used.
  • the packet length of the first IP packet is accumulated into the statistics of the VoLTE video traffic.
  • the process can also count its corresponding traffic to achieve separate statistics. The purpose of the restrictions separately.
  • the Modem obtains the first IP packet from the in-memory database according to the first IP address of the obtained first IP packet.
  • the APN corresponding to the IP address, and the APN corresponding to the first IP address of the first IP packet is the packet of the first IP packet obtained when the APN of the PDN required for the bearer of the VoLTE service is established.
  • the length is added to the first statistic of the VoLTE traffic to implement the statistics of the VoLTE traffic. Therefore, compared with the traffic of the AP side, the data can be generated when the user uses the LTE network for audio and video calls. Statistics of traffic.
  • the AP detects the second IP packet, obtains an APN corresponding to the second IP address of the second IP packet from the in-memory database according to the second IP address of the obtained second IP packet, and
  • the APN corresponding to the second IP address of the second IP packet is the APN of the PDN required to establish the bearer of the VoLTE service
  • the length of the obtained second IP packet is added to the second of the VoLTE traffic.
  • the statistic value when the APN corresponding to the second IP address of the second IP packet is the APN of the PDN required to establish the data service bearer, the packet length of the obtained second IP packet is added to the data traffic.
  • the data traffic and the VoLTE traffic are separately counted, and on this basis, the data traffic and the VoLTE traffic can be separately restricted to avoid the occurrence of a false limit.
  • the traffic of the user can be saved without affecting the user's use of the audio and video service.
  • a plurality of handover strategies are provided for the user to select, so that in the case where the VoLTE traffic is limited, the user experience can be improved according to the transmission of the VoLTE service.
  • Another embodiment of the present invention provides a traffic statistics method. As shown in FIG. 6, the method may include:
  • the Modem obtains the IP address of the first PDN.
  • the Modem stores the IP address of the first PDN and the APN of the first PDN in an in-memory database.
  • the modem detects the first IP packet, obtain the first IP address of the first IP packet, and obtain the packet length of the first IP packet.
  • the modem obtains an APN corresponding to the first IP address of the first IP packet from the in-memory database.
  • the modem After the modem obtains the APN corresponding to the first IP address of the first IP packet from the in-memory database, the modem can determine whether the obtained traffic is the VoLTE traffic. Whether the APN corresponding to the first IP address of the first IP packet is the APN of the PDN required for establishing the bearer of the VoLTE service, that is, the APN of the first PDN.
  • the Modem adds the packet length of the first IP packet to the first statistic of the VoLTE traffic.
  • the modem determines that the obtained APN corresponding to the first IP address of the first IP packet is not the APN of the PDN required to establish the bearer of the VoLTE service, that is, the first IP address corresponding to the first IP packet.
  • Modem does not do any processing.
  • the AP obtains the packet length of the second IP packet.
  • the AP adds the packet length of the second IP packet to the statistics of the traffic.
  • the AP obtains a first statistic value of the VoLTE traffic obtained by using the Modem statistics.
  • the step 508 may be: the AP receives the first statistic of the VoLTE traffic sent by the Modem.
  • the step 508 may be: the AP queries the traffic data of the Modem to obtain the first statistic of the VoLTE traffic.
  • the AP adds the first statistic value of the VoLTE traffic to the statistic value of the traffic.
  • the AP may add the obtained first statistic value of the VoLTE traffic to the statistic value of the traffic to implement the user equipment. Statistics of all traffic. Further, the AP can also display the statistical statistics of the traffic statistics to the user for the convenience of the user.
  • the traffic statistics value displayed by the AP to the user is added by the AP to the first statistical value of the VoLTE traffic obtained by the Modem statistics.
  • step 501 to step 509 in the embodiment of the present invention reference may be made to the specific content of the corresponding content in step 401-step 405 in another embodiment of the present invention and step 301-step 304 in another embodiment. The description of the embodiments of the present invention will not be repeated here.
  • the Modem statistics obtains the first statistics value of the VoLTE traffic, and when the AP detects the second IP packet, the AP adds the packet length of the second IP packet to the traffic statistics. And obtaining the first statistic value of the VoLTE traffic obtained by the Modem statistics, and adding the first statistic value of the VoLTE traffic to the statistic value of the traffic, and comparing with the traffic of the AP side in the prior art, Ensure the integrity of traffic statistics.
  • the device may include: an obtaining unit 61 and an accumulating unit 62.
  • the obtaining unit 61 is configured to: when the first Internet Protocol IP packet is detected, acquire the first IP address of the first IP packet, and obtain the packet length of the first IP packet, from the in-memory database Obtaining an access point name APN corresponding to the first IP address of the first IP packet.
  • the accumulating unit 62 is configured to: when the APN corresponding to the first IP address of the first IP packet acquired by the acquiring unit 61 is an APN of the first public data network PDN, the first IP packet is used.
  • the packet length is added to the first statistic of the Longitudinal Evolution LTE-based voice VoLTE traffic, wherein the first PDN is a PDN required to establish a bearer of the VoLTE service.
  • the acquiring unit 61 is further configured to acquire an IP address of the first PDN before the detecting the first Internet Protocol IP packet.
  • the apparatus may further include: a storage unit 63.
  • the storage unit 63 is configured to store the IP address of the first PDN acquired by the acquiring unit 61 and the APN corresponding to the first PDN in the in-memory database.
  • the first IP address is the source IP address of the first IP packet; and the first IP packet is the packet that the traffic statistics device needs to send to the network side.
  • the first IP address is a target IP address of the first IP packet.
  • the acquiring unit 61 is further configured to acquire a second statistic value of the VoLTE traffic that is obtained by the application processor AP.
  • the accumulating unit 62 is further configured to accumulate a second statistic value of the VoLTE traffic acquired by the acquiring unit 61 into a first statistic value of the VoLTE traffic.
  • the acquiring unit 61 is configured to receive a second statistic of the VoLTE traffic sent by the AP, or query the traffic data collected by the AP to obtain the VoLTE traffic. The second statistic.
  • the acquiring unit 61 is specifically configured to send a first PDN registration request to the network side, where the first PDN registration request includes an APN of the first PDN, so that the network The side acquires an IP address of the first PDN according to the APN of the first PDN, and receives an IP address of the first PDN sent by the network side.
  • the device may further include: a determining unit 64 and a transmitting unit 65.
  • the determining unit 64 is configured to determine whether the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic.
  • the transmitting unit 65 is configured to: when the determining unit 64 determines that the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, transmit a VoLTE service according to a handover policy, where the VoLTE service is VoLTE Voice service or VoLTE video service.
  • the device may further include: a receiving unit 66.
  • the receiving unit 66 is configured to receive, after the determining unit 64 determines whether the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, receive a limit value of the VoLTE traffic sent by the AP.
  • the receiving unit 66 is further used in The transmission unit 65 receives the handover policy sent by the AP before transmitting the VoLTE service according to the handover policy, where the handover policy is sent after the AP receives the trigger of the selection of the handover policy by the user.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic, the VoLTE voice service and the VoLTE video service are not transmitted. Restricted.
  • the transmitting unit 65 is configured to: when the VoLTE service is the VoLTE voice service, transmit the collected voice data through an LTE network; when the VoLTE service is the VoLTE video service, collect the The voice data and image data are transmitted over the LTE network.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic, the transmission of the VoLTE voice service is not restricted, and the VoLTE video is used. The transmission of the service is limited.
  • the transmitting unit 65 is configured to: when the VoLTE service is the VoLTE voice service, transmit the collected voice data through an LTE network; when the VoLTE service is the VoLTE video service, the video mode is used. Switching to voice mode and transmitting the collected voice data through the LTE network.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, the VoLTE voice service and the VoLTE video service are both transmitted. limit.
  • the transmitting unit 65 is specifically configured to: when the VoLTE service is the VoLTE voice service, switch from the LTE network to the second generation mobile communication technology 2G/third generation mobile communication technology 3G network, and collect the collected voice Data is transmitted through a circuit switched CS domain or a packet switched PS domain; when the VoLTE service is the VoLTE video service, the video mode is switched to a voice mode, and the collected voice data is passed through the CS domain or the The PS domain is transmitted.
  • the switching policy is to reduce the codec rate of the VoLTE voice service and reduce the VoLTE when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic. Transmission of video services number.
  • the transmitting unit 65 is configured to: when the VoLTE service is the VoLTE voice service, reduce a codec rate of the collected voice data; when the VoLTE service is the VoLTE video service, reduce the collected The transmission parameters of the video data.
  • the transmission parameter of the video data includes one or more of the following: a resolution of image data in the video data, a frame rate of image data in the video data, and a voice data in the video data. Decoding rate.
  • the device may further include: a sending unit 67.
  • a sending unit configured to: after the accumulating unit 62 adds the packet length of the first IP packet to the first statistic value of the Longitudinal Evolution LTE-based voice VoLTE traffic, obtain the location obtained by the accumulating unit 62 The first statistical value of the VoLTE traffic is sent to the AP.
  • the traffic statistics device when detecting the first IP packet, obtains the first IP packet from the in-memory database according to the first IP address of the obtained first IP packet.
  • the length of the packet of the first IP packet to be obtained when the APN corresponding to the first IP address of the IP address is the APN of the PDN required to establish the bearer of the VoLTE service.
  • the statistic is added to the first statistic of the VoLTE traffic to implement statistics on the VoLTE traffic. Therefore, compared with the traffic on the AP side, the LTE network is used to perform audio and video calls. Statistics of traffic.
  • the AP detects the second IP packet, obtains an APN corresponding to the second IP address of the second IP packet from the in-memory database according to the second IP address of the obtained second IP packet, and
  • the APN corresponding to the second IP address of the second IP packet is the APN of the PDN required to establish the bearer of the VoLTE service
  • the length of the obtained second IP packet is added to the second of the VoLTE traffic.
  • the second IP The APN corresponding to the second IP address of the packet is the APN of the PDN required to establish the data service
  • the packet length of the second IP packet is added to the statistics of the data traffic to implement the data.
  • Traffic and VoLTE traffic are separately counted, and on this basis, data traffic and VoLTE traffic can be separately restricted to avoid the occurrence of a false limit.
  • the traffic of the user can be saved without affecting the user's use of the audio and video service.
  • a plurality of handover strategies are provided for the user to select, so that in the case where the VoLTE traffic is limited, the user experience can be improved according to the transmission of the VoLTE service.
  • the device may include: an obtaining unit 71 and an accumulating unit 72.
  • the obtaining unit 71 is configured to acquire a second IP address of the second IP packet, and obtain a packet length of the second IP packet, from the in-memory database, when the second Internet Protocol IP packet is detected. Obtaining an access point name APN corresponding to the second IP address of the second IP packet.
  • the accumulating unit 72 is configured to: when the APN corresponding to the second IP address of the second IP packet acquired by the acquiring unit 71 is the APN of the first public data network PDN, the second IP packet is used.
  • the packet length is added to a second statistic of the Longitudinal Evolution LTE-based voice VoLTE traffic, wherein the first PDN is a PDN required to establish a bearer of the VoLTE service.
  • the second IP address is the source IP address of the second IP packet, when the second IP packet is the packet received by the traffic statistics device;
  • the second IP address is a target IP address of the second IP packet.
  • the apparatus may further include: a sending unit 73.
  • the sending unit 73 is configured to: after the accumulating unit 72 adds the packet length of the IP packet to the second statistic of the Longitudinal Evolution LTE-based voice VoLTE traffic, send the VoLTE traffic to the modem Modem. Two statistical values.
  • the acquiring unit 71 is further configured to acquire The first statistical value of the VoLTE traffic obtained by the Modem statistics.
  • the accumulating unit 72 is further configured to accumulate a first statistic value of the VoLTE traffic into a second statistic value of the VoLTE traffic.
  • the device may also include a display unit 74.
  • the display unit 74 is configured to display the second statistical value of the VoLTE traffic obtained by the accumulating unit 72 to the user.
  • the acquiring unit 71 is configured to receive the first statistic value of the VoLTE traffic sent by the Modem, or query the traffic data of the Modem to obtain the VoLTE traffic. The first statistic.
  • the accumulating unit 72 is further configured to: when the APN corresponding to the second IP address of the second IP packet acquired by the acquiring unit 71 is the APN of the second PDN, The packet length of the second IP packet is added to the statistics of the data traffic.
  • the second PDN is a PDN required to establish a bearer of a data service.
  • the display unit 74 is further configured to display the statistical value of the data traffic obtained by the accumulating unit 72 to the user.
  • the acquiring unit 71 is further configured to acquire an IP address of the second PDN before the acquiring unit 71 detects the second Internet Protocol IP packet.
  • the apparatus may further include: a storage unit 75.
  • the storage unit 75 is configured to store the IP address of the second PDN acquired by the obtaining unit 71 and the APN corresponding to the second PDN in the in-memory database.
  • the acquiring unit 71 is specifically configured to send a second PDN registration request to the network side by using the Modem, where the second PDN registration request includes the APN of the second PDN.
  • the network side acquires an IP address of the second PDN according to the APN of the second PDN, and receives an IP address of the second PDN that is sent by the network side by using the Modem.
  • the traffic statistics device when detecting the first IP packet, obtains the first IP packet from the in-memory database according to the first IP address of the obtained first IP packet.
  • the length of the packet of the first IP packet to be obtained when the APN corresponding to the first IP address of the IP address is the APN of the PDN required to establish the bearer of the VoLTE service.
  • the statistic is added to the first statistic of the VoLTE traffic to implement statistics on the VoLTE traffic. Therefore, compared with the traffic on the AP side, the LTE network is used to perform audio and video calls. Statistics of traffic.
  • the AP detects the second IP packet, obtains an APN corresponding to the second IP address of the second IP packet from the in-memory database according to the second IP address of the obtained second IP packet, and
  • the APN corresponding to the second IP address of the second IP packet is the APN of the PDN required to establish the bearer of the VoLTE service
  • the length of the obtained second IP packet is added to the second of the VoLTE traffic.
  • the statistic value when the APN corresponding to the second IP address of the second IP packet is the APN of the PDN required to establish the data service bearer, the packet length of the obtained second IP packet is added to the data traffic.
  • the data traffic and the VoLTE traffic are separately counted, and on this basis, the data traffic and the VoLTE traffic can be separately restricted to avoid the occurrence of a false limit.
  • the traffic of the user can be saved without affecting the user's use of the audio and video service.
  • a plurality of handover strategies are provided for the user to select, so that in the case where the VoLTE traffic is limited, the user experience can be improved according to the transmission of the VoLTE service.
  • the device may include: an obtaining unit 81 and an accumulating unit 82.
  • the obtaining unit 81 is configured to obtain a packet length of the second IP packet when the second Internet Protocol IP packet is detected.
  • the accumulating unit 82 is configured to add the packet length of the second IP packet obtained by the acquiring unit 81 to the statistical value of the traffic.
  • the obtaining unit 81 is further configured to obtain the statistics of the modem Modem.
  • the accumulating unit 82 is further configured to accumulate a first statistic value of the VoLTE traffic acquired by the acquiring unit 81 into a statistic value of the traffic.
  • the acquiring unit 81 is configured to receive the first statistics of the VoLTE traffic sent by the Modem, or query the traffic data of the Modem to obtain the VoLTE traffic. The first statistic.
  • the traffic statistics device collects the first statistical value of the VoLTE traffic.
  • the AP detects the second IP packet, the AP adds the packet length of the second IP packet to the traffic statistics. And obtaining the first statistic value of the VoLTE traffic obtained by the Modem statistics, and adding the first statistic value of the VoLTE traffic to the statistic value of the traffic, and comparing with the traffic of the AP side in the prior art, ensuring The integrity of the traffic statistics.
  • the embodiment of the invention provides a traffic statistics device. As shown in FIG. 12, the device may include a processor 91.
  • the processor 91 is configured to: when detecting the first Internet Protocol IP packet, obtain the first IP address of the first IP packet, and obtain the packet length of the first IP packet, from the in-memory database. Obtaining an access point name APN corresponding to the first IP address of the first IP packet, when the APN corresponding to the first IP address of the first IP packet is the APN of the first public data network PDN, Adding the packet length of the first IP packet to the first statistic of the Longitudinal Evolution LTE-based voice VoLTE traffic, where the first PDN is a PDN required for establishing a bearer of the VoLTE service.
  • the processor 91 is further configured to acquire an IP address of the first PDN before the detecting the first Internet Protocol IP packet.
  • the device may also include a memory 92.
  • the memory 92 is configured to store the IP address of the first PDN acquired by the processor 91 and the APN corresponding to the first PDN in the in-memory database.
  • the first IP address is the source IP address of the first IP packet, when the first IP packet is the packet received by the traffic statistics device;
  • the first IP address is a target IP address of the first IP packet.
  • the processor 91 is further configured to obtain a second statistic value of the VoLTE traffic that is obtained by the application processor AP, and add the second statistic value of the VoLTE traffic to the statistic.
  • the first statistical value of the VoLTE traffic is described.
  • the device may further include: a receiver 93, configured to receive a second statistic value of the VoLTE traffic sent by the AP.
  • the processor 91 is configured to query the traffic data collected by the AP to obtain a second statistic value of the VoLTE traffic.
  • the device may further include: a transmitter 94, configured to send a first PDN registration request to the network side, where the first PDN registration request includes an APN of the first PDN, The network side acquires an IP address of the first PDN according to the APN of the first PDN.
  • the receiver 94 is further configured to receive an IP address of the first PDN sent by the network side.
  • the processor 91 is further configured to determine whether a first statistic of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, where the first statistic of the VoLTE traffic is performed.
  • the VoLTE service is transmitted according to the handover policy, where the VoLTE service is a VoLTE voice service or a VoLTE video service.
  • the receiver 94 is further configured to: before the processor 91 determines whether the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, The limit value of the VoLTE traffic sent by the AP.
  • the receiver 94 is further configured to receive, before the processor 91 transmits the VoLTE service according to the handover policy, The handover policy, wherein the handover policy is sent after the AP receives a trigger for selection of the handover policy by a user.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic, the VoLTE voice service and the VoLTE video service are not transmitted. Restricted.
  • the processor 91 is configured to: when the VoLTE service is the VoLTE voice service, transmit the collected voice data through an LTE network; when the VoLTE service is the VoLTE video service, collect the The voice data and image data are transmitted over the LTE network.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic, the transmission of the VoLTE voice service is not restricted, and the VoLTE video is used. The transmission of the service is limited.
  • the processor 91 is configured to: when the VoLTE service is the VoLTE voice service, transmit the collected voice data through an LTE network; when the VoLTE service is the VoLTE video service, the video mode is used. Switching to voice mode and transmitting the collected voice data through the LTE network.
  • the switching policy is that when the first statistic value of the VoLTE traffic is greater than or equal to a limit value of the VoLTE traffic, the VoLTE voice service and the VoLTE video service are both transmitted. limit.
  • the processor 91 is specifically configured to: when the VoLTE service is the VoLTE voice service, switch from the LTE network to the second generation mobile communication technology 2G/third generation mobile communication technology 3G network, and collect the collected voice Data is transmitted through a circuit switched CS domain or a packet switched PS domain; when the VoLTE service is the VoLTE video service, the video mode is switched to a voice mode, and the collected voice data is passed through the CS domain or the The PS domain is transmitted.
  • the switching policy is to reduce the codec rate of the VoLTE voice service and reduce the VoLTE when the first statistic value of the VoLTE traffic is greater than or equal to the limit value of the VoLTE traffic. Transmission parameters of the video service.
  • the processor 91 is configured to: when the VoLTE service is the VoLTE voice service, reduce a codec rate of the collected voice data; when the VoLTE service is the VoLTE video service, reduce the collected The transmission parameters of the video data.
  • the transmission parameter of the video data includes one or more of the following: a resolution of image data in the video data, a frame rate of image data in the video data, and a voice data in the video data. Decoding rate.
  • the transmitter 94 is further configured to: in the processor 91, accumulate the packet length of the first IP packet to the first of the Longitudinal Evolution LTE-based voice VoLTE traffic. After the statistic value, the first statistic value of the VoLTE traffic obtained by the processor 91 is sent to the AP.
  • the traffic statistics device when detecting the first IP packet, obtains the first IP packet from the in-memory database according to the first IP address of the obtained first IP packet.
  • the length of the packet of the first IP packet to be obtained when the APN corresponding to the first IP address of the IP address is the APN of the PDN required to establish the bearer of the VoLTE service.
  • the statistic is added to the first statistic of the VoLTE traffic to implement statistics on the VoLTE traffic. Therefore, compared with the traffic on the AP side, the LTE network is used to perform audio and video calls. Statistics of traffic.
  • the AP detects the second IP packet, obtains an APN corresponding to the second IP address of the second IP packet from the in-memory database according to the second IP address of the obtained second IP packet, and
  • the APN corresponding to the second IP address of the second IP packet is the APN of the PDN required to establish the bearer of the VoLTE service
  • the length of the obtained second IP packet is added to the second of the VoLTE traffic.
  • the statistic value when the APN corresponding to the second IP address of the second IP packet is the APN of the PDN required to establish the data service bearer, the packet length of the obtained second IP packet is added to the data traffic.
  • data traffic and VoLTE traffic can be separately restricted to avoid the occurrence of a false limit.
  • the traffic of the user can be saved without affecting the user's use of the audio and video service.
  • a plurality of handover strategies are provided for the user to select, so that in the case where the VoLTE traffic is limited, the user experience can be improved according to the transmission of the VoLTE service.
  • the device may include: a processor 1001.
  • the processor 1001 is configured to: when detecting the second Internet Protocol IP packet, obtain the second IP address of the second IP packet, and obtain the packet length of the second IP packet from the in-memory database. Obtaining an access point name APN corresponding to the second IP address of the second IP packet, when the APN corresponding to the second IP address of the second IP packet is the APN of the first public data network PDN, The packet length of the second IP packet is added to a second statistic of the LTE-based voice VoLTE traffic, where the first PDN is a PDN required for establishing a bearer of the VoLTE service.
  • the second IP address is the source IP address of the second IP packet, when the second IP packet is the packet received by the traffic statistics device;
  • the second IP address is a target IP address of the second IP packet.
  • the device may further include: a transmitter 1002.
  • the transmitter 1002 is configured to: after the processor 1001 adds the packet length of the IP packet to the second statistic of the Longitudinal Evolution LTE-based voice VoLTE traffic, send the VoLTE traffic to the modem Modem. Two statistical values.
  • the processor 1001 is further configured to obtain a first statistic value of the VoLTE traffic obtained by using the Modem statistics, and add the first statistic value of the VoLTE traffic to the VoLTE traffic.
  • the second statistical value of the VoLTE traffic is displayed to the user.
  • the device may further include: a receiver 1003, configured to receive a first statistic of the VoLTE traffic sent by the Modem. value.
  • the processor 1001 is configured to query the traffic data of the Modem to obtain a first statistic value of the VoLTE traffic.
  • the processor 1001 is further configured to: when the APN corresponding to the second IP address of the second IP packet is the APN of the second PDN, the second IP The packet length of the packet is added to the statistic value of the data traffic, and the statistic value of the data traffic is displayed to the user, where the second PDN is a PDN required for establishing a bearer of the data service.
  • the processor 1001 is further configured to acquire an IP address of the second PDN before the detecting the second Internet Protocol IP packet.
  • the apparatus can also include a memory 1004.
  • the memory 1004 is configured to store the IP address of the second PDN acquired by the processor 1001 and the APN corresponding to the second PDN in the in-memory database.
  • the transmitter 1002 is further configured to send, by using a modem, a second PDN registration request to the network side, where the second PDN registration request includes an APN of the second PDN, so that The network side acquires an IP address of the second PDN according to the APN of the second PDN.
  • the receiver 1003 is further configured to receive an IP address of the second PDN sent by the network side by using the Modem.
  • the traffic statistics device when detecting the first IP packet, obtains the first IP packet from the in-memory database according to the first IP address of the obtained first IP packet.
  • the length of the packet of the first IP packet to be obtained when the APN corresponding to the first IP address of the IP address is the APN of the PDN required to establish the bearer of the VoLTE service.
  • the statistics of the VoLTE traffic are implemented in the first statistic, so that the statistics of the traffic generated when the user uses the LTE network for audio and video calls are compared with the statistics of the AP-side traffic.
  • the AP detects the second IP packet, obtains an APN corresponding to the second IP address of the second IP packet from the in-memory database according to the second IP address of the obtained second IP packet, and
  • the APN corresponding to the second IP address of the second IP packet is the APN of the PDN required to establish the bearer of the VoLTE service
  • the length of the obtained second IP packet is added to the second of the VoLTE traffic.
  • the statistic value when the APN corresponding to the second IP address of the second IP packet is the APN of the PDN required to establish the data service bearer, the packet length of the obtained second IP packet is added to the data traffic.
  • the data traffic and the VoLTE traffic are separately counted, and on this basis, the data traffic and the VoLTE traffic can be separately restricted to avoid the occurrence of a false limit.
  • the traffic of the user can be saved without affecting the user's use of the audio and video service.
  • a plurality of handover strategies are provided for the user to select, so that in the case where the VoLTE traffic is limited, the user experience can be improved according to the transmission of the VoLTE service.
  • the device may include: a processor 1101.
  • the processor 1101 is configured to: when detecting the second Internet Protocol IP packet, obtain the packet length of the second IP packet, and add the packet length of the second IP packet to the statistics of the traffic. And obtaining a first statistic value of the long-term evolution LTE-based voice VoLTE traffic obtained by the modem Modem, and adding the first statistic value of the VoLTE traffic to the statistic value of the traffic.
  • the device may further include: a transmitter 1102, configured to receive a first statistic value of the VoLTE traffic sent by the Modem.
  • the processor 1101 is configured to query the traffic data of the Modem to obtain a first statistic value of the VoLTE traffic.
  • the traffic statistics device collects the first statistical value of the VoLTE traffic.
  • the AP detects the second IP packet, the AP adds the packet length of the second IP packet to the traffic statistics. And obtaining the first statistic value of the VoLTE traffic obtained by the Modem statistics, and adding the first statistic value of the VoLTE traffic to the statistic value of the traffic, and comparing with the traffic of the AP side in the prior art, ensuring The integrity of the traffic statistics.
  • the terminal device may include:
  • the modem 1201 is configured to acquire a first IP address of the first IP packet, obtain a packet length of the first IP packet, and obtain a packet from the in-memory database when the first IP packet is detected.
  • the packet length of the first IP packet is added to the first statistic of the Longitudinal Evolution LTE-based voice VoLTE traffic.
  • the AP 1202 is configured to acquire a second IP address of the second IP packet, and obtain a packet length of the second IP packet, where the second IP packet is detected, and obtain the packet length from the in-memory database.
  • the first PDN is a PDN required for establishing a bearer of a VoLTE service.
  • the terminal device when the first IP packet is detected by the modem, obtains the first IP address from the in-memory database according to the first IP address of the obtained first IP packet.
  • the length of the packet of the first IP packet to be obtained when the APN corresponding to the first IP address of the IP address is the APN of the PDN required to establish the bearer of the VoLTE service. Accumulated into the first statistic of VoLTE traffic to achieve statistics on VoLTE traffic, thus targeting existing In the technology, only the traffic on the AP side can be counted, and the statistics of the traffic generated when the user uses the LTE network for audio and video calls are implemented.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used.
  • the combination may be integrated into another device, or some features may be ignored or not performed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. Including several instructions to make a setting
  • the device which may be a microcontroller, a chip, etc.
  • a processor performs all or part of the steps of the method of the various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

本发明实施例公开了一种流量统计方法、装置及终端设备,涉及通信领域,解决了无法统计到用户使用LTE网络进行音视频通话时产生的流量的问题。具体方案为:当Modem检测到第一IP报文时,获取第一IP报文的第一IP地址,并获取第一IP报文的报文长度;从内存数据库中获取与第一IP报文的第一IP地址对应的APN;当与第一IP报文的第一IP地址对应的APN为第一PDN的APN时,将第一IP报文的报文长度累加到VoLTE流量的第一统计值中,第一PDN为建立VoLTE业务的承载所需的PDN。本发明实施例用于流量的统计过程中。

Description

一种流量统计方法、装置及终端设备 技术领域
本发明涉及通信领域,尤其涉及一种流量统计方法、装置及终端设备。
背景技术
随着社会发展,使用手机上网已越来越普遍。在用户通过手机上网时,会产生一定的流量,上网产生的流量可以通过手机系统自带的流量统计功能,或者通过手机上安装的第三方软件统计得到,以方便用户查询。
在现有技术中,由于数据业务采用的协议栈部署在手机的应用处理器(Application processor,AP)侧,因此在统计用户上网产生的流量时,不论是手机系统自带的流量统计功能,还是手机上安装的第三方软件,均是基于手机的AP来实现的,也就是说,手机的AP可以对上网产生的流量进行统计,并通过手机系统自带的流量统计功能或者手机上安装的第三方软件展示给用户。众所周知,随着移动通信技术的发展,长期演进(Long Term Evolution,LTE)网络应运而生,LTE网络不仅可以为用户提供高速率的数据业务,还可以通过采用基于LTE的语音(英文:Voice Over LTE,简称:VoLTE)技术为用户提供高质量的音视频业务,这样当用户使用LTE网络进行音视频通话时,也会产生一定的流量。
但由于音视频业务采用的协议栈一般情况下不会部署在手机的AP侧,这样便会导致无法统计到用户使用LTE网络进行音视频通话时产生的流量。
发明内容
本发明提供一种流量统计方法、装置及终端设备,解决了无法统计到用户使用LTE网络进行音视频通话时产生的流量的问题。
本发明的第一方面,提供一种流量统计方法,包括:
当调制解调器Modem检测到第一互联网协议IP报文时,获取所述第一IP报文的第一IP地址,并获取所述第一IP报文的报文长度;
所述Modem从内存数据库中获取与所述第一IP报文的第一IP地址对应的接入点名称APN;
当与所述第一IP报文的第一IP地址对应的APN为第一公共数据网络PDN的APN时,所述Modem将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
结合第一方面,在一种可能的实现方式中,在所述当调制解调器Modem检测到第一互联网协议IP报文之前,还包括:
所述Modem获取所述第一PDN的IP地址;
所述Modem将所述第一PDN的IP地址和所述第一PDN的APN对应存储在所述内存数据库中。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,所述方法还包括:
所述Modem获取应用处理器AP统计得到的所述VoLTE流量的第二统计值;
所述Modem将所述VoLTE流量的第二统计值累加到所述VoLTE流量的第一统计值中。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,所述Modem获取应用处理器AP统计得到的所述VoLTE流量的第二统计值,包括:
所述Modem接收所述AP发送的所述VoLTE流量的第二统计值;
或者,
所述Modem查询所述AP统计的流量数据获得所述VoLTE流量的第二统计值。
结合第一方面或上述可能的实现方式,在另一种可能的实现方 式中,所述Modem获取所述第一PDN的IP地址,包括:
所述Modem向网络侧发送第一PDN注册请求;所述第一PDN注册请求中包含所述第一PDN的APN,以便所述网络侧根据所述第一PDN的APN获取所述第一PDN的IP地址;
所述Modem接收所述网络侧发送的所述第一PDN的IP地址。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,所述方法还包括:
所述Modem确定所述VoLTE流量的第一统计值是否大于或等于所述VoLTE流量的限制值;
当所述VoLTE流量的第一统计值大于或等于所述VoLTE流量的限制值时,所述Modem根据切换策略传输VoLTE业务,其中,所述VoLTE业务为VoLTE语音业务或VoLTE视频业务。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,在所述Modem根据切换策略传输VoLTE业务之前,还包括:
所述Modem接收所述AP发送的所述切换策略,其中,所述切换策略是所述AP接收到用户对所述切换策略的选择触发后发送的。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,
所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均不受限制;
所述Modem根据切换策略传输VoLTE业务,包括:
当所述VoLTE业务为所述VoLTE语音业务时,所述Modem将采集到的语音数据通过LTE网络进行传输;
当所述VoLTE业务为所述VoLTE视频业务时,所述Modem将采集到的语音数据和图像数据通过所述LTE网络进行传输。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,
所述切换策略为在所述VoLTE流量的第一统计值大于或等于 VoLTE流量的限制值时,所述VoLTE语音业务的传输不受限制,所述VoLTE视频业务的传输受限;
所述Modem根据切换策略传输VoLTE业务,包括:
当所述VoLTE业务为所述VoLTE语音业务时,所述Modem将采集到的语音数据通过LTE网络进行传输;
当所述VoLTE业务为所述VoLTE视频业务时,所述Modem将视频模式切换为语音模式,并将采集到的语音数据通过所述LTE网络进行传输。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,
所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均受限;
所述Modem根据切换策略传输VoLTE业务,包括:
当所述VoLTE业务为所述VoLTE语音业务时,所述Modem从LTE网络切换到第二代移动通信技术2G/第三代移动通信技术3G网络,并将采集到的语音数据通过电路交换CS域或分组交换PS域进行传输;
当所述VoLTE业务为所述VoLTE视频业务时,所述Modem将视频模式切换为语音模式,并将采集到的语音数据通过所述CS域或所述PS域进行传输。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,
所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,降低所述VoLTE语音业务的编解码速率,降低所述VoLTE视频业务的传输参数;
所述Modem根据切换策略传输VoLTE业务,包括:
当所述VoLTE业务为所述VoLTE语音业务时,所述Modem降低采集到的语音数据的编解码速率;
当所述VoLTE业务为所述VoLTE视频业务时,所述Modem降低采集到的视频数据的传输参数;
其中,所述视频数据的传输参数包括以下一种或多种:所述视频数据中的图像数据的分辨率、所述视频数据中的图像数据的帧率,所述视频数据中的语音数据编解码速率。
本发明的第二方面,提供一种流量统计方法,包括:
当应用处理器AP检测到第二互联网协议IP报文时,获取所述第二IP报文的第二IP地址,并获取所述第二IP报文的报文长度;
所述AP从内存数据库中获取与所述第二IP报文的第二IP地址对应的接入点名称APN;
当与所述第二IP报文的第二IP地址对应的APN为第一公共数据网络PDN的APN时,所述AP将所述第二IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第二统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
结合第二方面,在一种可能的实现方式中,所述方法还包括:
所述AP获取Modem统计得到的所述VoLTE流量的第一统计值;
所述AP将所述VoLTE流量的第一统计值累加到所述VoLTE流量的第二统计值中;
所述AP将所述VoLTE流量的第二统计值显示给用户。
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,所述AP获取所述Modem统计得到的所述VoLTE流量的第一统计值,包括:
所述AP接收所述Modem发送的所述VoLTE流量的第一统计值;
或者,
所述AP查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
结合第二方面或上述可能的实现方式,在另一种可能的实现方 式中,所述方法还包括:
当与所述第二IP报文的第二IP地址对应的APN为第二PDN的APN时,所述AP将所述第二IP报文的报文长度累加到数据流量的统计值中,其中,所述第二PDN为建立数据业务的承载所需的PDN;
所述AP将所述数据流量的统计值显示给用户。
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,在所述当应用处理器AP检测到第二互联网协议IP报文之前,还包括:
所述AP获取所述第二PDN的IP地址;
所述AP将所述第二PDN的IP地址和所述第二PDN的APN对应存储在所述内存数据库中。
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,所述AP获取所述第二PDN的IP地址,包括:
所述AP通过Modem向网络侧发送第二PDN注册请求;所述第二PDN注册请求中包含所述第二PDN的APN,以便所述网络侧根据所述第二PDN的APN获取所述第二PDN的IP地址;
所述AP接收所述网络侧通过所述Modem发送的所述第二PDN的IP地址。
本发明的第三方面,提供一种流量统计方法,包括:
应用处理器AP检测到第二互联网协议IP报文时,获取所述第二IP报文的报文长度;
所述AP将所述第二IP报文的报文长度累加到流量的统计值中;
所述AP获取调制解调器Modem统计得到的基于长期演进LTE的语音VoLTE流量的第一统计值;
所述AP将所述VoLTE流量的第一统计值累加到所述流量的统计值中。
结合第三方面,在一种可能的实现方式中,所述AP获取调制 解调器Modem统计得到的基于长期演进LTE的语音VoLTE流量的第一统计值,包括:
所述AP接收所述Modem发送的所述VoLTE流量的第一统计值;
或者,
所述AP查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
本发明的第四方面,提供一种流量统计装置,包括:
获取单元,用于当调检测到第一互联网协议IP报文时,获取所述第一IP报文的第一IP地址,并获取所述第一IP报文的报文长度,从内存数据库中获取与所述第一IP报文的第一IP地址对应的接入点名称APN;
累加单元,用于当所述获取单元获取到的与所述第一IP报文的第一IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
结合第四方面,在一种可能的实现方式中,
所述获取单元,还用于在所述检测到第一互联网协议IP报文之前,获取所述第一PDN的IP地址;
所述装置还包括:
存储单元,用于将所述获取单元获取到的所述第一PDN的IP地址和所述第一PDN的APN对应存储在所述内存数据库中。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,
所述获取单元,还用于获取应用处理器AP统计得到的所述VoLTE流量的第二统计值;
所述累加单元,还用于将所述获取单元获取到的所述VoLTE流量的第二统计值累加到所述VoLTE流量的第一统计值中。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,所述获取单元,具体用于:
接收所述AP发送的所述VoLTE流量的第二统计值;
或者,
查询所述AP统计的流量数据获得所述VoLTE流量的第二统计值。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,所述获取单元,具体用于:
向网络侧发送第一PDN注册请求;所述第一PDN注册请求中包含所述第一PDN的APN,以便所述网络侧根据所述第一PDN的APN获取所述第一PDN的IP地址;
接收所述网络侧发送的所述第一PDN的IP地址。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,所述装置还包括:
确定单元,用于确定所述VoLTE流量的第一统计值是否大于或等于所述VoLTE流量的限制值;
传输单元,用于当所述确定单元确定出所述VoLTE流量的第一统计值大于或等于所述VoLTE流量的限制值时,根据切换策略传输VoLTE业务,其中,所述VoLTE业务为VoLTE语音业务或VoLTE视频业务。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,
所述接收单元,还用于在所述传输单元根据切换策略传输VoLTE业务之前,接收所述AP发送的所述切换策略,其中,所述切换策略是所述AP接收到用户对所述切换策略的选择触发后发送的。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,
所述切换策略为在所述VoLTE流量的第一统计值大于或等于 VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均不受限制;
所述传输单元,具体用于:
当所述VoLTE业务为所述VoLTE语音业务时,将采集到的语音数据通过LTE网络进行传输;
当所述VoLTE业务为所述VoLTE视频业务时,将采集到的语音数据和图像数据通过所述LTE网络进行传输。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,
所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务的传输不受限制,所述VoLTE视频业务的传输受限;
所述传输单元,具体用于:
当所述VoLTE业务为所述VoLTE语音业务时,将采集到的语音数据通过LTE网络进行传输;
当所述VoLTE业务为所述VoLTE视频业务时,将视频模式切换为语音模式,并将采集到的语音数据通过所述LTE网络进行传输。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,
所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均受限;
所述传输单元,具体用于:
当所述VoLTE业务为所述VoLTE语音业务时,从LTE网络切换到第二代移动通信技术2G/第三代移动通信技术3G网络,并将采集到的语音数据通过电路交换CS域或分组交换PS域进行传输;
当所述VoLTE业务为所述VoLTE视频业务时,将视频模式切换为语音模式,并将采集到的语音数据通过所述CS域或所述PS域进行传输。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,
所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,降低所述VoLTE语音业务的编解码速率,降低所述VoLTE视频业务的传输参数;
所述传输单元,具体用于:
当所述VoLTE业务为所述VoLTE语音业务时,降低采集到的语音数据的编解码速率;
当所述VoLTE业务为所述VoLTE视频业务时,降低采集到的视频数据的传输参数;
其中,所述视频数据的传输参数包括以下一种或多种:所述视频数据中的图像数据的分辨率、所述视频数据中的图像数据的帧率,所述视频数据中的语音数据编解码速率。
本发明的第五方面,提供一种流量统计装置,包括:
获取单元,用于当检测到第二互联网协议IP报文时,获取所述第二IP报文的第二IP地址,并获取所述第二IP报文的报文长度,从内存数据库中获取与所述第二IP报文的第二IP地址对应的接入点名称APN;
累加单元,用于当所述获取单元获取到的与所述第二IP报文的第二IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第二IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第二统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
结合第五方面,在一种可能的实现方式中,
所述获取单元,还用于获取Modem统计得到的所述VoLTE流量的第一统计值;
所述累加单元,还用于将所述VoLTE流量的第一统计值累加到所述VoLTE流量的第二统计值中;
所述装置还包括:
显示单元,用于将所述累加单元得到的所述VoLTE流量的第二统计值显示给用户。
结合第五方面或上述可能的实现方式,在另一种可能的实现方式中,所述获取单元,具体用于:
接收所述Modem发送的所述VoLTE流量的第一统计值;
或者,
查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
结合第五方面或上述可能的实现方式,在另一种可能的实现方式中,
所述累加单元,还用于当所述获取单元获取到的与所述第二IP报文的第二IP地址对应的APN为第二PDN的APN时,将所述第二IP报文的报文长度累加到数据流量的统计值中,其中,所述第二PDN为建立数据业务的承载所需的PDN;
所述显示单元,还用于将所述累加单元得到的所述数据流量的统计值显示给用户。
结合第五方面或上述可能的实现方式,在另一种可能的实现方式中,
所述获取单元,还用于在所述获取单元检测到第二互联网协议IP报文之前,获取所述第二PDN的IP地址;
所述装置还包括:
存储单元,用于将所述获取单元获取到的所述第二PDN的IP地址和所述第二PDN的APN对应存储在所述内存数据库中。
结合第五方面或上述可能的实现方式,在另一种可能的实现方式中,所述获取单元,具体用于:
通过Modem向网络侧发送第二PDN注册请求;所述第二PDN注册请求中包含所述第二PDN的APN,以便所述网络侧根据所述第二PDN的APN获取所述第二PDN的IP地址;
接收所述网络侧通过所述Modem发送的所述第二PDN的IP地 址。
本发明的第六方面,提供一种流量统计装置,包括:
获取单元,用于当检测到第二互联网协议IP报文时,获取所述第二IP报文的报文长度;
累加单元,用于将所述获取单元获取到的所述第二IP报文的报文长度累加到流量的统计值中;
所述获取单元,还用于获取调制解调器Modem统计得到的基于长期演进LTE的语音VoLTE流量的第一统计值;
所述累加单元,还用于将所述获取单元获取到的所述VoLTE流量的第一统计值累加到所述流量的统计值中。
结合第六方面,在一种可能的实现方式中,所述获取单元,具体用于:
接收所述Modem发送的所述VoLTE流量的第一统计值;
或者,
查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
本发明的第七方面,提供一种流量统计装置,包括:
处理器,用于当调检测到第一互联网协议IP报文时,获取所述第一IP报文的第一IP地址,并获取所述第一IP报文的报文长度,从内存数据库中获取与所述第一IP报文的第一IP地址对应的接入点名称APN,当与所述第一IP报文的第一IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
结合第七方面,在一种可能的实现方式中,
所述处理器,还用于在所述检测到第一互联网协议IP报文之前,获取所述第一PDN的IP地址;
所述装置还包括:
存储器,用于将所述处理器获取到的所述第一PDN的IP地址 和所述第一PDN的APN对应存储在所述内存数据库中。
结合第七方面或上述可能的实现方式,在另一种可能的实现方式中,
所述处理器,还用于获取应用处理器AP统计得到的所述VoLTE流量的第二统计值,将所述VoLTE流量的第二统计值累加到所述VoLTE流量的第一统计值中。
结合第七方面或上述可能的实现方式,在另一种可能的实现方式中,
所述装置还包括,接收器,用于接收所述AP发送的所述VoLTE流量的第二统计值;
或者,
所述处理器,具体用于查询所述AP统计的流量数据获得所述VoLTE流量的第二统计值。
结合第七方面或上述可能的实现方式,在另一种可能的实现方式中,
所述装置还包括:发送器,用于向网络侧发送第一PDN注册请求;所述第一PDN注册请求中包含所述第一PDN的APN,以便所述网络侧根据所述第一PDN的APN获取所述第一PDN的IP地址;
所述接收器,还用于接收所述网络侧发送的所述第一PDN的IP地址。
结合第七方面或上述可能的实现方式,在另一种可能的实现方式中,
所述处理器,还用于确定所述VoLTE流量的第一统计值是否大于或等于所述VoLTE流量的限制值,当所述VoLTE流量的第一统计值大于或等于所述VoLTE流量的限制值时,根据切换策略传输VoLTE业务,其中,所述VoLTE业务为VoLTE语音业务或VoLTE视频业务。
结合第七方面或上述可能的实现方式,在另一种可能的实现方式中,
所述接收器,还用于在所述处理器根据切换策略传输VoLTE业务之前,接收所述AP发送的所述切换策略,其中,所述切换策略是所述AP接收到用户对所述切换策略的选择触发后发送的。
结合第七方面或上述可能的实现方式,在另一种可能的实现方式中,
所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均不受限制;
所述处理器,具体用于:
当所述VoLTE业务为所述VoLTE语音业务时,将采集到的语音数据通过LTE网络进行传输;
当所述VoLTE业务为所述VoLTE视频业务时,将采集到的语音数据和图像数据通过所述LTE网络进行传输。
结合第七方面或上述可能的实现方式,在另一种可能的实现方式中,
所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务的传输不受限制,所述VoLTE视频业务的传输受限;
所述处理器,具体用于:
当所述VoLTE业务为所述VoLTE语音业务时,将采集到的语音数据通过LTE网络进行传输;
当所述VoLTE业务为所述VoLTE视频业务时,将视频模式切换为语音模式,并将采集到的语音数据通过所述LTE网络进行传输。
结合第七方面或上述可能的实现方式,在另一种可能的实现方式中,
所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均受限;
所述处理器,具体用于:
当所述VoLTE业务为所述VoLTE语音业务时,从LTE网络切换到第二代移动通信技术2G/第三代移动通信技术3G网络,并将采集到的语音数据通过电路交换CS域或分组交换PS域进行传输;
当所述VoLTE业务为所述VoLTE视频业务时,将视频模式切换为语音模式,并将采集到的语音数据通过所述CS域或所述PS域进行传输。
结合第七方面或上述可能的实现方式,在另一种可能的实现方式中,
所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,降低所述VoLTE语音业务的编解码速率,降低所述VoLTE视频业务的传输参数;
所述处理器,具体用于:
当所述VoLTE业务为所述VoLTE语音业务时,降低采集到的语音数据的编解码速率;
当所述VoLTE业务为所述VoLTE视频业务时,降低采集到的视频数据的传输参数;
其中,所述视频数据的传输参数包括以下一种或多种:所述视频数据中的图像数据的分辨率、所述视频数据中的图像数据的帧率,所述视频数据中的语音数据编解码速率。
本发明的第八方面,提供一种流量统计装置,包括:
处理器,用于当检测到第二互联网协议IP报文时,获取所述第二IP报文的第二IP地址,并获取所述第二IP报文的报文长度,从内存数据库中获取与所述第二IP报文的第二IP地址对应的接入点名称APN,当与所述第二IP报文的第二IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第二IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第二统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
结合第八方面,在一种可能的实现方式中,
所述处理器,还用于获取Modem统计得到的所述VoLTE流量 的第一统计值,将所述VoLTE流量的第一统计值累加到所述VoLTE流量的第二统计值中,将所述VoLTE流量的第二统计值显示给用户。
结合第八方面或上述可能的实现方式,在另一种可能的实现方式中,
所述装置还包括:接收器,还用于接收所述Modem发送的所述VoLTE流量的第一统计值;
或者,
所述处理器,具体用于查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
结合第八方面或上述可能的实现方式,在另一种可能的实现方式中,
所述处理器,还用于当与所述第二IP报文的第二IP地址对应的APN为第二PDN的APN时,将所述第二IP报文的报文长度累加到数据流量的统计值中,将所述数据流量的统计值显示给用户,其中,所述第二PDN为建立数据业务的承载所需的PDN。
结合第八方面或上述可能的实现方式,在另一种可能的实现方式中,
所述处理器,还用于在所述检测到第二互联网协议IP报文之前,获取所述第二PDN的IP地址;
所述装置还包括:
存储器,用于将所述处理器获取到的所述第二PDN的IP地址和所述第二PDN的APN对应存储在所述内存数据库中。
结合第八方面或上述可能的实现方式,在另一种可能的实现方式中,
所述发送器,还用于通过Modem向网络侧发送第二PDN注册请求;所述第二PDN注册请求中包含所述第二PDN的APN,以便所述网络侧根据所述第二PDN的APN获取所述第二PDN的IP地址;
所述接收器,还用于接收所述网络侧通过所述Modem发送的所述第二PDN的IP地址。
本发明的第九方面,提供一种流量统计装置,包括:
处理器,用于当检测到第二互联网协议IP报文时,获取所述第二IP报文的报文长度,将所述第二IP报文的报文长度累加到流量的统计值中,获取调制解调器Modem统计得到的基于长期演进LTE的语音VoLTE流量的第一统计值,将所述VoLTE流量的第一统计值累加到所述流量的统计值中。
结合第九方面,在一种可能的实现方式中,
所述装置还包括:接收器,用于接收所述Modem发送的所述VoLTE流量的第一统计值;
或者,
所述处理器,具体用于查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
本发明的第十方面,提供一种终端设备,包括:
调制解调器Modem,用于当检测到第一互联网协议IP报文时,获取所述第一IP报文的第一IP地址,并获取所述第一IP报文的报文长度;从内存数据库中获取与所述第一IP报文的第一IP地址对应的接入点名称APN;当与所述第一IP报文的第一IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN;
应用处理器AP,用于当检测到第二IP报文时,获取所述第二IP报文的第二IP地址,并获取所述第二IP报文的报文长度;从所述内存数据库中获取与所述第二IP报文的第二IP地址对应的APN;当与所述第二IP报文的第二IP地址对应的APN为所述第一PDN的APN时,将所述第二IP报文的报文长度累加到VoLTE流量的第二统计值中。
本发明实施例提供的流量统计方法、装置及终端设备,当Modem检测到第一IP报文时,根据获取到的第一IP报文的第一IP地址,从内存数据库中获取与该第一IP报文的第一IP地址对应的 APN,并在与该第一IP报文的第一IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第一IP报文的报文长度累加到VoLTE流量的第一统计值中,以实现对VoLTE流量的统计,这样针对现有技术中仅能统计到AP侧的流量相比,实现了在用户使用LTE网络进行音视频通话时产生的流量的统计。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明一实施例提供的一种流量统计方法流程图;
图2为本发明另一实施例提供的一种流量统计方法流程图;
图3为本发明另一实施例提供的一种流量统计方法流程图;
图4为本发明另一实施例提供的一种流量统计方法流程图;
图5为本发明另一实施例提供的另一种流量统计方法流程图;
图6为本发明另一实施例提供的一种流量统计方法流程图;
图7为本发明另一实施例提供的一种流量统计装置组成示意图;
图8为本发明另一实施例提供的另一种流量统计装置组成示意图;
图9为本发明另一实施例提供的一种流量统计装置组成示意图;
图10为本发明另一实施例提供的另一种流量统计装置组成示意图;
图11为本发明另一实施例提供的一种流量统计装置组成示意图;
图12为本发明另一实施例提供的一种流量统计装置组成示意图;
图13为本发明另一实施例提供的一种流量统计装置组成示意图;
图14为本发明另一实施例提供的一种流量统计装置组成示意图;
图15为本发明另一实施例提供的一种终端设备组成示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
众所周知,在统计用户上网产生的流量时,由于数据业务采用的协议栈部署在用户设备的AP侧,因此基于AP可以实现对用户上网产生的流量的统计。随着通信技术的不断发展,LTE网络越来越普及,LTE网络不仅可以为用户提供高速率的数据业务,还可以通过采用VoLTE技术为用户提供高质量的音视频业务,但由于音视频业务采用的(IP Multimedia Subsystem,IMS)协议栈一般情况下部署在用户设备的调制解调器(Modem)侧,这样便会导致基于AP无法实现对用户使用音视频业务产生的流量的统计。本发明提供的流量统计方法能够实现对用户使用音视频业务过程中产生的流量的统计,其中具体的实现过程通过以下实施例进行详细介绍。
需要说明的是,本发明实施例中所述的用户设备可以为手机、平板电脑(portable android device,PAD)等手持设备。
本发明一实施例提供一种流量统计方法,如图1所示,该方法可以包括:
101、当Modem检测到第一互联网协议(Internet Protocol,IP)报文时,获取第一IP报文的第一IP地址,并获取第一IP报文的报文长度。
其中,当第一IP报文为Modem接收到的报文时,该第一IP地 址为第一IP报文的源IP地址,当第一IP报文为Modem需发送给网络侧的报文时,该第一IP地址为第一IP报文的目标IP地址。
102、Modem从内存数据库中获取与第一IP报文的第一IP地址对应的接入点名称(Access point name,APN)。
其中,内存数据库中存储有至少一个IP地址以及与每个IP地址对应的APN。在Modem获取到第一IP报文的第一IP地址之后,可以将该第一IP报文的第一IP地址与内存数据库中存储的IP地址进行匹配,以便从内存数据库中获取与该第一IP报文的第一IP地址对应的APN。
103、当与第一IP报文的第一IP地址对应的APN为第一公共数据网络(Public Data Network,PDN)的APN时,Modem将第一IP报文的报文长度累加到VoLTE流量的第一统计值中。
其中,第一PDN为建立VoLTE业务的承载所需的PDN。
具体的,在Modem从内存数据库中获取到与该第一IP报文的第一IP地址对应的APN之后,Modem可以判断与该第一IP报文的第一IP地址对应的APN是否为建立VoLTE业务的承载所需的PDN的APN,即第一PDN的APN,并在确定出与该第一IP报文的第一IP地址对应的APN为第一PDN的APN之后,Modem将获取到的第一IP报文的报文长度累加到VoLTE流量的第一统计值中,以便实现对VoLTE流量的统计。
进一步的,为了能够使得Modem确定出检测到的IP报文的报文长度是否需统计到VoLTE流量中,在步骤101中所述的Modem检测到第一IP报文之前,本发明实施例提供的流量统计方法还可以包括:Modem获取第一PDN的IP地址,并将第一PDN的IP地址和第一PDN的APN对应存储在内存数据库中。
进一步的,考虑到采用IMS协议栈的某些VoLTE业务可能会部署在AP侧,因此为了能够统计到所有的VoLTE流量,本发明实施例提供的流量统计方法还可以包括:Modem获取AP统计得到的VoLTE流量的第二统计值,并将VoLTE流量的第二统计值累加到 VoLTE流量的第一统计值中。
进一步的,Modem获取AP统计得到的VoLTE流量的第二统计值,在一种可能的实现方式中,具体的可以为:Modem接收AP发送的VoLTE流量的第二统计值。
或者,在另一种可能的实现方式中,具体为:Modem查询AP统计的流量数据获得VoLTE流量的第二统计值。
进一步的,Modem获取第一PDN的IP地址,具体可以为:Modem向网络侧发送第一PDN注册请求;该第一PDN注册请求中包含第一PDN的APN,以便网络侧可以根据第一PDN的APN获取第一PDN的IP地址;Modem接收网络侧发送的第一PDN的IP地址。
进一步的,对于在VoLTE流量存在限制的情况下,为了在能够不影响用户使用音视频业务的前提下,节省用户的流量,本发明实施例提供的流量统计方法还包括:Modem确定VoLTE流量的第一统计值是否大于或等于VoLTE流量的限制值;当VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,Modem根据切换策略传输VoLTE业务,其中,VoLTE业务为VoLTE语音业务或VoLTE视频业务。
需要说明的是,在本发明实例例中,在采用IMS协议栈的VoLTE业务均部署在Modem侧的情况下,Modem用于确定VoLTE流量是否大于或等于VoLTE流量的限制值时采用的第一统计值为步骤103中Modem统计得到的第一统计值;在采用IMS协议栈的VoLTE业务部署在Modem侧和AP侧的情况下,Modem用于确定VoLTE流量是否大于或等于VoLTE流量的限制值时采用的第一统计值为将AP统计得到的VoLTE流量的第二统计值累加到VoLTE流量的第一统计值之后得到的第一统计值。
进一步的,在Modem确定VoLTE流量的第一统计值是否大于或等于VoLTE流量的限制值之前,本发明实施例提供的流量统计方法还包括:Modem接收AP发送的VoLTE流量的限制值。
进一步的,为了在VoLTE流量存在限制的情况下,可以根据用 户的选择调整VoLTE业务的传输方案,在Modem根据切换策略传输VoLTE业务之前,本发明实施例提供的流量统计方法还包括:Modem接收AP发送的切换策略,其中,切换策略是AP接收到用户对切换策略的选择触发后发送的。
进一步的,切换策略为在VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,VoLTE语音业务和VoLTE视频业务的传输均不受限制;Modem根据切换策略传输VoLTE业务,具体的可以为:
当VoLTE业务为VoLTE语音业务时,Modem将采集到的语音数据通过LTE网络进行传输。
当VoLTE业务为VoLTE视频业务时,Modem将采集到的语音数据和图像数据通过LTE网络进行传输。
进一步的,切换策略为在VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,VoLTE语音业务的传输不受限制,VoLTE视频业务的传输受限;Modem根据切换策略传输VoLTE业务,具体的可以为:
当VoLTE业务为VoLTE语音业务时,Modem将采集到的语音数据通过LTE网络进行传输。
当VoLTE业务为VoLTE视频业务时,Modem将视频模式切换为语音模式,并将采集到的语音数据通过所述LTE网络进行传输。
进一步的,切换策略为在VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,VoLTE语音业务和VoLTE视频业务的传输均受限;Modem根据切换策略传输VoLTE业务,具体的可以为:
当VoLTE业务为VoLTE语音业务时,Modem从LTE网络切换到第二代移动通信技术/第三代移动通信技术(2nd Generation/3rd Generation,2G/3G)网络,并将采集到的语音数据通过电路交换(Circuit Switching,CS)域或分组交换(Packet Switch,PS)域进行传输。
其中,Modem从LTE网络切换到2G/3G网络,并将采集到的语音数据通过CS域进行传输,指的就是电路交换回退(Circuit  Switched FallBack,CSFB)技术。
当VoLTE业务为VoLTE视频业务时,Modem将视频模式切换为语音模式,并将采集到的语音数据通过CS域或PS域进行传输。
进一步的,切换策略为在VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,降低VoLTE语音业务的编解码速率,降低VoLTE视频业务的传输参数;Modem根据切换策略传输VoLTE业务,具体的可以为:
当VoLTE业务为VoLTE语音业务时,Modem降低采集到的语音数据的编解码速率。
当VoLTE业务为VoLTE视频业务时,Modem降低采集到的视频数据的传输参数,其中,视频数据的传输参数包括以下一种或多种:视频数据中的图像数据的分辨率、视频数据中的图像数据的帧率,视频数据中的语音数据编解码速率。
进一步的,为了能够将统计到的VoLTE流量显示给用户供用户查询,在步骤103之后,本发明实施例提供的流量统计方法还包括:Modem将VoLTE流量的第一统计值发送至AP。
本发明实施例提供的流量统计方法,当Modem检测到第一IP报文时,根据获取到的第一IP报文的第一IP地址,从内存数据库中获取与该第一IP报文的第一IP地址对应的APN,并在与该第一IP报文的第一IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第一IP报文的报文长度累加到VoLTE流量的第一统计值中,以实现对VoLTE流量的统计,这样针对现有技术中仅能统计到AP侧的流量相比,实现了在用户使用LTE网络进行音视频通话时产生的流量的统计。
本发明另一实施例提供一种流量统计方法,如图2所示,该方法可以包括:
201、当AP检测到第二IP报文时,获取第二IP报文的第二IP地址,并获取第二IP报文的报文长度。
其中,当第二IP报文为AP接收到的报文时,第二IP地址为第 二IP报文的源IP地址;当第二IP报文为AP需发送给网络侧的报文时,第二IP地址为第二IP报文的目标IP地址。
202、AP从内存数据库中获取与第二IP报文的第二IP地址对应的APN。
其中,内存数据库中存储有至少一个IP地址以及与每个IP地址对应的APN。在AP获取到第二IP报文的第二IP地址之后,可以将该第二IP报文的第二IP地址与内存数据库中存储的IP地址进行匹配,以便从内存数据库中获取与该第二IP报文的第二IP地址对应的APN。
203、当与第二IP报文的第二IP地址对应的APN为第一PDN的APN时,AP将第二IP报文的报文长度累加到VoLTE流量的第二统计值中。
其中,第一PDN为建立VoLTE业务的承载所需的PDN。
具体的,针对在LTE网络下为用户提供的数据业务和VoLTE业务,运营商很有可能制定不同的收费标准,在这种情况下,需要将用户使用数据业务产生的流量和使用VoLTE业务产生的流量分别进行统计,因此在AP从内存数据库中获取到与该第二IP报文的第二IP地址对应的APN之后,AP可以判断与该第二IP报文的第二IP地址对应的APN是否为建立VoLTE业务的承载所需的PDN的APN,即第一PDN的APN,并在确定出与该第二IP报文的第二IP地址对应的APN为第一PDN的APN之后,AP将获取到的第二IP报文的报文长度累加到VoLTE流量的第二统计值中。
进一步的,为了能够使得Modem统计到所有的VoLTE流量,在步骤203之后,本发明实施例提供的流量统计方法还可以包括:AP向Modem发送VoLTE流量的第二统计值。
进一步的,本发明实施例提供的流量统计方法还可以包括:AP获取Modem统计得到的VoLTE流量的第一统计值;AP将VoLTE流量的第一统计值累加到VoLTE流量的第二统计值中;AP将VoLTE流量的第二统计值显示给用户。
需要说明的是,在本发明实施例中,在采用IMS协议栈的VoLTE业务部署在Modem侧和AP侧的情况下,AP向用户显示的VoLTE流量的第二统计值为AP将Modem统计得到的VoLTE流量的第一统计值累加到VoLTE流量的第二统计值之后得到的第二统计值。当然,在采用IMS协议栈的VoLTE业务均部署在Modem侧的情况下,AP在获取Modem统计得到的VoLTE流量的第一统计值之后,可以直接将Modem统计得到的VoLTE流量的第一统计值直接显示给用户。
进一步的,AP获取Modem统计得到的VoLTE流量的第一统计值,在一种可能的实现方式中,具体的可以为:AP接收Modem发送的VoLTE流量的第一统计值;
或者,在另一种可能的实现方式中,具体的可以为:AP查询Modem统计的流量数据获得VoLTE流量的第一统计值。
进一步的,本发明实施例提供的流量统计方法还可以包括:当与第二IP报文的第二IP地址对应的APN为第二PDN的APN时,AP将第二IP报文的报文长度累加到数据流量的统计值中,以实现数据流量和VoLTE流量的分别统计;AP将数据流量的统计值显示给用户,其中,第二PDN为建立数据业务的承载所需的PDN。
进一步的,为了能够使得AP确定出检测到的IP报文的报文长度是要统计到数据流量中,还是要统计到VoLTE流量中,在步骤201中所述的AP检测到第二IP报文之前,本发明实施例提供的流量统计方法还可以包括:AP获取第二PDN的IP地址;AP将第二PDN的IP地址和第二PDN的APN对应存储在内存数据库中。
进一步的,AP获取第二PDN的IP地址,具体的可以为:AP通过Modem向网络侧发送第二PDN注册请求;第二PDN注册请求中包含第二PDN的APN,以便网络侧根据第二PDN的APN获取第二PDN的IP地址;AP接收网络侧通过Modem发送的第二PDN的IP地址。
本发明实施例提供的流量统计方法,当AP检测到第二IP报文时,根据获取到的第二IP报文的第二IP地址,从内存数据库中获 取与该第二IP报文的第二IP地址对应的APN,并在与该第二IP报文的第二IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第二IP报文的报文长度累加到VoLTE流量的第二统计值中,以实现对数据流量和VoLTE流量分别统计。
本发明另一实施例提供一种流量统计方法,如图3所示,该方法可以包括:
301、AP检测到第二IP报文时,获取第二IP报文的报文长度。
302、AP将第二IP报文的报文长度累加到流量的统计值中。
其中,在AP获取到第二IP报文的报文长度之后,可以将第二IP报文的报文长度直接累加到流量的统计值中。
303、AP获取Modem统计得到的VoLTE流量的第一统计值。
其中,为了确保能够统计到用户使用用户设备过程中产生的所有流量,AP还需获取Modem统计得到的VoLTE流量的第一统计值。
进一步的,在一种可能的实现方式中,步骤303具体可以为:AP接收Modem发送的VoLTE流量的第一统计值。或者,在另一种可能的实现方式中,步骤303具体可以为:AP查询Modem统计的流量数据获得VoLTE流量的第一统计值。
304、AP将VoLTE流量的第一统计值累加到流量的统计值中。
其中,在AP获取到Modem统计得到的VoLTE流量的第一统计值之后,可以将获取到的将VoLTE流量的第一统计值累加到流量的统计值中,以实现对用户使用用户设备时产生的所有流量的统计。进一步的,在AP还可以将统计到的流量统计值显示给用户,以方便用户查询。
需要说明的是,在本发明实施例中,AP向用户显示的流量统计值为AP将Modem统计得到的VoLTE流量的第一统计值累加到流量统计值之后得到的流量统计值。
本发明实施例提供的流量统计方法,AP检测到第二IP报文时,将获取到的第二IP报文的报文长度累加到流量的统计值中,并获取Modem统计得到的VoLTE流量的第一统计值,且将VoLTE流量的 第一统计值累加到流量的统计值中,与现有技术中,仅能统计到AP侧的流量相比,确保了流量统计的完整性。
本发明另一实施例提供一种流量统计方法,如图4所示,该方法可以包括:
401、Modem获取第一PDN的IP地址。
其中,在用户设备开机,或者飞行模式关闭,或者从2G/3G网络的小区覆盖范围内切换到IMS LTE网络的小区覆盖范围内,或者从不支持VoLTE业务的LTE网络的小区覆盖范围内切换到支持VoLTE业务的LTE网络的小区覆盖范围内,或者接收到网络侧发送的去激活建立VoLTE业务所需的PDN的指示并根据该指示重新发起PDN激活并激活成功时,Modem会获取建立VoLTE业务的承载所需的PDN,即第一PDN的IP地址。
其中,Modem获取第一PDN的IP地址具体的可以包括:Modem向网络侧发送包含第一PDN的APN的第一PDN注册请求,在网络侧接收到第一PDN注册请求时,网络侧可以根据第一PDN的APN获取该第一PDN的IP地址,然后向Modem发送获取到的第一PDN的IP地址,此时Modem便可以接收网络侧发送的第一PDN的IP地址。
402、Modem将第一PDN的IP地址和第一PDN的APN对应存储在内存数据库中。
其中,在Modem获取到第一PDN的IP地址之后,可以将获取到的该第一PDN的IP地址和第一PDN的APN对应存储在内存数据库中,便于后续使用。该内存数据库用于存储至少一个IP地址以及与每个IP地址对应的APN,且内存数据库中存储的数据在用户设备关机时会擦除。
403、当Modem检测到第一IP报文时,获取第一IP报文的第一IP地址,并获取第一IP报文的报文长度。
其中,当第一IP报文为Modem接收到的报文时,第一IP地址为第一IP报文的源IP地址;当第一IP报文为Modem需发送给网 络侧的报文时,第一IP地址为第一IP报文的目标IP地址。
示例性的,当Modem接收到第一IP报文时,可以对该第一IP报文进行解析,以获得该第一IP报文的源IP地址,并将获取到的第一IP报文的源IP地址作为第一IP地址,且还可以获取该第一IP报文的报文长度。当Modem需向网络侧发送第一IP报文时,通过对该第一IP报文的解析,可以获得该第一IP报文的目标IP地址,并将获取到的第一IP报文的目标IP地址作为第一IP地址,且还可以获取该第一IP报文的报文长度。
404、Modem从内存数据库中获取与第一IP报文的第一IP地址对应的APN。
其中,在Modem获取到第一IP报文的第一IP地址之后,可以将该第一IP报文的第一IP地址与内存数据库中存储的IP地址进行匹配,以便从内存数据库中获取与该第一IP报文的第一IP地址对应的APN。
在Modem从内存数据库中获取到与第一IP报文的第一IP地址对应的APN之后,为了能够确定出传输该第一IP报文产生的流量是否是VoLTE流量,Modem可以判断获取到的与该第一IP报文的第一IP地址对应的APN是否为建立VoLTE业务的承载所需的PDN的APN,即第一PDN的APN。
405、当与第一IP报文的第一IP地址对应的APN为第一PDN的APN时,Modem将第一IP报文的报文长度累加到VoLTE流量的第一统计值中。
其中,当Modem确定出与第一IP报文的第一IP地址对应的APN为第一PDN的APN时,表明传输该第一IP报文产生的流量为VoLTE流量,此时Modem便可以将第一IP报文的报文长度累加到VoLTE流量的第一统计值中,以实现对VoLTE流量的统计。
其中,当Modem确定出获取到的与该第一IP报文的第一IP地址对应的APN不是建立VoLTE业务的承载所需的PDN的APN,即,当与第一IP报文的第一IP地址对应的APN不是第一PDN的APN 时,Modem不做任何处理。
406、AP获取第二PDN的IP地址。
其中,第二PDN为建立数据业务的承载所需的PDN。在用户设备开机或者飞行模式关闭或者数据业务开关被打开时,AP会获取建立数据业务的承载所需的PDN,即第二PDN的IP地址。其中,AP获取第二PDN的IP地址具体的可以包括:AP通过Modem向网络侧发送包含第二PDN的APN的第二PDN注册请求,在网络侧接收到第二PDN注册请求时,网络侧可以根据第二PDN的APN获取该第二PDN的IP地址,然后向Modem发送获取到的第二PDN的IP地址,此时Modem在接收到第二PDN的IP地址之后,可以将第二PDN的IP地址发送至AP,以便AP接收第二PDN的IP地址。
需要说明的是,本发明实施例所述的数据业务包括但不限于:上网、彩信、手机版本升级更新、全球定位系统(Global Positioning System,GPS)搜索定位。
407、AP将第二PDN的IP地址和第二PDN的APN对应存储在所述内存数据库中。
其中,在AP获取到第二PDN的IP地址之后,可以将获取到的该第二PDN的IP地址和第二PDN的APN对应存储在内存数据库中,便于后续使用。
408、当AP检测到第二IP报文时,获取第二IP报文的第二IP地址,并获取第二IP报文的报文长度。
其中,当第二IP报文为AP接收到的报文时,第二IP地址为第二IP报文的源IP地址;当第二IP报文为AP需发送给网络侧的报文时,第二IP地址为第二IP报文的目标IP地址。
示例性的,当AP接收到第二IP报文时,通过对该第二IP报文进行解析,可以获得该第二IP报文的源IP地址,并将获取到的第二IP报文的源IP地址作为第二IP地址,且还可以获取该第二IP报文的报文长度。当AP需向网络侧发送第二IP报文时,通过对该第二IP报文进行解析,可以获得该第二IP报文的目标IP地址,并将 获取到的第二IP报文的目标IP地址作为第二IP地址,且还可以获取该第二IP报文的报文长度。
409、AP从内存数据库中获取与第二IP报文的第二IP地址对应的APN。
其中,在AP获取到第二IP报文的第二IP地址之后,可以将该第二IP报文的第二IP地址与内存数据库中存储的IP地址进行匹配,以便从内存数据库中获取与该第二IP报文的第二IP地址对应的APN。
在AP从内存数据库中获取到与第二IP报文的第二IP地址对应的APN之后,为了能够确定出传输该第二IP报文产生的流量是VoLTE流量还是数据流量,AP可以判断获取到的与该第二IP报文的第二IP地址对应的APN是建立VoLTE业务的承载所需的PDN的APN,即第一PDN的APN,还是建立数据业务的承载所需的PDN的APN,即第二PDN的APN时。
410、当与第二IP报文的第二IP地址对应的APN为第一PDN的APN时,AP将第二IP报文的报文长度累加到VoLTE流量的第二统计值中。
其中,当AP确定出与第二IP报文的第二IP地址对应的APN为第一PDN的APN时,表明传输该第二IP报文产生的流量为VoLTE流量,此时AP便可以将第二IP报文的报文长度累加到VoLTE流量的第二统计值中,以基于AP实现对VoLTE流量的统计。
411、当与第二IP报文的第二IP地址对应的APN为第二PDN的APN时,AP将第二IP报文的报文长度累加到数据流量的统计值中,将数据流量的统计值显示给用户。
其中,当AP确定出与第二IP报文的第二IP地址对应的APN为第二PDN的APN时,表明传输该第二IP报文产生的流量为数据流量,此时AP便可以将第二IP报文的报文长度累加到数据流量的统计值中,并可以将统计得到的数据流量的统计值显示给用户,供用户查询。
进一步的,在执行步骤411之后,AP还可以判断统计到的数据流量的统计值是否大于或等于用户设置的数据流量的限制值,并在数据流量的统计值大于或等于用户设置的数据流量的限制值时,对需要传输的数据进行限制。
需要说明的是,在本发明实施例中步骤401-步骤405与步骤406-步骤411的执行顺序没有先后关系。
在本发明实施例中,进一步的,对于在VoLTE流量存在限制的情况下,为了在能够不影响用户使用音视频业务的前提下,节省用户的流量,在采用IMS协议栈的VoLTE业务均部署在Modem侧的情况下,在执行步骤405之后,可以直接执行步骤414-步骤417,但考虑到采用IMS协议栈的某些VoLTE业务可能会部署在AP侧,因此在执行步骤414之前,还需执行步骤406-步骤413。
412、Modem获取AP统计得到的VoLTE流量的第二统计值。
其中,Modem获取AP统计得到的VoLTE流量的第二统计值可以包括两种方式。
方式一、Modem接收AP发送的VoLTE流量的第二统计值。
其中,AP可以周期性的上报自身统计到的VoLTE流量的第二统计值,以便Modem可以接收AP发送的VoLTE流量的第二统计值。
方式二、Modem查询AP统计的流量数据获得VoLTE流量的第二统计值。
其中,Modem可以主动对AP统计的流量数据进行查询,以获得AP统计到的VoLTE流量的第二统计值。
413、Modem将VoLTE流量的第二统计值累加到VoLTE流量的第一统计值中。
其中,在Modem获取到AP统计得到的VoLTE流量的第二统计值之后,可以将VoLTE流量的第二统计值累加到VoLTE流量的第一统计值中,以获得产生的所有VoLTE流量。
414、Modem接收AP发送的VoLTE流量的限制值。
其中,在用户可以针对数据流量和VoLTE流量分别设置限制值, 并在针对数据流量和VoLTE流量分别设置了限制值之后,AP可以向Modem发送用户设置的VoLTE流量的限制值。
415、Modem确定VoLTE流量的第一统计值是否大于或等于VoLTE流量的限制值。
需要说明的是,在本发明实例例中,在采用IMS协议栈的VoLTE业务均部署在Modem侧的情况下,Modem用于确定VoLTE流量是否大于或等于VoLTE流量的限制值时采用的第一统计值为步骤405中Modem统计得到的第一统计值;在采用IMS协议栈的VoLTE业务部署在Modem侧和AP侧的情况下,Modem用于确定VoLTE流量是否大于或等于VoLTE流量的限制值时采用的第一统计值为步骤413中Modem将AP统计得到的VoLTE流量的第二统计值累加到VoLTE流量的第一统计值之后得到的第一统计值。
416、当VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,Modem接收AP发送的切换策略。
其中,切换策略是AP接收到用户对切换策略的选择触发后发送的。具体的,在Modem接收到AP发送的VoLTE流量的限制值之后,可以确定统计到的VoLTE流量的第一统计值是否大于或等于VoLTE流量的限制值,并在确定VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,接收AP发送的用户选择的切换策略。
417、Modem根据切换策略传输VoLTE业务。
其中,VoLTE业务为VoLTE语音业务或VoLTE视频业务。当VoLTE流量的第一统计值大于或等于VoLTE流量的限制值,Modem接收AP发送的切换策略之后,当此时有VoLTE业务需要传输时,Modem此时需根据用户选择的切换策略传输该VoLTE业务。
在一种可能的实现方式中,切换策略为在VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,VoLTE语音业务和VoLTE视频业务的传输均不受限制。此时,Modem根据切换策略传输VoLTE业务,具体的可以是:当VoLTE业务为VoLTE语音业务时,Modem将采集到的语音数据通过LTE网络进行传输;当VoLTE业务为 VoLTE视频业务时,Modem将采集到的语音数据和图像数据通过LTE网络进行传输。
在另一种可能的实现方式中,切换策略为在VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,VoLTE语音业务的传输不受限制,VoLTE视频业务的传输受限。此时,Modem根据切换策略传输VoLTE业务,具体的可以是:当VoLTE业务为VoLTE语音业务时,Modem将采集到的语音数据通过LTE网络进行传输;当VoLTE业务为VoLTE视频业务时,Modem将视频模式切换为语音模式,并将采集到的语音数据通过LTE网络进行传输。
在另一种可能的实现方式中,切换策略为在VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,VoLTE语音业务和VoLTE视频业务的传输均受限。此时,Modem根据切换策略传输VoLTE业务,具体的可以为:当VoLTE业务为VoLTE语音业务时,从LTE网络切换到第2G/3G网络,并将采集到的语音数据通过CS域或PS域进行传输;当VoLTE业务为VoLTE视频业务时,Modem将视频模式切换为语音模式,并将采集到的语音数据通过CS域或PS域进行传输。当然,当VoLTE流量的第一统计值小于VoLTE流量的限制值,如,重新对VoLTE流量进行了统计时,需重新将用户设备的VoLTE功能开启。
在另一种可能的实现方式中,切换策略为在VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,降低VoLTE语音业务的编解码速率,降低VoLTE视频业务的传输参数。此时,Modem根据切换策略传输VoLTE业务,具体的可以为:当VoLTE业务为VoLTE语音业务时,Modem降低采集到的语音数据的编解码速率。
其中,采用自适应多速率窄带编码(Adaptive Multi-Rate-Narrowband,AMR-NB对语音数据进行编码时,不同编码模式的编解码速率参见表1所示,采用自适应多速率宽带编码(Adaptive Multi-Rate-Wideband,AMR-WB)对语音数据进行编码时,不同编码模式的编解码速率参见表2所示。
表1
编码模式 编解码速率
0 4.75kbps
1 5.15kbps
2 5.90kbps
3 6.70kbps
4 7.40kbps
5 7.95kbps
6 10.20kbps
7 12.20kbps
表2
编码模式 编解码速率
0 6.60kbps
1 8.85kbps
2 12.65kbps
3 14.25kbps
4 15.85kbps
5 18.25kbps
6 19.85kbps
7 23.05kbps
8 23.85kbps
由表1和表2可以看出,在当前对语音数据进行编解码采用的编解码方式为AMR-NB的情况下,当VoLTE流量的第一统计值大于或等于VoLTE流量的限制值,且VoLTE业务为VoLTE语音业务时,Modem可以在当前的编码方式下通过改变编码模式,以达到降低采集到的语音数据的编解码速率的目的,例如,当前采用的编码模式为4(对应的编解码速率为7.40kbps),那么当VoLTE流量的第一统计值大于或等于VoLTE流量的限制值之后,需要进行传输的语音数据均采用编码模式2进行编解码,也就是说,采用5.90kbps的编 解码速率对语音数据进行编解码。
在当前对语音数据进行编解码采用的编解码方式为AMR-WB的情况下,不仅可以通过在当前的编码方式下通过改变编码模式,以达到降低采集到的语音数据的编解码速率的目的,还可以通过改变当前的编码方式,以达到降低采集到的语音数据的编解码速率的目的,例如,当前的编码模式为2(对应的编解码速率为12.65kbps),那么当VoLTE流量的第一统计值大于或等于VoLTE流量的限制值之后,需要进行传输的语音数据可以采用当前编码方式下的编码模式1(对应的编解码速率为8.85kbps)进行编解码,也可以将当前的编码方式为AMR-NB,并采用AMR-NB编码方式下的编码模式7(对应的编解码速率为12.20kbps)进行编解码。
需要说明的是,在当前对语音数据进行编解码采用的编解码方式为AMR-WB的情况下,具体降低采集到的语音数据的编解码速率采用的方式可以根据实际应用场景的需求进行选择,并预先设置在Modem中,本发明实施例在此对降低采集到的语音数据的编解码速率采用的具体方式不做具体限制。
当VoLTE业务为VoLTE视频业务时,Modem降低采集到的视频数据的传输参数,其中,视频数据的传输参数包括以下一种或多种:视频数据中的图像数据的分辨率、视频数据中的图像数据的帧率,视频数据中的语音数据编解码速率。
进一步的,还可以通过SDP协商,使得与自身进行通信的远端设备也降低采集到的视频数据中的图像数据的分辨率和/或视频数据中的图像数据的帧率。
需要说明的是,降低采集到的视频数据中的语音数据编解码速率可以参考本发明实施例中降低采集到的语音数据的编解码速率的具体描述,本发明实施例在此不再详细赘述。
需要说明的是,本发明实施例中的切换策略也可以是Modem确定网络发生拥塞的情况下,自动选择出的;还可以是在VoLTE流量未达到VoLTE流量的限制值的情况下,用户为了节省流量直接选择 触发后由AP发送至Modem的。
进一步的,为了能够将统计得到的VoLTE流量显示给用户,供用户查询,如图5所示,若采用IMS协议栈的VoLTE业务部署在Modem侧和AP侧,在执行步骤411之后,还可以包括以下步骤418-步骤420。
418、AP获取Modem统计得到的VoLTE流量的第一统计值。
其中,AP获取Modem统计得到的VoLTE流量的第一统计值可以包括两种方式。
方式一、AP接收Modem发送的VoLTE流量的第一统计值。
其中,Modem可以周期性的上报自身统计到的VoLTE流量的第一统计值,以便AP可以接收Modem发送的VoLTE流量的第一统计值。
方式二、AP查询Modem统计的流量数据获得VoLTE流量的第一统计值。
其中,AP可以主动对Modem统计的流量数据进行查询,以获得Modem统计到的VoLTE流量的第一统计值。
419、AP将VoLTE流量的第一统计值累加到VoLTE流量的第二统计值中。
其中,在AP获取到Modem统计得到的VoLTE流量的第一统计值之后,可以将VoLTE流量的第一统计值累加到VoLTE流量的第二统计值中,以获得产生的所有VoLTE流量。
420、AP将VoLTE流量的第二统计值显示给用户。
需要说明的是,在本发明实施例中,在采用IMS协议栈的VoLTE业务部署在Modem侧和AP侧的情况下,步骤420中AP向用户显示的VoLTE流量的第二统计值为AP将Modem统计得到的VoLTE流量的第一统计值累加到VoLTE流量的第二统计值之后得到的第二统计值。
当然,若采用IMS协议栈的VoLTE业务均部署在Modem侧,为了能够将统计得到的VoLTE流量显示给用户,那么在执行步骤405 之后,执行步骤418,并直接将获取到的VoLTE流量的第一统计值显示给用户,以便将VoLTE流量显示给用户供用户查询。
进一步的,在本发明实施例中,还可以对用户在某一次通话过程中产生的VoLTE流量进行统计,即在用户的本次通话过程中,重复执行步骤403-步骤405,以得到用户在本次通话过程中产生的VoLTE流量,并可以通过将统计得到的本次通话过程中产生的VoLTE流量的第一统计值发送至AP,以便AP将本次通话过程中产生的VoLTE流量显示给用户。
进一步的,在本发明实施例中,还可以将传输VoLTE语音业务产生的VoLTE流量和传输VoLTE视频业务产生的VoLTE流量分别进行统计。在一种应用场景下,当建立VoLTE语音业务承载的所需的PDN与建立VoLTE视频业务承载的所需的PDN相同,且均为第一PDN时,在执行步骤404之后,若与第一IP报文的第一IP地址对应的APN为第一PDN的APN时,可以继续判断传输该第一IP报文的端口的端口号,当传输该第一IP报文的端口的端口号为传输VoLTE语音业务的端口的端口号时,将第一IP报文的报文长度累计到VoLTE语音流量的统计值中,当传输该第一IP报文的端口的端口号为传输VoLTE视频业务的端口的端口号时,将第一IP报文的报文长度累计到VoLTE视频流量的统计值中。在另一种应用场景下,当建立VoLTE语音业务承载的所需的PDN与建立VoLTE视频业务承载的所需的PDN不相同,则可以在执行步骤404之后,直接判断与第一IP报文的第一IP地址对应的APN是建立VoLTE语音业务承载的所需的PDN的APN,还是建立VoLTE视频业务承载的所需的PDN的APN,当与第一IP报文的第一IP地址对应的APN是建立VoLTE语音业务承载的所需的PDN的APN时,将第一IP报文的报文长度累计到VoLTE语音流量的统计值中,当与第一IP报文的第一IP地址对应的APN是建立VoLTE视频业务承载的所需的PDN的APN时,将第一IP报文的报文长度累计到VoLTE视频流量的统计值中。当然,还可以针对每个应用,进程统计其对应的流量,以达到分别统计, 分别限制的目的。
本发明实施例提供的流量统计方法,当Modem检测到第一IP报文时,根据获取到的第一IP报文的第一IP地址,从内存数据库中获取与该第一IP报文的第一IP地址对应的APN,并在与该第一IP报文的第一IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第一IP报文的报文长度累加到VoLTE流量的第一统计值中,以实现对VoLTE流量的统计,这样针对现有技术中仅能统计到AP侧的流量相比,实现了在用户使用LTE网络进行音视频通话时产生的流量的统计。
并且,当AP检测到第二IP报文时,根据获取到的第二IP报文的第二IP地址,从内存数据库中获取与该第二IP报文的第二IP地址对应的APN,并在与该第二IP报文的第二IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第二IP报文的报文长度累加到VoLTE流量的第二统计值中,当该第二IP报文的第二IP地址对应的APN为建立数据业务的承载所需的PDN的APN时,将获取到的第二IP报文的报文长度累加到数据流量的统计值中,以实现对数据流量和VoLTE流量分别统计,且在此基础上,可以针对数据流量和VoLTE流量分别进行限制,以避免误限的情况发生。且在VoLTE流量存在限制的情况下,在能够不影响用户使用音视频业务的前提下,节省了用户的流量。且提供的多种切换策略供用户选择,这样在VoLTE流量存在限制的情况下,可以根据用不选择进行VoLTE业务的传输,提高了用户体验。
本发明另一实施例提供一种流量统计方法,如图6所示,该方法可以包括:
501、Modem获取第一PDN的IP地址。
502、Modem将第一PDN的IP地址和第一PDN的APN对应存储在内存数据库中。
503、当Modem检测到第一IP报文时,获取第一IP报文的第一IP地址,并获取第一IP报文的报文长度。
504、Modem从内存数据库中获取与第一IP报文的第一IP地址对应的APN。
在Modem从内存数据库中获取到与第一IP报文的第一IP地址对应的APN之后,为了能够确定出传输该第一IP报文产生的流量是否是VoLTE流量,Modem可以判断获取到的与该第一IP报文的第一IP地址对应的APN是否为建立VoLTE业务的承载所需的PDN的APN,即第一PDN的APN。
505、当与第一IP报文的第一IP地址对应的APN为第一PDN的APN时,Modem将第一IP报文的报文长度累加到VoLTE流量的第一统计值中。
其中,当Modem确定出获取到的与该第一IP报文的第一IP地址对应的APN不是建立VoLTE业务的承载所需的PDN的APN,即与第一IP报文的第一IP地址对应的APN不是第一PDN的APN时,Modem不做任何处理。
506、AP检测到第二IP报文时,获取第二IP报文的报文长度。
507、AP将第二IP报文的报文长度累加到流量的统计值中。
508、AP获取Modem统计得到的VoLTE流量的第一统计值。
进一步的,在一种可能的实现方式中,步骤508具体可以为:AP接收Modem发送的VoLTE流量的第一统计值。或者,在另一种可能的实现方式中,步骤508具体可以为:AP查询Modem统计的流量数据获得VoLTE流量的第一统计值。
509、AP将VoLTE流量的第一统计值累加到流量的统计值中。
其中,在AP获取到Modem统计得到的VoLTE流量的第一统计值之后,可以将获取到的将VoLTE流量的第一统计值累加到流量的统计值中,以实现对用户使用用户设备时产生的所有流量的统计。进一步的,在AP还可以将统计到的流量统计值显示给用户,以方便用户查询。
需要说明的是,在本发明实施例中,AP向用户显示的流量统计值为AP将Modem统计得到的VoLTE流量的第一统计值累加到流量 统计值之后得到的流量统计值。
需要说明的是,本发明实施例中步骤501-步骤509中的具体描述,可以参考本发明另一实施例中步骤401-步骤405和另一实施例中步骤301-步骤304中对应内容的具体描述,本发明实施例在此不再一一赘述。
本发明实施例提供的流量统计方法,Modem统计得到VoLTE流量的第一统计值,AP检测到第二IP报文时,将获取到的第二IP报文的报文长度累加到流量的统计值中,并获取Modem统计得到的VoLTE流量的第一统计值,且将VoLTE流量的第一统计值累加到流量的统计值中,与现有技术中,仅能统计到AP侧的流量相比,确保了流量统计的完整性。
本发明另一实施例提供一种流量统计装置,如图7所示,该装置可以包括:获取单元61、累加单元62。
获取单元61,用于当调检测到第一互联网协议IP报文时,获取所述第一IP报文的第一IP地址,并获取所述第一IP报文的报文长度,从内存数据库中获取与所述第一IP报文的第一IP地址对应的接入点名称APN。
累加单元62,用于当所述获取单元61获取到的与所述第一IP报文的第一IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
在本发明实施例中,进一步的,所述获取单元61,还用于在所述检测到第一互联网协议IP报文之前,获取所述第一PDN的IP地址。
如图8所示,所述装置还可以包括:存储单元63。
存储单元63,用于将所述获取单元61获取到的所述第一PDN的IP地址和所述第一PDN的APN对应存储在所述内存数据库中。
在本发明实施例中,进一步的,当所述第一IP报文为所述流量 统计装置接收到的报文时,所述第一IP地址为所述第一IP报文的源IP地址;当所述第一IP报文为所述流量统计装置需发送给网络侧的报文时,所述第一IP地址为所述第一IP报文的目标IP地址。
在本发明实施例中,进一步的,所述获取单元61,还用于获取应用处理器AP统计得到的所述VoLTE流量的第二统计值。
所述累加单元62,还用于将所述获取单元61获取到的所述VoLTE流量的第二统计值累加到所述VoLTE流量的第一统计值中。
在本发明实施例中,进一步的,所述获取单元61,具体用于接收所述AP发送的所述VoLTE流量的第二统计值;或者,查询所述AP统计的流量数据获得所述VoLTE流量的第二统计值。
在本发明实施例中,进一步的,所述获取单元61,具体用于向网络侧发送第一PDN注册请求;所述第一PDN注册请求中包含所述第一PDN的APN,以便所述网络侧根据所述第一PDN的APN获取所述第一PDN的IP地址;接收所述网络侧发送的所述第一PDN的IP地址。
在本发明实施例中,进一步的,所述装置还可以包括:确定单元64、传输单元65。
确定单元64,用于确定所述VoLTE流量的第一统计值是否大于或等于所述VoLTE流量的限制值。
传输单元65,用于当所述确定单元64确定出所述VoLTE流量的第一统计值大于或等于所述VoLTE流量的限制值时,根据切换策略传输VoLTE业务,其中,所述VoLTE业务为VoLTE语音业务或VoLTE视频业务。
在本发明实施例中,进一步的,所述装置还可以包括:接收单元66。
接收单元66,用于在所述确定单元64确定所述VoLTE流量的第一统计值是否大于或等于所述VoLTE流量的限制值之前,接收所述AP发送的所述VoLTE流量的限制值。
在本发明实施例中,进一步的,所述接收单元66,还用于在所 述传输单元65根据切换策略传输VoLTE业务之前,接收所述AP发送的所述切换策略,其中,所述切换策略是所述AP接收到用户对所述切换策略的选择触发后发送的。
在本发明实施例中,进一步的,所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均不受限制。
所述传输单元65,具体用于当所述VoLTE业务为所述VoLTE语音业务时,将采集到的语音数据通过LTE网络进行传输;当所述VoLTE业务为所述VoLTE视频业务时,将采集到的语音数据和图像数据通过所述LTE网络进行传输。
在本发明实施例中,进一步的,所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务的传输不受限制,所述VoLTE视频业务的传输受限。
所述传输单元65,具体用于当所述VoLTE业务为所述VoLTE语音业务时,将采集到的语音数据通过LTE网络进行传输;当所述VoLTE业务为所述VoLTE视频业务时,将视频模式切换为语音模式,并将采集到的语音数据通过所述LTE网络进行传输。
在本发明实施例中,进一步的,所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均受限。
所述传输单元65,具体用于当所述VoLTE业务为所述VoLTE语音业务时,从LTE网络切换到第二代移动通信技术2G/第三代移动通信技术3G网络,并将采集到的语音数据通过电路交换CS域或分组交换PS域进行传输;当所述VoLTE业务为所述VoLTE视频业务时,将视频模式切换为语音模式,并将采集到的语音数据通过所述CS域或所述PS域进行传输。
在本发明实施例中,进一步的,所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,降低所述VoLTE语音业务的编解码速率,降低所述VoLTE视频业务的传输参 数。
所述传输单元65,具体用于当所述VoLTE业务为所述VoLTE语音业务时,降低采集到的语音数据的编解码速率;当所述VoLTE业务为所述VoLTE视频业务时,降低采集到的视频数据的传输参数。
其中,所述视频数据的传输参数包括以下一种或多种:所述视频数据中的图像数据的分辨率、所述视频数据中的图像数据的帧率,所述视频数据中的语音数据编解码速率。
在本发明实施例中,进一步的,所述装置还可以包括:发送单元67。
发送单元,用于在所述累加单元62将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中之后,将所述累加单元62得到的所述VoLTE流量的第一统计值发送至AP。
需要说明的是,本发明实施例提供的流量统计装置中各功能模块的具体工作过程可以参考方法实施例中对应过程的具体描述,本发明实施例在此不再详细赘述。
本发明实施例提供的流量统计装置,当检测到第一IP报文时,根据获取到的第一IP报文的第一IP地址,从内存数据库中获取与该第一IP报文的第一IP地址对应的APN,并在与该第一IP报文的第一IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第一IP报文的报文长度累加到VoLTE流量的第一统计值中,以实现对VoLTE流量的统计,这样针对现有技术中仅能统计到AP侧的流量相比,实现了在用户使用LTE网络进行音视频通话时产生的流量的统计。
并且,当AP检测到第二IP报文时,根据获取到的第二IP报文的第二IP地址,从内存数据库中获取与该第二IP报文的第二IP地址对应的APN,并在与该第二IP报文的第二IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第二IP报文的报文长度累加到VoLTE流量的第二统计值中,当该第二IP 报文的第二IP地址对应的APN为建立数据业务的承载所需的PDN的APN时,将获取到的第二IP报文的报文长度累加到数据流量的统计值中,以实现对数据流量和VoLTE流量分别统计,且在此基础上,可以针对数据流量和VoLTE流量分别进行限制,以避免误限的情况发生。且在VoLTE流量存在限制的情况下,在能够不影响用户使用音视频业务的前提下,节省了用户的流量。且提供的多种切换策略供用户选择,这样在VoLTE流量存在限制的情况下,可以根据用不选择进行VoLTE业务的传输,提高了用户体验。
本发明另一实施例提供一种流量统计装置,如图9所示,该装置可以包括:获取单元71、累加单元72。
获取单元71,用于当检测到第二互联网协议IP报文时,获取所述第二IP报文的第二IP地址,并获取所述第二IP报文的报文长度,从内存数据库中获取与所述第二IP报文的第二IP地址对应的接入点名称APN。
累加单元72,用于当所述获取单元71获取到的与所述第二IP报文的第二IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第二IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第二统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
在本发明实施例中,进一步的,当所述第二IP报文为所述流量统计装置接收到的报文时,所述第二IP地址为所述第二IP报文的源IP地址;当所述第二IP报文为所述流量统计装置需发送给网络侧的报文时,所述第二IP地址为所述第二IP报文的目标IP地址。
在本发明实施例中,进一步的,如图10所示,所述装置还可以包括:发送单元73。
发送单元73,用于在所述累加单元72将所述IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第二统计值中之后,向调制解调器Modem发送所述VoLTE流量的第二统计值。
在本发明实施例中,进一步的,所述获取单元71,还用于获取 Modem统计得到的所述VoLTE流量的第一统计值。
所述累加单元72,还用于将所述VoLTE流量的第一统计值累加到所述VoLTE流量的第二统计值中。
所述装置还可以包括:显示单元74。
显示单元74,用于将所述累加单元72得到的所述VoLTE流量的第二统计值显示给用户。
在本发明实施例中,进一步的,所述获取单元71,具体用于接收所述Modem发送的所述VoLTE流量的第一统计值;或者,查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
在本发明实施例中,进一步的,所述累加单元72,还用于当所述获取单元71获取到的与所述第二IP报文的第二IP地址对应的APN为第二PDN的APN时,将所述第二IP报文的报文长度累加到数据流量的统计值中。其中,所述第二PDN为建立数据业务的承载所需的PDN。
所述显示单元74,还用于将所述累加单元72得到的所述数据流量的统计值显示给用户。
在本发明实施例中,进一步的,所述获取单元71,还用于在所述获取单元71检测到第二互联网协议IP报文之前,获取所述第二PDN的IP地址。
所述装置还可以包括:存储单元75。
存储单元75,用于将所述获取单元71获取到的所述第二PDN的IP地址和所述第二PDN的APN对应存储在所述内存数据库中。
在本发明实施例中,进一步的,所述获取单元71,具体用于通过Modem向网络侧发送第二PDN注册请求;所述第二PDN注册请求中包含所述第二PDN的APN,以便所述网络侧根据所述第二PDN的APN获取所述第二PDN的IP地址;接收所述网络侧通过所述Modem发送的所述第二PDN的IP地址。
需要说明的是,本发明实施例提供的流量统计中各功能模块的具体工作过程可以参考方法实施例中对应过程的具体描述,本发明 实施例在此不再详细赘述。
本发明实施例提供的流量统计装置,当检测到第一IP报文时,根据获取到的第一IP报文的第一IP地址,从内存数据库中获取与该第一IP报文的第一IP地址对应的APN,并在与该第一IP报文的第一IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第一IP报文的报文长度累加到VoLTE流量的第一统计值中,以实现对VoLTE流量的统计,这样针对现有技术中仅能统计到AP侧的流量相比,实现了在用户使用LTE网络进行音视频通话时产生的流量的统计。
并且,当AP检测到第二IP报文时,根据获取到的第二IP报文的第二IP地址,从内存数据库中获取与该第二IP报文的第二IP地址对应的APN,并在与该第二IP报文的第二IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第二IP报文的报文长度累加到VoLTE流量的第二统计值中,当该第二IP报文的第二IP地址对应的APN为建立数据业务的承载所需的PDN的APN时,将获取到的第二IP报文的报文长度累加到数据流量的统计值中,以实现对数据流量和VoLTE流量分别统计,且在此基础上,可以针对数据流量和VoLTE流量分别进行限制,以避免误限的情况发生。且在VoLTE流量存在限制的情况下,在能够不影响用户使用音视频业务的前提下,节省了用户的流量。且提供的多种切换策略供用户选择,这样在VoLTE流量存在限制的情况下,可以根据用不选择进行VoLTE业务的传输,提高了用户体验。
本发明另一实施例提供一种流量统计装置,如图11所示,该装置可以包括:获取单元81、累加单元82。
获取单元81,用于当检测到第二互联网协议IP报文时,获取所述第二IP报文的报文长度。
累加单元82,用于将所述获取单元81获取到的所述第二IP报文的报文长度累加到流量的统计值中。
所述获取单元81,还用于获取调制解调器Modem统计得到的 基于长期演进LTE的语音VoLTE流量的第一统计值。
所述累加单元82,还用于将所述获取单元81获取到的所述VoLTE流量的第一统计值累加到所述流量的统计值中。
在本发明实施例中,进一步的,所述获取单元81,具体用于接收所述Modem发送的所述VoLTE流量的第一统计值;或者,查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
需要说明的是,本发明实施例提供的流量统计中各功能模块的具体工作过程可以参考方法实施例中对应过程的具体描述,本发明实施例在此不再详细赘述。
本发明实施例提供的流量统计装置,统计得到VoLTE流量的第一统计值,AP检测到第二IP报文时,将获取到的第二IP报文的报文长度累加到流量的统计值中,并获取Modem统计得到的VoLTE流量的第一统计值,且将VoLTE流量的第一统计值累加到流量的统计值中,与现有技术中,仅能统计到AP侧的流量相比,确保了流量统计的完整性。
本发明实施例提供一种流量统计装置,如图12所示,该装置可以包括:处理器91。
处理器91,用于当检测到第一互联网协议IP报文时,获取所述第一IP报文的第一IP地址,并获取所述第一IP报文的报文长度,从内存数据库中获取与所述第一IP报文的第一IP地址对应的接入点名称APN,当与所述第一IP报文的第一IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
在本发明实施例中,进一步的,所述处理器91,还用于在所述检测到第一互联网协议IP报文之前,获取所述第一PDN的IP地址。
所述装置还可以包括:存储器92。
存储器92,用于将所述处理器91获取到的所述第一PDN的IP地址和所述第一PDN的APN对应存储在所述内存数据库中。
在本发明实施例中,进一步的,当所述第一IP报文为所述流量统计装置接收到的报文时,所述第一IP地址为所述第一IP报文的源IP地址;当所述第一IP报文为所述流量统计装置需发送给网络侧的报文时,所述第一IP地址为所述第一IP报文的目标IP地址。
在本发明实施例中,进一步的,所述处理器91,还用于获取应用处理器AP统计得到的所述VoLTE流量的第二统计值,将所述VoLTE流量的第二统计值累加到所述VoLTE流量的第一统计值中。
在本发明实施例中,进一步的,所述装置还可以包括,接收器93,用于接收所述AP发送的所述VoLTE流量的第二统计值。
或者,
所述处理器91,具体用于查询所述AP统计的流量数据获得所述VoLTE流量的第二统计值。
在本发明实施例中,进一步的,所述装置还可以包括:发送器94,用于向网络侧发送第一PDN注册请求;所述第一PDN注册请求中包含所述第一PDN的APN,以便所述网络侧根据所述第一PDN的APN获取所述第一PDN的IP地址。
所述接收器94,还用于接收所述网络侧发送的所述第一PDN的IP地址。
在本发明实施例中,进一步的,所述处理器91,还用于确定所述VoLTE流量的第一统计值是否大于或等于所述VoLTE流量的限制值,当所述VoLTE流量的第一统计值大于或等于所述VoLTE流量的限制值时,根据切换策略传输VoLTE业务,其中,所述VoLTE业务为VoLTE语音业务或VoLTE视频业务。
在本发明实施例中,进一步的,所述接收器94,还用于在所述处理器91确定所述VoLTE流量的第一统计值是否大于或等于所述VoLTE流量的限制值之前,接收所述AP发送的所述VoLTE流量的限制值。
在本发明实施例中,进一步的,所述接收器94,还用于在所述处理器91根据切换策略传输VoLTE业务之前,接收所述AP发送的 所述切换策略,其中,所述切换策略是所述AP接收到用户对所述切换策略的选择触发后发送的。
在本发明实施例中,进一步的,所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均不受限制。
所述处理器91,具体用于当所述VoLTE业务为所述VoLTE语音业务时,将采集到的语音数据通过LTE网络进行传输;当所述VoLTE业务为所述VoLTE视频业务时,将采集到的语音数据和图像数据通过所述LTE网络进行传输。
在本发明实施例中,进一步的,所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务的传输不受限制,所述VoLTE视频业务的传输受限。
所述处理器91,具体用于当所述VoLTE业务为所述VoLTE语音业务时,将采集到的语音数据通过LTE网络进行传输;当所述VoLTE业务为所述VoLTE视频业务时,将视频模式切换为语音模式,并将采集到的语音数据通过所述LTE网络进行传输。
在本发明实施例中,进一步的,所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均受限。
所述处理器91,具体用于当所述VoLTE业务为所述VoLTE语音业务时,从LTE网络切换到第二代移动通信技术2G/第三代移动通信技术3G网络,并将采集到的语音数据通过电路交换CS域或分组交换PS域进行传输;当所述VoLTE业务为所述VoLTE视频业务时,将视频模式切换为语音模式,并将采集到的语音数据通过所述CS域或所述PS域进行传输。
在本发明实施例中,进一步的,所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,降低所述VoLTE语音业务的编解码速率,降低所述VoLTE视频业务的传输参数。
所述处理器91,具体用于当所述VoLTE业务为所述VoLTE语音业务时,降低采集到的语音数据的编解码速率;当所述VoLTE业务为所述VoLTE视频业务时,降低采集到的视频数据的传输参数。
其中,所述视频数据的传输参数包括以下一种或多种:所述视频数据中的图像数据的分辨率、所述视频数据中的图像数据的帧率,所述视频数据中的语音数据编解码速率。
在本发明实施例中,进一步的,所述发送器94,还用于在所述处理器91将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中之后,将所述处理器91得到的所述VoLTE流量的第一统计值发送至AP。
需要说明的是,本发明实施例提供的流量统计中各功能模块的具体工作过程可以参考方法实施例中对应过程的具体描述,本发明实施例在此不再详细赘述。
本发明实施例提供的流量统计装置,当检测到第一IP报文时,根据获取到的第一IP报文的第一IP地址,从内存数据库中获取与该第一IP报文的第一IP地址对应的APN,并在与该第一IP报文的第一IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第一IP报文的报文长度累加到VoLTE流量的第一统计值中,以实现对VoLTE流量的统计,这样针对现有技术中仅能统计到AP侧的流量相比,实现了在用户使用LTE网络进行音视频通话时产生的流量的统计。
并且,当AP检测到第二IP报文时,根据获取到的第二IP报文的第二IP地址,从内存数据库中获取与该第二IP报文的第二IP地址对应的APN,并在与该第二IP报文的第二IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第二IP报文的报文长度累加到VoLTE流量的第二统计值中,当该第二IP报文的第二IP地址对应的APN为建立数据业务的承载所需的PDN的APN时,将获取到的第二IP报文的报文长度累加到数据流量的统计值中,以实现对数据流量和VoLTE流量分别统计,且在此基础 上,可以针对数据流量和VoLTE流量分别进行限制,以避免误限的情况发生。且在VoLTE流量存在限制的情况下,在能够不影响用户使用音视频业务的前提下,节省了用户的流量。且提供的多种切换策略供用户选择,这样在VoLTE流量存在限制的情况下,可以根据用不选择进行VoLTE业务的传输,提高了用户体验。
本发明另一实施例提供一种流量统计装置,如图13所示,该装置可以包括:处理器1001。
处理器1001,用于当检测到第二互联网协议IP报文时,获取所述第二IP报文的第二IP地址,并获取所述第二IP报文的报文长度,从内存数据库中获取与所述第二IP报文的第二IP地址对应的接入点名称APN,当与所述第二IP报文的第二IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第二IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第二统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
在本发明实施例中,进一步的,当所述第二IP报文为所述流量统计装置接收到的报文时,所述第二IP地址为所述第二IP报文的源IP地址;当所述第二IP报文为所述流量统计装置需发送给网络侧的报文时,所述第二IP地址为所述第二IP报文的目标IP地址。
在本发明实施例中,进一步的,所述装置还可以包括:发送器1002。
发送器1002,用于在所述处理器1001将所述IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第二统计值中之后,向调制解调器Modem发送所述VoLTE流量的第二统计值。
在本发明实施例中,进一步的,所述处理器1001,还用于获取Modem统计得到的所述VoLTE流量的第一统计值,将所述VoLTE流量的第一统计值累加到所述VoLTE流量的第二统计值中,将所述VoLTE流量的第二统计值显示给用户。
在本发明实施例中,进一步的,所述装置还可以包括:接收器1003,还用于接收所述Modem发送的所述VoLTE流量的第一统计 值。
或者,
所述处理器1001,具体用于查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
在本发明实施例中,进一步的,所述处理器1001,还用于当与所述第二IP报文的第二IP地址对应的APN为第二PDN的APN时,将所述第二IP报文的报文长度累加到数据流量的统计值中,将所述数据流量的统计值显示给用户,其中,所述第二PDN为建立数据业务的承载所需的PDN。
在本发明实施例中,进一步的,所述处理器1001,还用于在所述检测到第二互联网协议IP报文之前,获取所述第二PDN的IP地址。
所述装置还可以包括:存储器1004。
存储器1004,用于将所述处理器1001获取到的所述第二PDN的IP地址和所述第二PDN的APN对应存储在所述内存数据库中。
在本发明实施例中,进一步的,所述发送器1002,还用于通过Modem向网络侧发送第二PDN注册请求;所述第二PDN注册请求中包含所述第二PDN的APN,以便所述网络侧根据所述第二PDN的APN获取所述第二PDN的IP地址。
所述接收器1003,还用于接收所述网络侧通过所述Modem发送的所述第二PDN的IP地址。
需要说明的是,本发明实施例提供的流量统计中各功能模块的具体工作过程可以参考方法实施例中对应过程的具体描述,本发明实施例在此不再详细赘述。
本发明实施例提供的流量统计装置,当检测到第一IP报文时,根据获取到的第一IP报文的第一IP地址,从内存数据库中获取与该第一IP报文的第一IP地址对应的APN,并在与该第一IP报文的第一IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第一IP报文的报文长度累加到VoLTE流量的 第一统计值中,以实现对VoLTE流量的统计,这样针对现有技术中仅能统计到AP侧的流量相比,实现了在用户使用LTE网络进行音视频通话时产生的流量的统计。
并且,当AP检测到第二IP报文时,根据获取到的第二IP报文的第二IP地址,从内存数据库中获取与该第二IP报文的第二IP地址对应的APN,并在与该第二IP报文的第二IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第二IP报文的报文长度累加到VoLTE流量的第二统计值中,当该第二IP报文的第二IP地址对应的APN为建立数据业务的承载所需的PDN的APN时,将获取到的第二IP报文的报文长度累加到数据流量的统计值中,以实现对数据流量和VoLTE流量分别统计,且在此基础上,可以针对数据流量和VoLTE流量分别进行限制,以避免误限的情况发生。且在VoLTE流量存在限制的情况下,在能够不影响用户使用音视频业务的前提下,节省了用户的流量。且提供的多种切换策略供用户选择,这样在VoLTE流量存在限制的情况下,可以根据用不选择进行VoLTE业务的传输,提高了用户体验。
本发明另一实施例提供一种流量统计装置,如图14所示,该装置可以包括:处理器1101。
处理器1101,用于当检测到第二互联网协议IP报文时,获取所述第二IP报文的报文长度,将所述第二IP报文的报文长度累加到流量的统计值中,获取调制解调器Modem统计得到的基于长期演进LTE的语音VoLTE流量的第一统计值,将所述VoLTE流量的第一统计值累加到所述流量的统计值中。
在本发明实施例中,进一步的,所述装置还可以包括:发送器1102,用于接收所述Modem发送的所述VoLTE流量的第一统计值。
或者,
所述处理器1101,具体用于查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
需要说明的是,本发明实施例提供的流量统计中各功能模块的 具体工作过程可以参考方法实施例中对应过程的具体描述,本发明实施例在此不再详细赘述。
本发明实施例提供的流量统计装置,统计得到VoLTE流量的第一统计值,AP检测到第二IP报文时,将获取到的第二IP报文的报文长度累加到流量的统计值中,并获取Modem统计得到的VoLTE流量的第一统计值,且将VoLTE流量的第一统计值累加到流量的统计值中,与现有技术中,仅能统计到AP侧的流量相比,确保了流量统计的完整性。
本发明另一实施例提供一种终端设备,如图15所示,该终端设备可以包括:
调制解调器1201,用于当检测到第一IP报文时,获取所述第一IP报文的第一IP地址,并获取所述第一IP报文的报文长度;从内存数据库中获取与所述第一IP报文的第一IP地址对应的接入点名称APN;当与所述第一IP报文的第一IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中。
AP 1202,用于当检测到第二IP报文时,获取所述第二IP报文的第二IP地址,并获取所述第二IP报文的报文长度;从所述内存数据库中获取与所述第二IP报文的第二IP地址对应的APN;当与所述第二IP报文的第二IP地址对应的APN为所述第一PDN的APN时,将所述第二IP报文的报文长度累加到VoLTE流量的第二统计值中。
其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
本发明实施例提供的终端设备,当调制解调器检测到第一IP报文时,根据获取到的第一IP报文的第一IP地址,从内存数据库中获取与该第一IP报文的第一IP地址对应的APN,并在与该第一IP报文的第一IP地址对应的APN为建立VoLTE业务的承载所需的PDN的APN时,将获取到的第一IP报文的报文长度累加到VoLTE流量的第一统计值中,以实现对VoLTE流量的统计,这样针对现有 技术中仅能统计到AP侧的流量相比,实现了在用户使用LTE网络进行音视频通话时产生的流量的统计。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设 备(可以是单片机,芯片等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。

Claims (58)

  1. 一种流量统计方法,其特征在于,包括:
    当调制解调器Modem检测到第一互联网协议IP报文时,获取所述第一IP报文的第一IP地址,并获取所述第一IP报文的报文长度;
    所述Modem从内存数据库中获取与所述第一IP报文的第一IP地址对应的接入点名称APN;
    当与所述第一IP报文的第一IP地址对应的APN为第一公共数据网络PDN的APN时,所述Modem将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
  2. 根据权利要求1所述的方法,其特征在于,在所述当调制解调器Modem检测到第一互联网协议IP报文之前,还包括:
    所述Modem获取所述第一PDN的IP地址;
    所述Modem将所述第一PDN的IP地址和所述第一PDN的APN对应存储在所述内存数据库中。
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    所述Modem获取应用处理器AP统计得到的所述VoLTE流量的第二统计值;
    所述Modem将所述VoLTE流量的第二统计值累加到所述VoLTE流量的第一统计值中。
  4. 根据权利要求3所述的方法,其特征在于,所述Modem获取应用处理器AP统计得到的所述VoLTE流量的第二统计值,包括:
    所述Modem接收所述AP发送的所述VoLTE流量的第二统计值;
    或者,
    所述Modem查询所述AP统计的流量数据获得所述VoLTE流量的第二统计值。
  5. 根据权利要求2所述的方法,其特征在于,所述Modem获取所述第一PDN的IP地址,包括:
    所述Modem向网络侧发送第一PDN注册请求;所述第一PDN注册请求中包含所述第一PDN的APN,以便所述网络侧根据所述第一PDN的APN获取所述第一PDN的IP地址;
    所述Modem接收所述网络侧发送的所述第一PDN的IP地址。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述方法还包括:
    所述Modem确定所述VoLTE流量的第一统计值是否大于或等于所述VoLTE流量的限制值;
    当所述VoLTE流量的第一统计值大于或等于所述VoLTE流量的限制值时,所述Modem根据切换策略传输VoLTE业务,其中,所述VoLTE业务为VoLTE语音业务或VoLTE视频业务。
  7. 根据权利要求6所述的方法,其特征在于,在所述Modem根据切换策略传输VoLTE业务之前,还包括:
    所述Modem接收所述AP发送的所述切换策略,其中,所述切换策略是所述AP接收到用户对所述切换策略的选择触发后发送的。
  8. 根据权利要求6或7所述的方法,其特征在于,
    所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均不受限制;
    所述Modem根据切换策略传输VoLTE业务,包括:
    当所述VoLTE业务为所述VoLTE语音业务时,所述Modem将采集到的语音数据通过LTE网络进行传输;
    当所述VoLTE业务为所述VoLTE视频业务时,所述Modem将采集到的语音数据和图像数据通过所述LTE网络进行传输。
  9. 根据权利要求6或7所述的方法,其特征在于,
    所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务的传输不受限制,所述VoLTE视频业务的传输受限;
    所述Modem根据切换策略传输VoLTE业务,包括:
    当所述VoLTE业务为所述VoLTE语音业务时,所述Modem将采集到的语音数据通过LTE网络进行传输;
    当所述VoLTE业务为所述VoLTE视频业务时,所述Modem将视频模式切换为语音模式,并将采集到的语音数据通过所述LTE网络进行传输。
  10. 根据权利要求6或7所述的方法,其特征在于,
    所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均受限;
    所述Modem根据切换策略传输VoLTE业务,包括:
    当所述VoLTE业务为所述VoLTE语音业务时,所述Modem从LTE网络切换到第二代移动通信技术2G/第三代移动通信技术3G网络,并将采集到的语音数据通过电路交换CS域或分组交换PS域进行传输;
    当所述VoLTE业务为所述VoLTE视频业务时,所述Modem将视频模式切换为语音模式,并将采集到的语音数据通过所述CS域或所述PS域进行传输。
  11. 根据权利要求6或7所述的方法,其特征在于,
    所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,降低所述VoLTE语音业务的编解码速率,降低所述VoLTE视频业务的传输参数;
    所述Modem根据切换策略传输VoLTE业务,包括:
    当所述VoLTE业务为所述VoLTE语音业务时,所述Modem降低采集到的语音数据的编解码速率;
    当所述VoLTE业务为所述VoLTE视频业务时,所述Modem降低采集到的视频数据的传输参数;
    其中,所述视频数据的传输参数包括以下一种或多种:所述视频数据中的图像数据的分辨率、所述视频数据中的图像数据的帧率,所述视频数据中的语音数据编解码速率。
  12. 一种流量统计方法,其特征在于,包括:
    当应用处理器AP检测到第二互联网协议IP报文时,获取所述第二IP报文的第二IP地址,并获取所述第二IP报文的报文长度;
    所述AP从内存数据库中获取与所述第二IP报文的第二IP地址对应的接入点名称APN;
    当与所述第二IP报文的第二IP地址对应的APN为第一公共数据网络PDN的APN时,所述AP将所述第二IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第二统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
  13. 根据权利要求12所述的方法,其特征在于,所述方法还包括:
    所述AP获取Modem统计得到的所述VoLTE流量的第一统计值;
    所述AP将所述VoLTE流量的第一统计值累加到所述VoLTE流量的第二统计值中;
    所述AP将所述VoLTE流量的第二统计值显示给用户。
  14. 根据权利要求13所述的方法,其特征在于,所述AP获取所述Modem统计得到的所述VoLTE流量的第一统计值,包括:
    所述AP接收所述Modem发送的所述VoLTE流量的第一统计值;
    或者,
    所述AP查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
  15. 根据权利要求12-14中任一项所述的方法,其特征在于,所述方法还包括:
    当与所述第二IP报文的第二IP地址对应的APN为第二PDN的APN时,所述AP将所述第二IP报文的报文长度累加到数据流量的统计值中,所述第二PDN为建立数据业务的承载所需的PDN;
    所述AP将所述数据流量的统计值显示给用户。
  16. 根据权利要求15所述的方法,其特征在于,在所述当应用处理器AP检测到第二互联网协议IP报文之前,还包括:
    所述AP获取所述第二PDN的IP地址;
    所述AP将所述第二PDN的IP地址和所述第二PDN的APN对应存储在所述内存数据库中。
  17. 根据权利要求16所述的方法,其特征在于,所述AP获取所述第二PDN的IP地址,包括:
    所述AP通过Modem向网络侧发送第二PDN注册请求;所述第二PDN注册请求中包含所述第二PDN的APN,以便所述网络侧根据所述第二PDN的APN获取所述第二PDN的IP地址;
    所述AP接收所述网络侧通过所述Modem发送的所述第二PDN的IP地址。
  18. 一种流量统计方法,其特征在于,包括:
    应用处理器AP检测到第二互联网协议IP报文时,获取所述第二IP报文的报文长度;
    所述AP将所述第二IP报文的报文长度累加到流量的统计值中;
    所述AP获取调制解调器Modem统计得到的基于长期演进LTE的语音VoLTE流量的第一统计值;
    所述AP将所述VoLTE流量的第一统计值累加到所述流量的统计值中。
  19. 根据权利要求18所述的方法,其特征在于,所述AP获取调制解调器Modem统计得到的基于长期演进LTE的语音VoLTE流量的第一统计值,包括:
    所述AP接收所述Modem发送的所述VoLTE流量的第一统计值;
    或者,
    所述AP查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
  20. 一种流量统计装置,其特征在于,包括:
    获取单元,用于当调检测到第一互联网协议IP报文时,获取所述第一IP报文的第一IP地址,并获取所述第一IP报文的报文长度,从内存数据库中获取与所述第一IP报文的第一IP地址对应的接入点 名称APN;
    累加单元,用于当所述获取单元获取到的与所述第一IP报文的第一IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
  21. 根据权利要求20所述的装置,其特征在于,
    所述获取单元,还用于在所述检测到第一互联网协议IP报文之前,获取所述第一PDN的IP地址;
    所述装置还包括:
    存储单元,用于将所述获取单元获取到的所述第一PDN的IP地址和所述第一PDN的APN对应存储在所述内存数据库中。
  22. 根据权利要求20或21所述的装置,其特征在于,
    所述获取单元,还用于获取应用处理器AP统计得到的所述VoLTE流量的第二统计值;
    所述累加单元,还用于将所述获取单元获取到的所述VoLTE流量的第二统计值累加到所述VoLTE流量的第一统计值中。
  23. 根据权利要求22所述的装置,其特征在于,所述获取单元,具体用于:
    接收所述AP发送的所述VoLTE流量的第二统计值;
    或者,
    查询所述AP统计的流量数据获得所述VoLTE流量的第二统计值。
  24. 根据权利要求21所述的装置,其特征在于,所述获取单元,具体用于:
    向网络侧发送第一PDN注册请求;所述第一PDN注册请求中包含所述第一PDN的APN,以便所述网络侧根据所述第一PDN的APN获取所述第一PDN的IP地址;
    接收所述网络侧发送的所述第一PDN的IP地址。
  25. 根据权利要求20-24中任一项所述的装置,其特征在于,所述装置还包括:
    确定单元,用于确定所述VoLTE流量的第一统计值是否大于或等于所述VoLTE流量的限制值;
    传输单元,用于当所述确定单元确定出所述VoLTE流量的第一统计值大于或等于所述VoLTE流量的限制值时,根据切换策略传输VoLTE业务,其中,所述VoLTE业务为VoLTE语音业务或VoLTE视频业务。
  26. 根据权利要求25所述的装置,其特征在于,
    所述接收单元,还用于在所述传输单元根据切换策略传输VoLTE业务之前,接收所述AP发送的所述切换策略,其中,所述切换策略是所述AP接收到用户对所述切换策略的选择触发后发送的。
  27. 根据权利要求25或26所述的装置,其特征在于,
    所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均不受限制;
    所述传输单元,具体用于:
    当所述VoLTE业务为所述VoLTE语音业务时,将采集到的语音数据通过LTE网络进行传输;
    当所述VoLTE业务为所述VoLTE视频业务时,将采集到的语音数据和图像数据通过所述LTE网络进行传输。
  28. 根据权利要求25或26所述的装置,其特征在于,
    所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务的传输不受限制,所述VoLTE视频业务的传输受限;
    所述传输单元,具体用于:
    当所述VoLTE业务为所述VoLTE语音业务时,将采集到的语音数据通过LTE网络进行传输;
    当所述VoLTE业务为所述VoLTE视频业务时,将视频模式切换 为语音模式,并将采集到的语音数据通过所述LTE网络进行传输。
  29. 根据权利要求25或26所述的装置,其特征在于,
    所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均受限;
    所述传输单元,具体用于:
    当所述VoLTE业务为所述VoLTE语音业务时,从LTE网络切换到第二代移动通信技术2G/第三代移动通信技术3G网络,并将采集到的语音数据通过电路交换CS域或分组交换PS域进行传输;
    当所述VoLTE业务为所述VoLTE视频业务时,将视频模式切换为语音模式,并将采集到的语音数据通过所述CS域或所述PS域进行传输。
  30. 根据权利要求25或26所述的装置,其特征在于,
    所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,降低所述VoLTE语音业务的编解码速率,降低所述VoLTE视频业务的传输参数;
    所述传输单元,具体用于:
    当所述VoLTE业务为所述VoLTE语音业务时,降低采集到的语音数据的编解码速率;
    当所述VoLTE业务为所述VoLTE视频业务时,降低采集到的视频数据的传输参数;
    其中,所述视频数据的传输参数包括以下一种或多种:所述视频数据中的图像数据的分辨率、所述视频数据中的图像数据的帧率,所述视频数据中的语音数据编解码速率。
  31. 一种流量统计装置,其特征在于,包括:
    获取单元,用于当检测到第二互联网协议IP报文时,获取所述第二IP报文的第二IP地址,并获取所述第二IP报文的报文长度,从内存数据库中获取与所述第二IP报文的第二IP地址对应的接入点名称APN;
    累加单元,用于当所述获取单元获取到的与所述第二IP报文的第二IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第二IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第二统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
  32. 根据权利要求31所述的装置,其特征在于,
    所述获取单元,还用于获取Modem统计得到的所述VoLTE流量的第一统计值;
    所述累加单元,还用于将所述VoLTE流量的第一统计值累加到所述VoLTE流量的第二统计值中;
    所述装置还包括:
    显示单元,用于将所述累加单元得到的所述VoLTE流量的第二统计值显示给用户。
  33. 根据权利要求32所述的装置,其特征在于,所述获取单元,具体用于:
    接收所述Modem发送的所述VoLTE流量的第一统计值;
    或者,
    查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
  34. 根据权利要求31-33中任一项所述的装置,其特征在于,
    所述累加单元,还用于当所述获取单元获取到的与所述第二IP报文的第二IP地址对应的APN为第二PDN的APN时,将所述第二IP报文的报文长度累加到数据流量的统计值中,其中,所述第二PDN为建立数据业务的承载所需的PDN
    所述显示单元,还用于将所述累加单元得到的所述数据流量的统计值显示给用户。
  35. 根据权利要求34所述的装置,其特征在于,
    所述获取单元,还用于在所述获取单元检测到第二互联网协议IP报文之前,获取所述第二PDN的IP地址;
    所述装置还包括:
    存储单元,用于将所述获取单元获取到的所述第二PDN的IP地址和所述第二PDN的APN对应存储在所述内存数据库中。
  36. 根据权利要求35所述的装置,其特征在于,所述获取单元,具体用于:
    通过Modem向网络侧发送第二PDN注册请求;所述第二PDN注册请求中包含所述第二PDN的APN,以便所述网络侧根据所述第二PDN的APN获取所述第二PDN的IP地址;
    接收所述网络侧通过所述Modem发送的所述第二PDN的IP地址。
  37. 一种流量统计装置,其特征在于,包括:
    获取单元,用于当检测到第二互联网协议IP报文时,获取所述第二IP报文的报文长度;
    累加单元,用于将所述获取单元获取到的所述第二IP报文的报文长度累加到流量的统计值中;
    所述获取单元,还用于获取调制解调器Modem统计得到的基于长期演进LTE的语音VoLTE流量的第一统计值;
    所述累加单元,还用于将所述获取单元获取到的所述VoLTE流量的第一统计值累加到所述流量的统计值中。
  38. 根据权利要求37所述的装置,其特征在于,所述获取单元,具体用于:
    接收所述Modem发送的所述VoLTE流量的第一统计值;
    或者,
    查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
  39. 一种流量统计装置,其特征在于,包括:
    处理器,用于当调检测到第一互联网协议IP报文时,获取所述第一IP报文的第一IP地址,并获取所述第一IP报文的报文长度,从内存数据库中获取与所述第一IP报文的第一IP地址对应的接入点名 称APN,当与所述第一IP报文的第一IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
  40. 根据权利要求39所述的装置,其特征在于,
    所述处理器,还用于在所述检测到第一互联网协议IP报文之前,获取所述第一PDN的IP地址;
    所述装置还包括:
    存储器,用于将所述处理器获取到的所述第一PDN的IP地址和所述第一PDN的APN对应存储在所述内存数据库中。
  41. 根据权利要求39或40所述的装置,其特征在于,
    所述处理器,还用于获取应用处理器AP统计得到的所述VoLTE流量的第二统计值,将所述VoLTE流量的第二统计值累加到所述VoLTE流量的第一统计值中。
  42. 根据权利要求41所述的装置,其特征在于,
    所述装置还包括,接收器,用于接收所述AP发送的所述VoLTE流量的第二统计值;
    或者,
    所述处理器,具体用于查询所述AP统计的流量数据获得所述VoLTE流量的第二统计值。
  43. 根据权利要求40所述的装置,其特征在于,
    所述装置还包括:发送器,用于向网络侧发送第一PDN注册请求;所述第一PDN注册请求中包含所述第一PDN的APN,以便所述网络侧根据所述第一PDN的APN获取所述第一PDN的IP地址;
    所述接收器,还用于接收所述网络侧发送的所述第一PDN的IP地址。
  44. 根据权利要求39-43中任一项所述的装置,其特征在于,
    所述处理器,还用于确定所述VoLTE流量的第一统计值是否大于或等于所述VoLTE流量的限制值,当所述VoLTE流量的第一统计 值大于或等于所述VoLTE流量的限制值时,根据切换策略传输VoLTE业务,其中,所述VoLTE业务为VoLTE语音业务或VoLTE视频业务。
  45. 根据权利要求44所述的装置,其特征在于,
    所述接收器,还用于在所述处理器根据切换策略传输VoLTE业务之前,接收所述AP发送的所述切换策略,其中,所述切换策略是所述AP接收到用户对所述切换策略的选择触发后发送的。
  46. 根据权利要求44或45所述的装置,其特征在于,
    所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均不受限制;
    所述处理器,具体用于:
    当所述VoLTE业务为所述VoLTE语音业务时,将采集到的语音数据通过LTE网络进行传输;
    当所述VoLTE业务为所述VoLTE视频业务时,将采集到的语音数据和图像数据通过所述LTE网络进行传输。
  47. 根据权利要求44或45所述的装置,其特征在于,
    所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务的传输不受限制,所述VoLTE视频业务的传输受限;
    所述处理器,具体用于:
    当所述VoLTE业务为所述VoLTE语音业务时,将采集到的语音数据通过LTE网络进行传输;
    当所述VoLTE业务为所述VoLTE视频业务时,将视频模式切换为语音模式,并将采集到的语音数据通过所述LTE网络进行传输。
  48. 根据权利要求44或45所述的装置,其特征在于,
    所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,所述VoLTE语音业务和所述VoLTE视频业务的传输均受限;
    所述处理器,具体用于:
    当所述VoLTE业务为所述VoLTE语音业务时,从LTE网络切换到第二代移动通信技术2G/第三代移动通信技术3G网络,并将采集到的语音数据通过电路交换CS域或分组交换PS域进行传输;
    当所述VoLTE业务为所述VoLTE视频业务时,将视频模式切换为语音模式,并将采集到的语音数据通过所述CS域或所述PS域进行传输。
  49. 根据权利要求44或45所述的装置,其特征在于,
    所述切换策略为在所述VoLTE流量的第一统计值大于或等于VoLTE流量的限制值时,降低所述VoLTE语音业务的编解码速率,降低所述VoLTE视频业务的传输参数;
    所述处理器,具体用于:
    当所述VoLTE业务为所述VoLTE语音业务时,降低采集到的语音数据的编解码速率;
    当所述VoLTE业务为所述VoLTE视频业务时,降低采集到的视频数据的传输参数;
    其中,所述视频数据的传输参数包括以下一种或多种:所述视频数据中的图像数据的分辨率、所述视频数据中的图像数据的帧率,所述视频数据中的语音数据编解码速率。
  50. 一种流量统计装置,其特征在于,包括:
    处理器,用于当检测到第二互联网协议IP报文时,获取所述第二IP报文的第二IP地址,并获取所述第二IP报文的报文长度,从内存数据库中获取与所述第二IP报文的第二IP地址对应的接入点名称APN,当与所述第二IP报文的第二IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第二IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第二统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN。
  51. 根据权利要求50所述的装置,其特征在于,
    所述处理器,还用于获取Modem统计得到的所述VoLTE流量的第一统计值,将所述VoLTE流量的第一统计值累加到所述VoLTE流 量的第二统计值中,将所述VoLTE流量的第二统计值显示给用户。
  52. 根据权利要求51所述的装置,其特征在于,
    所述装置还包括:接收器,还用于接收所述Modem发送的所述VoLTE流量的第一统计值;
    或者,
    所述处理器,具体用于查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
  53. 根据权利要求50-52中任一项所述的装置,其特征在于,
    所述处理器,还用于当与所述第二IP报文的第二IP地址对应的APN为第二PDN的APN时,将所述第二IP报文的报文长度累加到数据流量的统计值中,将所述数据流量的统计值显示给用户,其中,所述第二PDN为建立数据业务的承载所需的PDN。
  54. 根据权利要求53所述的装置,其特征在于,
    所述处理器,还用于在所述检测到第二互联网协议IP报文之前,获取所述第二PDN的IP地址;
    所述装置还包括:
    存储器,用于将所述处理器获取到的所述第二PDN的IP地址和所述第二PDN的APN对应存储在所述内存数据库中。
  55. 根据权利要求54所述的装置,其特征在于,
    所述发送器,还用于通过Modem向网络侧发送第二PDN注册请求;所述第二PDN注册请求中包含所述第二PDN的APN,以便所述网络侧根据所述第二PDN的APN获取所述第二PDN的IP地址;
    所述接收器,还用于接收所述网络侧通过所述Modem发送的所述第二PDN的IP地址。
  56. 一种流量统计装置,其特征在于,包括:
    处理器,用于当检测到第二互联网协议IP报文时,获取所述第二IP报文的报文长度,将所述第二IP报文的报文长度累加到流量的统计值中,获取调制解调器Modem统计得到的基于长期演进LTE的语音VoLTE流量的第一统计值,将所述VoLTE流量的第一统计值累 加到所述流量的统计值中。
  57. 根据权利要求56所述的装置,其特征在于,
    所述装置还包括:接收器,用于接收所述Modem发送的所述VoLTE流量的第一统计值;
    或者,
    所述处理器,具体用于查询所述Modem统计的流量数据获得所述VoLTE流量的第一统计值。
  58. 一种终端设备,其特征在于,包括:
    调制解调器Modem,用于当检测到第一互联网协议IP报文时,获取所述第一IP报文的第一IP地址,并获取所述第一IP报文的报文长度;从内存数据库中获取与所述第一IP报文的第一IP地址对应的接入点名称APN;当与所述第一IP报文的第一IP地址对应的APN为第一公共数据网络PDN的APN时,将所述第一IP报文的报文长度累加到基于长期演进LTE的语音VoLTE流量的第一统计值中,其中,所述第一PDN为建立VoLTE业务的承载所需的PDN;
    应用处理器AP,用于当检测到第二IP报文时,获取所述第二IP报文的第二IP地址,并获取所述第二IP报文的报文长度;从所述内存数据库中获取与所述第二IP报文的第二IP地址对应的APN;当与所述第二IP报文的第二IP地址对应的APN为所述第一PDN的APN时,将所述第二IP报文的报文长度累加到VoLTE流量的第二统计值中。
PCT/CN2015/076655 2015-04-15 2015-04-15 一种流量统计方法、装置及终端设备 WO2016165088A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2015/076655 WO2016165088A1 (zh) 2015-04-15 2015-04-15 一种流量统计方法、装置及终端设备
CN201580078871.8A CN107534880B (zh) 2015-04-15 2015-04-15 一种流量统计方法、装置及终端设备
US15/566,395 US10701573B2 (en) 2015-04-15 2015-04-15 Traffic statistics collection method and apparatus, and terminal device
EP15888793.5A EP3280169B1 (en) 2015-04-15 2015-04-15 Traffic statistics collecting method, device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/076655 WO2016165088A1 (zh) 2015-04-15 2015-04-15 一种流量统计方法、装置及终端设备

Publications (1)

Publication Number Publication Date
WO2016165088A1 true WO2016165088A1 (zh) 2016-10-20

Family

ID=57125619

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076655 WO2016165088A1 (zh) 2015-04-15 2015-04-15 一种流量统计方法、装置及终端设备

Country Status (4)

Country Link
US (1) US10701573B2 (zh)
EP (1) EP3280169B1 (zh)
CN (1) CN107534880B (zh)
WO (1) WO2016165088A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107046598A (zh) * 2017-02-27 2017-08-15 捷开通讯(深圳)有限公司 一种基于移动终端的控制volte功能的方法及移动终端
DE102017210587B4 (de) * 2017-06-23 2020-11-05 Volkswagen Aktiengesellschaft Verfahren, Vorrichtungen und computerlesbares Speichermedium mit Instruktionen zum Datenaustausch zwischen einem Netzwerkzugangsgerät und einem Datendienstanbieter
CN109327866B (zh) * 2018-12-19 2022-01-04 惠州Tcl移动通信有限公司 流量控制方法、装置、移动终端及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005381A (zh) * 2006-01-17 2007-07-25 华为技术有限公司 一种在终端上实现的基于用户业务的流量统计系统与方法
CN103428754A (zh) * 2012-12-05 2013-12-04 中兴通讯股份有限公司 流量上报的方法、装置和网络流量统计方法及装置
WO2014021069A1 (ja) * 2012-08-02 2014-02-06 日本電気株式会社 トラフィックデータ収集装置、トラフィックデータ収集方法、及びプログラム
CN104022920A (zh) * 2014-06-26 2014-09-03 重庆重邮汇测通信技术有限公司 一种lte网络流量识别系统及方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035170A (zh) * 2006-03-09 2007-09-12 林春云 基于usb接口的语音通信方法及装置
CN101222383B (zh) * 2008-01-23 2010-06-02 湖南大学 一种基于h.323协议的ip网络电话语音流量监测方法
CN101854649A (zh) 2010-05-20 2010-10-06 中兴通讯股份有限公司 移动终端、监控移动终端上网数据流量的方法及装置
JP2014027534A (ja) 2012-07-27 2014-02-06 Ntt Docomo Inc 移動通信システム、移動局、ネットワーク装置及び移動通信方法
US20150009874A1 (en) * 2013-07-08 2015-01-08 Amazon Technologies, Inc. Techniques for optimizing propagation of multiple types of data
US20150092540A1 (en) * 2013-09-30 2015-04-02 Broadcom Corporation System and Method for Traffic Offload
US9408104B1 (en) * 2014-06-05 2016-08-02 Sprint Spectrum L.P. Control of wireless communication based on predicted impact of data bundling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005381A (zh) * 2006-01-17 2007-07-25 华为技术有限公司 一种在终端上实现的基于用户业务的流量统计系统与方法
WO2014021069A1 (ja) * 2012-08-02 2014-02-06 日本電気株式会社 トラフィックデータ収集装置、トラフィックデータ収集方法、及びプログラム
CN103428754A (zh) * 2012-12-05 2013-12-04 中兴通讯股份有限公司 流量上报的方法、装置和网络流量统计方法及装置
CN104022920A (zh) * 2014-06-26 2014-09-03 重庆重邮汇测通信技术有限公司 一种lte网络流量识别系统及方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3280169A4 *

Also Published As

Publication number Publication date
EP3280169A4 (en) 2018-04-18
EP3280169B1 (en) 2020-11-04
EP3280169A1 (en) 2018-02-07
CN107534880B (zh) 2020-01-31
US10701573B2 (en) 2020-06-30
CN107534880A (zh) 2018-01-02
US20180146386A1 (en) 2018-05-24

Similar Documents

Publication Publication Date Title
US11245626B2 (en) Congestion notification method, related device, and system
US9544201B2 (en) Quality of experience in communication networks
KR101800777B1 (ko) 애드-혹 무선 네트워크들에서 관리 정보의 통신을 위한 디바이스 및 방법
RU2012129730A (ru) Способ мобильной связи, узел управления вызовом, узел управления приоритетом и узел управления мобильностью
EP2945327A1 (en) Media data transmission method, apparatus and system
WO2020133433A1 (zh) 网络切换方法及相关设备
WO2016165088A1 (zh) 一种流量统计方法、装置及终端设备
WO2015043370A1 (zh) 一种移动视频质量检测方法和装置
CN104509060A (zh) 流媒体数据传输的方法及装置
US10616119B2 (en) Policy determining method and apparatus
KR101306374B1 (ko) 다중 비트율의 콘텐츠를 사용한 VoD 서비스 방법
US20150119083A1 (en) Method to trigger devices based on their location
KR102389003B1 (ko) 이종망간 전환시 멀티미디어 서비스 제공 장치 및 방법
US20180007676A1 (en) Method, device and system for uniformly controlling multiple smart devices
CN107666689B (zh) 一种视频通信过程中的带宽调整方法、设备及系统
KR101231265B1 (ko) 이종 무선망에서 스트리밍 서비스 제공 방법 및 시스템
US10153971B2 (en) Data transmission method and entity
JP6530284B2 (ja) 無線通信装置、無線通信方法およびプログラム
CN104954594A (zh) VoIP质量保证系统及互联网呼叫中心
WO2015117484A1 (zh) 一种单卡双待电信业务平台管理方法、装置和终端
WO2015196325A1 (zh) 无线接入承载子流组合rfc的配置指示方法及装置
CN116325864A (zh) 无线通信方法、终端设备和网络设备
CN105992311A (zh) 一种单片机联网的方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15888793

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15566395

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2015888793

Country of ref document: EP