[go: up one dir, main page]

CN101686172B - A gateway node selection method, system and device - Google Patents

A gateway node selection method, system and device Download PDF

Info

Publication number
CN101686172B
CN101686172B CN2008101488290A CN200810148829A CN101686172B CN 101686172 B CN101686172 B CN 101686172B CN 2008101488290 A CN2008101488290 A CN 2008101488290A CN 200810148829 A CN200810148829 A CN 200810148829A CN 101686172 B CN101686172 B CN 101686172B
Authority
CN
China
Prior art keywords
gateway
node
local node
local
gateway function
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.)
Withdrawn - After Issue
Application number
CN2008101488290A
Other languages
Chinese (zh)
Other versions
CN101686172A (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.)
Jingjiang City Chengzhong Village Investment And Construction Co ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2008101488290A priority Critical patent/CN101686172B/en
Publication of CN101686172A publication Critical patent/CN101686172A/en
Application granted granted Critical
Publication of CN101686172B publication Critical patent/CN101686172B/en
Withdrawn - After Issue legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method, a system and equipment for selecting gateway nodes, wherein the method comprises the following steps: when the gateway node monitors the overload of the gateway node, a local node with the gateway function is selected according to the local node information with the gateway function; and the gateway node sends an interconnection joining invitation to the selected local node with the gateway function, so that the selected local node with the gateway function joins the interconnection DHT to become a new gateway node according to the interconnection joining invitation. In the embodiment of the invention, when the gateway node is overloaded, the gateway node invites the local node with the gateway function to join the interconnection DHT to become a new gateway node, thereby realizing the load balance of the gateway node.

Description

一种网关节点的选择方法、系统和设备A gateway node selection method, system and device

技术领域 technical field

本发明涉及通信技术领域,尤其涉及一种网关节点的选择方法、系统和设备。  The present invention relates to the field of communication technology, in particular to a method, system and equipment for selecting a gateway node. the

背景技术Background technique

随着越来越多P2P(Peer to Peer,点对点)系统的部署,如何在多个P2P DHT(Distributed Hash Table,分布式哈希表)间快速有效的共享资源和搜索,成为P2P在可运营可管理的通信网络环境下的内容发布、流媒体传输等应用的关键技术问题。  With the deployment of more and more P2P (Peer to Peer, point-to-point) systems, how to quickly and effectively share resources and search among multiple P2P DHTs (Distributed Hash Tables, distributed hash tables) has become an operational and sustainable solution for P2P. Key technical issues of content distribution, streaming media transmission and other applications under the managed communication network environment. the

现有技术通常采用虚拟服务器技术在多个P2P DHT间进行共享资源和搜索,虚拟服务器相当于DHT中的节点,每个物理节点对应多个虚拟服务器。当物理节点过载时,该物理节点对应的一个或者多个虚拟服务器将从过载节点转移到非过载节点,虚拟服务器的转移可以用DHT中的离开和加入操作来完成。  Existing technologies usually use virtual server technology to share resources and search among multiple P2P DHTs. Virtual servers are equivalent to nodes in DHT, and each physical node corresponds to multiple virtual servers. When the physical node is overloaded, one or more virtual servers corresponding to the physical node will be transferred from the overloaded node to the non-overloaded node, and the transfer of the virtual server can be completed by leaving and joining operations in the DHT. the

在实现本发明的过程中,发明人发现现有技术中存在以下缺点:  In the process of realizing the present invention, the inventor finds that there are following shortcomings in the prior art:

现有技术中,一个物理节点对应多个虚拟服务器,DHT的维护开销将成倍增加。而且,某个DHT中节点的过载负荷可能会被到另一个DHT中的节点上。  In the prior art, one physical node corresponds to multiple virtual servers, and the maintenance overhead of DHT will increase exponentially. Moreover, the overloaded load of nodes in one DHT may be transferred to nodes in another DHT. the

发明内容Contents of the invention

本发明实施例提供了一种网关节点的选择方法、系统和装置,实现了网关节点的负载平衡。  The embodiment of the present invention provides a gateway node selection method, system and device, which realizes the load balance of the gateway node. the

本发明实施例提供了一种网关节点的选择方法,包括以下步骤:  The embodiment of the present invention provides a method for selecting a gateway node, comprising the following steps:

网关节点监测自身负荷过载时,根据具有网关功能的本地节点信息的地址信息和可用负荷信息选择一个具有网关功能的本地节点;  When the gateway node monitors its own load overload, it selects a local node with gateway function according to the address information and available load information of the local node information with gateway function;

所述网关节点向被选择的具有网关功能的本地节点发出加入互联邀请,使所述被选择的具有网关功能的本地节点根据所述加入互联邀请加入互联DHT成为新的网关节点;所述本地节点为存在多个本地DHT子系统的节点。  The gateway node sends an invitation to join the Internet to the selected local node with the gateway function, so that the selected local node with the gateway function joins the Internet DHT to become a new gateway node according to the invitation to join the Internet; the local node A node with multiple local DHT subsystems. the

本发明实施例提供了一种网关节点的访问方法,其特征在于,包括以下步骤:  The embodiment of the present invention provides a method for accessing a gateway node, which is characterized in that it includes the following steps:

本地节点访问默认的负荷过载的网关节点失败时,向所述关键字对应的本地节点查询新的网关节点地址列表;  When the local node fails to access the default overloaded gateway node, query the new gateway node address list from the local node corresponding to the keyword;

所述本地节点向ISP服务器查询与所述网关节点地址列表中的网关节点的代价距离;  The local node inquires the cost distance from the gateway node in the gateway node address list to the ISP server;

所述本地节点获取所述网关节点地址列表中的网关节点的可用负荷信息;  The local node obtains the available load information of the gateway node in the gateway node address list;

所述本地节点根据所述代价距离和可用负荷信息选择一个网关节点作为新的默认网关节点;  The local node selects a gateway node as a new default gateway node according to the cost distance and available load information;

所述本地节点访问所述新的默认网关节点。  The local node accesses the new default gateway node. the

本发明实施例提供了一种网关节点的选择系统,包括网关节点和具有网关功能的本地节点,其中:  An embodiment of the present invention provides a gateway node selection system, including a gateway node and a local node with a gateway function, wherein:

所述网关节点,用于监测到自身负荷过载时,根据具有网关功能的本地节点信息选择一个具有网关功能的本地节点,向被选择的具有网关功能的本地节点发出加入互联邀请;  The gateway node is used to select a local node with gateway function according to the information of the local node with gateway function when monitoring its own load overload, and send an invitation to join the Internet to the selected local node with gateway function;

所述具有网关功能的本地节点,用于接收来自网关节点的所述加入互联邀请,根据所述加入互联邀请加入互联DHT成为新的网关节点。  The local node with a gateway function is configured to receive the invitation to join the Internet from the gateway node, and join the Internet DHT to become a new gateway node according to the invitation to join the Internet. the

本发明实施例提供了一种网关节点的选择系统,包括:  The embodiment of the present invention provides a system for selecting a gateway node, including:

监测单元,用于检测自身负荷是否过载;  The monitoring unit is used to detect whether its own load is overloaded;

选择单元,用于当所述监测单元检测到负荷过载时,根据具有网关功能的本地节点信息的地址信息和可用负荷信息选择一个具有网关功能的本地节点;  The selection unit is used to select a local node with gateway function according to the address information and available load information of the local node information with gateway function when the monitoring unit detects that the load is overloaded;

邀请单元,用于向被所述选择单元选择的具有网关功能的本地节点发出加入互联邀请,使被选择的具有网关功能的本地节点根据所述加入互联邀请 加入互联成为新的网关节点。  The invitation unit is used to send an invitation to join the Internet to the local node with the gateway function selected by the selection unit, so that the selected local node with the gateway function joins the Internet according to the invitation to join the Internet and becomes a new gateway node. the

本发明实施例提供了一种具有网关功能的本地节点设备,包括:  The embodiment of the present invention provides a local node device with a gateway function, including:

接收单元,用于接收来自网关节点的加入互联邀请;  A receiving unit, configured to receive an invitation to join the Internet from a gateway node;

加入单元,根据所述接收单元接收的加入互联邀请加入互联DHT成为新的网关节点;所述本地节点为存在多个本地DHT子系统的节点。  The joining unit joins the Internet DHT to become a new gateway node according to the invitation to join the Internet received by the receiving unit; the local node is a node with multiple local DHT subsystems. the

本发明实施例提供了一种本地节点设备,包括:  An embodiment of the present invention provides a local node device, including:

地址列表查询单元,用于访问默认的负荷过载的网关节点失败时,向所述关键字对应的本地节点查询新的网关节点地址列表;  The address list query unit is used to query the local node corresponding to the keyword for a new gateway node address list when accessing the default overloaded gateway node fails;

代价距离查询单元,用于向ISP服务器查询与所述地址列表查询单元得到的网关节点地址列表中的网关节点的代价距离;  The cost distance query unit is used to query the ISP server for the cost distance of the gateway node in the gateway node address list obtained by the address list query unit;

负荷信息获取单元,用于获取所述地址列表查询单元得到的网关节点地址列表中的网关节点的可用负荷信息;  A load information acquisition unit, configured to acquire the available load information of the gateway nodes in the gateway node address list obtained by the address list query unit;

选择单元,用于根据所述代价距离查询单元得到的代价距离和所述负荷信息获取单元得到的可用负荷信息选择一个网关节点作为新的默认网关节点;  A selection unit is used to select a gateway node as a new default gateway node according to the cost distance obtained by the cost distance query unit and the available load information obtained by the load information acquisition unit;

访问单元,用于访问所述选择单元选择的新的默认网关节点。  An access unit, configured to access the new default gateway node selected by the selection unit. the

本发明的实施例中,网关节点在自身负荷过载时通过邀请具有网关功能的本地节点加入互联DHT成为新的网关节点,实现了网关节点的负载平衡。  In the embodiment of the present invention, the gateway node realizes the load balance of the gateway node by inviting the local node with the gateway function to join the interconnected DHT to become a new gateway node when its own load is overloaded. the

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort. the

图1是本发明实施例中一种网关节点的选择方法流程图;  Fig. 1 is a flow chart of a method for selecting a gateway node in an embodiment of the present invention;

图2是本发明实施例中一种网关节点的选择和访问方法流程图;  Fig. 2 is a kind of flow chart of the selection and access method of gateway node in the embodiment of the present invention;

图3是本发明实施例中一种网关节点的选择系统流程图;  Fig. 3 is a kind of flow chart of the selection system of gateway node in the embodiment of the present invention;

图4是本发明实施例中一种网关节点设备的结构图;  Fig. 4 is a structural diagram of a gateway node device in an embodiment of the present invention;

图5是本发明实施例中一种具有网关功能的本地节点设备结构图;  Fig. 5 is a kind of local node device structural diagram with gateway function in the embodiment of the present invention;

图6是本发明实施例中一种本地节点设备结构图。  Fig. 6 is a structural diagram of a local node device in an embodiment of the present invention. the

具体实施方式 Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。  The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention. the

本发明实施例应用在存在多个本地DHT子系统的场景中,每个本地DHT子系统中部分节点具有互联网关功能,具有互联网关功能的本地DHT节点中一部分作为互联网关节点参与互联,多个本地DHT间通过互联网关节点实现资源的共享和搜索。  The embodiment of the present invention is applied in a scenario where there are multiple local DHT subsystems. Some nodes in each local DHT subsystem have the Internet gateway function, and some of the local DHT nodes with the Internet gateway function participate in the interconnection as Internet nodes. Multiple The sharing and searching of resources between local DHTs is realized through Internet nodes. the

本发明实施例提供了一种网关节点的选择方法,如图1所示,包括以下步骤:  The embodiment of the present invention provides a method for selecting a gateway node, as shown in Figure 1, comprising the following steps:

步骤101,网关节点监测自身负荷过载时,根据具有网关功能的本地节点信息选择一个具有网关功能的本地节点。  Step 101, when the gateway node monitors its own load overload, select a local node with gateway function according to the information of the local nodes with gateway function. the

步骤102,所述网关节点向被选择的具有网关功能的本地节点发出加入互联邀请,使所述被选择的具有网关功能的本地节点根据所述加入互联邀请加入互联DHT成为新的网关节点。  Step 102, the gateway node sends an invitation to the selected local node with the gateway function to join the interconnection, so that the selected local node with the gateway function joins the interconnection DHT to become a new gateway node according to the invitation to join the interconnection. the

本发明的实施例中,网关节点在自身负荷过载时通过邀请具有网关功能的本地节点加入互联DHT成为新的网关节点,实现了网关节点的负载平衡。  In the embodiment of the present invention, the gateway node realizes the load balance of the gateway node by inviting the local node with the gateway function to join the interconnected DHT to become a new gateway node when its own load is overloaded. the

本发明实施例提供的另一种网关节点的选择和访问方法,如图2所示,包括以下步骤:  Another gateway node selection and access method provided in the embodiment of the present invention, as shown in Figure 2, includes the following steps:

步骤201,每个DHT域至少有一个具有互联网关功能的本地DHT节点以手工切换方式加入互联DHT成为网关节点。  In step 201, each DHT domain has at least one local DHT node with an Internet gateway function to join the Internet DHT as a gateway node through manual switching. the

步骤202,网关节点将地址信息通过关键字注册到本地节点中。实施中关键字key可以取下例:Key=([IDspace/M]+k)*M(k=0,1,2,..,K-1),k≤IDspace/M,其中IDspace为哈希空间范围数,M为单位哈希空间参数,k为注册份数。 Step 202, the gateway node registers the address information in the local node through the keyword. In the implementation, the keyword key can be taken as an example: Key=([IDspace/M]+k)*M(k=0, 1, 2, .., K-1), k≤IDspace/M, where IDspace is Ha Hash space range number, M is the unit hash space parameter, k is the number of registered copies.

步骤203,本地节点向关键字对应的本地节点查询本地网关节点地址列表,通过第三方接口(如ISP(Internet Service Provider,互联网业务提供商)提供的接口)查询与网关节点地址列表中各个网关节点的代价距离,并获取所述网关节点地址列表中的网关节点的可用负荷信息,将代价距离小和可用负荷大的网关节点设为默认互联网关。  Step 203, the local node queries the local gateway node address list to the local node corresponding to the keyword, and queries each gateway node in the gateway node address list through a third-party interface (such as an interface provided by an ISP (Internet Service Provider, Internet Service Provider)) The cost distance of the gateway node is obtained, and the available load information of the gateway node in the gateway node address list is obtained, and the gateway node with a small cost distance and a large available load is set as the default Internet gateway. the

步骤204,网关节点收集具有互联网关功能且未被激活的本地节点的地址信息和可用负荷信息。  In step 204, the gateway node collects address information and available load information of local nodes that have an Internet gateway function and are not activated. the

步骤205,网关节点实时监测负荷情况,当监测到负荷过载时,从收集到的具有网关功能的本地节点列表中选择一个节点。选择的标准可以为具有互联网关功能的本地节点可用负荷以及代价距离(通过向ISP提供的第三方接口查询得到与互联网关的代价距离),优选的,选择代价距离小和可用负荷大的具有网关功能的本地节点。产生一个新的互联网关标识,要求被选择的本地节点使用该互联网关标识激活互联网关功能并加入互联DHT成为新的网关节点。  In step 205, the gateway node monitors the load situation in real time, and selects a node from the collected list of local nodes having the gateway function when overload is detected. The selected standard can be the available load and the cost distance of the local node with the Internet gateway function (the cost distance to the Internet gateway is obtained by inquiring the third-party interface provided by the ISP), preferably, the gateway with a small cost distance and a large available load is selected. The function's local node. A new Internet gateway identifier is generated, and the selected local node is required to use the Internet gateway identifier to activate the Internet gateway function and join the Internet DHT to become a new gateway node. the

过载条件主要包括处理能力过载(如CPU利用率、内存占用率)和带宽能力过载。其中带宽能力过载为三种流量的总带宽过载:第一种为该互联节点被本地节点作为默认互联网关节点导致的接入访问流量;第二种为该互联节点存储的用户资源导致的资源访问流量;第三种为该互联节点作为其它互联节点的路由节点导致的路由流量。  The overload condition mainly includes processing capability overload (such as CPU utilization rate, memory occupancy rate) and bandwidth capability overload. The bandwidth capacity overload is the total bandwidth overload of three kinds of traffic: the first is the access traffic caused by the interconnection node being used as the default Internet node by the local node; the second is the resource access caused by the user resources stored in the interconnection node traffic; the third type is the routing traffic caused by the interconnection node as a routing node of other interconnection nodes. the

步骤206,新激活的互联网关节点加入互联DHT,将自身的地址信息以关键字注册到本地节点中。实施中关键字key可以取Key=([IDspace/M]+k)*M(k=0,1,2,..,K-1),其中IDspace为哈希空间范围数,M为单位哈希空间参数,k为注册份数。  Step 206, the newly activated Internet node joins the Internet DHT, and registers its own address information in the local node as a keyword. In the implementation, the keyword key can take Key=([IDspace/M]+k)*M(k=0, 1, 2, ..., K-1), where IDspace is the number of hash space ranges, and M is the unit Greek space parameter, k is the number of registered copies. the

步骤207,本地节点访问默认的负荷过载的网关节点失败,则访问新产生的网关节点。  Step 207, if the local node fails to access the default overloaded gateway node, it accesses the newly generated gateway node. the

本地节点向关键字对应的本地节点查询新的网关节点地址列表;并向ISP服务器查询与所述网关节点地址列表中的网关节点的代价距离;获取新的网关节点地址列表中的网关节点的可用负荷信息;根据所述代价距离和可用负 荷信息选择一个网关节点作为新的默认网关节点并访问新的默认网关节点,优选的,将代价距离小和可用负荷大的网关节点设为默认互联网关。  The local node queries the new gateway node address list to the local node corresponding to the keyword; and inquires the cost distance of the gateway node in the gateway node address list to the ISP server; obtains the available information of the gateway node in the new gateway node address list Load information: Select a gateway node as a new default gateway node and access the new default gateway node according to the cost distance and available load information, preferably, the gateway node with a small cost distance and a large available load is set as the default Internet gateway . the

本发明的实施例中,网关节点在自身负荷过载时通过邀请具有网关功能的本地节点加入互联DHT成为新的网关节点,实现了网关节点的负载平衡。  In the embodiment of the present invention, the gateway node realizes the load balance of the gateway node by inviting the local node with the gateway function to join the interconnected DHT to become a new gateway node when its own load is overloaded. the

本发明实施例提供了一种网关节点选择的系统,如图3所示,包括网关节点301和具有网关功能的本地节点302,其中:  The embodiment of the present invention provides a system for selecting a gateway node, as shown in FIG. 3 , including a gateway node 301 and a local node 302 with a gateway function, wherein:

所述网关节点301,用于监测到自身负荷过载时,根据具有网关功能的本地节点信息选择一个具有网关功能的本地节点302,向被选择的具有网关功能的本地节点302发出加入互联邀请;  The gateway node 301 is used to select a local node 302 with a gateway function according to the information of a local node with a gateway function when monitoring its own load overload, and send an invitation to join the Internet to the selected local node 302 with a gateway function;

所述具有网关功能的本地节点302,用于接收来自网关节点301的所述加入互联邀请,根据所述加入互联邀请加入互联成为新的网关节点。  The local node 302 with a gateway function is configured to receive the invitation to join the Internet from the gateway node 301, and join the Internet to become a new gateway node according to the invitation to join the Internet. the

本发明的实施例中,通过提供一种网关节点选择的系统,网关节点在自身负荷过载时通过邀请具有网关功能的本地节点加入互联DHT成为新的网关节点,实现了网关节点的负载平衡。  In the embodiment of the present invention, by providing a gateway node selection system, the gateway node can realize the load balance of the gateway node by inviting the local node with the gateway function to join the interconnected DHT to become a new gateway node when its own load is overloaded. the

本发明实施例提供了一种网关节点设备,如图4所示,包括:  The embodiment of the present invention provides a gateway node device, as shown in Figure 4, including:

监测单元401,用于检测自身负荷是否过载;  Monitoring unit 401, used to detect whether its own load is overloaded;

选择单元402,用于当所述监测单元401检测到负荷过载时,根据具有网关功能的本地节点信息选择一个具有网关功能的本地节点;  The selection unit 402 is used to select a local node with a gateway function according to the information of a local node with a gateway function when the monitoring unit 401 detects that the load is overloaded;

邀请单元403,用于向被所述选择单元402选择的具有网关功能的本地节点发出加入互联邀请,使所述被选择的具有网关功能的本地节点根据所述加入互联邀请加入互联成为新的网关节点。  The invitation unit 403 is configured to send an invitation to join the Internet to the local node with the gateway function selected by the selection unit 402, so that the selected local node with the gateway function joins the Internet according to the invitation to join the Internet and becomes a new gateway node. the

其中,还包括:  Among them, also include:

收集单元404,用于收集所述具有网关功能的本地节点的地址信息和可用负荷信息。  The collecting unit 404 is configured to collect address information and available load information of the local node with a gateway function. the

其中,还包括:  Among them, also include:

功能维护单元405,用于维护本地及互联DHT的注册、路由和查询等基本功能。  The function maintenance unit 405 is used to maintain basic functions such as registration, routing and query of local and interconnected DHTs. the

其中,选择单元402还包括: Wherein, the selection unit 402 also includes:

查询子单元406,用于根据具有网关功能的本地节点的地址信息向ISP服务器查询所述网关节点与所述具有网关功能的本地节点的代价距离;  The query subunit 406 is configured to query the ISP server for the cost distance between the gateway node and the local node with gateway function according to the address information of the local node with gateway function;

处理子单元407,用于根据所述查询子单元406得到的代价距离和具有网关功能的本地节点的可用负荷信息选择一个具有互联网关功能的本地节点。  The processing subunit 407 is configured to select a local node with the Internet gateway function according to the cost distance obtained by the query subunit 406 and the available load information of the local node with the gateway function. the

其中,所述邀请单元403具体用于向所述具有互联网关功能的本地节点发送包含新的互联网关标识的加入互联邀请,使所述被选择的具有互联网关功能的本地节点使用所述新的互联网关标识加入互联成为新的网关节点  Wherein, the invitation unit 403 is specifically configured to send an invitation to join the Internet including a new Internet gateway identifier to the local node with the Internet gateway function, so that the selected local node with the Internet gateway function uses the new The Internet gateway logo joins the Internet to become a new gateway node

本发明的实施例中,通过提供一种网关节点,网关节点在自身负荷过载时通过邀请具有网关功能的本地节点加入互联DHT成为新的网关节点,实现了网关节点的负载平衡。  In the embodiment of the present invention, by providing a gateway node, the gateway node can realize the load balance of the gateway node by inviting the local node with gateway function to join the interconnected DHT to become a new gateway node when its own load is overloaded. the

本发明实施例提供了一种具有网关功能的本地节点设备,如图5所示,包括:  The embodiment of the present invention provides a local node device with a gateway function, as shown in Figure 5, including:

接收单元501,用于接收来自网关节点的所述加入互联邀请,  The receiving unit 501 is configured to receive the invitation to join the Internet from the gateway node,

加入单元502,根据所述接收单元501接收的加入互联邀请加入互联成为新的网关节点。  The joining unit 502 joins the Internet and becomes a new gateway node according to the invitation to join the Internet received by the receiving unit 501 . the

其中,还包括:  Among them, also include:

地址注册单元503,用于将所述具有网关功能的本地节点的地址信息注册到关键字对应的本地节点中,所述关键字为([IDspace/M]+k)*M,其中,IDspace为哈希空间范围数,M为单位哈希空间参数,k为注册份数。  The address registration unit 503 is configured to register the address information of the local node with the gateway function into the local node corresponding to the keyword, where the keyword is ([IDspace/M]+k)*M, where IDspace is The number of hash space ranges, M is the unit hash space parameter, and k is the number of registered copies. the

其中,还包括:  Among them, also include:

功能维护单元504,用于维护本地及互联DHT的注册、路由和查询等基本功能。  The function maintenance unit 504 is used to maintain basic functions such as registration, routing and query of local and interconnected DHTs. the

本发明的实施例中,通过提供一种具有网关功能的本地节点,网关节点在自身负荷过载时通过邀请具有网关功能的本地节点加入互联DHT成为新的网关节点,实现了网关节点的负载平衡。  In the embodiment of the present invention, by providing a local node with gateway function, the gateway node can realize the load balance of the gateway node by inviting the local node with the gateway function to join the interconnected DHT to become a new gateway node when its own load is overloaded. the

本发明实施例提供了一种本地节点设备,如图6所示,包括:  The embodiment of the present invention provides a local node device, as shown in Figure 6, including:

地址列表查询单元601,用于访问默认的负荷过载的网关节点失败时,向所述关键字对应的本地节点查询新的网关节点地址列表; The address list query unit 601 is configured to query the local node corresponding to the keyword for a new gateway node address list when accessing the default overloaded gateway node fails;

代价距离查询单元602,用于向ISP服务器查询与所述地址列表查询单元601得到的网关节点地址列表中的网关节点的代价距离;  The cost distance query unit 602 is used to query the ISP server for the cost distance of the gateway node in the gateway node address list obtained by the address list query unit 601;

负荷信息获取单元603,用于获取所述地址列表查询单元601得到的网关节点地址列表中的网关节点的可用负荷信息;  The load information obtaining unit 603 is used to obtain the available load information of the gateway nodes in the gateway node address list obtained by the address list query unit 601;

选择单元604,用于根据所述代价距离查询单元602得到的代价距离和所述负荷信息获取单元603得到的可用负荷信息选择一个网关节点作为新的默认网关节点;  A selection unit 604, configured to select a gateway node as a new default gateway node according to the cost distance obtained by the cost distance query unit 602 and the available load information obtained by the load information acquisition unit 603;

访问单元605,用于访问所述选择单元604选择的新的默认网关节点。  The access unit 605 is configured to access the new default gateway node selected by the selection unit 604 . the

其中,还包括:  Among them, also include:

功能维护单元606,用于维护本地DHT的注册、路由和查询等基本功能。  The function maintenance unit 606 is used to maintain basic functions such as registration, routing and query of the local DHT. the

本发明的实施例中,通过提供一种本地节点,在访问默认网关节点失败时选择并访问新的默认网关节点,实现了网关节点的负载平衡。  In the embodiment of the present invention, by providing a local node to select and access a new default gateway node when the access to the default gateway node fails, the load balance of the gateway node is realized. the

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可以通过硬件实现,也可以可借助软件加必要的通用硬件平台的方式来实现,基于这样的理解,本发明的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。  Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be realized by hardware, or by means of software plus a necessary general-purpose hardware platform. Based on this understanding, the technology of the present invention The solution can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.), and includes several instructions to make a computer device ( It may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention. the

总之,以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 In a word, the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1. the system of selection of a gateway node is characterized in that, may further comprise the steps:
During gateway node monitoring self traffic overload, select the local node with gateway function according to address information and the available information on load of the local node information with gateway function;
Described gateway node sends to selecteed local node with gateway function and adds interconnected invitation, and making described selecteed local node with gateway function add interconnected distributed hashtable DHT according to the interconnected invitation of described adding becomes new gateway node;
Described local node is the node that has a plurality of local DHT subsystems.
2. the method for claim 1 is characterized in that, before described gateway node monitoring self traffic overload, also comprises:
Described gateway node is collected described address information and available information on load with local node of gateway function.
3. the method for claim 1 is characterized in that, described gateway node monitoring self traffic overload comprises:
Described gateway node monitoring self disposal ability overload or bandwidth ability overload; Described disposal ability overload is central processing unit utilance overload or memory usage overload; Described bandwidth ability overload is the total bandwidth overload of access flow, resource access flow and routing traffic.
4. the method for claim 1 is characterized in that, described gateway node comprises according to described local node with gateway function of local node Information Selection with gateway function:
Described gateway node is inquired about and described cost distance with local node of gateway function to Internet service provider isp server according to described address information with local node of gateway function;
Described gateway node is selected the local node with gateway function according to described cost distance and described available information on load with local node of gateway function.
5. the method for claim 1 is characterized in that, described gateway node sends the interconnected invitation of adding to selecteed local node with gateway function and comprises:
Described gateway node sends the interconnected invitation of adding that comprises new Interworking GateWay sign to described local node with Interworking GateWay function, and making described selecteed local node with Interworking GateWay function use described new Interworking GateWay sign to add interconnected DHT becomes new gateway node.
6. the method for claim 1 is characterized in that, described gateway node makes described selecteed local node with gateway function add interconnected DHT according to the interconnected invitation of described adding to be become after the new gateway node, also comprises:
Described new gateway node is registered to its address information in local node corresponding to keyword.
7. the selective system of a gateway node is characterized in that, comprising:
Monitoring means, for detection of self the load whether transship;
Selected cell is used for when described monitoring means detects traffic overload, selects the local node with gateway function according to address information and the available information on load of the local node information with gateway function;
Inviting unit is used for sending the interconnected invitation of adding to the local node with gateway function of being selected by described selected cell, and making selecteed local node with gateway function add interconnected DHT according to the interconnected invitation of described adding becomes new gateway node;
Described local node is the node that has a plurality of local DHT subsystems.
8. system as claimed in claim 7 is characterized in that, also comprises:
Collector unit is used for collecting described address information and available information on load with local node of gateway function.
9. system as claimed in claim 7 is characterized in that, described selected cell comprises:
The inquiry subelement is used for inquiring about and described cost distance with local node of gateway function to Internet service provider isp server according to the address information of the local node with gateway function;
Process subelement, the available information on load that is used for the cost distance that obtains according to described inquiry subelement and the local node with gateway function is selected the local node with gateway function.
10. system as claimed in claim 7, it is characterized in that, described inviting unit specifically is used for sending the interconnected invitation of adding that comprises new Interworking GateWay sign to described local node with gateway function, and making selecteed local node with Interworking GateWay function use described new Interworking GateWay sign to add interconnected DHT becomes new gateway node.
CN2008101488290A 2008-09-27 2008-09-27 A gateway node selection method, system and device Withdrawn - After Issue CN101686172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101488290A CN101686172B (en) 2008-09-27 2008-09-27 A gateway node selection method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101488290A CN101686172B (en) 2008-09-27 2008-09-27 A gateway node selection method, system and device

Publications (2)

Publication Number Publication Date
CN101686172A CN101686172A (en) 2010-03-31
CN101686172B true CN101686172B (en) 2013-03-20

Family

ID=42049154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101488290A Withdrawn - After Issue CN101686172B (en) 2008-09-27 2008-09-27 A gateway node selection method, system and device

Country Status (1)

Country Link
CN (1) CN101686172B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036928A (en) * 2011-10-10 2013-04-10 中兴通讯股份有限公司 Network overload processing method and network overload processing device
CN103209136A (en) * 2012-01-11 2013-07-17 中兴通讯股份有限公司 Network load control method and register server
CN110753002B (en) * 2019-09-29 2023-04-07 北京浪潮数据技术有限公司 Traffic scheduling method and device
CN113572591B (en) * 2020-04-28 2023-09-29 北京科东电力控制系统有限责任公司 Real-time high concurrency safety access device and access method for intelligent energy service system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588927A (en) * 2004-08-05 2005-03-02 北京航空航天大学 Method for large scale multimedia cut-in net gate
CN1691796A (en) * 2004-04-30 2005-11-02 华为技术有限公司 Communication load sharing system and method thereof
CN1754374A (en) * 2003-03-28 2006-03-29 思科技术公司 Network address translation with gateway load distribution
US20070002869A1 (en) * 2005-07-01 2007-01-04 Microsoft Corporation Routing cache for distributed hash tables

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1754374A (en) * 2003-03-28 2006-03-29 思科技术公司 Network address translation with gateway load distribution
CN1691796A (en) * 2004-04-30 2005-11-02 华为技术有限公司 Communication load sharing system and method thereof
CN1588927A (en) * 2004-08-05 2005-03-02 北京航空航天大学 Method for large scale multimedia cut-in net gate
US20070002869A1 (en) * 2005-07-01 2007-01-04 Microsoft Corporation Routing cache for distributed hash tables

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张彬 等.部署软件网关消除P2P类应用带来的网络瓶颈.《教育信息化》.2006,全文. *

Also Published As

Publication number Publication date
CN101686172A (en) 2010-03-31

Similar Documents

Publication Publication Date Title
EP2058980B1 (en) A method, system and device for establishing a peer to peer connection in a p2p network
US9900252B2 (en) Application delivery controller and global server load balancer
CN100518129C (en) General resource management method in hybrid peer-to-peer network environment
WO2010127618A1 (en) System and method for implementing streaming media content service
CN102143046A (en) Load balancing method, equipment and system
KR20090080051A (en) Sponsor Nodes, and Methods of Hosting Virtual Peers in a P2P Network
Liu et al. An efficient and trustworthy P2P and social network integrated file sharing system
CN103347087B (en) Service registration and search method and system for structured P2P and UDDI
Shen et al. A proximity-aware interest-clustered P2P file sharing system
CN101686172B (en) A gateway node selection method, system and device
Abraham et al. Probabilistic quorums for dynamic systems
CN103546516B (en) Generate polymer layer network and the method and device of polymer layer expense figure
Tran et al. Decentralized online social network using peer-to-peer technology
Hecht et al. B-tracker: Improving load balancing and efficiency in distributed p2p trackers
CN103905249B (en) A kind of mobile Internet network method for managing and monitoring based on JXME
CN102752335B (en) Peer-to-peer overlay network interior joint overload information subscribing method and system
CN101521597B (en) Data statistical approach and system of mixed P2P network
Rajasekhar et al. A scalable and robust qos architecture for wifi p2p networks
Chan et al. Malugo: A peer-to-peer storage system
Tran et al. Mobile peer-to-peer approach for social computing services in distributed environment
JP2010277314A (en) P2P distribution method and system
CN103825914B (en) SN information reporting method, and method and apparatus for communication between DSN P2P network and IMS network communication
CN102487390B (en) System and method for realizing high-capacity media stream live broadcast on basis of peer-to-peer (P2P) technology
Lu et al. Design and analysis of arrangement graph-based overlay systems for information sharing
CN110958182B (en) Communication method and related equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201124

Address after: 214500, room 2, building 284, Tianlun village, No. 101, Ping Jiang Road, Jing Jiang, Taizhou, Jiangsu, Jingjiang

Patentee after: JINGJIANG LICHUANG INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 510640 Unit 2414-2416, Main Building, No. 371 Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Effective date of registration: 20201124

Address after: 510640 Unit 2414-2416, Main Building, No. 371 Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220518

Address after: 214500 No. 28, Yingbin East Road, Jingjiang City, Taizhou City, Jiangsu Province

Patentee after: Jiangsu Huarong Investment Development Co.,Ltd.

Address before: 214500 101, room 2, Tianlun new village, 284 Jiangping Road, Jingcheng, Jingjiang, Taizhou, Jiangsu

Patentee before: JINGJIANG LICHUANG INFORMATION TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230327

Address after: 214500 No. 28, Yingbin East Road, Jingjiang City, Taizhou City, Jiangsu Province

Patentee after: Jingjiang City Chengzhong Village Investment and Construction Co.,Ltd.

Address before: 214500 No. 28, Yingbin East Road, Jingjiang City, Taizhou City, Jiangsu Province

Patentee before: Jiangsu Huarong Investment Development Co.,Ltd.

TR01 Transfer of patent right
AV01 Patent right actively abandoned

Granted publication date: 20130320

Effective date of abandoning: 20231125

AV01 Patent right actively abandoned

Granted publication date: 20130320

Effective date of abandoning: 20231125

AV01 Patent right actively abandoned
AV01 Patent right actively abandoned