JP2011186571A - Server and client system - Google Patents

Server and client system Download PDF

Info

Publication number
JP2011186571A
JP2011186571A JP2010048570A JP2010048570A JP2011186571A JP 2011186571 A JP2011186571 A JP 2011186571A JP 2010048570 A JP2010048570 A JP 2010048570A JP 2010048570 A JP2010048570 A JP 2010048570A JP 2011186571 A JP2011186571 A JP 2011186571A
Authority
JP
Japan
Prior art keywords
osgi
client
server
port number
message
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
JP2010048570A
Other languages
Japanese (ja)
Inventor
Mikio Kataoka
幹雄 片岡
Hidenori Inai
秀則 井内
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2010048570A priority Critical patent/JP2011186571A/en
Publication of JP2011186571A publication Critical patent/JP2011186571A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To prevent an attack from a malicious user due to a fixed listen port by dynamically registering an address of an OSGi (Open Services Gateway Initiative) client in an OSGi server and dynamically changing a listen port number of the OSGi client, in a service provision system in OSGi. <P>SOLUTION: In the service provision system, the OSGi client dynamically determines a listen port when an OSGi client is started, and notifies the OSGi server from the OSGi client about a port number and an IP address of the OSGi client. When receiving an address registration message from the OSGi client, the OSGi server determines validity of the listen port number added to the address registration message, and transmits an instruction message to change the listen port to the OSGi client as the need arises. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、ホームゲートウェイ装置におけるサービス提供システムに関する。   The present invention relates to a service providing system in a home gateway device.

現在、家庭内のネットワーク(ホームネットワーク)と外部ネットワーク(一般的にはインターネット)を接続するゲートウェイ機器としてホームゲートウェイが利用されている。   Currently, a home gateway is used as a gateway device for connecting a home network (home network) and an external network (generally the Internet).

現状、ホームゲートウェイにて提供されている機能は、家庭内LANのルータとなり家庭内の情報家電間の通信の仲介や、家庭内の情報家電へのADSLやFTTHなどの広帯域回線を利用したインターネット接続の提供、外部ネットワークからの不正なアクセスを遮断するファイアウォール機能及び、SIPを用いたVoIP(Voice Over IP)によるIP電話程度である。
しかしホームゲートウェイには、ホームネットワークと外部ネットワークの境界に位置し、家庭内で常時起動し、ホームネットワーク内の情報家電が全て接続するといった特徴があり、今後家庭内の情報家電をまとめるホームサーバとしての役割が期待される。例えばホームネットワークに接続された機器の動的検出や自動設定、外部ネットワークからの家庭内の情報家電への動的なアクセス制御、ホームネットワーク上の複数の機器とアプリケーションを組合わせた総合的なサービスの提供といったことが考えられる。
Currently, the functions provided by home gateways are home LAN routers that mediate communication between information appliances in the home, and connect to the Internet using broadband lines such as ADSL and FTTH to home information appliances. IP phone with VoIP (Voice Over IP) using SIP and firewall function to block unauthorized access from external network.
However, the home gateway is located at the boundary between the home network and the external network, has a feature that it always starts in the home and all the information home appliances in the home network are connected, and as a home server to collect home information home appliances in the future The role of is expected. For example, dynamic detection and automatic setting of devices connected to the home network, dynamic access control to home information appliances from the external network, and comprehensive services combining multiple devices and applications on the home network It is possible to provide

以上の観点から、ホームゲートウェイの家庭内での重要性は今後より高まると考えられ、ユーザへの新規機能やサービスを随時提供していくことを考えると、これら新規機能やサービスを動的に提供できることが必須となる。   From the above viewpoint, the importance of home gateways in the home is expected to increase further in the future, and considering the provision of new functions and services to users as needed, these new functions and services are dynamically provided. What you can do is essential.

ホームゲートウェイでの統合的なサービス提供に関する標準化としては、特にネットワークサービスのためのJAVAベースのコンピュータ環境の標準化を進めるOSGi(Open Services Gateway Initiative)が挙げらる。OSGiは、プラットフォームであるフレームワークとその上でサービスとして動作するバンドルで構成されたJava言語に基づくサービスプラットフォームであり、OSGi Alliance によって標準化されている。
OSGiフレームワークは、機器の動作を止めることなく新しいサービスやデータの追加、及びサービスの機能変更を可能とするミドルウェアである。センタに配置されたセンタサーバよりホームゲートウェイなどの宅内機器にバンドルと呼ばれるモジュール単位での遠隔インストール(PUSH)が可能である。また宅内機器からセンタサーバ側からバンドルを取得しインストール(PULL)することも可能である。
Standardization for integrated service provision at home gateways includes the OSGi (Open Services Gateway Initiative) that promotes standardization of JAVA-based computer environments for network services. OSGi is a service platform based on the Java language that consists of a framework that is a platform and bundles that operate as services on the framework, and is standardized by the OSGi Alliance.
The OSGi framework is middleware that allows new services and data to be added and service functions to be changed without stopping the operation of the device. Remote installation (PUSH) in units of modules called bundles can be performed on home devices such as a home gateway from a center server arranged in the center. It is also possible to acquire and install (PULL) a bundle from the home server from the center server side.

各バンドルは、バンドル内に実装されたオブジェクトをOSGiのフレームワーク上に公開することで、他のバンドルとの情報の交換が可能である。   Each bundle can exchange information with other bundles by publishing the objects implemented in the bundle on the OSGi framework.

OSGiを利用することで、ホームゲートウェイにおける動的なサービスの追加/削除が可能となり、ユーザへの様々なサービスが提供可能となると期待される。OSGiサーバ、OSGiクライアント間で連携するためには、それぞれが相手のアドレス(IPアドレス、およびポート番号)を知っておく、つまりOSGiサーバにOSGiクライアントのアドレスを事前に登録しておく必要がある。しかしながら将来、数万、数十万といった多数のOSGiクライアント(ホームゲートゲートウェイ)を管理する場合に、それぞれのOSGiクライアントのアドレスを個別に管理することは、非常に困難であるという課題がある。
また、OSGiクライアントのポート番号に関しては、全て固定しておくことでポート番号をOSGiクライアント単位で管理しなくてよくなるが、この場合悪意のあるユーザに一旦そのポート番号が知られてしまうと、セキュリティリスクが大きくなってしまうという課題がある。
IPアドレスに関しては、既存のDHCP(Dynamic Host Configuration Protocol)サーバと連携するとこで、各OSGiクライアント(ホームゲートウェイ)に配布したIPアドレスをOSGiサーバが得ることが可能であるが、そのためには既存のDHCPサーバに新たにそのためのインタフェースを設けることが必須となる。新たなインタフェースの作成するためには別途コストが発生してしまう。また、正常動作している既存のシステムに手を入れることは既存システムに不具合を発生させる原因となる可能性もある。そのため新規システムを実現する際に、既存システムへ影響を与えないことがようにしなければならないという課題がある。
By using OSGi, it is possible to dynamically add / delete services in the home gateway, and to provide various services to users. In order to link between the OSGi server and the OSGi client, each needs to know the address (IP address and port number) of the other party, that is, it is necessary to register the address of the OSGi client in the OSGi server in advance. However, when managing a large number of tens of thousands or hundreds of thousands of OSGi clients (home gate gateways) in the future, there is a problem that it is very difficult to manage the addresses of each OSGi client individually.
In addition, with regard to the OSGi client port numbers, it is not necessary to manage the port numbers for each OSGi client by fixing all of them, but in this case, once the malicious user knows the port number, There is a problem that risk increases.
With regard to IP addresses, the OSGi server can obtain the IP address distributed to each OSGi client (home gateway) by cooperating with an existing DHCP (Dynamic Host Configuration Protocol) server. It is essential to provide a new interface for the DHCP server. In order to create a new interface, additional costs are incurred. Also, taking care of an existing system that is operating normally may cause problems in the existing system. Therefore, when a new system is realized, there is a problem that it is necessary not to affect the existing system.

本発明では、OSGiクライアントに起動時に自身の待受けポートを決定する手段を設け、OSGiクライアントから、OSGiサーバににOSGiサーバと通信するための自身のIPアドレス及び、待受けポート番号を通知する手段を設ける。OSGiサーバにOSGiクライアントから受信したIPアドレス、および待受けポート番号を記憶する手段を設ける、さらにOSGiクライアントから受信した待受けポート番号に問題がある場合は、OSGiクライアントに対して待受けポート番号を指定する手段を設ける。   In the present invention, the OSGi client is provided with means for determining its own standby port at startup, and the OSGi client is provided with means for notifying the OSGi server of its own IP address and standby port number for communicating with the OSGi server. . Provide the OSGi server with a means to store the IP address and standby port number received from the OSGi client, and if there is a problem with the standby port number received from the OSGi client, specify the standby port number for the OSGi client Is provided.

本発明によると、OSGiクライアントからOSGiサーバに動的にOSGiクライアントのIPアドレス、及びポート番号を通知することで、OSGiクライアントの数が数万、数十万のいった多数となっても、OSGiサーバでOSGiクライアントのアドレスを容易に登録、管理することが可能となる。   According to the present invention, the OSGi client dynamically notifies the OSGi server of the IP address and port number of the OSGi client, so that the number of OSGi clients can be as large as tens of thousands or hundreds of thousands. The server can easily register and manage the OSGi client address.

また、OSGiクライアントおよびOSGiサーバ間で動的にOSGiクライアントの待受けポート番号を決定することが可能となり、悪意のあるユーザからのOSGiクライアントへの不正アクセスを低減することが可能となる。   Further, it is possible to dynamically determine the standby port number of the OSGi client between the OSGi client and the OSGi server, and it is possible to reduce unauthorized access to the OSGi client from a malicious user.

システム構成図System Configuration OSGiサーバの動作フロー図OSGi server operation flow chart OSGiサーバのOSGiクライアント情報DBの構成図OSGi server OSGi client information DB configuration diagram OSGiクライアントの起動時の動作フロー図OSGi client startup flowchart OSGiクライアントがOSGiサーバからメッセージを受信した際の動作フロー図Operation flow diagram when the OSGi client receives a message from the OSGi server OSGiサーバが待受けポート番号を指定した場合の動作シーケンス図Operation sequence diagram when the OSGi server specifies the standby port number OSGiサーバが待受けポート番号を指定しない場合の動作シーケンス図Operation sequence diagram when the OSGi server does not specify a standby port number

以下、本発明の実施形態について図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the drawings.

本実施例における第1の実施形態について説明する。本実施形態では、OSGiクライアント起動開始時の、OSGiサーバへのアドレス登録動作に関して説明する。   A first embodiment in this example will be described. In the present embodiment, an address registration operation to the OSGi server at the start of OSGi client activation will be described.

本実施例におけるシステムの構成を図1に示す。CPE10は通信事業者の加入者宅に設置される通信機器であり、ホームゲートウェイ等が該当する。CPE10には、Java VM(Java Virtual Machine)、およびOSGi Frameworkが実装され、OSGi Framework上でOSGiサーバと通信するためのClient Agentが実装される。   The configuration of the system in this embodiment is shown in FIG. The CPE 10 is a communication device installed in a subscriber house of a communication carrier, and corresponds to a home gateway or the like. The CPE 10 is implemented with a Java VM (Java Virtual Machine) and OSGi Framework, and a Client Agent for communicating with the OSGi server on the OSGi Framework.

Client Agentは、回線事業者NW12を介してOSGiサーバ11を介して接続され、OSGiクライアントからOSGiサーバへのアドレスの登録メッセージの送信、OSGiサーバからClient Agentに対してOSGiクライアントの制御、OSGiクライアントへのサービスのイントール等が実行される。OSGiクライアントにはOSGiサーバのアドレスが予め設定されている。またOSGiサーバと暗号化通信をするための証明書を保存していても良い。OSGiサーバには、各OSGiクライアントのクライアントID、IPアドレス、ポート番号を記憶するためのOSGiクライアント情報データベースを持つ。OSGiクライアント情報データベースには、予め各OSGiクライアントのIDが登録されている。   The Client Agent is connected to the OSGi server 11 via the network operator NW12, sends an address registration message from the OSGi client to the OSGi server, controls the OSGi client from the OSGi server to the Client Agent, and sends to the OSGi client Installation of the service is executed. An OSGi server address is preset in the OSGi client. A certificate for encrypted communication with the OSGi server may be stored. The OSGi server has an OSGi client information database for storing the client ID, IP address, and port number of each OSGi client. Each OSGi client ID is registered in advance in the OSGi client information database.

図2にOSGiサーバが、OSGiクライアントからアドレス登録メッセージを受信した際の処理のフローを説明する。OSGiサーバからOSGiクライアントからアドレス登録メッセージを受信した(2001)OSGiサーバは、アドレス登録メッセージ内に含まれるクライアントIDと、OSGiサーバ内に記憶されるOSGiクライアント情報データベースを参照し、当該アドレス登録メッセージを送信したOSGiクライアントが正当なものであるか否かを確認する(2002)。ここで、OSGiクライアントから送信されるアドレス登録メッセージは既存の暗号化方式等を利用して暗号化されたメッセージであっても良い。   FIG. 2 illustrates a processing flow when the OSGi server receives an address registration message from the OSGi client. The OSGi server receives the address registration message from the OSGi server from the OSGi server (2001). The OSGi server refers to the client ID included in the address registration message and the OSGi client information database stored in the OSGi server. It is confirmed whether or not the transmitted OSGi client is valid (2002). Here, the address registration message transmitted from the OSGi client may be a message encrypted using an existing encryption method or the like.

クライアントIDの確認の結果、前記アドレス登録メッセージに付与されたクライアントIDが、OSGiクライアント情報データベースに含まれていない場合、当該アドレス登録メッセージを破棄し、終了する。   If the client ID given to the address registration message is not included in the OSGi client information database as a result of confirmation of the client ID, the address registration message is discarded and the process ends.

クライアントIDの確認の結果、前記アドレス登録メッセージに付与されたクライアントIDが、OSGiクライアント情報データベースに含まれている場合は、前記アドレス登録メッセージに付与されたOSGiクライアントのIPアドレスおよびOSGiクライアントの待受けポート番号を取得する(2003)。前記取得したOSGiクライアントの待受けポートの番号が妥当であるか否かを確認する(2004)。ここでOSGiクライアントの待受けポート番号が妥当であるか否かは、事前に設定された使用不可ポートに含まれるもしくは、他OSGiクライアントが使用しているポート番号、過去に不正なアドレス登録メッセージと判断したメッセージ内にて付与されたポート番号等を元に判断される。   If the client ID given to the address registration message is included in the OSGi client information database as a result of the client ID confirmation, the IP address of the OSGi client and the standby port of the OSGi client given to the address registration message A number is acquired (2003). It is checked whether or not the acquired OSGi client standby port number is valid (2004). Here, whether the standby port number of the OSGi client is valid is included in the pre-set unusable ports, or is determined as a port number used by another OSGi client or an invalid address registration message in the past Judgment is made based on the port number assigned in the message.

ポート番号確認(2004)の結果、OSGiクライアントの待受けポートが妥当なものである場合は、前記アドレス登録メッセージから取得したOSGiクライアントのIPアドレス及びポート番号を、OSGiクライアント情報データベースの当該OSGiクライアントのクライアントIDで識別されるエントリ内に登録する(2005)。OSGiクライアント情報データベースへのIPアドレス、ポート番号の登録が完了した後、OSGiサーバはOSGiクライアントに対して、通常モード移行指示メッセージを作成し(2006)、OSGiクライアントに対して前記作成した通常モード移行指示メッセージを送信する(2007)。   If the OSGi client standby port is valid as a result of the port number confirmation (2004), the OSGi client IP address and port number obtained from the address registration message are used as the OSGi client information database client. Registration is made in the entry identified by the ID (2005). After completing the registration of the IP address and port number in the OSGi client information database, the OSGi server creates a normal mode transition instruction message for the OSGi client (2006), and the created normal mode transition for the OSGi client. An instruction message is transmitted (2007).

ポート番号確認(2004)の結果、OSGiクライアントの待受けポートが妥当なものでない場合は、OSGiサーバ側にてOSGiクライアントの待受けポート番号を決定し(2008)、
前記アドレス登録メッセージを送信したOSGiクライアントに対して、前記決定したポート番号にて起動しるよう指示するメッセージを送信する(2009)。ここで、OSGiサーバにて決定する待受けポート番号は、事前に設定された使用不可ポートに含まれるもしくは、他OSGiクライアントが使用しているポート番号、過去に不正なアドレス登録メッセージと判断したメッセージ内にて付与されたポート番号等を元に決定される。
As a result of the port number confirmation (2004), if the OSGi client standby port is not valid, the OSGi client side determines the OSGi client standby port number (2008),
A message is sent to the OSGi client that has transmitted the address registration message to instruct to start with the determined port number (2009). Here, the standby port number determined by the OSGi server is included in the pre-set unusable ports, or the port numbers used by other OSGi clients, in messages that have been determined to be invalid address registration messages in the past It is determined based on the port number assigned at.

図3はOSGiサーバが保持するOSGiクライアント情報DB31の構成例である。OSGiクライアント情報DB31は、各OSGiクライアントにつき1つのOSGiクライアント情報DB・エントリ32から構成される。OSGiクライアント情報DB・エントリ32はさらに、各OSGiクライアントを識別するためのクライアントIDを格納するためのクライアントIDフィールド33、OSGiクライアントがOSGiサーバと通信するためのIPアドレスを格納するためのIPアドレスフィールド34およびOSGiクライアントがOSGiサーバと通信する際の待受けポート番号を格納するための、待受けポート番号フィールド35から構成される。   FIG. 3 shows a configuration example of the OSGi client information DB 31 held by the OSGi server. The OSGi client information DB 31 includes one OSGi client information DB entry 32 for each OSGi client. The OSGi client information DB entry 32 further includes a client ID field 33 for storing a client ID for identifying each OSGi client, and an IP address field for storing an IP address for the OSGi client to communicate with the OSGi server. 34 and a standby port number field 35 for storing a standby port number when the OSGi client communicates with the OSGi server.

ここでクライアントIDフィールド33に格納されるクライアントIDは、OSGiクライアントに別途付与されたIDであっても良いし、OSGiクライアントが起動するCPEに付与されたCPEを識別するためのIDを利用するのでも良い。   Here, the client ID stored in the client ID field 33 may be an ID separately assigned to the OSGi client, or an ID for identifying the CPE assigned to the CPE activated by the OSGi client is used. But it ’s okay.

図4にOSGiクライアントが起動した際の処理のフローを説明する。CPE起動後、OSGiクライアントが起動し、OSGiサーバとの通信のやり取りをするClient Agentが起動する(4001)。次にOSGiクライアントにて保持している起動待機状態フラグをクリアする(4002)。その後、予めOSGiクライアントに設定されたOSGiサーバのアドレスを取得する(4003)。次にOSGiクライアントがOSGiサーバと通信するためのOSGiクライアントのIPアドレスを取得する(4004)。次にOSGiクライアントがOSGiサーバと通信するための待受けポートを決定する(4005)。前記待受けポート番号の決定方法は、OSGiサーバからメッセージ受信により待受けポートを指定されていた場合は、前記OSGiサーバから指定されたポート番号を利用し、指定されていない場合は、Client Agentがランダムに決定する。   FIG. 4 illustrates a processing flow when the OSGi client is activated. After the CPE is activated, the OSGi client is activated, and the Client Agent that exchanges communication with the OSGi server is activated (4001). Next, the activation standby state flag held in the OSGi client is cleared (4002). Thereafter, the address of the OSGi server preset in the OSGi client is acquired (4003). Next, the OSGi client acquires the IP address of the OSGi client for communicating with the OSGi server (4004). Next, the standby port for the OSGi client to communicate with the OSGi server is determined (4005). The standby port number is determined by using the port number specified by the OSGi server if the standby port is specified by receiving a message from the OSGi server, and if not specified, the Client Agent is randomly selected. decide.

それから、前記OSGiクライアントのIPアドレスと、前記決定した待受け番号に加えOSGiクライアントを識別するために予め設定されたOSGiクライアントのIDを付与して、アドレス登録メッセージを作成する(4006)。そして、前記作成したアドレス登録メッセージを前記取得したOSGiサーバに対して送信する(4007)。最後にOSGiクライアントに保持されている起動待機状態フラグを設定し(4008)、OSGiサーバからのメッセージを待つ。   Then, an IP address of the OSGi client and an ID of the OSGi client set in advance to identify the OSGi client in addition to the determined standby number are given, and an address registration message is created (4006). Then, the created address registration message is transmitted to the acquired OSGi server (4007). Finally, an activation standby state flag held in the OSGi client is set (4008), and a message from the OSGi server is awaited.

図5に、OSGiクライアントが起動待機状態フラグ設定後に、OSGiサーバからメッセージを受信した際の処理のフローを説明する。   FIG. 5 illustrates a processing flow when the OSGi client receives a message from the OSGi server after the activation standby state flag is set.

まずOSGiサーバからのメッセージを受信(5001)したOSGiクライアントは、前記受信したメッセージが待受けポート番号指示メッセージであるか否かを判断する(5002)。
前記受信したメッセージが待受けポート番号指示メッセージであった場合は、OSGiクライアント起動時の待受けポート番号を前記メッセージ内に記載されたポート番号に設定し(5003)、Client Agentの再起動を行う(5004)。
First, the OSGi client that has received the message from the OSGi server (5001) determines whether or not the received message is a standby port number instruction message (5002).
If the received message is a standby port number instruction message, the standby port number when starting the OSGi client is set to the port number described in the message (5003), and the Client Agent is restarted (5004). ).

前記受信したメッセージが待受けポート番号指示メッセージで無かった場合は、次に前記受信したメッセージが起動指示メッセージであるか否かを判断する(5005)。前記受信したメッセージが起動指示メッセージでない場合は、前記受信したメッセージを破棄して終了する。前記受信したメッセージが起動指示メッセージであった場合は、OSGiクライアントは通常モードに移行し、以後OSGiサーバからメッセージ従って、OSGiクライアントの情報の返信、OSGiサーバから指定されたサービスのインストール等を実施する。   If the received message is not a standby port number instruction message, it is next determined whether or not the received message is an activation instruction message (5005). If the received message is not an activation instruction message, the received message is discarded and the process ends. If the received message is a startup instruction message, the OSGi client shifts to the normal mode, and then returns the OSGi client information, installs the specified service from the OSGi server, etc., according to the message from the OSGi server. .

図6に、OSGiサーバがOSGiクライアントの待受けポートを指定する場合のシーケンス図を示す。まずCPEが起動すると、OSGi Client Agentから、クライアントID、IPアドレス、待受けポート番号が付与されたメッセージがOSGiサーバに送信される(601)。前記メッセージを受取ったOSGiサーバは、前記メッセージに付与されたポート番号を取得し、妥当ではないと判断し、OSGi Client Agentに対してポート番号設定指示メッセージを送信する(602)。OSGiサーバからのポート番号設定指示メッセージを受信したOSGi Client Agentは、待受けポートを前記受信したポート番号設定指示メッセージ内に含まれるポート番号で、起動するよう設定した後、再起動する。そして再起動後に再度OSGiサーバにクライアントID、IPアドレス、待受けポート番号が付与されたメッセージが送信される(603)。OSGi Client Agentからメッセージを受信したOSGiサーバは、前記メッセージに付与された、IPアドレス、待受けポート番号をOSGiサーバに保持されているOSGiクライアント情報データベースに格納するとともに、OSGi Client Agentに対して通常モード移行指示メッセージを送信する(604)。   FIG. 6 shows a sequence diagram when the OSGi server designates the standby port of the OSGi client. First, when the CPE is activated, a message with a client ID, an IP address, and a standby port number is transmitted from the OSGi Client Agent to the OSGi server (601). The OSGi server that has received the message acquires the port number assigned to the message, determines that the message is not valid, and transmits a port number setting instruction message to the OSGi Client Agent (602). The OSGi Client Agent that has received the port number setting instruction message from the OSGi server sets the standby port to start with the port number included in the received port number setting instruction message, and then restarts. After the restart, a message with the client ID, IP address, and standby port number is sent to the OSGi server again (603). The OSGi server that has received the message from the OSGi Client Agent stores the IP address and standby port number assigned to the message in the OSGi client information database held in the OSGi server, and in the normal mode for the OSGi Client Agent. A migration instruction message is transmitted (604).

図7に、、OSGiサーバがOSGiクライアントの受けポートを指定しない場合のシーケンス図を示す。まずCPEが起動すると、OSGi Client Agentから、クライアントID、IPアドレス、待受けポート番号が付与されたメッセージがOSGiサーバに送信される(701)。前記メッセージを受取ったOSGiサーバは、前記メッセージに付与されたポート番号を取得し、妥当であると判断し、前記メッセージに付与された、IPアドレス、待受けポート番号をOSGiサーバに保持されているOSGiクライアント情報データベースに格納するとともに、OSGi Client Agentに対して通常モード移行指示メッセージを送信する(702)。
以上本実施例により、OSGiクライアントからOSGiサーバに動的にOSGiクライアントのIPアドレス、及びポート番号を通知することで、OSGiクライアントの数が数万、数十万のいった多数となっても、OSGiサーバでOSGiクライアントのアドレスを容易に登録、管理することが可能となる。また、OSGiクライアントおよびOSGiサーバ間で動的にOSGiクライアントの待受けポート番号を決定することが可能となり、悪意のあるユーザからのOSGiクライアントへの不正アクセスを低減することが可能となる。
FIG. 7 shows a sequence diagram when the OSGi server does not specify the receiving port of the OSGi client. First, when the CPE is activated, a message with a client ID, an IP address, and a standby port number is transmitted from the OSGi Client Agent to the OSGi server (701). The OSGi server that has received the message obtains the port number given to the message, determines that it is valid, and the OSGi server holds the IP address and standby port number given to the message. While being stored in the client information database, a normal mode shift instruction message is transmitted to the OSGi Client Agent (702).
As described above, according to this embodiment, the OSGi client dynamically notifies the OSGi server of the IP address and port number of the OSGi client, so that the number of OSGi clients can be as many as tens of thousands and hundreds of thousands. It is possible to easily register and manage OSGi client addresses on the OSGi server. Further, it is possible to dynamically determine the standby port number of the OSGi client between the OSGi client and the OSGi server, and it is possible to reduce unauthorized access to the OSGi client from a malicious user.

また、本実施例の変形例としては、OSGiサーバでのポート確認をすることなくOSGiクライアントから送られたポート番号をそのままOSGiサーバが保持するOSGiクライアント情報データベースに登録することが考えれる。これは、OSGiクライアントとOSGiサーバとの間のネットワークがセキュリティが保たれており、悪意のあるユーザからのメッセージ送信等が出来ないばあいに有効であり。本変形例の場合OSGiサーバ側での処理量が減少し、OSGiクライアントへの応答速度の向上、処理量の低下により1台のOSGiサーバで処理できるOSGiクライアントの数が向上するといったことが期待される。   Further, as a modification of the present embodiment, it is conceivable that the port number sent from the OSGi client is directly registered in the OSGi client information database held by the OSGi server without confirming the port on the OSGi server. This is effective when the network between the OSGi client and the OSGi server is secure and cannot send messages from malicious users. In the case of this modification, it is expected that the processing amount on the OSGi server side will decrease, the response speed to OSGi clients will improve, and the number of OSGi clients that can be processed by one OSGi server will improve due to the decrease in processing amount. The

10 CPE(Customer Premises Equipment)
11 OSGiサーバ
12 回線事業者NW
31 OSGiクライアント情報DB
32 OSGiクライアント情報DB・エントリ
33 クライアントIDフィールド
34 IPアドレスフィールド
35 ポート番号フィールド
10 CPE (Customer Premises Equipment)
11 OSGi server 12 Network operator NW
31 OSGi client information DB
32 OSGi client information DB / entry 33 Client ID field 34 IP address field 35 Port number field

Claims (5)

OSGiサーバ、OSGiクライアントからなるサービス提供システムであって、
OSGiクライアントが起動時にOSGiクライアントと通信するためのIPアドレス、ポート番号、及び該OSGiクライアントを識別するための識別子を通知し、
OSGiサーバが前記メッセージを受信し前記受信したポート番号が妥当であるか否かを判断し、妥当でない場合はOSGiクライアントに対して待受けポート番号を指定するメッセージを送信し、妥当な場合は前記受信したIPアドレス、ポート番号を前記メッセージに付与されたOSGiクライアントを識別するための識別子にて指定されるデータベースエントリに記憶することを特徴とするサービス提供システム。
A service providing system consisting of an OSGi server and an OSGi client,
An OSGi client notifies an IP address, a port number, and an identifier for identifying the OSGi client for communicating with the OSGi client at startup,
The OSGi server receives the message and determines whether or not the received port number is valid. If it is not valid, the OSGi server sends a message specifying the standby port number to the OSGi client. The service providing system, wherein the IP address and the port number are stored in a database entry specified by an identifier for identifying the OSGi client assigned to the message.
OSGiサーバであって、OSGiクライアントからOSGiクライアントと通信するためのIPアドレス、ポート番号、及び該OSGiクライアントを識別するための識別子を付与されたメッセージを受信した場合に、前記メッセージ付与されたIPアドレス、ポート番号を前記メッセージに付与されたOSGiクライアントを識別するための識別子にて指定されるデータベースエントリに記憶することを特徴とするOSGiサーバ。   When an OSGi server receives a message to which an OSGi client communicates with an OSGi client, an IP address, a port number, and an identifier for identifying the OSGi client are received, the IP address assigned to the message An OSGi server, wherein a port number is stored in a database entry specified by an identifier for identifying an OSGi client assigned to the message. 請求項2記載のOSGiサーバであって、OSGiクライアントから待受けポート番号通知メッセージを受信した際に、前記受信したポート番号が妥当であるか否かを判断し、妥当でない場合はOSGiクライアントに対して待受けポート番号を指定するメッセージを送信し、妥当な場合は前記受信したIPアドレス、ポート番号を前記メッセージに付与されたOSGiクライアントを識別するための識別子にて指定されるデータベースエントリに記憶するすことを特徴とするOSGiサーバ。   3. The OSGi server according to claim 2, wherein when the standby port number notification message is received from the OSGi client, it is determined whether or not the received port number is valid. A message designating a standby port number is transmitted, and when received, the received IP address and port number are stored in a database entry designated by an identifier for identifying an OSGi client attached to the message. OSGi server characterized by OSGiクライアントであって、OSGiクライアントが起動時にOSGiサーバがOSGiクライアントと通信するためのIPアドレス、ポート番号、及び該OSGiクライアントを識別するための識別子を付与したメッセージをOSGiサーバに送信することを特徴とするOSGiクライアント   An OSGi client, and when the OSGi client starts up, the OSGi server transmits a message with an IP address, a port number for communication with the OSGi client, and an identifier for identifying the OSGi client to the OSGi server. OSGi client 請求項4記載のOSGiクライアントであって、OSGiクライアントが起動時にOSGiサーバがOSGiクライアントと通信するためのIPアドレス、ポート番号、及び該OSGiクライアントを識別するための識別子を付与したメッセージをOSGiサーバに送信した後、OSGiサーバから待受けポート番号変更指示があった場合は、前記指示された待受けポート番号にて再起動し、再度OSGiサーバにOSGiサーバがOSGiクライアントと通信するためのIPアドレス、ポート番号、及び該OSGiクライアントを識別するための識別子を付与したメッセージをOSGiサーバに送信することを特徴とするOSGiクライアント。   5. The OSGi client according to claim 4, wherein when the OSGi client is activated, an OSGi server sends a message with an IP address, a port number, and an identifier for identifying the OSGi client to communicate with the OSGi client. After the transmission, if there is an instruction to change the standby port number from the OSGi server, restart with the specified standby port number, and the IP address and port number for the OSGi server to communicate with the OSGi client again on the OSGi server And an OSGi client, wherein a message with an identifier for identifying the OSGi client is transmitted to the OSGi server.
JP2010048570A 2010-03-05 2010-03-05 Server and client system Pending JP2011186571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010048570A JP2011186571A (en) 2010-03-05 2010-03-05 Server and client system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010048570A JP2011186571A (en) 2010-03-05 2010-03-05 Server and client system

Publications (1)

Publication Number Publication Date
JP2011186571A true JP2011186571A (en) 2011-09-22

Family

ID=44792785

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010048570A Pending JP2011186571A (en) 2010-03-05 2010-03-05 Server and client system

Country Status (1)

Country Link
JP (1) JP2011186571A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2988952A1 (en) * 2012-03-30 2013-10-04 France Telecom Method for connection between e.g. equipments, for communication over client/server using transmission control protocol, involves validating and transmitting message for change of port from one equipment to another equipment
CN108011877A (en) * 2017-11-29 2018-05-08 北京锐安科技有限公司 IP address acquisition methods and device based on OSGI
CN114363394A (en) * 2021-12-23 2022-04-15 杭州当虹科技股份有限公司 Edge equipment discovery method based on BUSYBOX

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005311829A (en) * 2004-04-23 2005-11-04 Matsushita Electric Ind Co Ltd Communication path setting method, gateway device and communication system
JP2005309974A (en) * 2004-04-23 2005-11-04 Nippon Telegr & Teleph Corp <Ntt> Network system, authentication method using network system, authentication program, and recording medium
JP2006127399A (en) * 2004-11-01 2006-05-18 Mitsubishi Electric Corp Application platform provision system, method, and program for it
JP2007312148A (en) * 2006-05-19 2007-11-29 Hitachi Ltd Home gateway apparatus
JP2009500898A (en) * 2005-07-04 2009-01-08 エスケーテレコム株式会社 Residential gateway system for home network service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005311829A (en) * 2004-04-23 2005-11-04 Matsushita Electric Ind Co Ltd Communication path setting method, gateway device and communication system
JP2005309974A (en) * 2004-04-23 2005-11-04 Nippon Telegr & Teleph Corp <Ntt> Network system, authentication method using network system, authentication program, and recording medium
JP2006127399A (en) * 2004-11-01 2006-05-18 Mitsubishi Electric Corp Application platform provision system, method, and program for it
JP2009500898A (en) * 2005-07-04 2009-01-08 エスケーテレコム株式会社 Residential gateway system for home network service
JP2007312148A (en) * 2006-05-19 2007-11-29 Hitachi Ltd Home gateway apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2988952A1 (en) * 2012-03-30 2013-10-04 France Telecom Method for connection between e.g. equipments, for communication over client/server using transmission control protocol, involves validating and transmitting message for change of port from one equipment to another equipment
CN108011877A (en) * 2017-11-29 2018-05-08 北京锐安科技有限公司 IP address acquisition methods and device based on OSGI
CN108011877B (en) * 2017-11-29 2021-03-12 北京锐安科技有限公司 IP address obtaining method and device based on OSGI, computer equipment and storage medium
CN114363394A (en) * 2021-12-23 2022-04-15 杭州当虹科技股份有限公司 Edge equipment discovery method based on BUSYBOX

Similar Documents

Publication Publication Date Title
US8125915B2 (en) Remote management of a bridge device
US8280989B2 (en) Method, system and apparatus for provisioning a communication client
CN105991796B (en) A kind of method and system of the configuration service of the user terminal in on-premise network
JP5871916B2 (en) Method, telecommunications network, and program for efficient management and / or configuration of connections between telecommunications networks and customer premises equipment
US9237153B2 (en) Method for automatically configuration at least one endpoint
WO2012158313A1 (en) Method and apparatus for message distribution in a device management system
TW201141126A (en) Apparatus and methods for managing network resources
EP1719311A1 (en) Automatic provisioning of phones in packet voice networks
WO2009114743A2 (en) Method &amp; system for configuring a network communications device
EP3382988B1 (en) Method for self-provisioning of cable modems and multimedia terminal adapters
CN108028835B (en) Automatic configuration server and server execution method
JP4873960B2 (en) Method for facilitating application server functions and access nodes including application server functions
EP3044911B1 (en) Method and apparatus for communicating with an access node
JP5898189B2 (en) Telecommunications network, method and system for efficiently using a connection between the telecommunications network and customer premises equipment
JP2011186571A (en) Server and client system
EP2656590B1 (en) DNS forwarder for multi-core platforms
WO2015059128A1 (en) A forwarder selection protocol for a network and a respective cpe device
KR101662602B1 (en) Micro server management system for small office amd home office
JP5723836B2 (en) Line termination device, remote management system, remote management method, and remote management program
JP2011003110A (en) Service provision system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120710

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130730

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130820

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20131210