JP2002026950A - Method and system for building up server tree structure, server, and recording medium - Google Patents

Method and system for building up server tree structure, server, and recording medium

Info

Publication number
JP2002026950A
JP2002026950A JP2000206061A JP2000206061A JP2002026950A JP 2002026950 A JP2002026950 A JP 2002026950A JP 2000206061 A JP2000206061 A JP 2000206061A JP 2000206061 A JP2000206061 A JP 2000206061A JP 2002026950 A JP2002026950 A JP 2002026950A
Authority
JP
Japan
Prior art keywords
server
branch
parent
list
dependent
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.)
Pending
Application number
JP2000206061A
Other languages
Japanese (ja)
Inventor
Masahisa Kawashima
正久 川島
Shunsuke Yoshida
俊介 吉田
Kimihiko Fukami
公彦 深見
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2000206061A priority Critical patent/JP2002026950A/en
Publication of JP2002026950A publication Critical patent/JP2002026950A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a method and system for building up a server tree structure that can prevent increase in a load in a specific server, realize a transmission form of service data with a small network load and realize a highly reliable high-speed information distribution service and to provide a server network system and a server. SOLUTION: Each server is provided with a means that autonomously configures a tree structure where a faulty server or a deleted server is avoided in the case that the server is stopped by a fault or a manager deletes the sever and where the transmission path of service data can continuously be maintained.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、複数のサーバが階
層構造の親子関係でツリー状に接続されたサーバツリー
構造を構築する方法及びシステム、サーバ並びに記録媒
体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and system for constructing a server tree structure in which a plurality of servers are connected in a tree structure in a hierarchical parent-child relationship, a server, and a recording medium.

【0002】[0002]

【従来の技術】ネットワーク上で提供されるデータに基
づいたサービスをデータサービス、このデータサービス
のために用いられるデータをサービスデータと定義する
と、データサービスの例として、情報の検索サービス、
ファイルの配信サービス、音声、映像ストリームの配信
サービスがある。
2. Description of the Related Art If a service based on data provided on a network is defined as a data service, and data used for the data service is defined as service data, information retrieval services,
There are file distribution services and audio and video stream distribution services.

【0003】データサービスを提供する一手段として、
分散して設置した複数のサーバによってサービスを提供
する方法がある。一例として、HTTPによる情報配信
サービスを提供するためWEBサーバを複数設置するこ
とが挙げられる。複数のサーバを設置する目的は、主
に、高信頼化と高スループット化の2つである。高信頼
化とは、サービス提供に必要な情報を他のサーバ(複製
サーバ)に複製しておくことにより、ある1台のサーバ
に障害が発生しても、他の複製サーバによってサービス
の提供を継続できるようにすることである。高スループ
ット化とは、複数の利用者からの要求を複数のサーバに
よって処理することにより、処理可能な単位時間あたり
の要求量を高めることである。
[0003] As one means of providing data services,
There is a method of providing a service by a plurality of servers installed in a distributed manner. As an example, a plurality of WEB servers are provided to provide an information distribution service by HTTP. The purpose of installing a plurality of servers is mainly for high reliability and high throughput. High reliability means that information necessary for providing a service is duplicated on another server (replication server) so that even if one server fails, the service is provided by another replication server. To be able to continue. Higher throughput means that requests from a plurality of users are processed by a plurality of servers, thereby increasing the amount of requests that can be processed per unit time.

【0004】データサービスを複数のサーバによって高
信頼化、高スループット化するに際して次のような技術
的留意点がある。第1の留意点は、サービスデータが更
新された場合または新たなデータがサービスデータとし
て発生した場合に、サービスを提供するサーバに更新デ
ータまたは新たなサービスデータが速やかに伝達される
ことが望ましいことである。何故ならば、各サーバによ
って提供される情報が異なることは好ましくない、言い
かえれば、分散によってサービスの同一性が失われるこ
とは好ましくないからである。第2の留意点は、上記の
サーバ間のサービスデータの伝達を効率的に行なう必要
がある点である。何故ならば、映像や画像を提供するサ
ービスなど、サービスデータが大容量となる場合がある
からである。
[0004] There are the following technical points to consider when increasing the reliability and throughput of a data service by a plurality of servers. The first point is that when service data is updated or new data is generated as service data, it is desirable that the updated data or new service data be promptly transmitted to a service providing server. It is. This is because it is not preferable that the information provided by each server is different, in other words, it is not preferable that the service is lost due to the distribution. The second point is that it is necessary to efficiently transmit service data between the servers. This is because service data, such as a service for providing video and images, may have a large capacity.

【0005】複数のサーバによって高信頼化を実現する
従来技術として論文“Automatic Replication for High
ly Available Services”(著者Sanjay Ghemawat,NIT-
LCS-TR-473,マサチューセッツ工科大学)に記載された
ものがある。この方式によるサーバの従来構成を図10
に示す。
[0005] As a conventional technique for realizing high reliability by a plurality of servers, a paper "Automatic Replication for High
ly Available Services ”(author Sanjay Ghemawat, NIT-
LCS-TR-473, Massachusetts Institute of Technology). FIG. 10 shows a conventional configuration of a server using this method.
Shown in

【0006】図10に示す従来のサーバは、図11に示
すように、サービスを実際に提供する親サーバ(原文で
はプライマリサーバ)と、障害時用の予備装置として複
製を保持する子サーバ(原文ではバックアップサーバ)
によってサービス提供装置を構成する。
As shown in FIG. 11, the conventional server shown in FIG. 10 includes a parent server (primary server in the original text) that actually provides a service and a child server (original textbook) that holds a copy as a backup device for a failure. Then backup server)
The service providing device is configured by the above.

【0007】図10のサーバは、親サーバとして動作中
の場合に子サーバから登録要求メッセージ101を受付
け、登録応答メッセージ102を子サーバに返信する登
録受付手段103と、子サーバとして動作中の場合に親
サーバに対して登録要求メッセージ104を送信し、親
サーバからの登録応答メッセージ105を受信する登録
要求手段106と、自サーバが接続関係を持つサーバの
識別子のリストをサーバリスト情報107として保持す
る状態記憶手段108と、自サーバの親サーバに障害等
が発生した場合に新たな親サーバを決定するための親決
定手段109を備えている。
The server shown in FIG. 10 accepts a registration request message 101 from a child server when operating as a parent server and returns a registration response message 102 to the child server. A registration request means 106 for transmitting a registration request message 104 to the parent server and receiving a registration response message 105 from the parent server, and holding a list of identifiers of servers to which the own server has a connection relationship as server list information 107. And a parent determining unit 109 for determining a new parent server when a failure or the like occurs in the parent server of the own server.

【0008】このような構成の従来のサーバは、以下に
示す各手段の動作によって、親サーバが停止した場合に
自律的に他のサーバを新たな親サーバとして選択してサ
ービスを継続する。
The conventional server having such a configuration autonomously selects another server as a new parent server and continues the service when the parent server stops by the operation of the following means.

【0009】まず、状態記憶手段108のサーバリスト
情報には、表1に示すように、サーバの識別子と、サー
バが正常動作中であることが最後に確認された時刻(最
終確認時刻)が含まれる。
First, as shown in Table 1, the server list information of the state storage means 108 includes a server identifier and a time at which the server was last confirmed to be operating normally (final confirmation time). It is.

【0010】[0010]

【表1】 ここで、S1,S2,S3はサーバ識別子、T1,T
2,T3は最終確認時刻である。
[Table 1] Here, S1, S2, S3 are server identifiers, T1, T
2 and T3 are final confirmation times.

【0011】自サーバが親サーバとして動作中である場
合、登録受付手段103は、子サーバから登録要求メッ
セージ101を受信し、状態記憶手段108中のサーバ
リスト情報107に該子サーバの識別子を登録し、かつ
該子サーバの最終確認時刻を現在時刻に更新し、そのサ
ーバリスト情報を含む登録応答メッセージ102を該子
サーバに送信する。登録要求処理の処理フローの例を図
12に示す。この例では、親サーバでない子サーバが登
録要求メッセージ101を受信した場合には、応答コー
ドを“ParentMoved”とする登録応答メッセージを送信
する。
When the own server is operating as a parent server, the registration receiving means 103 receives the registration request message 101 from the child server and registers the identifier of the child server in the server list information 107 in the state storage means 108. Then, the last confirmation time of the child server is updated to the current time, and a registration response message 102 including the server list information is transmitted to the child server. FIG. 12 shows an example of a processing flow of the registration request processing. In this example, when a child server that is not the parent server receives the registration request message 101, it transmits a registration response message with a response code of “ParentMoved”.

【0012】図12において、登録送信要求サーバから
の登録要求メッセージ101を受信すると、状態記憶手
段108よりサーバリスト情報107を取得し(ステッ
プ1201)、その取得したサーバリスト情報107か
ら親サーバ識別子を取得する(ステップ1202)。そ
して、取得したサーバリストが示す親サーバが該サーバ
自身であるか否かを判定し(ステップ1203)、親サ
ーバが自分自身でない場合には応答コードを“ParentMo
ved”とする登録応答メッセージを登録要求メッセージ
の送信元のサーバに返信する(ステップ1208)。し
かし、親サーバが自分自身である場合には、サーバリス
ト情報107中に登録要求メッセージ101を送信した
サーバが含まれているか否かを判定し(ステップ120
4)、含まれていない場合には当該登録要求メッセージ
101を送信したサーバの識別子をサーバリスト情報1
07に追加登録する(ステップ1205)。しかし、サ
ーバリスト情報107中に登録要求メッセージ101を
送信したサーバが含まれている場合には、サーバリスト
情報107の登録処理は行なわず、ステップ1206に
進む。
In FIG. 12, when a registration request message 101 is received from a registration transmission request server, server list information 107 is obtained from the state storage means 108 (step 1201), and a parent server identifier is obtained from the obtained server list information 107. It is acquired (step 1202). Then, it is determined whether the parent server indicated by the acquired server list is the server itself (step 1203). If the parent server is not the server itself, the response code is set to “ParentMo
The server sends a registration response message “ved” to the server that transmitted the registration request message (step 1208). However, if the parent server is itself, the registration request message 101 is transmitted in the server list information 107. It is determined whether a server is included (step 120).
4) If it is not included, the identifier of the server that transmitted the registration request message 101 is stored in the server list information 1
07 is additionally registered (step 1205). However, if the server that transmitted the registration request message 101 is included in the server list information 107, the process proceeds to step 1206 without performing the registration processing of the server list information 107.

【0013】ステップ1206では、サーバリスト情報
107中の登録要求メッセージ101を送信したサーバ
の最終確認時刻を現在時刻に書き換えて、状態記憶手段
108中のサーバリスト情報107を更新する。この
後、応答コードを“OK”として登録応答メッセージ10
2を返信する。
In step 1206, the last confirmation time of the server that transmitted the registration request message 101 in the server list information 107 is rewritten to the current time, and the server list information 107 in the state storage unit 108 is updated. Thereafter, the response code is set to “OK” and the registration response message 10
Reply 2.

【0014】子サーバの登録応答処理の処理フローの例
を図13に示す。この例では、登録応答の応答コードが
“ParentMoved”であった場合、登録要求メッセージ1
04の送信を再度実行する。子サーバの登録要求手段1
06は、親サーバに対し周期的に登録要求メッセージ1
04を送信し、該親サーバから登録応答メッセージ10
5を受信し、その登録応答メッセージ105に含まれて
いるサーバリスト情報によって状態記憶手段108のサ
ーバリスト情報107を更新する(ステップ130
1)。応答コードが“ParentMoved”であった場合(ス
テップ1302)、登録応答メッセージ105に含まれ
ている親サーバ識別子の親サーバに対して登録要求メッ
セージ104を送信する(ステップ1303)。応答コ
ードが“OK”であった場合は、処理を終了する。
FIG. 13 shows an example of a processing flow of the registration response processing of the child server. In this example, when the response code of the registration response is “ParentMoved”, the registration request message 1
04 is executed again. Child server registration request means 1
06 is a periodic registration request message 1 to the parent server.
04, and the parent server sends a registration response message 10
5 is received, and the server list information 107 of the state storage unit 108 is updated with the server list information included in the registration response message 105 (step 130).
1). If the response code is “ParentMoved” (step 1302), the registration request message 104 is transmitted to the parent server of the parent server identifier included in the registration response message 105 (step 1303). If the response code is "OK", the process ends.

【0015】以上のようにして親子サーバの関係が構築
される。この後、親サーバは、子サーバに伝達すべきサ
ービスデータが発生するたびに、状態記憶手段108に
保持されている子サーバのリストに基づき、子サーバに
対してサービスデータを伝達する。
As described above, the relationship between the parent and child servers is established. Thereafter, each time service data to be transmitted to the child server occurs, the parent server transmits the service data to the child server based on the list of child servers held in the state storage unit 108.

【0016】これに対して子サーバは、親サーバとの通
信が途絶えた場合、親サーバが停止状態になったと判断
し、親サーバの更新を実行する。すなわち、予め決めら
れた優先順位に従い、状態記憶手段108が保持するサ
ーバリスト情報107のサーバ識別子の中から新たな親
サーバを選択する。この仕組みによって、親サーバが停
止した場合にも、サービスが継続される。本発明を説明
するうえで重要な上記従来方式の留意点は、サービスデ
ータは1台の親サーバから他のすべての子サーバへ伝達
される点である。
On the other hand, when the communication with the parent server is interrupted, the child server determines that the parent server has been stopped, and updates the parent server. That is, a new parent server is selected from the server identifiers of the server list information 107 stored in the state storage unit 108 in accordance with a predetermined priority. With this mechanism, the service is continued even when the parent server stops. An important point in describing the present invention in describing the present invention is that service data is transmitted from one parent server to all other child servers.

【0017】また、情報転送の効率化のために広く用い
られている手段として、サーバ間の情報伝達をツリー状
に、言い換えれば階層的に行なう手法がある。この概念
を図14に示す。ここでは、サーバ間でサービスデータ
を転送する場合の送信側を親サーバ、受信側を子サーバ
と定義する。この構成では、ある子サーバに対して親サ
ーバとなっているサーバが別のサーバにとっての子サー
バとなるようにして、サービスデータの転送を多段に行
なう。
As a means widely used for improving the efficiency of information transfer, there is a method of transmitting information between servers in a tree-like manner, in other words, in a hierarchical manner. This concept is shown in FIG. Here, the transmitting side when transferring service data between servers is defined as a parent server, and the receiving side is defined as a child server. In this configuration, service data is transferred in multiple stages such that a server that is a parent server for one child server becomes a child server for another server.

【0018】これによって、サーバの親子接続を多段に
重ねることによって、サーバをツリー状に接続する。こ
のようなツリー状のサーバの接続をサーバツリーと呼
ぶ。図14のように、1つの親サーバと該親サーバに子
として接続しているサーバの集合をブランチと呼ぶ。あ
るブランチAの親サーバが従属するブランチをブランチ
Aの上位ブランチと定義する。例えば、図14におい
て、エリア110、エリア120、エリア130のブラ
ンチはエリア100のブランチに従属している。この場
合、エリア100のブランチを、エリア110、エリア
120、エリア130のブランチの上位ブランチと表現
する。図14の例では、エリア110には、サーバS1
11〜S113が配置され、このうちS111が親サー
バとなっている。また、エリア120には、サーバS1
21〜S123が配置され、このうちS121が親サー
バとなっている。また、エリア130には、サーバS1
31〜S133が配置され、このうちS131が親サー
バとなっている。
Thus, the servers are connected in a tree shape by superposing the parent-child connections of the servers in multiple stages. Such a tree-like server connection is called a server tree. As shown in FIG. 14, a set of one parent server and servers connected to the parent server as children is called a branch. A branch to which a parent server of a certain branch A depends is defined as an upper branch of the branch A. For example, in FIG. 14, the branches of the area 110, the area 120, and the area 130 are subordinate to the branch of the area 100. In this case, the branch of the area 100 is expressed as an upper branch of the branches of the area 110, the area 120, and the area 130. In the example of FIG. 14, the area 110 includes the server S1.
11 to S113 are arranged, of which S111 is the parent server. The area 120 includes a server S1.
21 to S123 are arranged, of which S121 is the parent server. The area 130 includes a server S1.
31 to S133 are arranged, of which S131 is the parent server.

【0019】さらに、エリア100では、エリア110
のサーバS111が親サーバとなり、エリア120,1
30の各サーバが子サーバとなり、ネットワーク全体で
はエリア200のサーバS211が親サーバとなり、エ
リア100,200,300の各サーバが子サーバとな
っている。なお、図14において、2重線で接続したサ
ーバは同一装置であることを示している。
Further, in area 100, area 110
Server S111 becomes the parent server, and the areas 120, 1
Each of the 30 servers is a child server, the server S211 in the area 200 is a parent server in the entire network, and each of the servers in the areas 100, 200, and 300 is a child server. In FIG. 14, servers connected by double lines are the same device.

【0020】この構成では、各サーバは自分自身の親サ
ーバからサービスデータを取得する。サーバ間の遠近関
係やネットワークトポロジを考慮してツリー構造の接続
関係を構成することにより、同一中継経路上を同じサー
ビスデータが転送される回数を少なくし、サービスデー
タの伝達を効率化できる。
In this configuration, each server acquires service data from its own parent server. By configuring a tree-structured connection relationship in consideration of the perspective relationship between servers and the network topology, it is possible to reduce the number of times that the same service data is transferred on the same relay route and to streamline the service data.

【0021】[0021]

【発明が解決しようとする課題】しかしながら、前記論
文に記載されている方法では、サービスデータがプライ
マリサーバから直接他のバックアップサーバへ伝達され
る。このため、以下の2つの問題点がある。第1の問題
点は、サービスデータの伝達がプライマリサーバにとっ
て大きな負荷となってしまう点である。第2の問題点
は、同一のサービスデータを同一の中継路上を何回も転
送することにより、ネットワークに対する負荷が大きく
なってしまうことがある点である。
However, in the method described in the above article, service data is transmitted directly from the primary server to another backup server. Therefore, there are the following two problems. The first problem is that transmission of service data imposes a heavy load on the primary server. The second problem is that the load on the network may be increased by transferring the same service data over the same relay path many times.

【0022】一方で、情報を階層的に伝達する手法は以
下の問題点を持つ。その問題点とは、障害発生時の影響
が大きい点である。あるサーバが障害によって停止した
場合に、その停止したサーバだけでなく、そのサーバよ
り下位のブランチで接続されているサーバにも、サービ
スデータが伝達されなくなってしまうという問題点であ
る。
On the other hand, the method of transmitting information hierarchically has the following problems. The problem is that the influence upon occurrence of a failure is large. When a certain server is stopped due to a failure, service data is not transmitted not only to the stopped server but also to a server connected to a branch lower than the server.

【0023】本発明は、このような問題を解決するため
になされたものであり、その目的は、特定のサーバにお
ける負荷の増大を防ぎ、かつネットワーク負荷も小さい
サービスデータの伝達形態を実現し、高信頼かつ高速な
情報配信サービスを実現することができるサーバツリー
構造構築方法及びサーバネットワークシステム並びにサ
ーバを提供することにある。
The present invention has been made in order to solve such a problem, and an object of the present invention is to prevent a load on a specific server from increasing and realize a service data transmission mode with a small network load. An object of the present invention is to provide a server tree structure construction method, a server network system, and a server capable of realizing a highly reliable and high-speed information distribution service.

【0024】[0024]

【課題を解決するための手段】上記目的を達成するため
に、本発明の特徴は、あるサーバが障害によって停止し
た場合あるいは管理者によって削除された際には、その
サーバを回避したツリー構造を自律的に構成し、サービ
スデータの伝達経路を維持継続する手段を各サーバに備
えさせた点にある。
In order to achieve the above object, a feature of the present invention is to provide a tree structure that avoids a server when the server is stopped due to a failure or deleted by an administrator. The point is that each server is provided with means for autonomously configuring and maintaining and maintaining the service data transmission path.

【0025】詳しくは、本発明のサーバツリー構造構築
方法は、親サーバと該親サーバの子サーバの集合をブラ
ンチ、あるサーバが子として属するブランチを従属ブラ
ンチとする複数のサーバを備え、各サーバには、親サー
バと親サーバ選択における優先順位を判別可能とする形
式で従属ブランチに属するサーバ識別子のリストと、該
従属ブランチの上位ブランチにおけるサーバ識別子のリ
ストとを含むサーバツリー情報を記憶する状態記憶手段
を備え、複数のサーバが階層構造の親子関係でツリー状
に接続されたサーバツリー構造を構築する方法であっ
て、従属ブランチの子サーバから親サーバに対してサー
バ識別子と従属ブランチ識別子とを含む登録要求メッセ
ージを送信し、従属ブランチのサーバ識別子のリストと
従属ブランチの上位ブランチにおけるサーバ識別子のリ
ストとを含む登録応答メッセージを親サーバから受信
し、該登録応答メッセージに含まれるブランチのサーバ
識別子のリストによって自サーバ内の前記状態記憶手段
が保持するブランチのサーバ識別子のリストを更新する
第1のステップと、子サーバから前記登録要求メッセー
ジを受信し、自サーバ内の前記状態記憶手段が保持する
サーバ識別子リストのうち登録要求メッセージが示す従
属ブランチのサーバ識別子リストが当該子サーバを含む
ように更新し、さらに当該ブランチのサーバ識別子リス
トと当該ブランチの上位のサーバ識別子リストとを含む
登録応答メッセージを子サーバに対して送信する第2の
ステップと、各ブランチにおける親サーバの停止を検出
し、自サーバ内の前記状態記憶手段が保持するサーバツ
リー情報に従い新しい親サーバを選出する第3のステッ
プとを備えることを特徴とする。
More specifically, the server tree structure construction method of the present invention comprises a plurality of servers each having a set of a parent server and a child server of the parent server as a branch, and a branch to which a certain server belongs as a child as a dependent branch. State that stores server tree information including a list of server identifiers belonging to the dependent branch in a format that allows the priority in the parent server and the selection of the parent server to be determined, and a list of server identifiers in the upper branch of the dependent branch. A method for constructing a server tree structure in which a plurality of servers are connected in a tree structure in a hierarchical parent-child relationship with a storage means, wherein a server identifier and a dependent branch identifier are provided from a child server of a dependent branch to a parent server. And send a registration request message containing the Receiving a registration response message including a list of server identifiers at the lunch from the parent server, and a list of server identifiers of the branch held by the state storage means in the own server according to the list of server identifiers of the branch included in the registration response message Receiving the registration request message from the child server, and the server identifier list of the subordinate branch indicated by the registration request message among the server identifier lists held by the state storage means in the own server is the child step. A second step of updating the server to include the server, and further transmitting a registration response message including a server identifier list of the branch and a higher-level server identifier list of the branch to the child server; Stop is detected, and the status storage means in the own server is stored. Characterized in that it comprises a third step of selecting a new parent server in accordance server tree information.

【0026】また、前記第3のステップにおいて、従属
ブランチにおける新たな親サーバが自サーバであった場
合は、自サーバ内の前記状態記憶手段が示すブランチの
上位ブランチを新たな従属ブランチとして親サーバを選
出する第4のステップをさらに備えることを特徴とす
る。
In the third step, if the new parent server in the dependent branch is the own server, the upper branch of the branch indicated by the status storage means in the own server is set as the new dependent branch to the parent server. The method further comprises a fourth step of selecting

【0027】また、前記第4のステップにおいて、従属
ブランチにおいて新たな親サーバを選出することが不可
能な場合は、自サーバ内の前記状態記憶手段が保持する
従属ブランチの上位ブランチにおけるサーバ識別子のリ
ストから親サーバを選択する第5のステップをさらに備
えることを特徴とする。
In the fourth step, if it is not possible to select a new parent server in the dependent branch, the server identifier of the upper-level branch of the dependent branch held by the state storage means in the own server is determined. A fifth step of selecting a parent server from the list is further provided.

【0028】また、本発明のサーバネットワークシステ
ムは、親サーバと該親サーバの子サーバの集合をブラン
チ、あるサーバが子として属するブランチを従属ブラン
チとする複数のサーバを階層構造の親子関係でツリー状
に接続したサーバネットワークシステムであって、各サ
ーバが、親サーバと親サーバ選択における優先順位を判
別可能とする形式で従属ブランチに属するサーバ識別子
のリストと、該従属ブランチの上位ブランチにおけるサ
ーバ識別子のリストとを含むサーバツリー情報を記憶す
る状態記憶手段と、従属ブランチの子サーバから親サー
バに対してサーバ識別子と従属ブランチ識別子とを含む
登録要求メッセージを送信し、従属ブランチのサーバ識
別子のリストと従属ブランチの上位ブランチにおけるサ
ーバ識別子のリストとを含む登録応答メッセージを親サ
ーバから受信し、該登録応答メッセージに含まれるブラ
ンチのサーバ識別子のリストによって自サーバ内の前記
状態記憶手段が保持するブランチのサーバ識別子のリス
トを更新する第1の処理手段と、子サーバから前記登録
要求メッセージを受信し、自サーバ内の前記状態記憶手
段が保持するサーバ識別子リストのうち登録要求メッセ
ージが示す従属ブランチのサーバ識別子リストが当該子
サーバを含むように更新し、さらに当該ブランチのサー
バ識別子リストと当該ブランチの上位のサーバ識別子リ
ストとを含む登録応答メッセージを子サーバに対して送
信する第2の処理手段と、各ブランチにおける親サーバ
の停止を検出し、自サーバ内の前記状態記憶手段が保持
するサーバツリー情報に従い新しい親サーバを選出する
第3の処理手段とを具備することを特徴とする。
In the server network system of the present invention, a plurality of servers having a parent server and a set of child servers of the parent server as branches and a branch to which a certain server belongs as a subordinate branch are arranged in a tree structure in a hierarchical parent-child relationship. A list of server identifiers belonging to a dependent branch in a format that allows each server to determine a parent server and a priority in selecting a parent server, and a server identifier in an upper branch of the dependent branch. State storage means for storing server tree information including: a list of server identifiers; transmitting a registration request message including a server identifier and a dependent branch identifier from the child server of the dependent branch to the parent server; List of server identifiers in the upper branch of the Receiving from the parent server a registration response message including the following, and updating the list of server identifiers of the branch held by the state storage means in the own server with the list of server identifiers of the branch included in the registration response message: Processing means for receiving the registration request message from the child server, so that the server identifier list of the dependent branch indicated by the registration request message in the server identifier list held by the status storage means in the own server includes the child server. A second processing unit for updating and transmitting a registration response message including a server identifier list of the branch and a server identifier list of a higher rank of the branch to the child server; and detecting a stop of the parent server in each branch. New according to the server tree information held by the status storage means in the own server. Characterized by comprising a third processing means for selecting a server.

【0029】また、前記第3の処理手段は、従属ブラン
チにおける新たな親サーバが自サーバであった場合は、
自サーバ内の前記状態記憶手段が示すブランチの上位ブ
ランチを新たな従属ブランチとして親サーバを選出する
親更新処理手段をさらに備えることを特徴とする。
Further, the third processing means, when the new parent server in the dependent branch is its own server,
Parent update processing means for selecting a parent server as a new subordinate branch of a branch indicated by the state storage means in the own server is further provided.

【0030】また、前記親更新処理手段は、従属ブラン
チにおいて新たな親サーバを選出することが不可能な場
合は、自サーバ内の前記状態記憶手段が保持する従属ブ
ランチの上位ブランチにおけるサーバ識別子のリストか
ら親サーバを選択することを特徴とする。
[0030] When it is impossible to select a new parent server in the dependent branch, the parent update processing means may determine a server identifier of a higher-level branch of the dependent branch held by the status storage means in the own server. A parent server is selected from a list.

【0031】また、本発明のサーバは、親サーバと該親
サーバの子サーバの集合をブランチ、あるサーバが子と
して属するブランチを従属ブランチとする複数のサーバ
を階層構造の親子関係でツリー状に接続したサーバネッ
トワークシステムにおけるサーバであって、親サーバと
親サーバ選択における優先順位を判別可能とする形式で
従属ブランチに属するサーバ識別子のリストと、該従属
ブランチの上位ブランチにおけるサーバ識別子のリスト
とを含むサーバツリー情報を記憶する状態記憶手段と、
従属ブランチの子サーバから親サーバに対してサーバ識
別子と従属ブランチ識別子とを含む登録要求メッセージ
を送信し、従属ブランチのサーバ識別子のリストと従属
ブランチの上位ブランチにおけるサーバ識別子のリスト
とを含む登録応答メッセージを親サーバから受信し、該
登録応答メッセージに含まれるブランチのサーバ識別子
のリストによって自サーバ内の前記状態記憶手段が保持
するブランチのサーバ識別子のリストを更新する第1の
処理手段と、子サーバから前記登録要求メッセージを受
信し、自サーバ内の前記状態記憶手段が保持するサーバ
識別子リストのうち登録要求メッセージが示す従属ブラ
ンチのサーバ識別子リストが当該子サーバを含むように
更新し、さらに当該ブランチのサーバ識別子リストと当
該ブランチの上位のサーバ識別子リストとを含む登録応
答メッセージを子サーバに対して送信する第2の処理手
段と、各ブランチにおける親サーバの停止を検出し、自
サーバ内の前記状態記憶手段が保持するサーバツリー情
報に従い新しい親サーバを選出する第3の処理手段とを
具備することを特徴とする。
Further, the server of the present invention comprises a plurality of servers having a parent server and a set of child servers of the parent server as branches, and a branch to which a certain server belongs as a subordinate branch in a tree structure in a hierarchical parent-child relationship. A list of server identifiers belonging to a dependent branch and a list of server identifiers in an upper branch of the dependent branch in a format in which the server in the connected server network system can determine the priority in selecting the parent server and the parent server. Status storage means for storing server tree information including:
A registration request message including a server identifier and a dependent branch identifier is transmitted from the child server of the dependent branch to the parent server, and a registration response including a list of server identifiers of the dependent branch and a list of server identifiers in a higher branch of the dependent branch First processing means for receiving a message from a parent server and updating a list of server identifiers of the branch held by the state storage means in the own server with a list of server identifiers of the branch contained in the registration response message; Receiving the registration request message from the server, and updating the server identifier list of the dependent branch indicated by the registration request message from the server identifier list held by the state storage means in the own server so as to include the child server; List of server identifiers for the branch and the top of the branch A second processing unit for transmitting a registration response message including a server identifier list to the child server, detecting a stop of the parent server in each branch, and according to server tree information held by the state storage unit in the own server. And a third processing means for selecting a new parent server.

【0032】また、前記第3の処理手段は、従属ブラン
チにおける新たな親サーバが自サーバであった場合は、
自サーバ内の前記状態記憶手段が示すブランチの上位ブ
ランチを新たな従属ブランチとして親サーバを選出する
親更新処理手段をさらに備えることを特徴とする。
Further, the third processing means, when the new parent server in the dependent branch is its own server,
Parent update processing means for selecting a parent server as a new subordinate branch of a branch indicated by the state storage means in the own server is further provided.

【0033】また、前記親更新処理手段は、従属ブラン
チにおいて新たな親サーバを選出することが不可能な場
合は、自サーバ内の前記状態記憶手段が保持する従属ブ
ランチの上位ブランチにおけるサーバ識別子のリストか
ら親サーバを選択することを特徴とする。
If the parent update processing means cannot select a new parent server in the dependent branch, the parent update processing means stores the server identifier in the upper branch of the dependent branch held by the state storage means in the own server. A parent server is selected from a list.

【0034】また、本発明のサーバツリー構造を構築す
るためのプログラムを記録した媒体は、親サーバと該親
サーバの子サーバの集合をブランチ、あるサーバが子と
して属するブランチを従属ブランチとする複数のサーバ
を備え、各サーバには、親サーバと親サーバ選択におけ
る優先順位を判別可能とする形式で従属ブランチに属す
るサーバ識別子のリストと、該従属ブランチの上位ブラ
ンチにおけるサーバ識別子のリストとを含むサーバツリ
ー情報を記憶する状態記憶手段を備え、複数のサーバが
階層構造の親子関係でツリー状に接続されたサーバツリ
ー構造を構築するためのプログラムを記録した媒体であ
って、従属ブランチの子サーバから親サーバに対してサ
ーバ識別子と従属ブランチ識別子とを含む登録要求メッ
セージを送信し、従属ブランチのサーバ識別子のリスト
と従属ブランチの上位ブランチにおけるサーバ識別子の
リストとを含む登録応答メッセージを親サーバから受信
し、該登録応答メッセージに含まれるブランチのサーバ
識別子のリストによって自サーバ内の前記状態記憶手段
が保持するブランチのサーバ識別子のリストを更新する
第1の処理と、子サーバから前記登録要求メッセージを
受信し、自サーバ内の前記状態記憶手段が保持するサー
バ識別子リストのうち登録要求メッセージが示す従属ブ
ランチのサーバ識別子リストが当該子サーバを含むよう
に更新し、さらに当該ブランチのサーバ識別子リストと
当該ブランチの上位のサーバ識別子リストとを含む登録
応答メッセージを子サーバに対して送信する第2の処理
と、各ブランチにおける親サーバの停止を検出し、自サ
ーバ内の前記状態記憶手段が保持するサーバツリー情報
に従い新しい親サーバを選出する第3の処理とを含むサ
ーバツリー構造構築用プログラムを記録したことを特徴
とする。
Further, the medium in which the program for constructing the server tree structure of the present invention is recorded includes a plurality of sets each having a parent server and a set of child servers of the parent server as branches, and a branch to which a certain server belongs as a child as a dependent branch. Each server includes a list of server identifiers belonging to the dependent branch in a format that allows the priority in the parent server and the selection of the parent server to be determined, and a list of server identifiers in the upper branch of the dependent branch. A medium for recording a program for constructing a server tree structure in which a plurality of servers are connected in a tree structure in a parent-child relationship in a hierarchical structure, comprising a state storage means for storing server tree information, the server being a child server of a dependent branch. Sends a registration request message including the server identifier and the dependent branch identifier to the parent server, A registration response message including a list of server identifiers of the subordinate branch and a list of server identifiers in the upper branch of the subordinate branch is received from the parent server, and the list of server identifiers of the branches included in the registration response message includes A first process of updating a list of server identifiers of a branch held by a state storage unit, and receiving a registration request message from a child server, and requesting a registration request from a server identifier list held by the state storage unit in the own server. The server identifier list of the dependent branch indicated by the message is updated so as to include the child server, and a registration response message including the server identifier list of the branch and the server identifier list of the upper branch of the branch is transmitted to the child server. The second processing and the parent server in each branch Detecting a stop, characterized by recording a server tree structure construction program and a third processing of selecting a new parent server in accordance server tree information in which the state storage means holds in the own server.

【0035】また、前記第3の処理において、従属ブラ
ンチにおける新たな親サーバが自サーバであった場合
は、自サーバ内の前記状態記憶手段が示すブランチの上
位ブランチを新たな従属ブランチとして親サーバを選出
する親更新処理をさらに備えることを特徴とする。
In the third process, if the new parent server in the dependent branch is the own server, the upper branch of the branch indicated by the status storage means in the own server is set as the new dependent branch. And a parent update process for selecting

【0036】また、前記親更新処理において、従属ブラ
ンチにおいて新たな親サーバを選出することが不可能な
場合は、自サーバ内の前記状態記憶手段が保持する従属
ブランチの上位ブランチにおけるサーバ識別子のリスト
から親サーバを選択する処理をさらに備えることを特徴
とする。
In the parent update processing, if it is impossible to select a new parent server in the dependent branch, a list of server identifiers in the upper branch of the dependent branch held by the state storage means in the own server is provided. And a process of selecting a parent server from.

【0037】[0037]

【発明の実施の形態】以下、添付図面を参照して本発明
の実施の形態を詳細に説明する。図1は、本発明の一実
施の形態を示すサーバのブロック構成図である。この実
施形態のサーバ10は、親サーバとして動作中の場合に
子サーバから登録要求メッセージ11を受信する登録要
求受信手段13、登録要求を処理する登録要求処理手段
14、登録応答メッセージ12を返信する登録応答送信
手段15を備えている。さらに子サーバとして動作中の
場合に親サーバに対して登録要求メッセージ16を送信
する登録要求送信手段17、親サーバからの登録応答メ
ッセージ18を受信する登録応答受信手段19、登録応
答メッセージを処理する登録応答処理手段20、自サー
バがツリー構造の接続関係を持つサーバの識別子のリス
トをサーバツリー情報21として保持する状態記憶手段
22、自サーバの親サーバに障害等が発生した場合に新
たな親サーバを決定するための親決定手段23を備えて
いる。サーバ10はサービス提供のためのソフトウェア
が起動されたコンピュータによって実現される。また、
本発明の状態記憶手段22以外の各手段もコンピュータ
上で動作するソフトウェアによって実現される。また、
状態記憶手段22はコンピュータ上のデータベースによ
って実現される。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. FIG. 1 is a block diagram of a server according to an embodiment of the present invention. The server 10 of this embodiment returns a registration request receiving unit 13 for receiving a registration request message 11 from a child server, a registration request processing unit 14 for processing a registration request, and a registration response message 12 when operating as a parent server. A registration response transmission unit 15 is provided. Further, when operating as a child server, a registration request transmitting unit 17 for transmitting a registration request message 16 to the parent server, a registration response receiving unit 19 for receiving a registration response message 18 from the parent server, and processing the registration response message. Registration response processing means 20, state storage means 22 for holding a list of identifiers of servers to which the own server has a tree-structured connection relation as server tree information 21, and new parent when a failure or the like occurs in the parent server of the own server. A parent determining unit 23 for determining a server is provided. The server 10 is realized by a computer on which software for providing a service is activated. Also,
Each unit other than the state storage unit 22 of the present invention is also realized by software operating on a computer. Also,
The state storage means 22 is realized by a database on a computer.

【0038】ここで、1つの親サーバと該親サーバに子
として接続しているサーバの集合をブランチ、あるブラ
ンチAの親サーバが従属するブランチをブランチAの上
位ブランチ、サーバが子として属するブランチを従属ブ
ランチと定義すると、状態記憶手段22には、自サーバ
が属するブランチのサーバリスト211と、従属ブラン
チの上位ブランチのサーバリスト212とを含むサーバ
ツリー情報が保持されるようになっている。
Here, a set of one parent server and a server connected as a child to the parent server is a branch, a branch on which a parent server of a certain branch A is subordinate is a higher branch of the branch A, and a branch to which the server is a child Is defined as a dependent branch, the state storage means 22 stores server tree information including a server list 211 of the branch to which the own server belongs and a server list 212 of the upper branch of the dependent branch.

【0039】親決定手段23は、従属ブランチの親サー
バが停止し、自サーバが当該ブランチの新たな親サーバ
と決定された場合には、当該ブランチの上位ブランチを
新たな従属ブランチとし、新たな従属ブランチのサーバ
リストから自サーバにとっての親サーバを決定する。
When the parent server of the dependent branch is stopped and the own server is determined to be the new parent server of the branch, the parent determining means 23 sets the upper branch of the branch as a new dependent branch and sets a new dependent branch. The parent server for the own server is determined from the server list of the dependent branch.

【0040】図2は、図1の構成のサーバをツリー構造
に接続したサーバネットワークシステムの一実施形態を
示す図である。図14の場合と同様に、エリア110、
エリア120、エリア130のブランチはエリア100
のブランチに従属している。この場合、エリア100の
ブランチを、エリア110、エリア120、エリア13
0のブランチの上位ブランチと表現する。図2の例で
は、エリア110には、サーバS111〜S113が配
置され、このうちS111が停止し、これに代えてS1
12が親サーバとなっていることを示している。また、
エリア120には、サーバS121〜S123が配置さ
れ、このうちS121が親サーバとなっている。また、
エリア130には、サーバS131〜S133が配置さ
れ、このうちS131が親サーバとなっている。さら
に、エリア100では、エリア120のサーバS121
が親サーバとなり、エリア120,130の各サーバが
子サーバとなり、ネットワーク全体ではエリア200の
サーバS211が親サーバとなり、エリア100,20
0,300の各サーバが子サーバとなっている。なお、
図2において、2重線で接続したサーバは同一装置であ
ることを示している。
FIG. 2 is a diagram showing an embodiment of a server network system in which the servers having the configuration shown in FIG. 1 are connected in a tree structure. As in the case of FIG. 14, the area 110,
The branch of area 120 and area 130 is area 100
Subordinate to a branch. In this case, the branch of area 100 is divided into area 110, area 120, area 13
It is expressed as an upper branch of the 0 branch. In the example of FIG. 2, servers S111 to S113 are arranged in the area 110, and among them, S111 is stopped, and
12 indicates that it is a parent server. Also,
In the area 120, servers S121 to S123 are arranged, of which S121 is a parent server. Also,
Servers S131 to S133 are arranged in the area 130, of which S131 is the parent server. Further, in the area 100, the server S121 of the area 120
Is the parent server, each server in the areas 120 and 130 is a child server, and the server S211 in the area 200 is the parent server in the entire network, and the areas 100 and 20 are
Each of the servers 0 and 300 is a child server. In addition,
In FIG. 2, the servers connected by double lines are the same device.

【0041】各サーバ内の親決定手段23は、従属ブラ
ンチの親サーバが停止し、自サーバが当該ブランチの新
たな親サーバと決定された場合には、当該ブランチの上
位ブランチを新たな従属ブランチとし、新たな従属ブラ
ンチのサーバリストから自サーバにとっての親サーバを
決定する。
When the parent server of the dependent branch is stopped and the own server is determined to be the new parent server of the branch, the parent determining means 23 in each server sets the upper branch of the branch to a new dependent branch. Then, the parent server for the own server is determined from the server list of the new subordinate branch.

【0042】これによって、あるブランチの親サーバが
停止した場合に、当該ブランチの他のサーバによって上
位ブランチと接続するブランチが新たに構成される。こ
のブランチの再構成によって、あるサーバが停止して
も、そのサーバを回避しながらサービスデータを伝達し
続けることができる。すなわち、前記の階層的にサービ
スデータを伝達する方法の問題点である、障害発生時の
影響が大きい点を解決することが可能になる。この親決
定処理は予め定めた周期で定期的に自動実行される。
Thus, when the parent server of a certain branch is stopped, a branch connected to the upper branch is newly formed by another server of the branch. By reconfiguring the branch, even if a certain server stops, it is possible to continue transmitting service data while avoiding the server. That is, it is possible to solve the problem of the method of transmitting service data hierarchically, that is, the point that the influence upon occurrence of a failure is large. This parent determination process is automatically executed periodically at a predetermined cycle.

【0043】例えば、図2のサーバSlllが「×印」
で示すように何らかの原因で停止した場合、図2に示す
とおり、サーバSl12がエリア110のブランチの親
となり、Sl12はエリア100のブランチを新たな従
属ブランチとし、S121を新たな親サーバとする。
For example, the server Slll in FIG.
As shown in FIG. 2, when the server is stopped for some reason, as shown in FIG. 2, the server S112 becomes the parent of the branch of the area 110, the S112 makes the branch of the area 100 a new subordinate branch, and S121 becomes the new parent server.

【0044】このような親決定処理を行なうために、登
録応答メッセージには、登録要求送信サーバの従属ブラ
ンチのサーバリストと、従属ブランチの上位ブランチの
サーバリストとを含むように構成される。これによっ
て、状態記憶手段22のサーバツリー情報21を更新す
ることが可能となる。
In order to perform such a parent determination process, the registration response message is configured to include a server list of a subordinate branch of the registration request transmission server and a server list of an upper branch of the subordinate branch. This makes it possible to update the server tree information 21 in the state storage unit 22.

【0045】親決定手段23は、従属ブランチの親サー
バが停止し、従属ブランチのサーバリストから新たな親
サーバを選出することが不可能な場合には、従属ブラン
チの上位ブランチのサーバリストから新たな親サーバを
選択し、従属ブランチを更新することを特徴とする。
If the parent server of the subordinate branch is stopped and it is impossible to select a new parent server from the server list of the subordinate branch, the parent determination means 23 adds a new parent server from the server list of the upper branch of the subordinate branch. A new parent server is selected, and a dependent branch is updated.

【0046】これによって、親サーバとなる能力を有す
るサーバを1つしか含まないブランチの親サーバが停止
した場合に、該ブランチの他のサーバは他のブランチに
登録する。これによって、停止したサーバを回避しなが
らサービスデータの伝達を継続することができる。
Thus, when the parent server of a branch including only one server having the ability to become a parent server is stopped, the other server of the branch registers with another branch. As a result, transmission of service data can be continued while avoiding a stopped server.

【0047】例えば、図3に示すように、サーバSl1
2,Sl13が親サーバとなる能力を持たないサーバで
あると仮定した場合に、サーバSlllが停止したとす
ると、サーバSl12およびSl13は自サーバが属す
るブランチのサーバリストから親サーバを選出すること
が不可能であるので、上位ブランチであるブランチ10
0のサーバリストから親サーバを選択する。図3の例で
は、サーバS112はエリア120のサーバS121を
親サーバとして選択し、サーバS113はエリア130
のサーバS131を親サーバとして選択した例を示して
いる。
For example, as shown in FIG.
2. Assuming that the server S11 is stopped, assuming that the server S113 is not a server capable of being a parent server, the servers S112 and S113 may select a parent server from the server list of the branch to which the own server belongs. Since it is impossible, the branch 10 which is the upper branch
Select the parent server from the 0 server list. In the example of FIG. 3, the server S112 selects the server S121 in the area 120 as the parent server, and the server S113 selects the server S121 in the area 130.
In this example, the server S131 is selected as the parent server.

【0048】次に、状態記憶手段22の実現方法につい
て説明する。各サーバの状態記憶手段22は表2に示す
とおりの情報を保持する。
Next, a method of realizing the state storage means 22 will be described. The status storage means 22 of each server holds information as shown in Table 2.

【0049】[0049]

【表2】 表2の例は、サーバS112の例であり、ブランチ11
0とブランチ100のサーバリストを示している。各サ
ーバリストは、ブランチの親サーバを先頭として、親サ
ーバ決定の優先順位順に、ブランチに属するサーバの情
報を示している。例えばブランチ110については、親
サーバがSlllであり、Slllが停止した場合に親
サーバとなるサーバはS121であることを示してい
る。サーバのツリー情報は、サーバの識別子と、該サー
バが正常動作であることが最後に確認された時刻(最終
確認時刻)Tnnn(T111,T121,…)と、該
サーバが親サーバとなる能力を有するか否かを示す情報
Pとを列記したものである。表2の例では、サーバSl
13の最終確認時刻はTl13であることを示してい
る。また、Tl13の後の“P”は、そのサーバSl1
3が親サーバとなる能力を有することを示す。親サーバ
となる能力を有しないサーバは当該位置の文字が“C”
となる。
[Table 2] The example in Table 2 is an example of the server S112, and the branch 11
0 and a server list of the branch 100 are shown. Each server list indicates information on servers belonging to the branch in the order of priority in determining the parent server, with the parent server of the branch at the top. For example, for the branch 110, the parent server is Sll, and the server that becomes the parent server when Sll is stopped is S121. The tree information of the server includes the identifier of the server, the time at which the server was finally confirmed to be operating normally (final confirmation time) Tnnn (T111, T121,...), And the ability of the server to become a parent server. And information P indicating whether or not the information is included. In the example of Table 2, the server Sl
13 indicates that the final confirmation time is T113. “P” after T113 is the server Sl11.
3 has the ability to be a parent server. If the server does not have the ability to be the parent server, the character at that position is "C".
Becomes

【0050】サーバツリー情報21において、自サーバ
が子として属するブランチを選択することにより、従属
ブランチを取得できる。表2の例から、サーバS112
の従属ブランチはブランチ110であることがわかる。
なお、表2において、階梯レベル2が従属ブランチ、階
梯レベル1がその上位ブランチであることを示してい
る。
By selecting a branch to which the server belongs as a child in the server tree information 21, a dependent branch can be obtained. From the example of Table 2, the server S112
Is a branch 110.
In Table 2, the ladder level 2 indicates a dependent branch, and the ladder level 1 indicates a higher branch thereof.

【0051】次に、親決定手段23の起動契機について
説明する。登録要求送信手段17、登録要求受信手段1
3はTCP/IPによって登録要求メッセージ、登録応
答メッセージを送受信する。メッセージの形式、メッセ
ージの処理については後述する。登録要求送信手段17
は、状態記憶手段22から従属ブランチと従属ブランチ
の親サーバの識別子を取得し、該親サーバに対して登録
要求メッセージの送信を予め定めた周期で定期的に試み
る。親サーバが何らかのの原因で停止しており、親サー
バとのTCP/IPコネクションの確立ができなかった
場合、登録要求送信手段17は親決定手段23に対して
従属ブランチと親サーバの識別子を入力し、更新指示を
行なう。
Next, the trigger of the activation of the parent determining means 23 will be described. Registration request transmitting means 17, registration request receiving means 1
3 transmits and receives a registration request message and a registration response message by TCP / IP. The format of the message and the processing of the message will be described later. Registration request transmission means 17
Acquires the dependent branch and the identifier of the parent server of the dependent branch from the state storage means 22, and periodically tries to transmit a registration request message to the parent server at a predetermined cycle. When the parent server is stopped for some reason and the TCP / IP connection with the parent server cannot be established, the registration request transmitting means 17 inputs the dependent branch and the identifier of the parent server to the parent determining means 23. Then, an update instruction is issued.

【0052】親決定手段23は、まず、親サーバの識別
子を状態記憶手段22のサーバツリー情報21から抹消
する。次に、状態記憶手段22のサーバツリー情報21
から従属ブランチの親サーバの識別子を取得する。すな
わち、従属ブランチのサーバリストの先頭の要素を親サ
ーバの識別子として取得する。そして、選択した親サー
バが自分自身である場合、従属ブランチの上位ブランチ
を新たな従属ブランチとし、親サーバの取得を再度実行
する。
First, the parent determining means 23 deletes the identifier of the parent server from the server tree information 21 of the state storage means 22. Next, the server tree information 21 in the state storage unit 22
From the parent server of the subordinate branch. That is, the first element of the server list of the dependent branch is acquired as the identifier of the parent server. Then, when the selected parent server is itself, the upper branch of the dependent branch is set as a new dependent branch, and acquisition of the parent server is executed again.

【0053】例えば、表2の状態すなわち従属ブランチ
がブランチ110、親サーバがSlllである状態で、
Slllが停止した場合、Sl12の親決定手段23
は、ブランチ110の親サーバとしてSl12、すなわ
ち自分自身を選択し、ブランチ100を新たな従属ブラ
ンチとし、親サーバとしてS121を選択する。以上の
処理により、サーバツリーは図2のように再構築され
る。
For example, in the state shown in Table 2, that is, when the dependent branch is the branch 110 and the parent server is Sll,
If Sl11 has stopped, the parent determining means 23 of Sl12
Selects Sl12, that is, itself, as the parent server of the branch 110, makes the branch 100 a new subordinate branch, and selects S121 as the parent server. Through the above processing, the server tree is reconstructed as shown in FIG.

【0054】また、従属ブランチから新たな親サーバを
更新することが不可能な場合、親サーバを従属ブランチ
の上位ブランチのサーバリストから選択し、選択された
サーバを親とし、該上位ブランチの下位のブランチを従
属ブランチとして決定する。このときの親サーバの選択
方法としては、ランダムに選択する方法、ネットワーク
上の距離が該サーバから最短のものを選択する方法など
が考えられる。
If it is not possible to update a new parent server from the dependent branch, the parent server is selected from the server list of the upper branch of the dependent branch, the selected server is set as the parent, and the lower server of the upper branch is selected. Is determined as a dependent branch. As a method of selecting a parent server at this time, a method of selecting a server randomly, a method of selecting a server having the shortest distance on the network from the server, and the like can be considered.

【0055】例えば、サーバS112もS113も親サ
ーバとなる能力を持たない場合には、サーバS112の
親サーバ決定手段23は親サーバとしてサーバS121
を選択する。そして、サーバS121に対し、“Branch
Id=BranchlOO/S121”とした登録要求メッセージ16を
送出する。BranchlOO/S121は、ブランチ100の下位で
サーバS121を親とするブランチを意味するとする。
これを受信したサーバS121はサーバS112をブラ
ンチ120に登録し、登録応答メッセージ12を送信す
る。以上の処理により、サーバツリーは図3のように再
構築される。なお別の実施例として、従属ブランチとし
てブランチ100を選択する方法も考えられる。
For example, if neither the server S112 nor the server S113 has the ability to be a parent server, the parent server determination means 23 of the server S112 sets the server S121 as the parent server.
Select Then, “Branch” is sent to the server S121.
A registration request message 16 with Id = BranchlOO / S121 "is sent out. The BranchlOO / S121 means a branch below the branch 100 and having the server S121 as a parent.
Upon receiving this, the server S121 registers the server S112 in the branch 120, and transmits a registration response message 12. By the above processing, the server tree is reconstructed as shown in FIG. As still another embodiment, a method of selecting the branch 100 as the dependent branch can be considered.

【0056】以上をまとめた親更新手段の処理フローを
図4に示す。図4において、親決定手段23は、親サー
バが何らかの原因で停止しており、親サーバとのTCP
/IPコネクションの確立ができなかった場合に登録要
求送信手段17から停止した親サーバの識別子が入力さ
れると、以下の親更新処理を行なう。
FIG. 4 shows a processing flow of the parent updating means summarizing the above. In FIG. 4, the parent determining means 23 determines that the parent server has been stopped for some
When the ID of the stopped parent server is input from the registration request transmitting means 17 when the / IP connection cannot be established, the following parent update processing is performed.

【0057】まず、親サーバの識別子を状態記憶手段2
2のサーバツリー情報21から抹消する(ステップ40
1)。次に、状態記憶手段22のサーバツリー情報21
を参照して登録ブランチを取得する(ステップ40
2)。すなわち、自サーバが子として属するブランチを
登録ブランチとして取得する。次に、その登録ブランチ
のサーバリストを取得する(ステップ403)。この
後、取得したサーバリスト中の最も優先順位の高いサー
バの識別子を選択する(ステップ404)。
First, the status storage means 2 stores the identifier of the parent server.
2 is deleted from the server tree information 21 (step 40).
1). Next, the server tree information 21 in the state storage unit 22
To obtain a registered branch (step 40)
2). That is, the branch to which the own server belongs as a child is acquired as a registered branch. Next, the server list of the registered branch is obtained (step 403). Thereafter, the identifier of the server with the highest priority in the acquired server list is selected (step 404).

【0058】次に、選択したサーバが親サーバとなる能
力を有するか否かを判定する(ステップ405)。親サ
ーバとなる能力を持っている場合には、選択したサーバ
を親サーバとして決定する(ステップ406)。次に、
親サーバが自分自身であるか否かを判定し、自分自身で
なければ、親サーバの更新処理を終了する。
Next, it is determined whether or not the selected server has the ability to become a parent server (step 405). If it has the ability to be the parent server, the selected server is determined as the parent server (step 406). next,
It is determined whether or not the parent server is itself, and if not, the parent server update process ends.

【0059】ステップ405において、親サーバとなる
能力を持っていなかった場合には、登録ブランチの上位
ブランチのサーバリストからサーバを選択し、新たな親
サーバとして決定する(ステップ408)。そして、登
録ブランチの上位ブランチに属するサーバを親とするブ
ランチを新たな登録ブランチとする(ステップ40
9)。
If it is determined in step 405 that the server does not have the ability to become the parent server, the server is selected from the server list of the upper branch of the registered branch and determined as a new parent server (step 408). Then, a branch having the server belonging to the upper branch of the registered branch as a parent is set as a new registered branch (step 40).
9).

【0060】一方、ステップ407において、親サーバ
が自分自身であった場合には、登録ブランチが最上位の
“Top”であるか否かを判定し(ステップ410)、
“Top”であった場合には登録ブランチは無しとして
処理を終了する(ステップ411)。しかし、“To
p”でなかった場合には、登録ブランチを現在よりも1
つ上の上位ブランチを新たな登録ブランチとした後(ス
テップ412)、ステップ403に戻り、処理を繰り返
す。以上の処理により、サーバツリーが再構築される。
On the other hand, if the parent server is itself in step 407, it is determined whether or not the registered branch is the top-level “Top” (step 410).
If it is “Top”, there is no registered branch, and the process ends (step 411). However, "To
If it is not p ”, the registered branch is set to 1
After the upper-level branch is set as a new registered branch (step 412), the process returns to step 403 and the process is repeated. Through the above processing, the server tree is reconstructed.

【0061】次に、状態記憶手段22の更新の実現手段
について説明する。登録要求メッセージ16の形式を図
5に示す。図5に示すように、登録要求メッセージ11
は、登録要求メッセージであることを示すRegisterRequ
est、サーバ識別子ServerId=S112、従属ブランチ識別子
BranchId、登録要求メッセージの送出サーバが親サーバ
となる能力を有するか否かを示すParentCapabilityを1
組とする情報によって構成されている。ここで、Parent
Capability=YESは、親サーバとなる能力を有することを
意味する。
Next, means for realizing the update of the state storage means 22 will be described. FIG. 5 shows the format of the registration request message 16. As shown in FIG. 5, the registration request message 11
Is a RegisterRequ indicating that it is a registration request message
est, server identifier ServerId = S112, dependent branch identifier
BranchId, ParentCapability indicating whether the sending server of the registration request message has the ability to be the parent server is 1
It is composed of information as a set. Where Parent
Capability = YES means that it has the ability to be a parent server.

【0062】登録応答メッセージ11の形式を図6に示
す。図6に示すように、登録応答メッセージ11は、応
答コードResponse=OKまたはResponse=ParentMovedと、
ブランチBranchからなる情報によって構成されている。
“Branch=”で始まる記述は、そのあとの語がブランチ
の識別子を示し、そのあとの{ }で囲まれた部分が該
ブランチのサーバリスト情報を表している。
FIG. 6 shows the format of the registration response message 11. As shown in FIG. 6, the registration response message 11 includes a response code Response = OK or Response = ParentMoved,
It is composed of information consisting of branches.
In the description starting with “Branch =”, the word after that indicates the identifier of the branch, and the portion enclosed by {} indicates server list information of the branch.

【0063】登録要求処理手段14は、図5のような登
録要求メッセージ11を受信したら、まず登録要求メッ
セージ11の従属ブランチのサーバリストを状態記憶手
段22から取得する。従属ブランチの親サーバが別のサ
ーバである場合には、応答コードを“ParentMoved”と
し、否の場合には応答コードを“OK”とする。応答コー
ドが“OK”となる場合に、取得したサーバリストに登録
要求メッセージを送信したサーバの識別子が含まれてい
ない場合、該サーバの識別子をサーバリストに追加す
る。そして、サーバリスト中のサーバの最終確認時刻を
現在時刻に書き換えて、状態記憶手段22のサーバツリ
ー情報21を更新する。以上の処理フローを図7に示
す。
Upon receiving the registration request message 11 as shown in FIG. 5, the registration request processing means 14 first obtains the server list of the subordinate branch of the registration request message 11 from the state storage means 22. If the parent server of the dependent branch is another server, the response code is “ParentMoved”; otherwise, the response code is “OK”. If the response code is "OK" and the acquired server list does not include the identifier of the server that transmitted the registration request message, the server identifier is added to the server list. Then, the last confirmation time of the server in the server list is rewritten to the current time, and the server tree information 21 of the state storage unit 22 is updated. FIG. 7 shows the above processing flow.

【0064】図7において、登録要求処理手段14は、
図5のような登録要求メッセージ11を受信したら、ま
ず登録要求メッセージ11の従属ブランチ(登録ブラン
チ)のサーバリストを状態記憶手段22から取得する
(ステップ701)。次に、取得したサーバリストから
親サーバの識別子を取得する(ステップ702)。次
に、取得したサーバリストが示す親サーバが自分自身で
あるか否かを判定し(ステップ703)、自分自身であ
る場合には、自身が保持しているサーバリストに登録要
求メッセージを送信したサーバが含まれているか否かを
判定し(ステップ704)、含まれていなかった場合に
は、登録要求メッセージを送信したサーバの識別子を状
態記憶手段22のサーバツリー情報21のサーバリスト
として追加登録する(ステップ705)。
In FIG. 7, the registration request processing means 14
When the registration request message 11 as shown in FIG. 5 is received, first, the server list of the dependent branch (registered branch) of the registration request message 11 is obtained from the state storage unit 22 (step 701). Next, the identifier of the parent server is acquired from the acquired server list (step 702). Next, it is determined whether or not the parent server indicated by the acquired server list is itself (step 703). If it is, the server sends a registration request message to the server list held by itself. It is determined whether or not the server is included (step 704). If not, the identifier of the server that transmitted the registration request message is additionally registered as a server list of the server tree information 21 of the state storage unit 22. (Step 705).

【0065】しかし、含まれていた場合には、サーバリ
スト中の登録要求メッセージを送信したサーバの最終確
認時刻を現在時刻に書き換え、状態記憶手段22のサー
バリストを更新する(ステップ706)。この後、応答
コードを“OK”とし(ステップ707)、状態記憶手段
22に保持されている登録ブランチのサーバリストと、
登録ブランチの上位ブランチのサーバリストとを登録応
答メッセージに含めるべきサーバツリー情報とし(ステ
ップ709)、応答コードとサーバツリー情報を含む登
録応答メッセージを送信する。一方、ステップ703に
おいて、親サーバが自分でなく、自身は子サーバであっ
た場合には、応答コードを“ParentMoved”とし(ステ
ップ708)、ステップ709に進む。
However, if it is included, the last confirmation time of the server which transmitted the registration request message in the server list is rewritten to the current time, and the server list in the state storage means 22 is updated (step 706). Thereafter, the response code is set to "OK" (step 707), and the server list of the registered branch held in the state storage means 22
The server list of the upper branch of the registered branch is set as server tree information to be included in the registration response message (step 709), and the registration response message including the response code and the server tree information is transmitted. On the other hand, in step 703, if the parent server is not the server itself, but the server itself is a child server, the response code is set to “ParentMoved” (step 708), and the process proceeds to step 709.

【0066】登録応答処理手段20は、登録応答メッセ
ージ18を受信したら、状態記憶手段22中のサーバツ
リー情報21に含まれるサーバリストのうち、登録応答
メッセージにサーバリストが含まれるブランチのサーバ
リストを、登録応答メッセージに含まれるサーバリスト
によって書き換える。応答コードが“ParentMoved”に
なっている場合には、新たな親サーバに対して登録要求
メッセージを送信する。以上の処理フローを図8に示
す。
When the registration response processing means 20 receives the registration response message 18, the registration response processing means 20 changes the server list of the branch whose server list is included in the registration response message among the server lists included in the server tree information 21 in the state storage means 22. Is rewritten by the server list included in the registration response message. If the response code is “ParentMoved”, a registration request message is transmitted to the new parent server. FIG. 8 shows the above processing flow.

【0067】図8において、登録応答処理手段20は、
登録応答メッセージ18を受信したら、登録応答メッセ
ージ18に含まれるサーバツリーによって状態記憶手段
22のサーバツリーを更新する(ステップ801)。す
なわち、状態記憶手段22中のサーバツリー情報21に
含まれるサーバリストのうち、登録応答メッセージにサ
ーバリストが含まれるブランチのサーバリストを、登録
応答メッセージに含まれるサーバリストによって書き換
える。次に、応答コードが“ParentMoved”であるか、
“OK”であるかを判定し(ステップ802)、“Parent
Moved”であった場合には、登録応答メッセージ18に
含まれている親サーバ識別子の新たな親サーバに対して
登録要求メッセージを送信する(ステップ803)。応
答コードが“OK”であった場合には、処理を終了する。
In FIG. 8, the registration response processing means 20
When the registration response message 18 is received, the server tree of the state storage unit 22 is updated with the server tree included in the registration response message 18 (Step 801). That is, of the server list included in the server tree information 21 in the state storage means 22, the server list of the branch whose server list is included in the registration response message is rewritten with the server list included in the registration response message. Next, if the response code is "ParentMoved"
It is determined whether it is “OK” (step 802), and “Parent
If the response code is "Moved", a registration request message is transmitted to the new parent server having the parent server identifier included in the registration response message 18 (step 803). Ends the processing.

【0068】本発明のサーバを地域別に配置したサーバ
ネットワークの実施形態を図9に示す。図9において、
Rの四角形は中継装置を表し、Sで始まる文字列はサー
バの識別子を表し、これを囲む四角形はサーバを表す。
ここでは、地域120を地域121,122,123に
分割し、これらの地域121〜123にサーバS121
〜S123を配置し、さらに地域130を地域131,
132,133に分割し、これらの地域131〜133
にサーバS131〜S133を配置し、さらに地域11
0を地域111,112,113に分割し、これらの地
域111〜113にサーバS111〜S113を配置
し、各地域間のサーバは中継装置Rを介して親子関係を
生成し、通常状態においては図14に示したようなツリ
ー構造の接続関係を構成している。なお、サーバを接続
する回線に付記している数字「5」、「10」、「2
0」等は回線容量を表している。このように構成するこ
とによって、ある地域のサーバが障害によって停止した
場合であっても、その障害を回避するようにツリー構造
の接続関係が再構築され、データサービスを円滑に行な
うことができる。
FIG. 9 shows an embodiment of a server network in which the servers of the present invention are arranged for each region. In FIG.
The rectangle of R represents the relay device, the character string starting with S represents the identifier of the server, and the rectangle surrounding this represents the server.
Here, the area 120 is divided into areas 121, 122, and 123, and the server 121 is assigned to these areas 121 to 123.
~ S123 is arranged, and the area 130 is further changed to the area 131,
132, 133, and these areas 131-133
Servers S131 to S133 are located in
0 is divided into regions 111, 112, and 113, and servers S111 to S113 are arranged in these regions 111 to 113. The servers between the regions generate a parent-child relationship via the relay device R. A connection structure having a tree structure as shown in FIG. The numbers “5”, “10”, “2” added to the line connecting the server
"0" and the like represent the line capacity. With this configuration, even when a server in a certain area is stopped due to a failure, the tree-structured connection relationship is reconstructed so as to avoid the failure, and data service can be performed smoothly.

【0069】なお、上記サーバが実施するツリー構造の
接続関係の構築処理は、CD−ROM等の記録媒体に記
録してコンピュータユーザに提供することができる。ま
た、上記説明では、サーバが何らかの原因で停止した場
合に、新たな接続関係を再構築する場合について説明し
たが、新たなサーバがいずれかのブランチに追加された
場合についても、その追加された新たなサーバで親サー
バを決定する処理を起動することにより、当該サーバを
サーバツリー構造の中に自動的に組み込むことができ
る。
The tree-structured connection relationship construction process performed by the server can be recorded on a recording medium such as a CD-ROM and provided to a computer user. Further, in the above description, the case where a new connection relationship is reconstructed when the server is stopped for some reason has been described. However, even when a new server is added to any branch, the addition is performed. By activating the process of determining a parent server in a new server, the server can be automatically incorporated into the server tree structure.

【0070】[0070]

【発明の効果】以上の説明から明らかなように、本発明
によれば、効率化のために階層的にサービスデータを転
送する場合において、あるサーバが障害によって停止し
たとしても、停止したサーバを回避しながらサービスデ
ータの転送を継続することができ、システムの信頼性を
向上させることができる。親サーバが停止したブランチ
に親となり得るサーバが他に存在しない場合でも、ブラ
ンチに属する他のサーバへのサービスデータの転送を継
続することができる。この結果、サービスデータの転送
を効率化しながら、サーバを分散させ、高信頼かつ高ス
ループットなデータサービスを提供することが可能とな
る。
As is apparent from the above description, according to the present invention, when service data is transferred in a hierarchical manner for efficiency, even if a certain server is stopped due to a failure, the stopped server can be used. It is possible to continue the transfer of service data while avoiding it, and to improve the reliability of the system. Even if there is no other server that can be the parent of the branch where the parent server has stopped, the transfer of service data to another server belonging to the branch can be continued. As a result, it is possible to distribute servers while providing efficient service data transfer, and to provide a highly reliable and high throughput data service.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明によるサーバの一実施形態を示す構成図
である。
FIG. 1 is a configuration diagram illustrating an embodiment of a server according to the present invention.

【図2】サーバのツリー構造の接続関係例と再構築の方
法を説明するための図である。
FIG. 2 is a diagram illustrating an example of a connection relationship of a tree structure of a server and a method of restructuring.

【図3】他のブランチの親サーバを選出する場合の説明
図である。
FIG. 3 is an explanatory diagram when a parent server of another branch is selected.

【図4】親決定手段における親更新処理の手順を示すフ
ローチャートである。
FIG. 4 is a flowchart illustrating a procedure of a parent update process in a parent determination unit.

【図5】登録要求メッセージの内容例を示す図である。FIG. 5 is a diagram showing an example of the content of a registration request message.

【図6】登録応答メッセージの内容例を示す図である。FIG. 6 is a diagram showing an example of the content of a registration response message.

【図7】登録要求メッセージを受信した場合の処理を示
すフローチャートである。
FIG. 7 is a flowchart showing processing when a registration request message is received.

【図8】登録応答メッセージを受信した場合の処理を示
すフローチャートである。
FIG. 8 is a flowchart showing processing when a registration response message is received.

【図9】本発明を地域別に配置されたサーバに適用した
実施形態を示す図である。
FIG. 9 is a diagram showing an embodiment in which the present invention is applied to servers arranged in regions.

【図10】データ配信サービスに使用する従来のサーバ
の構成図である。
FIG. 10 is a configuration diagram of a conventional server used for a data distribution service.

【図11】従来のサーバ構成において親サーバを切換え
る場合の説明図である。
FIG. 11 is an explanatory diagram when a parent server is switched in a conventional server configuration.

【図12】従来のサーバ構成において登録要求メッセー
ジを受信した場合の処理を示すフローチャートである。
FIG. 12 is a flowchart showing processing when a registration request message is received in a conventional server configuration.

【図13】従来のサーバ構成において登録応答メッセー
ジを受信した場合の処理を示すフローチャートである。
FIG. 13 is a flowchart showing processing when a registration response message is received in a conventional server configuration.

【図14】従来のサーバ構成におけるツリー構造接続関
係の例を示す図である。
FIG. 14 is a diagram showing an example of a tree structure connection relationship in a conventional server configuration.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 深見 公彦 東京都千代田区大手町二丁目3番1号 日 本電信電話株式会社内 Fターム(参考) 5B045 BB11 GG06 JJ46 5K033 CB17 DA01 DA16 DB12  ────────────────────────────────────────────────── ─── Continued on the front page (72) Inventor Kimihiko Fukami 2-3-1 Otemachi, Chiyoda-ku, Tokyo Nippon Telegraph and Telephone Corporation F-term (reference) 5B045 BB11 GG06 JJ46 5K033 CB17 DA01 DA16 DB12

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 親サーバと該親サーバの子サーバの集合
をブランチ、あるサーバが子として属するブランチを従
属ブランチとする複数のサーバを備え、各サーバには、
親サーバと親サーバ選択における優先順位を判別可能と
する形式で従属ブランチに属するサーバ識別子のリスト
と、該従属ブランチの上位ブランチにおけるサーバ識別
子のリストとを含むサーバツリー情報を記憶する状態記
憶手段を備え、複数のサーバが階層構造の親子関係でツ
リー状に接続されたサーバツリー構造を構築する方法で
あって、 従属ブランチの子サーバから親サーバに対してサーバ識
別子と従属ブランチ識別子とを含む登録要求メッセージ
を送信し、従属ブランチのサーバ識別子のリストと従属
ブランチの上位ブランチにおけるサーバ識別子のリスト
とを含む登録応答メッセージを親サーバから受信し、該
登録応答メッセージに含まれるブランチのサーバ識別子
のリストによって自サーバ内の前記状態記憶手段が保持
するブランチのサーバ識別子のリストを更新する第1の
ステップと、 子サーバから前記登録要求メッセージを受信し、自サー
バ内の前記状態記憶手段が保持するサーバ識別子リスト
のうち登録要求メッセージが示す従属ブランチのサーバ
識別子リストが当該子サーバを含むように更新し、さら
に当該ブランチのサーバ識別子リストと当該ブランチの
上位のサーバ識別子リストとを含む登録応答メッセージ
を子サーバに対して送信する第2のステップと、 各ブランチにおける親サーバの停止を検出し、自サーバ
内の前記状態記憶手段が保持するサーバツリー情報に従
い新しい親サーバを選出する第3のステップとを備え、
上記第1〜第3のステップを実行することにより、複数
のサーバを階層構造の親子関係でツリー状に接続したサ
ーバツリー構造の構築方法。
1. A server comprising a plurality of servers each having, as a branch, a set of a parent server and child servers of the parent server, and a subordinate branch having a branch to which a certain server belongs as a child.
State storage means for storing server tree information including a list of server identifiers belonging to the dependent branch and a list of server identifiers in an upper branch of the dependent branch in such a manner that the priority in the selection of the parent server and the parent server can be determined; A method for constructing a server tree structure in which a plurality of servers are connected in a tree structure in a hierarchical parent-child relationship, wherein a registration including a server identifier and a dependent branch identifier is provided from a child server of a dependent branch to a parent server. A request message is transmitted, and a registration response message including a list of server identifiers of the dependent branch and a list of server identifiers in a higher branch of the dependent branch is received from the parent server, and a list of server identifiers of the branches included in the registration response message And the brass stored in the status storage means in the server. A first step of updating a list of server identifiers of a plurality of sub-branches indicated by the registration request message in the server identifier list received by the status storage means in the own server; A second step of updating the server identifier list to include the child server, and further transmitting a registration response message including the server identifier list of the branch and the server identifier list of the upper branch to the child server; A third step of detecting a stop of the parent server in each branch and selecting a new parent server in accordance with server tree information held by the state storage means in the own server;
A method of constructing a server tree structure in which a plurality of servers are connected in a tree in a hierarchical parent-child relationship by executing the first to third steps.
【請求項2】 前記第3のステップにおいて、従属ブラ
ンチにおける新たな親サーバが自サーバであった場合
は、自サーバ内の前記状態記憶手段が示すブランチの上
位ブランチを新たな従属ブランチとして親サーバを選出
する第4のステップをさらに備えることを特徴とする請
求項1に記載のサーバツリー構造の構築方法。
2. In the third step, when the new parent server in the dependent branch is the own server, the parent server of the branch indicated by the status storage means in the own server is set as a new dependent branch. The method according to claim 1, further comprising a fourth step of selecting a server tree structure.
【請求項3】 前記第4のステップにおいて、従属ブラ
ンチにおいて新たな親サーバを選出することが不可能な
場合は、自サーバ内の前記状態記憶手段が保持する従属
ブランチの上位ブランチにおけるサーバ識別子のリスト
から親サーバを選択する第5のステップをさらに備える
ことを特徴とする請求項2に記載のサーバツリー構造の
構築方法。
3. In the fourth step, when it is impossible to select a new parent server in the dependent branch, the server identifier of the upper-level branch of the dependent branch held by the state storage means in the own server is set. The method according to claim 2, further comprising a fifth step of selecting a parent server from a list.
【請求項4】 親サーバと該親サーバの子サーバの集合
をブランチ、あるサーバが子として属するブランチを従
属ブランチとする複数のサーバを階層構造の親子関係で
ツリー状に接続したサーバネットワークシステムであっ
て、 各サーバが、 親サーバと親サーバ選択における優先順位を判別可能と
する形式で従属ブランチに属するサーバ識別子のリスト
と、該従属ブランチの上位ブランチにおけるサーバ識別
子のリストとを含むサーバツリー情報を記憶する状態記
憶手段と、 従属ブランチの子サーバから親サーバに対してサーバ識
別子と従属ブランチ識別子とを含む登録要求メッセージ
を送信し、従属ブランチのサーバ識別子のリストと従属
ブランチの上位ブランチにおけるサーバ識別子のリスト
とを含む登録応答メッセージを親サーバから受信し、該
登録応答メッセージに含まれるブランチのサーバ識別子
のリストによって自サーバ内の前記状態記憶手段が保持
するブランチのサーバ識別子のリストを更新する第1の
処理手段と、 子サーバから前記登録要求メッセージを受信し、自サー
バ内の前記状態記憶手段が保持するサーバ識別子リスト
のうち登録要求メッセージが示す従属ブランチのサーバ
識別子リストが当該子サーバを含むように更新し、さら
に当該ブランチのサーバ識別子リストと当該ブランチの
上位のサーバ識別子リストとを含む登録応答メッセージ
を子サーバに対して送信する第2の処理手段と、 各ブランチにおける親サーバの停止を検出し、自サーバ
内の前記状態記憶手段が保持するサーバツリー情報に従
い新しい親サーバを選出する第3の処理手段とを具備す
ることを特徴とするサーバネットワークシステム。
4. A server network system in which a set of a parent server and child servers of the parent server is connected as a branch, and a plurality of servers having a branch to which a certain server belongs as a subordinate branch are connected in a tree structure in a hierarchical parent-child relationship. Server tree information including a list of server identifiers belonging to a dependent branch and a list of server identifiers in a higher-order branch of the dependent branch in such a manner that each server can determine the parent server and the priority in the selection of the parent server. A registration request message including a server identifier and a dependent branch identifier from the child server of the dependent branch to the parent server, and a list of server identifiers of the dependent branch and a server in the upper branch of the dependent branch. A registration response message containing a list of identifiers from the parent server First processing means for receiving and updating a list of server identifiers of the branches held by the status storage means in the server according to the list of server identifiers of the branches included in the registration response message; Receiving the message, updating the server identifier list of the dependent branch indicated by the registration request message in the server identifier list held by the status storage means in the own server so as to include the child server, and further updating the server identifier list of the branch Second processing means for transmitting a registration response message including a list of server identifiers higher than the branch to the child server; detecting the stop of the parent server in each branch; Third processing means for selecting a new parent server according to the server tree information held Server network system according to claim Rukoto.
【請求項5】 前記第3の処理手段は、従属ブランチに
おける新たな親サーバが自サーバであった場合は、自サ
ーバ内の前記状態記憶手段が示すブランチの上位ブラン
チを新たな従属ブランチとして親サーバを選出する親更
新処理手段をさらに備えることを特徴とする請求項4に
記載のサーバネットワークシステム。
5. The third processing means, when the new parent server in the dependent branch is the own server, sets the upper branch of the branch indicated by the status storage means in the own server as a new dependent branch. The server network system according to claim 4, further comprising a parent update processing means for selecting a server.
【請求項6】 前記親更新処理手段は、従属ブランチに
おいて新たな親サーバを選出することが不可能な場合
は、自サーバ内の前記状態記憶手段が保持する従属ブラ
ンチの上位ブランチにおけるサーバ識別子のリストから
親サーバを選択することを特徴とする請求項5に記載の
サーバネットワークシステム。
6. When the parent update processing means cannot select a new parent server in the dependent branch, the parent update processing means stores a server identifier of a higher-level branch of the dependent branch held by the state storage means in the own server. The server network system according to claim 5, wherein a parent server is selected from a list.
【請求項7】 親サーバと該親サーバの子サーバの集合
をブランチ、あるサーバが子として属するブランチを従
属ブランチとする複数のサーバを階層構造の親子関係で
ツリー状に接続したサーバネットワークシステムにおけ
るサーバであって、 親サーバと親サーバ選択における優先順位を判別可能と
する形式で従属ブランチに属するサーバ識別子のリスト
と、該従属ブランチの上位ブランチにおけるサーバ識別
子のリストとを含むサーバツリー情報を記憶する状態記
憶手段と、 従属ブランチの子サーバから親サーバに対してサーバ識
別子と従属ブランチ識別子とを含む登録要求メッセージ
を送信し、従属ブランチのサーバ識別子のリストと従属
ブランチの上位ブランチにおけるサーバ識別子のリスト
とを含む登録応答メッセージを親サーバから受信し、該
登録応答メッセージに含まれるブランチのサーバ識別子
のリストによって自サーバ内の前記状態記憶手段が保持
するブランチのサーバ識別子のリストを更新する第1の
処理手段と、 子サーバから前記登録要求メッセージを受信し、自サー
バ内の前記状態記憶手段が保持するサーバ識別子リスト
のうち登録要求メッセージが示す従属ブランチのサーバ
識別子リストが当該子サーバを含むように更新し、さら
に当該ブランチのサーバ識別子リストと当該ブランチの
上位のサーバ識別子リストとを含む登録応答メッセージ
を子サーバに対して送信する第2の処理手段と、 各ブランチにおける親サーバの停止を検出し、自サーバ
内の前記状態記憶手段が保持するサーバツリー情報に従
い新しい親サーバを選出する第3の処理手段とを具備す
ることを特徴とするサーバ。
7. A server network system in which a set of a parent server and a child server of the parent server is connected as a branch, and a plurality of servers having a branch to which a certain server belongs as a subordinate branch are connected in a tree structure in a hierarchical parent-child relationship. The server stores server tree information including a list of server identifiers belonging to a dependent branch and a list of server identifiers in a higher-order branch of the dependent branch in such a manner that the priority order in selecting the parent server and the parent server can be determined. Transmitting a registration request message including a server identifier and a dependent branch identifier from the child server of the dependent branch to the parent server, and a list of server identifiers of the dependent branch and a server identifier of a higher order branch of the dependent branch. Registration response message containing list and parent server First processing means for receiving and updating a list of server identifiers of the branches held by the status storage means in the server according to the list of server identifiers of the branches included in the registration response message; Receiving the message, updating the server identifier list of the dependent branch indicated by the registration request message in the server identifier list held by the status storage means in the own server so as to include the child server, and further updating the server identifier list of the branch Second processing means for transmitting a registration response message including a list of server identifiers higher than the branch to the child server; detecting the stop of the parent server in each branch; Third processing means for selecting a new parent server according to the server tree information held Server.
【請求項8】 前記第3の処理手段は、従属ブランチに
おける新たな親サーバが自サーバであった場合は、自サ
ーバ内の前記状態記憶手段が示すブランチの上位ブラン
チを新たな従属ブランチとして親サーバを選出する親更
新処理手段をさらに備えることを特徴とする請求項7に
記載のサーバ。
8. The third processing means, when the new parent server in the dependent branch is the own server, sets the upper branch of the branch indicated by the status storage means in the own server as a new dependent branch. The server according to claim 7, further comprising a parent update processing unit for selecting a server.
【請求項9】 前記親更新処理手段は、従属ブランチに
おいて新たな親サーバを選出することが不可能な場合
は、自サーバ内の前記状態記憶手段が保持する従属ブラ
ンチの上位ブランチにおけるサーバ識別子のリストから
親サーバを選択することを特徴とする請求項8に記載の
サーバ。
9. When the parent update processing unit cannot select a new parent server in the dependent branch, the parent update processing unit may determine a server identifier of a higher-level branch of the dependent branch held by the state storage unit in the own server. The server according to claim 8, wherein a parent server is selected from a list.
【請求項10】 親サーバと該親サーバの子サーバの集
合をブランチ、あるサーバが子として属するブランチを
従属ブランチとする複数のサーバを備え、各サーバに
は、親サーバと親サーバ選択における優先順位を判別可
能とする形式で従属ブランチに属するサーバ識別子のリ
ストと、該従属ブランチの上位ブランチにおけるサーバ
識別子のリストとを含むサーバツリー情報を記憶する状
態記憶手段を備え、複数のサーバが階層構造の親子関係
でツリー状に接続されたサーバツリー構造を構築するた
めのプログラムを記録した媒体であって、 従属ブランチの子サーバから親サーバに対してサーバ識
別子と従属ブランチ識別子とを含む登録要求メッセージ
を送信し、従属ブランチのサーバ識別子のリストと従属
ブランチの上位ブランチにおけるサーバ識別子のリスト
とを含む登録応答メッセージを親サーバから受信し、該
登録応答メッセージに含まれるブランチのサーバ識別子
のリストによって自サーバ内の前記状態記憶手段が保持
するブランチのサーバ識別子のリストを更新する第1の
処理と、 子サーバから前記登録要求メッセージを受信し、自サー
バ内の前記状態記憶手段が保持するサーバ識別子リスト
のうち登録要求メッセージが示す従属ブランチのサーバ
識別子リストが当該子サーバを含むように更新し、さら
に当該ブランチのサーバ識別子リストと当該ブランチの
上位のサーバ識別子リストとを含む登録応答メッセージ
を子サーバに対して送信する第2の処理と、 各ブランチにおける親サーバの停止を検出し、自サーバ
内の前記状態記憶手段が保持するサーバツリー情報に従
い新しい親サーバを選出する第3の処理とを含むサーバ
ツリー構造構築用プログラムを記録した記録媒体。
10. A server comprising a plurality of servers each having a set of a parent server and a child server of the parent server as a branch and a branch to which a certain server belongs as a child as a dependent branch, wherein each server has a priority in selecting the parent server and the parent server. State storage means for storing server tree information including a list of server identifiers belonging to the dependent branch in a format in which the order can be determined, and a list of server identifiers in an upper branch of the dependent branch; Recording a program for constructing a server tree structure connected in a tree in a parent-child relationship, wherein a registration request message including a server identifier and a dependent branch identifier from a child server of a dependent branch to a parent server In the list of server identifiers of the subordinate branch and the upper branch of the subordinate branch. A registration response message including the list of server identifiers from the parent server, and a list of the server identifiers of the branches held by the state storage means in the own server according to the list of the server identifiers of the branches included in the registration response message. A first process for updating; receiving the registration request message from the child server; and a server identifier list of a subordinate branch indicated by the registration request message in the server identifier list held by the state storage means in the own server is the child server. And transmitting a registration response message including a server identifier list of the branch and a higher-level server identifier list of the branch to the child server, and stopping the parent server in each branch Is detected, and the server tree information held by the state storage means in the own server is Third processing and recording medium recording server tree structure construction program including to elect a new parent server are.
【請求項11】 前記第3の処理において、従属ブラン
チにおける新たな親サーバが自サーバであった場合は、
自サーバ内の前記状態記憶手段が示すブランチの上位ブ
ランチを新たな従属ブランチとして親サーバを選出する
親更新処理をさらに備えることを特徴とする請求項10
に記載の記録媒体。
11. In the third process, when the new parent server in the dependent branch is the own server,
11. The system according to claim 10, further comprising a parent update process of selecting a parent server as a new subordinate branch of a branch indicated by the status storage means in the own server.
A recording medium according to claim 1.
【請求項12】 前記親更新処理において、従属ブラン
チにおいて新たな親サーバを選出することが不可能な場
合は、自サーバ内の前記状態記憶手段が保持する従属ブ
ランチの上位ブランチにおけるサーバ識別子のリストか
ら親サーバを選択する処理をさらに備えることを特徴と
する請求項11に記載の記録媒体。
12. In the parent update processing, when it is impossible to select a new parent server in a dependent branch, a list of server identifiers in an upper branch of the dependent branch held by the state storage means in the own server. 12. The recording medium according to claim 11, further comprising: a process of selecting a parent server from.
JP2000206061A 2000-07-07 2000-07-07 Method and system for building up server tree structure, server, and recording medium Pending JP2002026950A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000206061A JP2002026950A (en) 2000-07-07 2000-07-07 Method and system for building up server tree structure, server, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000206061A JP2002026950A (en) 2000-07-07 2000-07-07 Method and system for building up server tree structure, server, and recording medium

Publications (1)

Publication Number Publication Date
JP2002026950A true JP2002026950A (en) 2002-01-25

Family

ID=18703049

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000206061A Pending JP2002026950A (en) 2000-07-07 2000-07-07 Method and system for building up server tree structure, server, and recording medium

Country Status (1)

Country Link
JP (1) JP2002026950A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040027026A (en) * 2002-09-27 2004-04-01 주식회사 케이티 System of distributing access load of subscribers according to LNS access capacity and method thereof
KR100729507B1 (en) 2004-12-23 2007-06-15 주식회사 케이티 Real-time monitoring system for NeOSSNew Operations Support System and method thereof
JP2010509677A (en) * 2006-11-10 2010-03-25 マイクロソフト コーポレーション Message to transfer backup manager in distributed server system
JP2012249115A (en) * 2011-05-30 2012-12-13 Mitsubishi Electric Corp Apparatus monitoring system
US8395649B2 (en) 2006-12-07 2013-03-12 Nec Display Solutions, Ltd. Projector, terminal, conferencing system, tree structure switching method and recording medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040027026A (en) * 2002-09-27 2004-04-01 주식회사 케이티 System of distributing access load of subscribers according to LNS access capacity and method thereof
KR100729507B1 (en) 2004-12-23 2007-06-15 주식회사 케이티 Real-time monitoring system for NeOSSNew Operations Support System and method thereof
JP2010509677A (en) * 2006-11-10 2010-03-25 マイクロソフト コーポレーション Message to transfer backup manager in distributed server system
JP2013257893A (en) * 2006-11-10 2013-12-26 Microsoft Corp Message forwarding backup manager in distributed server system
US8395649B2 (en) 2006-12-07 2013-03-12 Nec Display Solutions, Ltd. Projector, terminal, conferencing system, tree structure switching method and recording medium
JP2012249115A (en) * 2011-05-30 2012-12-13 Mitsubishi Electric Corp Apparatus monitoring system

Similar Documents

Publication Publication Date Title
CN111866191B (en) Message event distribution method, distribution platform, system and server
JP3901806B2 (en) Information management system and secondary server
KR100359366B1 (en) Method and appratus for providing awareness-triggered push
JP4503225B2 (en) Virtual network with adaptive dispatcher
US7970856B2 (en) System and method for managing and distributing assets over a network
JP4588704B2 (en) Self-management mediation information flow
CN104247380B (en) CRUD type agreements are bound in distributed agreement protocol
JPH0936910A (en) Management of routing in packet communication network
JP2003501881A (en) Method and apparatus for multicasting
JPS62118465A (en) Propagation of resource information
CN103460203A (en) Cluster unique identifier
US8812718B2 (en) System and method of streaming data over a distributed infrastructure
US7907544B2 (en) Overlay network for location-independent communication between computer systems
US20130227568A1 (en) Systems and methods involving virtual machine host isolation over a network
JP4459999B2 (en) Non-stop service system using voting and information updating and providing method in the system
US20070165639A1 (en) Method and apparatus for managing delivery of stream data
JP2002026950A (en) Method and system for building up server tree structure, server, and recording medium
CN110460482B (en) Traffic acquisition method, device, server and medium
JP2016144186A (en) Communication information controller, relay system, communication information control method, and communication information control program
JP2007207013A (en) Information processor and information sharing program
CN102017568A (en) System for delivery of content to be played autonomously
JP2004201201A (en) Wap terminal, communication method and communication program
JP2008276289A (en) Information distribution system, method, server and program
KR100441892B1 (en) Apparatus and method for integrally managing subscriber for CO-LAN
JP2000172654A (en) Distributed object-managing system