JPH06324978A - Allocating system for port number of server program - Google Patents

Allocating system for port number of server program

Info

Publication number
JPH06324978A
JPH06324978A JP5113150A JP11315093A JPH06324978A JP H06324978 A JPH06324978 A JP H06324978A JP 5113150 A JP5113150 A JP 5113150A JP 11315093 A JP11315093 A JP 11315093A JP H06324978 A JPH06324978 A JP H06324978A
Authority
JP
Japan
Prior art keywords
port number
server program
program
service port
service
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
JP5113150A
Other languages
Japanese (ja)
Inventor
Kenji Funakoshi
健治 船越
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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP5113150A priority Critical patent/JPH06324978A/en
Publication of JPH06324978A publication Critical patent/JPH06324978A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the allocation of a service port number from overlapping by allocating by automatically selecting an unused port number without allocating a port number to a server program typically. CONSTITUTION:Targeted service can be received by acquiring the service port number unused by an operating system by an unuse port number acquiring means 2 by referring to information registered on a server program data base 5, allocating by conforming it to each of server programs A81, B82, and C83 to which no service port numbers are allocated by a server program = servive port number corresponding means 3, inquiring the service port number of a targeted server program to a server program managing program 1 by a service port number inquiring means 7 by a client program 6, and designating the service port number according to the information transmitted from a service port number transmission means 4.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はクライアント・サーバ方
式のプログラムにおいてサーバプログラムのサービスポ
ート番号を割り当てる手法に関し、特にサーバプログラ
ムのサービスポート番号を自動的に未使用のポート番号
を捜して割り当てる手法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for assigning a service port number of a server program in a client / server system program, and more particularly to a method for automatically assigning a service port number of a server program by searching for an unused port number. .

【0002】[0002]

【従来の技術】クライアント・サーバ方式のプログラム
においては、クライアントプログラムからサーバプログ
ラムに対してサービスを要求する場合、クライアントプ
ログラム自身のポートとサーバプログラムのサービスポ
ートとを接続することによりサーバプログラムにサービ
スを要求する。この際に接続されるポートはポート番号
で指定されるが、ポート番号にはオペレーティングシス
テムが割り当てるポート番号の範囲と、アプリケーショ
ン開発者が割り当てるポート番号の範囲とがある。ここ
では、前者をシステム割り当てポート番号範囲とし、後
者を開発者割り当てポート番号範囲とする。
2. Description of the Related Art In a client-server system program, when a service is requested from the client program to the server program, the service is provided to the server program by connecting the port of the client program itself and the service port of the server program. Request. The port connected at this time is specified by a port number. There are a range of port numbers assigned by the operating system and a range of port numbers assigned by the application developer. Here, the former is a system-assigned port number range and the latter is a developer-assigned port number range.

【0003】従来は、サーバプログラムのサービスポー
ト番号は各サービスについて固定されているのが一般的
である。たとえば、Internetネットワークの標準サーバ
プログラムのサービスポート番号は FTPサービスに関し
ては TPCプロトコルの21番に、TELNETサービスに関して
は同23番にというように固定されている。このため、ク
ライアントプログラムから見た場合には、ポート番号を
指定することがサービスを指定することにもなってい
た。
Conventionally, the service port number of the server program is generally fixed for each service. For example, the service port number of the standard server program of the Internet network is fixed to TPC protocol No. 21 for FTP service and No. 23 for TELNET service. For this reason, from the perspective of the client program, designating the port number also meant designating the service.

【0004】新たにサーバプログラムを作成する場合に
は、そのサーバプログラムの開発者が開発者割り当てポ
ート番号範囲の内から他のプログラムが使用していない
であろうと思われるポート番号を選択し、そのポート番
号を新たに作成するサーバプログラムのサービスポート
番号として固定的に割り当てていた。
When creating a new server program, the developer of the server program selects a port number which is considered not to be used by other programs from the range of port numbers assigned by the developer, and The port number was fixedly assigned as the service port number of the newly created server program.

【0005】[0005]

【発明が解決しようとする課題】上述のような従来のサ
ービスポート番号の割り当て方式には以下のような問題
点がある。まず、サーバプログラムを新たに開発する場
合、そのサーバプログラムのサービスポート番号を選択
する際に、他の開発者によって割り当てられた他のプロ
グラムのサービスポート番号と重複しないという保証が
ない。また、サーバプログラムの種類が増加するとそれ
に伴って使用されるポート数も増加するため、異なる開
発者によって同一のポート番号がそれぞれ異なるサーバ
プログラムに割り当てられる可能性が生じ、一つのポー
トが複数の異なるサービスを提供するサーバプログラム
のサービスポートとして重複して使用される虞が増大す
る。
The conventional service port number allocation method as described above has the following problems. First, when a server program is newly developed, when selecting the service port number of the server program, there is no guarantee that the service port number does not overlap with the service port number of another program assigned by another developer. Also, as the number of types of server programs increases, so does the number of ports used, so the same port number may be assigned to different server programs by different developers, and one port may have multiple different ports. There is an increased risk that the server program that provides the service may be used as a service port in duplicate.

【0006】本発明はこのような事情に鑑みてなされた
ものであり、サーバプログラムに対してポート番号を固
定的には割り当てず、使用されていないポート番号を自
動的に選択して割り当てることにより、サービスポート
番号の割り当ての重複を回避し得るサーバプログラムの
ポート番号の割当て方式の提供を目的とする。
The present invention has been made in view of the above circumstances, and does not fixedly assign a port number to a server program, but automatically selects and assigns an unused port number. It is an object of the present invention to provide a port number allocation method for a server program that can avoid duplication of allocation of service port numbers.

【0007】[0007]

【課題を解決するための手段】本発明の第1の発明はサ
ーバプログラム群の各サーバプログラムにサービスポー
ト番号を割り当てることにより、クライアントプログラ
ムに各サーバプログラムのサービスを受けさせるサーバ
プログラムのポート番号の割当て方式であって、サーバ
プログラム群の各サーバプログラムに関して、サービス
ポート番号が割り当てられているか否かの情報及び割り
当てられている場合はそのポート番号に関する情報が登
録されたデータベースと、オペレーティングシステムに
より割り当てることが可能なシステム割り当てポート番
号範囲の内の未使用のポート番号をオペレーティングシ
ステムから獲得する未使用ポート番号獲得手段と、この
未使用ポート番号獲得手段が獲得したポート番号を、デ
ータベースに登録されている情報を参照してサービスポ
ート番号が割り当てられていないサーバプログラムにサ
ービスポート番号として対応付けるサーバプログラム=
サービスポート番号対応付け手段と、このサーバプログ
ラム=サービスポート番号対応付け手段により対応付け
られたサービスポート番号とサーバプログラムとの関係
を示す情報をクライアントプログラムに伝達するサービ
スポート番号伝達手段とを有するサーバプログラム管理
プログラムとを備え、クライアントプログラムは、目的
のサーバプログラムのサービスポート番号をサーバプロ
グラム管理プログラムに問い合わせるためのサービスポ
ート番号問い合わせ手段を有し、このサービスポート番
号問い合わせ手段による問い合わせの結果サービスポー
ト番号伝達手段から伝達されたサービスポート番号を指
定して目的のサーバプログラムのサービスを受けるべく
なしてある。
According to a first aspect of the present invention, by assigning a service port number to each server program of a server program group, the port number of the server program which allows the client program to receive the service of each server program is set. It is an allocation method and is allocated by the operating system and a database in which information about whether or not a service port number is allocated to each server program of the server program group and, if allocated, information regarding the port number is registered. The unused port number acquisition means that acquires an unused port number from the range of system-assigned port numbers that can be allocated from the operating system, and the port number acquired by this unused port number acquisition means are registered in the database. Is the server associates a service port number to the server program service port number by referring to the information which is not assigned program =
A server having service port number associating means and service port number transmitting means for transmitting to the client program information indicating the relationship between the service port number associated with this server program = service port number associating means and the server program. The program management program is provided, and the client program has a service port number inquiry means for inquiring the service port number of the target server program to the server program management program, and the service port number as a result of the inquiry by this service port number inquiry means. The service port number transmitted from the transmission means is designated to receive the service of the target server program.

【0008】本発明の第2の発明は、サーバプログラム
群の各サーバプログラムにサービスポート番号を割り当
てることにより、クライアントプログラムに各サーバプ
ログラムのサービスを受けさせるサーバプログラムのポ
ート番号の割当て方式であって、サーバプログラム群の
各サーバプログラムに関して、サービスポート番号が割
り当てられているか否かの情報及び割り当てられている
場合はそのポート番号に関する情報が登録されたデータ
ベースと、この未使用ポート番号獲得手段が獲得したポ
ート番号を、データベースに登録されている情報を参照
してサービスポート番号が割り当てられていないサーバ
プログラムにサービスポート番号として対応付けるサー
バプログラム=サービスポート番号対応付け手段と、こ
のサーバプログラム=サービスポート番号対応付け手段
により対応付けられたサービスポート番号とサーバプロ
グラムとの関係を示す情報をクライアントプログラムに
伝達するサービスポート番号伝達手段とを有するサーバ
プログラム管理プログラムとを備え、各サーバプログラ
ムは、オペレーティングシステムにより割り当てること
が可能なシステム割り当てポート番号範囲の内の未使用
のポート番号を自身のサービスポート番号としてオペレ
ーティングシステムから獲得すると共にデータベースに
登録する未使用ポート番号獲得手段をそれぞれ有し、ク
ライアントプログラムは、目的のサーバプログラムのサ
ービスポート番号をサーバプログラム管理プログラムに
問い合わせるためのサービスポート番号問い合わせ手段
を有し、このサービスポート番号問い合わせ手段による
問い合わせの結果サービスポート番号伝達手段から伝達
されたサービスポート番号を指定して目的のサーバプロ
グラムのサービスを受けるべくなしてある。
A second aspect of the present invention is a method of assigning a port number of a server program that allows a client program to receive services of each server program by assigning a service port number to each server program of a server program group. , For each server program of the server program group, a database in which information on whether or not a service port number is assigned and, if assigned, information on the port number is registered, and this unused port number obtaining means is acquired. The server program = service port number associating means for associating the created port number as a service port number with a server program to which a service port number is not assigned by referring to the information registered in the database, and this server program. = A server program management program having a service port number transmitting means for transmitting information indicating the relationship between the service port number associated with the service port number associating means and the server program to the client program, and each server program , Has an unused port number acquisition means for acquiring an unused port number in the system-assigned port number range that can be assigned by the operating system from the operating system as its own service port number and registering it in the database, The client program has a service port number inquiry means for inquiring the server program management program about the service port number of the target server program. Together specify a service port number, which is transmitted from the query results service port number transmission means by means are no to receive the service object server program.

【0009】[0009]

【作用】本発明に係るサーバプログラムのポート番号の
割当て方式では、データベースに登録されている情報を
参照してオペレーティングシステムが使用していないサ
ービスポート番号を未使用ポート番号獲得手段が獲得し
てサービスポート番号が割り当てられていない各サーバ
プログラムにサーバプログラム=サービスポート番号対
応付け手段が対応付けて割り当て、クライアントプログ
ラムは目的とするサーバプログラムのサービスポート番
号をサービスポート番号問い合わせ手段によりサーバプ
ログラム管理プログラムに問い合わせることによりサー
ビスポート番号伝達手段から伝達される情報に従ってサ
ービスポート番号を指定することにより目的のサービス
を受けることが出来る。
In the port number assigning method of the server program according to the present invention, the unused port number obtaining means obtains the service port number which is not used by the operating system by referring to the information registered in the database. The server program = service port number associating unit associates and allocates each server program to which a port number is not allocated, and the client program assigns the service port number of the target server program to the server program managing program by the service port number inquiring unit. By inquiring, the intended service can be received by designating the service port number according to the information transmitted from the service port number transmitting means.

【0010】[0010]

【実施例】以下、本発明をその実施例を示す図面に基づ
いて詳述する。図1は本発明に係るサーバプログラムの
ポート番号の割当て方式の第1の発明の一実施例の全体
構成を示すブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings showing the embodiments thereof. FIG. 1 is a block diagram showing the overall configuration of an embodiment of the first invention of the port number assigning method of the server program according to the present invention.

【0011】本発明のサーバプログラムのポート番号の
割当て方式は、クライアントプログラム6に複数のサー
バプログラム群8によるサービスを行うためのシステム
であり、サーバプログラム群8の各サーバプログラムサ
ーバプログラムA81,B82,C83…に関する情報が予め
登録されているサーバプログラムデータベース5と、全
体を管理するサーバプログラム管理プログラム1とで構
成されている。なお、サーバプログラム群8には図1に
示されているサーバプログラムA81,B82,C83の他に
も種々のサーバプログラムが含まれており、それらの内
のサーバプログラムA81,B82,C83には未だサービス
ポート番号が割り当てられていないとする。
The port number assigning method of the server program of the present invention is a system for providing a service to the client program 6 by a plurality of server program groups 8. Each server program of the server program group 8 is a server program A81, B82, It comprises a server program database 5 in which information about C83 ... Is registered in advance, and a server program management program 1 for managing the whole. The server program group 8 includes various server programs in addition to the server programs A81, B82, and C83 shown in FIG. 1, and the server programs A81, B82, and C83 among them are not yet included. It is assumed that the service port number is not assigned.

【0012】サーバプログラム管理プログラム1は、未
使用ポート番号獲得手段2,サーバプログラム=サービ
スポート番号対応付け手段3,サービスポート番号伝達
手段4等を備えている。未使用ポート番号獲得手段2
は、オペレーティングシステムにより割り当てることが
可能なシステム割り当てポート番号範囲の内から未使用
のポート番号を捜して獲得する手段である。この未使用
ポート番号獲得手段2により獲得されたポート番号は、
使用状態にされることもある。
The server program management program 1 comprises an unused port number acquisition means 2, a server program = service port number association means 3, a service port number transmission means 4 and the like. Unused port number acquisition means 2
Is a means for searching for and obtaining an unused port number from a system-assigned port number range that can be assigned by the operating system. The port number acquired by this unused port number acquisition means 2 is
It may be put into use.

【0013】サーバプログラム=サービスポート番号対
応付け手段3は、未だサービスポート番号が割り当てら
れていないサーバプログラムA81,B82,C83に未使用
ポート番号獲得手段2が獲得したポート番号を対応付け
る手段である。サービスポート番号伝達手段4は、サー
バプログラム=サービスポート番号対応付け手段3によ
り対応付けられたサービスポート番号とサーバプログラ
ムとの対応付けをクライアントプログラム6からの問い
合わせに応じてクライアントプログラム6に伝達する手
段である。
The server program = service port number associating means 3 is means for associating the port numbers acquired by the unused port number acquiring means 2 with the server programs A81, B82 and C83 to which the service port numbers have not yet been allocated. The service port number transmission means 4 is means for transmitting the correspondence between the service port number associated by the server program = service port number association means 3 and the server program to the client program 6 in response to an inquiry from the client program 6. Is.

【0014】サーバプログラムデータベース5には各サ
ーバプログラムA81,B82,C83…に関する情報、特に
それぞれにサービスポート番号が割り当てられているか
否か、割り当てられていればその番号が登録されてい
る。このサーバプログラムデータベース5はファイルで
あってもよいし、データベース管理システムであっても
よいし、プログラムの実行によって得られる結果であっ
てもよい。
In the server program database 5, information regarding each server program A81, B82, C83 ... Is registered, in particular, whether or not a service port number is allocated to each, and if so, that number. The server program database 5 may be a file, a database management system, or a result obtained by executing the program.

【0015】クライアントプログラム6は、サーバプロ
グラム管理プログラム1に対して、サーバプログラムの
ポート番号を問い合わせるためのサービスポート番号問
い合わせ手段7を備えている。
The client program 6 includes a service port number inquiry means 7 for inquiring the server program management program 1 about the port number of the server program.

【0016】このような本発明のサーバプログラムのポ
ート番号の割当て方式の動作は以下の如くである。前述
の如く、サーバプログラム群8の内のサーバプログラム
A81,B82,C83にはいずれも未だサービスポート番号
が割り当てられていないとする。従って、サーバプログ
ラムデータベース5には各サーバプログラムA81,B8
2,C83に関する情報としては、サービスポート番号が
割り当てられていないことを表す情報が登録されてい
る。
The operation of the port number assigning method of the server program according to the present invention is as follows. As described above, it is assumed that none of the server programs A81, B82, C83 in the server program group 8 has a service port number assigned yet. Therefore, each server program A81, B8 is stored in the server program database 5.
2. As the information on C83, information indicating that a service port number is not assigned is registered.

【0017】サーバプログラム管理プログラム1は、サ
ーバプログラムデータベース5にアクセスしてサービス
ポート番号が割り当てられていないサーバプログラムが
有るか否かの情報を得る。そして、サーバプログラム管
理プログラム1は、その情報に基づいて必要なポートの
数の情報を得て未使用ポート番号獲得手段2を用いて必
要な数の未使用ポート番号をシステム割り当てポート番
号範囲の内から獲得する。この際に必要であれば獲得さ
れたポート番号のポートが使用状態にされる。
The server program management program 1 accesses the server program database 5 to obtain information as to whether or not there is a server program to which a service port number is not assigned. Then, the server program management program 1 obtains information on the number of required ports based on the information, and uses the unused port number acquisition means 2 to obtain the required number of unused port numbers within the system-assigned port number range. To get from. At this time, if necessary, the port of the acquired port number is put into use.

【0018】更に、サーバプログラム管理プログラム1
は、獲得した未使用ポートの番号をサーバプログラム=
サービスポート番号対応付け手段3を用いてサービスポ
ート番号が割り当てられていないサーバプログラムに対
応付ける。サーバプログラムにサービスを要求しようと
するクライアントプログラム6は、まずサービスポート
番号問い合わせ手段7を用いて、目的のサーバプログラ
ムのサービスポート番号に関する情報をサーバプログラ
ム管理プログラム1のサービスポート番号伝達手段4に
問い合わることにより得る。クライアントプログラム6
はこのようにして得られたポート番号を指定することに
より、目的のサーバプログラムに接続してサービスを受
けることが可能になる。
Further, the server program management program 1
Shows the number of the unused port that was acquired by the server program =
The service port number associating means 3 is used to associate with a server program to which a service port number is not assigned. The client program 6 that requests a service from the server program first uses the service port number inquiry means 7 to ask the service port number transmission means 4 of the server program management program 1 for information regarding the service port number of the target server program. Get by combining. Client program 6
By specifying the port number obtained in this way, it becomes possible to connect to the target server program and receive the service.

【0019】サーバプログラムA81,B82,C83…は、
クライアントプログラム6からの要求が有るまでに起動
していてもよいし、あるいはクライアントプログラム6
からの要求が有ってからサーバプログラム管理プログラ
ム1がサーバプログラムを起動してもよい。後者の場合
には、サーバプログラム管理プログラム1がサービスポ
ートをオープンして要求を待ち、要求が有った時点で対
応するサーバプログラムを起動してそのポートをサーバ
プログラムに引き継ぐ。
The server programs A81, B82, C83 ...
It may be activated before the client program 6 makes a request, or the client program 6
The server program management program 1 may activate the server program after the request from the server. In the latter case, the server program management program 1 opens a service port and waits for a request, and when there is a request, starts the corresponding server program and takes over the port to the server program.

【0020】ところで、第2の発明として、サーバプロ
グラム管理プログラム1が未使用ポート番号獲得手段2
を備えているのではなく、各サーバプログラムA81,B
82,C83…がそれぞれ未使用ポート番号獲得手段2を備
える構成も考えられる。
By the way, as a second invention, the server program management program 1 uses the unused port number acquisition means 2
Rather than having each server program A81, B
It is also conceivable that each of 82, C83 ... Has an unused port number acquisition means 2.

【0021】図2はそのような本発明のサーバプログラ
ムのポート番号の割当て方式の第2の発明の一実施例の
構成例を示すブロック図である。図2において、サーバ
プログラム管理プログラム1にはサーバプログラム=サ
ービスポート番号対応付け手段3及びサービスポート番
号伝達手段4のみが備えられており、各サーバプログラ
ムA81,B82,C83…にはそれぞれ未使用ポート番号獲
得手段810, 820, 830 …が備えられている。
FIG. 2 is a block diagram showing a configuration example of an embodiment of the second invention of the port number assigning method of the server program of the present invention. In FIG. 2, the server program management program 1 is provided only with a server program = service port number associating means 3 and a service port number transmitting means 4, and each server program A81, B82, C83 ... Number acquisition means 810, 820, 830 ... Are provided.

【0022】この第2の発明の実施例では、サーバプロ
グラム管理プログラム1は各サーバプログラムA81,B
82,C83…よりも先に起動されているか、あるいは各サ
ーバプログラムA81,B82,C83…がサーバプログラム
管理プログラム1が起動されるのを待ってそれぞれが自
身に備えられている未使用ポート番号獲得手段810, 82
0, 830 …により獲得したサービスポート番号をサーバ
プログラムデータベース5に登録する。
In the second embodiment of the present invention, the server program management program 1 includes the server programs A81 and B.
82, C83 ... Is started before, or each server program A81, B82, C83 ... Waits for the server program management program 1 to be started, and each obtains an unused port number provided for itself. Means 810, 82
The service port number acquired by 0, 830 ... Is registered in the server program database 5.

【0023】この後のクライアントプログラム6がサー
ビスを受けるまでの処理の流れは前述の第1の発明の実
施例と同様である。
The subsequent processing flow until the client program 6 receives a service is the same as that of the above-described first embodiment of the invention.

【0024】[0024]

【発明の効果】以上に詳述したように、本発明によれば
サービスポート番号のサーバプログラムに対する割り当
てを固定的に行うのではなくその時々の未使用ポート番
号を動的に割り当てるように構成しているので、サーバ
プログラムのサービスポートは互いに重複しないように
割り当てられることが保証される。
As described above in detail, according to the present invention, the service port number is not fixedly assigned to the server program, but the unused port number at each time is dynamically assigned. Therefore, it is guaranteed that the service ports of the server programs are assigned so as not to overlap each other.

【0025】また従来の方式ではサーバプログラムが開
発者割り当てポート番号範囲の内から未使用であると考
えられるポートに固定的に割り当てられるように構成さ
れているのに対して、本発明では割り当てられるサービ
スポート番号はシステム割り当てポート番号範囲の内の
未使用のポートに割り当てられるので、従来の手法と本
発明の手法とが混用されてもサービスポート番号が重複
して割り当てられる虞はない。
Further, in the conventional method, the server program is fixedly assigned to a port considered to be unused from the range of port numbers assigned by the developer, whereas in the present invention, it is assigned. Since the service port number is assigned to an unused port within the system-assigned port number range, even if the conventional method and the method of the present invention are mixed, there is no possibility that the service port number will be duplicated.

【0026】このため、新たにサーバプログラムを開発
する場合に、未使用のポート番号を捜すために他のサー
バプログラムが使用しているサービスポート番号を調査
したり、それらの割り当てを調整する必要がない。ま
た、従来の手法では、サーバプログラムの数が増加する
に伴ってサービスポート番号の割り当てが次第に困難に
なるが、本発明によればサーバプログラムの数が増加し
てもそのような虞は生じない。
Therefore, when developing a new server program, it is necessary to investigate the service port numbers used by other server programs in order to search for unused port numbers and adjust their allocation. Absent. Further, in the conventional method, it becomes gradually difficult to assign the service port number as the number of server programs increases, but according to the present invention, such a fear does not occur even if the number of server programs increases. .

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

【図1】本発明に係るサーバプログラムのポート番号の
割当て方式の第1の発明の一実施例の全体構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing an overall configuration of an embodiment of a first invention of a port number assigning method of a server program according to the present invention.

【図2】本発明に係るサーバプログラムのポート番号の
割当て方式の第2の発明の一実施例の全体構成を示すブ
ロック図である。
FIG. 2 is a block diagram showing the overall configuration of an embodiment of the second invention of the port number allocation system of the server program according to the present invention.

【符号の説明】[Explanation of symbols]

1 サーバプログラム管理プログラム 2 未使用ポート番号獲得手段 3 サーバプログラム=サービスポート番号対応付け
手段 4 サービスポート番号伝達手段 5 サーバプログラムデータベース 6 クライアントプログラム 7 サービスポート番号問い合わせ手段 8 サーバプログラム群 81, 82, 83 サーバプログラム 810, 820, 830 未使用ポート番号獲得手段
1 server program management program 2 unused port number acquisition means 3 server program = service port number associating means 4 service port number transmitting means 5 server program database 6 client program 7 service port number inquiry means 8 server program group 81, 82, 83 Server program 810, 820, 830 Unused port number acquisition method

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 サーバプログラム群の各サーバプログラ
ムにサービスポート番号を割り当てることにより、クラ
イアントプログラムに各サーバプログラムのサービスを
受けさせるサーバプログラムのポート番号の割当て方式
において、 前記サーバプログラム群の各サーバプログラムに関し
て、サービスポート番号が割り当てられているか否かの
情報及び割り当てられている場合はそのポート番号に関
する情報が登録されたデータベースと、 オペレーティングシステムにより割り当てることが可能
なシステム割り当てポート番号範囲の内の未使用のポー
ト番号をオペレーティングシステムから獲得する未使用
ポート番号獲得手段と、 該未使用ポート番号獲得手段が獲得したポート番号を、
前記データベースに登録されている情報を参照してサー
ビスポート番号が割り当てられていないサーバプログラ
ムにサービスポート番号として対応付けるサーバプログ
ラム=サービスポート番号対応付け手段と、 該サーバプログラム=サービスポート番号対応付け手段
により対応付けられたサービスポート番号とサーバプロ
グラムとの関係を示す情報をクライアントプログラムに
伝達するサービスポート番号伝達手段とを有するサーバ
プログラム管理プログラムとを備え、 前記クライアントプログラムは、目的のサーバプログラ
ムのサービスポート番号を前記サーバプログラム管理プ
ログラムに問い合わせるためのサービスポート番号問い
合わせ手段を有し、該サービスポート番号問い合わせ手
段による問い合わせの結果前記サービスポート番号伝達
手段から伝達されたサービスポート番号を指定して目的
のサーバプログラムのサービスを受けるべくなしてある
ことを特徴とするサーバプログラムのポート番号の割当
て方式。
1. A server program port number allocation method for allowing a client program to receive services of each server program by allocating a service port number to each server program of the server program group. Information on whether or not a service port number is assigned and, if assigned, information on that port number, and a system-assigned port number range that can be assigned by the operating system. An unused port number acquisition means for acquiring a used port number from the operating system, and a port number acquired by the unused port number acquisition means,
A server program = service port number associating means for associating a server program not assigned a service port number as a service port number with reference to the information registered in the database; and the server program = service port number associating means. And a server program management program having a service port number transmitting means for transmitting information indicating the relationship between the associated service port number and the server program to the client program, wherein the client program is the service port of the target server program. A service port number inquiring means for inquiring a number to the server program management program, and the service port number inquiring means as a result of the inquiry by the service port number inquiring means. Allocation scheme port number of the server program, characterized in that by specifying the service port number transmitted from the number transmission means are no to receive the service object server program.
【請求項2】 サーバプログラム群の各サーバプログラ
ムにサービスポート番号を割り当てることにより、クラ
イアントプログラムに各サーバプログラムのサービスを
受けさせるサーバプログラムのポート番号の割当て方式
において、 前記サーバプログラム群の各サーバプログラムに関し
て、サービスポート番号が割り当てられているか否かの
情報及び割り当てられている場合はそのポート番号に関
する情報が登録されたデータベースと、 該未使用ポート番号獲得手段が獲得したポート番号を、
前記データベースに登録されている情報を参照してサー
ビスポート番号が割り当てられていないサーバプログラ
ムにサービスポート番号として対応付けるサーバプログ
ラム=サービスポート番号対応付け手段と、 該サーバプログラム=サービスポート番号対応付け手段
により対応付けられたサービスポート番号とサーバプロ
グラムとの関係を示す情報をクライアントプログラムに
伝達するサービスポート番号伝達手段とを有するサーバ
プログラム管理プログラムとを備え、 前記各サーバプログラムは、オペレーティングシステム
により割り当てることが可能なシステム割り当てポート
番号範囲の内の未使用のポート番号を自身のサービスポ
ート番号としてオペレーティングシステムから獲得する
と共に前記データベースに登録する未使用ポート番号獲
得手段をそれぞれ有し、 前記クライアントプログラムは、目的のサーバプログラ
ムのサービスポート番号を前記サーバプログラム管理プ
ログラムに問い合わせるためのサービスポート番号問い
合わせ手段を有し、該サービスポート番号問い合わせ手
段による問い合わせの結果前記サービスポート番号伝達
手段から伝達されたサービスポート番号を指定して目的
のサーバプログラムのサービスを受けるべくなしてある
ことを特徴とするサーバプログラムのポート番号の割当
て方式。
2. A server program port number allocation method for allowing a client program to receive services of each server program by allocating a service port number to each server program of the server program group. With respect to, a database in which information on whether or not a service port number is assigned and, if assigned, information on the port number is registered, and a port number obtained by the unused port number obtaining means,
A server program = service port number associating means for associating a server program not assigned a service port number as a service port number with reference to the information registered in the database; and the server program = service port number associating means. A server program management program having a service port number transmitting means for transmitting information indicating the relationship between the associated service port number and the server program to the client program, and each server program can be assigned by an operating system. An unused port number within the range of possible system-assigned port numbers is acquired from the operating system as an own service port number and registered in the database. The client program has a service port number inquiring means for inquiring the server program management program about the service port number of the target server program. As a result, the service port number transmitted from the service port number transmission means is designated to receive the service of the target server program, and the server program port number allocation system is characterized.
JP5113150A 1993-05-14 1993-05-14 Allocating system for port number of server program Pending JPH06324978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5113150A JPH06324978A (en) 1993-05-14 1993-05-14 Allocating system for port number of server program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5113150A JPH06324978A (en) 1993-05-14 1993-05-14 Allocating system for port number of server program

Publications (1)

Publication Number Publication Date
JPH06324978A true JPH06324978A (en) 1994-11-25

Family

ID=14604841

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5113150A Pending JPH06324978A (en) 1993-05-14 1993-05-14 Allocating system for port number of server program

Country Status (1)

Country Link
JP (1) JPH06324978A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004355621A (en) * 2003-05-29 2004-12-16 Marconi Intellectual Property (Ringfence) Inc Update of dynamic port
JP2006527437A (en) * 2003-06-10 2006-11-30 シンビアン ソフトウェア リミテッド A method of discovering a service running on a computing device and connecting a client running on another computing device to the service
JP2007087038A (en) * 2005-09-21 2007-04-05 Nec Corp Communication control system, communication control method and communication control program
JP2011100207A (en) * 2009-11-04 2011-05-19 Nippon Yunishisu Kk Remote access device, program, method and system
JP2015503158A (en) * 2011-11-28 2015-01-29 マイクロソフト コーポレーション Role instance reachability in the data center

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004355621A (en) * 2003-05-29 2004-12-16 Marconi Intellectual Property (Ringfence) Inc Update of dynamic port
JP2006527437A (en) * 2003-06-10 2006-11-30 シンビアン ソフトウェア リミテッド A method of discovering a service running on a computing device and connecting a client running on another computing device to the service
JP2007087038A (en) * 2005-09-21 2007-04-05 Nec Corp Communication control system, communication control method and communication control program
US8126444B2 (en) 2005-09-21 2012-02-28 Nec Corporation Communication system and method for executing application program that specifies no communication parameter
JP2011100207A (en) * 2009-11-04 2011-05-19 Nippon Yunishisu Kk Remote access device, program, method and system
JP2015503158A (en) * 2011-11-28 2015-01-29 マイクロソフト コーポレーション Role instance reachability in the data center

Similar Documents

Publication Publication Date Title
US7065526B2 (en) Scalable database management system
CN109254831B (en) Virtual machine network security management method based on cloud management platform
US6697836B1 (en) Method and apparatus for controlling server
US5864669A (en) Method and system for accessing a particular instantiation of a server process
US7328264B2 (en) System and method for fractional resource scheduling for video teleconferencing resources
US20160308960A1 (en) Connection management system, and a method for linking connection management server in thin client system
US20080256248A1 (en) Single server access in a multiple tcp/ip instance environment
US6145126A (en) Apparatus and method for installing software and recording medium storing program for realizing the method
CN1595363A (en) Interprocess communication in operating system partition
US6058425A (en) Single server access in a multiple TCP/IP instance environment
US7590618B2 (en) System and method for providing location profile data for network nodes
JPH096661A (en) Device and method for managing system resource
CN111327668A (en) Network management method, device, equipment and storage medium
US9565276B2 (en) Transparent redirection of clients to a surrogate payload server through the use of a proxy location server
JPH06324978A (en) Allocating system for port number of server program
US20080281969A1 (en) Controlling access to versions of application software by a server, based on site ID
CN108667750B (en) Virtual resource management method and device
CN115333863B (en) Internet of things system building method based on dynamic domain name service and related equipment
CN111683164A (en) IP address configuration method and VPN service system
CN113691575A (en) Communication method, device and system
JPH04177441A (en) System program loading system
JPH1013443A (en) Network system and network management method
CN112235158B (en) Flow mirroring method and device, virtual machine platform and storage medium
JPH0528065A (en) Information processing system
JPH05274239A (en) Network resource selecting system