Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5805166B2 - COMMUNICATION TEST DEVICE, COMMUNICATION TEST METHOD, AND PROGRAM - Google Patents
[go: Go Back, main page]

JP5805166B2 - COMMUNICATION TEST DEVICE, COMMUNICATION TEST METHOD, AND PROGRAM - Google Patents

COMMUNICATION TEST DEVICE, COMMUNICATION TEST METHOD, AND PROGRAM Download PDF

Info

Publication number
JP5805166B2
JP5805166B2 JP2013234446A JP2013234446A JP5805166B2 JP 5805166 B2 JP5805166 B2 JP 5805166B2 JP 2013234446 A JP2013234446 A JP 2013234446A JP 2013234446 A JP2013234446 A JP 2013234446A JP 5805166 B2 JP5805166 B2 JP 5805166B2
Authority
JP
Japan
Prior art keywords
communication
command
test
unit
simulation information
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.)
Expired - Fee Related
Application number
JP2013234446A
Other languages
Japanese (ja)
Other versions
JP2015095781A (en
Inventor
丈瑠 黒岩
丈瑠 黒岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2013234446A priority Critical patent/JP5805166B2/en
Publication of JP2015095781A publication Critical patent/JP2015095781A/en
Application granted granted Critical
Publication of JP5805166B2 publication Critical patent/JP5805166B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Selective Calling Equipment (AREA)

Description

本発明は、通信試験装置、通信試験方法およびプログラムに関する。   The present invention relates to a communication test apparatus, a communication test method, and a program.

複数の通信機器から構成されるシステムにおいて、通信機器間で適切に通信が行われているかを検証する通信試験を行うことは重要である。   In a system composed of a plurality of communication devices, it is important to perform a communication test for verifying whether communication is properly performed between the communication devices.

特許文献1には、正確かつ効率的に通信試験を実施できるようにすることを目的とした通信試験装置について記載されている。具体的には、特許文献1に記載の通信試験装置は、まず、選択されたシナリオに応じて、試験対象の通信機器と通信する通信機器に擬似化(模擬)する。そして、通信試験装置は、選択されたシナリオに沿って試験対象の通信機器と電文のやりとりを行うことにより、接続試験(通信試験)を実行する。   Patent Document 1 describes a communication test apparatus for the purpose of enabling a communication test to be performed accurately and efficiently. Specifically, the communication test apparatus described in Patent Document 1 first simulates (simulates) a communication device that communicates with a communication device to be tested according to a selected scenario. And a communication test apparatus performs a connection test (communication test) by exchanging a message | telegram with the communication apparatus of a test object according to the selected scenario.

特開2009−260754号公報JP 2009-260754 A

特許文献1に記載の通信試験装置では、通信試験の試験内容や試験手順が記載されたシナリオを予め準備しておく必要がある。そのため、通信試験の準備に手間がかかり、効率が良くないという問題があった。   In the communication test apparatus described in Patent Document 1, it is necessary to prepare in advance a scenario in which the test contents and test procedure of the communication test are described. For this reason, there is a problem that it takes time to prepare for the communication test and the efficiency is not good.

本発明は、このような問題を解決するためになされたものであり、従来よりも手間をかけずに、効率良く通信試験を行うことができる通信試験装置、通信試験方法およびプログラムを提供することを目的とする。   The present invention has been made to solve such a problem, and provides a communication test apparatus, a communication test method, and a program capable of performing a communication test efficiently without taking time and effort. With the goal.

上記目的を達成するため、本発明の通信試験装置は、
特定のネットワークに接続する通信機器間で通信される通信コマンドを収集して、該通信コマンドの送信時刻、送信元、及び送信先を示す情報と対応付けて通信コマンド格納部に格納する収集部と、
前記通信コマンド格納部に格納されている通信コマンドを指令内容毎にグループ化し、グループ毎に通信コマンドの送信タイミングを判別する判別部と、
通信機器毎に、該通信機器が送信する通信コマンドと、該通信コマンドの送信先及び前記判別部が判別した送信タイミングを示す情報と、を対応付けた前記通信機器を模擬するための模擬情報を作成する模擬情報作成部と、
前記模擬情報作成部が作成した模擬情報を用いて、試験対象の通信機器と通信する対向機を模擬することで、通信試験を実行する通信試験実行部と、
を備えることを特徴とする。
In order to achieve the above object, the communication test apparatus of the present invention provides:
A collection unit that collects communication commands communicated between communication devices connected to a specific network and stores the communication commands in a communication command storage unit in association with information indicating a transmission time, a transmission source, and a transmission destination of the communication command; ,
A determination unit that groups communication commands stored in the communication command storage unit for each command content, and determines the transmission timing of the communication command for each group;
For each communication device , simulation information for simulating the communication device in which the communication command transmitted by the communication device is associated with information indicating the transmission destination of the communication command and the transmission timing determined by the determination unit. A simulated information creation section to be created;
Using the simulation information created by the simulation information creation unit, a communication test execution unit that performs a communication test by simulating the opposite device that communicates with the communication device to be tested,
It is characterized by providing.

本発明によれば、従来よりも手間をかけずに効率良く通信試験を行うことが可能となる。   According to the present invention, it is possible to efficiently perform a communication test with less effort than before.

本発明の実施形態に係る通信試験装置を備えたシステムの全体構成を示す図である。It is a figure which shows the whole structure of the system provided with the communication test apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る通信試験装置の物理的な構成を示すブロック図である。It is a block diagram which shows the physical structure of the communication test apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る通信試験装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the communication test apparatus which concerns on embodiment of this invention. 通信コマンド格納部に格納されているデータの例を示す図である。It is a figure which shows the example of the data stored in the communication command storage part. 模擬情報格納部に格納されている模擬情報の例を示す図である。It is a figure which shows the example of the simulation information stored in the simulation information storage part. 監視処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a monitoring process. 模擬情報作成処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the simulation information creation process. 通信試験処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a communication test process. 通信試験処理時における模擬通信処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the simulation communication process at the time of a communication test process.

以下、本発明の実施形態について、図面を参照しながら詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

本発明の実施形態に係る通信試験装置1は、図1に示すように、LAN(Local Area Network)等のネットワーク2を介して、通信システム3を構成する各通信機器4(4、4、4、…)に接続する。 As shown in FIG. 1, a communication test apparatus 1 according to an embodiment of the present invention includes communication devices 4 (4 1 , 4 2) constituting a communication system 3 via a network 2 such as a LAN (Local Area Network). 4 3 ,...).

なお、本実施形態における通信システム3は、コントローラや空調機等の通信機器4から構成されるHEMS(Home Energy Management System)であり、通信機器4間では、送信先に対して指令するデータ(通信コマンド)が送受信されている。なお、以下の説明では、通信機器4をコントローラ、通信機器4を空調機とし、コントローラ4、空調機4とも表記する。また、各通信機器4には、識別用の機器IDが付与されている。 The communication system 3 in the present embodiment is a HEMS (Home Energy Management System) composed of communication devices 4 such as a controller and an air conditioner. Command). In the following description, the communication device 4 1 controller, the communication device 4 2 and the air conditioner, the controller 4 1, to both the air conditioner 4 2 notation. Each communication device 4 is assigned a device ID for identification.

通信試験装置1は、各通信機器4の通信試験を実行するためのコンピュータである。通信試験装置1は、図2に示すように、通信部11と、操作部12と、表示部13と、記憶部14と、制御部15と、を備える。各部はバス16を介して互いに接続されている。   The communication test apparatus 1 is a computer for executing a communication test of each communication device 4. As shown in FIG. 2, the communication test apparatus 1 includes a communication unit 11, an operation unit 12, a display unit 13, a storage unit 14, and a control unit 15. Each unit is connected to each other via a bus 16.

通信部11は、LANカード等の通信インタフェースを備え、ネットワーク2を介して、各通信機器4と通信を行う。   The communication unit 11 includes a communication interface such as a LAN card and communicates with each communication device 4 via the network 2.

操作部12は、通信試験装置1に様々な情報を入力するために使用され、キーボードやマウス等の入力装置を備える。例えば、ユーザは、操作部12を操作して、通信試験の対象とする通信機器4を指定する。   The operation unit 12 is used to input various information to the communication test apparatus 1 and includes an input device such as a keyboard and a mouse. For example, the user operates the operation unit 12 and designates the communication device 4 that is the subject of the communication test.

表示部13は、ディスプレイ等の表示装置を備え、様々な情報を出力する。例えば、表示部13には、通信試験の結果を示す画面が表示される。   The display unit 13 includes a display device such as a display and outputs various information. For example, a screen showing the result of the communication test is displayed on the display unit 13.

記憶部14は、ハードディスク等の補助記憶装置を備え、通信機器4毎に機器ID、機器名、IPアドレス等を関連付けた図示せぬテーブルを記憶する。その他、記憶部14には、各種のプログラムやデータ等が記憶されている。   The storage unit 14 includes an auxiliary storage device such as a hard disk, and stores a table (not shown) in which a device ID, a device name, an IP address, and the like are associated with each communication device 4. In addition, the storage unit 14 stores various programs and data.

制御部15は、データの演算処理を行うと共に、バス16を介して通信部11、操作部12、表示部13、記憶部14を制御する。制御部15は、CPU(Central Processing Unit)15a、ROM(Read Only Memory)15b、RAM(Random Access Memory)15c等を備える。制御部15における演算処理及び制御処理は、具体的には、CPU15aが、RAM15cを作業領域として使用して各種データを一時的に記憶させながら、ROM15bに記憶されている制御プログラムを実行することにより行われる。   The control unit 15 performs calculation processing of data and controls the communication unit 11, the operation unit 12, the display unit 13, and the storage unit 14 via the bus 16. The control unit 15 includes a CPU (Central Processing Unit) 15a, a ROM (Read Only Memory) 15b, a RAM (Random Access Memory) 15c, and the like. Specifically, the arithmetic processing and control processing in the control unit 15 are performed by the CPU 15a executing the control program stored in the ROM 15b while temporarily storing various data using the RAM 15c as a work area. Done.

通信試験装置1は、機能的には、図3に示すように、通信監視部101と、通信コマンド格納部102と、模擬情報作成部103と、模擬情報格納部104と、試験対象受付部105と、通信試験実行部106と、試験結果格納部107と、試験結果判定部108と、試験結果出力部109と、を備える。なお、これらの各部は、図2に示した制御部15が、同じく図1に示した通信部11、操作部12、表示部13、記憶部14を制御することにより実現される。   Functionally, the communication test apparatus 1 includes a communication monitoring unit 101, a communication command storage unit 102, a simulation information creation unit 103, a simulation information storage unit 104, and a test object reception unit 105, as shown in FIG. A communication test execution unit 106, a test result storage unit 107, a test result determination unit 108, and a test result output unit 109. Note that these units are realized by the control unit 15 illustrated in FIG. 2 controlling the communication unit 11, the operation unit 12, the display unit 13, and the storage unit 14 that are also illustrated in FIG.

通信監視部101は、通信システム3を構成する各通信機器4を常時監視しており、通信機器4間で送受信された通信コマンドを即時に検知する。そして、通信監視部101は、検知した通信コマンドを、その通信コマンドを送信した日時、その通信コマンドの種別、その通信コマンドを送信した通信機器4の機器ID(送信元機器ID)、および、その通信コマンドの送信先の通信機器4の機器ID(送信先機器ID)と対応付けて、図4に示すように通信コマンド格納部102に逐次格納する。なお、通信監視部101の行う上記処理はバックグラウンド処理であり、後述する他の処理と並行して常時実施される。   The communication monitoring unit 101 constantly monitors each communication device 4 constituting the communication system 3 and immediately detects a communication command transmitted / received between the communication devices 4. Then, the communication monitoring unit 101 transmits the detected communication command, the date and time when the communication command was transmitted, the type of the communication command, the device ID (transmission source device ID) of the communication device 4 that transmitted the communication command, and the In correspondence with the device ID (transmission destination device ID) of the communication device 4 that is the transmission destination of the communication command, the communication command is sequentially stored in the communication command storage unit 102 as shown in FIG. Note that the processing performed by the communication monitoring unit 101 is background processing, and is always performed in parallel with other processing described later.

なお、本実施形態では、通信コマンドは、要求コマンド、応答コマンド、および通知コマンドの何れかの種別を有している(図4では、単に「要求」、「応答」、「通知」と表記)。要求コマンドは、送信先の通信機器4に特定の動作を要求する通信コマンドである。応答コマンドは、要求コマンドを受信した通信機器4が、要求コマンドの送信元の通信機器4に応答するための通信コマンドである。通知コマンドは、特定の情報や状態等を送信先の通信機器4に通知するための通信コマンドである。通信監視部101は、検知した通信コマンドに含まれるヘッダ情報から、これらの種別を特定することができる。   In the present embodiment, the communication command has any type of a request command, a response command, and a notification command (in FIG. 4, simply expressed as “request”, “response”, “notification”). . The request command is a communication command that requests a specific operation from the destination communication device 4. The response command is a communication command for the communication device 4 that has received the request command to respond to the communication device 4 that has transmitted the request command. The notification command is a communication command for notifying the destination communication device 4 of specific information, status, and the like. The communication monitoring unit 101 can identify these types from the header information included in the detected communication command.

図3に戻り、模擬情報作成部103は、通信コマンド格納部102に格納されている通信コマンド等に基づいて、通信機器4毎に、該通信機器4を模擬するために必要な模擬情報を作成し、模擬情報格納部104に格納する。模擬情報作成部103が行う処理の詳細については後述する。   Returning to FIG. 3, the simulation information creation unit 103 creates simulation information necessary for simulating the communication device 4 for each communication device 4 based on the communication command and the like stored in the communication command storage unit 102. And stored in the simulation information storage unit 104. Details of the process performed by the simulation information creation unit 103 will be described later.

図5に、模擬情報格納部104に格納されている模擬情報の例を示す。模擬情報格納部104には、通信機器4の機器IDと、該通信機器4が送信した通信コマンドと、この通信コマンドの送信先である通信機器4の機器ID(送信先機器ID)と、送信タイミングを示す情報と、を関連付けた模擬情報が格納される。   FIG. 5 shows an example of simulation information stored in the simulation information storage unit 104. In the simulated information storage unit 104, the device ID of the communication device 4, the communication command transmitted by the communication device 4, the device ID of the communication device 4 (transmission destination device ID) that is the transmission destination of this communication command, and the transmission Simulated information in which information indicating timing is associated with is stored.

図3に戻り、試験対象受付部105は、ユーザから、試験対象とする通信機器4(試験対象機)と、通信試験のためにこの試験対象機と通信する通信機器4(対向機)と、の指定を受け付ける。   Returning to FIG. 3, the test target receiving unit 105 receives a communication device 4 (test target device) to be tested from a user, and a communication device 4 (opposite device) that communicates with the test target device for a communication test. The specification of is accepted.

通信試験実行部106は、指定された対向機の模擬情報を用いて対向機を模擬し、試験対象機の通信試験を実行する。また、通信試験実行部106は、通信試験実行中に試験対象機から受信した通信コマンドを、受信日時と対応付けて試験結果格納部107に保存する。   The communication test execution unit 106 simulates the opposite device using the designated opposite device simulation information, and executes a communication test of the test target device. In addition, the communication test execution unit 106 stores the communication command received from the test target machine during the communication test execution in the test result storage unit 107 in association with the reception date and time.

試験結果判定部108は、試験結果格納部107を参照して、後述する模擬通信処理で、通信異常があったか否かを判定する。試験結果出力部109は、試験結果判定部108による判定の結果を出力する。   The test result determination unit 108 refers to the test result storage unit 107 and determines whether there is a communication abnormality in a simulated communication process described later. The test result output unit 109 outputs the result of determination by the test result determination unit 108.

続いて、通信試験装置1によって実行される各処理について説明する。   Next, each process executed by the communication test apparatus 1 will be described.

(監視処理)
始めに、監視処理について説明する。通信試験装置1の通信監視部101は、通信試験装置1が起動している間、図6に示す監視処理を実行している。
(Monitoring process)
First, the monitoring process will be described. The communication monitoring unit 101 of the communication test apparatus 1 executes the monitoring process shown in FIG. 6 while the communication test apparatus 1 is activated.

通信監視部101は、各通信機器4間で行われる通信を常時監視しており、ネットワーク2上を流れる通信コマンドを検知すると(ステップS11;Yes)、当該通信コマンドを解析して、検知した通信コマンドの種別と、この通信コマンドを送信した通信機器4の機器ID(送信元機器ID)と、この通信コマンドの送信先の通信機器4の機器ID(送信先機器ID)とを特定する(ステップS12)。   The communication monitoring unit 101 constantly monitors communication performed between the communication devices 4 and when a communication command flowing on the network 2 is detected (step S11; Yes), the communication command is analyzed and the detected communication is detected. The type of command, the device ID of the communication device 4 (transmission source device ID) that has transmitted this communication command, and the device ID (transmission destination device ID) of the communication device 4 that is the transmission destination of this communication command are specified (step) S12).

そして、通信監視部101は、検知した通信コマンドと、ステップS12で特定した各情報と、送信日時(検知日時)とを対応付けて通信コマンド格納部102に格納する(ステップS13)。そして、処理はステップS11に戻る。   Then, the communication monitoring unit 101 stores the detected communication command, each piece of information specified in step S12, and the transmission date / time (detection date / time) in association with each other in the communication command storage unit 102 (step S13). Then, the process returns to step S11.

このように、監視処理により、通信機器4間の通信における通信コマンドは、通信試験装置1の通信監視部101により検知され、その送信時刻等とともに通信コマンド格納部102に格納される。   Thus, by the monitoring process, a communication command in communication between the communication devices 4 is detected by the communication monitoring unit 101 of the communication test apparatus 1 and stored in the communication command storage unit 102 together with the transmission time and the like.

(模擬情報作成処理)
続いて、模擬情報作成処理について説明する。通信試験装置1の模擬情報作成部103は、所定の期間(例えば、1週間)が経過する度、または、ユーザからの処理開始の指示を受け付けた際に、図7に示す模擬情報作成処理を実行する。
(Simulation information creation process)
Next, the simulation information creation process will be described. The simulation information creation unit 103 of the communication test apparatus 1 performs the simulation information creation process shown in FIG. 7 every time a predetermined period (for example, one week) elapses or when a process start instruction is received from the user. Run.

まず、模擬情報作成部103は、模擬情報格納部104に格納されている模擬情報がある場合、その模擬情報を消去する(ステップS21)。   First, when there is simulation information stored in the simulation information storage unit 104, the simulation information creation unit 103 deletes the simulation information (step S21).

続いて、模擬情報作成部103は、今回の模擬情報作成処理で未だ模擬情報を作成していない通信機器4を1つ選択する(ステップS22)。   Subsequently, the simulation information creation unit 103 selects one communication device 4 that has not yet created simulation information in the current simulation information creation process (step S22).

続いて、模擬情報作成部103は、通信コマンド格納部102の送信元機器IDを参照して、ステップS22で選択した通信機器4が送信した通信コマンドを特定する(ステップS23)。   Subsequently, the simulation information creation unit 103 refers to the transmission source device ID of the communication command storage unit 102 and identifies the communication command transmitted by the communication device 4 selected in step S22 (step S23).

続いて、模擬情報作成部103は、特定した通信コマンドを解析して、指令内容毎にグループに分類する(ステップS24)。ここで、例えば、空調機4に対して設定温度の1℃上昇を指令する通信コマンドと2℃上昇を指令する通信コマンドとを特定した場合を考える。この場合、これらの通信コマンドは設定温度を上昇する同じ指令内容の通信コマンドとして、ステップS24では同じグループに分類される。 Subsequently, the simulation information creating unit 103 analyzes the specified communication command and classifies the command into contents into groups (step S24). Here, for example, consider the case of identifying a communication command for instructing a communication command and 2 ℃ rise to command 1 ℃ rise in set temperature with respect to the air conditioner 4 2. In this case, these communication commands are classified into the same group in step S24 as communication commands having the same command content for raising the set temperature.

続いて、模擬情報作成部103は、分類したグループ毎に、グループ内の通信コマンドの送信タイミングを判別する(ステップS25)。例えば、模擬情報作成部103は、グループ内の各通信コマンドの送信日時を参照して、通信コマンドの送信時刻や送信間隔に規則性があれば、それらを送信タイミングとして判別する。また、グループ内の通信コマンドが応答コマンドである場合、模擬情報作成部103は、通信コマンド格納部102を参照して、この応答コマンドの送信のトリガとなる通信コマンド(要求コマンド)と、要求コマンドを受信してからこの応答コマンドを送信するまでの応答遅延時間とを、送信タイミングとして判別する。   Subsequently, the simulation information creation unit 103 determines the transmission timing of the communication command in the group for each classified group (step S25). For example, the simulation information creation unit 103 refers to the transmission date and time of each communication command in the group, and if there is regularity in the transmission time and transmission interval of the communication command, determines them as transmission timing. When the communication command in the group is a response command, the simulation information creation unit 103 refers to the communication command storage unit 102, and transmits a communication command (request command) that triggers transmission of the response command, and the request command. The response delay time from when the command is received until the response command is transmitted is determined as the transmission timing.

そして、模擬情報作成部103は、ステップS22で選択した通信機器4の機器IDと、ステップS24で分類した各グループの通信コマンドと、ステップS25で判別したその通信コマンドの送信タイミングを示す情報と、を対応付けた模擬情報を模擬情報格納部104に格納する(ステップS26)。この処理により、ステップS22で選択した通信機器4の模擬情報が作成されたこととなる。   Then, the simulation information creation unit 103 includes the device ID of the communication device 4 selected in step S22, the communication command of each group classified in step S24, information indicating the transmission timing of the communication command determined in step S25, Is stored in the simulation information storage unit 104 (step S26). By this processing, simulation information of the communication device 4 selected in step S22 is created.

続いて、模擬情報作成部103は、全ての通信機器4で模擬情報を作成したか否かを判別する(ステップS27)。模擬情報を作成していない通信機器4がある場合(ステップS27;No)、模擬情報作成部103は、その通信機器4を選択して、この通信機器4が送信した通信コマンドに基づいて模擬情報を作成して保存する処理(ステップS22〜ステップS26)を繰り返す。全ての通信機器4について、模擬情報を作成した場合(ステップS27;Yes)、模擬情報作成処理は終了する。   Subsequently, the simulation information creating unit 103 determines whether or not the simulation information has been created in all the communication devices 4 (step S27). When there is a communication device 4 for which simulation information has not been created (step S27; No), the simulation information creation unit 103 selects the communication device 4 and simulates information based on a communication command transmitted by the communication device 4. The process of creating and saving (Steps S22 to S26) is repeated. When the simulation information is created for all the communication devices 4 (step S27; Yes), the simulation information creation process ends.

このように、模擬情報作成処理により、監視処理で検知した通信コマンドから、各通信機器4を模擬するための模擬情報が作成される。   In this manner, simulation information for simulating each communication device 4 is created from the communication command detected by the monitoring process by the simulation information creation process.

(通信試験処理)
続いて、通信試験処理について説明する。なお、この通信試験処理の前提として、上述した模擬情報作成処理が実行済みであり、各通信機器4の模擬情報が模擬情報格納部104に格納されているものとする。
(Communication test processing)
Next, the communication test process will be described. As a premise of this communication test process, it is assumed that the above-described simulation information creation process has been executed and the simulation information of each communication device 4 is stored in the simulation information storage unit 104.

例えば、ユーザは、通信試験装置1の操作部12を操作して通信試験の開始を指示する。この指示に応答して、通信試験装置1は、図8に示す模擬情報作成処理を実行する。   For example, the user operates the operation unit 12 of the communication test apparatus 1 and instructs the start of the communication test. In response to this instruction, the communication test apparatus 1 executes simulation information creation processing shown in FIG.

まず、試験対象受付部105は、表示部13に所定の入力画面を表示して、通信試験対象の通信機器4(試験対象機)と、この通信試験のために試験対象機と通信する通信機器4(対向機)と、の指定をユーザから受け付ける(ステップS31)。   First, the test target receiving unit 105 displays a predetermined input screen on the display unit 13 and communicates with the communication device 4 (test target device) to be tested for communication and the test target device for this communication test. 4 (opposite machine) is received from the user (step S31).

なお、試験対象受付部105は、試験対象機の指定のみをユーザから受け付けてもよい。この場合、試験対象受付部105は、通信コマンド格納部102を参照して、受け付けた試験対象機と通信データを送受信する通信機器4を特定し、特定した通信機器4を対向機とすればよい。また、試験対象機と通信データを送受信する通信機器4が複数ある場合、試験対象受付部105は、それらの通信機器4のなかからユーザに対向機を選択させて、対向機を受け付けてもよい。   Note that the test target receiving unit 105 may receive only the designation of the test target machine from the user. In this case, the test target reception unit 105 refers to the communication command storage unit 102, specifies the communication device 4 that transmits / receives communication data to / from the received test target device, and sets the specified communication device 4 as the opposite device. . Further, when there are a plurality of communication devices 4 that transmit / receive communication data to / from the test target machine, the test target receiving unit 105 may allow the user to select the opposite device from the communication devices 4 and receive the opposite device. .

続いて、通信試験実行部106は、指定された対向機である通信機器4に停止信号を送信して動作を停止させる(ステップS32)。そして、通信試験実行部106は、通信試験装置1のネットワーク2上のアドレスを、停止させた対向機と同一のアドレスに更新する(ステップS33)。これにより、各通信機器4は、通信試験装置1を対向機として認識する。   Subsequently, the communication test execution unit 106 transmits a stop signal to the communication device 4 that is the designated opposite device to stop the operation (step S32). Then, the communication test execution unit 106 updates the address on the network 2 of the communication test apparatus 1 to the same address as that of the stopped counterpart device (step S33). Thereby, each communication apparatus 4 recognizes the communication test apparatus 1 as an opposite machine.

続いて、通信試験実行部106は、対向機の模擬情報を模擬情報格納部104から取得する(ステップS34)。   Subsequently, the communication test execution unit 106 acquires simulated information of the counterpart device from the simulated information storage unit 104 (step S34).

そして、通信試験実行部106は、取得した模擬情報を用いて、試験対象機器との模擬通信処理を実行する(ステップS35)。   And the communication test execution part 106 performs the simulation communication process with a test object apparatus using the acquired simulation information (step S35).

ここで、ステップS35で実行される模擬通信処理の詳細について、図9のフローチャートを用いて説明する。   Here, the details of the simulated communication process executed in step S35 will be described using the flowchart of FIG.

模擬通信処理が実行されると、まず、通信試験実行部106は、取得した模擬情報を参照して、通信コマンドを送信するタイミングであるか否かを判別する(ステップS351)。そして、送信タイミングである場合(ステップS351;Yes)、通信試験実行部106は、取得した模擬情報から対応する通信コマンドを判別して送信先に送信する(ステップS352)。   When the simulated communication process is executed, first, the communication test execution unit 106 refers to the acquired simulated information and determines whether or not it is time to transmit a communication command (step S351). If it is the transmission timing (step S351; Yes), the communication test execution unit 106 determines the corresponding communication command from the acquired simulation information and transmits it to the transmission destination (step S352).

また、対向機と動作している通信試験装置1には、任意のタイミングで、各通信機器4から通信コマンドが送信される。通信機器4から通信コマンドを受信すると(ステップS353;Yes)、通信試験実行部106は、その通信コマンドが要求コマンドであるか否かを判別する(ステップS354)。   In addition, a communication command is transmitted from each communication device 4 to the communication test apparatus 1 operating with the opposite device at an arbitrary timing. When a communication command is received from the communication device 4 (step S353; Yes), the communication test execution unit 106 determines whether the communication command is a request command (step S354).

受信した通信コマンドが要求コマンドである場合(ステップS354;Yes)、通信試験実行部106は、ステップS34で取得した模擬情報から対応する通信コマンド(応答コマンド)を判別し、この要求コマンドの送信元に送信する(ステップS355)。   When the received communication command is a request command (step S354; Yes), the communication test execution unit 106 determines the corresponding communication command (response command) from the simulation information acquired in step S34, and transmits the request command. (Step S355).

また、受信した通信コマンドが試験対象機から送信されたものである場合(ステップS356;Yes)、通信試験実行部106は、当該通信コマンドと受信時刻とを対応付けて試験結果格納部107に格納する(ステップS357)。   If the received communication command is transmitted from the test target machine (step S356; Yes), the communication test execution unit 106 stores the communication command and the reception time in association with each other in the test result storage unit 107. (Step S357).

そして、予め定めた試験期間が経過した、若しくはユーザから試験終了の指示を受け付けるなどして試験の終了条件を満たすと(ステップS358;Yes)、試験対象機に対する模擬通信処理は終了する。   Then, when a predetermined test period has elapsed or when a test end condition is satisfied by receiving a test end instruction from the user (step S358; Yes), the simulated communication process for the test target machine ends.

図8に戻り、模擬通信処理が終了すると、試験結果判定部108は、試験結果格納部107を参照して、模擬通信処理での通信異常の有無を判定する(ステップS36)。   Returning to FIG. 8, when the simulated communication process ends, the test result determination unit 108 refers to the test result storage unit 107 to determine whether there is a communication abnormality in the simulated communication process (step S <b> 36).

具体的には、試験結果判定部108は、試験結果格納部107に格納されている試験対象機から受信した通信コマンドの内容と、模擬情報格納部104に格納されている試験対象機の模擬情報の内容とを比較することで、通信異常の有無を判定すればよい。例えば、試験結果判定部108は、試験結果格納部107に格納されている通信コマンドが、試験対象機の模擬情報が示す通信コマンドと一致しない場合や、送信タイミングが異なる場合、通信異常があったと判定すればよい。   Specifically, the test result determination unit 108 includes the contents of the communication command received from the test target machine stored in the test result storage unit 107 and the simulation information of the test target machine stored in the simulation information storage unit 104. The presence or absence of communication abnormality may be determined by comparing the content of For example, when the communication command stored in the test result storage unit 107 does not match the communication command indicated by the simulation information of the test target machine or when the transmission timing is different, the test result determination unit 108 determines that there is a communication error. What is necessary is just to judge.

通信異常の有無の判定が終了すると、試験結果出力部109は、判定結果を出力する(ステップS37)。以上で通信試験処理は終了する。   When the determination of the presence / absence of communication abnormality is completed, the test result output unit 109 outputs the determination result (step S37). This completes the communication test process.

このように、本実施形態に係る通信試験装置1は、通信機器4間の実際の使用環境下での通信を監視し、その監視結果に基づいて、通信機器4を模擬するための模擬情報を作成する。そして、通信試験装置1は、作成した模擬情報を用いて、試験対象機の対向機を模擬して試験対象機と通信を行う。従って、通信試験の担当者は対向機の設定や通信試験のシナリオを用意する必要が無く、通信試験を行う際の手間を軽減することが可能となる。   As described above, the communication test apparatus 1 according to the present embodiment monitors communication between the communication devices 4 under an actual use environment, and based on the monitoring result, the simulation information for simulating the communication device 4 is obtained. create. Then, the communication test apparatus 1 performs communication with the test target machine by simulating the opposite machine of the test target machine using the created simulation information. Therefore, the person in charge of the communication test does not need to prepare the setting of the opposite device or the scenario of the communication test, and it is possible to reduce time and labor when performing the communication test.

なお、本発明は、上記実施形態に限定されず、本発明の要旨を逸脱しない部分での種々の修正は勿論可能である。   In addition, this invention is not limited to the said embodiment, Of course, the various correction in the part which does not deviate from the summary of this invention is possible.

例えば、上記実施形態では、模擬情報作成処理において、通信システム3内の全ての通信機器4に対して模擬情報を作成した。しかしながら、この模擬情報作成処理を実施せずに、通信試験処理において試験対象機および対向機が指定された際に、この試験対象機および対向機の模擬情報のみを作成して、通信試験を実行してもよい。   For example, in the above embodiment, simulated information is created for all communication devices 4 in the communication system 3 in the simulated information creation process. However, when the test target machine and the opposite machine are specified in the communication test process without executing the simulation information creation process, only the simulation information of the test target machine and the opposite machine is created and the communication test is executed. May be.

また、上記実施形態では、通信試験処理において、ユーザが指定した試験対象機と対向機との間で模擬通信をすることで通信試験を行った。しかしながら、ユーザが試験対象機や対向機を指定せずに通信試験を行ってもよい。例えば、通信試験装置1は、通信システム3内の各通信機器4から試験対象機と対向機との組を順番に指定し、指定した組毎に通信試験を順次実行してもよい。   Moreover, in the said embodiment, in the communication test process, the communication test was performed by performing simulated communication between the test object machine designated by the user and the opposite machine. However, the user may perform the communication test without specifying the test target machine or the opposite machine. For example, the communication test apparatus 1 may sequentially specify a set of a test target machine and a counter machine from each communication device 4 in the communication system 3 and sequentially execute a communication test for each specified set.

また、上記実施形態では、ネットワーク2を流れる通信機器4間で送受信される通信コマンドを検知して模擬情報を作成したが、通信コマンド以外の通信データを検知して、同様にその送信タイミング等を判別して模擬情報を作成してもよい。   In the above embodiment, simulation information is created by detecting a communication command transmitted and received between the communication devices 4 flowing through the network 2. However, communication data other than the communication command is detected, and the transmission timing is similarly determined. The simulated information may be created by discrimination.

また、上記実施形態では、通信システム3はHEMSであると説明したが、本発明はHEMS以外の通信システム3にも適用可能である。例えば、各種の計測装置やサーバ等がネットワークを介して接続されている気象予報システム等の通信システムにも本発明は適用可能である。   Moreover, although the said embodiment demonstrated that the communication system 3 was HEMS, this invention is applicable also to the communication systems 3 other than HEMS. For example, the present invention can be applied to a communication system such as a weather forecast system in which various measuring devices and servers are connected via a network.

また、上記実施形態における通信試験装置1の機能を複数の装置で分担させてもよい。例えば、監視処理および模擬情報作成処理を行う機能と、通信試験処理を行う機能とを、それぞれ別々のサーバで行ってもよい。   Moreover, you may share the function of the communication test apparatus 1 in the said embodiment with a some apparatus. For example, the function of performing the monitoring process and the simulation information generation process and the function of performing the communication test process may be performed by separate servers.

また、例えば、本実施形態に係る通信試験装置1の動作を規定する動作プログラムを既存のパーソナルコンピュータや情報端末機器等に適用することで、当該パーソナルコンピュータ等を本発明に係る通信試験装置として機能させることも可能である。   Further, for example, by applying an operation program that defines the operation of the communication test apparatus 1 according to the present embodiment to an existing personal computer, an information terminal device, or the like, the personal computer or the like functions as the communication test apparatus according to the present invention. It is also possible to make it.

また、このようなプログラムの配布方法は任意であり、例えば、CD−ROM(Compact Disk Read-Only Memory)、DVD(Digital Versatile Disk)、MO(Magneto Optical Disk)、メモリカードなどのコンピュータ読み取り可能な記録媒体に格納して配布してもよいし、インターネットなどの通信ネットワークを介して配布してもよい。   Further, the distribution method of such a program is arbitrary. For example, the program can be read by a computer such as a CD-ROM (Compact Disk Read-Only Memory), a DVD (Digital Versatile Disk), an MO (Magneto Optical Disk), or a memory card. It may be distributed by storing in a recording medium, or distributed via a communication network such as the Internet.

1 通信試験装置、2 ネットワーク、3 通信システム、4 通信機器、11 通信部、12 操作部、13 表示部、14 記憶部、15 制御部、15a CPU、15b ROM、15c RAM、16 バス、101 通信監視部、102 通信コマンド格納部、103 模擬情報作成部、104 模擬情報格納部、105 試験対象受付部、106 通信試験実行部、107 試験結果格納部、108 試験結果判定部、109 試験結果出力部 1 communication test apparatus, 2 network, 3 communication system, 4 communication device, 11 communication unit, 12 operation unit, 13 display unit, 14 storage unit, 15 control unit, 15a CPU, 15b ROM, 15c RAM, 16 bus, 101 communication Monitoring unit, 102 Communication command storage unit, 103 Simulation information creation unit, 104 Simulation information storage unit, 105 Test object reception unit, 106 Communication test execution unit, 107 Test result storage unit, 108 Test result determination unit, 109 Test result output unit

Claims (5)

特定のネットワークに接続する通信機器間で通信される通信コマンドを収集して、該通信コマンドの送信時刻、送信元、及び送信先を示す情報と対応付けて通信コマンド格納部に格納する収集部と、
前記通信コマンド格納部に格納されている通信コマンドを指令内容毎にグループ化し、グループ毎に通信コマンドの送信タイミングを判別する判別部と、
通信機器毎に、該通信機器が送信する通信コマンドと、該通信コマンドの送信先及び前記判別部が判別した送信タイミングを示す情報と、を対応付けた前記通信機器を模擬するための模擬情報を作成する模擬情報作成部と、
前記模擬情報作成部が作成した模擬情報を用いて、試験対象の通信機器と通信する対向機を模擬することで、通信試験を実行する通信試験実行部と、
を備えることを特徴とする通信試験装置。
A collection unit that collects communication commands communicated between communication devices connected to a specific network and stores the communication commands in a communication command storage unit in association with information indicating a transmission time, a transmission source, and a transmission destination of the communication command; ,
A determination unit that groups communication commands stored in the communication command storage unit for each command content, and determines the transmission timing of the communication command for each group;
For each communication device , simulation information for simulating the communication device in which the communication command transmitted by the communication device is associated with information indicating the transmission destination of the communication command and the transmission timing determined by the determination unit. A simulated information creation section to be created;
Using the simulation information created by the simulation information creation unit, a communication test execution unit that performs a communication test by simulating the opposite device that communicates with the communication device to be tested,
A communication test apparatus comprising:
前記試験対象の通信機器から受信したデータを該試験対象の通信機器に対応する模擬情報の内容と比較することにより、通信異常の有無を判定する試験結果判定部をさらに備える、
ことを特徴とする請求項に記載の通信試験装置。
A test result determination unit for determining the presence or absence of communication abnormality by comparing the data received from the test target communication device with the content of the simulated information corresponding to the test target communication device;
The communication test apparatus according to claim 1 .
前記試験結果判定部による判定結果を出力する試験結果出力部をさらに備える、
ことを特徴とする請求項に記載の通信試験装置。
A test result output unit for outputting a determination result by the test result determination unit;
The communication test apparatus according to claim 2 .
実際の使用環境下において通信機器間で通信される通信コマンドを収集して、該通信コマンドの送信時刻、送信元、及び送信先を示す情報と対応付けて通信コマンド格納部に格納する収集ステップと、
前記通信コマンド格納部に格納されている通信コマンドを指令内容毎にグループ化し、グループ毎に通信コマンドの送信タイミングを判別する判別ステップと、
通信機器毎に、該通信機器が送信する通信コマンドと、該通信コマンドの送信先及び前記判別ステップで判別した送信タイミングを示す情報と、を対応付けた前記通信機器を模擬するための模擬情報を作成する模擬情報作成ステップと、
前記模擬情報作成ステップで作成した模擬情報を用いて、試験対象の通信機器と通信する対向機を模擬することで、通信試験を実行する通信試験実行ステップと、
を備えることを特徴とする通信試験方法。
A collection step of collecting communication commands communicated between communication devices under an actual use environment , and storing the communication commands in a communication command storage unit in association with information indicating a transmission time, a transmission source, and a transmission destination of the communication command; ,
A determination step of grouping communication commands stored in the communication command storage unit for each command content and determining a transmission timing of the communication command for each group;
For each communication device , simulation information for simulating the communication device in which the communication command transmitted by the communication device is associated with information indicating the transmission destination of the communication command and the transmission timing determined in the determination step. A simulation information creation step to be created;
Using the simulation information created in the simulation information creation step, a communication test execution step for performing a communication test by simulating an opposite device that communicates with a communication device to be tested,
A communication test method comprising:
コンピュータを、
実際の使用環境下において通信機器間で通信される通信コマンドを収集して、該通信コマンドの送信時刻、送信元、及び送信先を示す情報と対応付けて通信コマンド格納部に格納する収集部、
前記通信コマンド格納部に格納されている通信コマンドを指令内容毎にグループ化し、グループ毎に通信コマンドの送信タイミングを判別する判別部、
通信機器毎に、該通信機器が送信する通信コマンドと、該通信コマンドの送信先及び前記判別部が判別した送信タイミングを示す情報と、を対応付けた前記通信機器を模擬するための模擬情報を作成する模擬情報作成部、
前記模擬情報作成部が作成した模擬情報を用いて、試験対象の通信機器と通信する対向機を模擬することで、通信試験を実行する通信試験実行部、
として機能させるプログラム。
Computer
A collection unit that collects communication commands communicated between communication devices under an actual usage environment , and stores the communication commands in a communication command storage unit in association with information indicating the transmission time, transmission source, and transmission destination of the communication command;
A determination unit that groups communication commands stored in the communication command storage unit for each command content, and determines the transmission timing of the communication command for each group;
For each communication device , simulation information for simulating the communication device in which the communication command transmitted by the communication device is associated with information indicating the transmission destination of the communication command and the transmission timing determined by the determination unit. A simulation information creation section to be created,
Using the simulation information created by the simulation information creation unit, a communication test execution unit that performs a communication test by simulating an opposite device that communicates with a communication device to be tested,
Program to function as.
JP2013234446A 2013-11-12 2013-11-12 COMMUNICATION TEST DEVICE, COMMUNICATION TEST METHOD, AND PROGRAM Expired - Fee Related JP5805166B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013234446A JP5805166B2 (en) 2013-11-12 2013-11-12 COMMUNICATION TEST DEVICE, COMMUNICATION TEST METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013234446A JP5805166B2 (en) 2013-11-12 2013-11-12 COMMUNICATION TEST DEVICE, COMMUNICATION TEST METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2015095781A JP2015095781A (en) 2015-05-18
JP5805166B2 true JP5805166B2 (en) 2015-11-04

Family

ID=53197907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013234446A Expired - Fee Related JP5805166B2 (en) 2013-11-12 2013-11-12 COMMUNICATION TEST DEVICE, COMMUNICATION TEST METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP5805166B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7009786B2 (en) * 2017-06-06 2022-01-26 日本電気株式会社 Communication control methods, programs and devices
CN118068754B (en) * 2024-01-31 2026-04-03 湖北文理学院 Automotive instrument software testing methods, devices, equipment and storage media

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3212959B2 (en) * 1998-12-28 2001-09-25 日本電気通信システム株式会社 Automatic communication protocol test system having message / sequence editing function and test method
JP4494860B2 (en) * 2004-05-11 2010-06-30 新日本製鐵株式会社 Test support system and test support method
JP2006352290A (en) * 2005-06-14 2006-12-28 Nec Commun Syst Ltd Scenario creation device, test system, scenario creation method and program
JP5495764B2 (en) * 2009-12-18 2014-05-21 三菱電機株式会社 Information processing apparatus, information processing method, and program
US8547974B1 (en) * 2010-05-05 2013-10-01 Mu Dynamics Generating communication protocol test cases based on network traffic

Also Published As

Publication number Publication date
JP2015095781A (en) 2015-05-18

Similar Documents

Publication Publication Date Title
CN104765678B (en) The method and device tested the application on mobile terminal device
CN113760750B (en) Intelligent device testing method and device, electronic device and storage medium
CN107018523A (en) WIFI module testing method and device
CN104424099B (en) Method for testing software and system
CN104468655A (en) Method and system for testing reverse proxy software
KR20150025106A (en) Verification apparatus, terminal device, system, method and computer-readable medium for monitoring of application verification result
CN106776329B (en) Debugging method and debugging equipment of energy storage converter
JP5805166B2 (en) COMMUNICATION TEST DEVICE, COMMUNICATION TEST METHOD, AND PROGRAM
CN103139004A (en) Method and system for simulating network bandwidth by using network rate-limiting tool
CN114328196B (en) Data leakage prevention system testing method, device, equipment and storage medium
CN112559335B (en) Test method, device, equipment and storage medium
CN111488283B (en) Task generation method and device, electronic equipment and storage medium
CN117857381B (en) A method and apparatus for automatic testing of distributed services
CN105744556A (en) Method and system for base station fault acquisition
KR101794016B1 (en) Method of analyzing application objects based on distributed computing, method of providing item executable by computer, server performing the same and storage media storing the same
CN119127691A (en) A regression testing method, device, equipment and medium based on SDK
JP2016001825A (en) Communication test device and verification operation support method
JP2011179706A (en) Data collecting device, air conditioning device, data collecting system, data collecting method and program
CN117520150A (en) Test methods and test systems
CN112040564B (en) Information transmission method, readable storage medium and electronic device
JP2014175699A (en) Packet replay device and packet replay method
CN103380609A (en) Communication device
JP2013232035A (en) Information processing system, information processing device, information processing method, and program
CN105933368A (en) User behavior data uploading method and device
CN105279031A (en) Information processing method and system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150519

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150714

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150804

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150901

R150 Certificate of patent or registration of utility model

Ref document number: 5805166

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees