CN103595734B - Based on the online social network fast repairing method that user-association structure divides - Google Patents
Based on the online social network fast repairing method that user-association structure divides Download PDFInfo
- Publication number
- CN103595734B CN103595734B CN201310637200.3A CN201310637200A CN103595734B CN 103595734 B CN103595734 B CN 103595734B CN 201310637200 A CN201310637200 A CN 201310637200A CN 103595734 B CN103595734 B CN 103595734B
- Authority
- CN
- China
- Prior art keywords
- group
- nodes
- node
- user association
- association structure
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000008439 repair process Effects 0.000 claims abstract description 54
- 230000005540 biological transmission Effects 0.000 claims description 25
- 238000004891 communication Methods 0.000 claims description 3
- 238000010276 construction Methods 0.000 claims description 2
- 230000001629 suppression Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 2
- 230000002349 favourable effect Effects 0.000 description 2
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
本发明公开基于用户关联结构划分的在线社交网络快速修复方法,1)根据在线社交网络中的用户关系数据构建用户关联图G;2)在图G中计算节点和节点群的消息传播能力;3)根据消息传播能力将图G划分为第一级用户关联结构群,并在第一级用户关联结构群的基础上进行第二级用户关联结构群划分;4)在用户关联结构群中将权重最大的节点标记为关键节点,同时将群之间的相邻接的节点标记为边界节点;5)按照先向关键节点和/或边界节点发送补丁的快速修复方式,然后再逐步修补其他节点,完成修复。本方法针对智能终端上使用的在线社交网络,具有在带宽限制的条件下,可快速有效修复在线社交网络漏洞,防止攻击大规模扩散及危害等特点。
The present invention discloses a quick repair method for an online social network based on user association structure division, 1) constructing a user association graph G according to user relationship data in an online social network; 2) calculating the message dissemination capabilities of nodes and node groups in the graph G; 3 ) Divide the graph G into the first-level user association structure group according to the message dissemination ability, and divide the second-level user association structure group on the basis of the first-level user association structure group; 4) In the user association structure group, the weight The largest node is marked as a key node, and the adjacent nodes between groups are marked as boundary nodes; 5) Follow the quick repair method of sending patches to key nodes and/or boundary nodes first, and then gradually patch other nodes, Complete the repair. This method is aimed at the online social network used on the intelligent terminal, and has the characteristics of quickly and effectively repairing the online social network vulnerability under the condition of bandwidth limitation, and preventing the large-scale spread and harm of the attack.
Description
技术领域technical field
本发明属于网络安全技术领域,具体涉及一种智能终端中基于用户关联结构划分的在线社交网络快速修复方法。The invention belongs to the technical field of network security, and in particular relates to an online social network fast repair method based on user association structure division in an intelligent terminal.
背景技术Background technique
随着在线社交网络与智能终端的不断发展,越来越多的用户开始频繁地在智能终端上使用在线社交网络,随之而来的安全性问题的影响也愈发严峻。其中,通过在线社交网络中的安全漏洞实施攻击及隐私窃取是最常见的威胁之一,而这一威胁伴随着拥护对智能终端及社交网络的依赖性和使用频繁度的增高而不断加剧,对智能终端及社交网络的安全性防护以及用户隐私保护等方面带来了严峻挑战。With the continuous development of online social networks and smart terminals, more and more users begin to frequently use online social networks on smart terminals, and the impact of subsequent security issues is becoming more and more severe. Among them, attacks and privacy theft through security loopholes in online social networks are one of the most common threats, and this threat continues to intensify with the increasing dependence and frequency of use on smart terminals and social networks. The security protection of smart terminals and social networks and the protection of user privacy have brought severe challenges.
在线社交网络,由于其自身实现中难以避免的各种漏洞,复杂网络拓扑特性、社会工程学特性以及开放API等支持供第三方实施开发等特性,为各类漏洞攻击及其迅速、广泛传播提供了有利条件,近年来在线社交网络遭受攻击的例子层出不穷。而随着智能终端的普及和大规模使用,用户开始在智能终端上使用在线社交网络,当其出现漏洞被攻击以及有更新修复补丁需要发放时,智能终端上的网络带宽无法和PC终端相比,且无法保证用户在使用哪一种网络,无法保证带宽。由于智能终端网络带宽的限制等问题,存在着无法在最短时间统一发放修复补丁的问题,从而为漏洞攻击提供了有利条件。而如何安排漏洞修复及补丁发放,使智能终端上在线社交网络的漏洞尽快被修复,攻击危害尽量降低,是目前亟需研究解决的关键问题之一。Online social networks, due to various loopholes that are unavoidable in their own implementation, complex network topology features, social engineering features, and open APIs for third-party implementation and development, etc., provide a good source for various vulnerability attacks and their rapid and widespread spread. With favorable conditions, examples of attacks on online social networks have emerged in an endless stream in recent years. With the popularization and large-scale use of smart terminals, users begin to use online social networks on smart terminals. When a vulnerability is attacked and an update patch needs to be released, the network bandwidth on the smart terminal cannot be compared with that of the PC terminal. , and cannot guarantee which network the user is using, and cannot guarantee the bandwidth. Due to the limitations of the network bandwidth of smart terminals and other issues, there is a problem that it is impossible to uniformly distribute repair patches in the shortest time, which provides favorable conditions for vulnerability attacks. How to arrange vulnerability repair and patch distribution, so that the vulnerabilities of online social networks on smart terminals can be repaired as soon as possible, and the damage of attacks can be minimized is one of the key issues that need to be studied and solved urgently.
当前,已有一些工作研究者对智能终端以及在线社交网络恶意代码的抑制及修复方法进行了研究。比较具有代表性的相关方法主要包括:在针对智能终端上传播的蠕虫抑制修复方法上,美国宾州州立大学的朱森存教授等人,针对通过手机传播的蠕虫,提出了基于社交关系的手机蠕虫抑制修复方案,其主要思想是提取出移动网络中的社交关系图并划分为不同的组,通过对组内成员进行补丁修复将蠕虫尽量控制在特定区域内,从而抑制蠕虫传播的思路。在针对社交网络中的蠕虫传播抑制方法,美国佛罗里达大学的Nguyen等人提出了一种抑制社交网络中蠕虫的传播方法,考虑了社交网络拓扑的动态变化这一因素,利用社交网络的群组结构找出网络中的核心薄弱节点,通过对这些节点的修复抑制蠕虫的传播。At present, some working researchers have studied the suppression and repair methods of malicious codes in smart terminals and online social networks. Relatively representative related methods mainly include: In terms of the worm suppression and repair method for intelligent terminals, Professor Zhu Sencun of Pennsylvania State University and others proposed a social relationship-based mobile phone worm suppression method for worms that spread through mobile phones. The repair scheme, the main idea is to extract the social relationship graph in the mobile network and divide it into different groups, and control the worm in a specific area as much as possible by patching the members in the group, thereby suppressing the spread of the worm. Aiming at the method of suppressing the spread of worms in social networks, Nguyen et al. from the University of Florida proposed a method for suppressing the spread of worms in social networks, which takes into account the dynamic changes in the topology of social networks and utilizes the group structure of social networks Find out the core weak nodes in the network, and suppress the spread of worms by repairing these nodes.
上述方法为智能终端社交网络的漏洞修复及补丁发放提供了较好的借鉴思路,但是由于在线社交网络的用户关系和相对手机移动网络中的社交关系更为复杂,如果直接应用当前针对手机社交关系的划分方案,便会出现大量用户聚集到同一用户组,无法起到较好的划分抑制效果;而由于智能终端移动网络的带宽等限制,使得传统互联网中在线社交网络的修复及补丁发放方式受到了极大制约,从而无法快速有效的实现补丁发放及漏洞修复,其时间滞后性将带来更多的用户遭受攻击危害。因此,如何实现智能终端在线社交网络补丁发放及漏洞修复、降低攻击危害的快速且有效的方法,是目前维护智能终端在线社交网络安全的重要需求。The above method provides a good reference for the vulnerability repair and patch distribution of the smart terminal social network, but because the user relationship of the online social network is more complicated than the social relationship in the mobile phone network, if the current social relationship for the mobile phone is directly applied A large number of users will gather in the same user group, which cannot achieve a good partition suppression effect; and due to the limitation of the bandwidth of the mobile network of smart terminals, the repair and patch distribution methods of online social networks in the traditional Internet are limited. As a result, it is impossible to quickly and effectively implement patch distribution and vulnerability repair, and its time lag will bring more users to be attacked. Therefore, how to realize the rapid and effective method of issuing patches and repairing vulnerabilities in the online social network of smart terminals and reducing the damage of attacks is an important requirement for maintaining the security of online social networks of smart terminals at present.
发明内容Contents of the invention
针对当在智能终端上使用的在线社交网络出现漏洞及攻击时,如何实施快速修复降低攻击危害的问题,本发明的目的在于提出一种智能终端中基于用户关联结构划分的在线社交网络快速修复方法,通过分析在线社交网络的信息传播情况,将用户根据分析结果划分关联结构,并识别标记关联结构中的关键节点和边界节点,当出现漏洞或攻击需要发放补丁及修复方法时,通过先修复关键节点和边界节点的方式,有效限制漏洞攻击的大肆传播,并达到在智能终端有限带宽的情况下迅速修复的目的。Aiming at the problem of how to implement quick repairs to reduce the damage of attacks when there are loopholes and attacks in the online social network used on smart terminals, the purpose of the present invention is to propose a quick repair method for online social networks based on user association structure division in smart terminals , by analyzing the information dissemination of online social networks, users are divided into association structures according to the analysis results, and key nodes and boundary nodes in the association structure are identified and marked. The way of nodes and border nodes can effectively limit the spread of vulnerability attacks and achieve the purpose of rapid repair under the condition of limited bandwidth of smart terminals.
本发明的技术方案如下:一种基于用户关联结构划分的在线社交网络快速修复方法,其步骤包括:The technical scheme of the present invention is as follows: a method for quickly repairing an online social network based on user association structure division, the steps of which include:
1)在移动智能终端根据在线社交网络中的用户关系数据构建用户关联图G;1) Construct a user association graph G on the mobile smart terminal according to the user relationship data in the online social network;
2)在所述图G中计算节点和节点群的消息传播能力;2) calculating the message dissemination capability of nodes and node groups in the graph G;
3)根据所述消息传播能力将所述图G划分为第一级用户关联结构群,并在所述第一级用户关联结构群的基础上进行第二级用户关联结构群划分;3) dividing the graph G into first-level user association structure groups according to the message dissemination capability, and performing second-level user association structure group division on the basis of the first-level user association structure groups;
4)在所述第一级用户关联结构群和/或第二级用户关联结构群中将权重最大的节点标记为关键节点,同时将群之间的相邻接的节点标记为边界节点;4) marking the node with the largest weight as a key node in the first-level user association structure group and/or the second-level user association structure group, and marking the adjacent nodes between the groups as boundary nodes;
5)按照先向关键节点和/或边界节点发送补丁的快速修复方式,然后再逐步修补其他节点,完成修复。5) Follow the quick repair method of sending patches to key nodes and/or border nodes first, and then gradually repair other nodes to complete the repair.
更进一步,所述群U的消息传播能力其中n为U中的节点数量,m为连接边的数量,pij是节点的消息传播能力。Furthermore, the message dissemination capability of the group U where n is the number of nodes in U, m is the number of connecting edges, and p ij is the message propagation capability of nodes.
更进一步,所述pij通过获取社交网络单位时间内的节点之间的消息传播概率表示。Furthermore, the p ij is represented by obtaining the message propagation probability between nodes in the social network per unit time.
更进一步,根据所述消息传播能力将消息传递频繁的用户节点划到同一结构群中,使群内的消息传递能力强,群与群之间的消息传递能力低。Furthermore, according to the message transmission capability, the user nodes with frequent message transmission are classified into the same structural group, so that the message transmission capability within the group is strong, and the message transmission capability between groups is low.
更进一步,所述智能移动终端为智能手机、Pad、PDA。Furthermore, the intelligent mobile terminal is a smart phone, Pad, PDA.
更进一步,所述用户关系数据包括用户、用户间的好友关联关系,用户好友数量,用户间的联系。Furthermore, the user relationship data includes the user, the friend relationship between users, the number of friends of the user, and the connection between users.
更进一步,所述构建用户关联图G={V,E,WV},其中节点V代表用户,边E代表用户之间的关联关系,WV为节点权重代表用户的关联好友数量为节点权重。Further, the construction of the user association graph G={V, E, W V }, wherein the node V represents the user, the edge E represents the relationship between users, and W V is the node weight representing the number of associated friends of the user as the node weight .
更进一步,所述第一级用户关联结构群的划分方法是:Furthermore, the division method of the first-level user association structure group is:
1)在社交网络用户关联图G中找到权重最大的节点vi,将vi和与其相邻的还未加入任何群的节点加入群U中,计算群U中的消息传递概率S(U),并将所有与群U相邻接的节点构建边界集合B(v);1) Find the node v i with the largest weight in the social network user association graph G, add v i and its adjacent nodes that have not joined any group to the group U, and calculate the message delivery probability S(U) in the group U , and build a boundary set B(v) for all nodes adjacent to the group U;
2)对于和群U相邻接的B(v)中的节点,选择其中权重最大的节点vj,计算拟加入群的节点j加入群U后的消息传递概率S(U+j),如果S(U+j)>S(U),则将节点j加入群U中,并扩展B(v),直到没有新的邻接节点可以加入群U中;2) For the nodes in B(v) adjacent to the group U, select the node v j with the largest weight among them, and calculate the message delivery probability S(U+j) of the node j to join the group U after joining the group U, if S(U+j)>S(U), then add node j to group U, and expand B(v) until no new adjacent nodes can join group U;
3)遍历所述步骤1)-2)将图G中的所有节点都划分为群。3) Traverse the steps 1)-2) and divide all the nodes in the graph G into groups.
更进一步,第二级用户关联结构群划分的具体方法是:Furthermore, the specific method of dividing the second-level user association structure group is:
1)在所述第一级用户关联结构群中,找到权重最大的节点vi,然后根据需要设定比例值r,找到该群中所有权重wvj>r*wvi的节点,对每个满足该条件的节点构建一个新节点群;其中,wvi为第一级用户关联结构群中权重最大的节点的权重,wvj为第一级用户关联结构群中任一节点vj的权重;1) In the first-level user association structure group, find the node v i with the largest weight, and then set the ratio value r according to the needs, find all the nodes in the group with weight w vj >r*w vi , for each The nodes satisfying this condition build a new node group; wherein, w vi is the weight of the node with the largest weight in the first-level user association structure group, and w vj is the weight of any node v j in the first-level user association structure group;
2)根据上述得到的新节点群,依照第一级用户关联结构群的划分方法,计算它们相邻的节点加入群和不加入群的传播能力,在第一级用户关联结构群中完成第二级用户关联结构群的划分。2) According to the new node group obtained above, according to the division method of the first-level user association structure group, calculate the communication capabilities of their adjacent nodes joining the group and not joining the group, and complete the second in the first-level user association structure group. The division of user-level user association structure groups.
更进一步,当一个节点同时和两个群相连并且满足加入群的条件,则将其加入计算出的消息传递概率S较大的群中。Furthermore, when a node is connected to two groups at the same time and meets the conditions for joining a group, it will be added to the group whose calculated message delivery probability S is larger.
有益效果:Beneficial effect:
本发明提供了一种智能终端中基于用户关联结构划分的在线社交网络快速修复方法,其特性如下:The present invention provides an online social network fast repair method based on user association structure division in an intelligent terminal, and its characteristics are as follows:
本发明根据智能终端网络带宽带来的漏洞修复发放限制,从而导致的修复缓慢攻击易于大面积实施带来严重后果的问题,提供了一种分层逐步修复的方法,尽可能的保证修复的快速完成以及攻击的实施限制。本发明基于在线社交网络用户之间的信息传递概率特性,将用户划分为关联结构群,从而使得群之间的消息传递概率小于群内的消息传递,从群中识别关键节点和边界节点,一方面保证先修复传递能力强以及会产生群之间区域扩散的用户节点,使攻击不能大规模扩散,一方面利用关键节点向其他用户快速传递修复,从而实现对在线社交网络快速有效的对出现的漏洞及攻击进行修复。The present invention provides a layered and gradual repairing method to ensure fast repairing as much as possible, according to the problem that the slow repairing attack is easy to be implemented in a large area due to the limitation of the distribution of vulnerability repairs brought about by the network bandwidth of the intelligent terminal. Completion and limitations of the implementation of the attack. Based on the probability characteristics of information transmission among online social network users, the present invention divides users into groups with associated structures, so that the probability of message transmission between groups is lower than that within a group, and key nodes and boundary nodes are identified from groups. On the one hand, it is guaranteed to repair the user nodes with strong transmission ability and regional spread between groups, so that the attack cannot spread on a large scale; Vulnerabilities and attacks are fixed.
附图说明Description of drawings
图1为本发明方法流程图;Fig. 1 is a flow chart of the method of the present invention;
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,可以理解的是,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. It should be understood that the described embodiments are only some of the embodiments of the present invention, not all of them. example. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.
实现本发明的一种具体实施方式如下,一种智能终端中基于用户关联结构划分的在线社交网络快速修复方法方法,其步骤为:A specific embodiment of the present invention is as follows, an online social network fast repair method based on user association structure division in a smart terminal, the steps of which are as follows:
本发明方法流程如图1所示,本发明的步骤如下:The method flow process of the present invention is as shown in Figure 1, and the steps of the present invention are as follows:
1)获取所需要维护的在线社交网络中的用户关系,构建社交网络用户关联图;1) Obtain the user relationship in the online social network that needs to be maintained, and construct a social network user association graph;
2)在社交网络用户关联图中,通过分析不同用户节点的连接边情况,计算节点及节点群的消息传播能力;2) In the social network user association graph, by analyzing the connection edges of different user nodes, calculate the message dissemination capabilities of nodes and node groups;
3)分两级划分用户关联结构群。根据消息传播能力,第一级用户关联结构群,然后在第一级划分的基础上,寻找信息传播能力大于阈值的相关联用户节点,划分第二级用户关联结构群;3) Divide user association structure groups into two levels. According to the information dissemination ability, the first-level user association structure group, and then on the basis of the first-level division, find the associated user nodes whose information dissemination ability is greater than the threshold, and divide the second-level user association structure group;
4)在划分好的用户关联结构中,识别并标记每个群结构中的关键节点及边界节点;4) In the divided user association structure, identify and mark the key nodes and boundary nodes in each group structure;
5)当需要修复时,首先修复关键节点和边界节点,然后关键节点和边界节点逐步向其邻接节点发送修复信息,利用社交网络用户关系完成修复。5) When repair is needed, the key nodes and border nodes are repaired first, and then the key nodes and border nodes gradually send repair information to their adjacent nodes, and the repair is completed by using the social network user relationship.
在步骤1)中,所述的构建社交网络用户关联图的具体方法是:获取拟修复的在线社交网络的用户和用户关系,用户好友关系是通过社交网络服务提供商处获取的,服务器处也一般有记录。以用户为节点,用户关系为边,用户好友数量为节点权重参数,构建成社交网络用户关联图。In step 1), the specific method of constructing the social network user association graph is: obtain the user and the user relationship of the online social network to be repaired, the user friend relationship is obtained by the social network service provider, and the server also Generally documented. With users as nodes, user relationships as edges, and the number of user friends as node weight parameters, a social network user association graph is constructed.
在步骤2)中,所述的计算节点及节点群消息传播能力的具体方法是:获取用户节点在最近一段时间的信息传播数量,计算其单位时间的信息传递概率;In step 2), the specific method for calculating the message dissemination capability of the node and the node group is: obtain the information dissemination quantity of the user node in the latest period, and calculate the information transmission probability per unit time;
当计算一个节点与一些相邻节点组成的节点群的消息传递能力的方法是:通过该节点群中与此节点相连接的节点与该节点的消息传递概率,计算出单位时间此节点与这些连接节点消息传递的概率,作为此节点与该节点群的消息传播能力的表示;然后计算一个节点群中每一个节点与该群剩余节点组成的子群的传播能力,求其平均值,作为该节点群的消息传播能力。The method to calculate the message passing ability of a node group composed of a node and some adjacent nodes is: through the message passing probability of the node connected to this node in the node group and the node, calculate the unit time between this node and these connected nodes The probability of node message transmission is used as a representation of the message transmission ability of this node and the node group; then calculate the transmission ability of each node in a node group and the subgroup composed of the remaining nodes of the group, and calculate the average value as the node The ability of the group to disseminate information.
在步骤3)中,所述的第一级用户关联结构的划分的具体方法是:首先在步骤1)中构建的社交网络用户关联图中,找到权重最大的节点,如果该节点不止一个,则随机选取其中的一个作为划分起始节点群,并将该初始节点的相邻节点加入该群;然后依次计算此群的所有相邻节点加入该群后新群的传播能力,当新群的传播能力大于原群时,将相应节点加入,否则不加入;完成一个群的创建后,从剩余节点中再选择好有关系最多的节点形成另一个节点群;如此步骤反复,完成第一级用户关联结构的划分。In step 3), the specific method of dividing the first-level user association structure is: at first in the social network user association graph constructed in step 1), find the node with the largest weight, if there is more than one node, then Randomly select one of them as the initial node group, and add the adjacent nodes of the initial node to the group; then calculate the propagation ability of the new group after all the adjacent nodes of this group join the group, when the propagation of the new group When the capacity is greater than the original group, join the corresponding node, otherwise do not join; after completing the creation of a group, select the node with the most relationship from the remaining nodes to form another node group; repeat the steps to complete the first-level user association Structural division.
在步骤3)中,所述的第二级用户关联结构的划分的具体方法是:在第一级用户群中,找到权重最大的节点,然后根据实际需要设定一个比例值r,该群中所有权重大于最大节点权重*r的节点选出,在该群内,从这些节点的开始各成一群进行第二级划分,对于划分过程可能出现的与多个第二级群节点相连接的节点,将其归属于加入该节点后群传播能力最强的群中,由此完成第二级用户关联结构划分。In step 3), the specific method of dividing the second-level user association structure is: in the first-level user group, find the node with the largest weight, and then set a proportional value r according to actual needs, in this group The nodes whose ownership weight is greater than the maximum node weight*r are selected. In this group, the nodes are divided into groups from the beginning of each group for the second-level division. For the nodes that may appear in the division process and are connected to multiple second-level group nodes , attribute it to the group with the strongest group propagation ability after joining the node, thus completing the second-level user association structure division.
在步骤4)中,所述的关键节点及边界节点具体是指:关键节点是指步骤3)中所有划分的群的初始节点;边界节点是指与外部其它群有连接关系的节点。In step 4), the key nodes and boundary nodes specifically refer to: key nodes refer to the initial nodes of all divided groups in step 3); boundary nodes refer to nodes that are connected to other external groups.
在本发明的一实施例中,社交网络用户关联图是指以用户为节点,用户间好友关系为边,用户好友数量为节点权重的图结构。在社交网络中,用户间存在好友关系即可能互相传递消息,从而表示了消息可能的传递路径。用户的好友数量和消息传递数量,表示出了一个用户向外界扩散消息的能力。In an embodiment of the present invention, the social network user association graph refers to a graph structure in which users are nodes, friendships between users are edges, and the number of users' friends is the weight of nodes. In a social network, if there is a friend relationship between users, they may send messages to each other, thus indicating the possible delivery path of the message. The number of friends of a user and the number of messages passed indicate a user's ability to spread messages to the outside world.
在本发明的一实施例中,根据不同节点的连接边及其权重,可以计算节点之间,节点与多个节点构成的群之间,以及节点群的消息传递能力。我们获取最新一段时间的消息传播数据,通过计算单位时间的消息传递概率来表示消息传递能力。该数据根据需要在特定时间内进行一次更新,可使得本方法保持有效性。In an embodiment of the present invention, according to the connection edges of different nodes and their weights, the message transmission capabilities between nodes, between a node and a group composed of multiple nodes, and between node groups can be calculated. We obtain the latest message propagation data for a period of time, and express the message delivery capability by calculating the message delivery probability per unit time. This data is updated once at a specific time as needed to keep the method valid.
在本发明的一实施例中,我们根据节点之间的消息传播能力来划分用户关联结构群。在智能终端上使用在线社交网络,当需要修复时,面临的主要问题便是带宽限制以及修复的延迟性可能导致攻击的大规模扩散问题,因此我们的思路是找到关键节点先修复,然后逐步修复至整个社交网络所有节点。为达到这一目的,我们划分群的目标是:将所有用户节点划分为多个群,使得互相之间消息传播能力强的节点在一个群中,群之间的消息传播能力尽量弱。为达到这一目标,我们分两级实施用户关联结构群划分。In an embodiment of the present invention, we divide user association structure groups according to the message dissemination ability between nodes. When using online social networks on smart terminals, when repairs are required, the main problem is bandwidth limitations and delays in repairs that may lead to large-scale spread of attacks. Therefore, our idea is to find key nodes and repair them first, and then gradually repair them To all nodes of the entire social network. To achieve this goal, our goal of group division is to divide all user nodes into multiple groups, so that the nodes with strong message transmission ability among each other are in one group, and the message transmission ability between groups is as weak as possible. To achieve this goal, we implement user association structure group division in two levels.
在本发明的一实施例中,我们标记的关键节点和边界节点,是本方法认为的在划分群之后可能引发攻击更大量传播的重要节点。由于本方法划分的机构群的特点是,群内部消息传播能力强,群之间传播能力弱,所以边界节点由于可能引发群之间传播而被认为是可能引发更大量传播的重要节点之一,此外,为了尽快控制群内的传播以及更快的修复,根据我们的划分方案可知,群中最初始的节点是该群最大消息传递能力的节点,因此称之为关键节点,作为重要节点标记。In an embodiment of the present invention, the key nodes and border nodes we mark are important nodes that may cause a larger spread of attacks after the method considers that the group is divided. Since the characteristics of the institutional groups divided by this method are that the internal information transmission ability of the group is strong, and the transmission ability between the groups is weak, so the boundary node is considered to be one of the important nodes that may cause a larger amount of transmission because it may cause transmission between groups. In addition, in order to control the spread in the group as soon as possible and repair it faster, according to our division scheme, the initial node in the group is the node with the largest message delivery capability of the group, so it is called a key node and marked as an important node.
在本发明的一实施例中,本方法的修复顺序是,首先向关键节点和边界节点终端发送修复,然后利用社交网络关联图中的节点关系,依次向其他节点完成逐步修复。In an embodiment of the present invention, the repair sequence of the method is: firstly send repairs to key nodes and border node terminals, and then use the node relationships in the social network association graph to complete gradual repairs to other nodes in turn.
如图1所示智能终端中基于用户关联结构划分的在线社交网络快速修复方法的流程示意图,包括步骤:As shown in Figure 1, a schematic flow diagram of an online social network fast repair method based on user association structure division in an intelligent terminal, including steps:
1.构建社交网络用户关联图1. Construct social network user association graph
获取在线社交网络中的用户关系数据,包括用户、用户间的好友关联关系,用户好友数量,用户间的联系,构建社交网络用户关联图G={V,E,WV},其中节点V代表用户,边E代表用户之间的关联关系,WV为节点权重代表用户的关联好友数量为节点权重。该社交网络用户关联图,可根据实际的精确度需要定期更新,就是从社交网络服务器或者服务提供商获取最新的用户情况和关系数据。Obtain the user relationship data in the online social network, including the user, the friend relationship between users, the number of user friends, and the connections between users, and construct a social network user relationship graph G={V, E, W V }, where node V represents User, edge E represents the relationship between users, W V is the node weight, representing the number of associated friends of the user is the node weight. The social network user association map can be regularly updated according to actual accuracy needs, that is, the latest user situation and relationship data are obtained from the social network server or service provider.
2.计算节点及节点群的消息传播能力2. Calculate the message dissemination capability of nodes and node groups
构建好社交网络用户关联图之后,本发明的思路是需要根据节点之间的信息传递能力将用户关联图划分为不同的用户群。为实现这一目标,首先需要定义并计算节点以及节点群之间的消息传播能力。本发明中,我们获取相应的在线社交网络中单位时间内两节点之间的消息传递概率pij。那么,对于一个多个节点组成的节点群,一个节点i和节点群Uv之间的传播能力的计算方法是:假设此群中有n个点与i有连接边,那么节点i与群Uv的传播概率为:SU(i,UV)=1-(1-pij)n,其中,SU是指一个群的消息传递能力,UV是指一个划分群,After the social network user association graph is constructed, the idea of the present invention is to divide the user association graph into different user groups according to the information transfer capability between nodes. To achieve this goal, it is first necessary to define and calculate the message dissemination capabilities between nodes and node groups. In the present invention, we obtain the message delivery probability p ij between two nodes in the corresponding online social network per unit time. Then, for a node group composed of multiple nodes, the calculation method of the propagation ability between a node i and the node group Uv is: assuming that there are n nodes in this group that have connection edges with i, then the distance between node i and the group Uv Propagation probability is: SU(i,U V )=1-(1-pi j ) n , where SU refers to the message delivery capability of a group, U V refers to a divided group,
进一步的,节点群内部的消息传递能力,定义为其中每一个节点到该群内其他节点组成的群的传递能力的平均值,即为:Furthermore, the message transmission capability within a node group is defined as the average value of the transmission capability of each node to the group composed of other nodes in the group, which is:
其中,SU表示群的消息传递能力,S(i,UU-i)是指节点i与除i以外的群U中节点构成的群的消息传递能力,n是指群U中的节点数量,Vu是群U中所有的节点集合,Eu是指群U中所有边的集合,|EU|是指U中边的数量,|VU|是指U中节点个数,m是指Eu中边的数量。Among them, S U represents the message delivery capability of the group, S(i, U Ui ) refers to the message delivery capability of the group composed of node i and nodes in the group U other than i, n refers to the number of nodes in the group U, Vu is the set of all nodes in group U, Eu refers to the set of all edges in group U, |E U | refers to the number of edges in U, |V U | refers to the number of nodes in U, m refers to the edges in Eu quantity.
3.划分得到第一级用户关联结构群3. Divide to obtain the first-level user association structure group
本发明中,我们根据节点传播能力划分用户关联结构群。我们的结构群划分思路是,根据用户消息传递概率将消息传递频繁的用户节点划到同一结构群中,即尽量使得群内的消息传递能力强,群与群之间的消息传递能力低。这样,可以尽量保证在发生攻击的时候,比较易于将危害限制在一定区域之内。本发明的划分方法分两级实现。第一级用户关联结构群的划分方法是:In the present invention, we divide user association structure groups according to node propagation capabilities. Our structure group division idea is to divide user nodes with frequent message transmission into the same structure group according to the user message transmission probability, that is, try to make the message transmission ability within the group strong and the message transmission ability between groups low. In this way, it can be ensured that when an attack occurs, it is relatively easy to limit the damage to a certain area. The division method of the present invention is implemented in two stages. The division method of the first-level user association structure group is:
1)在社交网络用户关联图G中找到权重最大的节点vi,将vi和与其相邻的还未加入任何群的节点加入群U中,计算群U中的消息传递概率S(U),并将所有与群U相邻接的节点构建边界集合B(v),相邻的节点就是有连接边直接相连的两个节点;1) Find the node v i with the largest weight in the social network user association graph G, add v i and its adjacent nodes that have not joined any group to the group U, and calculate the message delivery probability S(U) in the group U , and build a boundary set B(v) for all the nodes adjacent to the group U, the adjacent nodes are the two nodes directly connected by the connecting edge;
2)对于和群U相邻接的B(v)中的节点,选择其中权重最大的节点vj,计算拟加入群的节点j加入群U后的消息传递概率S(U+j),如果S(U+j)〉S(U),则将节点j加入群U中,并扩展B(v)。如此计算直到没有新的邻接节点可以加入群U中。2) For the nodes in B(v) adjacent to the group U, select the node v j with the largest weight among them, and calculate the message delivery probability S(U+j) of the node j to join the group U after joining the group U, if S(U+j)>S(U), then node j will be added to group U, and B(v) will be extended. This calculation is performed until no new adjacent nodes can join the group U.
3)重复步骤1)和2)直到图G中的所有节点都划分为群。3) Repeat steps 1) and 2) until all nodes in graph G are divided into groups.
4.划分得到第二级用户关联结构群4. Divide to obtain the second-level user association structure group
由于社交网络中存在一些热门的用户节点(热门的用户节点就是关联用户也就是好友非常多的用户节点),这些用户互相之间也往往会互相关联,难免出现一些群节点过于集中和庞大的情况,在这种情况下,为了进一步控制威胁扩散,本发明进行第二级用户关联结构群划分,具体方法是:Since there are some popular user nodes in the social network (popular user nodes are associated users, that is, user nodes with a lot of friends), these users are often related to each other, and it is inevitable that some group nodes are too concentrated and large. , in this case, in order to further control the spread of threats, the present invention divides the second-level user association structure group, and the specific method is:
1)在第一级用户关联结构群中,找到权重最大的节点vi,然后根据需要设定比例值r,找到该群中所有权重wvj〉r*wvi的节点,对每个满足该条件的节点构建一个新群,若不满足则不构建新群;其中,wvi为第一级用户关联结构群中权重最大的节点的权重,wvj为第一级用户关联结构群中任一节点vj的权重;1) In the first-level user association structure group, find the node v i with the largest weight, and then set the ratio value r according to the needs, find all nodes with weight w vj >r*w vi in the group, and for each node that satisfies the If the conditions are not satisfied, the new group will not be constructed; among them, w vi is the weight of the node with the largest weight in the first-level user association structure group, and w vj is any node in the first-level user association structure group. the weight of node v j ;
比例值r是在实际操作中根据实际情况设定的。r越大,最后分的区域越少,也就是当带宽以及其他条件足够时,可以在修复的时候一次尽量多的发送时,就可以多分几个结构群,然后同时发送的修复就多,修复的就快,如果各种条件不允许,当然就少分一些区域;The ratio value r is set according to the actual situation in actual operation. The larger r is, the less area will be divided in the end, that is, when the bandwidth and other conditions are sufficient, when it is possible to send as much as possible at one time during repair, it can divide into several structural groups, and then send more repairs at the same time, and repair If the various conditions do not permit, of course we will divide some areas;
2)根据上述得到的新群,依照第一级用户关联结构群的划分方法,计算它们相邻的节点加入群和不加入群的传播能力,在第一级用户关联结构群中完成第二级用户关联结构群的划分,需要注意的是,当遇到一个节点同时和两个群相连并且满足加入群的条件,则将其加入计算出的S较大的群中。2) According to the new group obtained above, according to the division method of the first-level user association structure group, calculate the propagation ability of their adjacent nodes joining the group and not joining the group, and complete the second level in the first-level user association structure group For the division of user association structure groups, it should be noted that when a node is connected to two groups at the same time and meets the conditions for joining a group, it will be added to the calculated group with a larger S.
5.识别并标记关键节点和边界节点5. Identify and mark critical and boundary nodes
完成第二级划分之后,将每个群中权重最大的节点标记为关键节点,根据边界集合B(每个群与其它群相邻接的节点标记为边界节点。After completing the second-level division, the node with the largest weight in each group is marked as a key node, and according to the boundary set B (each group is marked as a boundary node with the nodes adjacent to other groups.
6.需要修复时,首先修复关键节点和边界节点6. When repairing is required, the key nodes and boundary nodes should be repaired first
当有漏洞出现或者供给出现需要修复时,修复的顺序首先是向关键节点和边界节点发送补丁等实施修复,这样,首先修复边界节点可以避免群之间产生攻击的大肆传播,修复关键节点,可以在群内尽量有效的控制影响最大传播能力最强的节点。When a vulnerability occurs or the supply needs to be repaired, the order of repair is first to send patches to key nodes and border nodes for repair. In this way, repairing the border nodes first can avoid the large-scale spread of attacks between groups, and repairing key nodes can In the group, try to effectively control the nodes with the greatest influence and the strongest communication ability.
7.逐步修复其他节点7. Repair other nodes step by step
然后由关键节点和边界节点逐步向其邻接节点发送修复信息,利用社交网络用户关系来传递补丁等完成修复。Then the key nodes and border nodes gradually send the repair information to their adjacent nodes, and use the social network user relationship to transfer the patch and so on to complete the repair.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310637200.3A CN103595734B (en) | 2013-12-02 | 2013-12-02 | Based on the online social network fast repairing method that user-association structure divides |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310637200.3A CN103595734B (en) | 2013-12-02 | 2013-12-02 | Based on the online social network fast repairing method that user-association structure divides |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103595734A CN103595734A (en) | 2014-02-19 |
| CN103595734B true CN103595734B (en) | 2016-06-01 |
Family
ID=50085716
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310637200.3A Active CN103595734B (en) | 2013-12-02 | 2013-12-02 | Based on the online social network fast repairing method that user-association structure divides |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103595734B (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104636668A (en) * | 2015-02-28 | 2015-05-20 | 中国石油大学(华东) | An automatic patching mechanism that automatically tends to HUB nodes |
| CN106453030B (en) * | 2015-08-12 | 2019-10-11 | 大连民族学院 | A method and device for acquiring social relationship chains |
| CN106874289B (en) * | 2015-12-11 | 2020-04-24 | 阿里巴巴集团控股有限公司 | Associated node determination method and equipment |
| CN107092667B (en) * | 2017-04-07 | 2018-02-27 | 平安科技(深圳)有限公司 | Group's lookup method and device based on social networks |
| US10003662B1 (en) * | 2017-03-01 | 2018-06-19 | Two Degrees, Inc. | Adaptable broker for location based second degree social networking |
| CN106991617B (en) * | 2017-03-30 | 2020-07-10 | 武汉大学 | Microblog social relationship extraction algorithm based on information propagation |
| CN108509560B (en) * | 2018-03-23 | 2021-04-09 | 广州杰赛科技股份有限公司 | User similarity acquisition method and device, device, and storage medium |
| CN112598021A (en) * | 2020-11-27 | 2021-04-02 | 西北工业大学 | Graph structure searching method based on automatic machine learning |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1710906A (en) * | 2005-07-08 | 2005-12-21 | 清华大学 | P2P Worm Defense System |
| CN102404715A (en) * | 2011-11-18 | 2012-04-04 | 广东步步高电子工业有限公司 | Anti-virus method of mobile phone worms based on benign worms |
-
2013
- 2013-12-02 CN CN201310637200.3A patent/CN103595734B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1710906A (en) * | 2005-07-08 | 2005-12-21 | 清华大学 | P2P Worm Defense System |
| CN102404715A (en) * | 2011-11-18 | 2012-04-04 | 广东步步高电子工业有限公司 | Anti-virus method of mobile phone worms based on benign worms |
Non-Patent Citations (2)
| Title |
|---|
| A Novel Method for Worm Containment on Dynamic Social Networks;Nguyen N P等;《Proceedings of the 2010 Military Communications Conference》;20101231;第2180页-第2185页 * |
| A Social Network Based Patching Scheme for Worm Containment in Cellular Networks;zhu zhicao等;《Proceedings of the IEEE INFOCOM》;20091231;第1476页-第1484页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103595734A (en) | 2014-02-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103595734B (en) | Based on the online social network fast repairing method that user-association structure divides | |
| Deng et al. | Optimal attack strategy of complex networks based on tabu search | |
| Kanagasundaram et al. | EIMO‐ESOLSR: energy efficient and security‐based model for OLSR routing protocol in mobile ad‐hoc network | |
| CN111953651B (en) | Urban road network cascade failure node identification method | |
| CN109064348A (en) | A method of it blocking rumour community in social networks and inhibits gossip propagation | |
| CN103294833B (en) | The junk user of concern relation based on user finds method | |
| CN108711111A (en) | A kind of social network influence power maximization approach decomposed based on K-shell | |
| CN107103053A (en) | Complex network community discovery method based on overlapping nodes | |
| CN107092984A (en) | A kind of network function end node propagation prediction method based on cascading failure | |
| CN106530097B (en) | A kind of oriented social networks key propagation node discovery method based on random walk mechanism | |
| CN104052651A (en) | Method and device for building social contact group | |
| CN108965287B (en) | Virus propagation control method based on limited temporary edge deletion | |
| WO2025148665A1 (en) | Network testing method and apparatus, electronic device, storage medium, and program product | |
| Zhang et al. | Effective strategy of adding links for improving network transport efficiency on complex networks | |
| CN108696534A (en) | Real-time network security threat early warning analysis method and its device | |
| CN112800421B (en) | Active defense method and device for backdoor attacks in edge computing scenarios | |
| CN102547763A (en) | Control method for wireless network topology | |
| CN103093049A (en) | Prediction method and prediction system for malicious code propagation facing social network | |
| CN114726565A (en) | Threat intelligence sharing method, threat intelligence rating method, system and storage medium | |
| CN116822169A (en) | Strong Takeberg game strategy generation method based on intuitionistic fuzzy set | |
| CN114021319A (en) | Command control network key edge identification method based on improved bridging coefficient | |
| CN109962813B (en) | Network structure generation method for network structure privacy protection | |
| CN105429793A (en) | Communication network weighted link importance degree assessment method | |
| CN106411923A (en) | Ontology modeling based network risk assessment method | |
| CN110213261A (en) | Fight the link circuit deleting method for network structure secret protection of link prediction |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |