JP6818568B2 - Communication device, communication specification difference extraction method and communication specification difference extraction program - Google Patents

Communication device, communication specification difference extraction method and communication specification difference extraction program Download PDF

Info

Publication number
JP6818568B2
JP6818568B2 JP2017012254A JP2017012254A JP6818568B2 JP 6818568 B2 JP6818568 B2 JP 6818568B2 JP 2017012254 A JP2017012254 A JP 2017012254A JP 2017012254 A JP2017012254 A JP 2017012254A JP 6818568 B2 JP6818568 B2 JP 6818568B2
Authority
JP
Japan
Prior art keywords
communication
actual
common
specifications
difference
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.)
Active
Application number
JP2017012254A
Other languages
Japanese (ja)
Other versions
JP2018121245A (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 JP2017012254A priority Critical patent/JP6818568B2/en
Publication of JP2018121245A publication Critical patent/JP2018121245A/en
Application granted granted Critical
Publication of JP6818568B2 publication Critical patent/JP6818568B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Description

本発明は、通信仕様の検証に関する。 The present invention relates to verification of communication specifications.

特許文献1には、汎用的な通信装置の動作試験を行うための動作試験装置と動作試験方法とが開示されている。また、特許文献2には、携帯電話のソフトウェアに対する機能試験を自動的に行う試験方法が開示されている。また、特許文献3には、障害原因解析システムに利用される障害原因判定ルールを、過去のイベントログに基づいて生成する方法が開示されている。また、特許文献4には、入力されたプログラムの構造に関する内容を仕様書として生成する方法が開示されている。 Patent Document 1 discloses an operation test device and an operation test method for performing an operation test of a general-purpose communication device. Further, Patent Document 2 discloses a test method for automatically performing a functional test on software of a mobile phone. Further, Patent Document 3 discloses a method of generating a failure cause determination rule used in a failure cause analysis system based on a past event log. Further, Patent Document 4 discloses a method of generating the contents related to the structure of the input program as a specification.

特開2010−213228号公報Japanese Unexamined Patent Publication No. 2010-21228 特開2003−099288号公報Japanese Unexamined Patent Publication No. 2003-099288 特開2011−209908号公報Japanese Unexamined Patent Publication No. 2011-209908 特開2010−176553号公報Japanese Unexamined Patent Publication No. 2010-176553

複数の装置で構成されるシステムについて、通信シーケンス等の通信仕様の変更が発生するたび、通信仕様書の通信仕様記述を都度最新の状態に更新する必要がある。その際に更新を怠ってしまうと、仕様書定義と実際の通信仕様の内容が乖離し、当該通信仕様書の内容を後の開発で参照できなくなってしまう。一度乖離した通信仕様を、机上検討で最新の状態まで追従させるには大量の工数を要する。また、意図しない仕様変更を机上検討のみで導出することは困難である。
特許文献1の技術は、仕様書データから試験シナリオを作成し自動試験を実行することができるが、通信仕様の抽出及び検証を行うことはできない。
特許文献2の技術は、仕様書データから試験シナリオを作成することにより、携帯電話のソフトウェアに対して機能面まで踏み込んだ自動試験を実行することができるが、通信仕様の抽出及び検証を行うことはできない。
特許文献3の技術は、サーバが出力した警告イベントから障害発生時の警告イベント発生ルールを抽出することができるが、通信仕様の抽出及び検証を行うことはできない。
特許文献4の技術は、シンボル及びコメントの違いといったプログラム構造を相違点として抽出することができるが、通信シーケンスといったプログラム動作の相違点を抽出することはできない。また、特定の通信を発生させる機構を持っていない。
For a system composed of a plurality of devices, it is necessary to update the communication specification description of the communication specification to the latest state each time the communication specification such as the communication sequence is changed. If the update is neglected at that time, the specification definition and the content of the actual communication specification will deviate from each other, and the content of the communication specification cannot be referred to in later development. It takes a large amount of man-hours to follow the communication specifications that have once deviated to the latest state in a desk study. In addition, it is difficult to derive unintended specification changes only by desk examination.
The technique of Patent Document 1 can create a test scenario from specification data and execute an automatic test, but cannot extract and verify communication specifications.
The technology of Patent Document 2 can perform an automatic test that goes into the functional aspect of mobile phone software by creating a test scenario from the specification data, but it also extracts and verifies communication specifications. Can't.
The technique of Patent Document 3 can extract a warning event occurrence rule when a failure occurs from a warning event output by a server, but cannot extract and verify communication specifications.
The technique of Patent Document 4 can extract program structures such as differences in symbols and comments as differences, but cannot extract differences in program operations such as communication sequences. Moreover, it does not have a mechanism for generating specific communication.

以上のように、従来の技術では、開発者は、通信仕様書に定義されている通信仕様と実際の通信仕様とが一致しているか否かを効率的に判断することができないという課題がある。 As described above, in the conventional technology, there is a problem that the developer cannot efficiently judge whether or not the communication specifications defined in the communication specifications and the actual communication specifications match. ..

本発明は、このような課題を解決することを主な目的とする。より具体的には、本発明は、開発者が、通信仕様書に定義されている通信仕様と実際の通信仕様とが一致しているか否かを効率的に判断できるようにすることを主な目的とする。 A main object of the present invention is to solve such a problem. More specifically, the present invention mainly enables the developer to efficiently determine whether or not the communication specifications defined in the communication specifications match the actual communication specifications. The purpose.

本発明に係る通信装置は、
通信仕様書に定義されている通信仕様である定義通信仕様に沿って通信先装置との間で通信を行う通信部と、
前記通信部と前記通信先装置との間の通信の通信ログを生成する通信ログ生成部と、
前記通信ログ生成部により生成された通信ログを解析して、前記通信部と前記通信先装置との間の通信で生じた通信仕様を実態通信仕様として抽出する実態通信仕様抽出部と、
前記定義通信仕様と前記実態通信仕様との差分を抽出する差分抽出部とを有する。
The communication device according to the present invention is
A communication unit that communicates with the communication destination device according to the definition communication specifications, which are the communication specifications defined in the communication specifications.
A communication log generation unit that generates a communication log of communication between the communication unit and the communication destination device,
An actual communication specification extraction unit that analyzes the communication log generated by the communication log generation unit and extracts the communication specifications generated in the communication between the communication unit and the communication destination device as the actual communication specifications.
It has a difference extraction unit that extracts the difference between the defined communication specification and the actual communication specification.

本発明では、定義通信仕様に沿って通信先装置との間で通信を行い、通信先装置との間の通信で生じた通信仕様を実態通信仕様として抽出する。そして、定義通信仕様と実態通信仕様との差分を抽出する。このため、本発明によれば、開発者は、抽出された差分を解析することで、通信仕様書に定義されている通信仕様と実際の通信仕様とが一致しているか否かを効率的に判断することができる。 In the present invention, communication is performed with the communication destination device according to the defined communication specification, and the communication specification generated by the communication with the communication destination device is extracted as the actual communication specification. Then, the difference between the defined communication specification and the actual communication specification is extracted. Therefore, according to the present invention, the developer can efficiently determine whether or not the communication specifications defined in the communication specifications and the actual communication specifications match by analyzing the extracted differences. You can judge.

実施の形態1に係る通信仕様検証装置の機能構成例を示す図。The figure which shows the functional configuration example of the communication specification verification apparatus which concerns on Embodiment 1. FIG. 実施の形態1に係る通信仕様検証装置の全体動作を示すフローチャート。The flowchart which shows the whole operation of the communication specification verification apparatus which concerns on Embodiment 1. 実施の形態1に係る実態通信仕様抽出処理の詳細処理を示すフローチャート。The flowchart which shows the detailed processing of the actual communication specification extraction processing which concerns on Embodiment 1. 実施の形態1に係る通信仕様検証装置のハードウェア構成例を示す図。The figure which shows the hardware configuration example of the communication specification verification apparatus which concerns on Embodiment 1. FIG.

以下、本発明の実施の形態について、図を用いて説明する。以下の実施の形態の説明及び図面において、同一の符号を付したものは、同一の部分または相当する部分を示す。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description and drawings of the embodiments, those having the same reference numerals indicate the same parts or corresponding parts.

実施の形態1.
***構成の説明***
図1は、本実施の形態に係る通信仕様検証装置10の機能構成例を示す。また、図4は、本実施の形態に係る通信仕様検証装置10のハードウェア構成例を示す。
図1に示すように、通信仕様検証装置10は、検証対象装置30と接続されており、検証対象装置30と通信を行う。検証対象装置30は複数存在するものとする。
通信仕様検証装置10は、通信装置に相当する。検証対象装置30は、通信先装置に相当する。また、通信仕様検証装置10で行われる動作は、通信仕様差分抽出方法及び通信仕様差分抽出プログラムに相当する。
Embodiment 1.
*** Explanation of configuration ***
FIG. 1 shows an example of a functional configuration of the communication specification verification device 10 according to the present embodiment. Further, FIG. 4 shows a hardware configuration example of the communication specification verification device 10 according to the present embodiment.
As shown in FIG. 1, the communication specification verification device 10 is connected to the verification target device 30 and communicates with the verification target device 30. It is assumed that there are a plurality of verification target devices 30.
The communication specification verification device 10 corresponds to a communication device. The verification target device 30 corresponds to the communication destination device. Further, the operation performed by the communication specification verification device 10 corresponds to the communication specification difference extraction method and the communication specification difference extraction program.

先ず、図4を参照して、通信仕様検証装置10のハードウェア構成を説明する。 First, the hardware configuration of the communication specification verification device 10 will be described with reference to FIG.

通信仕様検証装置10は、コンピュータである。
通信仕様検証装置10は、ハードウェアとして、プロセッサ901、記憶装置902、通信インタフェース903及び入出力インタフェース904を備える。
記憶装置902には、図1に示す検証シナリオ生成部11、検証シナリオ実行部12、実態通信仕様抽出部13、差分抽出部14及び出力部15の機能を実現するプログラムが記憶されている。
そして、プロセッサ901がこれらプログラムを実行して、後述する検証シナリオ生成部11、検証シナリオ実行部12、実態通信仕様抽出部13、差分抽出部14及び出力部15の動作を行う。
図1では、プロセッサ901が検証シナリオ生成部11、検証シナリオ実行部12、実態通信仕様抽出部13、差分抽出部14及び出力部15の機能を実現するプログラムを実行している状態を模式的に表している。
また、記憶装置902は、図1に示す通信仕様書17、検証シナリオ18、通信ログ19、実態通信仕様20、通信仕様差分21を記憶する。
通信インタフェース903は、検証対象装置30と通信を行う際に用いられる。
入出力インタフェース904は、通信仕様検証装置10のユーザ(開発者)からの指示を入力し、また、ユーザに各種情報を提示する。
The communication specification verification device 10 is a computer.
The communication specification verification device 10 includes a processor 901, a storage device 902, a communication interface 903, and an input / output interface 904 as hardware.
The storage device 902 stores a program that realizes the functions of the verification scenario generation unit 11, the verification scenario execution unit 12, the actual communication specification extraction unit 13, the difference extraction unit 14, and the output unit 15 shown in FIG.
Then, the processor 901 executes these programs to operate the verification scenario generation unit 11, the verification scenario execution unit 12, the actual communication specification extraction unit 13, the difference extraction unit 14, and the output unit 15, which will be described later.
FIG. 1 schematically shows a state in which the processor 901 is executing a program that realizes the functions of the verification scenario generation unit 11, the verification scenario execution unit 12, the actual communication specification extraction unit 13, the difference extraction unit 14, and the output unit 15. Represents.
Further, the storage device 902 stores the communication specification 17, the verification scenario 18, the communication log 19, the actual communication specification 20, and the communication specification difference 21 shown in FIG.
The communication interface 903 is used when communicating with the verification target device 30.
The input / output interface 904 inputs an instruction from the user (developer) of the communication specification verification device 10 and presents various information to the user.

次に、図1を参照して、通信仕様検証装置10の機能構成を説明する。 Next, the functional configuration of the communication specification verification device 10 will be described with reference to FIG.

検証シナリオ生成部11は、通信仕様書17から検証シナリオ18を生成する。通信仕様書17は、通信仕様が定義されているデータである。通信仕様書17は、例えば、UML(Unified Modeling Language)データである。通信仕様書17に定義されている通信仕様を定義通信仕様という。検証シナリオ18は、定義通信仕様から展開された、実際に検証対象装置30と通信を行うために必要な手順が記述されたデータである。検証シナリオ18には、例えば、定義通信仕様に対応したコマンドシーケンスが記述される。 The verification scenario generation unit 11 generates the verification scenario 18 from the communication specification 17. The communication specification 17 is data in which the communication specification is defined. The communication specification 17 is, for example, UML (Unified Modeling Language) data. The communication specifications defined in the communication specifications 17 are called definition communication specifications. The verification scenario 18 is data that describes the procedure necessary for actually communicating with the verification target device 30, which is developed from the defined communication specifications. In the verification scenario 18, for example, a command sequence corresponding to the defined communication specification is described.

検証シナリオ実行部12は、検証シナリオ18に従って、検証対象装置30との間で通信を行う。換言すると、検証シナリオ実行部12は、定義通信仕様に沿って検証対象装置30との間で通信を行う。
また、検証シナリオ実行部12は、検証対象装置30との間の通信の通信ログ19を生成する。
検証シナリオ実行部12は、通信部及び通信ログ生成部に相当する。また、検証シナリオ実行部12で行われる処理は、通信ステップ及び通信ログ生成ステップに相当する。
The verification scenario execution unit 12 communicates with the verification target device 30 according to the verification scenario 18. In other words, the verification scenario execution unit 12 communicates with the verification target device 30 according to the defined communication specifications.
Further, the verification scenario execution unit 12 generates a communication log 19 for communication with the verification target device 30.
The verification scenario execution unit 12 corresponds to a communication unit and a communication log generation unit. Further, the processing performed by the verification scenario execution unit 12 corresponds to the communication step and the communication log generation step.

実態通信仕様抽出部13は、通信ログ19を解析して、検証対象装置30との間の通信で生じた通信仕様を実態通信仕様として抽出する。そして、実態通信仕様抽出部13は、抽出した実態通信仕様が記述される実態通信仕様20を生成する。なお、実態通信仕様20は、例えば、通信仕様書17と同様に、UMLデータである。実態通信仕様は、検証対象装置30との通信で用いられたコマンドの送受信手順(通信シーケンス)、オペランドの数及びオペランドの内容等で構成される。
実態通信仕様抽出部13で行われる処理は、実態通信仕様抽出ステップに相当する。
The actual communication specification extraction unit 13 analyzes the communication log 19 and extracts the communication specification generated by the communication with the verification target device 30 as the actual communication specification. Then, the actual communication specification extraction unit 13 generates the actual communication specification 20 in which the extracted actual communication specification is described. The actual communication specification 20 is UML data, as in the communication specification 17, for example. The actual communication specification is composed of a command transmission / reception procedure (communication sequence) used for communication with the verification target device 30, the number of operands, the contents of the operands, and the like.
The process performed by the actual communication specification extraction unit 13 corresponds to the actual communication specification extraction step.

差分抽出部14は、通信仕様書17で定義されている定義通信仕様と、実態通信仕様20に記述されている実態通信仕様との差分を抽出する。そして、差分抽出部14は、抽出した差分が示される通信仕様差分21を生成する。
差分抽出部14で行われる処理は、差分抽出ステップに相当する。
The difference extraction unit 14 extracts the difference between the defined communication specification defined in the communication specification 17 and the actual communication specification described in the actual communication specification 20. Then, the difference extraction unit 14 generates the communication specification difference 21 in which the extracted difference is shown.
The process performed by the difference extraction unit 14 corresponds to the difference extraction step.

出力部15は、通信仕様差分21を入出力インタフェース904を介して出力する。つまり、出力部15は、定義通信仕様と実態通信仕様との差分を出力する。
出力部15が通信仕様差分21を出力することにより、通信仕様検証装置10のユーザ(開発者)が通信仕様差分21を解析して、通信仕様書に定義されている定義通信仕様と実際の通信により得られた実態通信仕様とが一致しているか否かを効率的に判断することができる。
The output unit 15 outputs the communication specification difference 21 via the input / output interface 904. That is, the output unit 15 outputs the difference between the defined communication specification and the actual communication specification.
When the output unit 15 outputs the communication specification difference 21, the user (developer) of the communication specification verification device 10 analyzes the communication specification difference 21 and actually communicates with the defined communication specification defined in the communication specification. It is possible to efficiently judge whether or not the actual communication specifications obtained by the above are in agreement.

***動作の説明***
次に、図を用いて、通信仕様検証装置10の動作例を説明する。
*** Explanation of operation ***
Next, with reference to FIG. 2, an operation example of the communication specification verification device 10.

先ず、ステップS101において、検証シナリオ生成部11が、通信仕様書17から、検証シナリオ18を生成する。
次に、ステップS102において、検証シナリオ実行部12が、検証シナリオ18に記載されている内容(例えば、コマンドシーケンス)を解釈する。そして、検証シナリオ実行部12は、解釈結果に基づき、検証対象装置30と通信を行う。
並行して、検証シナリオ実行部12は、ステップS103において、通信ログを生成する。
検証シナリオ実行部12は、ステップS102及びステップS103を指定された回数実行する。具体的には、検証シナリオ実行部12は、検証シナリオ18に従って複数の検証対象装置30と通信を行い、複数の検証対象装置30との通信に対応させて、複数の通信ログ19を生成する。
ステップS102及びステップS103が指定回数実行されると(ステップS104でYES)、ステップS105において、実態通信仕様抽出部13が、通信ログ19を解析し、通信ログ19から実態通信仕様を抽出する。
First, in step S101, the verification scenario generation unit 11 generates the verification scenario 18 from the communication specification 17.
Next, in step S102, the verification scenario execution unit 12 interprets the contents (for example, the command sequence) described in the verification scenario 18. Then, the verification scenario execution unit 12 communicates with the verification target device 30 based on the interpretation result.
At the same time, the verification scenario execution unit 12 generates a communication log in step S103.
The verification scenario execution unit 12 executes steps S102 and S103 a specified number of times. Specifically, the verification scenario execution unit 12 communicates with the plurality of verification target devices 30 according to the verification scenario 18, and generates a plurality of communication logs 19 in correspondence with the communication with the plurality of verification target devices 30.
When steps S102 and S103 are executed a specified number of times (YES in step S104), in step S105, the actual communication specification extraction unit 13 analyzes the communication log 19 and extracts the actual communication specification from the communication log 19.

ここで、図を用いて、実態通信仕様抽出処理(ステップS105)の詳細を説明する。 Here, with reference to FIG. 3, illustrating details of actual communication specification extracting process (step S105).

ステップS201において、実態通信仕様抽出部13は、ステップS103で生成された通信ログ19から、各回の通信で得られた通信シーケンスを抽出する。
次に、ステップS202において、実態通信仕様抽出部13は、ステップS201で抽出された通信シーケンス(コマンド送受信手順)の中から、各回の通信で共通に実行さている通信シーケンスを実態共通通信シーケンスとして抽出する。実態共通通信シーケンスは、複数の実態通信仕様の間で共通する要素であり、実態共通仕様要素に相当する。
次に、ステップS203において、各回の通信に固有の通信シーケンスを実態可変通信シーケンスとして抽出する。
実態通信仕様には、実態共通通信シーケンスと実態可変通信シーケンスが含まれる。
In step S201, the actual communication specification extraction unit 13 extracts the communication sequence obtained in each communication from the communication log 19 generated in step S103.
Next, in step S202, the actual communication specification extraction unit 13 extracts the communication sequence commonly executed in each communication as the actual common communication sequence from the communication sequences (command transmission / reception procedure) extracted in step S201. To do. The actual common communication sequence is an element common among a plurality of actual communication specifications, and corresponds to an actual common specification element.
Next, in step S203, a communication sequence unique to each communication is extracted as an actual variable communication sequence.
The actual communication specifications include an actual common communication sequence and an actual variable communication sequence.

図2に戻り、ステップS106において、差分抽出部14が、定義通信仕様と実態通信仕様との差分を抽出する。そして、差分抽出部14は、抽出した差分が示される通信仕様差分21を生成する。
通信仕様書17には、複数の通信仕様書17で共通する通信シーケンスである定義共通通信シーケンスと、通信仕様書17ごとに固有の通信シーケンスである定義可変通信シーケンスが含まれている。なお、定義共通通信シーケンスは、定義共通仕様要素に相当し、定義可変通信シーケンスは、定義可変仕様要素に相当する。
差分抽出部14は、定義共通通信シーケンスと実態共通通信シーケンスとを比較して差分をとる。また、差分抽出部14は、定義可変通信シーケンスと実態可変通信シーケンスとを比較して差分をとる。
そして、出力部15が、入出力インタフェース904を介して、通信仕様差分21をユーザに提示する。通信仕様差分21の提示は、画面表示、レポート出力など提示形式は問わない。
Returning to FIG. 2, in step S106, the difference extraction unit 14 extracts the difference between the defined communication specification and the actual communication specification. Then, the difference extraction unit 14 generates the communication specification difference 21 in which the extracted difference is shown.
The communication specification 17 includes a definition common communication sequence which is a communication sequence common to a plurality of communication specifications 17, and a definition variable communication sequence which is a communication sequence unique to each communication specification 17. The definition common communication sequence corresponds to the definition common specification element, and the definition variable communication sequence corresponds to the definition variable specification element.
The difference extraction unit 14 compares the definition common communication sequence with the actual condition common communication sequence and obtains a difference. Further, the difference extraction unit 14 compares the defined variable communication sequence with the actual variable communication sequence and obtains a difference.
Then, the output unit 15 presents the communication specification difference 21 to the user via the input / output interface 904. The presentation of the communication specification difference 21 may be in any presentation format such as screen display and report output.

***実施の形態の効果の説明***
以上のように、本実施の形態では、通信仕様検証装置10は、定義通信仕様に沿って検証対象装置30との間で通信を行い、検証対象装置30との間の通信で生じた通信仕様を実態通信仕様として抽出する。そして、通信仕様検証装置10は、定義通信仕様と実態通信仕様との差分を抽出する。このため、本実施の形態によれば、開発者は、抽出された差分を解析することで、通信仕様書に定義されている通信仕様と実際の通信仕様とが一致しているか、乖離しているかを効率的に判断することができる。
また、開発者は、通信仕様書に定義されている通信仕様と実際の通信仕様との乖離箇所を即座に確認できるため、通信仕様書の修正を容易に行うことができる。
*** Explanation of the effect of the embodiment ***
As described above, in the present embodiment, the communication specification verification device 10 communicates with the verification target device 30 according to the defined communication specifications, and the communication specifications generated by the communication with the verification target device 30. Is extracted as the actual communication specification. Then, the communication specification verification device 10 extracts the difference between the defined communication specification and the actual communication specification. Therefore, according to the present embodiment, the developer analyzes the extracted difference to see if the communication specifications defined in the communication specifications match or deviate from the actual communication specifications. It is possible to efficiently judge whether or not.
In addition, since the developer can immediately confirm the difference between the communication specification defined in the communication specification and the actual communication specification, the communication specification can be easily modified.

***ハードウェア構成の説明***
最後に、通信仕様検証装置10のハードウェア構成の補足説明を行う。
図4に示すプロセッサ901は、プロセッシングを行うIC(Integrated Circuit)である。
プロセッサ901は、CPU(Central Processing Unit)、DSP(Digital Signal Processor)等である。
図4に示す記憶装置902は、RAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリ、HDD(Hard Disk Drive)等である。
図4に示す通信インタフェース903は、データを受信するレシーバー及びデータを送信するトランスミッターを含む。
通信インタフェース903は、例えば、通信チップ又はNIC(Network Interface Card)である。
入出力インタフェース904は、例えば、マウス、キーボード、ディスプレイ装置である。
*** Explanation of hardware configuration ***
Finally, a supplementary explanation of the hardware configuration of the communication specification verification device 10 will be given.
The processor 901 shown in FIG. 4 is an IC (Integrated Circuit) that performs processing.
The processor 901 is a CPU (Central Processing Unit), a DSP (Digital Signal Processor), or the like.
The storage device 902 shown in FIG. 4 is a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an HDD (Hard Disk Drive), or the like.
The communication interface 903 shown in FIG. 4 includes a receiver for receiving data and a transmitter for transmitting data.
The communication interface 903 is, for example, a communication chip or a NIC (Network Interface Card).
The input / output interface 904 is, for example, a mouse, a keyboard, and a display device.

また、記憶装置902には、OS(Operating System)も記憶されている。
そして、OSの少なくとも一部がプロセッサ901により実行される。
プロセッサ901はOSの少なくとも一部を実行しながら、検証シナリオ生成部11、検証シナリオ実行部12、実態通信仕様抽出部13、差分抽出部14及び出力部15の機能を実現するプログラムを実行する。
プロセッサ901がOSを実行することで、タスク管理、メモリ管理、ファイル管理、通信制御等が行われる。
また、検証シナリオ生成部11、検証シナリオ実行部12、実態通信仕様抽出部13、差分抽出部14及び出力部15の処理の結果を示す情報、データ、信号値及び変数値の少なくともいずれかが、記憶装置902、プロセッサ901内のレジスタ及びキャッシュメモリの少なくともいずれかに記憶される。
また、検証シナリオ生成部11、検証シナリオ実行部12、実態通信仕様抽出部13、差分抽出部14及び出力部15の機能を実現するプログラムは、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ブルーレイ(登録商標)ディスク、DVD等の可搬記憶媒体に記憶されてもよい。
Further, the storage device 902 also stores an OS (Operating System).
Then, at least a part of the OS is executed by the processor 901.
The processor 901 executes a program that realizes the functions of the verification scenario generation unit 11, the verification scenario execution unit 12, the actual communication specification extraction unit 13, the difference extraction unit 14, and the output unit 15 while executing at least a part of the OS.
When the processor 901 executes the OS, task management, memory management, file management, communication control, and the like are performed.
In addition, at least one of the information, data, signal value, and variable value indicating the processing results of the verification scenario generation unit 11, the verification scenario execution unit 12, the actual communication specification extraction unit 13, the difference extraction unit 14, and the output unit 15 is It is stored in at least one of the storage device 902, the register in the processor 901, and the cache memory.
The programs that realize the functions of the verification scenario generation unit 11, the verification scenario execution unit 12, the actual communication specification extraction unit 13, the difference extraction unit 14, and the output unit 15 are magnetic disks, flexible disks, optical disks, compact disks, and Blu-ray discs. Registered trademark) It may be stored in a portable storage medium such as a disc or a DVD.

また、検証シナリオ生成部11、検証シナリオ実行部12、実態通信仕様抽出部13、差分抽出部14及び出力部15の「部」を、「回路」又は「工程」又は「手順」又は「処理」に読み替えてもよい。
また、通信仕様検証装置10は、ロジックIC(Integrated Circuit)、GA(Gate Array)、ASIC(Application Specific Integrated Circuit)、FPGA(Field−Programmable Gate Array)といった電子回路により実現されてもよい。
この場合は、検証シナリオ生成部11、検証シナリオ実行部12、実態通信仕様抽出部13、差分抽出部14及び出力部15は、それぞれ電子回路の一部として実現される。
なお、プロセッサ及び上記の電子回路を総称してプロセッシングサーキットリーともいう。
Further, the "parts" of the verification scenario generation unit 11, the verification scenario execution unit 12, the actual communication specification extraction unit 13, the difference extraction unit 14, and the output unit 15 are referred to as "circuit" or "process" or "procedure" or "processing". It may be read as.
Further, the communication specification verification device 10 is realized by an electronic circuit such as a logic IC (Integrated Circuit), a GA (Gate Array), an ASIC (Application Specific Integrated Circuit), or an FPGA (Field-Programmable Gate Array).
In this case, the verification scenario generation unit 11, the verification scenario execution unit 12, the actual communication specification extraction unit 13, the difference extraction unit 14, and the output unit 15 are each realized as a part of an electronic circuit.
The processor and the above electronic circuits are also collectively referred to as a processing circuit.

10 通信仕様検証装置、11 検証シナリオ生成部、12 検証シナリオ実行部、13 実態通信仕様抽出部、14 差分抽出部、15 出力部、17 通信仕様書、18 検証シナリオ、19 通信ログ、20 実態通信仕様、21 通信仕様差分、30 検証対象装置、901 プロセッサ、902 記憶装置、903 通信インタフェース、904 入出力インタフェース。 10 Communication specification verification device, 11 Verification scenario generator, 12 Verification scenario execution unit, 13 Actual communication specification extraction unit, 14 Difference extraction unit, 15 Output unit, 17 Communication specifications, 18 Verification scenario, 19 Communication log, 20 Actual communication Specifications, 21 communication specification difference, 30 verification target device, 901 processor, 902 storage device, 903 communication interface, 904 input / output interface.

Claims (5)

複数の通信仕様書の間で共通する通信仕様の要素である定義共通仕様要素と、通信仕様書ごとに可変の通信仕様の要素である定義可変仕様要素とが含まれる定義通信仕様に沿って通信先装置との間で通信を行う通信部と、
前記通信部と前記通信先装置との間の通信と対応した通信ログを生成する通信ログ生成部と、
前記通信ログ生成部により生成された前記通信ログを解析して、前記通信部と前記通信先装置との間の通信で生じた通信仕様を実態通信仕様として抽出する実態通信仕様抽出部と、
前記定義共通仕様要素と、複数の前記実態通信仕様の間で共通する要素である実態共通仕様要素との差分を抽出し、前記定義可変仕様要素と、前記複数の前記実態通信仕様の前記実態共通仕様要素以外の要素である実態可変仕様要素との差分を抽出する差分抽出部
とを有する通信装置。
The definition common specifications element is an element of the communication specification to be common between a plurality of communication specifications, an element of variable communication specifications are defined variable specification element and along a defined communication specification that is part of the in each communication specification A communication unit that communicates with the communication destination device,
A communication log generation unit that generates a communication log corresponding to communication between the communication unit and the communication destination device,
By analyzing the communication log generated by the communication log generation unit, and the actual communication specification extracting unit that extracts the communication specifications occurring in communication between said communication unit said communications apparatus as actual communication specification,
The difference between the definition common specification element and the actual condition common specification element which is an element common among the plurality of actual communication specifications is extracted, and the definition variable specification element and the actual condition common to the plurality of actual communication specifications are extracted. A communication device having a difference extraction unit that extracts a difference from an actual variable specification element, which is an element other than a specification element.
前記通信装置は、更に、
前記差分抽出部により抽出された前記定義共通仕様要素と前記実態共通仕様要素との差分と、前記定義可変仕様要素と前記実態可変仕様要素との差分を出力する出力部を有する請求項1に記載の通信装置。
The communication device further
The first aspect of claim 1 has an output unit that outputs the difference between the definition common specification element and the actual condition common specification element extracted by the difference extraction unit, and the difference between the definition variable specification element and the actual condition variable specification element. Communication device.
前記実態通信仕様抽出部は、
前記通信部と前記通信先装置との間の通信で生じた、コマンドの送受信手順、オペランドの数及びオペランドの内容の少なくともいずれかを実態通信仕様として抽出する請求項1に記載の通信装置。
The actual communication specification extraction unit
The communication apparatus according to claim 1 for extracting the generated in communication between the communication unit and the communication destination apparatus, procedure for transmitting and receiving commands, at least one of the contents of the number and Operand as actual conditions communication specifications.
コンピュータである通信装置が、複数の通信仕様書の間で共通する通信仕様の要素である定義共通仕様要素と、通信仕様書ごとに可変の通信仕様の要素である定義可変仕様要素とが含まれる定義通信仕様に沿って通信先装置との間で通信を行う通信ステップと、
前記通信装置が、前記通信先装置との間の通信と対応した通信ログを生成する通信ログ生成ステップと、
前記通信装置が、前記通信ログ生成ステップにより生成された前記通信ログを解析して、前記通信先装置との間の通信で生じた通信仕様を実態通信仕様として抽出する実態通信仕様抽出ステップと、
前記通信装置が、前記定義共通仕様要素と、複数の前記実態通信仕様の間で共通する要素である実態共通仕様要素との差分を抽出し、前記定義可変仕様要素と、前記複数の前記実態通信仕様の前記実態共通仕様要素以外の要素である実態可変仕様要素との差分を抽出する差分抽出ステップとを有する通信仕様差分抽出方法。
A communication device that is a computer includes a definition common specification element that is an element of a communication specification common among a plurality of communication specifications and a definition variable specification element that is an element of a communication specification that is variable for each communication specification. A communication step for communicating with a communication destination device according to the definition communication specifications
A communication log generation step in which the communication device generates a communication log corresponding to communication with the communication destination device.
The communication device analyzes the communication log generated by the communication log generation step, the actual communication specification extraction step of the communication specification generated in the communication is extracted as actual communication specification between the communication destination device,
The communication device extracts the difference between the definition common specification element and the actual condition common specification element which is an element common among the plurality of actual condition communication specifications, and extracts the definition variable specification element and the plurality of actual condition communication. A communication specification difference extraction method including a difference extraction step for extracting a difference from an actual condition variable specification element which is an element other than the actual condition common specification element of the specification.
コンピュータである通信装置に、
複数の通信仕様書の間で共通する通信仕様の要素である定義共通仕様要素と、通信仕様書ごとに可変の通信仕様の要素である定義可変仕様要素とが含まれる定義通信仕様に沿って通信先装置との間で通信を行う通信ステップと、
前記通信先装置との間の通信と対応した通信ログを生成する通信ログ生成ステップと、
前記通信ログ生成ステップにより生成された前記通信ログを解析して、前記通信先装置との間の通信で生じた通信仕様を実態通信仕様として抽出する実態通信仕様抽出ステップと、
前記定義共通仕様要素と、複数の前記実態通信仕様の間で共通する要素である実態共通仕様要素との差分を抽出し、前記定義可変仕様要素と、前記複数の前記実態通信仕様の前記実態共通仕様要素以外の要素である実態可変仕様要素との差分を抽出する差分抽出ステップとを実行させる通信仕様差分抽出プログラム。
For communication devices that are computers
The definition common specifications element is an element of the communication specification to be common between a plurality of communication specifications, an element of variable communication specifications are defined variable specification element and along a defined communication specification that is part of the in each communication specification Communication steps for communicating with the communication destination device,
A communication log generation step for generating a communication log corresponding to communication with the communication destination device, and
By analyzing the communication log generated by the communication log generation step, the actual communication specification extraction step of the communication specification generated in the communication is extracted as actual communication specification between the communication destination device,
The difference between the definition common specification element and the actual condition common specification element which is an element common among the plurality of actual communication specifications is extracted, and the definition variable specification element and the actual condition common to the plurality of actual communication specifications are extracted. A communication specification difference extraction program that executes a difference extraction step that extracts the difference from the actual variable specification element, which is an element other than the specification element .
JP2017012254A 2017-01-26 2017-01-26 Communication device, communication specification difference extraction method and communication specification difference extraction program Active JP6818568B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017012254A JP6818568B2 (en) 2017-01-26 2017-01-26 Communication device, communication specification difference extraction method and communication specification difference extraction program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017012254A JP6818568B2 (en) 2017-01-26 2017-01-26 Communication device, communication specification difference extraction method and communication specification difference extraction program

Publications (2)

Publication Number Publication Date
JP2018121245A JP2018121245A (en) 2018-08-02
JP6818568B2 true JP6818568B2 (en) 2021-01-20

Family

ID=63043179

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017012254A Active JP6818568B2 (en) 2017-01-26 2017-01-26 Communication device, communication specification difference extraction method and communication specification difference extraction program

Country Status (1)

Country Link
JP (1) JP6818568B2 (en)

Also Published As

Publication number Publication date
JP2018121245A (en) 2018-08-02

Similar Documents

Publication Publication Date Title
US9990458B2 (en) Generic design rule checking (DRC) test case extraction
US20180309630A1 (en) Automated constraint-based deployment of microservices to cloud-based server sets
US20100146340A1 (en) Analyzing Coverage of Code Changes
US11030074B2 (en) Code update based on detection of change in runtime code during debugging
WO2017020459A1 (en) Method and apparatus for configuring plugin package for host
US20170371687A1 (en) Automated globalization enablement on development operations
US10241759B2 (en) Detecting open source components built into mobile applications
US10678572B2 (en) Framework for automated globalization enablement on development operations
US20150254309A1 (en) Operation search method and operation search apparatus
CN114398673A (en) Application compliance detection method and device, storage medium and electronic equipment
US20080295058A1 (en) Representing binary code as a circuit
US9075679B1 (en) Creating a prerequisite checklist corresponding to a software application
JP6818568B2 (en) Communication device, communication specification difference extraction method and communication specification difference extraction program
WO2019142469A1 (en) Security design apparatus, security design method, and security design program
KR20190059701A (en) Method and apparatus for generating DEVS based simulation model and code
CN114174983A (en) Optimization for automatic verification of advanced constructs using test vectors
KR101745821B1 (en) Method and system for secure booting
US9697018B2 (en) Synthesizing inputs to preserve functionality
KR102637045B1 (en) Method for supporting data collection
JP7210917B2 (en) Verification information generation device, verification information generation method, and verification information generation program
JP6854994B1 (en) Operation check support device, operation check support method and operation check support program
US9250870B2 (en) Automated creation of shim programs and interfaces
US10460047B1 (en) Tentative model components
WO2018163387A1 (en) Analysis device, analysis method, and analysis program
JP2013228780A (en) Information processing apparatus, information processing method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190919

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200721

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20200819

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201009

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: 20201201

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201228

R150 Certificate of patent or registration of utility model

Ref document number: 6818568

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250