[go: up one dir, main page]

CN109451530B - Information collection method and information collection system - Google Patents

Information collection method and information collection system Download PDF

Info

Publication number
CN109451530B
CN109451530B CN201910005442.8A CN201910005442A CN109451530B CN 109451530 B CN109451530 B CN 109451530B CN 201910005442 A CN201910005442 A CN 201910005442A CN 109451530 B CN109451530 B CN 109451530B
Authority
CN
China
Prior art keywords
gateway
wifi
terminal
data
packets
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910005442.8A
Other languages
Chinese (zh)
Other versions
CN109451530A (en
Inventor
周广
冀哲
韩卫平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201910005442.8A priority Critical patent/CN109451530B/en
Publication of CN109451530A publication Critical patent/CN109451530A/en
Application granted granted Critical
Publication of CN109451530B publication Critical patent/CN109451530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

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

Abstract

本发明公开了一种信息收集方法和信息收集系统。该方法包括:网关采集终端发出的wifi报文和/或网关自身发出的wifi报文;网关从每个wifi报文中提取地址字段,并根据所述地址字段确定出每个wifi报文对应的类型数据;网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据;网关将终端信息发送至数据平台,所述终端信息包括不同类别的统计数据。本发明实现了对于未接入网关的终端也能够采集到终端信息。

Figure 201910005442

The invention discloses an information collection method and an information collection system. The method includes: the gateway collects the wifi messages sent by the terminal and/or the wifi messages sent by the gateway itself; the gateway extracts an address field from each wifi message, and determines the corresponding wifi message according to the address field. Type data; the gateway collects statistics on multiple WiFi packets according to the type data corresponding to multiple WiFi packets to obtain different types of statistical data; the gateway sends terminal information to the data platform, and the terminal information includes different types of statistics data. The present invention realizes that the terminal information can be collected even for the terminal not accessing the gateway.

Figure 201910005442

Description

信息收集方法和信息收集系统Information collection method and information collection system

技术领域technical field

本发明涉及通信技术领域,特别涉及一种信息收集方法和信息收集系统。The present invention relates to the field of communication technologies, in particular to an information collection method and an information collection system.

背景技术Background technique

目前,终端已经完全普及,移动互联网中的各类连接方式被广泛应用。其中,既有直接为运营商带来收入的3G/4G连接方式等,也有先接入网关的wifi热点再通过宽带接入的连接方式。运营商为了更好的为用户服务,提升用户感知,就必须尽量多地收集和了解终端信息。目前,对终端信息的获取主要是通过运营商基站和网关等。At present, terminals have been completely popularized, and various connection methods in the mobile Internet are widely used. Among them, there are not only 3G/4G connection methods that directly bring revenue to operators, but also connection methods that first access the wifi hotspot of the gateway and then access through broadband. In order to better serve users and improve user perception, operators must collect and understand as much terminal information as possible. At present, the acquisition of terminal information is mainly through the operator's base station and gateway.

目前,现有的技术方案是通过部署网关,并在网关中设置探针,以实现收集直接接入到本网关中的终端的终端信息。At present, the existing technical solution is to deploy a gateway and set probes in the gateway to collect terminal information of terminals directly connected to the gateway.

但是,对于没有直接接入到本网关的终端,现有技术中的方案无法采集到终端信息。However, for a terminal that is not directly connected to the gateway, the solution in the prior art cannot collect terminal information.

发明内容SUMMARY OF THE INVENTION

本发明提供一种信息收集的方法和信息收集系统,用于实现对于未接入网关的终端也能够采集到终端信息。The present invention provides an information collection method and an information collection system, which are used to realize that terminal information can also be collected for a terminal that does not access a gateway.

为实现上述目的,本发明提供了一种信息收集方法,包括:To achieve the above purpose, the present invention provides an information collection method, comprising:

网关采集终端发出的wifi报文和/或网关自身发出的wifi报文;The gateway collects the wifi packets sent by the terminal and/or the wifi packets sent by the gateway itself;

网关从每个wifi报文中提取地址字段,并根据所述地址字段确定出每个wifi报文对应的类型数据;The gateway extracts the address field from each wifi message, and determines the type data corresponding to each wifi message according to the address field;

网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据;The gateway collects statistics on multiple WiFi packets according to the type data corresponding to multiple WiFi packets to obtain different types of statistical data;

网关将终端信息发送至数据平台,所述终端信息包括不同类别的统计数据。The gateway sends terminal information to the data platform, the terminal information including different categories of statistical data.

可选地,若所述地址字段包括BSSID、SA和DA,所述数据类型包括wifi报文为终端发出的且目的地址为网关的wifi报文、wifi报文为网关发出的且目的地址为终端的wifi报文、wifi报文为广播报文、wifi报文为下行数据、wifi报文的传输链路存在中继;Optionally, if the address field includes BSSID, SA, and DA, the data type includes a wifi packet sent by a terminal and a wifi packet with a destination address of the gateway, and a wifi packet sent by the gateway and the destination address is the terminal. wifi packets, wifi packets are broadcast packets, wifi packets are downlink data, and there are relays in the transmission link of wifi packets;

所述网关从每个wifi报文中提取地址字段,并根据所述地址字段确定出每个wifi报文对应的类型数据包括:The gateway extracts an address field from each wifi packet, and determines, according to the address field, that the type data corresponding to each wifi packet includes:

网关判断提取出的BSSID和网关的BSSID是否一致,若判断出断提取出的BSSID和网关的BSSID一致且wifi报文为终端发出的wifi报文时,确定出wifi报文为终端发出的且目的地址为网关的wifi报文;若判断出断提取出的BSSID和网关的BSSID一致且wifi报文为网关发出的wifi报文时,确定出wifi报文为网关发出的且目的地址为终端的wifi报文;The gateway determines whether the extracted BSSID is consistent with the gateway's BSSID. If it is determined that the extracted BSSID is consistent with the gateway's BSSID and the wifi packet is a wifi packet sent by the terminal, it is determined that the wifi packet is sent by the terminal and the destination The address is the wifi packet of the gateway; if it is determined that the BSSID extracted is consistent with the BSSID of the gateway and the wifi packet is the wifi packet sent by the gateway, it is determined that the wifi packet is sent by the gateway and the destination address is the terminal's wifi message;

网关判断DA是否为广播地址,若判断出DA为广播地址时,确定出wifi报文为广播报文;The gateway determines whether the DA is a broadcast address, and if it determines that the DA is a broadcast address, it determines that the wifi message is a broadcast message;

网关判断BSSID与SA是否一致,若判断出BSSID与SA一致时,确定出wifi报文为下行数据且确定出wifi报文的传输链路存在中继。The gateway determines whether the BSSID is consistent with the SA, and if it is determined that the BSSID is consistent with the SA, it determines that the wifi packet is downlink data and that there is a relay in the transmission link of the wifi packet.

可选地,所述不同类别的统计数据包括终端发送报文数量、网关发送报文数量、广播报文数量、下行数据数量和存在中继数量;Optionally, the different types of statistical data include the number of packets sent by the terminal, the number of packets sent by the gateway, the number of broadcast packets, the number of downlink data, and the number of existing relays;

所述网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据包括:According to the type data corresponding to the multiple WiFi packets, the gateway collects statistics on the multiple WiFi packets to obtain different types of statistical data including:

网关统计出终端发送报文数量,所述终端发送报文数量为地址字段包括BSSID、SA和DA的wifi报文中终端发出的且目的地址为网关的wifi报文的数量;The gateway counts the number of packets sent by the terminal, and the number of packets sent by the terminal is the number of wifi packets sent by the terminal and whose destination address is the gateway in the wifi packets whose address fields include BSSID, SA, and DA;

网关统计出网关发送报文数量,所述网关发送报文数量为地址字段包括BSSID、SA和DA的wifi报文中网关发出的且目的地址为终端的wifi报文的数量;The gateway counts the number of packets sent by the gateway, and the number of packets sent by the gateway is the number of wifi packets sent by the gateway and whose destination address is the terminal in the wifi packets whose address fields include BSSID, SA, and DA;

网关统计出广播报文数量,所述广播报文数量为地址字段包括BSSID、SA和DA的wifi报文中广播报文的数量;The gateway counts the number of broadcast packets, and the number of broadcast packets is the number of broadcast packets in the wifi packets whose address fields include BSSID, SA, and DA;

网关统计出下行数据数量,所述下行数据数量为地址字段包括BSSID、SA和DA的wifi报文中下行数据的数量;The gateway counts the amount of downlink data, and the amount of downlink data is the amount of downlink data in the wifi message whose address field includes BSSID, SA, and DA;

网关统计出存在中继数量,所述存在中继数量为地址字段包括BSSID、SA和DA的wifi报文中传输链路存在中继的wifi报文的数量。The gateway counts the number of existing relays, where the number of existing relays is the number of wifi packets whose address fields include BSSID, SA, and DA in the wifi packets whose transmission links have relays.

可选地,若所述地址字段包括BSSID、TA和RA;所述数据类型包括wifi报文为终端发出的且目的地址为网关的wifi报文、wifi报文为网关发出的且目的地址为终端的wifi报文、wifi报文为下行数据、wifi报文的传输链路存在中继、wifi报文为数据报文;Optionally, if the address field includes BSSID, TA and RA; the data type includes a wifi packet sent by a terminal and a wifi packet with a destination address of a gateway, and a wifi packet sent by a gateway and the destination address is the terminal. wifi packets, wifi packets are downlink data, there are relays in the transmission link of wifi packets, and wifi packets are data packets;

所述网关从每个wifi报文中提取地址字段,并根据所述地址字段确定出每个wifi报文对应的类型数据包括:The gateway extracts an address field from each wifi packet, and determines, according to the address field, that the type data corresponding to each wifi packet includes:

网关判断提取出的BSSID和网关的BSSID是否一致,若判断出断提取出的BSSID和网关的BSSID一致且wifi报文为终端发出的wifi报文时,确定出wifi报文为终端发出的且目的地址为网关的wifi报文;若判断出断提取出的BSSID和网关的BSSID一致且wifi报文为网关发出的wifi报文时,确定出wifi报文为网关发出的且目的地址为终端的wifi报文;The gateway determines whether the extracted BSSID is consistent with the gateway's BSSID. If it is determined that the extracted BSSID is consistent with the gateway's BSSID and the wifi packet is a wifi packet sent by the terminal, it is determined that the wifi packet is sent by the terminal and the destination The address is the wifi packet of the gateway; if it is determined that the BSSID extracted is consistent with the BSSID of the gateway and the wifi packet is the wifi packet sent by the gateway, it is determined that the wifi packet is sent by the gateway and the destination address is the terminal's wifi message;

网关判断BSSID与TA是否一致,若判断出BSSID与TA一致时,确定出wifi报文为上行数据且确定出wifi报文的传输链路存在中继;The gateway judges whether the BSSID is consistent with the TA, and if it judges that the BSSID is consistent with the TA, it determines that the wifi packet is uplink data and that there is a relay in the transmission link of the wifi packet;

网关判断wifi报文中是否包括TA和RA,若判断出wifi报文中包括TA和RA时,确定出wifi报文为数据报文。The gateway judges whether the wifi packet includes TA and RA, and if it judges that the wifi packet includes TA and RA, it determines that the wifi packet is a data packet.

可选地,所述不同类别的统计数据包括终端发送报文数量、网关发送报文数量、上行数据数量、存在中继数量和数据报文数量;Optionally, the different types of statistical data include the number of packets sent by the terminal, the number of packets sent by the gateway, the number of uplink data, the number of existing relays, and the number of data packets;

所述网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据包括:According to the type data corresponding to the multiple WiFi packets, the gateway collects statistics on the multiple WiFi packets to obtain different types of statistical data including:

网关统计出终端发送报文数量,所述终端发送报文数量为地址字段包括BSSID、TA和RA的wifi报文中终端发出的且目的地址为网关的wifi报文的数量;The gateway counts the number of packets sent by the terminal, and the number of packets sent by the terminal is the number of wifi packets sent by the terminal and whose destination address is the gateway in the wifi packets whose address fields include BSSID, TA, and RA;

网关统计出网关发送报文数量,所述网关发送报文数量为地址字段包括BSSID、TA和RA的wifi报文中网关发出的且目的地址为终端的wifi报文的数量;The gateway counts the number of packets sent by the gateway, and the number of packets sent by the gateway is the number of wifi packets sent by the gateway and whose destination address is the terminal in the wifi packets whose address fields include BSSID, TA, and RA;

网关统计出上行数据数量,所述下行数据数量为地址字段包括BSSID、TA和RA的wifi报文中上行数据的数量;The gateway counts the amount of uplink data, and the amount of downlink data is the amount of uplink data in the wifi message whose address field includes BSSID, TA, and RA;

网关统计出存在中继数量,所述存在中继数量为地址字段包括BSSID、TA和RA的wifi报文中传输链路存在中继的wifi报文的数量;The gateway counts the number of existing relays, and the number of existing relays is the number of wifi packets whose transmission links have relays in the wifi packets whose address fields include BSSID, TA, and RA;

网关统计出数据报文数量,所述数据报文数量为地址字段包括BSSID、TA和RA的wifi报文中数据报文的数量。The gateway counts the number of data packets, where the number of data packets is the number of data packets in the wifi packets whose address fields include BSSID, TA, and RA.

可选地,所述终端信息还包括地址字段,不同类别的统计数据包括下行数据数量和上行数据数量;Optionally, the terminal information further includes an address field, and the statistical data of different categories includes the amount of downlink data and the amount of uplink data;

所述网关将终端信息发送至数据平台之后还包括:After the gateway sends the terminal information to the data platform, it further includes:

数据平台从数据库中查询出与SA和TA对应的终端标识,判断查询出的终端标识与预先获取的终端标识是否一致;The data platform queries the terminal identifiers corresponding to SA and TA from the database, and determines whether the queried terminal identifiers are consistent with the pre-acquired terminal identifiers;

数据平台若判断出查询出的终端标识与预先获取的终端标识一致时确定出终端连接至网关;If the data platform determines that the queried terminal identification is consistent with the pre-acquired terminal identification, it is determined that the terminal is connected to the gateway;

数据平台根据下行数据数量、采集周期和下行数据的平均长度计算出下行数据的速率;The data platform calculates the rate of downlink data according to the amount of downlink data, the collection period and the average length of downlink data;

数据平台根据上行数据数量、采集周期和上行数据的平均长度计算出上行数据的速率。The data platform calculates the rate of the uplink data according to the amount of uplink data, the collection period and the average length of the uplink data.

可选地,所述终端信息还包括网关设备标识;Optionally, the terminal information further includes a gateway device identifier;

所述网关将终端信息发送至数据平台之后还包括:After the gateway sends the terminal information to the data platform, it further includes:

数据平台从终端信息中解析出网关设备标识,根据网关设备标识从数据库中查询出与网关设备标识对应的网关位置信息。The data platform parses the gateway device identification from the terminal information, and queries the database for gateway location information corresponding to the gateway device identification according to the gateway device identification.

为实现上述目的,本发明提供了一种信息收集系统,包括:网关和数据平台;To achieve the above purpose, the present invention provides an information collection system, including: a gateway and a data platform;

所述网关,用于采集终端发出的wifi报文和/或网关自身发出的wifi报文;从每个wifi报文中提取地址字段,并根据所述地址字段确定出每个wifi报文对应的类型数据;根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据;将终端信息发送至数据平台,所述终端信息包括不同类别的统计数据;The gateway is used to collect the wifi packets sent by the terminal and/or the wifi packets sent by the gateway itself; extract the address field from each wifi packet, and determine the corresponding wifi packet according to the address field. type data; according to the type data corresponding to the multiple wifi packets, perform statistics on the multiple wifi packets to obtain different types of statistical data; send terminal information to the data platform, where the terminal information includes different types of statistical data;

所述数据平台,用于接收所述终端信息。The data platform is used for receiving the terminal information.

可选地,所述终端信息还包括地址字段,不同类别的统计数据包括下行数据数量和上行数据数量;Optionally, the terminal information further includes an address field, and the statistical data of different categories includes the amount of downlink data and the amount of uplink data;

所述数据平台还用于从数据库中查询出与SA和TA对应的终端标识,判断查询出的终端标识与预先获取的终端标识是否一致;若判断出查询出的终端标识与预先获取的终端标识一致时确定出终端连接至网关;根据下行数据数量、采集周期和下行数据的平均长度计算出下行数据的速率;根据上行数据数量、采集周期和上行数据的平均长度计算出上行数据的速率。The data platform is also used to query the terminal identification corresponding to SA and TA from the database, and determine whether the inquired terminal identification is consistent with the pre-acquired terminal identification; When they are consistent, it is determined that the terminal is connected to the gateway; the rate of downlink data is calculated according to the amount of downlink data, the collection period and the average length of the downlink data; the rate of uplink data is calculated according to the amount of uplink data, the collection period and the average length of the uplink data.

可选地,所述终端信息还包括网关设备标识;Optionally, the terminal information further includes a gateway device identifier;

所述数据平台还用于从终端信息中解析出网关设备标识,根据网关设备标识从数据库中查询出与网关设备标识对应的网关位置信息。The data platform is further configured to parse out the gateway device identification from the terminal information, and query the gateway location information corresponding to the gateway device identification from the database according to the gateway device identification.

本发明具有以下有益效果:The present invention has the following beneficial effects:

本发明提供的信息收集方法和信息收集系统的技术方案中,网关采集终端发出的wifi报文和/或网关自身发出的wifi报文,从每个wifi报文中提取地址字段并根据所述地址字段确定出每个wifi报文对应的类型数据,网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据,本发明实现了对于未接入网关的终端也能够采集到终端信息。In the information collection method and the technical solution of the information collection system provided by the present invention, the gateway collects the wifi packets sent by the terminal and/or the wifi packets sent by the gateway itself, extracts the address field from each wifi packet, and extracts the address field according to the address The field determines the type data corresponding to each wifi packet, and the gateway performs statistics on the multiple wifi packets according to the type data corresponding to the multiple wifi packets to obtain different types of statistical data. The terminal of the gateway can also collect terminal information.

附图说明Description of drawings

图1为本发明实施例一提供的一种信息收集方法的流程图;1 is a flowchart of a method for collecting information according to Embodiment 1 of the present invention;

图2为本发明实施例一提供的一种信息收集方法的流程图;FIG. 2 is a flowchart of an information collection method according to Embodiment 1 of the present invention;

图3为本发明实施例三提供的一种信息收集系统的结构示意图。FIG. 3 is a schematic structural diagram of an information collection system according to Embodiment 3 of the present invention.

具体实施方式Detailed ways

为使本领域的技术人员更好地理解本发明的技术方案,下面结合附图对本发明提供的信息收集方法和信息收集系统进行详细描述。In order for those skilled in the art to better understand the technical solutions of the present invention, the information collection method and information collection system provided by the present invention are described in detail below with reference to the accompanying drawings.

图1为本发明实施例一提供的一种信息收集方法的流程图,如图1所示,该方法包括:FIG. 1 is a flowchart of an information collection method provided in Embodiment 1 of the present invention. As shown in FIG. 1 , the method includes:

步骤101、网关采集终端发出的wifi报文和/或网关自身发出的wifi报文。Step 101: The gateway collects the wifi packets sent by the terminal and/or the wifi packets sent by the gateway itself.

步骤102、网关从每个wifi报文中提取地址字段,并根据所述地址字段确定出每个wifi报文对应的类型数据。Step 102: The gateway extracts an address field from each wifi packet, and determines type data corresponding to each wifi packet according to the address field.

步骤103、网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据。Step 103: The gateway collects statistics on the multiple wifi packets according to the type data corresponding to the multiple wifi packets to obtain different types of statistical data.

步骤104、网关将终端信息发送至数据平台,所述终端信息包括不同类别的统计数据。Step 104: The gateway sends terminal information to the data platform, where the terminal information includes statistical data of different categories.

本实施例提供的信息收集方法的技术方案中,网关采集终端发出的wifi报文和/或网关自身发出的wifi报文,从每个wifi报文中提取地址字段并根据所述地址字段确定出每个wifi报文对应的类型数据,网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据,本实施例实现了对于未接入网关的终端也能够采集到终端信息。In the technical solution of the information collection method provided in this embodiment, the gateway collects the wifi packets sent by the terminal and/or the wifi packets sent by the gateway itself, extracts the address field from each wifi packet, and determines the address field according to the address field. The type data corresponding to each wifi packet, the gateway collects statistics on the multiple wifi packets according to the type data corresponding to the multiple wifi packets to obtain different types of statistical data. The terminal can also collect terminal information.

图2为本发明实施例一提供的一种信息收集方法的流程图,如图2所示,该方法包括:FIG. 2 is a flowchart of an information collection method provided in Embodiment 1 of the present invention. As shown in FIG. 2 , the method includes:

步骤201、网关和数据平台之间进行初始化操作。In step 201, an initialization operation is performed between the gateway and the data platform.

具体地,步骤201可包括:Specifically, step 201 may include:

步骤2011、网关初始化,并和数据平台之间建立连接。Step 2011, the gateway is initialized, and a connection is established with the data platform.

步骤2012、网关和数据平台之间相互认证。Step 2012, the gateway and the data platform authenticate each other.

步骤2013、网关获取网关的基本服务集标识(Basic Service Set ID,简称BSSID),并将网关的BSSID发送至数据平台。Step 2013: The gateway acquires a basic service set identifier (Basic Service Set ID, BSSID for short) of the gateway, and sends the BSSID of the gateway to the data platform.

步骤2014、数据平台根据网关的BSSID查询出与网关的BSSID对应的网关位置信息。Step 2014: The data platform queries the gateway location information corresponding to the BSSID of the gateway according to the BSSID of the gateway.

步骤2015、数据平台向网关下发信息采集策略。Step 2015, the data platform delivers the information collection policy to the gateway.

例如,信息采集策略可包括:统计分类策略、采集周期、报送周期。For example, the information collection strategy may include: a statistical classification strategy, a collection period, and a reporting period.

步骤2016、数据平台准备接收网关上报的统计数据,网关开始监听各信道。Step 2016: The data platform is ready to receive the statistical data reported by the gateway, and the gateway starts to monitor each channel.

步骤202、网关采集终端发出的wifi报文和/或网关自身发出的wifi报文。Step 202: The gateway collects the wifi packets sent by the terminal and/or the wifi packets sent by the gateway itself.

本实施例中,网关监听各信道以抓取wifi报文。抓取的wifi报文可包括以下两种:一种是终端发出wifi报文,另一种是网关发出的wifi报文。具体地,网关可按照采集周期采集终端发出的wifi报文和/或网关自身发出的wifi报文。在采集周期内采集到的wifi报文的数量为多个。In this embodiment, the gateway monitors each channel to capture wifi packets. The captured wifi packets can include the following two types: one is the wifi packets sent by the terminal, and the other is the wifi packets sent by the gateway. Specifically, the gateway may collect wifi packets sent by the terminal and/or wifi packets sent by the gateway itself according to the collection period. The number of wifi packets collected in the collection period is multiple.

步骤203、网关从每个wifi报文中提取地址字段,并根据所述地址字段确定出每个wifi报文对应的类型数据。Step 203: The gateway extracts an address field from each wifi packet, and determines type data corresponding to each wifi packet according to the address field.

具体地,网关从每个wifi报文中提取地址字段,并通过统计分类策略根据所述地址字段确定出每个wifi报文对应的类型数据。Specifically, the gateway extracts the address field from each wifi packet, and determines the type data corresponding to each wifi packet according to the address field through a statistical classification strategy.

本实施例中,地址字段可包括BSSID、源地址(SA)、目的地址(DA)、发射地址(TA)和接收地址(RA)。In this embodiment, the address field may include BSSID, source address (SA), destination address (DA), transmit address (TA) and receive address (RA).

第一种情况:若所述地址字段包括BSSID、SA和DA,所述数据类型包括wifi报文为终端发出的且目的地址为网关的wifi报文、wifi报文为网关发出的且目的地址为终端的wifi报文、wifi报文为广播报文、wifi报文为下行数据、wifi报文的传输链路存在中继。则步骤203包括:The first case: if the address field includes BSSID, SA and DA, the data type includes the wifi packet sent by the terminal and the destination address is the gateway, and the wifi packet sent by the gateway and the destination address is The terminal's Wi-Fi messages, Wi-Fi messages are broadcast messages, Wi-Fi messages are downlink data, and there are relays in the transmission link of Wi-Fi messages. Then step 203 includes:

网关判断提取出的BSSID和网关的BSSID是否一致,若判断出断提取出的BSSID和网关的BSSID一致且wifi报文为终端发出的wifi报文时,确定出wifi报文为终端发出的且目的地址为网关的wifi报文;若判断出断提取出的BSSID和网关的BSSID一致且wifi报文为网关发出的wifi报文时,确定出wifi报文为网关发出的且目的地址为终端的wifi报文。The gateway determines whether the extracted BSSID is consistent with the gateway's BSSID. If it is determined that the extracted BSSID is consistent with the gateway's BSSID and the wifi packet is a wifi packet sent by the terminal, it is determined that the wifi packet is sent by the terminal and the destination The address is the wifi packet of the gateway; if it is determined that the BSSID extracted is consistent with the BSSID of the gateway and the wifi packet is the wifi packet sent by the gateway, it is determined that the wifi packet is sent by the gateway and the destination address is the terminal's wifi message.

网关判断DA是否为广播地址,若判断出DA为广播地址时,确定出wifi报文为广播报文。The gateway judges whether the DA is a broadcast address, and if it judges that the DA is a broadcast address, it determines that the wifi message is a broadcast message.

网关判断BSSID与SA是否一致,若判断出BSSID与SA一致时,确定出wifi报文为下行数据且确定出wifi报文的传输链路存在中继。The gateway determines whether the BSSID is consistent with the SA, and if it is determined that the BSSID is consistent with the SA, it determines that the wifi packet is downlink data and that there is a relay in the transmission link of the wifi packet.

第二种情况:若所述地址字段包括BSSID、TA和RA,所述数据类型包括wifi报文为终端发出的且目的地址为网关的wifi报文、wifi报文为网关发出的且目的地址为终端的wifi报文、wifi报文为下行数据、wifi报文的传输链路存在中继、wifi报文为数据报文。额步骤203包括:The second case: if the address field includes BSSID, TA and RA, the data type includes the wifi packet sent by the terminal and the destination address is the gateway, and the wifi packet sent by the gateway and the destination address is The wifi packets of the terminal, the wifi packets are downlink data, the transmission link of the wifi packets has relays, and the wifi packets are data packets. The step 203 includes:

网关判断提取出的BSSID和网关的BSSID是否一致,若判断出断提取出的BSSID和网关的BSSID一致且wifi报文为终端发出的wifi报文时,确定出wifi报文为终端发出的且目的地址为网关的wifi报文;若判断出断提取出的BSSID和网关的BSSID一致且wifi报文为网关发出的wifi报文时,确定出wifi报文为网关发出的且目的地址为终端的wifi报文。The gateway determines whether the extracted BSSID is consistent with the gateway's BSSID. If it is determined that the extracted BSSID is consistent with the gateway's BSSID and the wifi packet is a wifi packet sent by the terminal, it is determined that the wifi packet is sent by the terminal and the destination The address is the wifi packet of the gateway; if it is determined that the BSSID extracted is consistent with the BSSID of the gateway and the wifi packet is the wifi packet sent by the gateway, it is determined that the wifi packet is sent by the gateway and the destination address is the terminal's wifi message.

网关判断BSSID与TA是否一致,若判断出BSSID与TA一致时,确定出wifi报文为上行数据且确定出wifi报文的传输链路存在中继。The gateway determines whether the BSSID is consistent with the TA. If it is determined that the BSSID is consistent with the TA, it determines that the wifi packet is uplink data and that there is a relay in the transmission link of the wifi packet.

网关判断wifi报文中是否包括TA和RA,若判断出wifi报文中包括TA和RA时,确定出wifi报文为数据报文。The gateway judges whether the wifi packet includes TA and RA, and if it judges that the wifi packet includes TA and RA, it determines that the wifi packet is a data packet.

步骤204、网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据。Step 204: The gateway collects statistics on the multiple wifi packets according to the type data corresponding to the multiple wifi packets to obtain different types of statistical data.

若所述地址字段包括BSSID、SA和DA时,步骤204具体包括:网关统计出终端发送报文数量,所述终端发送报文数量为地址字段包括BSSID、SA和DA的wifi报文中终端发出的且目的地址为网关的wifi报文的数量;网关统计出网关发送报文数量,所述网关发送报文数量为地址字段包括BSSID、SA和DA的wifi报文中网关发出的且目的地址为终端的wifi报文的数量;网关统计出广播报文数量,所述广播报文数量为地址字段包括BSSID、SA和DA的wifi报文中广播报文的数量;网关统计出下行数据数量,所述下行数据数量为地址字段包括BSSID、SA和DA的wifi报文中下行数据的数量;网关统计出存在中继数量,所述存在中继数量为地址字段包括BSSID、SA和DA的wifi报文中传输链路存在中继的wifi报文的数量。If the address field includes BSSID, SA, and DA, step 204 specifically includes: the gateway counts the number of packets sent by the terminal, and the number of packets sent by the terminal is the number of packets sent by the terminal in the wifi packets whose address field includes BSSID, SA, and DA. and the destination address is the number of wifi packets of the gateway; the gateway counts the number of packets sent by the gateway, and the number of packets sent by the gateway is the number of wifi packets whose address fields include BSSID, SA, and DA, which are sent by the gateway and whose destination address is The number of wifi packets of the terminal; the gateway counts the number of broadcast packets, and the number of broadcast packets is the number of broadcast packets in the wifi packets whose address fields include BSSID, SA and DA; the gateway counts the number of downlink data, so The number of downlink data is the number of downlink data in the wifi message whose address field includes BSSID, SA and DA; the gateway counts the number of existing relays, and the number of existing relays is the wifi message whose address field includes BSSID, SA and DA. The number of wifi packets that are relayed in the transmission link.

若所述地址字段包括BSSID、TA和RA时,步骤204具体包括:网关统计出终端发送报文数量,所述终端发送报文数量为地址字段包括BSSID、TA和RA的wifi报文中终端发出的且目的地址为网关的wifi报文的数量;If the address field includes the BSSID, TA, and RA, step 204 specifically includes: the gateway counts the number of packets sent by the terminal, and the number of packets sent by the terminal is the number of packets sent by the terminal in the wifi packets whose address field includes the BSSID, TA, and RA. The number of wifi packets whose destination address is the gateway;

网关统计出网关发送报文数量,所述网关发送报文数量为地址字段包括BSSID、TA和RA的wifi报文中网关发出的且目的地址为终端的wifi报文的数量;网关统计出上行数据数量,所述下行数据数量为地址字段包括BSSID、TA和RA的wifi报文中上行数据的数量;网关统计出存在中继数量,所述存在中继数量为地址字段包括BSSID、TA和RA的wifi报文中传输链路存在中继的wifi报文的数量;网关统计出数据报文数量,所述数据报文数量为地址字段包括BSSID、TA和RA的wifi报文中数据报文的数量。The gateway counts the number of packets sent by the gateway, and the number of packets sent by the gateway is the number of wifi packets sent by the gateway and whose destination address is the terminal in the wifi packets whose address fields include BSSID, TA, and RA; the gateway counts the uplink data Quantity, the quantity of downlink data is the quantity of uplink data in the wifi message whose address field includes BSSID, TA, and RA; the gateway counts the number of existing relays, and the number of existing relays is that the address field includes BSSID, TA, and RA. The number of wifi packets relayed on the transmission link in the wifi packet; the gateway counts the number of data packets, and the number of data packets is the number of data packets in the wifi packets whose address fields include BSSID, TA, and RA .

步骤205、网关将终端信息发送至数据平台,所述终端信息包括不同类别的统计数据。Step 205: The gateway sends terminal information to the data platform, where the terminal information includes statistical data of different categories.

具体地,终端按照报送周期将终端信息发送至数据平台。Specifically, the terminal sends the terminal information to the data platform according to the reporting period.

本实施例中,终端信息还包括:网关设备标识、终端信息标识、时间戳、信息项数和地址字段。In this embodiment, the terminal information further includes: a gateway device identifier, a terminal information identifier, a timestamp, the number of information items, and an address field.

本实施例中,终端信息可采用JSON格式。例如:终端信息可以为{deviceID:xxxxxx,msgID:xxxxxx,timestamp:xxxxxx,msgcount:xxxxxx,[{SA:xxxxxx,DA:xxxxxx,class:’local’,count:xxxxxx,…},…]}。In this embodiment, the terminal information may be in JSON format. For example, the terminal information can be {deviceID:xxxxxx,msgID:xxxxxx,timestamp:xxxxxx,msgcount:xxxxxx,[{SA:xxxxxx,DA:xxxxxx,class:'local',count:xxxxxx,…},…]}.

其中,“deviceID”为网关标识,“msgID”为终端信息标识,“timestamp”为时间戳,“msgcount”为信息项数,“class”种类,“count”为不同类别的统计数据。其中,时间戳指的是:网关将终端信息上报至数据平台的时间。Among them, "deviceID" is the gateway identifier, "msgID" is the terminal information identifier, "timestamp" is the timestamp, "msgcount" is the number of information items, "class" is the type, and "count" is the statistical data of different categories. The timestamp refers to the time when the gateway reports the terminal information to the data platform.

进一步地,还包括:Further, it also includes:

步骤206、数据平台可对收到的终端信息进行分析处理。Step 206: The data platform may analyze and process the received terminal information.

具体地,步骤206可包括:Specifically, step 206 may include:

步骤2061、数据平台从数据库中查询出与SA和TA对应的终端标识,判断查询出的终端标识与预先获取的终端标识是否一致;Step 2061, the data platform queries the terminal identifiers corresponding to SA and TA from the database, and judges whether the queried terminal identifiers are consistent with the pre-acquired terminal identifiers;

步骤2062、数据平台若判断出查询出的终端标识与预先获取的终端标识一致时确定出终端连接至网关。Step 2062: If the data platform determines that the queried terminal identifier is consistent with the pre-acquired terminal identifier, it is determined that the terminal is connected to the gateway.

步骤2063、数据平台根据下行数据数量、采集周期和下行数据的平均长度计算出下行数据的速率。具体地,通过公式:下行数据的速率=下行数据数量/采集周期×下行数据的平均长度,计算出下行数据的速率。Step 2063: The data platform calculates the rate of the downlink data according to the amount of downlink data, the collection period and the average length of the downlink data. Specifically, the rate of downlink data is calculated by the formula: rate of downlink data=quantity of downlink data/collection period×average length of downlink data.

步骤2064、数据平台根据上行数据数量、采集周期和上行数据的平均长度计算出上行数据的速率。Step 2064: The data platform calculates the rate of the uplink data according to the quantity of the uplink data, the collection period and the average length of the uplink data.

具体地,通过公式:上行数据的速率=上行数据数量/采集周期×上行数据的平均长度,计算出上行数据的速率。Specifically, the rate of uplink data is calculated by the formula: rate of uplink data=number of uplink data/collection period×average length of uplink data.

进一步地,步骤206还可包括:数据平台从终端信息中解析出网关设备标识,根据网关设备标识从数据库中查询出与网关设备标识对应的网关位置信息。Further, step 206 may further include: the data platform parses the gateway device identifier from the terminal information, and searches the database for gateway location information corresponding to the gateway device identifier according to the gateway device identifier.

进一步地,该方法还包括:数据平台向网关返回确认信息。Further, the method further includes: the data platform returns confirmation information to the gateway.

本实施例中,信息采集策略可根据需要进行更新,并根据更新后的信息采集策略执行步骤202至步骤205的信息收集过程。In this embodiment, the information collection policy may be updated as required, and the information collection process of step 202 to step 205 is performed according to the updated information collection policy.

本实施例的信息收集方法可针对多种情况实现终端信息的收集。第一种情况为:终端与本地网关的AP热点已建立wifi连接;第二种情况为:终端与其它网关的AP热点已建立wifi连接,并且数据上行通过本地网关(例如:用户购买了第三方的AP,然后用网线连接到其它网关);第三种情况为:终端与其它网关的AP热点已建立wifi连接,但是数据上行不能通过本地网关;第四种情况为:终端的wifi功能开启,但是未和任何AP建立wifi连接,终端通过其它方式上网。The information collection method of this embodiment can realize the collection of terminal information according to various situations. The first situation is: the terminal has established a wifi connection with the AP hotspot of the local gateway; the second situation is: the terminal has established a wifi connection with the AP hotspot of other gateways, and the data uplink passes through the local gateway (for example: the user purchased a third-party The third case is: the terminal has established a wifi connection with the AP hotspot of other gateways, but the data uplink cannot pass through the local gateway; the fourth case is: the terminal's wifi function is turned on, However, no wifi connection has been established with any AP, and the terminal accesses the Internet through other means.

本实施例提供的信息收集方法的技术方案中,网关采集终端发出的wifi报文和/或网关自身发出的wifi报文,从每个wifi报文中提取地址字段并根据所述地址字段确定出每个wifi报文对应的类型数据,网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据,本实施例实现了对于未接入网关的终端也能够采集到终端信息。本实施例的方案对于用户及其终端不会产生影响,即用户是无感知的。In the technical solution of the information collection method provided in this embodiment, the gateway collects the wifi packets sent by the terminal and/or the wifi packets sent by the gateway itself, extracts the address field from each wifi packet, and determines the address field according to the address field. The type data corresponding to each wifi packet, the gateway collects statistics on the multiple wifi packets according to the type data corresponding to the multiple wifi packets to obtain different types of statistical data. The terminal can also collect terminal information. The solution of this embodiment will not affect the user and the terminal thereof, that is, the user is unaware.

图3为本发明实施例三提供的一种信息收集系统的结构示意图,如图3所示,该系统包括:网关1和数据平台2。FIG. 3 is a schematic structural diagram of an information collection system according to Embodiment 3 of the present invention. As shown in FIG. 3 , the system includes a gateway 1 and a data platform 2 .

进一步地,该系统还包括终端3。Further, the system also includes a terminal 3 .

网关1用于采集终端3发出的wifi报文和/或网关1自身发出的wifi报文;从每个wifi报文中提取地址字段,并根据所述地址字段确定出每个wifi报文对应的类型数据;根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据;将终端信息发送至数据平台2,所述终端信息包括不同类别的统计数据。数据平台2用于接收所述终端信息。The gateway 1 is used to collect the wifi packets sent by the terminal 3 and/or the wifi packets sent by the gateway 1 itself; extract the address field from each wifi packet, and determine the corresponding wifi packet according to the address field. Type data; according to the type data corresponding to multiple wifi packets, perform statistics on multiple wifi packets to obtain different types of statistical data; send terminal information to data platform 2, the terminal information includes different types of statistical data . The data platform 2 is used for receiving the terminal information.

进一步地,所述终端信息还包括地址字段,不同类别的统计数据包括下行数据数量和上行数据数量。数据平台2还用于从数据库中查询出与SA和TA对应的终端标识,判断查询出的终端标识与预先获取的终端标识是否一致;若判断出查询出的终端标识与预先获取的终端标识一致时确定出终端连接至网关;根据下行数据数量、采集周期和下行数据的平均长度计算出下行数据的速率;根据上行数据数量、采集周期和上行数据的平均长度计算出上行数据的速率。Further, the terminal information further includes an address field, and the statistical data of different categories includes the amount of downlink data and the amount of uplink data. The data platform 2 is also used to query the terminal identification corresponding to SA and TA from the database, and determine whether the inquired terminal identification is consistent with the pre-acquired terminal identification; if it is determined that the inquired terminal identification is consistent with the pre-acquired terminal identification When the terminal is connected to the gateway, it is determined that the terminal is connected to the gateway; the downlink data rate is calculated according to the amount of downlink data, the collection period and the average length of the downlink data; the rate of the uplink data is calculated according to the amount of uplink data, the collection period and the average length of the uplink data.

进一步地,所述终端信息还包括网关设备标识。数据平台2还用于从终端信息中解析出网关设备标识,根据网关设备标识从数据库中查询出与网关设备标识对应的网关位置信息。Further, the terminal information also includes a gateway device identifier. The data platform 2 is further configured to parse out the gateway device identification from the terminal information, and query the gateway location information corresponding to the gateway device identification from the database according to the gateway device identification.

本实施例提供的信息收集系统可用于实现上述实施例一或者实施例二提供的信息收集方法,具体描述可参见上述实施例一或者实施例二,此处不再具体描述。The information collection system provided in this embodiment can be used to implement the information collection method provided in the first embodiment or the second embodiment. For a specific description, refer to the first embodiment or the second embodiment, which is not described in detail here.

本实施例提供的信息收集系统的技术方案中,网关采集终端发出的wifi报文和/或网关自身发出的wifi报文,从每个wifi报文中提取地址字段并根据所述地址字段确定出每个wifi报文对应的类型数据,网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据,本实施例实现了对于未接入网关的终端也能够采集到终端信息。In the technical solution of the information collection system provided by this embodiment, the gateway collects the wifi packets sent by the terminal and/or the wifi packets sent by the gateway itself, extracts the address field from each wifi packet, and determines the address field according to the address field. The type data corresponding to each wifi packet, the gateway collects statistics on the multiple wifi packets according to the type data corresponding to the multiple wifi packets to obtain different types of statistical data. The terminal can also collect terminal information.

可以理解的是,以上实施方式仅仅是为了说明本发明的原理而采用的示例性实施方式,然而本发明并不局限于此。对于本领域内的普通技术人员而言,在不脱离本发明的精神和实质的情况下,可以做出各种变型和改进,这些变型和改进也视为本发明的保护范围。It can be understood that the above embodiments are only exemplary embodiments adopted to illustrate the principle of the present invention, but the present invention is not limited thereto. For those skilled in the art, without departing from the spirit and essence of the present invention, various modifications and improvements can be made, and these modifications and improvements are also regarded as the protection scope of the present invention.

Claims (8)

1.一种信息收集方法,其特征在于,包括:1. an information collection method, is characterized in that, comprises: 网关采集终端发出的wifi报文和/或网关自身发出的wifi报文;The gateway collects the wifi packets sent by the terminal and/or the wifi packets sent by the gateway itself; 网关从每个wifi报文中提取地址字段,并根据所述地址字段确定出每个wifi报文对应的类型数据;The gateway extracts the address field from each wifi message, and determines the type data corresponding to each wifi message according to the address field; 网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据;The gateway collects statistics on multiple WiFi packets according to the type data corresponding to multiple WiFi packets to obtain different types of statistical data; 网关将终端信息发送至数据平台,所述终端信息包括不同类别的统计数据;The gateway sends terminal information to the data platform, and the terminal information includes statistical data of different categories; 所述终端信息还包括地址字段,不同类别的统计数据包括下行数据数量和上行数据数量;The terminal information further includes an address field, and the statistical data of different categories includes the amount of downlink data and the amount of uplink data; 所述网关将终端信息发送至数据平台之后还包括:After the gateway sends the terminal information to the data platform, it further includes: 数据平台从数据库中查询出与SA和TA对应的终端标识,判断查询出的终端标识与预先获取的终端标识是否一致;The data platform queries the terminal identifiers corresponding to SA and TA from the database, and determines whether the queried terminal identifiers are consistent with the pre-acquired terminal identifiers; 数据平台若判断出查询出的终端标识与预先获取的终端标识一致时确定出终端连接至网关;If the data platform determines that the queried terminal identification is consistent with the pre-acquired terminal identification, it is determined that the terminal is connected to the gateway; 数据平台根据下行数据数量、采集周期和下行数据的平均长度计算出下行数据的速率;The data platform calculates the rate of downlink data according to the amount of downlink data, the collection period and the average length of downlink data; 数据平台根据上行数据数量、采集周期和上行数据的平均长度计算出上行数据的速率。The data platform calculates the rate of the uplink data according to the amount of uplink data, the collection period and the average length of the uplink data. 2.根据权利要求1所述的信息收集方法,其特征在于,若所述地址字段包括BSSID、SA和DA,所述类型数据包括wifi报文为终端发出的且目的地址为网关的wifi报文、wifi报文为网关发出的且目的地址为终端的wifi报文、wifi报文为广播报文、wifi报文为下行数据、wifi报文的传输链路存在中继;2. The information collection method according to claim 1, wherein, if the address field includes BSSID, SA and DA, and the type data includes a wifi packet sent by a terminal and a destination address of which is a gateway , The wifi packet is the wifi packet sent by the gateway and the destination address is the terminal, the wifi packet is the broadcast packet, the wifi packet is the downlink data, and the transmission link of the wifi packet has a relay; 所述网关从每个wifi报文中提取地址字段,并根据所述地址字段确定出每个wifi报文对应的类型数据包括:The gateway extracts an address field from each wifi packet, and determines, according to the address field, that the type data corresponding to each wifi packet includes: 网关判断提取出的BSSID和网关的BSSID是否一致,若判断出断提取出的BSSID和网关的BSSID一致且wifi报文为终端发出的wifi报文时,确定出wifi报文为终端发出的且目的地址为网关的wifi报文;若判断出断提取出的BSSID和网关的BSSID一致且wifi报文为网关发出的wifi报文时,确定出wifi报文为网关发出的且目的地址为终端的wifi报文;The gateway determines whether the extracted BSSID is consistent with the gateway's BSSID. If it is determined that the extracted BSSID is consistent with the gateway's BSSID and the wifi packet is a wifi packet sent by the terminal, it is determined that the wifi packet is sent by the terminal and the destination The address is the wifi packet of the gateway; if it is determined that the BSSID extracted is consistent with the BSSID of the gateway and the wifi packet is the wifi packet sent by the gateway, it is determined that the wifi packet is sent by the gateway and the destination address is the terminal's wifi message; 网关判断DA是否为广播地址,若判断出DA为广播地址时,确定出wifi报文为广播报文;The gateway determines whether the DA is a broadcast address, and if it determines that the DA is a broadcast address, it determines that the wifi message is a broadcast message; 网关判断BSSID与SA是否一致,若判断出BSSID与SA一致时,确定出wifi报文为下行数据且确定出wifi报文的传输链路存在中继。The gateway determines whether the BSSID is consistent with the SA, and if it is determined that the BSSID is consistent with the SA, it determines that the wifi packet is downlink data and that there is a relay in the transmission link of the wifi packet. 3.根据权利要求2所述的信息收集方法,其特征在于,所述不同类别的统计数据包括终端发送报文数量、网关发送报文数量、广播报文数量、下行数据数量和存在中继数量;3. The information collection method according to claim 2, wherein the statistical data of different categories includes the number of packets sent by the terminal, the number of packets sent by the gateway, the number of broadcast packets, the number of downlink data and the number of existing relays ; 所述网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据包括:According to the type data corresponding to the multiple WiFi packets, the gateway collects statistics on the multiple WiFi packets to obtain different types of statistical data including: 网关统计出终端发送报文数量,所述终端发送报文数量为地址字段包括BSSID、SA和DA的wifi报文中终端发出的且目的地址为网关的wifi报文的数量;The gateway counts the number of packets sent by the terminal, and the number of packets sent by the terminal is the number of wifi packets sent by the terminal and whose destination address is the gateway in the wifi packets whose address fields include BSSID, SA, and DA; 网关统计出网关发送报文数量,所述网关发送报文数量为地址字段包括BSSID、SA和DA的wifi报文中网关发出的且目的地址为终端的wifi报文的数量;The gateway counts the number of packets sent by the gateway, and the number of packets sent by the gateway is the number of wifi packets sent by the gateway and whose destination address is the terminal in the wifi packets whose address fields include BSSID, SA, and DA; 网关统计出广播报文数量,所述广播报文数量为地址字段包括BSSID、SA和DA的wifi报文中广播报文的数量;The gateway counts the number of broadcast packets, and the number of broadcast packets is the number of broadcast packets in the wifi packets whose address fields include BSSID, SA, and DA; 网关统计出下行数据数量,所述下行数据数量为地址字段包括BSSID、SA和DA的wifi报文中下行数据的数量;The gateway counts the amount of downlink data, and the amount of downlink data is the amount of downlink data in the wifi message whose address field includes BSSID, SA, and DA; 网关统计出存在中继数量,所述存在中继数量为地址字段包括BSSID、SA和DA的wifi报文中传输链路存在中继的wifi报文的数量。The gateway counts the number of existing relays, where the number of existing relays is the number of wifi packets whose address fields include BSSID, SA, and DA in the wifi packets whose transmission links have relays. 4.根据权利要求1所述的信息收集方法,其特征在于,若所述地址字段包括BSSID、TA和RA;所述类型数据包括wifi报文为终端发出的且目的地址为网关的wifi报文、wifi报文为网关发出的且目的地址为终端的wifi报文、wifi报文为下行数据、wifi报文的传输链路存在中继、wifi报文为数据报文;4. information collection method according to claim 1 is characterized in that, if described address field comprises BSSID, TA and RA; Described type data comprises wifi message that terminal sends out and destination address is the wifi message of gateway , The wifi packet is the wifi packet sent by the gateway and the destination address is the terminal, the wifi packet is the downlink data, the transmission link of the wifi packet has a relay, and the wifi packet is the data packet; 所述网关从每个wifi报文中提取地址字段,并根据所述地址字段确定出每个wifi报文对应的类型数据包括:The gateway extracts an address field from each wifi packet, and determines, according to the address field, that the type data corresponding to each wifi packet includes: 网关判断提取出的BSSID和网关的BSSID是否一致,若判断出断提取出的BSSID和网关的BSSID一致且wifi报文为终端发出的wifi报文时,确定出wifi报文为终端发出的且目的地址为网关的wifi报文;若判断出断提取出的BSSID和网关的BSSID一致且wifi报文为网关发出的wifi报文时,确定出wifi报文为网关发出的且目的地址为终端的wifi报文;The gateway determines whether the extracted BSSID is consistent with the gateway's BSSID. If it is determined that the extracted BSSID is consistent with the gateway's BSSID and the wifi packet is a wifi packet sent by the terminal, it is determined that the wifi packet is sent by the terminal and the destination The address is the wifi packet of the gateway; if it is determined that the BSSID extracted is consistent with the BSSID of the gateway and the wifi packet is the wifi packet sent by the gateway, it is determined that the wifi packet is sent by the gateway and the destination address is the terminal's wifi message; 网关判断BSSID与TA是否一致,若判断出BSSID与TA一致时,确定出wifi报文为上行数据且确定出wifi报文的传输链路存在中继;The gateway judges whether the BSSID is consistent with the TA, and if it judges that the BSSID is consistent with the TA, it determines that the wifi packet is uplink data and that there is a relay in the transmission link of the wifi packet; 网关判断wifi报文中是否包括TA和RA,若判断出wifi报文中包括TA和RA时,确定出wifi报文为数据报文。The gateway judges whether the wifi packet includes TA and RA, and if it judges that the wifi packet includes TA and RA, it determines that the wifi packet is a data packet. 5.根据权利要求4所述的信息收集方法,其特征在于,所述不同类别的统计数据包括终端发送报文数量、网关发送报文数量、上行数据数量、存在中继数量和数据报文数量;5. The information collection method according to claim 4, wherein the statistical data of different categories includes the number of packets sent by the terminal, the number of packets sent by the gateway, the number of uplink data, the number of existing relays, and the number of data packets ; 所述网关根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据包括:According to the type data corresponding to the multiple WiFi packets, the gateway collects statistics on the multiple WiFi packets to obtain different types of statistical data including: 网关统计出终端发送报文数量,所述终端发送报文数量为地址字段包括BSSID、TA和RA的wifi报文中终端发出的且目的地址为网关的wifi报文的数量;The gateway counts the number of packets sent by the terminal, and the number of packets sent by the terminal is the number of wifi packets sent by the terminal and whose destination address is the gateway in the wifi packets whose address fields include BSSID, TA, and RA; 网关统计出网关发送报文数量,所述网关发送报文数量为地址字段包括BSSID、TA和RA的wifi报文中网关发出的且目的地址为终端的wifi报文的数量;The gateway counts the number of packets sent by the gateway, and the number of packets sent by the gateway is the number of wifi packets sent by the gateway and whose destination address is the terminal in the wifi packets whose address fields include BSSID, TA, and RA; 网关统计出上行数据数量,所述下行数据数量为地址字段包括BSSID、TA和RA的wifi报文中上行数据的数量;The gateway counts the amount of uplink data, and the amount of downlink data is the amount of uplink data in the wifi message whose address field includes BSSID, TA, and RA; 网关统计出存在中继数量,所述存在中继数量为地址字段包括BSSID、TA和RA的wifi报文中传输链路存在中继的wifi报文的数量;The gateway counts the number of existing relays, and the number of existing relays is the number of wifi packets whose transmission links have relays in the wifi packets whose address fields include BSSID, TA, and RA; 网关统计出数据报文数量,所述数据报文数量为地址字段包括BSSID、TA和RA的wifi报文中数据报文的数量。The gateway counts the number of data packets, where the number of data packets is the number of data packets in the wifi packets whose address fields include BSSID, TA, and RA. 6.根据权利要求1所述的信息收集方法,其特征在于,所述终端信息还包括网关设备标识;6. The information collection method according to claim 1, wherein the terminal information further comprises a gateway device identifier; 所述网关将终端信息发送至数据平台之后还包括:After the gateway sends the terminal information to the data platform, it further includes: 数据平台从终端信息中解析出网关设备标识,根据网关设备标识从数据库中查询出与网关设备标识对应的网关位置信息。The data platform parses the gateway device identification from the terminal information, and queries the database for gateway location information corresponding to the gateway device identification according to the gateway device identification. 7.一种信息收集系统,其特征在于,包括:网关和数据平台;7. An information collection system, comprising: a gateway and a data platform; 所述网关,用于采集终端发出的wifi报文和/或网关自身发出的wifi报文;从每个wifi报文中提取地址字段,并根据所述地址字段确定出每个wifi报文对应的类型数据;根据多个wifi报文对应的类型数据,对多个wifi报文进行统计以得出不同类别的统计数据;将终端信息发送至数据平台,所述终端信息包括不同类别的统计数据;The gateway is used to collect the wifi packets sent by the terminal and/or the wifi packets sent by the gateway itself; extract the address field from each wifi packet, and determine the corresponding wifi packet according to the address field. type data; according to the type data corresponding to the multiple wifi packets, perform statistics on the multiple wifi packets to obtain different types of statistical data; send terminal information to the data platform, where the terminal information includes different types of statistical data; 所述数据平台,用于接收所述终端信息;the data platform for receiving the terminal information; 所述终端信息还包括地址字段,不同类别的统计数据包括下行数据数量和上行数据数量;The terminal information further includes an address field, and the statistical data of different categories includes the amount of downlink data and the amount of uplink data; 所述数据平台还用于从数据库中查询出与SA和TA对应的终端标识,判断查询出的终端标识与预先获取的终端标识是否一致;若判断出查询出的终端标识与预先获取的终端标识一致时确定出终端连接至网关;根据下行数据数量、采集周期和下行数据的平均长度计算出下行数据的速率;根据上行数据数量、采集周期和上行数据的平均长度计算出上行数据的速率。The data platform is also used to query the terminal identification corresponding to SA and TA from the database, and determine whether the inquired terminal identification is consistent with the pre-acquired terminal identification; When they are consistent, it is determined that the terminal is connected to the gateway; the rate of downlink data is calculated according to the amount of downlink data, the collection period and the average length of the downlink data; the rate of uplink data is calculated according to the amount of uplink data, the collection period and the average length of the uplink data. 8.根据权利要求7所述的信息收集系统,其特征在于,所述终端信息还包括网关设备标识;8. The information collection system according to claim 7, wherein the terminal information further comprises a gateway device identification; 所述数据平台还用于从终端信息中解析出网关设备标识,根据网关设备标识从数据库中查询出与网关设备标识对应的网关位置信息。The data platform is further configured to parse out the gateway device identification from the terminal information, and query the gateway location information corresponding to the gateway device identification from the database according to the gateway device identification.
CN201910005442.8A 2019-01-03 2019-01-03 Information collection method and information collection system Active CN109451530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910005442.8A CN109451530B (en) 2019-01-03 2019-01-03 Information collection method and information collection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910005442.8A CN109451530B (en) 2019-01-03 2019-01-03 Information collection method and information collection system

Publications (2)

Publication Number Publication Date
CN109451530A CN109451530A (en) 2019-03-08
CN109451530B true CN109451530B (en) 2022-04-22

Family

ID=65542420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910005442.8A Active CN109451530B (en) 2019-01-03 2019-01-03 Information collection method and information collection system

Country Status (1)

Country Link
CN (1) CN109451530B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113316165B (en) * 2020-02-26 2024-02-27 瑞昱半导体股份有限公司 Method and apparatus for dynamic statistics period adjustment for rate adaptation

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008016778A2 (en) * 2006-07-31 2008-02-07 Agito Networks, Inc. System and method to facilitate handover
CN102761474A (en) * 2011-04-28 2012-10-31 华为技术有限公司 Message filtering method and access equipment
CN103458456A (en) * 2013-08-27 2013-12-18 中国科学院信息工程研究所 Method and device for user behavior detection based on mobile terminal Wi-Fi data
CN103634807A (en) * 2012-08-24 2014-03-12 中国移动通信集团四川有限公司 WIFI data hotspot cell data monitoring method and WLAN deployment ordering method and device
CN103906107A (en) * 2014-03-21 2014-07-02 杭州敦崇科技股份有限公司 Data collecting type WLAN testing system and method based on WIFI terminal
CN104093129A (en) * 2014-06-10 2014-10-08 中兴通讯股份有限公司 Wi-Fi-based information sharing broadcast method and apparatus
CN104837154A (en) * 2015-03-31 2015-08-12 小米科技有限责任公司 Control method and device for wireless access point
CN104904286A (en) * 2013-01-07 2015-09-09 华为技术有限公司 Method, device and system for collecting access point information of wireless local area network
CN105050063A (en) * 2015-09-22 2015-11-11 北京金山安全软件有限公司 Method and device for pushing information
US9251609B1 (en) * 2013-03-04 2016-02-02 Ca, Inc. Timelined spider diagrams
CN106507363A (en) * 2017-01-06 2017-03-15 北京锐云通信息技术有限公司 A kind of method for finding fishing access point
CN106658756A (en) * 2016-12-13 2017-05-10 浙江大华技术股份有限公司 Method and device for recognizing connection between terminal device and hotspot
WO2017100790A1 (en) * 2015-12-10 2017-06-15 Cellepathy Inc. Enhanced navigation instruction and user determination
CN107734528A (en) * 2017-11-03 2018-02-23 广东欧珀移动通信有限公司 Wireless network detection method, device, storage medium and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10379092B2 (en) * 2013-05-21 2019-08-13 Alon Daniel GAFSOU System and method for scent perception measurements and for construction of a scent database
US9918322B2 (en) * 2014-05-23 2018-03-13 embedUR systems, Inc. Radio resources management system
US9661530B2 (en) * 2014-12-12 2017-05-23 Apple Inc. Data traffic bearer selection based on backhaul statistics
CN108882219A (en) * 2018-06-26 2018-11-23 深圳市梧桐世界科技股份有限公司 A kind of wireless terminal features management system and method

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008016778A2 (en) * 2006-07-31 2008-02-07 Agito Networks, Inc. System and method to facilitate handover
CN102761474A (en) * 2011-04-28 2012-10-31 华为技术有限公司 Message filtering method and access equipment
CN103634807A (en) * 2012-08-24 2014-03-12 中国移动通信集团四川有限公司 WIFI data hotspot cell data monitoring method and WLAN deployment ordering method and device
CN104904286A (en) * 2013-01-07 2015-09-09 华为技术有限公司 Method, device and system for collecting access point information of wireless local area network
US9251609B1 (en) * 2013-03-04 2016-02-02 Ca, Inc. Timelined spider diagrams
CN103458456A (en) * 2013-08-27 2013-12-18 中国科学院信息工程研究所 Method and device for user behavior detection based on mobile terminal Wi-Fi data
CN103906107A (en) * 2014-03-21 2014-07-02 杭州敦崇科技股份有限公司 Data collecting type WLAN testing system and method based on WIFI terminal
CN104093129A (en) * 2014-06-10 2014-10-08 中兴通讯股份有限公司 Wi-Fi-based information sharing broadcast method and apparatus
CN104837154A (en) * 2015-03-31 2015-08-12 小米科技有限责任公司 Control method and device for wireless access point
CN105050063A (en) * 2015-09-22 2015-11-11 北京金山安全软件有限公司 Method and device for pushing information
WO2017100790A1 (en) * 2015-12-10 2017-06-15 Cellepathy Inc. Enhanced navigation instruction and user determination
CN106658756A (en) * 2016-12-13 2017-05-10 浙江大华技术股份有限公司 Method and device for recognizing connection between terminal device and hotspot
CN106507363A (en) * 2017-01-06 2017-03-15 北京锐云通信息技术有限公司 A kind of method for finding fishing access point
CN107734528A (en) * 2017-11-03 2018-02-23 广东欧珀移动通信有限公司 Wireless network detection method, device, storage medium and terminal

Also Published As

Publication number Publication date
CN109451530A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
EP2469761B1 (en) Topology detection of LTE nodes
US9277429B2 (en) Monitoring probe for identifying a user plane identifier of a user device
EP2907329B1 (en) Performance monitoring of control and provisioning of wireless access points (capwap) control channels
US10015688B2 (en) Technique for monitoring data traffic
CN107493159A (en) The apparatus and method of effective dispensing device triggering message
EP3449596B1 (en) Technique for handling service level related performance data for roaming user terminals
US9107032B2 (en) Method of collecting per-user performance data
JP2017534188A (en) Method, telematic server, and base station for supporting vehicular communication in a cellular network
US20090164355A1 (en) Accounting system, accounting client and method for reporting accounting information of a user by an accounting client
KR101384795B1 (en) Network monitoring and analysis tool
CN109451530B (en) Information collection method and information collection system
WO2016095379A1 (en) Assistant positioning method and device for packet loss position and computer storage medium
KR101960653B1 (en) Improving charging information accuracy in a telecommunications network
CN102045182A (en) Service fault localization method, device and system
CN103856930B (en) Wireless roaming method, radio roaming apparatus and system
KR101980518B1 (en) Improving charging information accuracy in a telecommunications network
AU2014208273B2 (en) A Method for Identifying a User Plane Identifier of a User Device and a Monitoring Probe Thereof
CN101459941B (en) Method and system for monitoring mark transferring
CN102685769B (en) The topology detection of LTE node
CN103167429A (en) System and method for measuring MMS download rate in multiple dimensions

Legal Events

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