WO2020168768A1 - 移动网络接入类型识别 - Google Patents

移动网络接入类型识别 Download PDF

Info

Publication number
WO2020168768A1
WO2020168768A1 PCT/CN2019/120219 CN2019120219W WO2020168768A1 WO 2020168768 A1 WO2020168768 A1 WO 2020168768A1 CN 2019120219 W CN2019120219 W CN 2019120219W WO 2020168768 A1 WO2020168768 A1 WO 2020168768A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
network
mobile
address information
node
Prior art date
Application number
PCT/CN2019/120219
Other languages
English (en)
French (fr)
Inventor
王文超
段航
王程
孙翔
Original Assignee
北京三快在线科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京三快在线科技有限公司 filed Critical 北京三快在线科技有限公司
Publication of WO2020168768A1 publication Critical patent/WO2020168768A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Definitions

  • This application relates to the field of computer technology, in particular to the identification of mobile network access types.
  • Determining the type of network used by the client to access the server can better serve the client. For example, for a client that accesses the server through the 4G (the 4th generation) network, when the user is watching a video, it can provide the user with a compressed video data stream, or remind the user of the network status to avoid consuming a large amount of 4G on the client. Data Flow.
  • 4G the 4th generation
  • the MAC address (Media Access Control Address) is the unique identifier of the network device. Different manufacturers will independently select certain MAC address segments for network devices. Therefore, in the prior art, MAC segmentation is usually used to determine whether a client accessing a server accesses the network through a router or through a 4G signal of a mobile phone.
  • This application provides a method for identifying the mobile network access type, which helps to improve the accuracy of identifying the mobile network access type.
  • an embodiment of the present application provides a method for identifying a mobile network access type, including:
  • IP address information database includes IP address information of the mobile device
  • an embodiment of the present application provides a mobile network access type identification device, including:
  • An IP address information database acquisition module configured to acquire an IP address information database, where the IP address information database includes IP address information of the mobile device;
  • the network exit IP address acquisition module is used to acquire the network exit IP address of the device connected to the network;
  • the matching identification module is used to match the network exit IP address with the IP address information in the IP address information database, and determine whether the accessed network is a mobile device hotspot according to the matching result.
  • an embodiment of the present application also discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and the processor executes the computer program when the computer program is executed.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the steps of the method for identifying the mobile network access type disclosed in the embodiment of the present application are provided.
  • the mobile network access type identification method disclosed in the embodiment of the application obtains an IP address information database, which includes the IP address information of the mobile device; obtains the network egress IP address of the device connected to the network; The network exit IP address is matched with the IP address information in the IP address information database, and it is determined whether the accessed network is a mobile device hotspot according to the matching result. Based on the export IP address of the device and the huge mobile device IP address database, the accuracy of determining whether the hotspot accessed by the mobile device is a mobile device network can be improved.
  • FIG. 1 is a flowchart of a method for identifying a mobile network access type according to Embodiment 1 of the present application;
  • Fig. 2 is a flowchart of a method for identifying a mobile network access type according to a second embodiment of the present application
  • FIG. 3 is a schematic diagram of an IP address distribution binary tree constructed in Embodiment 2 of the present application.
  • FIG. 4 is one of the schematic structural diagrams of the mobile network access type identification device according to the second embodiment of the present application.
  • FIG. 5 is the second structural diagram of the mobile network access type identification device of the second embodiment of the present application.
  • Fig. 6 schematically shows a block diagram of an electronic device for executing the method according to the present application.
  • Fig. 7 schematically shows a storage unit for holding or carrying program codes for implementing the method according to the present application.
  • a method for identifying a mobile network access type disclosed in an embodiment of the present application, as shown in FIG. 1, includes: step 110 to step 130.
  • Step 110 Obtain an IP address information base, where the IP address information base includes IP address information of the mobile device.
  • positioning mobile terminals has become a basic function to improve user service quality.
  • the navigation client software when the user uses the navigation client software, combined with GPS (Global Positioning System) positioning data, the navigation client software uploads the location of the mobile terminal to the location via the mobile network (such as 3G and 4G networks) Server so that the positioning server can plan a route for the navigation client.
  • the mobile network such as 3G and 4G networks
  • the positioning server can plan a route for the navigation client.
  • a user uses an e-commerce platform client, he may connect to the e-commerce platform server through a mobile network (such as WiFi (Wireless Fidelity) or cell broadband) to obtain services provided by the e-commerce platform based on the current location.
  • WiFi Wireless Fidelity
  • cell broadband a mobile network
  • each piece of positioning data usually includes the network type of the user's mobile terminal accessing the network, and the exit IP address of the client accessing the server.
  • the network types include but are not limited to: 2G network, 3G network, 4G network, WiFi, and cell broadband.
  • the positioning data whose network type is a mobile terminal network is extracted for further analysis and processing to construct an IP address information database.
  • the step of obtaining an IP address information database includes: obtaining several pieces of device positioning data, each piece of device positioning data including: the network type of the device accessing the network and the IP of the device Address; construct an IP address information database according to the device location data of the mobile network in the device location data. For example, add the IP address in the location data of the 2G network, 3G network, and 4G network in the location data of the device to the IP address information database to construct the IP address information database.
  • Step 120 Obtain the network egress IP address of the device connected to the network.
  • the devices in the Internet are hierarchical.
  • the end user is at the bottom layer.
  • the data packets of the terminal need to be forwarded layer by layer, and finally transmitted to the public network by an export device, and then reach the target server.
  • the last export device has a public network IP address.
  • the target server can obtain the public IP address of the export device.
  • the user connects to the router at home through the mobile phone, then connects to the broadband of the residential area through the router at home, and finally visits the Meituan server.
  • the Meituan server can obtain the broadband outlet IP address of the cell in the user's access request. If the user accesses the network through the WiFi hotspot of another mobile phone and visits the Meituan server, Meituan will obtain the mobile network IP address of the other mobile phone connected to a 2G, 3G or 4G base station.
  • the network data uploaded by the client running on the equipment can obtain the network exit IP address of the equipment to access the network.
  • Step 130 Match the network exit IP address with the IP address information in the IP address information database, and determine whether the accessed network is a mobile device hotspot according to the matching result.
  • the server matches the obtained network exit IP address with the IP address in the pre-built IP address information database. If the match is successful, then the network contacted by the user is a mobile network, that is, the user is connected through a mobile device hotspot. Into the network. For example, the user accesses the network through the WiFi hotspot of another mobile phone. If the user accesses the network through the broadband of the residential area, when the obtained network exit IP address matches the IP address in the pre-built IP address information database, the matching will fail.
  • the mobile network access type identification method disclosed in the embodiment of the application obtains an IP address information database, which includes the IP address information of the mobile device; obtains the network egress IP address of the device connected to the network; The network exit IP address is matched with the IP address information in the IP address information database, and it is determined whether the accessed network is a mobile device hotspot according to the matching result.
  • a more comprehensive mobile network IP address can be obtained based on the location data, so that the constructed IP address information database covers a comprehensive mobile network
  • the device IP address thus, can realize the identification of the access network type based on the network exit IP address, which can improve the accuracy of determining whether the hotspot accessed by the mobile device is a mobile device network compared with the prior art.
  • An embodiment of the present application discloses a method for identifying a mobile network access type. As shown in FIG. 2, the method includes: step 210 to step 240.
  • Step 210 Obtain an IP address information base, where the IP address information base includes IP address information of the mobile device.
  • the positioning data whose network type is a mobile terminal network is extracted for further analysis and processing to construct an IP address information database.
  • the network type of the device positioning data is constructed
  • the step of the IP address information database includes: determining the IP address segment of the mobile device according to the device location data of the mobile network in the device location data; and constructing the IP address information database based on the IP address segment of the mobile device.
  • the IP address is composed of 4 groups of numbers, and the maximum value of each group of numbers is 255.
  • the subnet division is essentially based on the binary IP address. Due to network security and other considerations, IP allocation is usually carried out according to the mode of subnet division. For example, 172.16.1.0 and 172.16.1.25 can be considered as being in a subnet with a mask of 172.16.1.255. Therefore, when constructing the IP address information database, the IP address segment can be determined according to the acquired IP address of the mobile network access point, and then the IP address information database can be constructed based on the IP address segment.
  • the IP address information database constructed by this method includes the IP address segment corresponding to the mobile network hotspot.
  • the step of determining the IP address segment of the mobile device according to the device positioning data whose network type is a mobile network in the device positioning data includes: setting the network type in the device positioning data to The IP address in the device location data of the mobile network is converted into a binary IP address; an IP address distribution binary tree is constructed based on the binary IP address; wherein the leaf nodes of the binary tree correspond to different binary IP addresses, and the upper N of the leaf node Each node in the layer node corresponds to the corresponding IP address prefix and node weight; wherein, the IP address prefix is the first (32-N) binary bits of the leaf node, and the node weight is based on having the IP address prefix
  • the number of leaf nodes corresponding to the binary IP address of is determined, and N is an integer greater than or equal to 1, and the binary tree is traversed layer by layer from the upper node of each leaf node to determine the target node that meets the preset condition, where, The preset condition is: the node weight of the
  • an IP address represented by a 32-bit binary number can be obtained.
  • the binary IP address can be expressed as "00000001 00000001 00000001 00000001". According to this method, all the obtained IP addresses in the mobile network device location data are converted into binary IP addresses.
  • a 33-level binary tree is constructed, with the topmost root node and the bottommost leaf node.
  • the binary tree classification method is: if the binary value corresponding to this bit is 0, then the binary IP address is classified into the IP address set corresponding to the left subtree of the current node; If the binary value corresponding to this bit is 1, the binary IP address is classified into the IP address set corresponding to the right subtree of the current node. Then, the child nodes of the current node are further classified according to this classification method, until the binary IP address is classified into a certain leaf node of the binary tree.
  • the binary IP address when the binary IP address is classified into the IP address set corresponding to a certain side subtree of the current node, it can be classified into the binary IP of the side subtree through the subnode record of the current node corresponding to the subtree The number of addresses, and the longest prefix of the binary IP address classified into the side subtree. For example, after traversing and classifying several binary IP addresses through the binary tree, the binary tree as shown in Fig. 3 can be obtained.
  • the leaf nodes 301 and 302 respectively correspond to a binary IP address "00000000 000000000000” and "00000000 00000000 00000001"; the IP address prefix corresponding to the upper node 311 of the leaf node 301 is "00000000 000000000000” 0000000", the number of binary IP addresses classified into the subtree where node 311 is located is 2.
  • the node weight is determined according to the number of leaf nodes corresponding to the binary IP address with the IP address prefix, including: the node weight is equal to the number of binary IP addresses with the IP address prefix; or When the number of binary IP addresses with the IP address prefix is greater than 1, the node weight is greater than 1; when the number of binary IP addresses with the IP address prefix is equal to 1, the node weight is equal to 1; When the number of binary IP addresses of the IP address prefix is equal to zero, the node weight is equal to zero.
  • the node weight of node 311 may be set to 2.
  • the IP address segment is determined by the distribution information of the binary IP address determined by the subtree of the binary tree.
  • the leaf node traverse the nodes in the binary tree layer by layer, search for the target node that meets the preset conditions, and add the IP address segment in the subnet determined by the IP address prefix of the target node to the IP Address information database. For example, for the upper-level node 311 of the leaf nodes 301 and 302, its own node weight is 2, and the node weight of its sibling node 312 is 1. If the above preset condition is not met, the traversal of the upper-level node continues.
  • the node weight of the node 321 itself is 5, and the node weight of its sibling node 322 is 0. If the above-mentioned preset condition is satisfied, the node 321 is taken as the target node.
  • the IP address segment composed of all the IP addresses in the subnet determined by the IP address prefix "00000000 00000000 00000000000000" corresponding to the node 321 is added to the IP address information database.
  • IP addresses are: "00000000 0000000000000000”, "00000000 00000000 0000000000000001", and "00000000 0000000000000000000000000011".
  • the IP address segment added to the IP address information database is: 0.0.0.0 to 0.0.0.3, that is, the IP address added to the IP address information database includes "00000000 00000000 00000010" in addition to the above three IP addresses. It can be seen that by converting the IP address into binary and performing binary tree classification to determine the IP address segment corresponding to the subtree of the compound condition, the IP address information database can be expanded and improved.
  • the above method also conforms to the idea of dividing IP addresses according to subnets based on network security and other considerations in the actual IP address allocation process.
  • Step 220 Obtain the network egress IP address of the device connected to the network.
  • Step 230 Match the network exit IP address with the IP address information in the IP address information database, and determine whether the accessed network is a mobile device hotspot according to the matching result.
  • the server matches the obtained network exit IP address with the IP address in the pre-built IP address information database. If the match is successful, it means that the user is connected to a mobile network, that is, the user is using a mobile device hotspot Access to the network.
  • the IP address information database includes the IP address segment of the mobile terminal whose network type is the device access network, and the network egress IP address is matched with the IP address information in the IP address information database The step includes: matching the network egress IP address with the IP address included in each IP address segment in the IP address information database.
  • the obtained user’s network exit IP address is the IP address of the mobile device’s hotspot, and the user’s network exit IP address will be the same as the IP address in the IP address database. The address matches successfully. If the user accesses the network through the broadband of the cell, the obtained network exit IP address is the IP address of the broadband of the cell. When matching with the IP address in the pre-built IP address information database, the matching will fail.
  • the network exit IP address of the user equipment matches the IP address information in the IP address information database successfully, it is determined that the network accessed by the user equipment is a mobile device hotspot.
  • Step 240 If it is determined that the accessed network is a mobile device hotspot, when it is detected that the device is performing a video browsing or file download operation, a prompt of the type of the currently accessed network hotspot is performed.
  • the method further includes: if it is determined that the accessed network is a mobile device hotspot, when the When the device performs video browsing or file download operations, it prompts the type of hotspot currently connected to the network.
  • a corresponding prompt related to the network application can be given. For example, when a user is playing a video through another user’s mobile phone WiFi hotspot, or when a user downloads a file through another user’s mobile phone WiFi hotspot, it can prompt the user that the current network is a mobile device hotspot to avoid opening the phone’s WiFi hotspot Of user traffic consumption.
  • the mobile network access type identification method disclosed in the embodiments of the application obtains the IP address of the mobile device access point based on positioning data, and further converts the IP address into a binary form to classify the IP address through a binary tree. Finally, according to the binary tree The classification result determines the IP address segment of the mobile device access point, which effectively expands the IP address information database, thereby improving the accuracy of determining mobile device hotspots based on the egress IP address.
  • the connected network is a mobile device hotspot
  • the user when it is determined that the user is performing an operation that consumes a large amount of network traffic, by prompting the user that the user is currently in the mobile device hotspot network, it helps to avoid the traffic consumption of the mobile device hotspot , To further enhance the user experience.
  • An apparatus for identifying a mobile network access type disclosed in an embodiment of the present application, as shown in FIG. 4, includes:
  • the IP address information base obtaining module 410 is configured to obtain an IP address information base, where the IP address information base includes IP address information of the mobile device;
  • the network exit IP address acquisition module 420 is used to acquire the network exit IP address of the device connected to the network;
  • the matching identification module 430 is configured to match the network exit IP address with the IP address information in the IP address information database, and determine whether the accessed network is a mobile device hotspot according to the matching result.
  • the IP address information database obtaining module 410 is further configured to:
  • each piece of device positioning data including: the type of network the device accesses to the network and the IP address of the device;
  • an IP address information database is constructed.
  • the mobile network access type identification device disclosed in the embodiment of the present application obtains an IP address information database, which includes the IP address information of the mobile device; obtains the network exit IP address of the device connected to the network; The network egress IP address is matched with the IP address information in the IP address information database, and whether the accessed network is a mobile device hotspot is determined according to the matching result, which helps to solve the problem of identifying mobile devices based on MAC addresses in the prior art.
  • the problem of inaccuracy when the device is hot With the development of mobile Internet technology, it is possible to obtain a large amount of location data.
  • a more comprehensive mobile network IP address can be obtained based on the location data, so that the constructed IP address information database covers a comprehensive mobile network
  • the device IP address thus, can realize the identification of the access network type based on the network exit IP address, which can improve the accuracy of determining whether the hotspot accessed by the mobile device is a mobile device network compared with the prior art.
  • the constructing an IP address information database according to the device location data of a mobile network in the device location data includes:
  • an IP address information database is constructed.
  • the determining the IP address segment of the mobile device according to the device positioning data whose network type is a mobile network in the device positioning data includes:
  • IP address distribution binary tree based on the binary IP address; wherein the leaf nodes of the binary tree correspond to different binary IP addresses, and each of the upper N-level nodes of the leaf node corresponds to a corresponding IP address prefix and node weight;
  • the IP address prefix is the first 32-N binary bits of the leaf node
  • the node weight is determined according to the number of leaf nodes corresponding to the binary IP address with the IP address prefix, and N is an integer greater than or equal to 1.
  • the binary tree is traversed layer by layer from the upper node of each leaf node to determine the target node meeting a preset condition, where the preset condition is: the node weight of the sibling node is greater than 1 or equal to 0, and Its own node weight is greater than 1;
  • the corresponding IP address segment is determined.
  • the device further includes:
  • the network hotspot type prompting module 440 is configured to, if it is determined that the accessed network is a mobile device hotspot, when it is detected that the device is performing a video browsing or file download operation, prompting the currently connected network hotspot type.
  • the mobile network access type identification device disclosed in the embodiment of the application obtains the IP address of the mobile device access point based on positioning data, and further converts the IP address into a binary form to classify IP addresses through a binary tree. Finally, according to the binary tree The classification result determines the IP address segment of the mobile device access point, which effectively expands the IP address information database, thereby improving the accuracy of determining mobile device hotspots based on the egress IP address.
  • the connected network is a mobile device hotspot
  • the user when it is determined that the user is performing an operation that consumes a large amount of network traffic, by prompting the user that the user is currently in the mobile device hotspot network, it helps to avoid the traffic consumption of the mobile device hotspot , To further enhance the user experience.
  • the mobile network access type identification device disclosed in the embodiments of the present application is suitable for implementing the mobile network access type identification methods described in Embodiment 1 and Embodiment 2.
  • the specific implementation technical solutions of each module of the device refer to the relevant steps of the method. This embodiment will not be repeated.
  • this application also discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor.
  • the implementation is The mobile network access type identification method described in the first embodiment and the second embodiment.
  • the electronic device may be a PC, a mobile terminal, a personal digital assistant, a tablet computer, etc.
  • the application also discloses a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the steps of the mobile network access type identification method described in the first and second embodiments of this application are realized. .
  • the device embodiments described above are merely illustrative.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement it without creative work.
  • each implementation manner can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, or in one or more processes. Implementation of software modules running on the device. Based on this understanding, the above technical solutions can be embodied in the form of software products, which can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., include several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiment.
  • DSP digital signal processor
  • This application can also be implemented as a device or device program (for example, a computer program and a computer program product) for executing part or all of the methods described herein.
  • a program for implementing the present application may be stored on a computer-readable medium, or may have the form of one or more signals. Such signals can be downloaded from Internet websites, or provided on carrier signals, or provided in any other form.
  • FIG. 6 shows an electronic device that can implement the method according to the present application.
  • the electronic device traditionally includes a processor 610 and a computer program product in the form of a memory 620 or a computer-readable medium.
  • the memory 620 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the memory 620 has a storage space 6201 for executing the program code 6202 of any method step in the above method.
  • the storage space 1030 for program codes may include various program codes 6201 for respectively implementing various steps in the above method. These program codes can be read out from or written into one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is usually a portable or fixed storage unit as described with reference to FIG. 7.
  • the storage unit may have storage segments, storage spaces, etc. arranged similarly to the storage 620 in the electronic device of FIG. 6.
  • the program code can be compressed in an appropriate form, for example.
  • the storage unit includes computer-readable codes 6022', that is, codes that can be read by, for example, a processor such as 610. These codes, when run by an electronic device, cause the electronic device to execute each of the methods described above. step.
  • any reference signs placed between parentheses should not be constructed as a limitation to the claims.
  • the word “comprising” does not exclude the presence of elements or steps not listed in the claims.
  • the word “a” or “an” preceding an element does not exclude the presence of multiple such elements.
  • the application can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In the unit claims enumerating several devices, several of these devices may be embodied by the same hardware item.
  • the use of the words first, second, and third, etc. do not indicate any order. These words can be interpreted as names.

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

本申请实施例公开了一种移动网络接入类型识别方法,属于计算机技术领域。本申请实施例公开的移动网络接入类型识别方法包括:获取IP地址信息库,所述IP地址信息库中包括移动设备的IP地址信息;获取接入网络的设备的网络出口IP地址;将所述网络出口IP地址与所述IP地址信息库中的IP地址信息进行匹配,并根据匹配结果确定接入的所述网络是否为移动设备热点。本申请实施例公开的移动网络接入类型识别方法,通过基于设备的出口IP地址和庞大的移动设备IP地址信息库,可以提升确定移动设备接入的热点是否为移动设备网络的准确性。

Description

移动网络接入类型识别
本申请要求在2019年2月19日提交中国专利局、申请号为201910122431.8、发明名称为“移动网络接入类型识别方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别是涉及移动网络接入类型识别。
背景技术
随着互联网技术的发展,针对客户端的增值服务越来越多。确定客户端访问服务端时使用的网络类型,可以更好的为客户端提供服务。例如,针对通过4G(the 4th generation)网络访问服务器的客户端,在用户观看视频的时候,可以提供用户压缩后的视频数据流,或者,提示用户所处的网络状态,避免消耗客户端大量4G数据流量。
MAC地址(Media Access Control Address)是网络设备的唯一标识。不同厂商会自主选用了某些MAC地址段用于网络设备,因此,现有技术中通常通过MAC分段判断访问服务器的客户端通过路由器接入网络,还是通过手机的4G信号接入网络。
发明内容
本申请提供移动网络接入类型识别方法,有助于提升移动网络接入类型的识别准确率。
第一方面,本申请实施例提供了一种移动网络接入类型识别方法,包括:
获取IP地址信息库,所述IP地址信息库中包括移动设备的IP地址信息;
获取接入网络的设备的网络出口IP地址;
将所述网络出口IP地址与所述IP地址信息库中的IP地址信息进行匹配,并根据匹配结果确定接入的所述网络是否为移动设备热点。
第二方面,本申请实施例提供了一种移动网络接入类型识别装置,包括:
IP地址信息库获取模块,用于获取IP地址信息库,所述IP地址信息库中包括移动设备的IP地址信息;
网络出口IP地址获取模块,用于获取接入网络的设备的网络出口IP地址;
匹配识别模块,用于将所述网络出口IP地址与所述IP地址信息库中的IP地址信息进行匹配,并根据匹配结果确定接入的所述网络是否为移动设备热点。
第三方面,本申请实施例还公开了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请实施例所述的移动网络接入类型识别方法。
第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时本申请实施例公开的移动网络接入类型识别方法的步骤。
本申请实施例公开的移动网络接入类型识别方法,通过获取IP地址信息库,所述IP地址信息库中包括移动设备的IP地址信息;获取接入网络的设备的网络出口IP地址;将所述网络出口IP地址与所述IP地址信息库中的IP地址信息进行匹配,并根据匹配结果确定接入的所述网络是否为移动设备热点。通过基于设备的出口IP地址和庞大的移动设备IP地址信息库,可以提升确定移动设备接入的热点是否为移动设备网络的准确性。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例一的移动网络接入类型识别方法流程图;
图2是本申请实施例二的移动网络接入类型识别方法流程图;
图3是本申请实施例二中构建的IP地址分布二叉树示意图;
图4是本申请实施例二的移动网络接入类型识别装置结构示意图之一;
图5是本申请实施例二的移动网络接入类型识别装置结构示意图之二;
图6示意性地示出了用于执行根据本申请的方法的电子设备的框图;以及
图7示意性地示出了用于保持或者携带实现根据本申请的方法的程序代码的存储单元。
具体实施例
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
实施例一
本申请实施例公开的一种移动网络接入类型识别方法,如图1所示,该方法包括:步骤110至步骤130。
步骤110,获取IP地址信息库,所述IP地址信息库中包括移动设备的IP地址信息。
随着移动互联网技术的发展,以及移动设备技术的发展,对移动终端进行定位已经是一项提升用户服务质量的基本功能。例如,用户在使用导航客户端软件的过程中,结合GPS(Global Positioning System,全球定位系统)定位数据,导航客户端软件会通过移动网络(如3G、4G网络)上传移动终端的地理位置至定位服务器,以便定位服务器为导航客户端规划路线。再例如,当用户使用电子商务平台客户端时,可能会通过移动网络(如WiFi,即无线保真Wireless Fidelity)或者小区宽带连接电子商务平台服务器,获取电子商务平台基于当前位置提供的服务。在很多种类似上述应用场景中,都会生成用户的移动终端的定位数据。现有技术中,每条定位数据通常都会包括用户的移动终端接入网络的网络类型,以及客户端访问服务器的出口IP地址。其中,所述网络类型包括但不限于:2G网络、3G网络、4G网络、WiFi、小区宽带。
本申请实施例中通过搜集海量的定位数据,并对定位数据进行数据分析处理,提取其中的网络类型为移动终端网络的定位数据进行进一步分析处 理,构建IP地址信息库。
在本申请的一些实施例中,所述获取IP地址信息库的步骤,包括:获取若干条设备定位数据,每条所述设备定位数据包括:设备接入网络的网络类型和所述设备的IP地址;根据所述设备定位数据中网络类型为移动网络的设备定位数据,构建IP地址信息库。例如,将设备的定位数据中网络类型为2G网络、3G网络、4G网络的定位数据中的IP地址加入到IP地址信息库中,以构建IP地址信息库。
步骤120,获取接入网络的设备的网络出口IP地址。
通常运营商会固定地将特定的公网IP与出口设备专用于不同的网络类型。例如,高等院校统一由CERNET(中国教育和科研计算机网)分配到各高等院校和科研机构的IP地址。还有例如:普通基站、基站公用出口、普通机房、专用出口、小区宽带、企业宽带、公用场所等公网IP地址通常是按设定规则分发的。因此,移动设备热点的出口IP地址是可以用来识别接入网络类型。
互联网中的设备是分层的,终端用户处于最底层,终端的数据包需要层层向上转发,最后由一个出口设备传输到公网,再到达目标服务器,最后一个出口设备拥有公网IP地址,目标服务器能获取出口设备的公网IP地址。例如,用户通过手机连接家中的路由器,然后,通过家中的路由器连接小区宽带,最后访问美团服务器,美团服务器可以获取用户的访问请求中的小区宽带出口IP地址。如果用户通过另外一部手机的WiFi热点接入网络,并访问美团服务器,美团将获取到另外一部手机连接2G、3G或4G基站后的移动网络IP地址。
在具体应用过程中,当服务器获取到用户设备上安装的客户端发送的服务访问请求之后,通过设备上运行的客户端上传的网络数据,可以获取所述设备接入网络的网络出口IP地址。
步骤130,将所述网络出口IP地址与所述IP地址信息库中的IP地址信息进行匹配,并根据匹配结果确定接入的所述网络是否为移动设备热点。
之后,服务器将获取到的所述网络出口IP地址与预先构建的IP地址信息库中的IP地址进行匹配,如果匹配成功,则说明用户接触的网络为移动 网络,即用户是通过移动设备热点接入网络的。例如,用户是通过其他手机的WiFi热点接入网络的。如果用户通过小区宽带接入网络,则获取的网络出口IP地址与预先构建的IP地址信息库中的IP地址进行匹配时,将匹配失败。
本申请实施例公开的移动网络接入类型识别方法,通过获取IP地址信息库,所述IP地址信息库中包括移动设备的IP地址信息;获取接入网络的设备的网络出口IP地址;将所述网络出口IP地址与所述IP地址信息库中的IP地址信息进行匹配,并根据匹配结果确定接入的所述网络是否为移动设备热点。随着移动互联网技术的发展,获得海量的定位数据成为可能,因此,本申请在具体实施时,基于定位数据可以获取较全面的移动网络的IP地址,使得构建的IP地址信息库涵盖全面的移动设备IP地址,从而,可以实现基于网络出口IP地址进行接入网络类型的识别,相较于现有技术,可以提升确定移动设备接入的热点是否为移动设备网络的准确性。
实施例二
本申请实施例公开的一种移动网络接入类型识别方法,如图2所示,该方法包括:步骤210至步骤240。
步骤210,获取IP地址信息库,所述IP地址信息库中包括移动设备的IP地址信息。
尽管本申请实施例中通过搜集海量的定位数据,并对定位数据进行数据分析处理,提取其中的网络类型为移动终端网络的定位数据进行进一步分析处理,构建IP地址信息库。为了避免无法匹配到新上线的IP地址,进一步提升移动网络热点识别的准确性,在申请的一些优选实施例中,所述根据所述设备定位数据中网络类型为移动网络的设备定位数据,构建IP地址信息库的步骤,包括:根据所述设备定位数据中网络类型为移动网络的设备定位数据,确定移动设备的IP地址段;基于所述移动设备的IP地址段,构建IP地址信息库。
IP地址是由4组数字构成的,每组数字最大值为255。在实际应用过程中,子网划分本质上就是基于二进制的IP地址进行划分的。由于网络安全等考虑,IP分配的时候通常会按照子网划分的模式进行。例如172.16.1.0 和172.16.1.25可以认为是在一个掩码为172.16.1.255的子网中。因此,在构建IP地址信息库时,可以根据获取的移动网络接入点的IP地址确定IP地址段,然后,基于IP地址段构建IP地址信息库。通过此方法构建的IP地址信息库中包括移动网络热点对应的IP地址段。
将IP地址转化回二进制表示,然后构造一颗二叉树,能够大大简化IP地址段的构造工作。
在申请的一些优选实施例中,所述根据所述设备定位数据中网络类型为移动网络的设备定位数据,确定移动设备的IP地址段的步骤,包括:将所述设备定位数据中网络类型为移动网络的设备定位数据中的IP地址转换成二进制IP地址;基于所述二进制IP地址构造IP地址分布二叉树;其中,所述二叉树的叶子节点对应不同的二进制IP地址,所述叶子节点的上N层节点中每个节点对应相应的IP地址前缀及节点权重;其中,所述IP地址前缀为所述叶子节点的前(32-N)个二进制位,所述节点权重根据具有所述IP地址前缀的二进制IP地址对应的叶子节点数量确定,N为大于等于1的整数;分别从每个叶子节点的上一层节点起逐层向上遍历所述二叉树,确定满足预设条件的目标节点,其中,所述预设条件为:兄弟节点的节点权重大于1或等于0,且自身的节点权重大于1;根据所述目标节点对应的IP地址前缀,确定相应的IP地址段。
例如,首先将网络类型为移动网络的设备定位数据中的IP地址转换成二进制IP地址,可以得到一个32位二进制数表示的IP地址。以IP地址“1.1.1.1”为例,转换成二进制IP地址可以表示为“00000001 00000001 00000001 00000001”。按照此方法,将获取到的网络类型为移动网络的设备定位数据中的IP地址全部转换成二进制IP地址。
之后,构建一个33层的二叉树,最顶层为根节点,最底层为叶子节点。基于所述二叉树遍历转换得到的所有二进制IP地址,对所述二进制IP地址进行分类。以二进制IP地址“00000001 00000001 00000001 00000001”举例,从二进制IP地址的最高位开始,基于所述二叉树依次对二进制IP地址的每一位进行分类,确定二进制IP地址对应的节点。例如,对于上述二进制IP地址的最高位“0”,二叉树的分类方法为:如果该位对应的二进制 数值为0,则将该二进制IP地址分类到当前节点的左子树对应的IP地址集合;如果该位对应的二进制数值为1,则将该二进制IP地址分类到当前节点的右子树对应的IP地址集合。然后,由当前节点的子节点进一步按照此分类方法进行递进分类,直至将该二进制IP地址分类到该二叉树的某个叶子节点。在分类过程中,当该二进制IP地址分类到当前节点的某一侧子树对应的IP地址集合时,可以通过当前节点的与该子树对应的子节点记录分类到该侧子树的二进制IP地址的数量,以及,分类到该侧子树的二进制IP地址的最长前缀。例如,对若干二进制IP地址通过二叉树遍历分类后,可以得到如图3所示的二叉树。图3所示的二叉树中,叶子节点301、302分别对应一个二进制IP地址“00000000 00000000 00000000 00000000”和“00000000 00000000 00000000 00000001”;叶子节点301的上层节点311对应的IP地址前缀为“00000000 00000000 00000000 0000000”,分类到节点311所在子树的二进制IP地址的数量为2。
在本申请的一些实施例中,节点权重根据具有所述IP地址前缀的二进制IP地址对应的叶子节点数量确定,包括:所述节点权重等于具有所述IP地址前缀的二进制IP地址的数量;或当具有所述IP地址前缀的二进制IP地址的数量大于1时,所述节点权重大于1;当具有所述IP地址前缀的二进制IP地址的数量等于1时,所述节点权重等于1;当具有所述IP地址前缀的二进制IP地址的数量等于0时,所述节点权重等于0。例如,节点311的节点权重可以设置为2。
在构建完用于表示二进制IP地址分布的二叉树之后,通过二叉树的子树确定的二进制IP地址的分布信息确定IP地址段。具体实施时,可以通过自叶子节点起,逐层线上遍历二叉树中的节点,搜索满足预设条件的目标节点,并将该目标节点的IP地址前缀确定的子网中的IP地址段加入IP地址信息库中。例如,对于叶子节点301和302的上一层节点311,其自身的节点权重为2,其兄弟节点312的节点权重为1,不满足上述预设条件,则继续向上一层节点遍历。节点321自身的节点权重为5,其兄弟节点322的节点权重为0,满足上述预设条件,则将节点321作为目标节点。将节点321对应的IP地址前缀“00000000 00000000 00000000 000000”确定的子网中 的所有IP地址构成的IP地址段加入IP地址信息库中。
由图3所示得二叉树可知,实际获取到定位数据的移动网络接入点只有3个,IP地址分别为:“00000000 00000000 00000000 00000000”、“00000000 00000000 00000000 00000001”和“00000000 00000000 00000000 00000011”,但是,加入IP地址信息库中的IP地址段为:0.0.0.0至0.0.0.3,即加入IP地址信息库中的IP地址除了上述3个IP地之外,还包括“00000000 00000000 00000000 00000010”。可见,通过将IP地址转换成二进制,并进行二叉树分类,确定复合条件的子树对应的IP地址段,可以扩充和完善IP地址信息库。
上述方法也符合在实际IP地址分配过程中,基于网络安全等考虑的按照子网进行IP地址划分的思想。
步骤220,获取接入网络的设备的网络出口IP地址。
获取接入网络的设备的网络出口IP地址的具体实施方式参见实施例一,本实施例不再赘述。
步骤230,将所述网络出口IP地址与所述IP地址信息库中的IP地址信息进行匹配,并根据匹配结果确定接入的所述网络是否为移动设备热点。
之后,服务器将获取到的所述网络出口IP地址与预先构建的IP地址信息库中的IP地址进行匹配,如果匹配成功,则说明用户接入的网络为移动网络,即用户是通过移动设备热点接入网络的。具体实施时,所述IP地址信息库中包括设备接入网络的网络类型为移动终端的IP地址段,所述将所述网络出口IP地址与所述IP地址信息库中的IP地址信息进行匹配的步骤,包括:将所述网络出口IP地址与所述IP地址信息库中的各IP地址段包括的IP地址进行匹配。例如,如果用户通过其他手机的WiFi热点接入网络的,则获取的用户的网络出口IP地址为移动设备热点的IP地址,则用户的网络出口IP地址会与所述IP地址信息库中的IP地址匹配成功。如果用户通过小区宽带接入网络,则获取的网络出口IP地址为小区宽带的IP地址,与预先构建的IP地址信息库中的IP地址进行匹配时,将匹配失败。
如果用户设备的所述网络出口IP地址与所述IP地址信息库中的IP地址信息匹配成功,则确定用户设备接入的所述网络为移动设备热点。
步骤240,若确定接入的所述网络为移动设备热点,则当检测到所述设备执行视频浏览或文件下载操作时,进行当前接入网络热点类型的提示。
在本申请的一些实施例中,根据匹配结果确定接入的所述网络是否为移动设备热点的步骤之后,还包括:若确定接入的所述网络为移动设备热点,则当检测到所述设备执行视频浏览或文件下载操作时,进行当前接入网络热点类型的提示。
具体应用过程中,在确定接入的所述网络为移动设备热点之后,可以给出相应的网络应用相关的提示。例如,当用户在通过其他用户的手机WiFi热点播放视频时,或者,当用户通过其他用户的手机WiFi热点下载文件时,则可以提示用户当前使用的网络为移动设备热点,避免造成打开手机WiFi热点的用户流量消耗。
本申请实施例公开的移动网络接入类型识别方法,通过基于定位数据获取移动设备接入点的IP地址,并进一步将IP地址转换成二进制形式,以通过二叉树进行IP地址分类,最后,根据二叉树的分类结果确定移动设备接入点的IP地址段,有效地扩充了IP地址信息库,从而提升了基于出口IP地址确定移动设备热点的准确性。
进一步的,在确定接入的所述网络为移动设备热点之后,在判断用户执行消耗大量网络流量的操作时,通过提示用户当前处于移动设备热点网络中,有助于避免移动设备热点的流量消耗,进一步提升了用户体验。
实施例三
本申请实施例公开的一种移动网络接入类型识别装置,如图4所示,所述装置包括:
IP地址信息库获取模块410,用于获取IP地址信息库,所述IP地址信息库中包括移动设备的IP地址信息;
网络出口IP地址获取模块420,用于获取接入网络的设备的网络出口IP地址;
匹配识别模块430,用于将所述网络出口IP地址与所述IP地址信息库中的IP地址信息进行匹配,并根据匹配结果确定接入的所述网络是否为移动设备热点。
可选的,所述IP地址信息库获取模块410进一步用于:
获取若干条设备定位数据,每条所述设备定位数据包括:设备接入网络的网络类型和所述设备的IP地址;
根据所述设备定位数据中网络类型为移动网络的设备定位数据,构建IP地址信息库。
本申请实施例公开的移动网络接入类型识别装置,通过获取IP地址信息库,所述IP地址信息库中包括移动设备的IP地址信息;获取接入网络的设备的网络出口IP地址;将所述网络出口IP地址与所述IP地址信息库中的IP地址信息进行匹配,并根据匹配结果确定接入的所述网络是否为移动设备热点,有助于解决现有技术中基于MAC地址识别移动设备热点时存在的不准确的问题。随着移动互联网技术的发展,获得海量的定位数据成为可能,因此,本申请在具体实施时,基于定位数据可以获取较全面的移动网络的IP地址,使得构建的IP地址信息库涵盖全面的移动设备IP地址,从而,可以实现基于网络出口IP地址进行接入网络类型的识别,相较于现有技术,可以提升确定移动设备接入的热点是否为移动设备网络的准确性。
可选的,所述根据所述设备定位数据中网络类型为移动网络的设备定位数据,构建IP地址信息库,包括:
根据所述设备定位数据中网络类型为移动网络的设备定位数据,确定移动设备的IP地址段;
基于所述移动设备的IP地址段,构建IP地址信息库。
可选的,所述根据所述设备定位数据中网络类型为移动网络的设备定位数据,确定移动设备的IP地址段,包括:
将所述设备定位数据中网络类型为移动网络的设备定位数据中的IP地址转换成二进制IP地址;
基于所述二进制IP地址构造IP地址分布二叉树;其中,所述二叉树的叶子节点对应不同的二进制IP地址,所述叶子节点的上N层节点中每个节点对应相应的IP地址前缀及节点权重;其中,所述IP地址前缀为所述叶子节点的前32-N个二进制位,所述节点权重根据具有所述IP地址前缀的二进制IP地址对应的叶子节点数量确定,N为大于等于1的整数;
分别从每个叶子节点的上一层节点起逐层向上遍历所述二叉树,确定满足预设条件的目标节点,其中,所述预设条件为:兄弟节点的节点权重大于1或等于0,且自身的节点权重大于1;
根据所述目标节点对应的IP地址前缀,确定相应的IP地址段。
在本申请的另一些实施例中,如图5所示,所述装置还包括:
网络热点类型提示模块440,用于若确定接入的所述网络为移动设备热点,则当检测到所述设备执行视频浏览或文件下载操作时,进行当前接入网络热点类型的提示。
本申请实施例公开的移动网络接入类型识别装置,通过基于定位数据获取移动设备接入点的IP地址,并进一步将IP地址转换成二进制形式,以通过二叉树进行IP地址分类,最后,根据二叉树的分类结果确定移动设备接入点的IP地址段,有效地扩充了IP地址信息库,从而提升了基于出口IP地址确定移动设备热点的准确性。
进一步的,在确定接入的所述网络为移动设备热点之后,在判断用户执行消耗大量网络流量的操作时,通过提示用户当前处于移动设备热点网络中,有助于避免移动设备热点的流量消耗,进一步提升了用户体验。
本申请实施例公开的移动网络接入类型识别装置适用于实现实施例一和实施例二所述的移动网络接入类型识别方法的,装置的各模块的具体实现技术方案参见方法的相关步骤,本实施例不再赘述。
相应的,本申请还公开了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例一和实施例二所述的移动网络接入类型识别方法。所述电子设备可以为PC机、移动终端、个人数字助理、平板电脑等。
本申请还公开了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例一和实施例二所述的移动网络接入类型识别方法的步骤。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比 较简单,相关之处参见方法实施例的部分说明即可。
以上对本申请提供的移动网络接入类型识别方法及装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及一种核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件实现,或者以在一个或者多个处理器上运行的软件模块实现。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本申请实施例的电子设备中的一些或者全部部件的一些或者全部功能。本申请还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本申请的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图6示出了可以实现根据本申请的方法的电子设备。该电子设备传统上包括处理器610和以存储器620形式的计算机程序产品或者计算机可读介质。存储器620可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器620具有用于执行上述方 法中的任何方法步骤的程序代码6202的存储空间6201。例如,用于程序代码的存储空间1030可以包括分别用于实现上面的方法中的各种步骤的各个程序代码6201。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图7所述的便携式或者固定存储单元。该存储单元可以具有与图6的电子设备中的存储器620类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码6022’,即可以由例如诸如610之类的处理器读取的代码,这些代码当由电子设备运行时,导致该电子设备执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本申请的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本申请的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本申请可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (11)

  1. 一种移动网络接入类型识别方法,包括:
    获取IP地址信息库,所述IP地址信息库中包括移动设备的IP地址信息;
    获取接入网络的设备的网络出口IP地址;
    将所述网络出口IP地址与所述IP地址信息库中的IP地址信息进行匹配,并根据匹配结果确定接入的所述网络是否为移动设备热点。
  2. 根据权利要求1所述的方法,所述获取IP地址信息库的步骤,包括:
    获取若干条设备定位数据,每条所述设备定位数据包括:设备接入网络的网络类型和所述设备的IP地址;
    根据所述设备定位数据中网络类型为移动网络的设备定位数据,构建IP地址信息库。
  3. 根据权利要求2所述的方法,所述根据所述设备定位数据中网络类型为移动网络的设备定位数据,构建IP地址信息库的步骤,包括:
    根据所述设备定位数据中网络类型为移动网络的设备定位数据,确定移动设备的IP地址段;
    基于所述移动设备的IP地址段,构建IP地址信息库。
  4. 根据权利要求3所述的方法,所述根据所述设备定位数据中网络类型为移动网络的设备定位数据,确定移动设备的IP地址段的步骤,包括:
    将所述设备定位数据中网络类型为移动网络的设备定位数据中的IP地址转换成二进制IP地址;
    基于所述二进制IP地址构造IP地址分布二叉树;其中,所述二叉树的叶子节点对应不同的二进制IP地址,所述叶子节点的上N层节点中每个节点对应相应的IP地址前缀及节点权重;其中,所述IP地址前缀为所述叶子节点的前32-N个二进制位,所述节点权重根据具有所述IP地址前缀的二进制IP地址对应的叶子节点数量确定,N为大于等于1的整数;
    分别从每个叶子节点的上一层节点起逐层向上遍历所述二叉树,确定满足预设条件的目标节点,其中,所述预设条件为:兄弟节点的节点权重大于1或等于0,且自身的节点权重大于1;
    根据所述目标节点对应的IP地址前缀,确定相应的IP地址段。
  5. 一种移动网络接入类型识别装置,包括:
    IP地址信息库获取模块,用于获取IP地址信息库,所述IP地址信息库中包括移动设备的IP地址信息;
    网络出口IP地址获取模块,用于获取接入网络的设备的网络出口IP地址;
    匹配识别模块,用于将所述网络出口IP地址与所述IP地址信息库中的IP地址信息进行匹配,并根据匹配结果确定接入的所述网络是否为移动设备热点。
  6. 根据权利要求5所述的装置,所述IP地址信息库获取模块进一步用于:
    获取若干条设备定位数据,每条所述设备定位数据包括:设备接入网络的网络类型和所述设备的IP地址;
    根据所述设备定位数据中网络类型为移动网络的设备定位数据,构建IP地址信息库。
  7. 根据权利要求6所述的装置,所述根据所述设备定位数据中网络类型为移动网络的设备定位数据,构建IP地址信息库,包括:
    根据所述设备定位数据中网络类型为移动网络的设备定位数据,确定移动设备的IP地址段;
    基于所述移动设备的IP地址段,构建IP地址信息库。
  8. 根据权利要求7所述的装置,所述根据所述设备定位数据中网络类型为移动网络的设备定位数据,确定移动设备的IP地址段,包括:
    将所述设备定位数据中网络类型为移动网络的设备定位数据中的IP地址转换成二进制IP地址;
    基于所述二进制IP地址构造IP地址分布二叉树;其中,所述二叉树的叶子节点对应不同的二进制IP地址,所述叶子节点的上N层节点中每个节点对应相应的IP地址前缀及节点权重;其中,所述IP地址前缀为所述叶子节点的前32-N个二进制位,所述节点权重根据具有所述IP地址前缀的二进制IP地址对应的叶子节点数量确定,N为大于等于1的整数;
    分别从每个叶子节点的上一层节点起逐层向上遍历所述二叉树,确定满足预设条件的目标节点,其中,所述预设条件为:兄弟节点的节点权重大于1或等于0,且自身的节点权重大于1;
    根据所述目标节点对应的IP地址前缀,确定相应的IP地址段。
  9. 一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至4任意一项所述的移动网络接入类型识别方法。
  10. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1至4任意一项所述的移动网络接入类型识别方法的步骤。
  11. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备上运行时,导致所述电子设备执行根据权利要求1至4中的任意一项所述的移动网络接入类型识别方法。
PCT/CN2019/120219 2019-02-19 2019-11-22 移动网络接入类型识别 WO2020168768A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910122431.8 2019-02-19
CN201910122431.8A CN109743745B (zh) 2019-02-19 2019-02-19 移动网络接入类型识别方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2020168768A1 true WO2020168768A1 (zh) 2020-08-27

Family

ID=66367734

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120219 WO2020168768A1 (zh) 2019-02-19 2019-11-22 移动网络接入类型识别

Country Status (2)

Country Link
CN (1) CN109743745B (zh)
WO (1) WO2020168768A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115695173A (zh) * 2022-07-29 2023-02-03 中国工商银行股份有限公司 网络安全例外接入方法、装置、设备、介质和程序产品

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743745B (zh) * 2019-02-19 2021-01-22 北京三快在线科技有限公司 移动网络接入类型识别方法、装置、电子设备及存储介质
CN112312519B (zh) * 2019-07-31 2022-12-27 华为技术有限公司 一种设备识别的方法及相关装置
CN110392127B (zh) * 2019-08-15 2022-01-11 中盈优创资讯科技有限公司 网络地址空间识别方法及装置
CN112235849A (zh) * 2020-10-19 2021-01-15 展讯半导体(成都)有限公司 识别Wi-Fi热点类型的方法、系统、电子设备和介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8122070B1 (en) * 2005-12-29 2012-02-21 United States Automobile Association (USAA) Document management system user interfaces
CN106488493A (zh) * 2015-08-24 2017-03-08 阿里巴巴集团控股有限公司 识别用户的网络热点类型的方法和装置及电子设备
CN106851779A (zh) * 2016-12-07 2017-06-13 广东欧珀移动通信有限公司 一种识别接入点和热点的方法及移动终端
CN107040965A (zh) * 2017-05-10 2017-08-11 维沃移动通信有限公司 一种流量控制方法、装置及移动终端
CN107426746A (zh) * 2016-05-24 2017-12-01 中兴通讯股份有限公司 识别wifi类型的方法和装置
CN109743745A (zh) * 2019-02-19 2019-05-10 北京三快在线科技有限公司 移动网络接入类型识别方法、装置、电子设备及存储介质

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394944B (zh) * 2011-09-16 2014-01-29 北京新媒传信科技有限公司 一种Web访问中的IP地址库修正方法和设备
US9154917B2 (en) * 2013-03-13 2015-10-06 Qualcomm Incorporated Method and apparatus for geotagging
US20140334336A1 (en) * 2013-05-10 2014-11-13 Relay2, Inc. Multi-Tenant Virtual Access Point- Network Resources Virtualization
CN103313429B (zh) * 2013-07-10 2016-12-28 江苏君立华域信息安全技术有限公司 一种识别伪造wifi热点的处理方法
CN103716921A (zh) * 2013-12-08 2014-04-09 周良文 基于智能路由设备的wifi即时通讯系统及社交方法
CN105554171A (zh) * 2015-12-15 2016-05-04 上海贝锐信息科技有限公司 用于远程控制系统的设备定位方法及系统
US9820099B2 (en) * 2016-02-19 2017-11-14 Electronic Beacons Systems LLC Electronic beacon reader system and method
CN105868359A (zh) * 2016-03-29 2016-08-17 重庆中陆承大科技有限公司 一种地址信息管控方法及系统
US10122725B2 (en) * 2016-05-19 2018-11-06 Centurylink Intellectual Property Llc System and method for implementing community wireless communications service
CN105959306A (zh) * 2016-06-30 2016-09-21 百度在线网络技术(北京)有限公司 Ip地址的识别方法及装置
CN106658756B (zh) * 2016-12-13 2020-05-26 浙江大华技术股份有限公司 一种终端设备与热点连接的识别方法及装置
CN107087281A (zh) * 2017-04-12 2017-08-22 上海斐讯数据通信技术有限公司 一种WiFi共享方法及其装置、一种无线网络
CN107124732A (zh) * 2017-05-12 2017-09-01 北京奇虎科技有限公司 公共无线局域网的挖掘方法及装置
CN107707477A (zh) * 2017-09-28 2018-02-16 杭州迪普科技股份有限公司 报文的处理方法及装置、计算机可读存储介质
CN108011987B (zh) * 2017-10-11 2020-09-04 北京三快在线科技有限公司 Ip地址定位方法及装置,电子设备及存储介质
CN108875006B (zh) * 2018-06-15 2021-03-30 泰康保险集团股份有限公司 确定ip地址所属地区的方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8122070B1 (en) * 2005-12-29 2012-02-21 United States Automobile Association (USAA) Document management system user interfaces
CN106488493A (zh) * 2015-08-24 2017-03-08 阿里巴巴集团控股有限公司 识别用户的网络热点类型的方法和装置及电子设备
CN107426746A (zh) * 2016-05-24 2017-12-01 中兴通讯股份有限公司 识别wifi类型的方法和装置
CN106851779A (zh) * 2016-12-07 2017-06-13 广东欧珀移动通信有限公司 一种识别接入点和热点的方法及移动终端
CN107040965A (zh) * 2017-05-10 2017-08-11 维沃移动通信有限公司 一种流量控制方法、装置及移动终端
CN109743745A (zh) * 2019-02-19 2019-05-10 北京三快在线科技有限公司 移动网络接入类型识别方法、装置、电子设备及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115695173A (zh) * 2022-07-29 2023-02-03 中国工商银行股份有限公司 网络安全例外接入方法、装置、设备、介质和程序产品

Also Published As

Publication number Publication date
CN109743745B (zh) 2021-01-22
CN109743745A (zh) 2019-05-10

Similar Documents

Publication Publication Date Title
WO2020168768A1 (zh) 移动网络接入类型识别
US10805163B2 (en) Identifying device types based on behavior attributes
CN111565205A (zh) 网络攻击识别方法、装置、计算机设备和存储介质
CN112347377B (zh) Ip地址段查找方法与业务调度方法、装置、电子设备
CN107623754B (zh) 基于真伪MAC识别的WiFi采集系统及其方法
CN105101271B (zh) 接入设备信息展示方法及装置
CN108345661B (zh) 一种基于大规模Embedding技术的Wi-Fi聚类方法及系统
CN112333706B (zh) 物联网设备异常检测方法、装置、计算设备及存储介质
CN1685663A (zh) 动态网络配置
WO2016115943A1 (zh) 一种音乐推荐方法及装置
CN102857917B (zh) 一种基于信令分析的手机连接pc上网识别方法
WO2017036066A1 (zh) 用于对无线接入点进行画像分析的方法与设备
CN115361360B (zh) 一种IPv6地址后64位精细化地址实现方法及系统
WO2018113728A1 (zh) 公共WiFi钓鱼风险的检测方法和装置
WO2017124881A1 (zh) 信息推送方法及装置
US11245712B2 (en) Method and apparatus for generating virtual malicious traffic template for terminal group including device infected with malicious code
WO2017000817A1 (zh) 获取数据之间的匹配关系的方法和装置
US20160085795A1 (en) Grouping equivalent content items
CN104901941B (zh) 一种基于bios下笔记本定位追踪的系统和方法
US20140280303A1 (en) Replacing equivalent content items
CN101668035A (zh) 一种实时识别多种p2p-tv应用视频流的方法
CN109587121B (zh) 安全策略的管控方法及装置
WO2023098222A1 (zh) 多业务场景的识别方法和决策森林模型的训练方法
WO2013159591A1 (zh) 一种区分无线终端的方法及装置
CN107656967B (zh) 一种场景信息处理方法及装置

Legal Events

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

Ref document number: 19915721

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19915721

Country of ref document: EP

Kind code of ref document: A1