JPH11203220A - Measurement method of required transmission time for client/server communication - Google Patents

Measurement method of required transmission time for client/server communication

Info

Publication number
JPH11203220A
JPH11203220A JP10003651A JP365198A JPH11203220A JP H11203220 A JPH11203220 A JP H11203220A JP 10003651 A JP10003651 A JP 10003651A JP 365198 A JP365198 A JP 365198A JP H11203220 A JPH11203220 A JP H11203220A
Authority
JP
Japan
Prior art keywords
time
client
server
transmission
measured
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
JP10003651A
Other languages
Japanese (ja)
Inventor
Tsuneo Morii
恒男 盛井
Akiyuki Kushima
明之 久島
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 Software Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
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 Software Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP10003651A priority Critical patent/JPH11203220A/en
Publication of JPH11203220A publication Critical patent/JPH11203220A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a method which does not assume that a telegram transmission time of a job for transmitting a service demand and receiving a response in performance evaluation in a client/server system is matched with a system clock of a client machine and a server machine and measures without using equipment such as a LAN analyzer. SOLUTION: A time from transmission of a service demand to reception of a reply is measured on the side of a client, a time from reception of the service demand to transmission of a reply is measured on the side of a server, these are embedded in a reply telegram and transmitted to a client. By doing this, a difference between the time from the transmission of the service demand to the reception of a reply measured on the client side and the time from the reception of the service demand to the transmission of the reply measured on the server side enables a time to transmit the telegram back and force to be calculated.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、クライアント・サ
ーバ・システムにおける性能評価技術に係わり、特にネ
ットワーク上の伝送時間を評価するうえで、異なるマシ
ン上の時計をあわせることを前提とせずに電文伝送時間
を測定する方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for evaluating performance in a client / server system, and in particular, in evaluating a transmission time on a network, transmitting a message without assuming that clocks on different machines are synchronized. It relates to a method for measuring time.

【0002】[0002]

【従来の技術】分散システムの開発において、システム
を構成するソフトウェアコンポーネントは、しばしばネ
ットワーク上に分散して配置される。このようなシステ
ムにおいて性能面での改善が必要とされる場合、ボトル
ネックとなる個所を特定し、改善すべき点を洗い出す作
業は、その分散性により困難を伴う場合が多い。
2. Description of the Related Art In the development of a distributed system, software components constituting the system are often distributed and arranged on a network. When improvement in performance is required in such a system, it is often difficult to identify a bottleneck point and identify points to be improved due to its dispersibility.

【0003】分散アプリケーションを作成する設計者の
立場から見ると、各々のアプリケーションの内部での性
能値は、アプリケーションにタイムスタンプを出力する
機能を導入することで観測することができるが、それだ
けでは性能ネックの原因追求に十分でない場合が発生し
得る。
From the viewpoint of a designer who creates a distributed application, the performance value inside each application can be observed by introducing a function for outputting a time stamp to the application. In some cases, it may not be enough to find the cause of the neck.

【0004】システムの性能に影響を及ぼす原因として
は、 (1)CPU性能 (2)OSの負荷 (3)ネットワーク性能 (4)通信制御プログラムの性能 (5)クライアントアプリケーションの性能 (6)サーバアプリケーションの性能 といったものが考えられるが、特にネットワーク性能と
通信制御プログラムの性能については、内部の動作がブ
ラックボックスであるために、性能劣化を引き起こす要
因と回避方法の探索が困難な状況にある。
Factors that affect system performance include (1) CPU performance, (2) OS load, (3) network performance, (4) communication control program performance, (5) client application performance, and (6) server application. In particular, regarding network performance and the performance of communication control programs, it is difficult to search for factors that cause performance degradation and ways to avoid them because the internal operation is a black box.

【0005】通信制御プログラムの性能は、使用するリ
モートプロシジャコールやオブジェクト・リクエスト・
ブローカーの提供する機能の実装方法に依存してくるも
のであるため、これらのプログラムに評価・対策を任せ
ざるを得ないが、ネットワーク性能に関しては、ネット
ワーク機器の能力や接続方法、各種ネットワークパラメ
タの設定値に大きく影響してくるため、性能値の測定と
評価の重要性は高い。
The performance of the communication control program depends on the remote procedure call and object request
Since it depends on how to implement the functions provided by the broker, evaluation and countermeasures must be left to these programs.However, regarding network performance, the capabilities of network devices, connection methods, and various network parameters Since the setting value is greatly affected, the measurement and evaluation of the performance value is important.

【0006】従来は、クライアント側のマシンとサーバ
側のマシンのシステム時計の時間を合わせ、クライアン
ト側でサービス要求を送信した時刻とサーバ側でこれを
受信した時刻を測定し、それぞれの情報を統合してその
差分から伝送処理に要した時間を測定していた。
Conventionally, the system clocks of a client machine and a server machine are set to coincide with each other, a time when a service request is transmitted on the client side and a time when the service request is received are measured on the server side, and the respective information is integrated. Then, the time required for the transmission processing was measured from the difference.

【0007】[0007]

【発明が解決しようとする課題】従来の方法では、測定
しようとする環境において、クライアントになるマシン
とサーバマシンのシステム時計を合わせることが前提と
なるが、ミリ秒単位の誤差を排除することは困難である
し、それぞれのマシンのシステム時計の精度が異なるこ
とも考えられ、評価の対象となり得る伝送処理時間を測
定することは困難であった。
In the conventional method, it is premised that the system clocks of the client machine and the server machine are set in the environment to be measured, but it is not possible to eliminate an error in millisecond units. Since it is difficult and the accuracy of the system clock of each machine may be different, it is difficult to measure the transmission processing time that can be evaluated.

【0008】本発明の目的は、かかる問題を解決するた
めに、測定しようとする環境においてクライアントマシ
ンとサーバマシンのシステム時計を合わせることを前提
とせず、LANアナライザ等の機器も使用せずに電文伝
送時間を測定する方法を提供することにある。
An object of the present invention is to solve such a problem without assuming that the system clocks of a client machine and a server machine are synchronized in an environment to be measured and without using a device such as a LAN analyzer. It is to provide a method for measuring the transmission time.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、クライアント側においてサービス要求を
送信してから応答を受信するまでの時間を測定し、サー
バ側ではサービス要求を受信してから応答を送信するま
での時間を測定して、この測定時間を応答電文中に埋め
込んでクライアントに送信することにより、クライアン
ト側で測定したサービス要求を送信してから応答を受信
するまでの時間と、サーバ側で測定したサービス要求を
受信してから応答を送信するまでの時間の差分により往
復の電文伝送時間を算出することを特徴とする。
In order to achieve the above object, the present invention measures the time from transmitting a service request on the client side to receiving a response, and receiving the service request on the server side. The time from sending the service request measured on the client side to receiving the response by embedding the measurement time in the response message and sending it to the client And calculating the round-trip message transmission time based on the difference between the time when the service request measured on the server side is received and the time when the response is transmitted.

【0010】[0010]

【発明の実施の形態】以下、本発明を実施する場合の一
形態を図面を参照して具体的に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to the drawings.

【0011】図1は、本発明のクライアント・サーバ通
信における伝送所要時間の測定方法に係わる、クライア
ントとサーバの処理時間の流れを示したものである。本
発明で算出する伝送所要時間は、クライアントから送信
したサービス要求を、サーバが受信してサービスを実行
し、サービスの応答がクライアントに返送されるまで
の、一連のクライアント・サーバ通信における往復の通
信に要した時間である。図1に示したように、クライア
ント側でサービス要求を送信してから応答を受信し終え
るまでのターンアラウンドタイム(101)と、サーバ
側でサービス要求を受信してから応答を送信する直前ま
でのサービス実行時間(102)との差分をクライアン
ト側で算出し、これを往復の通信所要時間として扱う。
FIG. 1 shows a flow of processing time between a client and a server in a method for measuring a required transmission time in client-server communication according to the present invention. The transmission time calculated according to the present invention is a round-trip communication in a series of client-server communications from when a server receives a service request transmitted from a client, executes a service, and returns a service response to the client. It was the time it took. As shown in FIG. 1, the turnaround time (101) from the transmission of a service request on the client side to the end of receiving the response, and the turnaround time (101) from the reception of the service request on the server side to immediately before transmitting the response. The difference from the service execution time (102) is calculated on the client side, and this is treated as the round-trip communication required time.

【0012】図2は、本発明のクライアント・サーバ通
信における伝送所要時間の測定方法に係わる、クライア
ント側の処理の流れを示したものであり、図3は本発明
のクライアント・サーバ通信における伝送所要時間の測
定方法に係わる、サーバ側の処理の流れを示したもので
ある。
FIG. 2 shows a flow of processing on the client side relating to the method of measuring the required transmission time in the client-server communication of the present invention. FIG. 3 shows the flow of the transmission required in the client-server communication of the present invention. 7 shows a flow of processing on the server side relating to a method of measuring time.

【0013】クライアントは、サービス要求電文を作成
(ステップ201)し、送信先のサーバのアドレス情報
を取得(ステップ202)して送信準備が完了した時点
で、システム時計から時刻を取得する(ステップ20
3)。その後サーバへの電文を送信する(ステップ20
5)。本実施例においてはTCP/IPプロトコルによ
る通信を使用しており、電文の送信に先立ってコネクシ
ョンの確立処理を実施している(ステップ204)が、
このコネクションの確立処理に要する時間も伝送所要時
間に含んでいる。要求電文の送信が完了したクライアン
トは、応答電文の受信待ち状態に入る。
The client creates a service request message (step 201), acquires the address information of the destination server (step 202), and acquires the time from the system clock when the transmission preparation is completed (step 20).
3). Thereafter, a message is transmitted to the server (step 20).
5). In the present embodiment, communication according to the TCP / IP protocol is used, and connection establishment processing is performed prior to transmission of a message (step 204).
The time required for the connection establishment processing is also included in the required transmission time. The client that has completed transmission of the request message enters a response message reception waiting state.

【0014】サーバは、サービス要求を受け付けられる
状態で待機しているが、サービス要求が到着すると、す
べてのサービス要求電文を受信し終えた(ステップ30
1)時点で、システム時計から時刻を取得する(ステッ
プ302)。その後サービス関数を実行(ステップ30
3)し、サービスの結果を応答電文として編集し終えた
ところで再度システム時計から時刻を取得する(ステッ
プ304)。サービス実行前の時刻と、サービス実行後
の時刻の差分を算出し、これを応答電文の制御ヘッダ内
に埋め込んで(ステップ305)、クライアントへ応答
電文を返送する(ステップ306)。
The server is in a standby state in which it can accept the service request. When the service request arrives, the server finishes receiving all the service request messages (step 30).
1) At the time, the time is obtained from the system clock (step 302). After that, the service function is executed (step 30).
3) Then, when the service result is edited as a response message, the time is acquired again from the system clock (step 304). The difference between the time before the service is executed and the time after the service is executed is calculated, embedded in the control header of the response message (step 305), and the response message is returned to the client (step 306).

【0015】サービス要求に対する応答電文を受信した
クライアントは、すべての応答電文を受信し終えた(ス
テップ206)時点でシステム時計から時刻を取得(ス
テップ207)し、サービス要求を送信する直前に取得
した時刻との差分を算出する(ステップ208)。
The client that has received the response message to the service request acquires the time from the system clock at the time when all the response messages have been received (step 206) (step 207), and acquires the time immediately before transmitting the service request. The difference from the time is calculated (step 208).

【0016】[0016]

【発明の効果】本発明によれば、性能評価のための電文
伝送時間の測定時、測定しようとする環境においてクラ
イアントマシンとサーバマシンのシステム時計を合わせ
ることなく、LANアナライザ等の機器も使用せずに電
文伝送時間を測定することができる。
According to the present invention, when measuring the message transmission time for performance evaluation, it is possible to use a device such as a LAN analyzer without adjusting the system clocks of the client machine and the server machine in the environment to be measured. The message transmission time can be measured without the need.

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

【図1】本発明のクライアント・サーバ通信における伝
送所要時間の測定方法に係わる、クライアントとサーバ
の処理時間の流れ図。
FIG. 1 is a flowchart of the processing time of a client and a server in a method for measuring a required transmission time in client-server communication according to the present invention.

【図2】本発明のクライアント・サーバ通信における伝
送所要時間の測定方法に係わる、クライアント側の処理
の流れ図。
FIG. 2 is a flowchart of processing on the client side relating to a method for measuring a required transmission time in client-server communication according to the present invention.

【図3】本発明のクライアント・サーバ通信における伝
送所要時間の測定方法に係わる、サーバ側の処理の流れ
図。
FIG. 3 is a flowchart of processing on the server side according to the method of measuring the required transmission time in client-server communication according to the present invention.

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

101…ターンアラウンドタイム、 102…サービ
ス実行時間、103…要求電文伝送時間、 1
04…応答電文伝送時間。
101: turnaround time, 102: service execution time, 103: request message transmission time, 1
04 ... Response message transmission time.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 久島 明之 神奈川県横浜市中区尾上町6丁目81番地日 立ソフトウェアエンジニアリング株式会社 内 ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Akiyuki Kushima 6-81-Ouecho, Naka-ku, Yokohama-shi, Kanagawa Prefecture

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】クライアント・サーバ・システムにおい
て、サービス要求を送信して応答を受信する業務の電文
伝送時間の評価方法であって、クライアント側にサービ
ス要求を送信してから応答を受信するまでの時間を測定
する機構を設け、サーバ側にはサービス要求を受信して
から応答を送信するまでの時間を測定する機構とこの測
定時間を応答電文中に埋め込んで送信する機構を設け、
クライアント側で測定したサービス要求を送信してから
応答を受信するまでの時間と、サーバ側で測定したサー
ビス要求を受信してから応答を送信するまでの時間の差
分により往復の電文伝送時間を算出することを特徴とす
る伝送所要時間の測定方法。
1. A method for evaluating a message transmission time of a service for transmitting a service request and receiving a response in a client server system, the method comprising: transmitting a service request to a client and receiving a response; A mechanism for measuring time is provided, and on the server side, a mechanism for measuring the time from receiving a service request to transmitting a response and a mechanism for embedding the measured time in a response message and transmitting the response message are provided,
Calculate the round-trip message transmission time based on the difference between the time between sending a service request measured on the client side and receiving a response and the time between receiving the service request measured on the server side and sending a response. A method for measuring the required time for transmission.
JP10003651A 1998-01-12 1998-01-12 Measurement method of required transmission time for client/server communication Pending JPH11203220A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10003651A JPH11203220A (en) 1998-01-12 1998-01-12 Measurement method of required transmission time for client/server communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10003651A JPH11203220A (en) 1998-01-12 1998-01-12 Measurement method of required transmission time for client/server communication

Publications (1)

Publication Number Publication Date
JPH11203220A true JPH11203220A (en) 1999-07-30

Family

ID=11563386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10003651A Pending JPH11203220A (en) 1998-01-12 1998-01-12 Measurement method of required transmission time for client/server communication

Country Status (1)

Country Link
JP (1) JPH11203220A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007264921A (en) * 2006-03-28 2007-10-11 Fujitsu Ltd Performance information extraction program and apparatus
US8762727B2 (en) 2002-09-30 2014-06-24 Koninklijke Philips N.V. Verifying a node on a network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8762727B2 (en) 2002-09-30 2014-06-24 Koninklijke Philips N.V. Verifying a node on a network
JP2007264921A (en) * 2006-03-28 2007-10-11 Fujitsu Ltd Performance information extraction program and apparatus

Similar Documents

Publication Publication Date Title
US6446028B1 (en) Method and apparatus for measuring the performance of a network based application program
US5477531A (en) Method and apparatus for testing a packet-based network
US7917597B1 (en) RDMA network configuration using performance analysis
US7523198B2 (en) Integrated testing approach for publish/subscribe network systems
US7154858B1 (en) System and method for measuring latency of a selected path of a computer network
US6442141B1 (en) Network delay and loss simulator
CN108322356A (en) A kind of industrial network gateway compatibility test method based on MQTT
EP2903213B1 (en) Throughput test method and apparatus
US8966117B1 (en) System for discovering routers in a communication path of a supervisory control and data acquisition system
WO1992022967A1 (en) Method and apparatus for testing a packet-based network
US9100318B1 (en) Method for discovering routers in a communication path of a supervisory control and data acquisition system
JPH11203220A (en) Measurement method of required transmission time for client/server communication
JP4080397B2 (en) Parallel computer
KR100439732B1 (en) Apparatus and method of verifying fair racing using QoS measuring system in the client-server network
JP2018137687A (en) Packet analyzing program, packet analyzer, and packet analyzing method
WO2022098659A1 (en) Tsn operation management system with time capture location protocol
US9264477B2 (en) Call processing time measuring device, call processing time measuring method, and call processing time measuring program
KR100557077B1 (en) Interprocessor communication performance test method and apparatus
CN215186817U (en) Application debugging device of cross-mechanism internal network
Mock et al. Evaluating a wireless real-time communication protocol on Windows NT and WaveLAN
JP2891135B2 (en) Software failure detection device and software failure detection method
JP2007183888A (en) Program coverage measuring method
JP5248256B2 (en) Equipment maintenance system, equipment maintenance method and equipment maintenance program
JP2017073655A (en) Time-out time setting device and time-out time setting method
JP2000224171A (en) System and device for measuring state of network by a plurality of services