WO2014121682A1 - Network sharing detection method, apparatus and device - Google Patents

Network sharing detection method, apparatus and device Download PDF

Info

Publication number
WO2014121682A1
WO2014121682A1 PCT/CN2014/070671 CN2014070671W WO2014121682A1 WO 2014121682 A1 WO2014121682 A1 WO 2014121682A1 CN 2014070671 W CN2014070671 W CN 2014070671W WO 2014121682 A1 WO2014121682 A1 WO 2014121682A1
Authority
WO
WIPO (PCT)
Prior art keywords
network sharing
terminal device
network
data flow
detection device
Prior art date
Application number
PCT/CN2014/070671
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2014121682A1 publication Critical patent/WO2014121682A1/en

Links

Classifications

    • 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/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the embodiments of the present invention relate to network technologies, and in particular, to a network sharing detection method, apparatus, and device. Background technique
  • terminal devices can implement wireless Internet access through network sharing (Tethering), which can avoid the traffic charges generated by their own wireless Internet access.
  • Tethering network sharing
  • a network share is a terminal device B (ie, a host device) that is shared by a terminal device A (ie, a non-host device) through a technology such as a Wifi (Wireless Fidelity) wireless LAN or Bluetooth, a Universal Serial Bus (USB), or the like. Connected, sharing the Internet access function of terminal device B (host device).
  • Wifi Wireless Fidelity
  • USB Universal Serial Bus
  • the prior art detects the user agent field (UserAgent) in the data flow of the data service of the terminal device by carrying the hardware manufacturer information and/or the operating system (OS) information, or the data of the data service through the terminal device.
  • OS operating system
  • the hardware vendor information and/or OS information extracted from the default parameters of the Transmission Control Protocol (TCP)/Internet Protocol (IP) protocol stack is detected in the different IP flows of the same user.
  • TCP Transmission Control Protocol
  • IP Internet Protocol
  • PDP packet data protocol
  • the embodiment of the invention provides a method, a device and a device for detecting a network sharing, so as to solve the problem that the network sharing function is not recognized by the terminal device, so as to improve the management capability of the network sharing by the operator.
  • the embodiment of the invention provides a method, a device and a device for detecting a network sharing, so as to solve the problem that the network sharing function is not recognized by the terminal device, so as to improve the management capability of the network sharing by the operator.
  • an embodiment of the present invention provides a network sharing detection method, including: receiving, by a network sharing detection device, a data stream sent by a terminal device;
  • the network sharing detecting device acquires route hop count information of the data stream
  • the network sharing detecting device identifies, according to the routing hop count information of the data stream, whether the terminal device applies the network sharing function.
  • the network sharing detecting device receives the data stream sent by the terminal device, including:
  • the network sharing detecting device receives two or more data streams sent by the terminal device
  • the network sharing detecting device obtains the routing hop information of the data stream, including:
  • the network sharing detecting device obtains the actual number of route hops of the two or more data streams, where the actual number of hops of the route is the number of routing network elements that the data stream passes through in the communication network;
  • the network sharing detecting device identifies, according to the routing hop information of the data stream, whether the terminal device uses the network sharing function, including:
  • the network sharing detecting device compares whether the actual number of hops of the two or more data streams is different. If different, it determines that the terminal device applies the network sharing function.
  • the method further includes:
  • the network sharing detecting device compares the actual number of hops of the two or more data streams, and determines that the data stream with a large number of actual hops is initiated by the non-homed device, and the data stream with the small number of actual hops is initiated by the host device.
  • the network sharing detecting device obtains the routing hop information of the data stream, including:
  • the network sharing detecting device obtains the actual number of route hops of the data stream, where the actual number of hops of the route is the number of routing network elements that the data stream passes through in the communication network;
  • the network sharing detecting device identifies, according to the routing hop information of the data stream, whether the terminal device applies the network sharing function, including: The network sharing detecting device obtains a default route hop count between the network sharing detecting device and the terminal device, where the default route hop count is a route hopping with the network sharing detecting device when the terminal device establishes a data service channel by itself. number;
  • the network sharing detecting device compares the actual route hop count of the data stream with the default route hop count. If different, it determines that the terminal device applies the network sharing function.
  • the method further includes:
  • the network sharing detecting device compares whether the actual number of route hops of the data stream is greater than the default route hop count, and if yes, determines that the data stream is initiated by the non-homed device, and if not, determines that the data stream is initiated by the host device.
  • the actual route hop count is a current lifetime value of the data stream and the terminal device The difference between the initial lifecycle values.
  • the method before the network sharing detecting device acquires the actual number of route hops of the data stream, the method further includes:
  • the network sharing detecting device acquires the terminal device identification information from the data packet of the data stream; the network sharing detecting device queries the database to obtain an initial life cycle value of the terminal device according to the terminal device identification information.
  • the network sharing detecting device receives the data stream sent by the terminal device, including:
  • the network sharing detecting device receives two or more data streams sent by the terminal device
  • the network sharing detecting device obtains the routing hop information of the data stream, including:
  • the network sharing detecting device acquires a current life cycle value of the two or more data streams.
  • the network sharing detecting device identifies, according to the routing hop information of the data stream, whether the terminal device applies the network sharing function, including:
  • the network sharing detecting device compares whether the current life cycle values of the two or more data streams are different. If they are different, determining that the terminal device applies the network sharing function.
  • the first, the third or the seventh possible implementation manner of the first aspect, in the eighth possible implementation manner after determining that the terminal device applies the network sharing function, Includes one or a combination of the following steps:
  • the network sharing detecting device performs one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data stream sent by the terminal device according to the recognition result; or
  • the network sharing detecting device outputs a report of the information according to the data flow of the terminal device.
  • determining that the data flow is initiated by a non-homed device, or determining that the data flow is initiated by a host device After the step, it also includes one or a combination of the following steps:
  • the network sharing detecting device performs one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data flow initiated by the host device or the data flow initiated by the non-host device according to the identification result; or
  • the network sharing detecting device outputs the information according to the data flow sent by the host device or the non-host device respectively.
  • an embodiment of the present invention provides a network sharing detection apparatus, including: a receiving module, configured to receive a data stream sent by a terminal device;
  • An obtaining module configured to obtain routing hop information of the data stream
  • the identification module is configured to identify, according to the route hop count information of the data flow, whether the terminal device applies the network sharing function.
  • the receiving module includes:
  • the acquiring module includes:
  • a first acquiring unit configured to obtain an actual number of hops of the two or more data flows, where the actual number of hops is the number of routing network elements that the data stream passes in the communication network;
  • the identification module includes:
  • the first identifying unit is configured to compare whether the actual number of hops of the two or more data streams is different. If different, determine that the terminal device applies the network sharing function.
  • the method further includes:
  • the first comparison module is configured to compare the actual number of hops of the two or more data flows, and determine that the data flow with a large number of actual hops is initiated by the non-homed device, and the data flow with a small actual number of hops is initiated by the host device. .
  • the acquiring module includes:
  • a second acquiring unit configured to obtain an actual number of route hops of the data stream, where the actual number of hops of the route is a number of routing network elements that the data stream passes in the communication network;
  • the identification module includes:
  • a third acquiring unit configured to obtain a default route hop count between the network sharing detecting device and the terminal device, where the default route hop count is between the network device and the network sharing detecting device when the terminal device establishes a data service channel Number of route hops;
  • the second identifying unit is configured to compare whether the actual number of route hops of the data stream and the default route hop count are the same. If not, determine that the terminal device applies the network sharing function.
  • the method further includes:
  • a second comparison module configured to compare whether the actual route hop count of the data stream is greater than the default route hop count, and if yes, determine that the data flow is initiated by the non-homed device, and if not, determine that the data flow is initiated by the host device of.
  • the actual route hop count is a current lifetime value of the data stream and the terminal device The difference between the initial lifecycle values.
  • the method further includes:
  • a second acquiring subunit configured to obtain terminal device identification information from the data packet of the data stream before acquiring the actual route hop count of the data stream;
  • the query subunit is configured to query, according to the terminal device identification information, the initial lifetime value of the terminal device from the database.
  • the receiving module includes:
  • the acquiring module includes: a fourth acquiring unit, configured to acquire current current period values of the two or more data streams; the identifying module includes:
  • a third identifying unit configured to compare whether current lifetime values of the two or more data streams are different, and if different, determine that the terminal device applies a network sharing function.
  • a first control module configured to perform one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data stream sent by the terminal device according to the identification result;
  • the first output module is configured to output a report of the information according to the data flow of the terminal device.
  • the ninth possible implementation manner one or a combination of the following modules is further included:
  • a second control module configured to perform one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data flow initiated by the host device or the data flow initiated by the non-host device according to the identification result;
  • the second output module is configured to output the information according to the sending condition of the data stream initiated by the host device or the non-host device, respectively.
  • the third aspect of the present invention provides a network sharing detecting device, including: a network sharing detecting device provided by any embodiment of the present invention; the network sharing detecting device is integrated in a network access server or an internet gateway device, or is disposed in Network access server and the Internet.
  • the network sharing detection method, the device, and the network sharing detection device in the embodiment of the present invention analyze the routing hop information of the data stream sent by the terminal device, and solve the problem that the terminal device cannot use the network sharing function in some cases. Enhance the operator's accurate management of the network. In a further embodiment, it can also be identified whether the terminal device is a host device or a non-host device.
  • Embodiment 2 is a flowchart of Embodiment 2 of a network sharing detection method according to the present invention
  • Embodiment 3 is a flowchart of Embodiment 3 of a network sharing detection method according to the present invention.
  • Embodiment 4 is a flowchart of Embodiment 4 of a network sharing detection method according to the present invention.
  • FIG. 5 is a flowchart of Embodiment 5 of a network sharing detection method according to the present invention.
  • Embodiment 6 is a flowchart of Embodiment 6 of a network sharing detection method according to the present invention.
  • Embodiment 7 is a flowchart of Embodiment 7 of a network sharing detection method according to the present invention.
  • Embodiment 8 is a flowchart of Embodiment 8 of a network sharing detection method according to the present invention.
  • Embodiment 9 is a flowchart of Embodiment 9 of a network sharing detection method according to the present invention.
  • FIG. 10 is a schematic structural diagram of Embodiment 1 of a network sharing detecting apparatus according to the present invention.
  • Embodiment 11 is a schematic structural diagram of Embodiment 2 of a network sharing detecting apparatus according to the present invention.
  • Embodiment 3 of a network sharing detecting apparatus according to the present invention.
  • FIG. 13 is a schematic structural diagram of Embodiment 4 of a network sharing detecting apparatus according to the present invention.
  • Embodiment 5 of a network sharing detecting apparatus according to the present invention.
  • Embodiment 6 of a network sharing detecting apparatus according to the present invention.
  • Embodiment 7 of a network sharing detecting apparatus is a schematic structural diagram of Embodiment 7 of a network sharing detecting apparatus according to the present invention.
  • Embodiment 8 of a network sharing detecting apparatus is a schematic structural diagram of Embodiment 8 of a network sharing detecting apparatus according to the present invention.
  • Embodiment 9 of a network sharing detecting apparatus according to the present invention.
  • FIG. 19 is another schematic structural diagram of Embodiment 9 of the network sharing detecting apparatus according to the present invention.
  • FIG. 20 is a schematic diagram of the working principle of the embodiment of the network sharing detecting apparatus according to the present invention.
  • FIG. 21 is a schematic structural diagram of a system for controlling service transmission according to an embodiment of the present invention. detailed description
  • Embodiment 1 is a flowchart of Embodiment 1 of a network sharing detection method according to the present invention, where the method is applicable to determining Whether the user uses the network sharing technology in the network data service, as shown in FIG. 1 , the method in this embodiment may include:
  • the network sharing detecting device receives the data stream sent by the terminal device.
  • the terminal device is a type of electronic device that initiates a data service, such as a smart phone or a tablet computer; the data stream is read by the terminal device to a service provider (SP) server in a predetermined order.
  • SP service provider
  • the network sharing detection device is configured to detect whether the user uses the network sharing technology, and may be integrated into an existing network element, such as a gateway device, or may be independently set.
  • the network sharing detection device acquires route hop count information of the data flow.
  • the number of route hops is the number of routed network elements in the data stream transmission process, that is, the data stream hops once every time a route network element passes, that is, the number of route hops is increased by 1, and the hop count information is recorded in the The data stream is inside certain fields of the packet.
  • the terminal device ie, the host device
  • the terminal device that provides the network sharing can be used as a one-hop routing network element of the terminal device (ie, the non-host device) that uses the network share.
  • the route hop count information is information that can be read or parsed in real time from the data packet of the data stream during the data transmission process, and can reflect information about the number of route hops of the data stream, such as a life cycle (Time To Live, TTL) value, etc.
  • a life cycle Time To Live, TTL
  • the host device is a device that establishes an actual physical communication link, and shares the data service channel carried by the physical communication link to the non-host device through a communication technology such as USB, Bluetooth, or Wifi.
  • the non-homed device is a device that accesses data services using a data service channel shared by a host device through USB, Bluetooth, or Wifi. This paper refers to the sharing of the above data service channels as network sharing.
  • the host device and the non-host device can initiate data services concurrently, or only the host device or the non-host device can initiate data services.
  • the network sharing detection device identifies, according to the route hop count information of the data flow, whether the terminal device applies the network sharing function.
  • the routing hop information of the data stream is used to identify whether the terminal device applies the network.
  • the network sharing function determines whether the terminal device applies the network sharing function by reading or parsing the routing hop information.
  • the routing hop information can be used for parsing to determine the routing hop count of the data flow, and is activated by one PDP.
  • the network sharing detection device receives a data stream sent by the terminal device, and includes: the network sharing detection device receives the terminal device and sends the data packet.
  • the network share detection device obtains the route hop count information of the data stream, and the network share detection device obtains the actual route hops of the two or more data streams respectively;
  • the network share detection device Determining whether the terminal device uses the network sharing function according to the routing hop information of the data stream, the method includes: comparing, by the network sharing detecting device, whether the actual routing hops of the two or more data flows are different, and if different, determining the terminal device The network sharing function is applied.
  • the method in this embodiment may include:
  • the network sharing detection device receives two or more data streams sent by the terminal device.
  • the network sharing detection device obtains the actual route hops of the two or more data streams, where the actual route hop count is the number of routing network elements that the data stream passes in the communication network.
  • the actual number of hops of the route is the number of routed network elements that the data stream passes through in the communication network, that is, the number of routed network elements that the data packet sent by the terminal device actually passes when received by the network share detection device.
  • the host device is also a routing network element.
  • the network sharing detecting device compares whether the actual number of hops of the two or more data streams is different. If different, determining that the terminal device applies the network sharing function.
  • the network sharing detecting device compares actual hops of the two or more data flows, and if it is determined that there are different actual hops, The terminal device that determines the originating data service applies the network sharing function.
  • Embodiment 3 is a flowchart of Embodiment 3 of a network sharing detection method according to the present invention.
  • the method further includes: comparing, by the network sharing detecting device, the two The actual number of hops of the data stream is determined by the non-homed device. The data stream with the actual number of hops is initiated by the host device.
  • the method in this embodiment includes:
  • the network sharing detection device receives two or more data streams sent by the terminal device.
  • the network sharing detection device obtains the actual route hops of the two or more data flows, where the actual route hop count is the number of route network elements that the data stream passes in the communication network.
  • the network sharing detecting device compares whether the actual number of hops of the two or more data streams is different. If different, determining that the terminal device applies the network sharing function.
  • the network sharing detection device compares the actual number of hops of the two or more data flows, and determines that the data flow with a large number of actual hops is initiated by the non-homed device, and the data flow with a small actual hop count is initiated by the host device. .
  • the actual number of hops of the two or more data streams is further compared, and the data stream with the actual number of hops is a non-host device.
  • the data flow initiated by the host with a small number of hops is initiated by the host device.
  • the terminal device is accurately identified as a non-homed device or a host device, and the terminal device is not recognized as a host device during the network sharing process. Or a problem with a non-host device.
  • the network sharing detection device obtains the routing hop information of the data stream, including: The actual number of hops of the data stream.
  • the actual number of hops of the route is the data.
  • the network sharing detecting device identifies, according to the routing hop information of the data stream, whether the terminal device applies the network sharing function, and the method includes: the network sharing detecting device acquiring the network sharing detection
  • the default route hop count is the number of route hops between the device and the network share detection device when the terminal device establishes a data service channel.
  • the network share detection device compares the data. Whether the actual number of hops of the flow and the number of hops of the default route are the same. If they are different, it is determined that the terminal device applies the network sharing function.
  • the method is not required to compare multiple data streams, and can be separately identified for each data stream. As shown in FIG. 4, the method in this embodiment includes:
  • the network sharing detecting device receives the data stream sent by the terminal device.
  • the data stream may be one or more, and the method of this embodiment may perform judgment for each data stream.
  • the network share detection device obtains an actual number of route hops of the data stream, where the actual route hop count is the number of route network elements that the data stream passes through in the communication network.
  • the actual number of hops of the route is the number of routed network elements that the data stream passes through in the communication network, that is, the number of routed network elements actually passed by the data packet sent by the terminal device when the network share detection device receives.
  • the host device is also a routing network element.
  • the network sharing detection device obtains a default route hop count between the network sharing detection device and the terminal device, where the default route hop count is assumed to be between the network device and the network sharing detection device when the terminal device establishes a data service channel. The number of route hops.
  • the default route hop count is a number of route hops between the terminal and the network sharing detection device when the terminal device establishes a data service channel, that is, the default route hop count is assuming that the terminal device is a host device, and the network share is Detects the number of route hops between the device and the terminal device.
  • the default route hop count is a fixed value.
  • the network sharing detecting device may obtain the default route hop count by parsing the route hopping information in the data packet sent by the terminal device when the device is actually the physical communication link (that is, when the device is the host device). For example, a route detection or discovery tool such as a traceroute program is used to perform the above analysis.
  • the network sharing detection device compares the actual number of route hops of the data flow with the default route. Whether the hop count is the same or not, if it is different, it is determined that the terminal device applies the network sharing function.
  • the network sharing detecting device compares the actual number of hops of the same data stream with the default number of hops. If not, it determines that the terminal device applies the network sharing function.
  • Embodiment 5 is a flowchart of Embodiment 5 of a network sharing detection method according to the present invention.
  • the method in this embodiment is shown in FIG. Also includes:
  • the network sharing detecting device compares whether the actual number of hops of the data stream is greater than the default hop count, and if yes, determining that the data stream is initiated by the non-homed device, and if not, determining that the data stream is initiated by the host device. of.
  • the network sharing detection device parses the actual route hop count of the data stream, and the actual route hop count of the data stream.
  • the default route hop count between the terminal device and the network share detection device is compared to facilitate identification of the terminal device as a host device or a non-host device. If, during a PDP activation, the actual number of hops in the same data stream is greater than the default number of hops, the terminal device is a non-homed device in the PDP activation. If the data stream is in the PDP activation.
  • the actual number of hops of the route is equal to the default number of hops to determine that the terminal device is the host device.
  • the terminal device by comparing the actual number of hops of each data stream with the number of hops of the default route, the terminal device is accurately identified as a non-homed device or a host device, and the terminal device cannot be identified during the network sharing process. A problem with a host device or a non-host device.
  • the actual number of route hops of each data stream sent by the terminal device is the same as the default route hop count of the terminal device, it indicates that the terminal device does not use the network share in the PDP activation.
  • the actual number of hops of multiple data streams is different from the default number of hops, it can be determined that these data streams are initiated by non-host devices.
  • FIG. 6 is a flowchart of Embodiment 6 of the network sharing detection method of the present invention.
  • the actual route hop count is the current life cycle value of the data flow and the initial life cycle of the terminal device. The difference between the values.
  • the core of the fourth embodiment is taken as an example.
  • the method of this embodiment includes:
  • the network sharing detecting device receives the data stream sent by the terminal device.
  • the network sharing detection device acquires a current lifetime value of the data packet in the data stream.
  • the TTL value is a characterization value in the default parameter of the IP/TCP protocol stack, and indicates the maximum number of routing network elements that the data packet can pass before being discarded.
  • TTL The value is decremented by 1.
  • the routing network element discards the data packet.
  • the initial TTL values are different for different terminal devices.
  • the network sharing detection device calculates a difference between the current lifecycle value and an initial lifetime value of the terminal device as the actual route hop count.
  • the network sharing detection device obtains a default route hop count between the network sharing detection device and the terminal device, where the default route hop count is assumed to be between the network device and the network sharing detection device when the terminal device establishes a data service channel. The number of route hops.
  • the network sharing detecting device compares the actual number of hops of the data stream with the default number of hops of the default, and if different, determines that the terminal device applies the network sharing function.
  • the TTL value in the default parameters of the IP/TCP protocol stack is used to calculate the actual hop count. Since the TTL data has the advantages of high accuracy, difficulty in being modified, and convenient extraction, whether the terminal device is further improved. The ability to use the network sharing function is reduced, and the complexity of the network sharing detection device is reduced.
  • FIG. 7 is a flowchart of Embodiment 7 of a network sharing detection method according to the present invention.
  • the network sharing detection device further includes: The detecting device obtains the terminal device identification information from the data packet of the data stream; the network sharing detecting device queries the database to obtain an initial life cycle value of the terminal device according to the terminal device identification information.
  • the above solution can be selected as follows:
  • the network sharing detecting device receives the data stream sent by the terminal device. S601. The network sharing detection device acquires a current lifetime value of the data packet in the data stream. S701. The network sharing detecting device acquires terminal device identification information from the data packet of the data stream.
  • the terminal device identification information is a plurality of information, such as hardware vendor information or OS information, corresponding to the terminal device in the data packet, so as to ensure that different terminal devices can correspond to a unique initial TTL value, thereby preventing a reading error. .
  • the network sharing detecting device queries, according to the terminal device identification information, an initial life cycle value of the terminal device from the database.
  • the database stores an initial TTL value corresponding to the identification information of the electronic device as the terminal device, and the network sharing detection device can read the initial of the terminal device corresponding to the terminal device according to the identification information of the terminal device. TTL value for later use.
  • the network sharing detection device calculates a difference between the current lifecycle value and an initial lifetime value of the terminal device as the actual route hop count.
  • the network sharing detection device obtains a default route hop count between the network sharing detection device and the terminal device, where the default route hop count is assumed to be between the network device and the network sharing detection device when the terminal device establishes a data service channel. The number of route hops.
  • the network sharing detecting device compares the actual number of hops of the data stream with the default number of hops of the default, and if different, determines that the terminal device applies the network sharing function.
  • the initial TTL value of the terminal device is obtained by querying the obtained terminal device identification information in the data packet, thereby improving the accuracy of obtaining the initial TTL value, and ensuring whether the terminal device uses the network sharing. Reliability of functional recognition.
  • FIG. 8 is a flowchart of Embodiment 8 of the network sharing detection method of the present invention.
  • the network sharing detection device receives the data stream sent by the terminal device, and includes: the network sharing detection device receives the terminal device and sends the data packet.
  • the network share detection device obtains the current life cycle value of the two or more data flows; the network share detection device is configured according to the route hop count information of the data flow, where the network share detection device acquires The route hop count information of the data stream identifies whether the terminal device applies the network sharing function, and the method includes: comparing, by the network share detecting device, whether current lifetime values of the two or more data streams are different, and if different, determining the end The end device applies the network sharing function.
  • the method in this embodiment may include:
  • the network sharing detecting device receives two or more data streams sent by the terminal device.
  • S801 is similar to the implementation process of S201, and details are not described herein again.
  • the network sharing detection device acquires a current lifecycle value of the two or more data streams.
  • the TTL value is a characterization value in the default parameter of the IP/TCP protocol stack, and indicates the maximum number of routing network elements that the data packet can pass before being discarded.
  • TTL The value is decremented by 1.
  • the routing network element discards the data packet.
  • the initial TTL values are different for different terminal devices.
  • the network sharing detecting device compares whether the current lifetime values of the two or more data streams are different. If different, determining that the terminal device applies the network sharing function.
  • the network sharing detecting device compares current TTL values of the two or more data streams, and if not, determines that the terminal device applies the network sharing function.
  • the current TTL value can be directly extracted from the data packet as the hop count information, and no corresponding calculation is needed. Only the current TTL values in different IP flows need to be compared, and the terminal device can be quickly determined whether the terminal device is The use of network sharing features has improved recognition efficiency.
  • the current shared TTL value can be used to directly identify whether the terminal device uses the network sharing function. If the PDP activation occurs, the network sharing detection device detects different. If there are different current TTL values in the data stream, it indicates that the terminal device uses the network sharing function.
  • FIG. 9 is a flowchart of Embodiment 9 of the network sharing detection method of the present invention.
  • the method further includes one of the following steps or Combination: the network sharing detecting device performs one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data stream sent by the terminal device according to the identification result; or the network sharing detecting device is configured according to the terminal device
  • the data stream is sent, and the information report is output.
  • the method in the first embodiment is taken as an example.
  • the method in this embodiment can be performed as follows: S101.
  • the network sharing detecting device receives the data stream sent by the terminal device.
  • the network sharing detection device acquires route hop count information of the data flow.
  • the network sharing detection device identifies, according to the route hop count information of the data flow, whether the terminal device applies the network sharing function.
  • the network sharing detecting device performs one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data stream sent by the terminal device according to the identification result.
  • the network sharing detecting device may perform one or any combination of the following control functions according to the preset control policy according to the foregoing method for identifying whether the terminal device uses the network sharing function: charging control, bandwidth control , block control or reminder control.
  • control policy may adopt charging control, and may separately charge for the host device traffic and the non-host device traffic, including the flow rate, the duration, and the billing, such as the monthly/package/package week. Traffic and duration accounting can also be performed simultaneously.
  • control strategy may also use bandwidth control to perform bandwidth control for the host device traffic and the non-homed device traffic separately, such as providing a larger maximum allowable bandwidth for the host device and a smaller maximum allowable bandwidth for the non-host device. To reduce the load on the network.
  • control strategy can also use blocking control, which can be controlled in different ways for host device traffic and non-host device traffic. If you can only block non-host device traffic, you can also block only the host device traffic, or block both host device and non-host device traffic to reduce network load.
  • blocking control may be further based on the foregoing bandwidth control, for example, blocking the traffic of the non-host device exceeding the maximum allowed bandwidth.
  • the control policy may also adopt a reminder control.
  • the real-time reminding information may be sent to the terminal device in a targeted manner.
  • the alerting control may not distinguish whether the terminal device is a host device or a non-host device, or may be only for a host device or a non-host device.
  • the process of sending reminders can be by SMS or Hypertext Transport Protocol (HTTP).
  • the specific content of the reminder information can be: For example, remind the user to subscribe to the network sharing service package in order to continue to use the network sharing service, otherwise the network sharing will be blocked, and so on.
  • the network sharing detection device outputs a report of the information according to the data flow of the terminal device.
  • the network sharing detecting device can output various types of information reports, such as: a network shared traffic report, a network shared user report, and a TOP-N network shared user report.
  • a network shared traffic report a network shared user report
  • a TOP-N network shared user report a network shared user report
  • the S902 output information report may be separately implemented on the cornerstone of the S901 processing control, thereby further implementing accurate management of network sharing and improving management control of the communication network. ability.
  • the method further includes one or a combination of the following steps.
  • the network sharing detecting device performs one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data flow initiated by the host device or the data flow initiated by the non-host device according to the recognition result; or
  • the network sharing detecting device outputs a report of the information according to the sending status of the data stream initiated by the host device or the non-host device.
  • the present embodiment After the result of identifying the terminal device as a host device or a non-host device, the present embodiment performs different control and information report output for the host device and the non-host device, and the implementation is similar to the implementation process of S901 and S902. Let me repeat.
  • FIG. 10 is a schematic structural diagram of Embodiment 1 of a network sharing detection apparatus according to the present invention.
  • the network sharing detection apparatus of this embodiment may include: a receiving module 101, an obtaining module 102, and an identifying module 103, where the receiving module The receiving module 102 is configured to receive the routing hop information of the data stream, and the identifying module 103 is configured to identify, according to the routing hop information of the data stream, whether the terminal device applies the network. Sharing features.
  • the device in this embodiment may be used to implement the technical solution of the network sharing detection method according to the embodiment of the present invention.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 11 is a schematic structural diagram of Embodiment 2 of a network sharing detecting apparatus according to the present invention.
  • the apparatus in this embodiment is on the basis of the apparatus structure shown in Embodiment 1 of the apparatus, and further, the receiving
  • the module 101 includes: a first receiving unit 111, configured to receive two or more data streams sent by the terminal device;
  • the acquiring module 102 includes: a first acquiring unit 112, configured to acquire an actual route hop of the two or more data streams
  • the number of the actual route hops is the number of routing network elements that the data stream passes in the communication network;
  • the identification module 103 includes: a first identifying unit 113, configured to compare the actual number of hops of the two or more data streams Whether it is different, if different, it is determined that the terminal device applies the network sharing function.
  • the network sharing detection device of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention.
  • the implementation principle and technical effects are similar, and are not described herein again.
  • Embodiment 12 is a schematic structural diagram of Embodiment 3 of a network sharing detecting apparatus according to the present invention. As shown in FIG. 12, the apparatus of this embodiment is based on the apparatus structure of the apparatus embodiment shown in Embodiment 2. Further, the method further includes: The module 121 is configured to compare the actual number of hops of the two or more data flows, and determine that the data flow with a large number of actual hops is initiated by the non-homed device, and the data flow with a small actual number of hops is initiated by the host device.
  • the network sharing detection device of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention.
  • the implementation principle and technical effects are similar, and are not described herein again.
  • FIG. 13 is a schematic structural diagram of Embodiment 4 of the network sharing detecting apparatus according to the present invention.
  • the apparatus in this embodiment is on the basis of the apparatus structure shown in the first embodiment of the apparatus.
  • the obtaining module 102 includes: The second obtaining unit 131 is configured to obtain the actual number of hops of the data stream, where the actual number of hops is the number of routing network elements that the data stream passes in the communication network.
  • the identifying module 103 includes: a third acquiring unit 132. And a second identifying unit 133, wherein the third obtaining unit 132 is configured to obtain a default route hop count between the network sharing detecting device and the terminal device, where the default route hop count is assumed to be a data service channel established by the terminal device itself.
  • Sharing the number of route hops between the detection device and the network; the second identification unit 133 is configured to compare whether the actual number of route hops of the data stream and the default route hop count are the same, and if different, determine that the terminal device is applied.
  • Network sharing function The network sharing detection apparatus of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention. The implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 14 is a schematic structural diagram of Embodiment 5 of the network sharing detecting apparatus of the present invention.
  • the apparatus of this embodiment is based on the basis of the apparatus structure shown in Embodiment 4 of the apparatus, and further includes:
  • the module 141 is configured to compare whether the actual route hop count of the data stream is greater than the default route hop count, and if yes, determine that the data stream is initiated by the non-host device, and if not, determine that the data stream is initiated by the host device.
  • the network sharing detection device of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention.
  • the implementation principle and technical effects are similar, and are not described herein again.
  • FIG. 15 is a schematic structural diagram of Embodiment 6 of the network sharing detecting apparatus according to the present invention.
  • the apparatus in this embodiment is on the basis of the apparatus structure shown in Embodiment 4 of the apparatus, and further, the second acquiring unit 131
  • the method further includes: a first obtaining subunit 151 and a calculating subunit 152, wherein the first obtaining subunit 151 is configured to obtain a current lifecycle value of the data packet in the data stream; the calculating subunit 152 is configured to calculate the current life
  • the difference between the period value and the initial lifetime value of the terminal device is taken as the actual number of hops of the route.
  • the network sharing detection device of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention.
  • the implementation principle and technical effects are similar, and are not described herein again.
  • FIG. 16 is a schematic structural diagram of Embodiment 7 of the network sharing detecting apparatus according to the present invention.
  • the apparatus in this embodiment is on the basis of the apparatus structure shown in Embodiment 6 of the apparatus, and further, the second acquiring unit 131
  • the method further includes: a second obtaining subunit 161 and a query subunit 162, wherein the second obtaining subunit 161 is configured to obtain a terminal device from the data packet of the data stream before acquiring the actual routing hop count of the data stream.
  • Identification information, the query sub-unit 162 queries and obtains an initial lifetime value of the terminal device from the database according to the terminal device identification information.
  • the network sharing detection apparatus of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention. The implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 17 is a schematic structural diagram of Embodiment 8 of the network sharing detecting apparatus according to the present invention.
  • the apparatus in this embodiment is in the cornerstone of the apparatus structure shown in Embodiment 1 of the apparatus.
  • the receiving module 101 includes: The second receiving unit 171 is configured to receive two or more data streams that are sent by the terminal device.
  • the acquiring module 102 includes: a fourth acquiring unit 172, configured to acquire current life cycle values of the two or more data streams;
  • the module 103 includes: a third identifying unit 173, configured to compare whether current lifetime values of the two or more data streams are different, and if different, determine that the terminal device applies a network sharing function.
  • the network sharing detection device of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention.
  • the implementation principle and technical effects are similar, and are not described herein again.
  • FIG. 18 is a schematic structural diagram of Embodiment 9 of the network sharing detecting apparatus of the present invention.
  • the apparatus of this embodiment is based on the apparatus structure of the apparatus embodiment shown in the first embodiment of the apparatus, and further includes: The module 181 and the first output module 182, wherein the first control module 181 is configured to perform one or any of charging control, bandwidth control, blocking control, and reminder control on the data stream sent by the terminal device according to the recognition result.
  • the first output module 182 is configured to output a report of the information according to the data flow of the terminal device.
  • the network sharing detection device of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention.
  • the implementation principle and technical effects are similar, and are not described herein again.
  • FIG. 19 is another schematic structural diagram of Embodiment 9 of the network sharing detection apparatus according to the present invention.
  • the apparatus of this embodiment is based on the apparatus structure shown in Embodiment 3 of the apparatus, and further,
  • the second control module 191 is further configured to: perform, according to the identification result, a data flow initiated by the host device or a data flow initiated by the non-host device, according to the identification result.
  • the second output module 192 is configured to output an information report according to the sending status of the data stream initiated by the host device or the non-host device.
  • the network sharing detection apparatus of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention. The implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 20 is a schematic diagram of the working principle of the network sharing detecting device of the present invention.
  • the network sharing detecting device of this embodiment includes the network sharing detecting device provided by any embodiment of the present invention; the network sharing detecting device is integrated in the network access server ( Network Access Server, NAS) or Internet gateway device, or set between the NAS device and the Internet.
  • NAS Network Access Server
  • the network sharing detection device is integrated into the NAS device as an example, as shown in the figure.
  • the network share detecting device 201 is integrated in the NSA device 202 and disposed between the host device 204 and the Internet 203.
  • the first non-homed device 205, the second non-homed device 206, and the third non-homed device 207 implement network sharing with the host device 204 via Wifi, Bluetooth, USB, and the like.
  • the non-host devices may be one or more.
  • the network sharing detection device of this embodiment may perform the technical solution of the network sharing detection method provided by any embodiment of the present invention, and the implementation principle and technical effects thereof are similar, and details are not described herein.
  • the system for controlling traffic transmission includes at least one processor 1001, such as a CPU, at least one network interface 1004 or other user interface 1003, memory 1005, and at least one communication bus 1002.
  • Communication bus 1002 is used to implement connection communication between the aforementioned devices.
  • the system for controlling service transmission optionally includes a user interface 1003, such as a display, a keyboard or a pointing device.
  • the memory 1005 may include a high speed RAM memory, and may also include a non-volatile memory such as at least one disk memory.
  • the memory 1005 can optionally include at least one storage device located remotely from the aforementioned CPU 1001. In some embodiments, memory 1005 stores the following elements, modules or data structures, or a subset thereof, or their extension set:
  • An operating system 1006 including various programs for implementing various basic services and processing hardware-based tasks;
  • the receiving module 101, the obtaining module 102, and the identifying module 103 wherein the receiving module 101 is configured to receive a data stream sent by the terminal device, where the acquiring module 102 is configured to obtain routing hop information of the data stream, and the identifying module 103 is configured to: And determining, according to the route hop count information of the data flow, whether the terminal device applies the network sharing function.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integration into another system, or some features can be ignored, or not executed.
  • the 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 electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. 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 various embodiments of the present invention may be integrated into one processing unit
  • each unit may exist physically separately, or two or more units may be integrated into one unit.
  • This feature if implemented as a software functional unit and sold or used as a standalone product, can be stored on a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method in accordance with 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, which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiments of the present invention provide a network sharing detection method, apparatus and device. The network sharing detection method of the present invention comprises: a network sharing detection device receiving a data stream sent by a terminal device; the network sharing detection device acquiring routing hop information of the data stream; and the network sharing detection device recognizing whether the terminal device uses a network sharing function according to the routing hop information of the data stream. In the embodiments of the present invention, by analyzing the routing hop information of the data stream sent by the terminal device, accurate recognition of whether the terminal device uses the network sharing function is achieved, and the management capability of an operator to network sharing is improved. In a further implementation mode, whether a terminal device is a host device or a non-host device can also be recognized.

Description

网络共享检测方法、 装置及设备 技术领域  Network sharing detection method, device and device
本发明实施例涉及网络技术, 尤其涉及一种网络共享检测方法、 装置及 设备。 背景技术  The embodiments of the present invention relate to network technologies, and in particular, to a network sharing detection method, apparatus, and device. Background technique
随着网络技术的发展, 终端设备可以通过网络共享(Tethering ) 的方式 实现无线上网功能, 这样可以避开由于自身无线上网产生的流量费用, 然而 这对运营商在数据业务的管理上产生了诸多不便。  With the development of network technology, terminal devices can implement wireless Internet access through network sharing (Tethering), which can avoid the traffic charges generated by their own wireless Internet access. However, this has generated many management services for operators. inconvenient.
网络共享是终端设备 A (即非宿主设备 )通过如 Wifi ( Wireless fidelity ) 无线局域网或蓝牙、 通用串行总线(Universal Serial BUS, USB )等技术与 提供网络共享的终端设备 B (即宿主设备)相连, 分享终端设备 B (宿主设 备)的上网功能的技术。 为了提高运营商在网络数据业务上的管理能力, 如 何确定用户是否使用网络共享功能变得极其重要。现有技术是通过对终端设 备进行数据业务的数据流中的用户代理字段 ( UserAgent )携带硬件厂商信 息和 /或操作系统(Operating System, OS )信息进行检测, 或通过终端设备 进行数据业务的数据流中的传输控制协议(Transmission Control Protocol, TCP ) /网协(Internet Protocol, IP )协议栈默认参数中提取的硬件厂商信息 和 /或 OS信息进行检测, 如果在同一个用户的不同 IP流中检测到一次分组数 据协议( Packet Data Protocol , PDP )激活中并发出现了多个不同的厂商信息 和 /或 OS信息, 则可以判断出该用户使用了网络共享。  A network share is a terminal device B (ie, a host device) that is shared by a terminal device A (ie, a non-host device) through a technology such as a Wifi (Wireless Fidelity) wireless LAN or Bluetooth, a Universal Serial Bus (USB), or the like. Connected, sharing the Internet access function of terminal device B (host device). In order to improve the management capabilities of operators in network data services, it is extremely important to determine whether users use network sharing functions. The prior art detects the user agent field (UserAgent) in the data flow of the data service of the terminal device by carrying the hardware manufacturer information and/or the operating system (OS) information, or the data of the data service through the terminal device. The hardware vendor information and/or OS information extracted from the default parameters of the Transmission Control Protocol (TCP)/Internet Protocol (IP) protocol stack is detected in the different IP flows of the same user. When a packet data protocol (PDP) activation is detected and a plurality of different vendor information and/or OS information are concurrently generated, it can be determined that the user uses the network share.
对于上述现有技术, 如果实现网络共享的多个终端设备具有相同的硬件 厂商信息和 /或 OS信息, 则现有技术是无法识别用户是否使用了网络共享功 能。 发明内容  With the above prior art, if a plurality of terminal devices implementing network sharing have the same hardware vendor information and/or OS information, the prior art cannot recognize whether the user uses the network sharing function. Summary of the invention
本发明实施例提供一种网络共享检测方法、 装置及设备, 以解决无法识 别终端设备是否使用了网络共享功能的问题, 以实现运营商对网络共享管理 能力的提高。 本发明实施例提供一种网络共享检测方法、 装置及设备, 以解决无法识 别终端设备是否使用了网络共享功能的问题, 以实现运营商对网络共享管理 能力的提高。 The embodiment of the invention provides a method, a device and a device for detecting a network sharing, so as to solve the problem that the network sharing function is not recognized by the terminal device, so as to improve the management capability of the network sharing by the operator. The embodiment of the invention provides a method, a device and a device for detecting a network sharing, so as to solve the problem that the network sharing function is not recognized by the terminal device, so as to improve the management capability of the network sharing by the operator.
第一方面, 本发明实施例提供一种网络共享检测方法, 包括: 网络共享检测设备接收终端设备发送的数据流;  In a first aspect, an embodiment of the present invention provides a network sharing detection method, including: receiving, by a network sharing detection device, a data stream sent by a terminal device;
该网络共享检测设备获取该数据流的路由跳数信息;  The network sharing detecting device acquires route hop count information of the data stream;
该网络共享检测设备根据该数据流的路由跳数信息识别该终端设备是 否应用了网络共享功能。  The network sharing detecting device identifies, according to the routing hop count information of the data stream, whether the terminal device applies the network sharing function.
在第一方面的第一种可能的实现方式中, 该网络共享检测设备接收终端 设备发送的数据流, 包括:  In a first possible implementation manner of the first aspect, the network sharing detecting device receives the data stream sent by the terminal device, including:
网络共享检测设备接收终端设备发送的两个以上的数据流;  The network sharing detecting device receives two or more data streams sent by the terminal device;
该网络共享检测设备获取该数据流的路由跳数信息, 包括:  The network sharing detecting device obtains the routing hop information of the data stream, including:
该网络共享检测设备分别获取该两个以上的数据流的实际路由跳数, 该 实际路由跳数为该数据流在通信网络中经过的路由网元的数量;  The network sharing detecting device obtains the actual number of route hops of the two or more data streams, where the actual number of hops of the route is the number of routing network elements that the data stream passes through in the communication network;
该网络共享检测设备根据该数据流的路由跳数信息识别该终端设备是 否使用网络共享功能, 包括:  The network sharing detecting device identifies, according to the routing hop information of the data stream, whether the terminal device uses the network sharing function, including:
该网络共享检测设备比较该两个以上的数据流的实际路由跳数是否不 同, 若不同, 则确定该终端设备应用了网络共享功能。  The network sharing detecting device compares whether the actual number of hops of the two or more data streams is different. If different, it determines that the terminal device applies the network sharing function.
根据第一方面的第一种可能的实现方式, 在第二种可能的实现方式中, 该确定该终端设备应用了网络共享功能之后, 还包括:  According to the first possible implementation manner of the first aspect, in a second possible implementation manner, after determining that the terminal device applies the network sharing function, the method further includes:
该网络共享检测设备比较该两个以上的数据流的实际路由跳数,确定实 际路由跳数大的数据流为非宿主设备发起的, 实际路由跳数小的数据流为宿 主设备发起的。  The network sharing detecting device compares the actual number of hops of the two or more data streams, and determines that the data stream with a large number of actual hops is initiated by the non-homed device, and the data stream with the small number of actual hops is initiated by the host device.
在第一方面的第三种可能的实现方式中, 该网络共享检测设备获取该数 据流的路由跳数信息, 包括:  In a third possible implementation manner of the first aspect, the network sharing detecting device obtains the routing hop information of the data stream, including:
该网络共享检测设备获取该数据流的实际路由跳数, 该实际路由跳数为 该数据流在通信网络中经过的路由网元的数量;  The network sharing detecting device obtains the actual number of route hops of the data stream, where the actual number of hops of the route is the number of routing network elements that the data stream passes through in the communication network;
该网络共享检测设备根据该数据流的路由跳数信息识别该终端设备是 否应用了网络共享功能, 包括: 该网络共享检测设备获取该网络共享检测设备与该终端设备之间的默 认路由跳数, 该默认路由跳数为假设该终端设备自身建立数据业务通道时与 该网络共享检测设备之间的路由跳数; The network sharing detecting device identifies, according to the routing hop information of the data stream, whether the terminal device applies the network sharing function, including: The network sharing detecting device obtains a default route hop count between the network sharing detecting device and the terminal device, where the default route hop count is a route hopping with the network sharing detecting device when the terminal device establishes a data service channel by itself. number;
该网络共享检测设备比较该数据流的实际路由跳数和该默认路由跳数 是否相同, 若不同, 则确定该终端设备应用了网络共享功能。  The network sharing detecting device compares the actual route hop count of the data stream with the default route hop count. If different, it determines that the terminal device applies the network sharing function.
根据第一方面的第三种可能的实现方式, 在第四种可能的实现方式中, 该确定该终端设备应用了网络共享功能之后, 还包括:  According to a third possible implementation manner of the first aspect, in a fourth possible implementation manner, after determining that the terminal device applies the network sharing function, the method further includes:
该网络共享检测设备比较该数据流的实际路由跳数是否大于该默认路 由跳数, 若是, 则确定该数据流为非宿主设备发起的, 若否, 则确定该数据 流为宿主设备发起的。  The network sharing detecting device compares whether the actual number of route hops of the data stream is greater than the default route hop count, and if yes, determines that the data stream is initiated by the non-homed device, and if not, determines that the data stream is initiated by the host device.
根据第一方面的第一种至第四种可能的实现方式中的任意一种,在第五 种可能的实现方式中, 该实际路由跳数为该数据流的当前生命周期值与该终 端设备的初始生命周期值之间的差值。  According to any one of the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation, the actual route hop count is a current lifetime value of the data stream and the terminal device The difference between the initial lifecycle values.
根据第一方面的第五种可能的实现方式, 在第六种可能的实现方式中, 在该网络共享检测设备获取该数据流的实际路由跳数之前, 还包括:  According to the fifth possible implementation manner of the first aspect, in a sixth possible implementation, before the network sharing detecting device acquires the actual number of route hops of the data stream, the method further includes:
该网络共享检测设备从该数据流的数据包中获取终端设备标识信息; 该网络共享检测设备根据该终端设备标识信息从数据库中查询获取该 终端设备的初始生命周期值。  The network sharing detecting device acquires the terminal device identification information from the data packet of the data stream; the network sharing detecting device queries the database to obtain an initial life cycle value of the terminal device according to the terminal device identification information.
在第一方面的第七种可能的实现方式中, 该网络共享检测设备接收终端 设备发送的数据流, 包括:  In a seventh possible implementation manner of the first aspect, the network sharing detecting device receives the data stream sent by the terminal device, including:
网络共享检测设备接收终端设备发送的两个以上的数据流;  The network sharing detecting device receives two or more data streams sent by the terminal device;
该网络共享检测设备获取该数据流的路由跳数信息, 包括:  The network sharing detecting device obtains the routing hop information of the data stream, including:
该网络共享检测设备获取该两个以上的数据流的当前生命周期值; 该网络共享检测设备根据该数据流的路由跳数信息识别该终端设备是 否应用了网络共享功能, 包括:  The network sharing detecting device acquires a current life cycle value of the two or more data streams. The network sharing detecting device identifies, according to the routing hop information of the data stream, whether the terminal device applies the network sharing function, including:
该网络共享检测设备比较该两个以上的数据流的当前生命周期值是否 不同, 若不同, 则确定该终端设备应用了网络共享功能。 根据第一方面、 第一方面的第一种、 第三种或第七种可能的实现方式, 在第八种可能的实现方式中, 在确定该终端设备应用了网络共享功能的步骤 之后, 还包括下述步骤之一或者组合: The network sharing detecting device compares whether the current life cycle values of the two or more data streams are different. If they are different, determining that the terminal device applies the network sharing function. According to the first aspect, the first, the third or the seventh possible implementation manner of the first aspect, in the eighth possible implementation manner, after determining that the terminal device applies the network sharing function, Includes one or a combination of the following steps:
该网络共享检测设备根据识别结果, 对该终端设备发送的该数据流进行 计费控制、 带宽控制、 阻断控制和提醒控制之一或者任意组合; 或  The network sharing detecting device performs one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data stream sent by the terminal device according to the recognition result; or
该网络共享检测设备根据终端设备的数据流发送情况, 输出信息报表。 根据第一方面的第二种或第四种可能的实现方式, 在第九种可能的实现 方式中, 在确定该数据流为非宿主设备发起的, 或者, 确定所述数据流为宿 主设备发起的步骤之后, 还包括下述步骤之一或者组合:  The network sharing detecting device outputs a report of the information according to the data flow of the terminal device. According to the second or fourth possible implementation manner of the first aspect, in a ninth possible implementation manner, determining that the data flow is initiated by a non-homed device, or determining that the data flow is initiated by a host device After the step, it also includes one or a combination of the following steps:
该网络共享检测设备根据识别结果, 分别对由宿主设备发起的数据流, 或者非宿主设备发起的数据流, 进行计费控制、 带宽控制、 阻断控制和提醒 控制之一或者任意组合; 或  The network sharing detecting device performs one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data flow initiated by the host device or the data flow initiated by the non-host device according to the identification result; or
该网络共享检测设备分别根据由宿主设备或者非宿主设备发起的数据 流的发送情况, 输出信息才艮表  The network sharing detecting device outputs the information according to the data flow sent by the host device or the non-host device respectively.
第二方面, 本发明实施例提供一种网络共享检测装置, 包括: 接收模块, 用于接收终端设备发送的数据流;  In a second aspect, an embodiment of the present invention provides a network sharing detection apparatus, including: a receiving module, configured to receive a data stream sent by a terminal device;
获取模块, 用于获取该数据流的路由跳数信息;  An obtaining module, configured to obtain routing hop information of the data stream;
识别模块, 用于根据该数据流的路由跳数信息识别该终端设备是否应用 了网络共享功能。  The identification module is configured to identify, according to the route hop count information of the data flow, whether the terminal device applies the network sharing function.
在第二方面的第一种可能的实现方式中, 该接收模块包括:  In a first possible implementation manner of the second aspect, the receiving module includes:
第一接收单元, 用于接收终端设备发送的两个以上的数据流; 该获取模块包括:  a first receiving unit, configured to receive two or more data streams sent by the terminal device; the acquiring module includes:
第一获取单元, 用于获取该两个以上的数据流的实际路由跳数, 该实际 路由跳数为该数据流在通信网络中经过的路由网元的数量;  a first acquiring unit, configured to obtain an actual number of hops of the two or more data flows, where the actual number of hops is the number of routing network elements that the data stream passes in the communication network;
该识别模块包括:  The identification module includes:
第一识别单元, 用于比较该两个以上的数据流的实际路由跳数是否不 同, 若不同, 则确定该终端设备应用了网络共享功能。  The first identifying unit is configured to compare whether the actual number of hops of the two or more data streams is different. If different, determine that the terminal device applies the network sharing function.
根据第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 还包括: 第一比较模块, 用于比较该两个以上的数据流的实际路由跳数, 确定实 际路由跳数大的数据流为非宿主设备发起的, 实际路由跳数小的数据流为宿 主设备发起的。 According to the first possible implementation manner of the second aspect, in a second possible implementation manner, the method further includes: The first comparison module is configured to compare the actual number of hops of the two or more data flows, and determine that the data flow with a large number of actual hops is initiated by the non-homed device, and the data flow with a small actual number of hops is initiated by the host device. .
在第二方面的第三种可能的实现方式中, 该获取模块包括:  In a third possible implementation manner of the second aspect, the acquiring module includes:
第二获取单元, 用于获取该数据流的实际路由跳数, 该实际路由跳数为 该数据流在通信网络中经过的路由网元的数量;  a second acquiring unit, configured to obtain an actual number of route hops of the data stream, where the actual number of hops of the route is a number of routing network elements that the data stream passes in the communication network;
该识别模块包括:  The identification module includes:
第三获取单元, 用于获取该网络共享检测设备与该终端设备之间的默认 路由跳数, 该默认路由跳数为假设该终端设备自身建立数据业务通道时与该 网络共享检测设备之间的路由跳数;  a third acquiring unit, configured to obtain a default route hop count between the network sharing detecting device and the terminal device, where the default route hop count is between the network device and the network sharing detecting device when the terminal device establishes a data service channel Number of route hops;
第二识别单元, 用于比较该数据流的实际路由跳数和该默认路由跳数是 否相同, 若不同, 则确定该终端设备应用了网络共享功能。  The second identifying unit is configured to compare whether the actual number of route hops of the data stream and the default route hop count are the same. If not, determine that the terminal device applies the network sharing function.
根据第二方面的第三种可能的实现方式, 在第四种可能的实现方式中, 还包括:  According to a third possible implementation manner of the second aspect, in a fourth possible implementation manner, the method further includes:
第二比较模块, 用于比较该数据流的实际路由跳数是否大于该默认路由 跳数, 若是, 则确定该数据流为非宿主设备发起的, 若否, 则确定该数据流 为宿主设备发起的。  a second comparison module, configured to compare whether the actual route hop count of the data stream is greater than the default route hop count, and if yes, determine that the data flow is initiated by the non-homed device, and if not, determine that the data flow is initiated by the host device of.
根据第二方面的第一种至第四种可能的实现方式中的任意一种,在第五 种可能的实现方式中, 该实际路由跳数为该数据流的当前生命周期值与该终 端设备的初始生命周期值之间的差值。  According to any one of the first to fourth possible implementation manners of the second aspect, in a fifth possible implementation, the actual route hop count is a current lifetime value of the data stream and the terminal device The difference between the initial lifecycle values.
根据第二方面的第五种可能的实现方式, 在第六种可能的实现方式中, 还包括:  According to the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner, the method further includes:
第二获取子单元, 用于在获取所述数据流的实际路由跳数之前, 从该数 据流的数据包中获取终端设备标识信息;  a second acquiring subunit, configured to obtain terminal device identification information from the data packet of the data stream before acquiring the actual route hop count of the data stream;
查询子单元, 用于根据该终端设备标识信息从数据库中查询获取该终端 设备的初始生命周期值。  The query subunit is configured to query, according to the terminal device identification information, the initial lifetime value of the terminal device from the database.
在第二方面的第七种可能的实现方式中, 该接收模块包括:  In a seventh possible implementation manner of the second aspect, the receiving module includes:
第二接收单元, 用于接收终端设备发送的两个以上的数据流; 该获取模块包括: 第四获取单元, 用于获取该两个以上的数据流的当前生命周期值; 该识别模块包括: a second receiving unit, configured to receive two or more data streams sent by the terminal device; the acquiring module includes: a fourth acquiring unit, configured to acquire current current period values of the two or more data streams; the identifying module includes:
第三识别单元, 用于比较该两个以上的数据流的当前生命周期值是否不 同, 若不同, 则确定该终端设备应用了网络共享功能。  And a third identifying unit, configured to compare whether current lifetime values of the two or more data streams are different, and if different, determine that the terminal device applies a network sharing function.
根据第二方面、 第二方面的第一种、 第三种或第七种可能的实现方式, 在第八种可能的实现方式中, 还包括下述模块之一或者组合:  According to the second aspect, the first, the third or the seventh possible implementation manner of the second aspect, in the eighth possible implementation manner, the one or the combination of the following modules is further included:
第一控制模块, 用于根据识别结果, 对该终端设备发送的该数据流进行 计费控制、 带宽控制、 阻断控制和提醒控制之一或者任意组合; 或  a first control module, configured to perform one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data stream sent by the terminal device according to the identification result; or
第一输出模块, 用于根据终端设备的数据流发送情况, 输出信息报表。 根据第二方面的第二种或第四种可能的实现方式, 在第九种可能的实现 方式中, 还包括下述模块之一或者组合:  The first output module is configured to output a report of the information according to the data flow of the terminal device. According to the second or fourth possible implementation manner of the second aspect, in the ninth possible implementation manner, one or a combination of the following modules is further included:
第二控制模块, 用于根据识别结果, 分别对由宿主设备发起的数据流, 或者非宿主设备发起的数据流, 进行计费控制、 带宽控制、 阻断控制和提醒 控制之一或者任意组合; 或  a second control module, configured to perform one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data flow initiated by the host device or the data flow initiated by the non-host device according to the identification result; Or
第二输出模块, 用于分别根据由宿主设备或者非宿主设备发起的数据流 的发送情况, 输出信息才艮表。  The second output module is configured to output the information according to the sending condition of the data stream initiated by the host device or the non-host device, respectively.
第三方面本发明实施例提供一种网络共享检测设备, 包括: 本发明任意 实施例所提供的网络共享检测装置; 该网络共享检测设备集成在网络接入服 务器或互联网网关设备中, 或设置在网络接入服务器与互联网之间。  The third aspect of the present invention provides a network sharing detecting device, including: a network sharing detecting device provided by any embodiment of the present invention; the network sharing detecting device is integrated in a network access server or an internet gateway device, or is disposed in Network access server and the Internet.
本发明实施例网络共享检测方法、 装置及网络共享检测设备, 通过对终 端设备发送的数据流的路由跳数信息进行分析, 解决了一些情况下无法识别 终端设备是否使用了网络共享功能的问题, 增强了运营商对网络的准确管 理。 进一步的实施方式中, 还可以识别出终端设备是宿主设备还是非宿主设 备。 附图说明  The network sharing detection method, the device, and the network sharing detection device in the embodiment of the present invention analyze the routing hop information of the data stream sent by the terminal device, and solve the problem that the terminal device cannot use the network sharing function in some cases. Enhance the operator's accurate management of the network. In a further embodiment, it can also be identified whether the terminal device is a host device or a non-host device. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 图 1为本发明网络共享检测方法实施例一的流程图; In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor. 1 is a flowchart of Embodiment 1 of a network sharing detection method according to the present invention;
图 2为本发明网络共享检测方法实施例二的流程图;  2 is a flowchart of Embodiment 2 of a network sharing detection method according to the present invention;
图 3为本发明网络共享检测方法实施例三的流程图;  3 is a flowchart of Embodiment 3 of a network sharing detection method according to the present invention;
图 4为本发明网络共享检测方法实施例四的流程图;  4 is a flowchart of Embodiment 4 of a network sharing detection method according to the present invention;
图 5为本发明网络共享检测方法实施例五的流程图;  FIG. 5 is a flowchart of Embodiment 5 of a network sharing detection method according to the present invention;
图 6为本发明网络共享检测方法实施例六的流程图;  6 is a flowchart of Embodiment 6 of a network sharing detection method according to the present invention;
图 7为本发明网络共享检测方法实施例七的流程图;  7 is a flowchart of Embodiment 7 of a network sharing detection method according to the present invention;
图 8为本发明网络共享检测方法实施例八的流程图;  8 is a flowchart of Embodiment 8 of a network sharing detection method according to the present invention;
图 9为本发明网络共享检测方法实施例九的流程图;  9 is a flowchart of Embodiment 9 of a network sharing detection method according to the present invention;
图 10为本发明网络共享检测装置实施例一的结构示意图;  FIG. 10 is a schematic structural diagram of Embodiment 1 of a network sharing detecting apparatus according to the present invention;
图 11为本发明网络共享检测装置实施例二的结构示意图;  11 is a schematic structural diagram of Embodiment 2 of a network sharing detecting apparatus according to the present invention;
图 12为本发明网络共享检测装置实施例三的结构示意图;  12 is a schematic structural diagram of Embodiment 3 of a network sharing detecting apparatus according to the present invention;
图 13为本发明网络共享检测装置实施例四的结构示意图;  13 is a schematic structural diagram of Embodiment 4 of a network sharing detecting apparatus according to the present invention;
图 14为本发明网络共享检测装置实施例五的结构示意图;  14 is a schematic structural diagram of Embodiment 5 of a network sharing detecting apparatus according to the present invention;
图 15为本发明网络共享检测装置实施例六的结构示意图;  15 is a schematic structural diagram of Embodiment 6 of a network sharing detecting apparatus according to the present invention;
图 16为本发明网络共享检测装置实施例七的结构示意图;  16 is a schematic structural diagram of Embodiment 7 of a network sharing detecting apparatus according to the present invention;
图 17为本发明网络共享检测装置实施例八的结构示意图;  17 is a schematic structural diagram of Embodiment 8 of a network sharing detecting apparatus according to the present invention;
图 18为本发明网络共享检测装置实施例九的结构示意图;  18 is a schematic structural diagram of Embodiment 9 of a network sharing detecting apparatus according to the present invention;
图 19为本发明网络共享检测装置实施例九的另一结构示意图; 图 20为本发明网络共享检测设备实施例的工作原理示意图;  FIG. 19 is another schematic structural diagram of Embodiment 9 of the network sharing detecting apparatus according to the present invention; FIG. 20 is a schematic diagram of the working principle of the embodiment of the network sharing detecting apparatus according to the present invention;
图 21为适用于本发明实施例的控制业务传输的系统的结构示意图。 具体实施方式  FIG. 21 is a schematic structural diagram of a system for controlling service transmission according to an embodiment of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一  Embodiment 1
图 1为本发明网络共享检测方法实施例一的流程图, 该方法适用于判断 网络数据业务中用户是否使用网络共享技术, 如图 1所示, 本实施例的方法 可以包括: 1 is a flowchart of Embodiment 1 of a network sharing detection method according to the present invention, where the method is applicable to determining Whether the user uses the network sharing technology in the network data service, as shown in FIG. 1 , the method in this embodiment may include:
S 101、 网络共享检测设备接收终端设备发送的数据流。  S101. The network sharing detecting device receives the data stream sent by the terminal device.
其中, 该终端设备为发起数据业务的各类电子设备, 如智能手机或平板 电脑等; 该数据流为终端设备向业务提供商 (Service Provider, SP)服务器发 送的以事先规定好的顺序被读取一次的数据的一个序列, 其中, 该数据流包 含多个数据包, 各数据包中包含发送者和接收者的地址信息等的多种信息, 例如可以为 IP报文, 其中可以包含有 TCP/IP协议栈默认参数、 UserAgent 携带的硬件厂商信息和 /或 OS信息等; 该数据流可以为 IP流。 该网络共享 检测设备是用于对用户是否采用网络共享技术进行检测, 其可以集成在已有 网元中, 例如网关设备中, 也可以独立设置。  The terminal device is a type of electronic device that initiates a data service, such as a smart phone or a tablet computer; the data stream is read by the terminal device to a service provider (SP) server in a predetermined order. A sequence of data that is taken once, wherein the data stream includes a plurality of data packets, each of which includes various information such as address information of the sender and the receiver, and may be, for example, an IP packet, which may include a TCP packet. /IP stack default parameters, hardware vendor information and/or OS information carried by the UserAgent; the data stream can be an IP stream. The network sharing detection device is configured to detect whether the user uses the network sharing technology, and may be integrated into an existing network element, such as a gateway device, or may be independently set.
5102、 该网络共享检测设备获取该数据流的路由跳数信息。  5102. The network sharing detection device acquires route hop count information of the data flow.
具体地, 路由跳数为数据流传输过程中经过路由网元的数量, 即数据流 每经过一个路由网元就会跳变一次, 即路由跳数加 1 , 该跳数信息将被记录 在该数据流的数据包的某些字段内。 若终端设备采用网络共享技术, 则提供 网络共享的终端设备 (即宿主设备)即可作为使用网络共享的终端设备 (即 非宿主设备)的一跳路由网元。 该路由跳数信息为在数据传输过程中, 可以 从该数据流的数据包中实时读取或解析到的, 可以反映该数据流的路由跳变 次数的信息, 如生命周期(Time To Live, TTL )值等。  Specifically, the number of route hops is the number of routed network elements in the data stream transmission process, that is, the data stream hops once every time a route network element passes, that is, the number of route hops is increased by 1, and the hop count information is recorded in the The data stream is inside certain fields of the packet. If the terminal device adopts the network sharing technology, the terminal device (ie, the host device) that provides the network sharing can be used as a one-hop routing network element of the terminal device (ie, the non-host device) that uses the network share. The route hop count information is information that can be read or parsed in real time from the data packet of the data stream during the data transmission process, and can reflect information about the number of route hops of the data stream, such as a life cycle (Time To Live, TTL) value, etc.
其中, 该宿主设备为建立实际物理通信链路的设备, 且通过 USB、 蓝牙 或者 Wifi等通信技术,将该物理通信链路承载的数据业务通道共享给非宿主 设备。 该非宿主设备为使用宿主设备通过 USB、 蓝牙或者 Wifi等共享出来 的数据业务通道访问数据业务的设备。本文将上述数据业务通道的共享称为 网络共享。 在网络共享过程中, 宿主设备和非宿主设备可以并发的发起数据 业务, 也可只有宿主设备或非宿主设备发起数据业务。  The host device is a device that establishes an actual physical communication link, and shares the data service channel carried by the physical communication link to the non-host device through a communication technology such as USB, Bluetooth, or Wifi. The non-homed device is a device that accesses data services using a data service channel shared by a host device through USB, Bluetooth, or Wifi. This paper refers to the sharing of the above data service channels as network sharing. In the network sharing process, the host device and the non-host device can initiate data services concurrently, or only the host device or the non-host device can initiate data services.
5103、该网络共享检测设备根据该数据流的路由跳数信息识别该终端设 备是否应用了网络共享功能。  5103. The network sharing detection device identifies, according to the route hop count information of the data flow, whether the terminal device applies the network sharing function.
具体地, 在一次 PDP 激活中当终端设备发送的数据流传输到该网络共 享检测设备时,根据该数据流的路由跳数信息识别该终端设备是否应用了网 络共享功能, 即通过对路由跳数信息进行读取或解析来确定终端设备是否应 用了网络共享功能, 如可以利用该路由跳数信息进行解析确定该数据流的路 由跳数, 通过一次 PDP 激活中对不同数据流进行比较, 如果有不同的路由 跳数, 则表明终端设备使用了网络共享功能; 也可以为利用该路由跳数信息 如 TTL值直接读取进行判断, 如果在该终端设备发送的多个的数据流中存 在有不同的 TTL值则表明该终端设备应用了网络共享功能, 但不以此为限。 Specifically, when a data stream sent by the terminal device is transmitted to the network sharing detecting device in a PDP activation, the routing hop information of the data stream is used to identify whether the terminal device applies the network. The network sharing function determines whether the terminal device applies the network sharing function by reading or parsing the routing hop information. For example, the routing hop information can be used for parsing to determine the routing hop count of the data flow, and is activated by one PDP. Comparing different data streams, if there are different routing hops, it indicates that the terminal device uses the network sharing function; it can also be judged by directly reading the hop count information such as the TTL value, if it is sent at the terminal device The existence of different TTL values in multiple data streams indicates that the terminal device applies the network sharing function, but is not limited thereto.
本实施例, 通过对数据流路由跳数信息的读取或解析, 实现了对终端设 备是否应用了网络共享功能的准确识别,提高了运营商对网络共享的管理能 力。  In this embodiment, by reading or parsing the data flow routing hop information, it is possible to accurately identify whether the terminal device applies the network sharing function, and improve the management capability of the operator for network sharing.
实施例二  Embodiment 2
图 2为本发明网络共享检测方法实施例二的流程图, 本实施例在上述实 施例的基础上, 该网络共享检测设备接收终端设备发送的数据流, 包括: 网 络共享检测设备接收终端设备发送的两个以上的数据流; 该网络共享检测设 备获取该数据流的路由跳数信息, 包括: 该网络共享检测设备分别获取该两 个以上的数据流的实际路由跳数; 该网络共享检测设备根据该数据流的路由 跳数信息识别该终端设备是否使用网络共享功能, 包括: 该网络共享检测设 备比较该两个以上的数据流的实际路由跳数是否不同, 若不同, 则确定该终 端设备应用了网络共享功能。 如图 2所示, 本实施例的方法可以包括:  2 is a flowchart of Embodiment 2 of a network sharing detection method according to the present invention. On the basis of the foregoing embodiment, the network sharing detection device receives a data stream sent by the terminal device, and includes: the network sharing detection device receives the terminal device and sends the data packet. The network share detection device obtains the route hop count information of the data stream, and the network share detection device obtains the actual route hops of the two or more data streams respectively; the network share detection device Determining whether the terminal device uses the network sharing function according to the routing hop information of the data stream, the method includes: comparing, by the network sharing detecting device, whether the actual routing hops of the two or more data flows are different, and if different, determining the terminal device The network sharing function is applied. As shown in FIG. 2, the method in this embodiment may include:
S201、 网络共享检测设备接收终端设备发送的两个以上的数据流。  S201. The network sharing detection device receives two or more data streams sent by the terminal device.
S202、该网络共享检测设备分别获取该两个以上的数据流的实际路由跳 数, 该实际路由跳数为该数据流在通信网络中经过的路由网元的数量。  S202: The network sharing detection device obtains the actual route hops of the two or more data streams, where the actual route hop count is the number of routing network elements that the data stream passes in the communication network.
其中, 该实际路由跳数为该数据流在通信网络中经过的路由网元的数 量,也即该终端设备发送的数据包在该网络共享检测设备接收时实际经过的 路由网元的数量。 当终端设备为非宿主设备时, 对于非宿主设备, 宿主设备 也为一路由网元。  The actual number of hops of the route is the number of routed network elements that the data stream passes through in the communication network, that is, the number of routed network elements that the data packet sent by the terminal device actually passes when received by the network share detection device. When the terminal device is a non-homed device, for the non-host device, the host device is also a routing network element.
S203、该网络共享检测设备比较该两个以上的数据流的实际路由跳数是 否不同, 若不同, 则确定该终端设备应用了网络共享功能。  S203. The network sharing detecting device compares whether the actual number of hops of the two or more data streams is different. If different, determining that the terminal device applies the network sharing function.
具体地, 在一次 PDP 激活中, 该网络共享检测设备对该两个以上的数 据流的实际路由跳数进行比较, 若判断出存在有不同的实际路由跳数, 则可 以确定发起数据业务的该终端设备应用了网络共享功能。 Specifically, in a PDP activation, the network sharing detecting device compares actual hops of the two or more data flows, and if it is determined that there are different actual hops, The terminal device that determines the originating data service applies the network sharing function.
本实施例, 通过对不同数据流的实际路由跳数信息进行比较分析, 实现 了对终端设备是否应用了网络共享功能的准确识别,提高了运营商对网络共 享的管理能力。  In this embodiment, by comparing and analyzing the actual route hops information of different data streams, it is possible to accurately identify whether the terminal device applies the network sharing function, and improve the operator's management capability for network sharing.
实施例三  Embodiment 3
图 3为本发明网络共享检测方法实施例三的流程图, 本实施例在实施例 二的基础上, 该确定该终端设备应用了网络共享功能之后, 还包括: 该网络 共享检测设备比较该两个以上的数据流的实际路由跳数, 确定实际路由跳数 大的数据流为非宿主设备发起的, 实际路由跳数小的数据流为宿主设备发起 的。 如图 3所示, 本实施例的方法包括:  3 is a flowchart of Embodiment 3 of a network sharing detection method according to the present invention. On the basis of Embodiment 2, after determining that the terminal device applies the network sharing function, the method further includes: comparing, by the network sharing detecting device, the two The actual number of hops of the data stream is determined by the non-homed device. The data stream with the actual number of hops is initiated by the host device. As shown in FIG. 3, the method in this embodiment includes:
S201、 网络共享检测设备接收终端设备发送的两个以上的数据流。 S201. The network sharing detection device receives two or more data streams sent by the terminal device.
5202、该网络共享检测设备分别获取该两个以上的数据流的实际路由跳 数, 该实际路由跳数为该数据流在通信网络中经过的路由网元的数量。 5202. The network sharing detection device obtains the actual route hops of the two or more data flows, where the actual route hop count is the number of route network elements that the data stream passes in the communication network.
5203、该网络共享检测设备比较该两个以上的数据流的实际路由跳数是 否不同, 若不同, 则确定该终端设备应用了网络共享功能。  S203: The network sharing detecting device compares whether the actual number of hops of the two or more data streams is different. If different, determining that the terminal device applies the network sharing function.
S301、 该网络共享检测设备比较该两个以上的数据流的实际路由跳数, 确定实际路由跳数大的数据流为非宿主设备发起的, 实际路由跳数小的数据 流为宿主设备发起的。  S301. The network sharing detection device compares the actual number of hops of the two or more data flows, and determines that the data flow with a large number of actual hops is initiated by the non-homed device, and the data flow with a small actual hop count is initiated by the host device. .
具体地, 当该网络共享检测设备确定了该终端设备应用了网络共享功能 后, 进一步对该两个以上的数据流的实际路由跳数进行比较, 实际路由跳数 大的数据流为非宿主设备发起的, 实际路由跳数小的数据流为宿主设备发起 的。  Specifically, after the network sharing detecting device determines that the terminal device applies the network sharing function, the actual number of hops of the two or more data streams is further compared, and the data stream with the actual number of hops is a non-host device. The data flow initiated by the host with a small number of hops is initiated by the host device.
本实施例, 通过进一步对该两个以上的数据流的实际路由跳数进行比 较, 实现对终端设备为非宿主设备或宿主设备的准确识别, 解决了网络共享 过程中无法识别终端设备为宿主设备或非宿主设备的问题。  In this embodiment, by comparing the actual number of hops of the two or more data streams, the terminal device is accurately identified as a non-homed device or a host device, and the terminal device is not recognized as a host device during the network sharing process. Or a problem with a non-host device.
实施例四  Embodiment 4
图 4为本发明网络共享检测方法实施例四的流程图, 本实施例在实施例 一的基础上, 该网络共享检测设备获取该数据流的路由跳数信息, 包括: 该 网络共享检测设备获取该数据流的实际路由跳数,该实际路由跳数为该数据 流在通信网络中经过的路由网元的数量; 该网络共享检测设备根据该数据流 的路由跳数信息识别该终端设备是否应用了网络共享功能, 包括: 该网络共 享检测设备获取该网络共享检测设备与该终端设备之间的默认路由跳数, 该 默认路由跳数为假设该终端设备自身建立数据业务通道时与该网络共享检 测设备之间的路由跳数; 该网络共享检测设备比较该数据流的实际路由跳数 和该默认路由跳数是否相同, 若不同, 则确定该终端设备应用了网络共享功 能。 该方法适可以不需要对多个数据流进行比较, 针对每个数据流就能单独 进行识别, 如图 4所示, 本实施例的方法包括: 4 is a flowchart of a fourth embodiment of a network sharing detection method according to the present invention. On the basis of the first embodiment, the network sharing detection device obtains the routing hop information of the data stream, including: The actual number of hops of the data stream. The actual number of hops of the route is the data. The number of the routing network elements that are traversed in the communication network; the network sharing detecting device identifies, according to the routing hop information of the data stream, whether the terminal device applies the network sharing function, and the method includes: the network sharing detecting device acquiring the network sharing detection The default number of route hops between the device and the terminal device. The default route hop count is the number of route hops between the device and the network share detection device when the terminal device establishes a data service channel. The network share detection device compares the data. Whether the actual number of hops of the flow and the number of hops of the default route are the same. If they are different, it is determined that the terminal device applies the network sharing function. The method is not required to compare multiple data streams, and can be separately identified for each data stream. As shown in FIG. 4, the method in this embodiment includes:
S 101、 网络共享检测设备接收终端设备发送的数据流。  S101. The network sharing detecting device receives the data stream sent by the terminal device.
具体地, 该数据流可以为一个或多个, 本实施例的方法可以针对每一个 数据流进行判断。  Specifically, the data stream may be one or more, and the method of this embodiment may perform judgment for each data stream.
5401、 该网络共享检测设备获取该数据流的实际路由跳数, 该实际路由 跳数为该数据流在通信网络中经过的路由网元的数量。  S401. The network share detection device obtains an actual number of route hops of the data stream, where the actual route hop count is the number of route network elements that the data stream passes through in the communication network.
其中, 该实际路由跳数为该数据流在通信网络中经过的路由网元的数 量, 也即该终端设备发送的数据包在该网络共享检测设备接收时实际经过的 路由网元的数量。 当终端设备为非宿主设备时, 对于非宿主设备, 宿主设备 也为一路由网元。  The actual number of hops of the route is the number of routed network elements that the data stream passes through in the communication network, that is, the number of routed network elements actually passed by the data packet sent by the terminal device when the network share detection device receives. When the terminal device is a non-homed device, for the non-host device, the host device is also a routing network element.
5402、该网络共享检测设备获取该网络共享检测设备与该终端设备之间 的默认路由跳数, 该默认路由跳数为假设该终端设备自身建立数据业务通道 时与该网络共享检测设备之间的路由跳数。  5402. The network sharing detection device obtains a default route hop count between the network sharing detection device and the terminal device, where the default route hop count is assumed to be between the network device and the network sharing detection device when the terminal device establishes a data service channel. The number of route hops.
具体地, 该默认路由跳数为假设该终端设备自身建立数据业务通道时与 该网络共享检测设备之间的路由跳数, 也即该默认路由跳数是假设终端设备 为宿主设备时, 网络共享检测设备和该终端设备之间的路由跳数。 当终端设 备的网络接入点 (Access Point Name, APN)固定后, 该默认路由跳数为一固 定值。 具体地, 网络共享检测设备可以通过解析该终端设备作为建立实际物 理通信链路的设备时(即作为宿主设备时)发送的数据包中的路由跳变信息, 获取该默认路由跳数。 例如, 采用跟踪路由程序(traceroute )等路由检测或 发现工具来进行上述解析。  Specifically, the default route hop count is a number of route hops between the terminal and the network sharing detection device when the terminal device establishes a data service channel, that is, the default route hop count is assuming that the terminal device is a host device, and the network share is Detects the number of route hops between the device and the terminal device. When the network access point (APN) of the terminal device is fixed, the default route hop count is a fixed value. Specifically, the network sharing detecting device may obtain the default route hop count by parsing the route hopping information in the data packet sent by the terminal device when the device is actually the physical communication link (that is, when the device is the host device). For example, a route detection or discovery tool such as a traceroute program is used to perform the above analysis.
5403、该网络共享检测设备比较该数据流的实际路由跳数和该默认路由 跳数是否相同, 若不同, 则确定该终端设备应用了网络共享功能。 5403. The network sharing detection device compares the actual number of route hops of the data flow with the default route. Whether the hop count is the same or not, if it is different, it is determined that the terminal device applies the network sharing function.
具体地, 在一次 PDP 激活中, 该网络共享检测设备对同一数据流的实 际路由跳数和该默认路由跳数进行比较, 若不同, 则确定该终端设备应用了 网络共享功能。  Specifically, in a PDP activation, the network sharing detecting device compares the actual number of hops of the same data stream with the default number of hops. If not, it determines that the terminal device applies the network sharing function.
本实施例,通过对同一数据流的实际路由跳数和该默认路由跳数进行比 较, 实现了对终端设备是否应用了网络共享功能的准确识别, 提高了运营商 对网络共享的管理能力。  In this embodiment, by comparing the actual number of hops of the same data stream with the number of hops of the default route, it is possible to accurately identify whether the terminal device applies the network sharing function, and improve the management capability of the operator for network sharing.
实施例五  Embodiment 5
图 5为本发明网络共享检测方法实施例五的流程图, 本实施例在实施例 四的基础上, 该确定该终端设备应用了网络共享功能之后, 如图 5所示, 本 实施例的方法还包括:  5 is a flowchart of Embodiment 5 of a network sharing detection method according to the present invention. On the basis of Embodiment 4, after determining that the terminal device applies the network sharing function, as shown in FIG. 5, the method in this embodiment is shown in FIG. Also includes:
S501、该网络共享检测设备比较该数据流的实际路由跳数是否大于该默 认路由跳数, 若是, 则确定该数据流为非宿主设备发起的, 若否, 则确定该 数据流为宿主设备发起的。  S501: The network sharing detecting device compares whether the actual number of hops of the data stream is greater than the default hop count, and if yes, determining that the data stream is initiated by the non-homed device, and if not, determining that the data stream is initiated by the host device. of.
具体地, 在一次 PDP 激活中, 当终端设备发送的数据流传输到该网络 共享检测设备时, 网络共享检测设备解析获得该数据流的实际路由跳数, 对 该数据流的实际路由跳数和终端设备与该网络共享检测设备之间的默认路 由跳数进行比较, 以便于识别该终端设备为宿主设备或非宿主设备。 如果在 一次 PDP 激活中, 如果检测到同一数据流中实际路由跳数大于默认路由跳 数, 则表明此次 PDP激活中该终端设备为非宿主设备, 如果在此次 PDP激 活中该数据流的实际路由跳数等于默认路由跳数则可确定该终端设备为宿 主设备。  Specifically, in a PDP activation, when the data stream sent by the terminal device is transmitted to the network sharing detection device, the network sharing detection device parses the actual route hop count of the data stream, and the actual route hop count of the data stream. The default route hop count between the terminal device and the network share detection device is compared to facilitate identification of the terminal device as a host device or a non-host device. If, during a PDP activation, the actual number of hops in the same data stream is greater than the default number of hops, the terminal device is a non-homed device in the PDP activation. If the data stream is in the PDP activation. The actual number of hops of the route is equal to the default number of hops to determine that the terminal device is the host device.
本实施例,通过进一步对每个数据流的实际路由跳数和默认路由跳数的 比较, 实现对终端设备为非宿主设备或宿主设备的准确识别, 解决了网络共 享过程中无法识别终端设备为宿主设备或非宿主设备的问题。  In this embodiment, by comparing the actual number of hops of each data stream with the number of hops of the default route, the terminal device is accurately identified as a non-homed device or a host device, and the terminal device cannot be identified during the network sharing process. A problem with a host device or a non-host device.
可选地, 如果在一次 PDP 激活中检测到终端设备发送的各每个数据流 的实际路由跳数与该终端设备的默认路由跳数相同, 则表明此次 PDP 激活 中终端设备未使用网络共享功能。如果有多个数据流的实际路由跳数与该默 认路由跳数不同, 可以确定这些数据流都是由非宿主设备发起的。 实施例六 Optionally, if it is detected in the PDP activation that the actual number of route hops of each data stream sent by the terminal device is the same as the default route hop count of the terminal device, it indicates that the terminal device does not use the network share in the PDP activation. Features. If the actual number of hops of multiple data streams is different from the default number of hops, it can be determined that these data streams are initiated by non-host devices. Embodiment 6
图 6为本发明网络共享检测方法实施例六的流程图, 本实施例在上述实 施例的基石出上, 该实际路由跳数为该数据流的当前生命周期值与该终端设备 的初始生命周期值之间的差值。 如图 6所示, 以在实施例四的基石出上为例进 行说明, 本实施例的方法包括:  FIG. 6 is a flowchart of Embodiment 6 of the network sharing detection method of the present invention. In this embodiment, the actual route hop count is the current life cycle value of the data flow and the initial life cycle of the terminal device. The difference between the values. As shown in FIG. 6, the core of the fourth embodiment is taken as an example. The method of this embodiment includes:
S 101、 网络共享检测设备接收终端设备发送的数据流。  S101. The network sharing detecting device receives the data stream sent by the terminal device.
S601、 该网络共享检测设备获取该数据流中数据包的当前生命周期值。 具体地, 该 TTL值是 IP/TCP协议栈默认参数中的一个表征值, 表示该 数据包在被丟弃前最多能经过的路由网元个数, 当该数据包每经过一个路由 网元 TTL值减 1 , 当 TTL值为 0时, 路由网元丟弃该数据包。 对于不同的 终端设备, 其初始的 TTL值不同。  S601. The network sharing detection device acquires a current lifetime value of the data packet in the data stream. Specifically, the TTL value is a characterization value in the default parameter of the IP/TCP protocol stack, and indicates the maximum number of routing network elements that the data packet can pass before being discarded. When the data packet passes through a routing network element TTL The value is decremented by 1. When the TTL value is 0, the routing network element discards the data packet. The initial TTL values are different for different terminal devices.
S602、该网络共享检测设备计算该当前生命周期值与该终端设备的初始 生命周期值之间的差值, 作为该实际路由跳数。  S602. The network sharing detection device calculates a difference between the current lifecycle value and an initial lifetime value of the terminal device as the actual route hop count.
5402、该网络共享检测设备获取该网络共享检测设备与该终端设备之间 的默认路由跳数, 该默认路由跳数为假设该终端设备自身建立数据业务通道 时与该网络共享检测设备之间的路由跳数。  5402. The network sharing detection device obtains a default route hop count between the network sharing detection device and the terminal device, where the default route hop count is assumed to be between the network device and the network sharing detection device when the terminal device establishes a data service channel. The number of route hops.
5403、该网络共享检测设备比较该数据流的实际路由跳数和该默认路由 跳数是否相同, 若不同, 则确定该终端设备应用了网络共享功能。  S403. The network sharing detecting device compares the actual number of hops of the data stream with the default number of hops of the default, and if different, determines that the terminal device applies the network sharing function.
本实施例, 通过采用 IP/TCP协议栈默认参数中的 TTL值来计算获取实 际路由跳数, 由于 TTL数据具有准确度高、 不易被修改、 提取方便等优点, 进一步提高了对该终端设备是否使用网络共享功能的识别能力, 同时降低了 网络共享检测设备的复杂度。  In this embodiment, the TTL value in the default parameters of the IP/TCP protocol stack is used to calculate the actual hop count. Since the TTL data has the advantages of high accuracy, difficulty in being modified, and convenient extraction, whether the terminal device is further improved. The ability to use the network sharing function is reduced, and the complexity of the network sharing detection device is reduced.
实施例七  Example 7
图 7为本发明网络共享检测方法实施例七的流程图, 本实施例在实施例 六的基础上, 在该网络共享检测设备获取该数据流的实际路由跳数之前, 还 包括: 该网络共享检测设备从该数据流的数据包中获取终端设备标识信息; 该网络共享检测设备根据该终端设备标识信息从数据库中查询获取该终端 设备的初始生命周期值。 如图 5所示, 上述方案可选按照如下流程操作: FIG. 7 is a flowchart of Embodiment 7 of a network sharing detection method according to the present invention. On the basis of Embodiment 6, before the network sharing detection device acquires the actual number of hops of the data stream, the network sharing detection device further includes: The detecting device obtains the terminal device identification information from the data packet of the data stream; the network sharing detecting device queries the database to obtain an initial life cycle value of the terminal device according to the terminal device identification information. As shown in Figure 5, the above solution can be selected as follows:
S 101、 网络共享检测设备接收终端设备发送的数据流。 S601、 该网络共享检测设备获取该数据流中数据包的当前生命周期值。 S701、该网络共享检测设备从该数据流的数据包中获取终端设备标识信 息。 S101. The network sharing detecting device receives the data stream sent by the terminal device. S601. The network sharing detection device acquires a current lifetime value of the data packet in the data stream. S701. The network sharing detecting device acquires terminal device identification information from the data packet of the data stream.
具体地, 该终端设备标识信息为该数据包中与终端设备——对应的如硬 件厂商信息或 OS信息等多种信息, 以保证不同的终端设备能够对应唯一的 初始 TTL值, 防止读取错误。  Specifically, the terminal device identification information is a plurality of information, such as hardware vendor information or OS information, corresponding to the terminal device in the data packet, so as to ensure that different terminal devices can correspond to a unique initial TTL value, thereby preventing a reading error. .
S702、该网络共享检测设备根据该终端设备标识信息从数据库中查询获 取该终端设备的初始生命周期值。  S702. The network sharing detecting device queries, according to the terminal device identification information, an initial life cycle value of the terminal device from the database.
具体地, 该数据库保存有与各类作为终端设备的电子设备的标识信息对 应的初始 TTL值, 该网络共享检测设备可以根据终端设备的标识信息从数 据库中读取与之对应的终端设备的初始 TTL值, 以备后续使用。  Specifically, the database stores an initial TTL value corresponding to the identification information of the electronic device as the terminal device, and the network sharing detection device can read the initial of the terminal device corresponding to the terminal device according to the identification information of the terminal device. TTL value for later use.
S602、该网络共享检测设备计算该当前生命周期值与该终端设备的初始 生命周期值之间的差值, 作为该实际路由跳数。  S602. The network sharing detection device calculates a difference between the current lifecycle value and an initial lifetime value of the terminal device as the actual route hop count.
5402、该网络共享检测设备获取该网络共享检测设备与该终端设备之间 的默认路由跳数, 该默认路由跳数为假设该终端设备自身建立数据业务通道 时与该网络共享检测设备之间的路由跳数。  5402. The network sharing detection device obtains a default route hop count between the network sharing detection device and the terminal device, where the default route hop count is assumed to be between the network device and the network sharing detection device when the terminal device establishes a data service channel. The number of route hops.
5403、该网络共享检测设备比较该数据流的实际路由跳数和该默认路由 跳数是否相同, 若不同, 则确定该终端设备应用了网络共享功能。  S403. The network sharing detecting device compares the actual number of hops of the data stream with the default number of hops of the default, and if different, determines that the terminal device applies the network sharing function.
本实施例,通过从该数据包中解析获取的终端设备标识信息在该数据库 中查询获取该终端设备的初始 TTL值, 提高了初始 TTL值的获取准确度, 保证了对终端设备是否使用网络共享功能识别的可靠性。  In this embodiment, the initial TTL value of the terminal device is obtained by querying the obtained terminal device identification information in the data packet, thereby improving the accuracy of obtaining the initial TTL value, and ensuring whether the terminal device uses the network sharing. Reliability of functional recognition.
实施例八  Example eight
图 8为本发明网络共享检测方法实施例八的流程图, 本实施例在实施例 一的基础上, 该网络共享检测设备接收终端设备发送的数据流, 包括: 网络 共享检测设备接收终端设备发送的两个以上的数据流; 该网络共享检测设备 获取该数据流的路由跳数信息, 包括: 该网络共享检测设备获取该两个以上 的数据流的当前生命周期值; 该网络共享检测设备根据该数据流的路由跳数 信息识别该终端设备是否应用了网络共享功能, 包括: 该网络共享检测设备 比较该两个以上的数据流的当前生命周期值是否不同, 若不同, 则确定该终 端设备应用了网络共享功能。 如图 8所示, 本实施例的方法可以包括:FIG. 8 is a flowchart of Embodiment 8 of the network sharing detection method of the present invention. On the basis of Embodiment 1, the network sharing detection device receives the data stream sent by the terminal device, and includes: the network sharing detection device receives the terminal device and sends the data packet. The network share detection device obtains the current life cycle value of the two or more data flows; the network share detection device is configured according to the route hop count information of the data flow, where the network share detection device acquires The route hop count information of the data stream identifies whether the terminal device applies the network sharing function, and the method includes: comparing, by the network share detecting device, whether current lifetime values of the two or more data streams are different, and if different, determining the end The end device applies the network sharing function. As shown in FIG. 8, the method in this embodiment may include:
5801、 网络共享检测设备接收终端设备发送的两个以上的数据流。 The network sharing detecting device receives two or more data streams sent by the terminal device.
本实施例 S801的具体实现与 S201的实现过程类似, 此处不再贅述。 The implementation of S801 is similar to the implementation process of S201, and details are not described herein again.
5802、 该网络共享检测设备获取该两个以上的数据流的当前生命周期 值。 5802. The network sharing detection device acquires a current lifecycle value of the two or more data streams.
具体地, 该 TTL值是 IP/TCP协议栈默认参数中的一个表征值, 表示该 数据包在被丟弃前最多能经过的路由网元个数, 当该数据包每经过一个路由 网元 TTL值减 1 , 当 TTL值为 0时, 路由网元丟弃该数据包。 对于不同的 终端设备, 其初始的 TTL值不同。  Specifically, the TTL value is a characterization value in the default parameter of the IP/TCP protocol stack, and indicates the maximum number of routing network elements that the data packet can pass before being discarded. When the data packet passes through a routing network element TTL The value is decremented by 1. When the TTL value is 0, the routing network element discards the data packet. The initial TTL values are different for different terminal devices.
S803、该网络共享检测设备比较该两个以上的数据流的当前生命周期值 是否不同, 若不同, 则确定该终端设备应用了网络共享功能。  S803. The network sharing detecting device compares whether the current lifetime values of the two or more data streams are different. If different, determining that the terminal device applies the network sharing function.
具体地, 在一次 PDP 激活中, 该网络共享检测设备对该两个以上的数 据流的当前 TTL值进行比较, 若不同, 则确定该终端设备应用了网络共享 功能。  Specifically, in a PDP activation, the network sharing detecting device compares current TTL values of the two or more data streams, and if not, determines that the terminal device applies the network sharing function.
本实施例, 由于当前 TTL值作为该路由跳数信息可以直接从数据包中 的提取, 不需要相应的计算, 只需要对不同 IP流中的当前 TTL值进行比较, 能够快速判断出终端设备是否使用了网络共享功能,提高了识别效率。同时, 在上述实施例中, 如果初始 TTL值无法获取到, 那么也可以通过当前 TTL 值直接对终端设备是否使用网络共享功能进行快速识别, 如果在一次 PDP 激活中, 网络共享检测设备检测到不同数据流中存在不同的当前 TTL值, 则表明终端设备使用了网络共享功能。  In this embodiment, the current TTL value can be directly extracted from the data packet as the hop count information, and no corresponding calculation is needed. Only the current TTL values in different IP flows need to be compared, and the terminal device can be quickly determined whether the terminal device is The use of network sharing features has improved recognition efficiency. In the above embodiment, if the initial TTL value cannot be obtained, the current shared TTL value can be used to directly identify whether the terminal device uses the network sharing function. If the PDP activation occurs, the network sharing detection device detects different. If there are different current TTL values in the data stream, it indicates that the terminal device uses the network sharing function.
实施例 9  Example 9
图 9为本发明网络共享检测方法实施例九的流程图, 本实施例在上述实 施例的基石出上, 在确定该终端设备应用了网络共享功能的步骤之后, 还包括 下述步骤之一或者组合: 该网络共享检测设备根据识别结果, 对该终端设备 发送的该数据流进行计费控制、 带宽控制、 阻断控制和提醒控制之一或者任 意组合; 或该网络共享检测设备根据终端设备的数据流发送情况, 输出信息 报表。 如图 9所示, 以在实施例一的基 上为例说明, 本实施例的方法可以 按照如下步骤进行: S 101、 网络共享检测设备接收终端设备发送的数据流。 FIG. 9 is a flowchart of Embodiment 9 of the network sharing detection method of the present invention. In this embodiment, after determining that the terminal device applies the network sharing function, the method further includes one of the following steps or Combination: the network sharing detecting device performs one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data stream sent by the terminal device according to the identification result; or the network sharing detecting device is configured according to the terminal device The data stream is sent, and the information report is output. As shown in FIG. 9, the method in the first embodiment is taken as an example. The method in this embodiment can be performed as follows: S101. The network sharing detecting device receives the data stream sent by the terminal device.
5102、 该网络共享检测设备获取该数据流的路由跳数信息。  5102. The network sharing detection device acquires route hop count information of the data flow.
5103、该网络共享检测设备根据该数据流的路由跳数信息识别该终端设 备是否应用了网络共享功能。  5103. The network sharing detection device identifies, according to the route hop count information of the data flow, whether the terminal device applies the network sharing function.
S901、 该网络共享检测设备根据识别结果, 对该终端设备发送的该数据 流进行计费控制、 带宽控制、 阻断控制和提醒控制之一或者任意组合。  S901. The network sharing detecting device performs one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data stream sent by the terminal device according to the identification result.
该网络共享检测设备根据前述识别该终端设备是否使用网络共享功能 的结果, 可以针对该终端设备发送的数据流按照预设控制策略进行下述控制 功能之一或者任意组合: 计费控制、 带宽控制、 阻断控制或者提醒控制。  The network sharing detecting device may perform one or any combination of the following control functions according to the preset control policy according to the foregoing method for identifying whether the terminal device uses the network sharing function: charging control, bandwidth control , block control or reminder control.
例如, 该控制策略可以采用计费控制, 可以针对宿主设备流量和非宿主 设备流量分别进行计费, 包括流量计费、 时长计费, 如可以进行包月 /包天 / 包周等的计费, 也可同时进行流量和时长计费。  For example, the control policy may adopt charging control, and may separately charge for the host device traffic and the non-host device traffic, including the flow rate, the duration, and the billing, such as the monthly/package/package week. Traffic and duration accounting can also be performed simultaneously.
例如, 该控制策略也可采用带宽控制, 可以针对宿主设备流量和非宿主 设备流量分别进行带宽控制, 如对宿主设备提供较大的最高允许带宽, 对非 宿主设备采用较小的最高允许带宽, 以减轻网络的负载度。  For example, the control strategy may also use bandwidth control to perform bandwidth control for the host device traffic and the non-homed device traffic separately, such as providing a larger maximum allowable bandwidth for the host device and a smaller maximum allowable bandwidth for the non-host device. To reduce the load on the network.
例如, 该控制策略也可采用阻断控制, 可以针对宿主设备流量和非宿主 设备流量采用不同方式进行阻断控制。 如可以只阻断非宿主设备流量, 也可 以只阻断宿主设备流量, 也可以同时阻断宿主设备和非宿主设备的流量, 以 减轻网络的负载度。 具体的, 该阻断控制可以进一步基于前述的带宽控制, 例如对非宿主设备超过最高允许带宽的流量进行阻断。  For example, the control strategy can also use blocking control, which can be controlled in different ways for host device traffic and non-host device traffic. If you can only block non-host device traffic, you can also block only the host device traffic, or block both host device and non-host device traffic to reduce network load. Specifically, the blocking control may be further based on the foregoing bandwidth control, for example, blocking the traffic of the non-host device exceeding the maximum allowed bandwidth.
例如, 该控制策略也可采用提醒控制, 当检测到终端设备采用的网络共 享技术后, 可以针对性的对该终端设备发送实时的提醒信息。 具体地, 该提 醒控制可以不区分该终端设备是宿主设备还是非宿主设备 ,也可以仅针对宿 主设备或者非宿主设备。发送提醒信息的过程可以采用短信或者基于超文本 传送协议( Hypertext Transport Protocol , HTTP )。 提醒信息的具体内容可以 为: 例如, 提醒用户订购网络共享业务套餐以便继续使用网络共享业务, 否 则网络共享将被阻断, 等等。  For example, the control policy may also adopt a reminder control. After detecting the network sharing technology adopted by the terminal device, the real-time reminding information may be sent to the terminal device in a targeted manner. Specifically, the alerting control may not distinguish whether the terminal device is a host device or a non-host device, or may be only for a host device or a non-host device. The process of sending reminders can be by SMS or Hypertext Transport Protocol (HTTP). The specific content of the reminder information can be: For example, remind the user to subscribe to the network sharing service package in order to continue to use the network sharing service, otherwise the network sharing will be blocked, and so on.
本领域技术人员可以理解, 上述控制策略可以单独使用, 也可以在不产 生技术矛盾的情况下可以进行任意的组合。 S902、 该网络共享检测设备根据终端设备的数据流发送情况, 输出信息 报表。 Those skilled in the art can understand that the above control strategies can be used alone or in any combination without causing technical conflicts. S902. The network sharing detection device outputs a report of the information according to the data flow of the terminal device.
具体地, 网络共享检测设备可以输出各类信息报表, 如: 网络共享流量 报表、 网络共享用户报表、 TOP-N的网络共享用户报表等。 通过上述信息报 表, 可以在网络管理过程中对网络共享进行可视化管理, 降低了通信网络管 理的复杂度。  Specifically, the network sharing detecting device can output various types of information reports, such as: a network shared traffic report, a network shared user report, and a TOP-N network shared user report. Through the above information report, network sharing can be visually managed in the network management process, which reduces the complexity of communication network management.
本领域技术人员可以理解, 对于 S901和 S902, 可以分别实施, 也可以 在上述 S901处理控制的基石出上执行 S902输出信息报表,从而进一步实现对 网络共享的精确管理, 提高对通信网络的管理控制能力。  It can be understood by those skilled in the art that, for S901 and S902, the S902 output information report may be separately implemented on the cornerstone of the S901 processing control, thereby further implementing accurate management of network sharing and improving management control of the communication network. ability.
可选的,在上述实施例的基石出上,在确定该数据流为非宿主设备发起的, 或者, 确定该该数据流为宿主设备发起的的步骤之后, 还包括下述步骤之一 或者组合: 该网络共享检测设备根据识别结果, 分别对由宿主设备发起的数 据流, 或者非宿主设备发起的数据流, 进行计费控制、 带宽控制、 阻断控制 和提醒控制之一或者任意组合; 或该网络共享检测设备分别根据由宿主设备 或者非宿主设备发起的数据流的发送情况, 输出信息报表。  Optionally, after the step of determining that the data stream is initiated by the non-host device, or determining that the data stream is initiated by the host device, the method further includes one or a combination of the following steps. The network sharing detecting device performs one or any combination of charging control, bandwidth control, blocking control, and reminder control on the data flow initiated by the host device or the data flow initiated by the non-host device according to the recognition result; or The network sharing detecting device outputs a report of the information according to the sending status of the data stream initiated by the host device or the non-host device.
本实施例在识别该终端设备为宿主设备或非宿主设备的结果之后,针对 宿主设备和非宿主设备的进行不同的控制和信息报表输出,具体实现与 S901 和 S902的实现过程类似, 此处不再贅述。  After the result of identifying the terminal device as a host device or a non-host device, the present embodiment performs different control and information report output for the host device and the non-host device, and the implementation is similar to the implementation process of S901 and S902. Let me repeat.
实施例十  Example ten
图 10为本发明网络共享检测装置实施例一的结构示意图,如图 10所示, 本实施例的网络共享检测装置可以包括: 接收模块 101、 获取模块 102和识 别模块 103 , 其中, 该接收模块 101用于接收终端设备发送的数据流, 该获 取模块 102用于获取该数据流的路由跳数信息, 该识别模块 103用于根据该 数据流的路由跳数信息识别该终端设备是否应用了网络共享功能。  FIG. 10 is a schematic structural diagram of Embodiment 1 of a network sharing detection apparatus according to the present invention. As shown in FIG. 10, the network sharing detection apparatus of this embodiment may include: a receiving module 101, an obtaining module 102, and an identifying module 103, where the receiving module The receiving module 102 is configured to receive the routing hop information of the data stream, and the identifying module 103 is configured to identify, according to the routing hop information of the data stream, whether the terminal device applies the network. Sharing features.
本实施例的装置, 可以用于执行本发明实施例所提供的网络共享检测方 法实施例的技术方案, 其实现原理和技术效果类似, 此处不再贅述。  The device in this embodiment may be used to implement the technical solution of the network sharing detection method according to the embodiment of the present invention. The implementation principle and technical effects are similar, and details are not described herein again.
实施例十一  Embodiment 11
图 11为本发明网络共享检测装置实施例二的结构示意图,如图 11所示, 本实施例的装置在装置实施例一所示装置结构的基石出上, 进一步地, 该接收 模块 101包括: 第一接收单元 111 , 用于接收终端设备发送的两个以上的数 据流; 该获取模块 102包括: 第一获取单元 112, 用于获取该两个以上的数 据流的实际路由跳数, 该实际路由跳数为该数据流在通信网络中经过的路由 网元的数量; 该识别模块 103包括: 第一识别单元 113 , 用于比较该两个以 上的数据流的实际路由跳数是否不同, 若不同, 则确定该终端设备应用了网 络共享功能。 FIG. 11 is a schematic structural diagram of Embodiment 2 of a network sharing detecting apparatus according to the present invention. As shown in FIG. 11, the apparatus in this embodiment is on the basis of the apparatus structure shown in Embodiment 1 of the apparatus, and further, the receiving The module 101 includes: a first receiving unit 111, configured to receive two or more data streams sent by the terminal device; the acquiring module 102 includes: a first acquiring unit 112, configured to acquire an actual route hop of the two or more data streams The number of the actual route hops is the number of routing network elements that the data stream passes in the communication network; the identification module 103 includes: a first identifying unit 113, configured to compare the actual number of hops of the two or more data streams Whether it is different, if different, it is determined that the terminal device applies the network sharing function.
本实施例的网络共享检测装置, 可以用于执行本发明实施例所提供的网 络共享检测方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 贅述。  The network sharing detection device of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention. The implementation principle and technical effects are similar, and are not described herein again.
实施例十二  Example twelve
图 12为本发明网络共享检测装置实施例三的结构示意图,如图 12所示, 本实施例的装置在装置实施例二所示装置结构的基石出上,进一步地,还包括: 第一比较模块 121 , 用于比较该两个以上的数据流的实际路由跳数, 确定实 际路由跳数大的数据流为非宿主设备发起的, 实际路由跳数小的数据流为宿 主设备发起的。  12 is a schematic structural diagram of Embodiment 3 of a network sharing detecting apparatus according to the present invention. As shown in FIG. 12, the apparatus of this embodiment is based on the apparatus structure of the apparatus embodiment shown in Embodiment 2. Further, the method further includes: The module 121 is configured to compare the actual number of hops of the two or more data flows, and determine that the data flow with a large number of actual hops is initiated by the non-homed device, and the data flow with a small actual number of hops is initiated by the host device.
本实施例的网络共享检测装置, 可以用于执行本发明实施例所提供的网 络共享检测方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 贅述。  The network sharing detection device of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention. The implementation principle and technical effects are similar, and are not described herein again.
实施例十三  Example thirteen
图 13为本发明网络共享检测装置实施例四的结构示意图,如图 13所示, 本实施例的装置在装置实施例一所示装置结构的基石出上, 进一步地, 该获取 模块 102包括: 第二获取单元 131 , 用于获取该数据流的实际路由跳数, 该 实际路由跳数为该数据流在通信网络中经过的路由网元的数量; 该识别模块 103包括: 第三获取单元 132和第二识别单元 133 , 其中, 该第三获取单元 132用于获取该网络共享检测设备与该终端设备之间的默认路由跳数, 该默 认路由跳数为假设该终端设备自身建立数据业务通道时与该网络共享检测 设备之间的路由跳数; 该第二识别单元 133用于比较该数据流的实际路由跳 数和该默认路由跳数是否相同, 若不同, 则确定该终端设备应用了网络共享 功能。 本实施例的网络共享检测装置, 可以用于执行本发明实施例所提供的网 络共享检测方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 贅述。 FIG. 13 is a schematic structural diagram of Embodiment 4 of the network sharing detecting apparatus according to the present invention. As shown in FIG. 13, the apparatus in this embodiment is on the basis of the apparatus structure shown in the first embodiment of the apparatus. Further, the obtaining module 102 includes: The second obtaining unit 131 is configured to obtain the actual number of hops of the data stream, where the actual number of hops is the number of routing network elements that the data stream passes in the communication network. The identifying module 103 includes: a third acquiring unit 132. And a second identifying unit 133, wherein the third obtaining unit 132 is configured to obtain a default route hop count between the network sharing detecting device and the terminal device, where the default route hop count is assumed to be a data service channel established by the terminal device itself. Sharing the number of route hops between the detection device and the network; the second identification unit 133 is configured to compare whether the actual number of route hops of the data stream and the default route hop count are the same, and if different, determine that the terminal device is applied. Network sharing function. The network sharing detection apparatus of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention. The implementation principle and technical effects are similar, and details are not described herein again.
实施例十四  Embodiment 14
图 14为本发明网络共享检测装置实施例五的结构示意图,如图 14所示, 本实施例的装置在装置实施例四所示装置结构的基石出上,进一步地,还包括: 第二比较模块 141 , 用于比较该数据流的实际路由跳数是否大于该默认路由 跳数, 若是, 则确定该数据流为非宿主设备发起的, 若否, 则确定该数据流 为宿主设备发起的。  FIG. 14 is a schematic structural diagram of Embodiment 5 of the network sharing detecting apparatus of the present invention. As shown in FIG. 14, the apparatus of this embodiment is based on the basis of the apparatus structure shown in Embodiment 4 of the apparatus, and further includes: The module 141 is configured to compare whether the actual route hop count of the data stream is greater than the default route hop count, and if yes, determine that the data stream is initiated by the non-host device, and if not, determine that the data stream is initiated by the host device.
本实施例的网络共享检测装置, 可以用于执行本发明实施例所提供的网 络共享检测方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 贅述。  The network sharing detection device of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention. The implementation principle and technical effects are similar, and are not described herein again.
实施例十五  Example fifteen
图 15为本发明网络共享检测装置实施例六的结构示意图,如图 15所示, 本实施例的装置在装置实施例四所示装置结构的基石出上, 进一步地, 该第二 获取单元 131还包括: 第一获取子单元 151和计算子单元 152, 其中, 该第 一获取子单元 151用于获取该数据流中数据包的当前生命周期值; 该计算子 单元 152用于计算该当前生命周期值与该终端设备的初始生命周期值之间的 差值, 作为该实际路由跳数。  FIG. 15 is a schematic structural diagram of Embodiment 6 of the network sharing detecting apparatus according to the present invention. As shown in FIG. 15, the apparatus in this embodiment is on the basis of the apparatus structure shown in Embodiment 4 of the apparatus, and further, the second acquiring unit 131 The method further includes: a first obtaining subunit 151 and a calculating subunit 152, wherein the first obtaining subunit 151 is configured to obtain a current lifecycle value of the data packet in the data stream; the calculating subunit 152 is configured to calculate the current life The difference between the period value and the initial lifetime value of the terminal device is taken as the actual number of hops of the route.
本实施例的网络共享检测装置, 可以用于执行本发明实施例所提供的网 络共享检测方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 贅述。  The network sharing detection device of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention. The implementation principle and technical effects are similar, and are not described herein again.
实施例十六  Example sixteen
图 16为本发明网络共享检测装置实施例七的结构示意图,如图 16所示, 本实施例的装置在装置实施例六所示装置结构的基石出上, 进一步地, 该第二 获取单元 131还包括: 第二获取子单元 161和查询子单元 162, 其中, 该第 二获取子单元 161用于在获取所述数据流的实际路由跳数之前,从该数据流 的数据包中获取终端设备标识信息, 该查询子单元 162根据该终端设备标识 信息从数据库中查询获取该终端设备的初始生命周期值。 本实施例的网络共享检测装置, 可以用于执行本发明实施例所提供的网 络共享检测方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 贅述。 FIG. 16 is a schematic structural diagram of Embodiment 7 of the network sharing detecting apparatus according to the present invention. As shown in FIG. 16, the apparatus in this embodiment is on the basis of the apparatus structure shown in Embodiment 6 of the apparatus, and further, the second acquiring unit 131 The method further includes: a second obtaining subunit 161 and a query subunit 162, wherein the second obtaining subunit 161 is configured to obtain a terminal device from the data packet of the data stream before acquiring the actual routing hop count of the data stream. Identification information, the query sub-unit 162 queries and obtains an initial lifetime value of the terminal device from the database according to the terminal device identification information. The network sharing detection apparatus of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention. The implementation principle and technical effects are similar, and details are not described herein again.
实施例十七  Example seventeen
图 17为本发明网络共享检测装置实施例八的结构示意图,如图 16所示, 本实施例的装置在装置实施例一所示装置结构的基石出上, 进一步地, 该接收 模块 101包括: 第二接收单元 171 , 用于接收终端设备发送的两个以上的数 据流; 该获取模块 102包括: 第四获取单元 172, 用于获取该两个以上的数 据流的当前生命周期值; 该识别模块 103包括: 第三识别单元 173 , 用于比 较该两个以上的数据流的当前生命周期值是否不同, 若不同, 则确定该终端 设备应用了网络共享功能。  FIG. 17 is a schematic structural diagram of Embodiment 8 of the network sharing detecting apparatus according to the present invention. As shown in FIG. 16, the apparatus in this embodiment is in the cornerstone of the apparatus structure shown in Embodiment 1 of the apparatus. Further, the receiving module 101 includes: The second receiving unit 171 is configured to receive two or more data streams that are sent by the terminal device. The acquiring module 102 includes: a fourth acquiring unit 172, configured to acquire current life cycle values of the two or more data streams; The module 103 includes: a third identifying unit 173, configured to compare whether current lifetime values of the two or more data streams are different, and if different, determine that the terminal device applies a network sharing function.
本实施例的网络共享检测装置, 可以用于执行本发明实施例所提供的网 络共享检测方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 贅述。  The network sharing detection device of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention. The implementation principle and technical effects are similar, and are not described herein again.
实施例十八  Example 18
图 18为本发明网络共享检测装置实施例九的结构示意图,如图 18所示, 本实施例的装置在装置实施例一所示装置结构的基石出上,进一步地,还包括: 第一控制模块 181和第一输出模块 182, 其中, 该第一控制模块 181用于根 据识别结果, 对该终端设备发送的该数据流进行计费控制、 带宽控制、 阻断 控制和提醒控制之一或者任意组合, 该第一输出模块 182用于根据终端设备 的数据流发送情况, 输出信息报表。  FIG. 18 is a schematic structural diagram of Embodiment 9 of the network sharing detecting apparatus of the present invention. As shown in FIG. 18, the apparatus of this embodiment is based on the apparatus structure of the apparatus embodiment shown in the first embodiment of the apparatus, and further includes: The module 181 and the first output module 182, wherein the first control module 181 is configured to perform one or any of charging control, bandwidth control, blocking control, and reminder control on the data stream sent by the terminal device according to the recognition result. In combination, the first output module 182 is configured to output a report of the information according to the data flow of the terminal device.
本实施例的网络共享检测装置, 可以用于执行本发明实施例所提供的网 络共享检测方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 贅述。  The network sharing detection device of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention. The implementation principle and technical effects are similar, and are not described herein again.
可选地, 图 19为本发明网络共享检测装置实施例九的另一结构示意图, 如图 19所示, 本实施例的装置在上述装置实施例三所示装置结构的基础上, 进一步地, 还包括: 第二控制模块 191和第二输出模块 192, 其中, 该第二 控制模块 191用于根据识别结果, 分别对由宿主设备发起的数据流, 或者非 宿主设备发起的数据流, 进行计费控制、 带宽控制、 阻断控制和提醒控制之 一或者任意组合, 该第二输出模块 192用于分别根据由宿主设备或者非宿主 设备发起的数据流的发送情况, 输出信息报表。 本实施例的网络共享检测装 置, 可以用于执行本发明实施例所提供的网络共享检测方法实施例的技术方 案, 其实现原理和技术效果类似, 此处不再贅述。 Optionally, FIG. 19 is another schematic structural diagram of Embodiment 9 of the network sharing detection apparatus according to the present invention. As shown in FIG. 19, the apparatus of this embodiment is based on the apparatus structure shown in Embodiment 3 of the apparatus, and further, The second control module 191 is further configured to: perform, according to the identification result, a data flow initiated by the host device or a data flow initiated by the non-host device, according to the identification result. Charge control, bandwidth control, blocking control and reminder control In one or any combination, the second output module 192 is configured to output an information report according to the sending status of the data stream initiated by the host device or the non-host device. The network sharing detection apparatus of this embodiment may be used to perform the technical solution of the network sharing detection method provided by the embodiment of the present invention. The implementation principle and technical effects are similar, and details are not described herein again.
实施例十九  Example 19
图 20为本发明网络共享检测设备实施例的工作原理示意图, 本实施例 的网络共享检测设备包括本发明任意实施例所提供的网络共享检测装置; 该 网络共享检测设备集成在网络接入服务器( Network Access Server, NAS ) 或互联网网关设备中, 或设置在 NAS设备与互联网之间。  FIG. 20 is a schematic diagram of the working principle of the network sharing detecting device of the present invention. The network sharing detecting device of this embodiment includes the network sharing detecting device provided by any embodiment of the present invention; the network sharing detecting device is integrated in the network access server ( Network Access Server, NAS) or Internet gateway device, or set between the NAS device and the Internet.
本实施例以网络共享检测设备集成于 NAS设备中为例进行说明, 如图 In this embodiment, the network sharing detection device is integrated into the NAS device as an example, as shown in the figure.
20所示, 网络共享检测设备 201集成于 NSA设备 202中, 设置于宿主设备 204和互联网 203之间。 第一非宿主设备 205、 第二非宿主设备 206和第三 非宿主设备 207通过 Wifi、 蓝牙、 USB等与宿主设备 204实现网络共享。 其 中, 非宿主设备可以为一个或多个。 As shown at 20, the network share detecting device 201 is integrated in the NSA device 202 and disposed between the host device 204 and the Internet 203. The first non-homed device 205, the second non-homed device 206, and the third non-homed device 207 implement network sharing with the host device 204 via Wifi, Bluetooth, USB, and the like. Among them, the non-host devices may be one or more.
其对应地, 本实施例的网络共享检测设备可以执行本发明任意实施例所 提供的网络共享检测方法的技术方案, 其实现原理和技术效果类似, 此处不 再赘述。  Correspondingly, the network sharing detection device of this embodiment may perform the technical solution of the network sharing detection method provided by any embodiment of the present invention, and the implementation principle and technical effects thereof are similar, and details are not described herein.
参考图 21 ,提供了一种可以实现前述各方法的控制业务传输的系统的结 构示意图。 控制业务传输的系统包括至少一个处理器 1001 , 例如 CPU, 至 少一个网络接口 1004或者其他用户接口 1003 , 存储器 1005 , 和至少一个通 信总线 1002。 通信总线 1002用于实现前述装置之间的连接通信。 该控制业 务传输的系统可选的包含用户接口 1003 , 例如显示器, 键盘或者点击设备。 存储器 1005 可能包含高速 Ram存储器, 也可能还包括非不稳定的存储器 ( non-volatile memory ), 例如至少一个磁盘存储器。 存储器 1005可选的可 以包含至少一个位于远离前述 CPU1001 的存储装置。 在一些实施方式中, 存储器 1005存储了如下的元素, 模块或者数据结构, 或者他们的子集, 或 者他们的扩展集:  Referring to Figure 21, there is provided a block diagram of a system for implementing control traffic transmission for each of the foregoing methods. The system for controlling traffic transmission includes at least one processor 1001, such as a CPU, at least one network interface 1004 or other user interface 1003, memory 1005, and at least one communication bus 1002. Communication bus 1002 is used to implement connection communication between the aforementioned devices. The system for controlling service transmission optionally includes a user interface 1003, such as a display, a keyboard or a pointing device. The memory 1005 may include a high speed RAM memory, and may also include a non-volatile memory such as at least one disk memory. The memory 1005 can optionally include at least one storage device located remotely from the aforementioned CPU 1001. In some embodiments, memory 1005 stores the following elements, modules or data structures, or a subset thereof, or their extension set:
操作系统 1006, 包含各种程序,用于实现各种基础业务以及处理基于硬 件的任务; 接收模块 101、 获取模块 102和识别模块 103 , 其中, 该接收模块 101 用于接收终端设备发送的数据流, 该获取模块 102用于获取该数据流的路由 跳数信息, 该识别模块 103用于根据该数据流的路由跳数信息识别该终端设 备是否应用了网络共享功能。较优的,前述模块的工作原理,可以参考图 1-10 所示方法中的具体介绍, 在此不再贅述。 相应的, 也可以参考图 11-20, 在 上述模块的基础上对各模块进行扩展, 在此不再贅述。 An operating system 1006, including various programs for implementing various basic services and processing hardware-based tasks; The receiving module 101, the obtaining module 102, and the identifying module 103, wherein the receiving module 101 is configured to receive a data stream sent by the terminal device, where the acquiring module 102 is configured to obtain routing hop information of the data stream, and the identifying module 103 is configured to: And determining, according to the route hop count information of the data flow, whether the terminal device applies the network sharing function. For a better description of the working principle of the foregoing module, refer to the specific description in the method shown in Figure 1-10, and details are not described herein. Correspondingly, reference may also be made to FIG. 11-20, and the modules are extended on the basis of the above modules, and details are not described herein again.
应理解, 在本发明的各种实施例中, 上述各过程的序号的大小并不意味 着执行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不应 对本发明实施例的实施过程构成任何限定。  It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结 合来实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特 法来实现所描述的功能, 但是这种实现不应认为超出本发明的范围。  Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in a combination of electronic hardware or computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specifics of the technical solutions to achieve the described functions, but such implementations are not considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描 述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再贅述。  A person skilled in the art can clearly understand that the specific working process of the system, the device and the unit described above can be referred to the corresponding process in the foregoing method embodiments for the convenience and brevity of the description, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 该单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以 有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系 统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的 耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合或 通信连接, 可以是电性, 机械或其它的形式。  In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integration into another system, or some features can be ignored, or not executed. In addition, the 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 electrical, mechanical or otherwise.
该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为 单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或 者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者 全部单元来实现本实施例方案的目的。  The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一 个单元中。 In addition, each functional unit in various embodiments of the present invention may be integrated into one processing unit In addition, each unit may exist physically separately, or two or more units may be integrated into one unit.
该功能如果以软件功能单元的形式实现并作为独立的产品销售或使用 时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的 技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分 可以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介质 中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例该方法的全部或部分步骤。 而前述 的存储介质包括: U盘、移动硬盘、只读存储器(ROM, Read-Only Memory )、 随机存取存储器 ( RAM, Random Access Memory ), 磁碟或者光盘等各种可 以存储程序代码的介质。  This feature, if implemented as a software functional unit and sold or used as a standalone product, can be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method in accordance with 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, which can store program codes. .
以上该, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想 到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范 围应以该权利要求的保护范围为准。  The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. It is intended to be covered by the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修 改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要 求 Rights request
1、 一种网络共享检测方法, 其特征在于, 包括: 1. A network sharing detection method, characterized by including:
网络共享检测设备接收终端设备发送的数据流; The network sharing detection device receives the data stream sent by the terminal device;
所述网络共享检测设备获取所述数据流的路由跳数信息; The network sharing detection device obtains the routing hop count information of the data flow;
所述网络共享检测设备根据所述数据流的路由跳数信息识别所述终端 设备是否应用了网络共享功能。 The network sharing detection device identifies whether the network sharing function is applied to the terminal device according to the routing hop count information of the data flow.
2、 根据权利要求 1所述的网络共享检测方法, 其特征在于, 2. The network sharing detection method according to claim 1, characterized in that,
所述网络共享检测设备接收终端设备发送的数据流, 包括: The network sharing detection device receives the data stream sent by the terminal device, including:
网络共享检测设备接收终端设备发送的两个以上的数据流; The network sharing detection device receives more than two data streams sent by the terminal device;
所述网络共享检测设备获取所述数据流的路由跳数信息, 包括: 所述网络共享检测设备分别获取所述两个以上的数据流的实际路由跳 数, 所述实际路由跳数为所述数据流在通信网络中经过的路由网元的数量; 所述网络共享检测设备根据所述数据流的路由跳数信息识别所述终端 设备是否使用网络共享功能, 包括: The network sharing detection device obtains the routing hop count information of the data flow, including: the network sharing detection device obtains the actual routing hop count of the two or more data flows respectively, and the actual routing hop count is the The number of routing network elements that the data flow passes through in the communication network; the network sharing detection device identifies whether the terminal device uses the network sharing function based on the routing hop count information of the data flow, including:
所述网络共享检测设备比较所述两个以上的数据流的实际路由跳数是 否不同, 若不同, 则确定所述终端设备应用了网络共享功能。 The network sharing detection device compares whether the actual routing hop numbers of the two or more data flows are different. If they are different, it is determined that the network sharing function is applied to the terminal device.
3、 根据权利要求 2所述的网络共享检测方法, 其特征在于, 所述确定 所述终端设备应用了网络共享功能之后, 还包括: 3. The network sharing detection method according to claim 2, characterized in that, after determining that the terminal device has applied the network sharing function, it further includes:
所述网络共享检测设备比较所述两个以上的数据流的实际路由跳数, 确 定实际路由跳数大的数据流为非宿主设备发起的, 实际路由跳数小的数据流 为宿主设备发起的。 The network sharing detection device compares the actual routing hop counts of the two or more data flows, and determines that the data flow with a larger actual routing hop count is initiated by the non-host device, and the data flow with a smaller actual routing hop count is initiated by the host device. .
4、 根据权利要求 1所述的网络共享检测方法, 其特征在于, 4. The network sharing detection method according to claim 1, characterized in that,
所述网络共享检测设备获取所述数据流的路由跳数信息, 包括: 所述网络共享检测设备获取所述数据流的实际路由跳数, 所述实际路由 跳数为所述数据流在通信网络中经过的路由网元的数量; The network sharing detection device obtains the routing hop number information of the data flow, including: the network sharing detection device acquires the actual routing hop number of the data flow, and the actual routing hop number is the number of routing hops of the data flow in the communication network The number of routing network elements passed through;
所述网络共享检测设备根据所述数据流的路由跳数信息识别所述终端 设备是否应用了网络共享功能, 包括: The network sharing detection device identifies whether the terminal device has applied the network sharing function based on the routing hop count information of the data flow, including:
所述网络共享检测设备获取所述网络共享检测设备与所述终端设备之 间的默认路由跳数, 所述默认路由跳数为假设所述终端设备自身建立数据业 务通道时与所述网络共享检测设备之间的路由跳数; The network sharing detection device obtains the default route hop number between the network sharing detection device and the terminal device. The default route hop number is assuming that the terminal device itself establishes a data service. The number of routing hops between the service channel and the network sharing detection device;
所述网络共享检测设备比较所述数据流的实际路由跳数和所述默认路 由跳数是否相同, 若不同, 则确定所述终端设备应用了网络共享功能。 The network sharing detection device compares the actual routing hop number of the data flow and the default routing hop number to see whether they are the same. If they are different, it is determined that the network sharing function is applied to the terminal device.
5、 根据权利要求 4所述的网络共享检测方法, 其特征在于, 所述确定 所述终端设备应用了网络共享功能之后, 还包括: 5. The network sharing detection method according to claim 4, characterized in that, after determining that the terminal device has applied the network sharing function, it further includes:
所述网络共享检测设备比较所述数据流的实际路由跳数是否大于所述 默认路由跳数, 若是, 则确定所述数据流为非宿主设备发起的, 若否, 则确 定所述数据流为宿主设备发起的。 The network sharing detection device compares whether the actual routing hop count of the data flow is greater than the default routing hop count. If so, determines that the data flow is initiated by a non-host device. If not, determines that the data flow is initiated by a non-host device. Initiated by the host device.
6、 根据权利要求 2-5 任一所述的网络共享检测方法, 其特征在于, 所 述实际路由跳数为所述数据流的当前生命周期值与所述终端设备的初始生 命周期值之间的差值。 6. The network sharing detection method according to any one of claims 2 to 5, characterized in that the actual routing hop number is between the current life cycle value of the data flow and the initial life cycle value of the terminal device. difference.
7、 根据权利要求 6所述的网络共享检测方法, 其特征在于, 在所述网 络共享检测设备获取所述数据流的实际路由跳数之前, 还包括: 7. The network sharing detection method according to claim 6, characterized in that, before the network sharing detection device obtains the actual routing hop count of the data flow, it further includes:
所述网络共享检测设备从所述数据流的数据包中获取终端设备标识信 息; The network sharing detection device obtains terminal device identification information from the data packet of the data flow;
所述网络共享检测设备根据所述终端设备标识信息从数据库中查询获 取所述终端设备的初始生命周期值。 The network sharing detection device queries and obtains the initial life cycle value of the terminal device from the database according to the terminal device identification information.
8、 根据权利要求 1所述的网络共享检测方法, 其特征在于, 8. The network sharing detection method according to claim 1, characterized in that,
所述网络共享检测设备接收终端设备发送的数据流, 包括: The network sharing detection device receives the data stream sent by the terminal device, including:
网络共享检测设备接收终端设备发送的两个以上的数据流; The network sharing detection device receives more than two data streams sent by the terminal device;
所述网络共享检测设备获取所述数据流的路由跳数信息, 包括: 所述网络共享检测设备获取所述两个以上的数据流的当前生命周期值; 所述网络共享检测设备根据所述数据流的路由跳数信息识别所述终端 设备是否应用了网络共享功能, 包括: The network sharing detection device obtains the routing hop count information of the data flow, including: the network sharing detection device obtains the current life cycle value of the two or more data flows; the network sharing detection device obtains the current life cycle value of the data flow according to the data The routing hop count information of the flow identifies whether the network sharing function is applied to the terminal device, including:
所述网络共享检测设备比较所述两个以上的数据流的当前生命周期值 是否不同, 若不同, 则确定所述终端设备应用了网络共享功能。 The network sharing detection device compares whether the current life cycle values of the two or more data streams are different. If they are different, it is determined that the network sharing function is applied to the terminal device.
9、 根据权利要求 1、 2、 4和 8任一所述的网络共享检测方法, 其特征 在于, 在确定所述终端设备应用了网络共享功能的步骤之后, 还包括下述步 骤之一或者组合: 所述网络共享检测设备根据识别结果, 对所述终端设备发送的所述数据 流进行计费控制、 带宽控制、 阻断控制和提醒控制之一或者任意组合; 或 所述网络共享检测设备根据终端设备的数据流发送情况, 输出信息报 表。 9. The network sharing detection method according to any one of claims 1, 2, 4 and 8, characterized in that, after determining that the terminal device has applied the network sharing function, it further includes one or a combination of the following steps: : The network sharing detection device performs one or any combination of charging control, bandwidth control, blocking control and reminder control on the data stream sent by the terminal device based on the identification result; or the network sharing detection device performs one or any combination of charging control, bandwidth control, blocking control and reminder control based on the terminal device. The device's data stream sending status and output information report.
10、 根据权利要求 3或 5所述的网络共享检测方法, 其特征在于, 在确 定所述数据流为非宿主设备发起的, 或者, 确定所述数据流为宿主设备发起 的步骤之后, 还包括下述步骤之一或者组合: 10. The network sharing detection method according to claim 3 or 5, characterized in that, after determining that the data flow is initiated by a non-host device, or determining that the data flow is initiated by a host device, it further includes: One or a combination of the following steps:
所述网络共享检测设备根据识别结果, 分别对由宿主设备发起的数据 流, 或者非宿主设备发起的数据流, 进行计费控制、 带宽控制、 阻断控制和 提醒控制之一或者任意组合; 或 The network sharing detection device performs one or any combination of charging control, bandwidth control, blocking control and reminder control on the data flow initiated by the host device or the data flow initiated by the non-host device according to the identification result; or
所述网络共享检测设备分别根据由宿主设备或者非宿主设备发起的数 据流的发送情况, 输出信息才艮表。 The network sharing detection device outputs an information table according to the sending status of the data flow initiated by the host device or the non-host device respectively.
11、 一种网络共享检测装置, 其特征在于, 包括: 11. A network sharing detection device, characterized by including:
接收模块, 用于接收终端设备发送的数据流; The receiving module is used to receive the data stream sent by the terminal device;
获取模块, 用于获取所述数据流的路由跳数信息; An acquisition module, used to acquire the routing hop count information of the data flow;
识别模块, 用于根据所述数据流的路由跳数信息识别所述终端设备是否 应用了网络共享功能。 An identification module, configured to identify whether the terminal device has applied the network sharing function according to the routing hop count information of the data flow.
12、 根据权利要求 11所述的网络共享检测装置, 其特征在于, 所述接收模块包括: 12. The network sharing detection device according to claim 11, characterized in that the receiving module includes:
第一接收单元, 用于接收终端设备发送的两个以上的数据流; The first receiving unit is used to receive more than two data streams sent by the terminal device;
所述获取模块包括: The acquisition module includes:
第一获取单元, 用于获取所述两个以上的数据流的实际路由跳数, 所述 实际路由跳数为所述数据流在通信网络中经过的路由网元的数量; The first acquisition unit is used to obtain the actual routing hop count of the two or more data flows, where the actual routing hop count is the number of routing network elements that the data flow passes through in the communication network;
所述识别模块包括: The identification module includes:
第一识别单元, 用于比较所述两个以上的数据流的实际路由跳数是否不 同, 若不同, 则确定所述终端设备应用了网络共享功能。 The first identification unit is used to compare whether the actual routing hop numbers of the two or more data flows are different. If they are different, it is determined that the network sharing function is applied to the terminal device.
13、 根据权利要求 12所述的网络共享检测装置, 其特征在于, 还包括: 第一比较模块, 用于比较所述两个以上的数据流的实际路由跳数, 确定 实际路由跳数大的数据流为非宿主设备发起的, 实际路由跳数小的数据流为 宿主设备发起的。 13. The network sharing detection device according to claim 12, further comprising: a first comparison module, configured to compare the actual routing hop counts of the two or more data flows, and determine the one with the larger actual routing hop count. The data flow is initiated by a non-host device, and the actual routing hop count is Initiated by the host device.
14、 根据权利要求 11所述的网络共享检测装置, 其特征在于, 所述获取模块包括: 14. The network sharing detection device according to claim 11, characterized in that the acquisition module includes:
第二获取单元, 用于获取所述数据流的实际路由跳数, 所述实际路由跳 数为所述数据流在通信网络中经过的路由网元的数量; The second acquisition unit is used to obtain the actual routing hop count of the data flow, where the actual routing hop count is the number of routing network elements that the data flow passes through in the communication network;
所述识别模块包括: The identification module includes:
第三获取单元, 用于获取所述网络共享检测设备与所述终端设备之间的 默认路由跳数, 所述默认路由跳数为假设所述终端设备自身建立数据业务通 道时与所述网络共享检测设备之间的路由跳数; The third obtaining unit is used to obtain the default routing hop number between the network sharing detection device and the terminal device. The default routing hop number is assumed to be shared with the network when the terminal device itself establishes a data service channel. Detect the number of routing hops between devices;
第二识别单元, 用于比较所述数据流的实际路由跳数和所述默认路由跳 数是否相同, 若不同, 则确定所述终端设备应用了网络共享功能。 The second identification unit is used to compare whether the actual routing hop number of the data flow and the default routing hop number are the same. If they are different, it is determined that the network sharing function is applied to the terminal device.
15、 根据权利要求 14所述的网络共享检测装置, 其特征在于, 还包括: 第二比较模块, 用于比较所述数据流的实际路由跳数是否大于所述默认 路由跳数, 若是, 则确定所述数据流为非宿主设备发起的, 若否, 则确定所 述数据流为宿主设备发起的。 15. The network sharing detection device according to claim 14, further comprising: a second comparison module, used to compare whether the actual routing hop count of the data flow is greater than the default routing hop count, and if so, then It is determined that the data flow is initiated by a non-host device, and if not, it is determined that the data flow is initiated by a host device.
16、 根据权利要求 12-15任一所述的网络共享检测装置, 其特征在于, 所述实际路由跳数为所述数据流的当前生命周期值与所述终端设备的初始 生命周期值之间的差值。 16. The network sharing detection device according to any one of claims 12 to 15, characterized in that the actual routing hop number is between the current life cycle value of the data flow and the initial life cycle value of the terminal device. difference.
17、 根据权利要求 16所述的网络共享检测装置, 其特征在于, 还包括: 第二获取子单元, 用于在获取所述数据流的实际路由跳数之前, 从所述 数据流的数据包中获取终端设备标识信息; 17. The network sharing detection device according to claim 16, further comprising: a second acquisition subunit, configured to obtain the data packets from the data flow before acquiring the actual route hop count of the data flow. Obtain terminal device identification information;
查询子单元, 用于根据所述终端设备标识信息从数据库中查询获取所述 终端设备的初始生命周期值。 Query subunit, configured to query and obtain the initial life cycle value of the terminal device from the database according to the terminal device identification information.
18、 根据权利要求 11所述的网络共享检测装置, 其特征在于, 所述接收模块包括: 18. The network sharing detection device according to claim 11, characterized in that the receiving module includes:
第二接收单元, 用于接收终端设备发送的两个以上的数据流; The second receiving unit is used to receive more than two data streams sent by the terminal device;
所述获取模块包括: The acquisition module includes:
第四获取单元, 用于获取所述两个以上的数据流的当前生命周期值; 所述识别模块包括: 第三识别单元, 用于比较所述两个以上的数据流的当前生命周期值是否 不同, 若不同, 则确定所述终端设备应用了网络共享功能。 The fourth acquisition unit is used to acquire the current life cycle values of the two or more data streams; the identification module includes: The third identification unit is used to compare whether the current life cycle values of the two or more data streams are different. If they are different, it is determined that the network sharing function is applied to the terminal device.
19、 根据权利要求 11、 12、 14和 18任一所述的网络共享检测装置, 其 特征在于, 还包括下述模块之一或者组合: 19. The network sharing detection device according to any one of claims 11, 12, 14 and 18, further comprising one or a combination of the following modules:
第一控制模块, 用于根据识别结果, 对所述终端设备发送的所述数据流 进行计费控制、 带宽控制、 阻断控制和提醒控制之一或者任意组合; 或 The first control module is configured to perform one or any combination of charging control, bandwidth control, blocking control and reminder control on the data flow sent by the terminal device according to the identification result; or
第一输出模块, 用于根据终端设备的数据流发送情况, 输出信息报表。 The first output module is used to output information reports based on the data flow transmission status of the terminal device.
20、 根据权利要求 13或 15所述的网络共享检测装置, 其特征在于, 还 包括下述模块之一或者组合: 20. The network sharing detection device according to claim 13 or 15, further comprising one or a combination of the following modules:
第二控制模块, 用于根据识别结果, 分别对由宿主设备发起的数据流, 或者非宿主设备发起的数据流, 进行计费控制、 带宽控制、 阻断控制和提醒 控制之一或者任意组合; 或 The second control module is used to perform one or any combination of charging control, bandwidth control, blocking control and reminder control on the data flow initiated by the host device or the data flow initiated by the non-host device according to the identification result; or
第二输出模块, 用于分别根据由宿主设备或者非宿主设备发起的数据流 的发送情况, 输出信息才艮表。 The second output module is used to output the information table according to the sending status of the data flow initiated by the host device or the non-host device respectively.
21、 一种网络共享检测设备, 其特征在于, 包括权利要求 11-20任一所 述的网络共享检测装置; 所述网络共享检测设备集成在网络接入服务器或互 联网网关设备中, 或设置在网络接入服务器与互联网之间。 21. A network sharing detection device, characterized in that it includes the network sharing detection device according to any one of claims 11 to 20; the network sharing detection device is integrated in a network access server or an Internet gateway device, or is provided in Between the network access server and the Internet.
PCT/CN2014/070671 2013-02-08 2014-01-15 Network sharing detection method, apparatus and device WO2014121682A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310050658.9A CN103139015B (en) 2013-02-08 2013-02-08 Network shares detection method, device and equipment
CN201310050658.9 2013-02-08

Publications (1)

Publication Number Publication Date
WO2014121682A1 true WO2014121682A1 (en) 2014-08-14

Family

ID=48498352

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/070671 WO2014121682A1 (en) 2013-02-08 2014-01-15 Network sharing detection method, apparatus and device

Country Status (2)

Country Link
CN (1) CN103139015B (en)
WO (1) WO2014121682A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139015B (en) * 2013-02-08 2016-08-03 华为技术有限公司 Network shares detection method, device and equipment
WO2015061978A1 (en) * 2013-10-30 2015-05-07 华为技术有限公司 Management method and apparatus for network sharing
CN104702564A (en) * 2013-12-05 2015-06-10 华为技术有限公司 Tethering user identification method and device
CN105812148A (en) * 2014-12-30 2016-07-27 华为技术有限公司 Charging method, charging device and charging system
US10383091B2 (en) * 2015-05-01 2019-08-13 Marvell World Trade Ltd. Transmission opportunity ownership transfer and extension in a wireless local area network (WLAN)
CN106254375B (en) * 2016-09-05 2019-11-19 北京神州绿盟信息安全科技股份有限公司 A kind of recognition methods of hotspot equipment and device
CN108347359B (en) * 2018-01-30 2020-08-07 新浪网技术(中国)有限公司 Method and device for judging large Network Address Translation (NAT) outlet
CN111343034B (en) * 2018-12-19 2022-04-01 中国移动通信集团辽宁有限公司 Terminal hotspot opening identification method, device, equipment and storage medium
CN112020057B (en) * 2019-05-30 2023-04-07 中国电信股份有限公司 Method and system for identifying message
CN110418345B (en) * 2019-07-25 2022-08-19 天翼数字生活科技有限公司 Identity authentication method and device and computer equipment
CN112583649B (en) * 2019-09-27 2022-05-10 中国电信股份有限公司 Method and device for identifying mobile phone hot spots
CN113381968B (en) * 2020-03-09 2022-10-18 中国移动通信集团设计院有限公司 Broadband private connection prevention judgment method and device, electronic equipment and storage medium
CN113630782A (en) * 2021-08-09 2021-11-09 迈普通信技术股份有限公司 Wireless sharing detection method, device, system and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286894A (en) * 2008-05-07 2008-10-15 中国网络通信集团公司长沙市分公司 Detection and control method for illegal connection to IP network
CN102870445A (en) * 2012-06-20 2013-01-09 华为技术有限公司 Method, node, mobile terminal and system for identifying network sharing behavior
CN103139015A (en) * 2013-02-08 2013-06-05 华为技术有限公司 Method, device and equipment of network sharing detection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286894A (en) * 2008-05-07 2008-10-15 中国网络通信集团公司长沙市分公司 Detection and control method for illegal connection to IP network
CN102870445A (en) * 2012-06-20 2013-01-09 华为技术有限公司 Method, node, mobile terminal and system for identifying network sharing behavior
CN103139015A (en) * 2013-02-08 2013-06-05 华为技术有限公司 Method, device and equipment of network sharing detection

Also Published As

Publication number Publication date
CN103139015A (en) 2013-06-05
CN103139015B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
WO2014121682A1 (en) Network sharing detection method, apparatus and device
JP6568270B2 (en) Service tier southbound interface and quality of service
JP6687636B2 (en) Services-Efficient policy enforcement using network tokens for user plane approaches
WO2019192366A1 (en) Method and device for managing and controlling terminal ue
US10686854B2 (en) Streaming content using ad hoc networks of user devices
US9391846B2 (en) Policy formulating method, policy server, and gateway
JP2017098962A5 (en)
US8966078B2 (en) Method and apparatus for detecting tethering in a communications network
WO2012065500A1 (en) Service control method and system, evolved nodeb and packet data network gateway
WO2011137644A1 (en) Method, apparatus and system for accessing service by terminal
WO2013189044A1 (en) Method, node, mobile terminal and system for identifying network sharing behavior
KR20140119751A (en) Method and apparatus for performing charging control to application-layer data
WO2017113399A1 (en) Method and device for processing packets
WO2015192498A1 (en) Link information sending method and apparatus, and traffic control method and apparatus
WO2017148206A1 (en) Charging method and device
WO2017157314A1 (en) Interception method and apparatus based on local breakout
KR101999237B1 (en) Gateway, and method, computer program and storage means corresponding thereto
EP3089427B1 (en) Controlling data exchange between a mobile communication network and a data provider
JP2017063488A5 (en)
WO2014190517A1 (en) Data transmission control method and device based on wireless communication network
JP6828818B2 (en) Traffic optimizer, communication system, traffic optimization method and program
CN110166518B (en) Session information transmission method, device, storage medium and electronic device
WO2012088997A1 (en) Method and device for identification
US10715679B1 (en) System and method for detecting instances of missing data records in usage data records generated for wireless services
WO2014180277A1 (en) Access network information processing method and apparatus for terminal (ue), and pcrf

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: 14749677

Country of ref document: EP

Kind code of ref document: A1

WA Withdrawal of international application
NENP Non-entry into the national phase

Ref country code: DE