TWI672024B - Router address type identification method and device - Google Patents

Router address type identification method and device Download PDF

Info

Publication number
TWI672024B
TWI672024B TW106102226A TW106102226A TWI672024B TW I672024 B TWI672024 B TW I672024B TW 106102226 A TW106102226 A TW 106102226A TW 106102226 A TW106102226 A TW 106102226A TW I672024 B TWI672024 B TW I672024B
Authority
TW
Taiwan
Prior art keywords
router
mac address
identified
threshold
user
Prior art date
Application number
TW106102226A
Other languages
Chinese (zh)
Other versions
TW201828657A (en
Inventor
章文
Original Assignee
香港商阿里巴巴集團服務有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 香港商阿里巴巴集團服務有限公司 filed Critical 香港商阿里巴巴集團服務有限公司
Priority to TW106102226A priority Critical patent/TWI672024B/en
Publication of TW201828657A publication Critical patent/TW201828657A/en
Application granted granted Critical
Publication of TWI672024B publication Critical patent/TWI672024B/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本發明揭示一種路由器地址類型的識別方法及裝置,該方法包括:獲取服務端採集到的網路交互資料,網路交互資料中包括用戶MAC地址資料及路由器MAC地址資料;根據用戶MAC地址資料及路由器MAC地址資料,確定路由器MAC地址和用戶MAC地址之間的關係;根據該關係統計預設週期內用戶MAC地址在接入待識別路由器後得到的接入參數;依據統計結果與預設閾值的比較結果識別路由器MAC地址類型。本發明解決了相關技術中路由器MAC地址類型的識別方案存在資料匱乏、資料覆蓋度低以及區分商戶門店和住戶難度比較高等技術問題。 The invention discloses a router address type identification method and device. The method includes: obtaining network interaction data collected by a server, and the network interaction data includes user MAC address data and router MAC address data; according to the user MAC address data and Router MAC address data to determine the relationship between the router MAC address and the user's MAC address; according to the relationship, the access parameters obtained by the user's MAC address after accessing the router to be identified within a preset period are counted; according to the statistical results and preset thresholds The comparison results identify the MAC address type of the router. The invention solves the technical problems of the identification scheme of the router's MAC address type in the related technology, such as lack of data, low data coverage, and relatively high difficulty in distinguishing merchant stores from residents.

Description

路由器地址類型的識別方法及裝置    Method and device for identifying router address type   

本發明涉及媒體接入控制(Medium/Media Access Control,簡稱為MAC)地址識別領域,具體而言,涉及一種路由器地址類型的識別方法及裝置。 The present invention relates to the field of medium / media access control (MAC) address identification, and in particular, to a method and device for identifying a router address type.

在互聯網環境下,特別是移動互聯網環境下,有很多場景(如線上到線下(Online To Offline,簡稱O2O)業務場景)需要獲取商戶門店和住戶的地址。目前很多系統主要通過用戶註冊填寫和物流地址挖掘的方法來獲取商戶門店地址和住戶地址。 In the Internet environment, especially in the mobile Internet environment, there are many scenarios (such as online to offline (O2O) business scenarios) that need to obtain the addresses of merchant stores and residents. At present, many systems mainly obtain merchant store addresses and residential addresses through user registration and logistic address mining methods.

但是,相關技術中,對於地址類型的識別一般採用用戶註冊過程中用戶輸入的地址確定地址類型,但是,這樣由於人為因素的接入,存在地址是否真實的風險,從而導致能夠採用的資料量匱乏、覆蓋面也比較低,難以區分地址類型的問題。以商戶門店地址和住戶地址為例,由於很少會有線下用戶或者門店註冊時填寫地址資訊,並且,實際上很多商戶門店在發貨時所使用的發貨地址並不一定是真正的商戶門店地址,比如可能是商戶倉庫所在的地址 等,因而採用相關技術中的用戶註冊填寫和物流地址挖掘的方法來獲取商戶門店地址和住戶地址存在資料匱乏,資料覆蓋度低、區分商戶門店和住戶的難度較高等問題。 However, in the related art, the address type is generally determined by the address entered by the user during the user registration process. However, due to the access of human factors, there is a risk of whether the address is real, resulting in a lack of available data. 2. The coverage is relatively low, which makes it difficult to distinguish between address types. Take the store address and the residential address as an example, because there are very few offline users or stores to fill in the address information when registering, and in fact, the delivery address used by many store stores when shipping is not necessarily the real store Address, for example, may be the address where the merchant's warehouse is located, etc. Therefore, the methods of user registration and logistics address mining in related technologies are used to obtain merchant store addresses and residential addresses. There is a lack of data, low data coverage, and distinguishing between merchant stores and residents. More difficult issues.

針對上述的問題,目前尚未提出有效的解決方案。 In view of the above problems, no effective solution has been proposed.

本發明實施例提供了一種路由器地址類型的識別方法及裝置,以至少解決相關技術中路由器MAC地址類型的識別方案存在資料匱乏、資料覆蓋度低以及區分商戶門店和住戶難度比較高等技術問題。 Embodiments of the present invention provide a method and a device for identifying a router address type, so as to at least solve technical problems such as lack of data, low data coverage, and high difficulty in distinguishing between a merchant store and a resident in the identification scheme of the router MAC address type in the related art.

根據本發明實施例的一個方面,提供了一種路由器地址類型的識別方法,包括:獲取服務端採集到的網路交互資料,所述網路交互資料中包括用戶的媒體接入控制MAC地址資料及路由器MAC地址資料;根據所述用戶的MAC地址資料及路由器MAC地址資料,確定路由器MAC地址和用戶MAC地址之間的關係;根據所述路由器MAC地址和用戶MAC地址之間的關係,統計預設週期內所述用戶的MAC地址資料中各個用戶MAC地址在接入所述路由器MAC地址對應的待識別路由器後得到的接入參數;依據統計結果與預設閾值的比較結果,識別所述待識別路由器的路由器MAC地址類型。 According to an aspect of the embodiment of the present invention, a method for identifying a router address type is provided, which includes: obtaining network interaction data collected by a server, and the network interaction data includes a user's media access control MAC address data and Router MAC address information; determining the relationship between the router MAC address and the user MAC address according to the user's MAC address information and the router MAC address information; and statistically presetting according to the relationship between the router MAC address and the user MAC address The access parameters of the MAC address data of each user in the period after accessing the router to be identified corresponding to the MAC address of the router; identifying the to-be-identified information based on the comparison between the statistical result and a preset threshold The router MAC address type of the router.

根據本發明實施例的另一方面,還提供了一種路由器地址類型的識別裝置,包括:第一獲取模組,用於獲取服務端採集到的網路交互資料,所述網路交互資料中包括用 戶的媒體接入控制MAC地址資料及路由器MAC地址資料;確定模組,用於根據所述用戶的MAC地址資料及路由器MAC地址資料,確定路由器MAC地址和用戶MAC地址之間的關係;統計模組,用於根據所述路由器MAC地址和用戶MAC地址之間的關係,統計預設週期內所述用戶的MAC地址資料中各個用戶MAC地址在接入所述路由器MAC地址對應的待識別路由器後得到的接入參數;識別模組,用於依據統計結果與預設閾值的比較結果,識別所述待識別路由器的路由器MAC地址類型。 According to another aspect of the embodiments of the present invention, a router address type identification device is further provided, including: a first acquisition module for acquiring network interaction data collected by a server, the network interaction data including A user's media access control MAC address data and router MAC address data; a determination module for determining the relationship between the router MAC address and the user MAC address according to the user's MAC address data and router MAC address data; a statistical model A group for counting the MAC address of each user in the MAC address data of the user in a preset period according to the relationship between the MAC address of the router and the MAC address of the user after accessing the router to be identified corresponding to the MAC address of the router The obtained access parameters; an identification module, configured to identify a router MAC address type of the router to be identified according to a comparison result of the statistical result and a preset threshold.

在本發明實施例中,採用在預設週期內統計所述用戶的MAC地址資料中各個用戶MAC地址在接入所述路由器MAC地址對應的待識別路由器後得到的接入參數所得到的統計結果與預設閾值的比較結果來判斷路由器的MAC地址類型,達到了提高覆蓋度和高效區分路由器地址類型的目的,進而解決了相關技術中MAC地址類型的識別方案存在資料匱乏、資料覆蓋度低以及區分商戶門店和住戶難度比較高等技術問題。 In the embodiment of the present invention, a statistical result obtained by using access parameters obtained by counting the MAC addresses of the users in the preset period after accessing the router to be identified corresponding to the router MAC address is used. The result of comparison with a preset threshold to determine the MAC address type of the router achieves the purposes of improving coverage and efficiently distinguishing router address types, thereby solving the lack of data, low data coverage of the identification scheme of the MAC address type in related technologies, and It is difficult to distinguish between commercial stores and residents and other technical issues.

10‧‧‧計算機終端 10‧‧‧Computer Terminal

42‧‧‧獲取模組 42‧‧‧Get Module

44‧‧‧確定模組 44‧‧‧ Determine the module

46‧‧‧統計模組 46‧‧‧ Statistics Module

48‧‧‧識別模組 48‧‧‧Identification Module

52‧‧‧第一識別單元 52‧‧‧The first identification unit

54‧‧‧第二識別單元 54‧‧‧Second identification unit

62‧‧‧判斷模組 62‧‧‧Judgment Module

64‧‧‧停止模組 64‧‧‧stop module

72‧‧‧獲取模組 72‧‧‧Get Module

82‧‧‧第一儲存模組 82‧‧‧first storage module

84‧‧‧第二儲存模組 84‧‧‧Second storage module

92‧‧‧處理器 92‧‧‧ processor

94‧‧‧記憶體 94‧‧‧Memory

96‧‧‧傳輸模組 96‧‧‧Transmission Module

102‧‧‧處理器 102‧‧‧ processor

104‧‧‧記憶體 104‧‧‧Memory

106‧‧‧傳輸模組 106‧‧‧Transmission Module

此處所說明的附圖用來提供對本發明的進一步理解,構成本發明的一部分,本發明的示意性實施例及其說明用於解釋本發明,並不構成對本發明的不當限定。在附圖中:圖1是本發明實施例的一種路由器地址類型的識別方 法的計算機終端的硬體結構框圖;圖2是根據本發明實施例的一種可選的路由器地址類型的識別方法的流程示意圖;圖3是根據本發明實施例的一種較佳的路由器地址類型的識別方法的流程示意圖;圖4是根據本發明實施例的一種可選的路由器地址類型的識別裝置的結構框圖;圖5是根據本發明實施例的一種可選的路由器地址類型的識別裝置的又一結構框圖;圖6是根據本發明實施例的一種可選的路由器地址類型的識別裝置的又一結構框圖;圖7是根據本發明實施例的一種可選的路由器地址類型的識別裝置的又一結構框圖;圖8是根據本發明實施例的一種可選的路由器地址類型的識別裝置的又一結構框圖;圖9是根據本發明實施例的一種計算機終端的結構框圖。 The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The schematic embodiments of the present invention and the descriptions thereof are used to explain the present invention, and do not constitute an improper limitation on the present invention. In the drawings: FIG. 1 is a block diagram of a hardware structure of a computer terminal for a method for identifying a router address type according to an embodiment of the present invention; FIG. 2 is an optional method for identifying a router address type according to an embodiment of the present invention 3 is a schematic flowchart of a preferred method for identifying a router address type according to an embodiment of the present invention; FIG. 4 is a structural block diagram of an optional router address type identification apparatus according to an embodiment of the present invention; 5 is another structural block diagram of an optional router address type identification device according to an embodiment of the present invention; FIG. 6 is another structural block diagram of an optional router address type identification device according to an embodiment of the present invention FIG. 7 is another structural block diagram of an optional router address type identification device according to an embodiment of the present invention; FIG. 8 is another optional router address type identification device according to an embodiment of the present invention; Structural block diagram; FIG. 9 is a structural block diagram of a computer terminal according to an embodiment of the present invention.

為了使本技術領域的人員更好地理解本發明方案,下面將結合本發明實施例中的附圖,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分的實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造 性勞動前提下所獲得的所有其他實施例,都應當屬本發明保護的範圍。 In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only The embodiments are part of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative work should fall within the protection scope of the present invention.

需要說明的是,本發明的說明書和申請專利範圍書及上述附圖中的術語“第一”、“第二”等是用於區別類似的對象,而不必用於描述特定的順序或先後次序。應該理解這樣使用的資料在適當情況下可以互換,以便這裡描述的本發明的實施例能夠以除了在這裡圖示或描述的那些以外的順序實施。此外,術語“包括”和“具有”以及他們的任何變形,意圖在於覆蓋不排他的包含,例如,包含了一系列步驟或單元的過程、方法、系統、產品或設備不必限於清楚地列出的那些步驟或單元,而是可包括沒有清楚地列出的或對於這些過程、方法、產品或設備固有的其它步驟或單元。 It should be noted that the terms "first" and "second" in the description and the scope of patent application of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. . It should be understood that the materials used as such are interchangeable under appropriate circumstances so that the embodiments of the invention described herein can be implemented in an order other than those illustrated or described herein. Furthermore, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units need not be limited to those explicitly listed Those steps or units may instead include other steps or units not explicitly listed or inherent to these processes, methods, products or equipment.

為便於理解本發明實施例,現將本發明實施例中所涉及的技術術語解釋如下:MAC地址:用來表示互聯網上每一個站點的標識符,採用十六進制數表示,共六個位元組(48位元)。其中,前三個位元組是由IEEE的註冊管理機構RA負責給不同廠家分配的代碼(高位24位元),也稱為“編制上唯一的標識符”(Organizationally Unique Identifier),後三個位元組(低位24位元)由各廠家自行指派給生產的適配器介面,稱為擴展標識符(唯一性)。 In order to facilitate understanding of the embodiments of the present invention, the technical terms involved in the embodiments of the present invention are explained as follows: MAC address: an identifier used to represent each site on the Internet, expressed in hexadecimal numbers, a total of six Bytes (48 bits). Among them, the first three bytes are the codes (high-order 24 bits) assigned by the IEEE registration authority RA to different manufacturers, also known as "Organizationally Unique Identifier", the last three bytes The byte (lower 24 bits) of the adapter interface assigned by each manufacturer to production is called the extended identifier (uniqueness).

路由器(Router),是連接網際網路中各局域網、廣域網的設備,它會根據信道的情況自動選擇和設定路由, 以最佳路徑,按前後順序發送信號。 A router is a device that connects LANs and WANs in the Internet. It automatically selects and sets routes based on the channel conditions, and sends signals in the order of the best path.

O2O:O2O即Online To Offline(稱為在線離線或線上到線下),是指將線下的商務機會與互聯網結合,讓互聯網成為線下交易的前臺。 O2O: O2O stands for Online To Offline (referred to as offline or online to offline), which refers to combining offline business opportunities with the Internet to make the Internet the front desk for offline transactions.

實施例1     Example 1    

根據本發明實施例,還提供了一種路由器地址類型的識別的方法實施例,需要說明的是,在附圖的流程圖示出的步驟可以在諸如一組計算機可執行指令的計算機系統中執行,並且,雖然在流程圖中示出了邏輯順序,但是在某些情況下,可以以不同於此處的順序執行所示出或描述的步驟。 According to an embodiment of the present invention, an embodiment of a method for identifying a router address type is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer-executable instructions. And, although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.

本發明實施例1所提供的方法實施例可以在行動終端、計算機終端或者類似的運算裝置中執行。以運行在計算機終端上為例,圖1是本發明實施例的一種路由器地址類型的識別方法的計算機終端的硬體結構框圖。如圖1所示,計算機終端10可以包括一個或多個(圖中僅示出一個)處理器102(處理器102可以包括但不限於微處理器MCU或可編程邏輯裝置FPGA等的處理裝置)、用於儲存資料的記憶體104、以及用於通信功能的傳輸模組106。本領域普通技術人員可以理解,圖1所示的結構僅為示意,其並不對上述電子裝置的結構造成限定。例如,計算機終端10還可包括比圖1中所示更多或者更少的組件,或者具有與圖1所示不同的配置。 The method embodiments provided in Embodiment 1 of the present invention may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a computer terminal as an example, FIG. 1 is a block diagram of a hardware structure of a computer terminal according to a method for identifying a router address type according to an embodiment of the present invention. As shown in FIG. 1, the computer terminal 10 may include one or more (only one shown in the figure) a processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) , A memory 104 for storing data, and a transmission module 106 for communication functions. Persons of ordinary skill in the art can understand that the structure shown in FIG. 1 is only schematic, and it does not limit the structure of the electronic device. For example, the computer terminal 10 may further include more or fewer components than those shown in FIG. 1, or have a configuration different from that shown in FIG. 1.

記憶體104可用於儲存應用軟體的軟體程序以及模組,如本發明實施例中的路由器地址類型的識別方法對應的程序指令/模組,處理器102通過運行儲存在記憶體104內的軟體程序以及模組,從而執行各種功能應用以及資料處理,即實現上述的應用程序的漏洞檢測方法。記憶體104可包括高速隨機記憶體,還可包括非揮發性記憶體,如一個或者多個磁性儲存裝置、快閃記憶體、或者其他非揮發性固態記憶體。在一些實例中,記憶體104可進一步包括相對於處理器102遠程設置的記憶體,這些遠程記憶體可以通過網路連接至計算機終端10。上述網路的實例包括但不限於互聯網、企業內部網、局域網、移動通信網及其組合。 The memory 104 may be used to store software programs and modules of application software, such as a program instruction / module corresponding to the method for identifying a router address type in the embodiment of the present invention. The processor 102 runs the software program stored in the memory 104 And modules to perform various functional applications and data processing, that is, to implement the vulnerability detection method of the above application program. The memory 104 may include high-speed random memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely disposed with respect to the processor 102, and these remote memories may be connected to the computer terminal 10 through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

傳輸模組106用於經由一個網路接收或者發送資料。上述的網路具體實例可包括計算機終端10的通信供應商提供的無線網路。在一個實例中,傳輸模組106包括一個網路適配器(Network Interface Controller,NIC),其可通過基地台與其他網路設備相連從而可與互聯網進行通訊。在一個實例中,傳輸模組106可以為射頻(Radio Frequency,RF)模組,其用於通過無線方式與互聯網進行通訊。 The transmission module 106 is used to receive or send data through a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a network interface controller (NIC), which can be connected to other network devices through the base station so as to communicate with the Internet. In one example, the transmission module 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

在上述運行環境下,本發明提供了如圖2所示的路由器地址類型的識別方法。圖2是根據本發明實施例的一種可選的路由器地址類型的識別方法的流程示意圖。如圖2所示,該方法包括以下處理步驟: Under the above operating environment, the present invention provides a method for identifying a router address type as shown in FIG. 2. FIG. 2 is a schematic flowchart of an optional router address type identification method according to an embodiment of the present invention. As shown in Figure 2, the method includes the following processing steps:

步驟S202,獲取服務端採集到的網路交互資料,網路交互資料中包括用戶的媒體接入控制MAC地址資料及路由器MAC地址資料;當然,在一個可選實施例中,上述網路交互資料中還可以包括用戶的位置資訊、路由器的位置資訊,此時,可以將路由器MAC地址類型與所述待識別路由器的位置資訊,儲存到資料庫中,以便可以基於上述兩種位置資訊根據實際情況進行不同的應用,例如,可以基於接入待識別路由器的用戶的位置資訊,確定待識別路由器的位置資訊等,但不限於此。需要說明的是,上述用戶的位置資訊和路由器的位置資訊可以表現為地理位置資訊,例如經緯度資訊等,但不限於此表現形式。 Step S202: Obtain the network interaction data collected by the server. The network interaction data includes the user's media access control MAC address data and the router MAC address data. Of course, in an optional embodiment, the above network interaction data It can also include the user's location information and the router's location information. At this time, the MAC address type of the router and the location information of the router to be identified can be stored in the database, so that the two kinds of location information can be used according to the actual situation. For different applications, for example, location information of a router to be identified may be determined based on location information of a user accessing the router to be identified, but is not limited thereto. It should be noted that the location information of the user and the router's location information can be expressed as geographic location information, such as latitude and longitude information, but are not limited to this representation.

在一個可選實施方式中,該步驟的具體實現方式有多種,例如,可以從第三方設備中獲取,也可以在本地獲取,也可以基於資料庫技術-提取、轉換、加載(Extract-Transform-Load,簡稱ETL)對歷史資料進行計算獲得。 In an optional implementation manner, there are multiple specific implementations of this step, for example, it can be obtained from a third-party device, or it can be obtained locally, or it can be based on the library technology-Extraction, Transformation, and Loading (Extract-Transform- Load (ETL for short) is obtained by calculating historical data.

步驟S204,根據用戶的MAC地址資料及路由器MAC地址資料,確定路由器MAC地址和用戶MAC地址之間的關係;可選地,此處路由器MAC地址和用戶MAC地址之間的關係可以表現為被接入和接入的關係,但不限於此表現形式。 Step S204: Determine the relationship between the router MAC address and the user MAC address according to the user's MAC address data and the router MAC address data. Optionally, the relationship between the router MAC address and the user MAC address may be expressed as being connected The relationship between access and access is not limited to this manifestation.

步驟S206,根據路由器MAC地址和用戶MAC地址之間的關係,統計預設週期內用戶的MAC地址資料中各 個用戶MAC地址在接入所述路由器MAC地址對應的待識別路由器後得到的接入參數。 Step S206: According to the relationship between the MAC address of the router and the MAC address of the user, collect the access parameters of each user MAC address in the user's MAC address data in a preset period after accessing the router to be identified corresponding to the router MAC address. .

可選地,該接入參數可以為用於反映接入待識別路由器的用戶數和/或接入頻次資訊的參數,例如,在一個可選實施例中,上述接入參數包括以下所列資訊中的一種資訊或任意組合後的資訊:在第一預設週期內待識別路由器所接入的用戶數、在第二預設週期內接入到待識別路由器的所有用戶的總接入次數和在第三預設週期內指定用戶接入待識別路由器的成功接入次數;可選地,此處預設週期可以根據實際情況設定,例如可以設定為一天、一個月、或一個季度等。例如,可以對一個月中每天成功接入上述路由器的用戶數進行統計,得到上述路由器的日均成功接入用戶數。 Optionally, the access parameter may be a parameter for reflecting the number of users accessing the router to be identified and / or access frequency information. For example, in an optional embodiment, the above access parameter includes the following information One type of information or information after any combination: the number of users connected to the router to be identified in the first preset period, the total number of access times of all users who access the router to be identified in the second preset period, and The number of successful accesses for the user to access the router to be identified is specified in the third preset period; optionally, the preset period here can be set according to actual conditions, for example, it can be set to one day, one month, or one quarter. For example, statistics on the number of users who successfully access the router each day during a month can be obtained to obtain the daily average number of successful users who access the router.

步驟S208,依據統計結果與預設閾值的比較結果,識別待識別路由器的路由器MAC地址類型。 In step S208, the type of the router MAC address of the router to be identified is identified according to a comparison result between the statistical result and a preset threshold.

此處預設閾值可以實際情況進行預先設定,比如根據步驟S206中的不同的資訊而預先設定不同的閾值。例如在一個可選實施方式中,如果步驟S206中的用戶數指路由器的日均成功接入用戶數,那麼與用戶數所對應的預設閾值可以根據路由器所允許的日均成功接入用戶數來設定閾值。 The preset threshold value can be set in advance in actual situations, for example, different threshold values are set in advance according to different information in step S206. For example, in an optional implementation manner, if the number of users in step S206 refers to the daily average number of successfully accessed users on the router, the preset threshold corresponding to the number of users may be based on the average daily number of successfully accessed users on the router. To set the threshold.

在本發明的一個可選實施例中,步驟S208的實現形式有多種,例如可以根據上述資訊中的任意一種資訊進行識別,也可以根據上述資訊中的任意兩種組合資訊或三種 資訊進行識別,以下結合可選實施例詳細說明:對於第一種情況,即依據上述資訊中的其中一種進行路由器MAC地址類型識別可以通過以下方式實現:以根據待識別路由器的用戶數為例,當待識別路由器接入的用戶數小於第一閾值時,將路由器MAC地址類型識別為住戶路由器;當待識別路由器接入的用戶數大於第二閾值且小於第三閾值時,將路由器MAC地址類型為商戶路由器。 In an optional embodiment of the present invention, there are multiple implementation forms of step S208, for example, it can be identified based on any one of the above information, or it can be identified based on any two or three types of information in the above information. The following is a detailed description in conjunction with an optional embodiment. For the first case, that is, the identification of the MAC address type of the router according to one of the above information can be implemented in the following manner: Taking the number of users of the router to be identified as an example, when the router to be identified is When the number of users accessed is less than the first threshold, the router MAC address type is identified as a residential router; when the number of users accessed by the router to be identified is greater than the second threshold and less than the third threshold, the router MAC address type is identified as a merchant router.

以依據上述總接入次數為例,當接入上述待識別路由器的所有用戶的總接入次數大於第四閾值時,將路由器MAC地址類型識別為商戶路由器。 Taking the above total access times as an example, when the total access times of all users accessing the router to be identified is greater than a fourth threshold, the router MAC address type is identified as a merchant router.

以依據上述成功接入次數為例,當成功接入次數大於第五閾值時,將路由器MAC地址類型識別為住戶路由器。 Taking the number of successful accesses as an example, when the number of successful accesses is greater than the fifth threshold, the router MAC address type is identified as a residential router.

對於第二種情況,可以按照資訊的優先級或者權重或者選舉的方式,最終確定路由器MAC地址類型。 In the second case, the MAC address type of the router can be finally determined according to the priority or weight of the information or election.

其中,對於按照優先級的實現方式,可以按照優先級從高到低的順序確定所使用的資訊,例如,在上述用戶數、上述總接入次數和上述成功接入次數的優先級為依次遞減時,可以優先使用用戶數進行路由器MAC地址識別,如果用戶數不滿足要求或者沒有統計用戶數時,可以採用次優先級的上述總接入次數,如果總接入次數不滿足要求,則使用上述成功接入次數。當然,上述優先級並不限於上述表現形式,每種資訊的優先級可以根據實際情況 確定。 For the implementation method according to the priority, the used information can be determined in order of priority from high to low. For example, the priority of the number of users, the total number of accesses, and the number of successful accesses decreases in order. In this case, the number of users can be used for router MAC address identification. If the number of users does not meet the requirements or the number of users is not counted, the total number of accesses of the second priority can be used. If the total number of accesses does not meet the requirements, the above is used. Number of successful accesses. Of course, the above priority is not limited to the above expressions, and the priority of each type of information can be determined according to the actual situation.

其中,對於按照權重的實現方式,可以為每種資訊賦予不同的權重將其中的兩種或三種資訊進行加權運算,以最終實現路由器MAC地址類型的識別。例如,以三種資訊結合使用為例,用A、B、C個字母依次表示上述用戶數、上述總接入次數和上述成功接入次數,a、b、c依次表示上述三種資訊的權重,用S表示總的加權值,則S=a*A+b*B+c*C,利用S的取值與預設閾值進行比較,從而根據比較結果識別路由器MAC地址類型,例如,當S大於預設閾值時,將待識別路由器的路由器MAC地址類型識別為商戶路由器;當S小於預設閾值時,將待識別路由器的路由器MAC地址類型識別為住戶路由器。需要說明的是,對於上述三種資訊中的任意兩種資訊的加權實現方式,其思路和上述實現過程類似,此處不再贅述。 Wherein, for the implementation method based on weights, different weights can be given to each kind of information, and two or three kinds of information can be weighted to achieve the identification of the MAC address type of the router. For example, using three types of information as an example, use A, B, and C letters to sequentially indicate the number of users, the total number of accesses, and the number of successful accesses. A, b, and c indicate the weights of the three types of information. S represents the total weighted value, then S = a * A + b * B + c * C. The value of S is compared with a preset threshold to identify the router MAC address type according to the comparison result. For example, when S is greater than When the threshold is set, the router MAC address type of the router to be identified is identified as a merchant router; when S is less than a preset threshold, the router MAC address type of the router to be identified is identified as a residential router. It should be noted that, for the weighted implementation of any two types of information, the thinking is similar to the foregoing implementation process, and is not repeated here.

其中,對於選舉的實現方式,可以依據相關技術中的選舉算法實現,例如bully演算法,環狀演算法等,但不限於此。 Wherein, the implementation of election can be implemented according to election algorithms in related technologies, such as bully algorithm, ring algorithm, etc., but is not limited thereto.

當然,除了可以依據上述實現方式實現對上述資訊的結合使用之外,還可以採用其他的實現方式,例如:在用戶數小於第一閾值,且總接入次數位於第六閾值和第七閾值之間的取值區間時,將路由器MAC地址類型識別為住戶路由器;在接入次數大於第七閾值且用戶數大於第一閾值時,將路由器MAC地址類型識別為商戶路由器。 Of course, in addition to the combined use of the above information according to the above implementations, other implementations can also be used, for example: when the number of users is less than the first threshold and the total number of accesses is between the sixth and seventh thresholds When the value range of time is between, the router MAC address type is identified as a residential router; when the number of accesses is greater than the seventh threshold and the number of users is greater than the first threshold, the router MAC address type is identified as a merchant router.

在一個可選實施例中,還可以利用上述閾值進一步地對路由器MAC地址類型進行識別,例如,在上述接入次數位於上述取值區間,但是上述用戶數大於第一閾值時,可以將該路由器識別為“疑似家庭用戶路由器”,還可以在接入次數小於第一閾值時,將路由器識別為其他類型的路由器。然後可以依據該識別結果對上述路由器進行後續處理,例如,對該路由器根據預設規則進一步進行識別,或者,對該路由器按照預設策略推送對應的資訊等。 In an optional embodiment, the threshold value of the router may be further used to identify the MAC address type of the router. For example, when the number of accesses is in the value range, but the number of users is greater than the first threshold, the router may be used. The router is identified as a “suspected home user router”, and the router may also be identified as another type of router when the number of accesses is less than the first threshold. Then, the router may be further processed according to the recognition result, for example, further identifying the router according to a preset rule, or pushing corresponding information to the router according to a preset policy.

在一個可選實施例中,還可以對家庭用戶路由器MAC地址的類型進行進一步識別。例如,在路由器的MAC地址類型為家庭用戶路由器時,獲取在第四預設週期內路由器在工作日的接入次數和非工作日的接入次數;依據路由器在工作日的接入次數和非工作日的接入次數的比例與預設閾值的比較結果對家庭用戶路由器所對應的家庭用戶類型進一步識別。例如,可以在該比例小於預設閾值時,將其識別為工作型家庭用戶,如果大於預設閾值,則將路由器識別為生活型家庭用戶。 In an optional embodiment, the type of the MAC address of the home user router may be further identified. For example, when the type of the MAC address of the router is a home user router, the number of access times of the router on working days and the number of non-working days during the fourth preset period is obtained; The comparison result between the ratio of the number of accesses on a working day and a preset threshold further identifies the type of home user corresponding to the home user router. For example, when the ratio is less than a preset threshold, it may be identified as a work-type home user, and if it is greater than the preset threshold, the router may be identified as a life-type home user.

又例如,獲取在第五預設週期內路由器在每日的指定時間段內的接入次數,以及在第五預設週期內的日均接入次數;獲取路由器在每日的指定時間段內的接入次數與日均接入次數的比例,並依據比例與預設閾值的比較結果對家庭用戶路由器所對應的家庭用戶類型進一步識別。例如在該比例小於預設閾值時,將將其識別為工作日家中無用戶的工作型家庭用戶,如果大於預設閾值,則將路由器識 別為工作日家中有用戶的家庭用戶。 For another example, obtain the number of accesses of the router in a specified period of time during the fifth preset period, and the average number of accesses of the day in the fifth preset period; The ratio of the number of accesses to the average number of accesses per day, and the type of the home user corresponding to the home user router is further identified according to the comparison result between the ratio and the preset threshold. For example, when the ratio is less than a preset threshold, it is identified as a work-type home user with no users in the home on weekdays. If the ratio is greater than the preset threshold, the router is identified as a home user with users in the home on weekdays.

當然,基於本發明實施例的思想,還可以基於採集的其它資訊對路由器MAC地址類型進一步識別,例如可以採集工作日中家庭用戶接入該路由器的時長,在該時長大於一個預設閾值時,判定該家庭用戶為工作日中接入路由器超時的家庭用戶。 Of course, based on the idea of the embodiment of the present invention, the type of the router's MAC address can be further identified based on other collected information. For example, the length of time a home user accesses the router during a working day can be collected, where the length is greater than a preset threshold At that time, it is determined that the home user is a home user whose access router times out during the working day.

需要說明的是,本發明實施例中具體路由器MAC地址的類型名稱,例如“住戶路由器”“商戶路由器”等,僅是用於描述和區分不同的MAC地址類型,並不對路由器類型進行限定,可以將其理解為兩個不同的類型(第一類型和第二類型)。 It should be noted that, in the embodiments of the present invention, the type names of specific router MAC addresses, such as "resident router" and "commercial router", are only used to describe and distinguish different types of MAC addresses, and do not limit the types of routers. It is understood as two different types (a first type and a second type).

可選地,第一預設週期、第二預設週期和第三預設週期可以為相同或者不同的週期;第四預設週期和第五預設週期可以為相同或者不同的週期;並且第一預設週期、第二預設週期和第三預設週期可以為第四預設週期或第五預設週期的子週期,例如第一預設週期、第二預設週期或第三預設週期為對第四預設週期或第五預設週期進行劃分得到,又例如,在第四預設週期或第五預設週期為月時,則第一預設週期、第二預設週期或第三預設週期可以該月中的日或周;在第四預設週期或第五預設週期為季度時,第一預設週期、第二預設週期或第三預設週期可以為該季度中的月等,但不限於此表現形式。 Optionally, the first preset period, the second preset period, and the third preset period may be the same or different periods; the fourth preset period and the fifth preset period may be the same or different periods; and A preset period, a second preset period, and a third preset period may be sub-periods of the fourth preset period or the fifth preset period, such as the first preset period, the second preset period, or the third preset period. The period is obtained by dividing the fourth preset period or the fifth preset period. For example, when the fourth preset period or the fifth preset period is a month, the first preset period, the second preset period, or The third preset period may be the day or week of the month; when the fourth preset period or the fifth preset period is a quarter, the first preset period, the second preset period, or the third preset period may be the Months of the quarter, etc., but not limited to this representation.

通過上述各個處理步驟,由於住戶路由器和商戶路由器成功接入在預設週期內待識別路由器所接入的用戶數、 在預設週期內接入到待識別路由器的所有用戶的總接入次數和在預設週期內指定用戶接入所述待識別路由器的成功接入次數不同,因而可以通過根據上述資訊對路由器的路由器MAC地址類型進行識別,從而可以解決相關技術中MAC地址類型的識別方案存在資料匱乏、資料覆蓋度低以及區分商戶門店和家庭用戶難度比較高等技術問題,提高了覆蓋度,並降低了路由器地址類型識別的難度。 Through the above processing steps, since the residential router and the merchant router successfully access the number of users accessed by the router to be identified within a preset period, the total number of access times of all users who access the router to be identified within the preset period, and The number of successful accesses of the designated user to the router to be identified during the preset period is different. Therefore, the router MAC address type can be identified based on the above information, which can solve the existence of a MAC address type identification scheme in related technologies. Technical issues such as lack of data, low data coverage, and high difficulty in distinguishing merchant stores from home users have increased coverage and reduced the difficulty of identifying router address types.

在一個可選實施例中,執行步驟S204之前或者在步驟S202之後,需要對公共路由器MAC地址進行剔除,以準確識別住戶路由器或商戶路由器,即在步驟S204之前識別設備需要判斷上述路由器的MAC地址是否是公共路由器MAC地址;如果是,則停止對上述路由器的MAC地址類型進行家庭用戶路由器或商戶路由器的識別。由於路由器也可能是公共路由器,因而,在進行判定是家庭用戶路由器或商戶路由器之前,先判斷該路由器是否是公共路由器,進而排除掉公共路由器的干擾,使得對家庭用戶路由器或商戶路由器的識別更加快速、準確。可選地,對於公共路由器MAC地址的識別方式可以通過檢測為公共路由器MAC地址配置的特徵字段識別,也可以通過判斷預設週期內接入的用戶數進行統計,當接入的用戶數大於預設閾值時,則判斷該路由器MAC地址為公共路由器MAC地址,其中,該預設閾值遠遠大於商戶路由器的成功接入用戶數的最大閥值。當然,也可以利用已有的公共路由器MAC地址庫,對網路交互資料中的路由器MAC 地址資料進行過濾,其中,過濾後的路由器MAC地址資料中不包含公共路由器MAC地址資料,此時,步驟S204可以表現為:根據用戶的MAC地址資料及過濾後的路由器MAC地址資料,確定路由器MAC地址和用戶MAC地址之間的關係。 In an optional embodiment, before performing step S204 or after step S202, the public router MAC address needs to be removed to accurately identify the residential router or the merchant router, that is, the identifying device needs to determine the MAC address of the router before step S204. Whether it is a public router MAC address; if it is, stop identifying the home user router or the merchant router for the MAC address type of the router. Because the router may also be a public router, before judging whether it is a home user router or a business router, first determine whether the router is a public router, and then eliminate the interference of the public router, so that the home user router or the business router is more identified. Fast and accurate. Optionally, the identification method of the public router MAC address can be identified by detecting the feature field configured for the public router MAC address, or it can be counted by judging the number of users accessed within a preset period. When the threshold value is set, the router MAC address is judged to be a public router MAC address, wherein the preset threshold value is far greater than the maximum threshold of the number of successfully accessed users of the merchant router. Of course, you can also use the existing public router MAC address library to filter the router MAC address data in the network interaction data. The filtered router MAC address data does not include the public router MAC address data. At this time, the steps S204 can be expressed as: determining the relationship between the router MAC address and the user MAC address according to the user's MAC address data and the filtered router MAC address data.

在一個可選實施例中,還可以統計在上述預設週期內指定用戶成功接入上述路由器的次數,得到用戶重複接入次數。這樣,便可以對指定用戶的行為進行統計,從而基於用戶的行為統計結果進行相關的商業應用。例如:可以通過用戶重複接入次數進行室友關係的識別,下面會詳細介紹,此處不再贅述。 In an optional embodiment, the number of times that the designated user successfully accesses the router in the preset period may also be counted to obtain the number of repeated access times of the user. In this way, the behavior of the specified user can be counted, and related business applications can be performed based on the results of the user's behavior statistics. For example, the roommate relationship can be identified by the number of repeated user accesses, which will be described in detail below, and will not be repeated here.

可選的,在獲取在統計時間週期內成功接入路由器的用戶數之前,上述方法還包括:獲取用戶的MAC地址,上述用戶的MAC地址對應的地理位置,上述路由器的MAC地址,上述路由器的MAC地址對應的地理位置。可選地,本發明實施例中的地理位置可以表現為經緯度資訊、海拔資訊等衛星定位資訊,也可以表現為城市、街道、商戶、辦公室等位置資訊,但不限於此。可選的,對於地理位置的確定方式可以有多種,比如單一測量,多次測量取平均等等,但不限於此。較佳地,可以基於歷史資料,將獲取的路由器的多個GPS經緯度取平均值,得到該路由器的平均GPS經緯度,利用該平均GPS經緯度表示該路由器的地理位置。 Optionally, before obtaining the number of users who have successfully accessed the router within the statistical time period, the method further includes: obtaining the MAC address of the user, the geographic location corresponding to the MAC address of the user, the MAC address of the router, and the router's The geographic location corresponding to the MAC address. Optionally, the geographical location in the embodiment of the present invention may be expressed as satellite positioning information such as latitude and longitude information, altitude information, and may also be expressed as location information such as a city, a street, a merchant, and an office, but is not limited thereto. Optionally, there may be multiple methods for determining the geographic location, such as a single measurement, averaging multiple measurements, etc., but it is not limited to this. Preferably, based on historical data, multiple GPS latitudes and longitudes of the obtained router can be averaged to obtain the average GPS latitude and longitude of the router, and the average GPS latitude and longitude can be used to represent the geographical position of the router.

在上述路由器的MAC地址類型為商戶路由器時,將 上述商戶路由器的MAC地址、上述商戶路由器的MAC地址對應的地理位置、上述成功接入路由器的用戶數、上述用戶重複接入次數保存至商戶MAC地址庫(在使用商戶門店的路由器表示商戶路由器時,該商戶MAC地址庫可以表現為商戶MAC地址庫);在上述路由器的MAC地址類型為住戶路由器時,則將上述住戶路由器的MAC地址、上述住戶路由器的MAC地址對應的地理位置保存至住戶MAC地址庫。 When the type of the MAC address of the router is a merchant router, save the MAC address of the merchant router, the geographic location corresponding to the MAC address of the merchant router, the number of users who successfully access the router, and the number of repeated access times of the user to the merchant MAC. Address library (when the router of a merchant store is used to represent a merchant router, the merchant MAC address library can be expressed as a merchant MAC address library); when the type of the MAC address of the router is a residential router, the MAC address of the residential router, the The geographic location corresponding to the MAC address of the household router is saved to the household MAC address database.

這樣,便可以根據上述商戶MAC地址庫、住戶MAC地址庫還有公共路由器MAC地址庫中儲存的路由器的MAC地址及其類型,進行各種O2O的商業應用。例如,依據步驟S208得到的識別結果將與路由器MAC地址類型對應的消息推送至上述待識別路由器或者接入上述待識別路由器的用戶,但不限於此,例如:還可以實現以下應用:在一個可選實施例中,可以進行商戶門店的推薦,可選的,推薦方法可以是:需要說明的是,上述推薦方式可以有多種實現方式,比如,可以通過(1)分別對滿足條件的用戶進行商店門戶推送,也可以通過(2)對滿足條件的用戶一起進行商店門戶的推送。 In this way, various O2O commercial applications can be carried out according to the MAC addresses and types of routers stored in the above-mentioned merchant MAC address library, household MAC address library, and public router MAC address library. For example, according to the recognition result obtained in step S208, a message corresponding to the MAC address type of the router is pushed to the router to be identified or a user accessing the router to be identified, but is not limited thereto. For example, the following applications can also be implemented: In the alternative embodiment, the recommendation of a merchant store can be performed. Optionally, the recommendation method can be: It should be noted that the above recommendation method can be implemented in multiple ways. For example, (1) each of the users who meet the conditions can be shopped. For portal push, you can also push the store portal to users who meet the conditions together (2).

對於第(1)種方式,可以通過以下方式實現,但不限於此:每次從住戶的路由器MAC地址中取出一個住戶的地理位置,如果該住戶的地理位置與商戶門店的地理位 置之間的距離小於指定距離,就將該商戶門店的描述資訊推送至這個住戶,然後再從住戶的路由器MAC地址中取出一個住戶的地理位置,再判斷,然後再推送,以此類推。 For the method (1), it can be implemented in the following ways, but is not limited to this: each time a resident's geographic location is taken from the resident's router MAC address, if the location of the resident and the location of the merchant's store If the distance is less than the specified distance, the description of the merchant's store is pushed to the resident, and then the resident's geographic location is taken from the resident's router MAC address, and then judged, then pushed, and so on.

對於第(2)種方式,可以通過以下方式實現,但不限於此:先要從商戶MAC地址庫中獲取該商店門戶的地理位置,然後將距離該商店門戶的地理位置小於指定距離的那些住戶篩選出來,再將該商戶門店的描述資訊一起推送至篩選出來的所有用戶,其中,上述指定距離可以根據實際需求靈活設定,例如可以設置為500公尺、1公里、2公里等。 For the (2) method, it can be implemented by the following methods, but is not limited to this: firstly obtain the geographic location of the store portal from the merchant MAC address database, and then set those households that are less than the specified distance from the geographic location of the store portal After filtering out, the description information of the merchant store is pushed to all the users who have been screened out. The specified distance can be flexibly set according to actual needs, for example, it can be set to 500 meters, 1 km, 2 km, etc.

需要說明的是,上述描述資訊可以為商戶門店的名稱、經營內容、特色、路線等等,但不限於此。 It should be noted that the above description information may be the name, business content, characteristics, route, etc. of the merchant store, but is not limited thereto.

在另一個可選實施例中,可以對連接在一個路由器上的幾個用戶之間的關係(比如,同事關係、室友關係等)進行識別,以室友關係為例說明。對室友關係進行識別方法可以是:獲取兩個以上用戶成功接入的住戶路由器MAC地址;判斷上述兩個以上用戶的成功接入的住戶路由器MAC地址是否相同;如果相同,判斷上述兩個以上用戶成功接入上述住戶路由器MAC地址的重複接入次數是否大於預設重複接入次數;如果是,則判定上述兩個以上用戶為室友關係。 In another optional embodiment, a relationship (for example, a colleague relationship, a roommate relationship, and the like) between several users connected to a router may be identified, and the roommate relationship is taken as an example for illustration. The method for identifying the roommate relationship may be: obtaining the MAC addresses of the residential routers successfully accessed by two or more users; determining whether the MAC addresses of the residential routers successfully accessed by the two or more users are the same; if they are the same, judging the two or more users Whether the number of repeated accesses for successfully accessing the MAC address of the residential router is greater than a preset number of repeated accesses; if so, determining that the two or more users are roommates.

在另一個可選實施例中,可以進行商戶門店客流量的監控,監控的方法可以是:從商戶MAC地址庫中獲取指 定商戶的上述成功接入路由器的用戶數;利用上述用戶數監控上述指定商戶的客流量。 In another optional embodiment, customer store customer traffic monitoring can be performed. The monitoring method may be: obtaining the above-mentioned number of users who successfully access the router from the merchant's MAC address database; and using the above-mentioned number of users to monitor the above-mentioned designation. Merchant traffic.

在該實施例中,通過商戶門店的成功接入路由器的用戶數來對商戶門店的客流量進行監控,得到該商戶門店一段時間內的客流量的變化。對用戶而言,用戶通過客流量的變化,可以獲知該商戶門店的受歡迎程度,進而決定是否進入該商戶門店進行消費;對於商戶門店而言,通過客流量的變化,可以獲知該商戶門店的近期營業情況,能夠有效幫助該商店門戶進行分析,為什麼最近客流量減少,或者為什麼最近客流量會增多,進而促進該商店門戶的發展。 In this embodiment, the customer traffic of the merchant store is monitored by the number of users who successfully access the router at the merchant store to obtain the change in the passenger flow of the merchant store over a period of time. For users, through the changes in customer traffic, users can know the popularity of the merchant's store, and then decide whether to enter the merchant's store for consumption; for merchant stores, through the change in passenger traffic, they can know the merchant's store. The recent business situation can effectively help the store portal to analyze, why the recent footfall has decreased, or why the recent footfall has increased, thereby promoting the development of the store portal.

在一個可選實施例中,可以對商戶門店進行老客戶的識別,識別方式可以是:從商戶MAC地址庫中獲取指定用戶成功接入指定商戶路由器的用戶重複接入次數;將上述指定用戶的用戶重複接入次數與第二預設閾值進行比較;如果上述用戶重複接入次數大於上述第二預設閾值,則判斷上述指定用戶為上述指定商戶的常光顧客戶。 In an optional embodiment, the old customers of the merchant store can be identified. The identification method can be: obtaining from the merchant's MAC address database the number of repeated accesses by the user who successfully accesses the designated merchant router; The number of repeated user accesses is compared with a second preset threshold; if the number of repeated user accesses is greater than the second preset threshold, the designated user is determined to be a frequent patron of the designated merchant.

為了便於理解上述方法,以下結合一個可選實施例進行詳細說明,先給出如下假設:假設系統可以採集用戶MAC地址、路由器MAC地址、用戶MAC地址對應的地理位置和路由器MAC地址對應的地理位置,且可以定期對其進行採集更新;假設系統可以對歷史採集的資料進行儲存,保留歷史的資料;假設擁有海量資料處理平臺,可以對大量資料進行計算;基於以上假設,以商戶路由器為 商戶門店路由器為例,結合圖3詳細說明,如圖3所示,基本流程如下:S302,服務端資料交互,即用戶不僅能連接系統,而且能與系統進行網路互通和交互;S304,資料采集,即獲取用戶的MAC地址和成功接入的路由器MAC地址,以及對應的GPS經緯度地址資訊;S309,歷史資料儲存,即對步驟S304定期採集的歷史資料進行儲存;判斷儲存的路由器是否是公共路由器,如果不是公共路由器,則執行步驟S308,如果是公共路由器,執行步驟S310;S308,ETL計算路由器MAC地址和用戶MAC地址關係,即用戶接入MAC地址的頻次,和路由器成功接入用戶的人數和頻次,具體如下:基於歷史資料,ETL計算一段時間內路由器MAC成功接入用戶數和成功接入次數;基於歷史資料,計算路由器平均GPS經緯度地址資訊;S310,維護公共路由器MAC地址庫,如中國聯通、中國電信、高鐵免費WIFI等公共路由器的MAC地址;S312,對路由器MAC地址進行識別判斷,即通過識別路由器MAC地址判斷該路由器是商戶門店路由器還是住戶路由器。識別判斷方法具體如下:設定住戶路由器日均成功接入用戶數最大閥值為R;設定商戶門店路由器日均成功接入用戶數最小閥值為M1,最大閥值為M2;排除 公共路由器MAC地址庫中的路由器資料;依次對所有路由器MAC進行判斷,如果路由器日均成功接入用戶數小於R,則判斷為住戶路由器,否則如果路由器日均成功接入用戶大於M1且小於M2,則判斷為商戶門店路由器,其他情況則判斷為無法識別資料;S314,如果判定為商戶路由器,則將商戶MAC地址、GPS經緯度資料、日平均接入用戶數、用戶重複接入頻次等資料保存入商戶MAC地址庫;S316,如果判定為住戶路由器,則將住戶MAC地址及其GPS經緯度資料保存入住戶MAC地址庫;當然,也可以將家庭用戶類型、路由器不同時段的接入占比,工作日與非工作日的接入次數占比等資料也儲存至家庭用戶MAC地址庫;S318,基於產生的公共路由器MAC地址庫、商戶MAC地址庫、住戶MAC地址庫,進行各種O2O的商業應用,其中包含且不僅限於如下商業活動:商戶門店推薦,即將商戶門店推薦給附近的住戶;室友識別,即經常連在一個路由器的幾個人一般是室友關係;商戶門店客流量監控,即通過商戶路由器每天接入的用戶數可以監控每天的客戶流量;商戶門店老客戶識別,即經常來商戶門店並連路由器的用戶,基本上為老客戶。 In order to facilitate the understanding of the above method, a detailed description is given below in conjunction with an optional embodiment. The following assumptions are first given: Assume that the system can collect user MAC addresses, router MAC addresses, geographic locations corresponding to user MAC addresses, and geographic locations corresponding to router MAC addresses. And it can be collected and updated regularly; assuming that the system can store historically collected data and retain historical data; assuming a massive data processing platform, it can calculate a large amount of data; based on the above assumptions, the merchant router is used as the merchant store The router is taken as an example and described in detail with reference to Figure 3. As shown in Figure 3, the basic process is as follows: S302, server-side data interaction, that is, users can not only connect to the system, but also communicate and interact with the system through the network; S304, data collection, That is, the MAC address of the user and the MAC address of the successfully accessed router, as well as the corresponding GPS latitude and longitude address information are obtained; S309, historical data storage, that is, historical data collected periodically in step S304 is stored; determining whether the stored router is a public router, If it is not a public router, then Step S308 is performed. If it is a public router, step S310 is performed; S308, the ETL calculates the relationship between the router MAC address and the user MAC address, that is, the frequency of users accessing the MAC address, and the number and frequency of users successfully accessing the router, as follows: Historical data, ETL calculates the number of successful users and successful access times of the router MAC over a period of time; based on historical data, calculates the average GPS latitude and longitude address information of the router; S310, maintains public router MAC address databases, such as China Unicom, China Telecom, and high-speed rail The MAC address of a public router such as free WIFI; S312, the router MAC address is identified and judged, that is, the router MAC address is determined by identifying the router MAC address as a merchant store router or a household router. The specific identification method is as follows: set the maximum daily successful user access threshold for residential routers as R; set the minimum daily successful user access threshold for merchant store routers as M1 and maximum threshold M2; exclude public router MAC addresses Router information in the library; judge all router MACs in turn. If the number of users successfully accessed by the router per day is less than R, it is judged as a residential router; otherwise, if the number of users successfully accessed by the router per day is greater than M1 and less than M2, it is judged as Merchant store routers, otherwise it is judged that the data cannot be identified; S314, if it is judged as a merchant router, it stores the merchant MAC address, GPS latitude and longitude data, the average daily number of users, and the frequency of repeated access by the user into the merchant MAC address S316, if it is determined to be a household router, the household MAC address and its GPS latitude and longitude data are stored in the household MAC address database; of course, it is also possible to store the type of household users, the access ratio of the router at different times, working days and non-working Data such as the proportion of daily accesses are also stored in the home user MAC address database; S318, basic The generated public router MAC address database, merchant MAC address database, and household MAC address database are used for various O2O commercial applications, including but not limited to the following commercial activities: merchant store recommendations, that is, merchant stores recommended to nearby residents; roommate identification, That is, several people who are often connected to a router are usually roommates. The customer store traffic monitoring of merchants, that is, the number of users who access each day through the merchant router, can monitor the daily customer traffic. The old customers of the merchant store are identified, that is, they often come to the merchant store and connect. Users of routers are basically old customers.

需要說明的是,圖2和圖3所示實施例及其可選實施例中的方法可以在伺服器側執行,還可以在客戶端側執行,例如,對於後者,可以通過運行於用戶設備上的客戶 端應用執行,但不限於此表現形式。 It should be noted that the methods in the embodiments shown in FIG. 2 and FIG. 3 and the optional embodiments thereof may be executed on the server side and may also be executed on the client side. For example, for the latter, it may be run on the user equipment. Client applications execute, but are not limited to this manifestation.

需要說明的是,對於前述的各方法實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是本領域技術人員應該知悉,本發明並不受所描述的動作順序的限制,因為依據本發明,某些步驟可以採用其他順序或者同時進行。其次,本領域技術人員也應該知悉,說明書中所描述的實施例均屬較佳實施例,所涉及的動作和模組並不一定是本發明所必須的。 It should be noted that, for the foregoing method embodiments, for simplicity of description, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action order. Because according to the present invention, certain steps may be performed in another order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

通過以上的實施方式的描述,本領域的技術人員可以清楚地瞭解到根據上述實施例的方法可借助軟體加必需的通用硬體平臺的方式來實現,當然也可以通過硬體,但很多情況下前者是更佳的實施方式。基於這樣的理解,本發明的技術方案本質上或者說對現有技術做出貢獻的部分可以以軟體產品的形式體現出來,該計算機軟體產品儲存在一個儲存媒體(如ROM/RAM、磁碟、光碟)中,包括若干指令用以使得一台終端設備(可以是手機,計算機,伺服器,或者網路設備等)執行本發明各個實施例上述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary universal hardware platform. Of course, it can also be implemented by hardware, but in many cases The former is a better implementation. Based on such an understanding, the technical solution of the present invention, in essence, or a part that contributes to the existing technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk). ) Includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the above-mentioned methods in various embodiments of the present invention.

實施例2     Example 2    

根據本發明實施例,還提供了一種用於實施上述路由器地址類型的識別方法的裝置,圖4是根據本發明實施例的一種可選的路由器地址類型的識別裝置的結構框圖;如圖4所示,該裝置包括: 獲取模組42,用於獲取服務端採集到的網路交互資料,網路交互資料中包括用戶的媒體接入控制MAC地址資料及路由器MAC地址資料;確定模組44,用於根據用戶的MAC地址資料及路由器MAC地址資料,確定路由器MAC地址和用戶MAC地址之間的關係;統計模組46,用於根據路由器MAC地址和用戶MAC地址之間的關係,統計預設週期內用戶的MAC地址資料中各個用戶MAC地址在接入所述路由器MAC地址對應的待識別路由器後得到的接入參數。 According to an embodiment of the present invention, a device for implementing the foregoing router address type identification method is also provided. FIG. 4 is a structural block diagram of an optional router address type identification device according to an embodiment of the present invention; as shown in FIG. 4 As shown, the device includes: an acquisition module 42 for acquiring network interaction data collected by a server, and the network interaction data includes a user's media access control MAC address data and a router MAC address data; a determination module 44 Is used to determine the relationship between the router MAC address and the user's MAC address according to the user's MAC address data and the router's MAC address data; the statistics module 46 is used to calculate the pre-statistics based on the relationship between the router's MAC address and the user's MAC address. It is assumed that the access parameters of each user's MAC address in the MAC address data of the user obtained after accessing the router to be identified corresponding to the router's MAC address.

可選地,該接入參數用於反映接入待識別路由器的用戶數和/或接入頻次資訊,例如,上述接入參數包括以下所列資訊中的一種資訊或任意組合後的資訊:在第一預設週期內待識別路由器所接入的用戶數、在第二預設週期內接入到待識別路由器的所有用戶的總接入次數和在第三預設週期內指定用戶接入待識別路由器的成功接入次數;識別模組48,用於依據統計結果與預設閾值的比較結果,識別待識別路由器的路由器MAC地址類型。 Optionally, the access parameter is used to reflect information on the number of users accessing the router to be identified and / or access frequency information. For example, the above access parameter includes one of the information listed below or any combination of information: in The number of users connected to the router to be identified in the first preset period, the total number of accesses of all users who have accessed the router to be identified in the second preset period, and the designated users to access the router in the third preset period. The number of successful accesses of the router is identified; the identification module 48 is configured to identify the type of the router MAC address of the router to be identified according to the comparison result of the statistical result with a preset threshold.

在本發明的一個可選實施例中,可以通過設置不同的閾值來識別路由器的MAC地址類型,例如,可以用於識別住戶路由器、商戶路由器等。具體地,識別模組48,還用於在待識別路由器接入的用戶數小於第一閾值時,將路由器MAC地址類型識別為住戶路由器;以及在待識別路由器接入的用戶數大於第二閾值且小於第三閾值時,將 路由器MAC地址類型識別為商戶路由器。 In an optional embodiment of the present invention, the MAC address type of the router can be identified by setting different thresholds, for example, it can be used to identify a residential router, a merchant router, and the like. Specifically, the identification module 48 is further configured to identify the router MAC address type as a residential router when the number of users accessing the router to be identified is less than a first threshold; and the number of users accessing the router to be identified is greater than a second threshold When it is less than the third threshold, the router MAC address type is identified as a merchant router.

可選地,識別模組48,還用於在所有用戶的總接入次數大於第四閾值時,將路由器MAC地址類型識別為商戶路由器。 Optionally, the identification module 48 is further configured to identify the router MAC address type as a merchant router when the total number of accesses of all users is greater than the fourth threshold.

可選地,識別模組48,還用於在成功接入次數大於第五閾值時,將路由器MAC地址類型識別為住戶路由器。 Optionally, the identification module 48 is further configured to identify the router MAC address type as a residential router when the number of successful accesses is greater than a fifth threshold.

可選地,識別模組48,還可以用於在用戶數小於第一閾值,且總接入次數位於第六閾值和第七閾值之間的取值區間時,將路由器MAC地址類型識別為住戶路由器;在接入次數大於第七閾值且用戶數大於第一閾值時,將路由器MAC地址類型識別為商戶路由器。 Optionally, the identification module 48 may also be used to identify the router MAC address type as a resident when the number of users is less than the first threshold and the total number of accesses is within a value range between the sixth threshold and the seventh threshold. Router; when the number of accesses is greater than the seventh threshold and the number of users is greater than the first threshold, the router MAC address type is identified as a merchant router.

獲取模組42還用於在路由器的MAC地址類型為家庭用戶路由器時,獲取在第四預設週期內路由器在工作日的接入次數和非工作日的接入次數;或者,獲取在第五預設週期內路由器在每日的指定時間段內的接入次數,以及在第五預設週期內的日均接入次數;相應地,識別模組48,還用於依據路由器在工作日的接入次數和非工作日的接入次數的比例與預設閾值的比較結果對家庭用戶路由器所對應的家庭用戶類型進一步識別;或者,依據路由器在每日的指定時間段內的接入次數與日均接入次數的比例,與預設閾值的比較結果對家庭用戶路由器所對應的家庭用戶類型進一步識別。 The obtaining module 42 is further configured to obtain the access times of the router on working days and non-working days in the fourth preset period when the MAC address type of the router is a home user router; The number of accesses of the router within a specified period of time in a preset period and the average number of accesses per day in a fifth preset period; accordingly, the identification module 48 is also used to The comparison between the ratio of the number of access times and the number of non-working day access times with a preset threshold further identifies the type of home user corresponding to the home user router; or, based on the router's access times and The ratio of the average daily access times to the preset threshold further identifies the type of home user corresponding to the home user router.

可選地,如圖5所示,識別模組48的上述功能可以 通過其所包括的兩個單元來完成:第一識別單元52和第二識別單元54。例如,第一識別單元52用於依據路由器在工作日的接入次數和非工作日的接入次數的比例與第三預設閾值的比較結果對家庭用戶路由器所對應的家庭用戶類型進一步識別;第二識別單元54,用於依據路由器在每日的指定時間段內的接入次數與日均接入次數的比例,與預設閾值的比較結果對家庭用戶路由器所對應的家庭用戶類型進一步識別。 Optionally, as shown in FIG. 5, the above functions of the identification module 48 may be completed by two units included in it: a first identification unit 52 and a second identification unit 54. For example, the first identifying unit 52 is configured to further identify a home user type corresponding to the home user router according to a comparison result of the ratio of the number of access times of the router on working days and the number of access times on non-working days with a third preset threshold; The second identification unit 54 is configured to further identify the type of the home user corresponding to the home user router according to a comparison result of the number of accesses of the router within a specified time period of the day and the average number of daily access times with a preset threshold. .

通過上述各個模組實現的功能,同樣可以解決相關技術中路由器MAC地址類型的識別方案存在資料匱乏、資料覆蓋度低以及區分商戶門店和住戶難度比較高等的技術問題,提高了覆蓋度,並降低了路由器地址類型識別的難度。 The functions implemented by the above modules can also solve the technical problems of the identification scheme of the router's MAC address type in the related technology, such as the lack of data, low data coverage, and the difficulty of distinguishing between merchant stores and residents, which improves coverage and reduces This makes it difficult to identify the address type of the router.

在一個可選實施例中,需要對公共路由器MAC地址進行剔除,以準確識別住戶路由器或商戶路由器,圖6是根據本發明實施例的一種可選的路由器地址類型的識別裝置的又一結構框圖;如圖6所示,上述裝置還可以包括:判斷模組62,與獲取模組42連接,用於判斷上述路由器的MAC地址是否是公共路由器MAC地址;停止模組64,與判斷模組62連接,用於在上述路由器的MAC地址是公共路由器MAC地址情況下,停止對上述路由器的MAC地址類型進行住戶路由器或商戶路由器的識別。由於路由器也可能是公共路由器,因而,在進行判定是住戶路由器或商戶路由器之前,先判斷該路由器是否是公共路 由器,進而排除掉公共路由器的干擾,使得對住戶路由器或商戶路由器的識別更加快速、準確。可選地,對於公共路由器MAC地址的識別方式可以通過檢測為公共路由器MAC地址配置的特徵字段識別,也可以通過判斷統計週期內接入的用戶數進行統計,當接入的用戶數大於預設閾值時,則判斷該路由器MAC地址為公共路由器MAC地址,其中,該預設閾值遠遠大於商戶路由器的成功接入用戶數的最大閥值。 In an optional embodiment, the public router MAC address needs to be eliminated to accurately identify the residential router or the merchant router. FIG. 6 is another structural block of an optional router address type identification device according to an embodiment of the present invention. As shown in FIG. 6, the above device may further include a determination module 62 connected to the acquisition module 42 to determine whether the MAC address of the router is a public router MAC address; a stop module 64 and a determination module The 62 connection is used to stop the residential router or the merchant router from identifying the MAC address type of the router when the MAC address of the router is a public router MAC address. Because the router may also be a public router, before determining whether it is a residential router or a commercial router, first determine whether the router is a public router, and then eliminate the interference of the public router, so that the identification of the residential router or the commercial router is faster, accurate. Optionally, the identification method of the public router MAC address can be identified by detecting the feature field configured for the public router MAC address, or it can be counted by judging the number of users accessed during the statistical period. When the number of users accessed is greater than a preset When the threshold value is reached, it is judged that the router MAC address is a public router MAC address, wherein the preset threshold value is far greater than the maximum threshold of the number of successfully accessed users of the merchant router.

在一個可選實施例中,獲取模組42,還用於統計在上述預設週期內指定用戶成功接入上述路由器的次數,得到用戶重複接入次數。這樣,便可以對指定用戶的行為進行統計,從而基於用戶的行為統計結果進行相關的商業應用。例如:可以通過用戶重複接入次數進行室友關係的識別,下面會詳細介紹,此處不再贅述。 In an optional embodiment, the obtaining module 42 is further configured to count the number of times that the specified user successfully accesses the router during the preset period to obtain the number of repeated access times of the user. In this way, the behavior of the specified user can be counted, and related business applications can be performed based on the results of the user's behavior statistics. For example, the roommate relationship can be identified by the number of repeated user accesses, which will be described in detail below, and will not be repeated here.

可選的,圖7是根據本發明實施例的一種可選的路由器地址類型的識別裝置的又一結構框圖;如圖7所示,上述裝置還包括獲取模組72,與獲取模組42連接,用於獲取用戶的MAC地址,上述用戶的MAC地址對應的地理位置,上述路由器的MAC地址,上述路由器的MAC地址對應的地理位置。可選地,本發明實施例中的地理位置可以表現為經緯度資訊、海拔資訊等衛星定位資訊,也可以表現為城市、街道、商戶、辦公室等位置資訊,但不限於此。 Optionally, FIG. 7 is another structural block diagram of an optional router address type identification device according to an embodiment of the present invention; as shown in FIG. 7, the above device further includes an acquisition module 72 and an acquisition module 42. The connection is used to obtain the MAC address of the user, the geographic location corresponding to the MAC address of the user, the MAC address of the router, and the geographic location corresponding to the MAC address of the router. Optionally, the geographical location in the embodiment of the present invention may be expressed as satellite positioning information such as latitude and longitude information, altitude information, and may also be expressed as location information such as a city, a street, a merchant, and an office, but is not limited thereto.

可選的,圖8是根據本發明實施例的一種可選的路由 器地址類型的識別裝置的又一結構框圖;如圖8所示,上述裝置還包括第一儲存模組82,用於在上述路由器的MAC地址類型為商戶路由器時,將上述商戶路由器的MAC地址、上述商戶路由器的MAC地址對應的地理位置、上述成功接入路由器的用戶數、上述用戶重複接入次數保存至商戶MAC地址庫;第二儲存模組84,用於在上述路由器的MAC地址類型為住戶路由器時,則將上述住戶路由器的MAC地址、上述住戶路由器的MAC地址對應的地理位置保存至住戶MAC地址庫。 Optionally, FIG. 8 is another structural block diagram of an optional router address type identification device according to an embodiment of the present invention; as shown in FIG. 8, the above device further includes a first storage module 82 for When the type of the MAC address of the router is a merchant router, the MAC address of the merchant router, the geographic location corresponding to the MAC address of the merchant router, the number of users successfully accessing the router, and the number of repeated access times of the user are stored in the merchant MAC address. A second storage module 84 for storing the MAC address of the residential router and the geographic location corresponding to the MAC address of the residential router to the residential MAC address database when the MAC address type of the router is a residential router.

這樣,便可以根據公共路由器MAC地址庫和上述裝置得到的商戶MAC地址庫住戶MAC地址庫中儲存的路由器的MAC地址及其類型,可以進行各種O2O的商業應用。以下進行舉例說明:在一個可選實施例中,可以進行商戶門店的推薦:從商戶MAC地址庫中獲取與指定商戶的路由器MAC地址對應的地理位置;從住戶MAC地址庫中獲取與住戶的路由器MAC地址對應的地理位置;判斷上述指定商戶的MAC地址對應的地理位置與上述住戶路由器的MAC地址對應的地理位置之間的距離是否小於指定距離;如果是,則將上述指定商戶的描述資訊推送至上述住戶。 In this way, according to the MAC address library of the public router and the merchant MAC address library and the MAC address of the router stored in the household MAC address library obtained by the device, various O2O commercial applications can be performed. The following is an example: In an optional embodiment, a recommendation of a merchant store can be made: obtaining the geographic location corresponding to the router MAC address of the designated merchant from the merchant MAC address database; obtaining the router from the household MAC address database The geographic location corresponding to the MAC address; determine whether the distance between the geographic location corresponding to the MAC address of the specified merchant and the geographic location corresponding to the MAC address of the residential router is less than the specified distance; if so, push the description information of the specified merchant To the above households.

需要說明的是,上述推薦方式可以有多種實現方式,比如,可以通過(1)分別對滿足條件的用戶進行商店門戶推送,也可以通過(2)對滿足條件的用戶一起進行商店門戶的推送。 It should be noted that the above-mentioned recommendation methods can be implemented in various ways, for example, the user can push the store portal to the users who meet the conditions through (1), or push the store portal to the users who meet the conditions through (2).

對於第(1)種方式,可以通過以下方式實現,但不限於此:每次從住戶的路由器MAC地址中取出一個住戶的地理位置,如果該住戶的地理位置與商戶門店的地理位置之間的距離小於指定距離,就將該商戶門店的描述資訊推送至這個住戶,然後再從住戶的路由器MAC地址中取出一個住戶的地理位置,再判斷,然後再推送,以此類推。 For the method (1), it can be implemented in the following ways, but is not limited to this: each time a resident's geographic location is taken from the resident's router MAC address, if the location of the resident and the location of the merchant's store If the distance is less than the specified distance, the description of the merchant's store is pushed to the resident, and then the resident's geographic location is taken from the resident's router MAC address, and then judged, then pushed, and so on.

對於第(2)種方式,可以通過以下方式實現,但不限於此:先要從商戶MAC地址庫中獲取該商店門戶的地理位置,然後將距離該商店門戶的地理位置小於指定距離的那些住戶篩選出來,再將該商戶門店的描述資訊一起推送至篩選出來的所有用戶,其中,上述指定距離可以根據實際需求靈活設定,例如可以設置為500公尺、1公里、2公里等。 For the (2) method, it can be implemented by the following methods, but is not limited to this: firstly obtain the geographic location of the store portal from the merchant MAC address database, and then set those households that are less than the specified distance from the geographic location of the store portal After filtering out, the description information of the merchant store is pushed to all the users who have been screened out. The specified distance can be flexibly set according to actual needs, for example, it can be set to 500 meters, 1 km, 2 km, etc.

需要說明的是,上述描述資訊可以為商戶門店的名稱、經營內容、特色、路線等等,但不限於此。 It should be noted that the above description information may be the name, business content, characteristics, route, etc. of the merchant store, but is not limited thereto.

在另一個可選實施例中,可以進行對連接在一個路由器上的幾個用戶之間的關係(比如,同事關係、室友關係等)進行識別,以室友關係為例說明。對室友關係進行識別:獲取兩個以上用戶成功接入的住戶路由器MAC地址;判斷上述兩個以上用戶的成功接入的住戶路由器MAC地址是否相同;如果相同,判斷上述兩個以上用戶成功接入上述住戶路由器MAC地址的重複接入次數是否大於預設重複接入次數;如果是,則判定上述兩個以上用 戶為室友關係。 In another optional embodiment, the relationship (for example, a colleague relationship, a roommate relationship, etc.) between several users connected to a router may be identified, and the roommate relationship is taken as an example for illustration. Identify roommate relationships: Obtain the MAC addresses of the residential routers successfully accessed by two or more users; determine whether the MAC addresses of the residential routers successfully accessed by the two or more users are the same; if they are the same, judge the successful access of the two or more users Whether the number of repeated accesses of the residential router MAC address is greater than a preset number of repeated accesses; if so, it is determined that the two or more users are roommates.

在一個可選實施例中,可以進行商戶門店客流量的監控:從商戶MAC地址庫中獲取指定商戶的上述成功接入路由器的用戶數;利用上述用戶數監控上述指定商戶的客流量。 In an optional embodiment, the monitoring of the customer traffic of the merchant store can be performed: the number of users who successfully access the router of the specified merchant is obtained from the merchant MAC address database; and the customer traffic of the specified merchant is monitored by using the number of users.

在該實施例中,通過商戶門店的成功接入路由器的用戶數來對商戶門店的客流量進行監控,得到該商戶門店一段時間內的客流量的變化。對用戶而言,用戶通過客流量的變化,可以獲知該商戶門店的受歡迎程度,進而決定是否進入該商戶門店進行消費;對於商戶門店而言,通過客流量的變化,可以獲知該商戶門店的近期營業情況,能夠有效幫助該商店門戶進行分析,為什麼最近客流量減少,或者為什麼最近客流量會增多,進而促進該商店門戶的發展。 In this embodiment, the customer traffic of the merchant store is monitored by the number of users who successfully access the router at the merchant store to obtain the change in the passenger flow of the merchant store over a period of time. For users, through the changes in customer traffic, users can know the popularity of the merchant's store, and then decide whether to enter the merchant's store for consumption; for merchant stores, through the change in passenger traffic, they can know the merchant's store. The recent business situation can effectively help the store portal to analyze, why the recent footfall has decreased, or why the recent footfall has increased, thereby promoting the development of the store portal.

在一個可選實施例中,可以對商戶門店進行老客戶的識別:從商戶MAC地址庫中獲取指定用戶成功接入指定商戶路由器的用戶重複接入次數;將上述指定用戶的用戶重複接入次數與第二預設閾值進行比較;如果上述用戶重複接入次數大於上述第二預設閾值,則判斷上述指定用戶為上述指定商戶的常光顧客戶。 In an optional embodiment, the old customers can be identified in the merchant store: the number of repeated accesses by the user who successfully accesses the designated merchant router from the merchant MAC address database; the number of repeated accesses by the user of the specified user Compare with the second preset threshold; if the number of repeated accesses of the user is greater than the second preset threshold, determine that the designated user is a frequent patron of the designated merchant.

實施例3     Example 3    

本發明的實施例可以提供一種計算機終端,該計算機終端可以是計算機終端群中的任意一個計算機終端設備。 可選地,在本實施例中,上述計算機終端也可以替換為行動終端等終端設備。 An embodiment of the present invention may provide a computer terminal, and the computer terminal may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal described above may also be replaced with a terminal device such as a mobile terminal.

可選地,在本實施例中,上述計算機終端可以位於計算機網路的多個網路設備中的至少一個網路設備。 Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices in a computer network.

在本實施例中,上述計算機終端可以執行應用程序的路由器地址類型的識別的方法以下步驟的程序代碼:獲取服務端採集到的網路交互資料,網路交互資料中包括用戶的媒體接入控制MAC地址資料及路由器MAC地址資料;根據用戶的MAC地址資料及路由器MAC地址資料,確定路由器MAC地址和用戶MAC地址之間的關係;根據路由器MAC地址和用戶MAC地址之間的關係,統計預設週期內以下所列資訊中的一種資訊或任意組合後的資訊:在第一預設週期內待識別路由器所接入的用戶數、在第二預設週期內接入到待識別路由器的所有用戶的總接入次數和在第三預設週期內指定用戶接入待識別路由器的成功接入次數;依據統計結果與預設閾值的比較結果,識別待識別路由器的路由器MAC地址類型。 In this embodiment, the computer terminal may execute the method for identifying a router address type of an application program code of the following steps: obtaining network interaction data collected by a server, and the network interaction data includes a user's media access control MAC address data and router MAC address data; determine the relationship between router MAC address and user MAC address according to the user's MAC address data and router MAC address data; according to the relationship between router MAC address and user MAC address, statistical presets One or any combination of the following information in the period: the number of users connected to the router to be identified in the first preset period, and all users connected to the router to be identified in the second preset period The total number of accesses and the number of successful accesses of the designated user to the router to be identified in the third preset period; and the type of the router MAC address of the router to be identified is identified according to the comparison between the statistical result and a preset threshold.

可選地,圖9是根據本發明實施例的一種計算機終端的結構框圖。如圖9所示,該計算機終端A可以包括:一個或多個(圖中僅示出一個)處理器92、記憶體94、以及傳輸模組96。 Optionally, FIG. 9 is a structural block diagram of a computer terminal according to an embodiment of the present invention. As shown in FIG. 9, the computer terminal A may include one or more processors (only one is shown in the figure), a processor 92, a memory 94, and a transmission module 96.

其中,記憶體94可用於儲存軟體程序以及模組,如本發明實施例中的路由器地址類型的識別的方法和裝置對應的程序指令/模組,處理器通過運行儲存在記憶體內的 軟體程序以及模組,從而執行各種功能應用以及資料處理,即實現上述的路由器地址類型的識別的方法。記憶體94可包括高速隨機記憶體,還可以包括非揮發性記憶體,如一個或者多個磁性儲存裝置、快閃記憶體、或者其他非揮發性固態記憶體。在一些實例中,記憶體94可進一步包括相對於處理器遠程設置的記憶體,這些遠程記憶體可以通過網路連接至終端A。上述網路的實例包括但不限於互聯網、企業內部網、局域網、移動通信網及其組合。 The memory 94 may be used to store software programs and modules, such as the method and device corresponding to the router address type identification method program instructions / modules in the embodiment of the present invention. The processor runs the software programs stored in the memory and Module to perform various functional applications and data processing, that is, the method for identifying the above-mentioned router address type. The memory 94 may include high-speed random memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 94 may further include a memory remotely disposed with respect to the processor, and these remote memories may be connected to the terminal A through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

上述的傳輸模組96用於經由一個網路接收或者發送資料。上述的網路具體實例可包括有線網路及無線網路。在一個實例中,傳輸模組96包括一個網路適配器(Network Interface Controller,NIC),其可通過網線與其他網路設備與路由器相連從而可與互聯網或局域網進行通訊。在一個實例中,傳輸模組96為射頻(Radio Frequency,RF)模組,其用於通過無線方式與互聯網進行通訊。 The above-mentioned transmission module 96 is used to receive or send data through a network. Specific examples of the aforementioned network may include a wired network and a wireless network. In one example, the transmission module 96 includes a network adapter (NIC), which can be connected to other network devices and routers through a network cable to communicate with the Internet or a local area network. In one example, the transmission module 96 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

其中,具體地,記憶體94用於儲存預設動作條件和預設權限用戶的資訊、以及應用程序。 Specifically, the memory 94 is configured to store information of a preset action condition and a preset authority user, and an application program.

處理器92可以通過傳輸模組96調用記憶體94儲存的資訊及應用程序,以執行下述步驟:當待識別路由器接入的用戶數小於第一閾值時,將路由器MAC地址類型識別為住戶路由器;當待識別路由器接入的用戶數大於第二閾值且小於第三閾值時,將所述路由器MAC地址類型識 別為商戶路由器。 The processor 92 may call the information and applications stored in the memory 94 through the transmission module 96 to perform the following steps: when the number of users connected to the router to be identified is less than the first threshold, the router MAC address type is identified as a residential router When the number of users accessed by the router to be identified is greater than the second threshold and less than the third threshold, the router MAC address type is identified as a merchant router.

可選的,上述處理器92還可以執行如下步驟的程序代碼:當所述所有用戶的總接入次數大於第四閾值時,將所述路由器MAC地址類型識別為商戶路由器;或者,當所述成功接入次數大於第五閾值時,將所述路由器MAC地址類型識別為住戶路由器。 Optionally, the processor 92 may further execute the program code of the following steps: when the total access times of all users is greater than a fourth threshold, identifying the router MAC address type as a merchant router; or, when the When the number of successful accesses is greater than the fifth threshold, the router MAC address type is identified as a residential router.

可選的,上述處理器92還可以執行如下步驟的程序代碼:在所述用戶數小於所述第一閾值,且所述總接入次數位於第六閾值和第七閾值之間的取值區間時,將所述路由器MAC地址類型識別為住戶路由器;在所述接入次數大於所述第七閾值且所述用戶數大於所述第一閾值時,將所述路由器MAC地址類型識別為商戶路由器。 Optionally, the processor 92 may further execute the program code of the following steps: when the number of users is less than the first threshold, and the total number of accesses is in a value range between a sixth threshold and a seventh threshold When the router MAC address type is identified as a residential router; when the number of accesses is greater than the seventh threshold and the number of users is greater than the first threshold, the router MAC address type is identified as a merchant router .

可選的,上述處理器92還可以執行如下步驟的程序代碼:在路由器的MAC地址類型為住戶路由器時,獲取在第四預設週期內路由器在工作日的接入次數和非工作日的接入次數;依據路由器在工作日的接入次數和非工作日的接入次數的比例與預設閾值的比較結果對住戶路由器所對應的住戶類型進一步識別;或者,在路由器的MAC地址類型為住戶路由器時,獲取在第五預設週期內路由器在每日的指定時間段內的接入次數,以及在第五預設週期內的日均接入次數;獲取路由器在每日的指定時間段內的接入次數與日均接入次數的比例,並依據比例與預設閾值的比較結果對住戶路由器所對應的住戶類型進一步識別。 Optionally, the processor 92 may further execute the program code of the following steps: when the MAC address type of the router is a residential router, obtain the number of accesses of the router on the working day and the number of accesses on the non-working day in the fourth preset period. The number of accesses; the type of the resident corresponding to the resident router is further identified according to the comparison of the ratio of the number of access times of the router on working days and the number of access times on non-working days with the preset threshold; When the router is acquired, the number of accesses of the router in the specified daily period of time in the fifth preset period and the average number of daily accesses of the router in the fifth preset period are acquired; The ratio of the number of accesses to the average number of accesses per day, and the type of the resident corresponding to the resident router is further identified according to the comparison result between the ratio and the preset threshold.

可選的,上述處理器92還可以執行如下步驟的程序 代碼:利用公共路由器MAC地址庫,對網路交互資料中的路由器MAC地址資料進行過濾,其中,過濾後的路由器MAC地址資料中不包含公共路由器MAC地址資料;以及根據用戶的MAC地址資料及過濾後的路由器MAC地址資料,確定路由器MAC地址和用戶MAC地址之間的關係。 Optionally, the processor 92 may further execute the program code of the following steps: using a public router MAC address library to filter router MAC address data in network interaction data, wherein the filtered router MAC address data does not include Public router MAC address data; and determining the relationship between the router MAC address and the user MAC address based on the user's MAC address data and the filtered router MAC address data.

可選的,上述處理器92還可以執行如下步驟的程序代碼:從商戶MAC地址庫中獲取與指定商戶的路由器MAC地址對應的地理位置;從住戶MAC地址庫中獲取與住戶的路由器MAC地址對應的地理位置;判斷上述指定商戶的MAC地址對應的地理位置與上述住戶路由器的MAC地址對應的地理位置之間的距離是否小於指定距離;如果是,則將上述指定商戶的描述資訊推送至上述住戶。 Optionally, the processor 92 may further execute the program code of the following steps: obtaining the geographic location corresponding to the router MAC address of the designated merchant from the merchant MAC address database; obtaining the correspondence corresponding to the router MAC address of the household from the household MAC address database Determine whether the distance between the geographic location corresponding to the MAC address of the designated merchant and the geographic location corresponding to the MAC address of the household router is less than the designated distance; if so, push the description information of the designated merchant to the household .

可選的,上述處理器92還可以執行如下步驟的程序代碼:獲取兩個以上用戶成功接入的住戶路由器MAC地址;判斷上述兩個以上用戶的成功接入的住戶路由器MAC地址是否相同;如果相同,判斷上述兩個以上用戶成功接入上述住戶路由器MAC地址的重複接入次數是否大於預設重複接入次數;如果是,則判定上述兩個以上用戶為室友關係。 Optionally, the processor 92 may also execute the program code of the following steps: obtaining the MAC address of the residential router successfully accessed by two or more users; determining whether the MAC address of the residential router successfully accessed by the two or more users is the same; if In the same manner, it is determined whether the number of repeated accesses of the two or more users successfully accessing the MAC address of the resident router is greater than a preset number of repeated accesses; if so, it is determined that the two or more users are roommates.

可選的,上述處理器92還可以執行如下步驟的程序代碼:根據接入所述待識別路由器的用戶的位置資訊,確定所述待識別路由器的位置資訊;將所述路由器MAC地 址類型與所述待識別路由器的位置資訊,儲存到資料庫中。 Optionally, the processor 92 may further execute the program code of the following steps: determining the location information of the router to be identified according to the location information of a user accessing the router to be identified; The location information of the router to be identified is stored in the database.

可選的,上述處理器92還可以執行如下步驟的程序代碼:依據識別結果將與所述路由器MAC地址類型對應的消息推送至所述待識別路由器或者接入所述待識別路由器的用戶。 Optionally, the processor 92 may further execute the program code of the following steps: according to the recognition result, push a message corresponding to the MAC address type of the router to the router to be identified or a user accessing the router to be identified.

採用本發明實施例,提供了一種路由器地址類型的識別方法的方案。通過根據獲取的路由器的成功接入用戶數,並根據該用戶數對路由器的類別進行識別,從而達到了提高覆蓋度和高效區分路由器地址類型的目的,進而解決了相關技術中MAC地址類型的識別方案存在資料匱乏、資料覆蓋度低以及區分商戶門店和住戶難度比較高等技術問題。 The embodiment of the present invention provides a solution for a method for identifying a router address type. By identifying the number of successfully accessed users of the router and identifying the type of router based on the number of users, the purposes of improving coverage and efficiently distinguishing router address types are achieved, and the identification of MAC address types in related technologies is solved The plan has technical problems such as lack of data, low data coverage, and difficulty in distinguishing between merchant stores and residents.

本領域普通技術人員可以理解,圖9所示的結構僅為示意,計算機終端也可以是智慧手機(如Android手機、iOS手機等)、平板電腦、掌上電腦以及移動互聯網設備(Mobile Internet Devices,MID)、PAD等終端設備。圖9其並不對上述電子裝置的結構造成限定。例如,計算機終端A還可包括比圖9中所示更多或者更少的組件(如網路介面、顯示裝置等),或者具有與圖9所示不同的配置。 Those of ordinary skill in the art can understand that the structure shown in FIG. 9 is only an illustration, and the computer terminal may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, and a mobile Internet device (Mobile Internet Devices, MID). ), PAD and other terminal equipment. FIG. 9 does not limit the structure of the electronic device. For example, the computer terminal A may further include more or fewer components (such as a network interface, a display device, etc.) than those shown in FIG. 9, or may have a configuration different from that shown in FIG. 9.

本領域普通技術人員可以理解上述實施例的各種方法中的全部或部分步驟是可以通過程序來指令終端設備相關的硬體來完成,該程序可以儲存於一計算機可讀儲存媒體 中,儲存媒體可以包括:隨身碟、唯讀記憶體(Read-Only Memory,ROM)、隨機存取記憶體(Random Access Memory,RAM)、磁碟或光碟等。 Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by a program instructing hardware related to the terminal device. The program can be stored in a computer-readable storage medium, and the storage medium can Including: flash drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.

實施例4     Example 4    

本發明的實施例還提供了一種儲存媒體。可選地,在本實施例中,上述儲存媒體可以用於保存上述實施例1所提供的路由器地址類型的識別的方法所執行的程序代碼。 An embodiment of the present invention also provides a storage medium. Optionally, in this embodiment, the foregoing storage medium may be used to store program code executed by the method for identifying a router address type provided in the foregoing Embodiment 1.

可選地,在本實施例中,上述儲存媒體可以位於計算機網路中計算機終端群中的任意一個計算機終端中,或者位於行動終端群中的任意一個行動終端中。 Optionally, in this embodiment, the storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

可選地,在本實施例中,儲存媒體被設置為儲存用於執行以下步驟的程序代碼:獲取服務端採集到的網路交互資料,所述網路交互資料中包括用戶的媒體接入控制MAC地址資料及路由器MAC地址資料;根據所述用戶的MAC地址資料及路由器MAC地址資料,確定路由器MAC地址和用戶MAC地址之間的關係;根據所述路由器MAC地址和用戶MAC地址之間的關係,統計預設週期內用戶的MAC地址資料中各個用戶MAC地址在接入路由器MAC地址對應的待識別路由器後得到的接入參數;依據統計結果與預設閾值的比較結果,識別所述待識別路由器的路由器MAC地址類型。 Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: obtaining network interaction data collected by the server, where the network interaction data includes a user's media access control MAC address data and router MAC address data; determine the relationship between the router MAC address and the user MAC address according to the user's MAC address data and the router MAC address information; according to the relationship between the router MAC address and the user MAC address , Counting the access parameters of each user's MAC address in the user's MAC address data in a preset period after accessing the router to be identified corresponding to the MAC address of the router; identifying the to-be-identified according to a comparison between the statistical result and a preset threshold The router MAC address type of the router.

可選地,在本實施例中,儲存媒體被設置為儲存用於執行以下步驟的程序代碼:當待識別路由器接入的用戶數 小於第一閾值時,將路由器MAC地址類型識別為住戶路由器;當待識別路由器接入的用戶數大於第二閾值且小於第三閾值時,將上述路由器MAC地址類型識別為商戶路由器;或者,當上述所有用戶的總接入次數大於第四閾值時,將上述路由器MAC地址類型識別為商戶路由器;或者,當上述成功接入次數大於第五閾值時,將上述路由器MAC地址類型識別為住戶路由器;或者,在上述用戶數小於上述第一閾值,且上述總接入次數位於第六閾值和第七閾值之間的取值區間時,將上述路由器MAC地址類型識別為住戶路由器;在上述接入次數大於上述第七閾值且上述用戶數大於上述第一閾值時,將上述路由器MAC地址類型識別為商戶路由器。 Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: when the number of users accessing the router to be identified is less than the first threshold, identifying the router MAC address type as a residential router; When the number of users accessing the router to be identified is greater than the second threshold and less than the third threshold, the router MAC address type is identified as a merchant router; or when the total number of accesses of all the users is greater than the fourth threshold, the above The router MAC address type is identified as a merchant router; or when the number of successful accesses is greater than a fifth threshold, the router MAC address type is identified as a residential router; or, when the number of users is less than the first threshold, and the general connection is When the number of entries is within a value range between the sixth threshold and the seventh threshold, the router MAC address type is identified as a residential router; when the number of accesses is greater than the seventh threshold and the number of users is greater than the first threshold, The above router MAC address type is identified as a merchant router.

可選地,在本實施例中,儲存媒體被設置為儲存用於執行以下步驟的程序代碼:在上述路由器的MAC地址類型為住戶路由器時,獲取在第四預設週期內上述路由器在工作日的接入次數和非工作日的接入次數;依據上述路由器在工作日的接入次數和非工作日的接入次數的比例與預設閾值的比較結果對上述住戶路由器所對應的住戶類型進一步識別;或者,在上述路由器的MAC地址類型為住戶路由器時,獲取在第五預設週期內上述路由器在每日的指定時間段內的接入次數,以及在上述第五預設週期內的日均接入次數;獲取上述路由器在每日的指定時間段內的接入次數與上述日均接入次數的比例,並依據上述比例與預設閾值的比較結果對上述住戶路由器所對應的住戶類型進 一步識別。 Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: when the type of the MAC address of the router is a residential router, obtaining the router on a working day within a fourth preset period The number of access times and the number of non-working days; according to the comparison of the ratio of the number of access times of the routers during the working day and the number of non-working days and the preset threshold, the type of households corresponding to the residential routers is further Identification; or, when the type of the MAC address of the router is a resident router, obtain the number of accesses of the router in a specified time period of each day in the fifth preset period, and the day of the fifth preset period. Average number of accesses; obtain the ratio of the number of accesses of the router in the specified time period of the day to the average number of daily accesses, and compare the type of households corresponding to the residential routers based on the comparison of the ratio and the preset threshold Further identification.

可選地,在本實施例中,儲存媒體被設置為儲存用於執行以下步驟的程序代碼:利用公共路由器MAC地址庫,對上述網路交互資料中的路由器MAC地址資料進行過濾,其中,過濾後的路由器MAC地址資料中不包含公共路由器MAC地址資料;根據上述用戶的MAC地址資料及上述過濾後的路由器MAC地址資料,確定上述路由器MAC地址和用戶MAC地址之間的關係。 Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: using a public router MAC address library to filter router MAC address data in the above-mentioned network interaction data, where the filtering The subsequent router MAC address information does not include the public router MAC address information; according to the MAC address information of the user and the filtered router MAC address information, the relationship between the router MAC address and the user MAC address is determined.

可選地,在本實施例中,儲存媒體被設置為儲存用於執行以下步驟的程序代碼:在獲取在統計時間週期內成功接入路由器的用戶數之前,獲取用戶的MAC地址,上述用戶的MAC地址對應的地理位置,上述路由器的MAC地址,上述路由器的MAC地址對應的地理位置。 Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: before obtaining the number of users who successfully access the router within a statistical time period, obtain the MAC address of the user, The geographic location corresponding to the MAC address, the MAC address of the router, and the geographic location corresponding to the MAC address of the router.

可選地,在本實施例中,儲存媒體被設置為儲存用於執行以下步驟的程序代碼:在上述路由器的MAC地址類型為商戶路由器時,將上述商戶路由器的MAC地址、上述商戶路由器的MAC地址對應的地理位置、上述成功接入路由器的用戶數、上述用戶重複接入次數保存至商戶MAC地址庫;在上述路由器的MAC地址類型為住戶路由器時,則將上述住戶路由器的MAC地址、上述住戶路由器的MAC地址對應的地理位置保存至住戶MAC地址庫。 Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: when the type of the MAC address of the router is a merchant router, the MAC address of the merchant router and the MAC of the merchant router The geographic location corresponding to the address, the number of users successfully accessing the router, and the number of repeated accesses by the user are stored in the merchant's MAC address database. When the MAC address type of the router is a residential router, the MAC address of the residential router, the The geographic location corresponding to the MAC address of the household router is saved to the household MAC address database.

可選地,在本實施例中,儲存媒體被設置為儲存用於執行以下步驟的程序代碼:從商戶MAC地址庫中獲取與 指定商戶的路由器MAC地址對應的地理位置;從住戶MAC地址庫中獲取與住戶的路由器MAC地址對應的地理位置;判斷上述指定商戶的MAC地址對應的地理位置與上述住戶路由器的MAC地址對應的地理位置之間的距離是否小於指定距離;如果是,則將上述指定商戶的描述資訊推送至上述住戶。 Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: obtaining a geographic location corresponding to a router MAC address of a designated merchant from a merchant MAC address library; and acquiring from a household MAC address library Obtain the geographic location corresponding to the MAC address of the router of the resident; determine whether the distance between the geographic location corresponding to the MAC address of the specified merchant and the geographic location corresponding to the MAC address of the household router is less than the specified distance; if so, the above specified The description of the merchant is pushed to the above households.

可選地,在本實施例中,儲存媒體被設置為儲存用於執行以下步驟的程序代碼:獲取兩個以上用戶成功接入的住戶路由器MAC地址;判斷上述兩個以上用戶的成功接入的住戶路由器MAC地址是否相同;如果相同,判斷上述兩個以上用戶成功接入上述住戶路由器MAC地址的重複接入次數是否大於預設重複接入次數;如果是,則判定上述兩個以上用戶為室友關係。 Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: obtaining the MAC address of the residential router that two or more users have successfully accessed; determining the successful access of the two or more users Whether the residential router MAC address is the same; if they are the same, determine whether the repeated access times of the above two users successfully accessing the residential router MAC address are greater than the preset repeated access times; if so, determine that the above two users are roommates relationship.

可選地,在本實施例中,儲存媒體被設置為儲存用於執行以下步驟的程序代碼:從商戶MAC地址庫中獲取指定商戶的上述成功接入路由器的用戶數;利用上述用戶數監控上述指定商戶的客流量。 Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: obtaining the above-mentioned number of users who successfully access the router from the merchant's MAC address database; and using the above-mentioned number of users to monitor the above Traffic for the specified business.

可選地,在本實施例中,儲存媒體被設置為儲存用於執行以下步驟的程序代碼:從商戶MAC地址庫中獲取指定用戶成功接入指定商戶路由器的用戶重複接入次數;將上述指定用戶的用戶重複接入次數與第二預設閾值進行比較;如果上述用戶重複接入次數大於上述第二預設閾值,則判斷上述指定用戶為上述指定商戶的常光顧客戶。 Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: obtaining from a merchant MAC address library the number of repeated accesses by a user who successfully accesses the designated merchant router from the designated MAC address library; The number of repeated user accesses by the user is compared with a second preset threshold; if the number of repeated user accesses is greater than the second preset threshold, the designated user is determined to be a frequent patron of the designated merchant.

上述本發明實施例序號僅僅為了描述,不代表實施例 的優劣。 The sequence numbers of the foregoing embodiments of the present invention are merely for description, and do not represent the superiority or inferiority of the embodiments.

在本發明的上述實施例中,對各個實施例的描述都各有側重,某個實施例中沒有詳述的部分,可以參見其他實施例的相關描述。 In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For a part that is not described in detail in an embodiment, reference may be made to the description of other embodiments.

在本發明所提供的幾個實施例中,應該理解到,所揭露的技術內容,可通過其它的方式實現。其中,以上所描述的裝置實施例僅僅是示意性的,例如所述單元的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式,例如多個單元或組件可以結合或者可以集成到另一個系統,或一些特徵可以忽略,或不執行。另一點,所顯示或討論的相互之間的耦合或直接耦合或通信連接可以是通過一些介面,單元或模組的間接耦合或通信連接,可以是電性或其它的形式。 In the several embodiments provided by the present invention, it should be understood that the disclosed technical content may be implemented in other ways. The device embodiments described above are only schematic. 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 integrated. To another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, units or modules, and may be electrical or other forms.

所述作為分離部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部單元來實現本實施例方案的目的。 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, which may be located in one place, or may be distributed on multiple network units. . Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.

另外,在本發明各個實施例中的各功能單元可以集成在一個處理單元中,也可以是各個單元單獨物理存在,也可以兩個或兩個以上單元集成在一個單元中。上述集成的單元既可以採用硬體的形式實現,也可以採用軟體功能單元的形式實現。 In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.

所述集成的單元如果以軟體功能單元的形式實現並作 為獨立的產品銷售或使用時,可以儲存在一個計算機可讀取儲存媒體中。基於這樣的理解,本發明的技術方案本質上或者說對現有技術做出貢獻的部分或者該技術方案的全部或部分可以以軟體產品的形式體現出來,該計算機軟體產品儲存在一個儲存媒體中,包括若干指令用以使得一台計算機設備(可為個人計算機、伺服器或者網路設備等)執行本發明各個實施例所述方法的全部或部分步驟。而前述的儲存媒體包括:USB隨身碟、唯讀記憶體(ROM,Read-Only Memory)、隨機存取記憶體(RAM,Random Access Memory)、移動硬碟、磁碟或者光碟等各種可以儲存程序代碼的媒體。 When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention essentially or part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, Several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in various embodiments of the present invention. The aforementioned storage media include: various types of programs that can be stored, such as USB flash drives, Read-Only Memory (ROM), Random Access Memory (RAM), removable hard disks, magnetic disks, or optical disks The media of the code.

以上所述僅是本發明的較佳實施方式,應當指出,對於本技術領域的普通技術人員來說,在不脫離本發明原理的前提下,還可以做出若干改進和潤飾,這些改進和潤飾也應視為本發明的保護範圍。 The above is only a preferred embodiment of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principles of the present invention, there can be several improvements and retouches. These improvements and retouches It should also be regarded as the protection scope of the present invention.

Claims (17)

一種路由器地址類型的識別方法,所述方法包括:獲取服務端採集到的網路交互資料,所述網路交互資料中包括用戶的媒體接入控制MAC地址資料及路由器MAC地址資料;根據所述用戶的MAC地址資料及路由器MAC地址資料,確定路由器MAC地址和用戶MAC地址之間的關係;根據所述路由器MAC地址和用戶MAC地址之間的關係,統計預設週期內所述用戶的MAC地址資料中各個用戶MAC地址在接入所述路由器MAC地址對應的待識別路由器後得到的接入參數;依據統計結果與預設閾值的比較結果,識別所述待識別路由器的路由器MAC地址類型。A method for identifying a router address type, the method comprising: obtaining network interaction data collected by a server, the network interaction data including a user's media access control MAC address data and a router MAC address data; The user's MAC address information and router MAC address information determine the relationship between the router MAC address and the user's MAC address; based on the relationship between the router MAC address and the user's MAC address, the user's MAC address is counted in a preset period The access parameters obtained by each user's MAC address after accessing the router to be identified corresponding to the router's MAC address in the data; and the type of the router's MAC address of the router to be identified is identified based on a comparison between the statistical result and a preset threshold. 根據申請專利範圍第1項所述的方法,其中,所述接入參數用於反映接入所述待識別路由器的用戶數和/或接入頻次資訊。The method according to item 1 of the scope of patent application, wherein the access parameter is used to reflect the number of users accessing the router to be identified and / or access frequency information. 根據申請專利範圍第2項所述的方法,其中,所述接入參數包括以下所列資訊中的一種資訊或任意組合後的資訊:在第一預設週期內所述待識別路由器所接入的用戶數、在第二預設週期內接入到所述待識別路由器的所有用戶的總接入次數和在第三預設週期內指定用戶接入所述待識別路由器的成功接入次數。The method according to item 2 of the scope of patent application, wherein the access parameter includes one of the information listed below or any combination of information: in the first preset period, the router to be identified is accessed by Number of users, total access times of all users accessing the router to be identified in the second preset period, and successful access times of designated users accessing the router to be identified in the third preset period. 根據申請專利範圍第3項所述的方法,其中,依據統計結果與預設閾值的比較結果,識別所述待識別路由器的路由器MAC地址類型,具體包括:當所述待識別路由器接入的用戶數小於第一閾值時,將所述路由器MAC地址類型識別為住戶路由器;當所述待識別路由器接入的用戶數大於第二閾值且小於第三閾值時,將所述路由器MAC地址類型識別為商戶路由器;其中,所述第一閾值小於所述第二閾值。The method according to item 3 of the scope of patent application, wherein identifying a router MAC address type of the router to be identified according to a comparison result of a statistical result with a preset threshold specifically includes: When the number is less than the first threshold, the router MAC address type is identified as a residential router; when the number of users accessed by the router to be identified is greater than a second threshold and less than a third threshold, the router MAC address type is identified as A merchant router; wherein the first threshold is less than the second threshold. 根據申請專利範圍第3項所述的方法,其中,依據統計結果與預設閾值的比較結果,識別所述待識別路由器的路由器MAC地址類型,具體包括:當所述所有用戶的總接入次數大於第四閾值時,將所述路由器MAC地址類型識別為商戶路由器。The method according to item 3 of the scope of patent application, wherein identifying the router MAC address type of the router to be identified according to the comparison result of the statistical result with a preset threshold specifically includes: when the total access times of all users When it is greater than the fourth threshold, the router MAC address type is identified as a merchant router. 根據申請專利範圍第3項所述的方法,其中,依據統計結果與預設閾值的比較結果,識別所述待識別路由器的路由器MAC地址類型,具體包括:當所述成功接入次數大於第五閾值時,將所述路由器MAC地址類型識別為住戶路由器。The method according to item 3 of the scope of patent application, wherein identifying a router MAC address type of the router to be identified according to a comparison result of a statistical result with a preset threshold specifically includes: when the number of successful accesses is greater than a fifth At the threshold, the router MAC address type is identified as a residential router. 根據申請專利範圍第3項所述的方法,其中,依據統計結果與預設閾值的比較結果,識別所述待識別路由器的路由器MAC地址類型,具體包括:在所述用戶數小於第一閾值,且所述總接入次數位於第六閾值和第七閾值之間的取值區間時,將所述路由器MAC地址類型識別為住戶路由器;在所述接入次數大於所述第七閾值且所述用戶數大於所述第一閾值時,將所述路由器MAC地址類型識別為商戶路由器。The method according to item 3 of the scope of patent application, wherein identifying a router MAC address type of the router to be identified according to a comparison result of a statistical result and a preset threshold specifically includes: when the number of users is less than a first threshold, And when the total number of accesses is in a value range between the sixth threshold and the seventh threshold, the router MAC address type is identified as a residential router; when the number of accesses is greater than the seventh threshold and the When the number of users is greater than the first threshold, the router MAC address type is identified as a merchant router. 根據申請專利範圍第7項所述的方法,其中,所述方法還包括:在所述路由器的MAC地址類型為住戶路由器時,獲取在第四預設週期內所述路由器在工作日的接入次數和非工作日的接入次數;依據所述路由器在工作日的接入次數和非工作日的接入次數的比例與預設閾值的比較結果對所述住戶路由器所對應的住戶類型進一步識別;或者,在所述路由器的MAC地址類型為住戶路由器時,獲取在第五預設週期內所述路由器在每日的指定時間段內的接入次數,以及在所述第五預設週期內的日均接入次數;獲取所述路由器在每日的指定時間段內的接入次數與所述日均接入次數的比例,並依據所述比例與預設閾值的比較結果對所述住戶路由器所對應的住戶類型進一步識別。The method according to item 7 of the scope of patent application, wherein the method further comprises: when the MAC address type of the router is a resident router, obtaining access of the router on a working day within a fourth preset period The number of times of access and the number of times of non-working days; further identifying the type of the resident corresponding to the resident router according to a comparison result of the ratio of the number of times of access of the router during working days and the number of times of access during non-working days with a preset threshold Or, when the type of the MAC address of the router is a resident router, obtaining the number of accesses of the router in a specified daily time period within a fifth preset period, and within the fifth preset period The average daily number of accesses; obtain the ratio of the number of accesses of the router to the average number of daily accesses within a specified period of time each day, and compare the ratio of the ratio with a preset threshold to the household The type of household that the router corresponds to is further identified. 根據申請專利範圍第1項所述的方法,其中,在獲取服務端採集到的網路交互資料之後,所述方法還包括:利用公共路由器MAC地址庫,對所述網路交互資料中的路由器MAC地址資料進行過濾,其中,過濾後的路由器MAC地址資料中不包含公共路由器MAC地址資料;所述根據所述用戶的MAC地址資料及路由器MAC地址資料,確定所述路由器MAC地址和用戶MAC地址之間的關係,具體為:根據所述用戶的MAC地址資料及所述過濾後的路由器MAC地址資料,確定所述路由器MAC地址和用戶MAC地址之間的關係。The method according to item 1 of the scope of patent application, wherein after obtaining the network interaction data collected by the server, the method further comprises: using a public router MAC address library to perform a router on the network interaction data The MAC address data is filtered, wherein the filtered router MAC address data does not include public router MAC address data; the determining of the router MAC address and the user MAC address is based on the user's MAC address data and the router MAC address data. The relationship between them is specifically: determining the relationship between the MAC address of the router and the MAC address of the user according to the MAC address information of the user and the MAC address information of the filtered router. 根據申請專利範圍第1至9項中任一項所述的方法,其中,所述網路交互資料還包括用戶的位置資訊;所述方法還包括:根據接入所述待識別路由器的用戶的位置資訊,確定所述待識別路由器的位置資訊;將所述路由器MAC地址類型與所述待識別路由器的位置資訊,儲存到資料庫中。The method according to any one of claims 1 to 9, wherein the network interaction data further includes a user's location information; the method further includes: according to a user's access to the router to be identified Location information to determine the location information of the router to be identified; and storing the MAC address type of the router and the location information of the router to be identified into a database. 根據申請專利範圍第1至9項中任一項所述的方法,其中,依據統計結果與預設閾值的比較結果,識別所述路由器MAC地址類型之後,所述方法還包括:依據識別結果將與所述路由器MAC地址類型對應的消息推送至所述待識別路由器或者接入所述待識別路由器的用戶。The method according to any one of claims 1 to 9, wherein after the type of the router MAC address is identified according to a comparison result of a statistical result and a preset threshold, the method further includes: A message corresponding to the MAC address type of the router is pushed to the router to be identified or a user accessing the router to be identified. 一種路由器地址類型的識別裝置,包括:獲取模組,用於獲取服務端採集到的網路交互資料,所述網路交互資料中包括用戶的媒體接入控制MAC地址資料及路由器MAC地址資料;確定模組,用於根據所述用戶的MAC地址資料及路由器MAC地址資料,確定路由器MAC地址和用戶MAC地址之間的關係;統計模組,用於根據所述路由器MAC地址和用戶MAC地址之間的關係,統計預設週期內所述用戶的MAC地址資料中各個用戶MAC地址在接入所述路由器MAC地址對應的待識別路由器後得到的接入參數,其中,該接入參數用於反映接入所述待識別路由器的用戶數和/或接入頻次資訊;識別模組,用於依據統計結果與預設閾值的比較結果,識別所述待識別路由器的路由器MAC地址類型。A device for identifying a router address type, comprising: an acquisition module for acquiring network interaction data collected by a server, the network interaction data including a user's media access control MAC address data and a router MAC address data; A determining module for determining a relationship between a router MAC address and a user MAC address based on the MAC address data of the user and a router MAC address data; a statistics module for determining a relationship between the MAC address of the router and the MAC address of the user The relationship between the user and the user ’s MAC address in the preset period of time is used to calculate the access parameters obtained after each user ’s MAC address accesses the router to be identified corresponding to the router ’s MAC address, where the access parameter is used to reflect Number of users accessing the router to be identified and / or access frequency information; an identification module, configured to identify a type of a router MAC address of the router to be identified according to a comparison result of a statistical result with a preset threshold. 根據申請專利範圍第12項所述的裝置,其中,所述接入參數包括以下所列資訊中的一種資訊或任意組合後的資訊:在第一預設週期內所述待識別路由器所接入的用戶數、在第二預設週期內接入到所述待識別路由器的所有用戶的總接入次數和在第三預設週期內指定用戶接入所述待識別路由器的成功接入次數。The device according to item 12 of the scope of patent application, wherein the access parameter includes one of the information listed below or any combination of information: in the first preset period, the router to be identified is accessed by Number of users, total access times of all users accessing the router to be identified in the second preset period, and successful access times of designated users accessing the router to be identified in the third preset period. 根據申請專利範圍第13項所述的裝置,其中,所述識別模組,還用於在所述待識別路由器接入的用戶數小於第一閾值時,將所述路由器MAC地址類型識別為住戶路由器;以及在所述待識別路由器接入的用戶數大於第二閾值且小於第三閾值時,將所述路由器MAC地址類型識別為商戶路由器。The device according to item 13 of the scope of patent application, wherein the identification module is further configured to identify the MAC address type of the router as a resident when the number of users accessed by the router to be identified is less than a first threshold. A router; and when the number of users accessed by the router to be identified is greater than a second threshold and less than a third threshold, identifying the router MAC address type as a merchant router. 根據申請專利範圍第13項所述的裝置,其中,所述識別模組,還用於在所述所有用戶的總接入次數大於第四閾值時,將所述路由器MAC地址類型識別為商戶路由器。The device according to item 13 of the scope of patent application, wherein the identification module is further configured to identify the router MAC address type as a merchant router when the total number of accesses of all users is greater than a fourth threshold. . 根據申請專利範圍第13項所述的裝置,其中,所述識別模組,還用於在所述成功接入次數大於第五閾值時,將所述路由器MAC地址類型識別為住戶路由器。The device according to item 13 of the scope of patent application, wherein the identification module is further configured to identify the router MAC address type as a residential router when the number of successful accesses is greater than a fifth threshold. 根據申請專利範圍第13項所述的裝置,其中,所述識別模組,還用於在所述用戶數小於第一閾值,且所述總接入次數位於第六閾值和第七閾值之間的取值區間時,將所述路由器MAC地址類型識別為住戶路由器;在所述接入次數大於所述第七閾值且所述用戶數大於所述第一閾值時,將所述路由器MAC地址類型識別為商戶路由器。The device according to item 13 of the scope of patent application, wherein the identification module is further configured to: when the number of users is less than a first threshold and the total number of accesses is between a sixth threshold and a seventh threshold When the number of accesses is greater than the seventh threshold and the number of users is greater than the first threshold, the router MAC address type is identified as the resident router. Identified as a merchant router.
TW106102226A 2017-01-20 2017-01-20 Router address type identification method and device TWI672024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106102226A TWI672024B (en) 2017-01-20 2017-01-20 Router address type identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106102226A TWI672024B (en) 2017-01-20 2017-01-20 Router address type identification method and device

Publications (2)

Publication Number Publication Date
TW201828657A TW201828657A (en) 2018-08-01
TWI672024B true TWI672024B (en) 2019-09-11

Family

ID=63960566

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106102226A TWI672024B (en) 2017-01-20 2017-01-20 Router address type identification method and device

Country Status (1)

Country Link
TW (1) TWI672024B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475748A (en) * 2013-09-05 2013-12-25 北京京东尚科信息技术有限公司 Method and device for determining geographic position types of IP addresses
US8770477B2 (en) * 2005-04-26 2014-07-08 Guy Hefetz Method for identifying the georgrapic location of a router
CN104462059A (en) * 2014-12-01 2015-03-25 银联智惠信息服务(上海)有限公司 Commercial tenant address information recognition method and device
CN105721341A (en) * 2016-01-28 2016-06-29 苏黎 Router network resource allocating method and router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8770477B2 (en) * 2005-04-26 2014-07-08 Guy Hefetz Method for identifying the georgrapic location of a router
CN103475748A (en) * 2013-09-05 2013-12-25 北京京东尚科信息技术有限公司 Method and device for determining geographic position types of IP addresses
CN104462059A (en) * 2014-12-01 2015-03-25 银联智惠信息服务(上海)有限公司 Commercial tenant address information recognition method and device
CN105721341A (en) * 2016-01-28 2016-06-29 苏黎 Router network resource allocating method and router

Also Published As

Publication number Publication date
TW201828657A (en) 2018-08-01

Similar Documents

Publication Publication Date Title
CN106603733B (en) Method and device for identifying address type of router
CN110535864B (en) Service abnormity detection method, device, equipment and storage medium
CN108009844B (en) Method and device for determining advertisement cheating behaviors and cloud server
US10572843B2 (en) Wireless customer and labor management optimization in retail settings
CN110505196B (en) Internet of things network card abnormality detection method and device
CN111343301B (en) Positioning method, positioning device, electronic equipment and storage medium
CN110706376B (en) People flow rate statistical method and device
CN103813269B (en) Traffic management device and flow managing method
US11521238B2 (en) Method and system for determining fact of visit of user to point of interest
CN108876950B (en) Attendance tracking method, device, terminal, server and storage medium
TW201611635A (en) Method and system for determining relationship between users based on physical addresses of wireless signal sources
CN103945526A (en) Wireless equipment positioning method and system based on induced detection technology
US9779394B2 (en) Processing analytics data received by sensor devices
CN109639628A (en) Private connects behavioral value method, the network equipment, system and storage medium
TWI672024B (en) Router address type identification method and device
CN108197050B (en) Equipment identification method, device and system
CN111328012B (en) Stereo layered positioning method and device based on building WiFi
KR102069095B1 (en) System and method for energy efficient WiFi people counter
CN108848139B (en) Attendance tracking method, device, terminal, server and storage medium
CN115002823A (en) Wireless network analysis method and device, electronic equipment and storage medium
TWI601434B (en) Wireless base station identification method and device
CN113301137A (en) Intelligent information pushing method and device based on cooperative analysis of Internet of things terminal
CN109769202B (en) Method and device for positioning flow data, storage medium and server
US20180115915A1 (en) Determining network health based on data from a user device
US20210035136A1 (en) Traffic determination