基于Python爬虫技术的虚假数据溯源与途中过滤分析
2021-01-03王景
王景






摘 要:面对不同网络系统场景下存在虚假数据溯源精度低、过滤执行范围小等问题,提出利用Python爬虫技术的虚假数据处理方案,将虚假数据覆盖的网络空间划分为多个网格,在网格系统中布置多个节点,利用爬虫管理器、采集器等软件,对网页、应用程序界面的数据进行Python爬虫抓取,标记抓取到的数据包,再使用共享密钥对sink网关节点获得的数据包做出其消息认证码(Message Authentication Code,MAC)地址是否合法的判断,若不合法则启动虚假数溯源,过滤掉无用的密钥节点。
关键词:Python爬虫技术;虚假数据;溯源;途中过滤分析
中图分类号:TP393.092 文献标识码:A 文章编号:1003-5168(2021)22-0027-04
Abstract: In the face of different network system scenarios, there are problems such as low traceability of false data and small filtering execution range. A false data processing scheme using Python crawler technology is proposed to divide the network space into multiple grids in the network system. Deploy multiple functional nodes, use crawler managers, collectors and other software facilities to crawl the network data with Python crawlers, mark the captured data packets, and then use the shared key to obtain the data packets from the sink aggregation node and make a MAC Proof of whether the address is legal or not. If it is not legal, the false data source will be started to filter out the useless key nodes.
Keywords: Python crawler technology;false data;traceability;filter analysis on the way
因无线传感网络本身的储存空间、计算能力有限,它很容易受到外部对象的攻击,导致敏感信息被捕获和窃取、虚假数据被注入,若不能在短时间内对虚假数据进行溯源、过滤,则可能引发网络报警或系统瘫痪。通过将多个小型传感器装置布置到无线网络的不同节点,生成自组织形式的数据传输网络,能够使每个节点都具有数据采集、处理、定位与连接等功能。因而,利用Python爬虫技术自动抓取网页链接或网站中不同节点的信息,对各个节点地址的数据包进行处理和传输,包括不同节点对应的加密密钥、发送数据包信息的检测与分析,提取出重要的数据内容,将促进无线网络系统中的数据采集、分析与溯源定位,实现对多路虚假数据的定位、追溯与过滤[1]。
1 虚假数据覆盖范围的网络划分
在開展无线网络系统的虚假数据溯源、过滤任务之前,为保证网络虚假数据处理的全面性,要根据不同数据信息所处的网络环境进行网络空间中网格大小的划分,将其分割为多个同样大小的网格,具体网络划分结构如图1所示。……