CN106330582B - Method and device for detecting number of shared internet access mobile terminals - Google Patents

Method and device for detecting number of shared internet access mobile terminals Download PDF

Info

Publication number
CN106330582B
CN106330582B CN201510340626.1A CN201510340626A CN106330582B CN 106330582 B CN106330582 B CN 106330582B CN 201510340626 A CN201510340626 A CN 201510340626A CN 106330582 B CN106330582 B CN 106330582B
Authority
CN
China
Prior art keywords
push notification
notification service
service flow
preset
effective
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201510340626.1A
Other languages
Chinese (zh)
Other versions
CN106330582A (en
Inventor
神兴鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510340626.1A priority Critical patent/CN106330582B/en
Priority to PCT/CN2015/096028 priority patent/WO2016201910A1/en
Publication of CN106330582A publication Critical patent/CN106330582A/en
Application granted granted Critical
Publication of CN106330582B publication Critical patent/CN106330582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a method and a device for detecting the number of shared internet mobile terminals, wherein the detection method comprises the following steps: acquiring a push notification service flow generated when a mobile terminal sends a network connection request; and if the push notification service flow can be inquired in the preset push notification service table and is effective, updating the number of the effective push notification service flows recorded in the preset push notification service flow table, and counting the number of the shared internet mobile terminals according to the updated number of the effective push notification service flows. The detection method provided by the scheme of the invention can reversely deduce the number of the shared internet mobile terminals by identifying the number of the effective push notification service flows, and can effectively detect the number of the mobile terminals with the same brand and model and the same operating system version, thereby avoiding the measurement error of the traditional detection method.

Description

Method and device for detecting number of shared internet access mobile terminals
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for detecting the number of shared internet access mobile terminals.
Background
Shared Internet access means that a terminal user of an operator connects and shares Internet (Internet) provided by the operator to a plurality of hosts/terminals of an intranet of the operator through Network Address Translation (NAT) software/NAT equipment, so that a plurality of mobile terminals can use the Internet to connect Internet at the same time.
At present, the conventional method for detecting shared Internet access mainly calculates the specific number of terminals by detecting the characteristics of an IPID (identification) field in an IP (Internet Protocol, Protocol for interconnection between networks) message and the characteristics of a User-Agent (User Agent) in an HTTP (HyperText Transfer Protocol) message.
When the characteristics of an IPID (identification) field in an IP message are detected, the IPID field in the IP message generated by two main intelligent mobile terminal systems (IOS, Android) at present is random, and the method is invalid in the two systems.
In addition, when the number of terminals is detected through information such as User-Agent brand system versions carried in the HTTP message, the method is generally only applicable to terminals of different brands and types or different system versions. The method is also ineffective when there are mobile terminals of the same model handset or the same system version.
However, with the rapid development of smart mobile terminals, internet access via mobile terminals has exceeded PC (personal computer) computers, and has become a mainstream platform for internet access. A plurality of mobile terminals access the internet through WIFI (WIreless Fidelity) hotspots, and the mobile terminals are widely used by a wide range of users. Particularly, in the popularity of apple devices, terminals with the same brand and model and the same operating system version often appear in terminals accessing the internet through the same NAT device. Therefore, detection errors often exist by adopting the two traditional detection methods.
Disclosure of Invention
The invention provides a method and a device for detecting the number of shared internet mobile terminals, which can not only reversely push the number of the shared internet mobile terminals but also effectively detect the number of the mobile terminals with the same brand and model and the same operating system version by identifying the number of effective push notification service flows.
In order to solve the technical problems, the invention adopts the following technical scheme:
according to an aspect of the present invention, a method for detecting the number of mobile terminals sharing internet access is provided, which includes:
acquiring a push notification service flow generated when a mobile terminal sends a network connection request;
if the push notification service flow can be inquired in a preset push notification service table and the push notification service flow is an effective push notification service flow, updating the number of the effective push notification service flows recorded in the preset push notification service flow table, and counting the number of the shared internet mobile terminals according to the updated number of the effective push notification service flows.
Optionally, the preset push notification service flow table includes one or more push notification service flows corresponding to one or more mobile terminals, and a response packet number and a timestamp of the push notification service flow.
Optionally, the detection method further includes:
if the push notification service flow cannot be inquired in the preset push notification service flow table, acquiring a quintuple of the push notification service flow, adding the push notification service flow into the preset push notification service flow table according to the quintuple of the push notification service flow, and recording the response message quantity and the timestamp of the push notification service flow, wherein the quintuple is a source IP address, a source port, a destination IP address, a destination port and a transport layer protocol of the push notification service flow.
Optionally, if the push notification service flow can be queried in a preset push notification service table, and the push notification service flow is an effective push notification service flow, updating the number of the effective push notification service flows recorded in the preset push notification service flow table, and counting the number of the shared internet-surfing mobile terminals according to the updated number of the effective push notification service flows, specifically including:
receiving a response message fed back by the server according to the push notification service flow, and updating the number of the response messages of the push notification service flow recorded in the preset push notification service flow table;
comparing the updated response message quantity of the push notification service flow with a first preset threshold value, and determining that the push notification service flow is an effective push notification service flow when the response message quantity of the push notification service flow is greater than the first preset threshold value;
when the push notification service flow is an effective push notification service flow, increasing the number of the effective push notification service flows recorded in the preset push notification service flow table;
and increasing the number of the mobile terminals on the sharing network according to the increased number of the effective push notification service flows.
Optionally, if the push notification service flow can be queried in a preset push notification service table, and the push notification service flow is an effective push notification service flow, updating the number of the effective push notification service flows recorded in the preset push notification service flow table, and counting the number of the shared internet-surfing mobile terminals according to the updated number of the effective push notification service flows, specifically including:
acquiring a timestamp of the push notification service flow, and timing the survival time of the push notification service flow according to the timestamp of the push notification service flow;
comparing the survival time of the push notification service flow with a second preset threshold, and deleting the push notification service flow from the preset push notification service flow table when the survival time of the push notification service flow is greater than the second preset threshold;
when the push notification service flow is deleted from the preset push notification service flow table, reducing the number of the effective push notification service flows recorded in the preset push notification service flow table;
and reducing the number of the mobile terminals on the sharing network according to the reduced number of the effective push notification service flows.
According to another aspect of the present invention, there is provided a device for detecting the number of mobile terminals sharing internet access, including:
the system comprises an acquisition module, a sending module and a sending module, wherein the acquisition module is used for acquiring a push notification service flow generated when a mobile terminal sends a network connection request;
and the updating module is used for updating the number of the effective push notification service flows recorded in the preset push notification service flow table if the push notification service flow can be inquired in the preset push notification service table and is an effective push notification service flow, and counting the number of the shared internet mobile terminals according to the updated number of the effective push notification service flows.
Optionally, the preset push notification service flow table includes one or more push notification service flows corresponding to one or more mobile terminals, and a response packet number and a timestamp of the push notification service flow.
Optionally, the detection apparatus further comprises:
and the adding module is used for acquiring a quintuple of the push notification service flow if the push notification service flow cannot be inquired in the preset push notification service flow table, adding the push notification service flow into the preset push notification service flow table according to the quintuple of the push notification service flow, and recording the response message quantity and the timestamp of the push notification service flow, wherein the quintuple is a source IP address, a source port, a destination IP address, a destination port and a transport layer protocol of the push notification service flow.
Optionally, the update module specifically includes:
the updating unit is used for receiving a response message fed back by the server according to the push notification service flow and updating the number of the response messages of the push notification service flow recorded in the preset push notification service flow table;
a first comparing unit, configured to compare the updated number of response packets of the push notification service flow with a first preset threshold, and determine that the push notification service flow is an effective push notification service flow when the number of response packets of the push notification service flow is greater than the first preset threshold;
a first increasing unit, configured to increase, when the push notification service flow is an effective push notification service flow, the number of the effective push notification service flows recorded in the preset push notification service flow table;
a second adding unit, configured to increase the number of mobile terminals in the upper sharing network according to the increased number of the effective push notification service flows.
Optionally, the update module specifically includes:
the timing unit is used for acquiring the timestamp of the push notification service flow and timing the survival time of the push notification service flow according to the timestamp of the push notification service flow;
a second comparing unit, configured to compare the survival time of the push notification service flow with a second preset threshold, and delete the push notification service flow from the preset push notification service flow table when the survival time of the push notification service flow is greater than the second preset threshold;
a first reducing unit configured to reduce the number of the valid push notification service flows recorded in the preset push notification service flow table when the push notification service flow is deleted from the preset push notification service flow table;
a second reducing unit, configured to reduce the number of mobile terminals in the upper sharing network according to the reduced number of the effective push notification service flows.
The invention has the beneficial effects that:
the method for detecting the number of the shared internet-surfing mobile terminals firstly acquires the push notification service flow generated when the mobile terminal sends the network connection request, then identifies the effective push notification service flow in the preset push notification service flow table, and further reversely pushes out the number of the shared internet-surfing mobile terminals according to the number of the effective push notification service flow, thereby achieving the purpose of detecting the number of the shared internet-surfing mobile terminals, effectively detecting the number of the mobile terminals with the same brand and model and the same operating system version, and avoiding the measurement error of the traditional detection method.
Drawings
Fig. 1 is a flowchart illustrating a method for detecting the number of shared internet mobile terminals according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a process of counting the number of shared internet mobile terminals according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating a process of counting the number of shared internet mobile terminals according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for detecting the number of mobile terminals when the IOS terminal is sharing to surf the internet according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for detecting the number of mobile terminals when an Android terminal is shared to surf the internet according to an embodiment of the present invention;
fig. 6 is a block diagram illustrating a structure of a device for detecting the number of shared internet-enabled mobile terminals according to an embodiment of the present invention; and
fig. 7 shows a block diagram of an update module according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
Example one
According to a first aspect of the present invention, a method for detecting the number of mobile terminals sharing an internet is provided, as shown in fig. 1, where the method 100 includes:
step S101, acquiring a push notification service flow generated when the mobile terminal sends a network request connection;
step S105, if the push notification service flow can be inquired in the preset push notification service table and the push notification service flow is an effective push notification service flow, updating the number of the effective push notification service flows recorded in the preset push notification service flow table, and counting the number of the shared internet mobile terminals according to the updated number of the effective push notification service flows.
Therefore, in the embodiment of the present invention, first, a push notification service flow generated when the mobile terminal sends a network connection request is obtained, where the push notification service flow is generated by encrypting a secure socket layer SSL protocol; then, effective push notification service flows in a preset push notification service flow table are identified, wherein the preset push notification service flow table comprises one or more push notification service flows corresponding to one or more mobile terminals, and the response message quantity and the time stamp of the push notification service flows; and finally, the number of the shared internet mobile terminals is reversely pushed according to the number of the effective push notification service flows, so that the purpose of detecting the number of the shared internet mobile terminals is finally achieved, the number of the mobile terminals of the same brand and model and the same operating system version can be effectively detected, and the measurement error of the traditional detection method is avoided.
Further, in the embodiment of the present invention, as shown in fig. 1, the detection method further includes:
step S103, if the push notification service flow cannot be inquired in the preset push notification service flow table, acquiring a five-tuple of the push notification service flow, adding the push notification service flow into the preset push notification service flow table according to the five-tuple of the push notification service flow, and recording the response message quantity and the timestamp of the push notification service flow, wherein the five-tuple is a source IP address, a source port, a destination IP address, a destination port and a transport layer protocol of the push notification service flow.
Therefore, when the obtained push notification service flow does not exist in the preset push notification service flow table, the push notification service flow needs to be added to the preset push notification service flow table according to the quintuple of the push notification service flow, so as to record the response packet number and the timestamp of the push notification service flow, wherein the quintuple includes the source IP address, the source port, the destination IP address, the destination port, and the transport layer protocol of the push notification service flow.
Specifically, in the embodiment of the present invention, as shown in fig. 2, if a push notification service flow can be queried in a preset push notification service table, and the push notification service flow is an effective push notification service flow, the method updates the number of effective push notification service flows recorded in the preset push notification service flow table, and counts the number of shared internet-surfing mobile terminals according to the updated number of effective push notification service flows (step S105), and specifically includes:
step S1051, receiving a response message fed back by the server according to the push notification service flow, and updating the number of the response messages of the push notification service flow recorded in a preset push notification service flow table;
step S1053, comparing the updated response message quantity of the push notification service flow with a first preset threshold value, and determining that the push notification service flow is an effective push notification service flow when the response message quantity of the push notification service flow is greater than the first preset threshold value;
step S1055, when the push notification service flow is an effective push notification service flow, increasing the number of the effective push notification service flows recorded in a preset push notification service flow table;
and step S1057, increasing the number of the mobile terminals of the upper sharing network according to the increased number of the effective push notification service flows.
Because the number of the push notification service flows on any mobile terminal is relatively fixed, and the domain name characteristics of the push notification service flows on any mobile terminal are unique, even mobile terminals with the same brand and model and the same operating system version can be effectively identified. In addition, in order to reduce the detection error as small as possible, after the push notification service flow is acquired, whether the acquired push notification service flow is an effective acquired push notification service flow is determined, a specific determination method of the present invention is to compare the number of response messages of the push notification service flow with a first preset threshold, and determine that the push notification service flow is an effective push notification service flow only when the number of response messages is greater than the first preset threshold, generally, 10 of the number of the first preset threshold.
Further, in this embodiment of the present invention, as shown in fig. 3, if a push notification service flow can be queried in the preset push notification service table and the push notification service flow is an effective push notification service flow, the method updates the number of effective push notification service flows recorded in the preset push notification service flow table, and counts the number of shared internet-connected mobile terminals according to the updated number of effective push notification service flows (step S105), specifically including:
step S1052, acquiring the time stamp of the push notification service flow, and timing the survival time of the push notification service flow according to the time stamp of the push notification service flow;
step S1054, comparing the survival time of the push notification service flow with a second preset threshold, and deleting the push notification service flow from a preset push notification service flow table when the survival time of the push notification service flow is greater than the second preset threshold;
step S1056, when the push notification service flow is deleted from the preset push notification service flow table, reducing the number of effective push notification service flows recorded in the preset push notification service flow table;
and step S1058, reducing the number of the mobile terminals on the sharing network according to the reduced number of the effective push notification service flows.
Since the push notification service flows exist in the form of keep-alive flows, any push notification service flow has the maximum survival time, and therefore, the survival time of any push notification service flow is counted from the timestamp of any push notification service flow recorded in the preset push notification service flow table and compared with a second preset threshold, wherein the second preset threshold represents the maximum survival time of any push notification service flow, and generally, when the access mobile terminal is an apple IOS terminal, the second preset threshold is 30 min; when the access mobile terminal is an Android terminal, the second preset threshold is 15min, and when the survival time of any push notification service flow is greater than the second preset threshold, it is proved that the push notification service flow has no subsequent response message, that is, the mobile terminal corresponding to the push notification service flow is disconnected from the server, so that the push notification service flow needs to be deleted from the preset push notification service flow table, the number of effective push notification service flows recorded in the preset push notification service flow table is reduced, and the number of shared internet access mobile terminals is correspondingly reduced.
Specifically, as shown in fig. 4, which is a working flow diagram of the detection method in the embodiment of the present invention, taking an Apple IOS terminal as an example, after the IOS terminal opens a network connection, an SSL encrypted APNS (Apple Push Notification Service) stream is generated, where a domain name feature of the APNS stream is: the APNS flow is judged whether existing in the APNS flow table according to the response message fed back by the server received by the APNS flow, if not, the APNS flow is created in the APNS flow table according to the quintuple of the APNS, and the response message quantity and the timestamp of the APNS flow are updated; if yes, updating the number of the response messages and the timestamp of the APNS flow, judging whether the number of the updated response messages reaches a first preset threshold value, and if so, increasing the number of the mobile terminals sharing the Internet by one; if not, the above flow is repeated continuously.
Specifically, as shown in fig. 5, which is a working flow chart of the detection method in the embodiment of the present invention, taking Google Android terminal as an example, after the Android terminal opens a network connection, an SSL encrypted GCM stream (Google Cloud Messaging) may be generated, where a domain name of the GCM stream is characterized in that: com, according to the response message fed back by the GCM flow receiving server, judging whether the GCM flow exists in the GCM flow table, if not, creating the GCM flow in the GCM flow table according to the five-tuple of the GCM, and updating the response message quantity and the timestamp of the GCM flow; if the number of the response messages of the GCM stream and the timestamp of the GCM stream are not equal to the preset threshold, the number of the shared internet-surfing mobile terminals is increased by one; if not, the above flow is repeated continuously.
The working flow of the detection method is specifically described by taking two current mainstream systems as examples, but it is understood that the detection method for the number of the shared internet mobile terminals provided in the embodiment of the present invention is not limited to the terminal systems. In addition, even the mobile terminal with the same brand and model and the same system version number can carry out effective detection.
Example two
According to a first aspect of the present invention, there is provided a device for detecting the number of mobile terminals sharing internet, as shown in fig. 6, the detecting device 600 includes:
the acquiring module 601 is configured to acquire a push notification service flow generated when the mobile terminal sends a network request connection;
an updating module 605, configured to update the number of the effective push notification service flows recorded in the preset push notification service flow table if the push notification service flow can be queried in the preset push notification service table and is an effective push notification service flow, and count the number of the shared internet-surfing mobile terminals according to the updated number of the effective push notification service flows.
The preset push notification service flow table comprises one or more push notification service flows corresponding to one or more mobile terminals, and the number of response messages and timestamps of the push notification service flows.
Further, as shown in fig. 6, in the embodiment of the present invention, the detecting device 600 further includes:
an adding module 603, configured to obtain a five-tuple of the push notification service flow if the push notification service flow cannot be queried in the preset push notification service flow table, add the push notification service flow to the preset push notification service flow table according to the five-tuple of the push notification service flow, and record the response packet number and the timestamp of the push notification service flow, where the five-tuple is a source IP address, a source port, a destination IP address, a destination port, and a transport layer protocol of the push notification service flow.
Specifically, as shown in fig. 7, in the embodiment of the present invention, the update module 605 specifically includes:
an updating unit 6051, configured to receive a response packet fed back by the server according to the push notification service flow, and update the number of response packets of the push notification service flow recorded in a preset push notification service flow table;
a first comparing unit 6053, configured to compare the updated number of response packets of the push notification service flow with a first preset threshold, and determine that the push notification service flow is an effective push notification service flow when the number of response packets of the push notification service flow is greater than the first preset threshold;
a first increasing unit 6055 configured to increase the number of valid push notification service flows recorded in a preset push notification service flow table when the push notification service flow is a valid push notification service flow;
a second increasing unit 6057, configured to increase the number of the mobile terminals on the upper sharing network according to the increased number of the effective push notification service flows.
Further, as shown in fig. 7, in the embodiment of the present invention, the update module 605 specifically includes:
a timing unit 6052, configured to obtain a timestamp of the push notification service flow, and time the survival time of the push notification service flow according to the timestamp of the push notification service flow;
a second comparing unit 6054, configured to compare the survival time of the push notification service flow with a second preset threshold, and delete the push notification service flow from the preset push notification service flow table when the survival time of the push notification service flow is greater than the second preset threshold;
a first reducing unit 6056 configured to reduce the number of valid push notification service flows recorded in the preset push notification service flow table when the push notification service flow is deleted from the preset push notification service flow table;
a second reducing unit 6058 configured to reduce the number of the mobile terminals on the upper sharing network according to the reduced number of the effective push notification service flows.
The device for detecting the number of the shared internet-surfing mobile terminals can reversely push the number of the shared internet-surfing mobile terminals according to the number of the effective push notification service flows, finally achieves the purpose of detecting the number of the shared internet-surfing mobile terminals, can effectively detect the number of the mobile terminals with the same brand and model and the same operating system version, and avoids the measurement error of the traditional detection method.
While the preferred embodiments of the present invention have been described, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the following claims.

Claims (10)

1. A method for detecting the number of shared internet mobile terminals is characterized by comprising the following steps:
acquiring a push notification service flow generated when a mobile terminal sends a network connection request;
if the push notification service flow can be inquired in a preset push notification service table and is an effective push notification service flow, updating the number of the effective push notification service flows recorded in the preset push notification service flow table, and counting the number of the shared internet-surfing mobile terminals according to the updated number of the effective push notification service flows;
wherein the push notification service flow is uniquely identified by domain name characteristics;
wherein the valid push notification service flow is determined by: receiving a response message fed back by the server according to the push notification service flow, and updating the number of the response messages of the push notification service flow recorded in the preset push notification service flow table; and comparing the updated response message quantity of the push notification service flow with a first preset threshold, and determining that the push notification service flow is an effective push notification service flow when the response message quantity of the push notification service flow is greater than the first preset threshold.
2. The detection method of claim 1, wherein the preset push notification service flow table comprises one or more push notification service flows corresponding to one or more mobile terminals and a response packet number and a timestamp of the push notification service flow.
3. The detection method of claim 2, further comprising:
if the push notification service flow cannot be inquired in the preset push notification service flow table, acquiring a quintuple of the push notification service flow, adding the push notification service flow into the preset push notification service flow table according to the quintuple of the push notification service flow, and recording the response message quantity and the timestamp of the push notification service flow, wherein the quintuple is a source IP address, a source port, a destination IP address, a destination port and a transport layer protocol of the push notification service flow.
4. The method according to claim 2, wherein if the push notification service flow can be queried in a preset push notification service table and the push notification service flow is an active push notification service flow, updating the number of the active push notification service flows recorded in the preset push notification service flow table, and counting the number of the shared internet-surfing mobile terminals according to the updated number of the active push notification service flows, comprises:
when the push notification service flow is an effective push notification service flow, increasing the number of the effective push notification service flows recorded in the preset push notification service flow table;
and increasing the number of the mobile terminals on the sharing network according to the increased number of the effective push notification service flows.
5. The method according to claim 2, wherein if the push notification service flow can be queried in a preset push notification service table and the push notification service flow is an active push notification service flow, updating the number of the active push notification service flows recorded in the preset push notification service flow table, and counting the number of the shared internet-surfing mobile terminals according to the updated number of the active push notification service flows, comprises:
acquiring a timestamp of the push notification service flow, and timing the survival time of the push notification service flow according to the timestamp of the push notification service flow;
comparing the survival time of the push notification service flow with a second preset threshold, and deleting the push notification service flow from the preset push notification service flow table when the survival time of the push notification service flow is greater than the second preset threshold;
when the push notification service flow is deleted from the preset push notification service flow table, reducing the number of the effective push notification service flows recorded in the preset push notification service flow table;
and reducing the number of the mobile terminals on the sharing network according to the reduced number of the effective push notification service flows.
6. A detection device for the number of shared internet access mobile terminals is characterized by comprising:
the system comprises an acquisition module, a sending module and a sending module, wherein the acquisition module is used for acquiring a push notification service flow generated when a mobile terminal sends a network connection request;
the updating module is used for updating the number of the effective push notification service flows recorded in a preset push notification service flow table and counting the number of the shared internet-surfing mobile terminals according to the updated number of the effective push notification service flows if the push notification service flows can be inquired in the preset push notification service table and are effective push notification service flows, wherein the push notification service flows are uniquely identified through domain name characteristics;
the update module is further configured to determine an effective push notification service flow by: receiving a response message fed back by the server according to the push notification service flow, and updating the number of the response messages of the push notification service flow recorded in the preset push notification service flow table; and comparing the updated response message quantity of the push notification service flow with a first preset threshold, and determining that the push notification service flow is an effective push notification service flow when the response message quantity of the push notification service flow is greater than the first preset threshold.
7. The detection apparatus of claim 6, wherein the preset push notification service flow table comprises one or more push notification service flows corresponding to one or more mobile terminals and a response packet number and a timestamp of the push notification service flow.
8. The sensing device of claim 6, further comprising:
and the adding module is used for acquiring a quintuple of the push notification service flow if the push notification service flow cannot be inquired in the preset push notification service flow table, adding the push notification service flow into the preset push notification service flow table according to the quintuple of the push notification service flow, and recording the response message quantity and the timestamp of the push notification service flow, wherein the quintuple is a source IP address, a source port, a destination IP address, a destination port and a transport layer protocol of the push notification service flow.
9. The detection apparatus according to claim 8, wherein the update module specifically includes:
the updating unit is used for receiving a response message fed back by the server according to the push notification service flow and updating the number of the response messages of the push notification service flow recorded in the preset push notification service flow table;
a first comparing unit, configured to compare the updated number of response packets of the push notification service flow with a first preset threshold, and determine that the push notification service flow is an effective push notification service flow when the number of response packets of the push notification service flow is greater than the first preset threshold;
a first increasing unit, configured to increase, when the push notification service flow is an effective push notification service flow, the number of the effective push notification service flows recorded in the preset push notification service flow table;
a second adding unit, configured to increase the number of mobile terminals in the upper sharing network according to the increased number of the effective push notification service flows.
10. The detection apparatus according to claim 8, wherein the update module specifically includes:
the timing unit is used for acquiring the timestamp of the push notification service flow and timing the survival time of the push notification service flow according to the timestamp of the push notification service flow;
a second comparing unit, configured to compare the survival time of the push notification service flow with a second preset threshold, and delete the push notification service flow from the preset push notification service flow table when the survival time of the push notification service flow is greater than the second preset threshold;
a first reducing unit configured to reduce the number of the valid push notification service flows recorded in the preset push notification service flow table when the push notification service flow is deleted from the preset push notification service flow table;
a second reducing unit, configured to reduce the number of mobile terminals in the upper sharing network according to the reduced number of the effective push notification service flows.
CN201510340626.1A 2015-06-18 2015-06-18 Method and device for detecting number of shared internet access mobile terminals Active CN106330582B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510340626.1A CN106330582B (en) 2015-06-18 2015-06-18 Method and device for detecting number of shared internet access mobile terminals
PCT/CN2015/096028 WO2016201910A1 (en) 2015-06-18 2015-11-30 Method and apparatus for detecting number of mobile terminals sharing internet, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510340626.1A CN106330582B (en) 2015-06-18 2015-06-18 Method and device for detecting number of shared internet access mobile terminals

Publications (2)

Publication Number Publication Date
CN106330582A CN106330582A (en) 2017-01-11
CN106330582B true CN106330582B (en) 2020-11-20

Family

ID=57544821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510340626.1A Active CN106330582B (en) 2015-06-18 2015-06-18 Method and device for detecting number of shared internet access mobile terminals

Country Status (2)

Country Link
CN (1) CN106330582B (en)
WO (1) WO2016201910A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107944910B (en) * 2017-11-17 2022-01-25 北京小米移动软件有限公司 Commodity transaction information prompting method and device, terminal equipment and storage medium
CN112367241A (en) * 2020-10-16 2021-02-12 北京五八信息技术有限公司 Message generation and message transmission method, device, equipment and computer readable medium
CN114285769B (en) * 2021-12-16 2024-03-22 南京中孚信息技术有限公司 Shared internet surfing detection method, device, equipment and storage medium
CN118474005A (en) * 2023-02-07 2024-08-09 中兴通讯股份有限公司 Method, equipment and medium for detecting shared internet surfing behavior

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442450A (en) * 2008-12-24 2009-05-27 成都市华为赛门铁克科技有限公司 Method, system and apparatus for detecting sharing access terminal quantity
CN101631052A (en) * 2009-08-25 2010-01-20 杭州华三通信技术有限公司 Method and device for detecting number of access terminals
CN102148854A (en) * 2010-10-19 2011-08-10 华为数字技术有限公司 Method and device for identifying peer-to-peer (P2P) shared flows
CN103532783A (en) * 2013-10-17 2014-01-22 北京锐安科技有限公司 Method and device for detecting access terminals

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100459574C (en) * 2005-09-19 2009-02-04 北京大学 Network flow classifying, state tracking and message processing device and method
CN101383818B (en) * 2007-09-05 2013-01-30 华为技术有限公司 Processing method and device for access network
KR101927777B1 (en) * 2011-04-30 2018-12-12 삼성전자주식회사 Method for managing internet connection sharing and apparatus thereof
KR20140032542A (en) * 2012-08-30 2014-03-17 삼성전자주식회사 A method and apparatus for determining heartbeat period of push service in wireless network
CN103650457B (en) * 2013-06-26 2016-09-28 华为技术有限公司 The detection method of a kind of shared access, equipment and terminal unit
US10039002B2 (en) * 2013-11-04 2018-07-31 Microsoft Technology Licensing, Llc Shared Wi-Fi usage
CN104639609B (en) * 2014-12-31 2019-02-22 小米科技有限责任公司 Network share method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442450A (en) * 2008-12-24 2009-05-27 成都市华为赛门铁克科技有限公司 Method, system and apparatus for detecting sharing access terminal quantity
CN101631052A (en) * 2009-08-25 2010-01-20 杭州华三通信技术有限公司 Method and device for detecting number of access terminals
CN102148854A (en) * 2010-10-19 2011-08-10 华为数字技术有限公司 Method and device for identifying peer-to-peer (P2P) shared flows
CN103532783A (en) * 2013-10-17 2014-01-22 北京锐安科技有限公司 Method and device for detecting access terminals

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宽带用户行为管控系统;张振宏等;《电信技术》;20141025;第2014卷(第10期);全文 *

Also Published As

Publication number Publication date
CN106330582A (en) 2017-01-11
WO2016201910A1 (en) 2016-12-22

Similar Documents

Publication Publication Date Title
CN106330582B (en) Method and device for detecting number of shared internet access mobile terminals
US20190273749A1 (en) Unauthorized Communication Detection Apparatus and Recording Medium
WO2019129163A1 (en) Network quality measurement method and apparatus thereof
US10110538B2 (en) Method and apparatus for message transmission
KR102167613B1 (en) Message push method and device
EP2393255B1 (en) Method and device for identifying an SCTP packet
KR101850802B1 (en) Systems and methods for enhanced discovery
US10645145B2 (en) Method and apparatus for accelerating data transmission in a network communication system
TWI535255B (en) A metod and device thereof for sending business requirements
US11792650B2 (en) Unauthorized communication detection apparatus and recording medium
US8831629B2 (en) System and method for identifying mobile communication devices
CN110519265B (en) Method and device for defending attack
WO2014121682A1 (en) Network sharing detection method, apparatus and device
JP6290053B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
US20150063132A1 (en) Bandwidth estimation mechanism for a communication network
CN111093159A (en) Message pushing method and device, server and computer readable storage medium
US20180191650A1 (en) Publish-subscribe based exchange for network services
WO2016086755A1 (en) Packet processing method and transparent proxy server
US10680922B2 (en) Communication control apparatus and communication control method
US11038803B2 (en) Correlating network level and application level traffic
CN108540590B (en) UPnP network port mapping method, electronic device, network system, and storage medium
US10320705B1 (en) Identifying video data included in network packets
WO2017005118A1 (en) Method, device, terminal and server for maintaining communication connection
US20140200041A1 (en) Evaluation of overall performance of interactive application service
US10044590B2 (en) Method of effective retaining of NAT channel service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant