JP5266997B2 - Network connection station information output device, network connection station information output method, and program - Google Patents
Network connection station information output device, network connection station information output method, and program Download PDFInfo
- Publication number
- JP5266997B2 JP5266997B2 JP2008238756A JP2008238756A JP5266997B2 JP 5266997 B2 JP5266997 B2 JP 5266997B2 JP 2008238756 A JP2008238756 A JP 2008238756A JP 2008238756 A JP2008238756 A JP 2008238756A JP 5266997 B2 JP5266997 B2 JP 5266997B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- network
- physical address
- registered
- management table
- 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
Links
- 238000000034 method Methods 0.000 title claims description 52
- 238000000605 extraction Methods 0.000 claims abstract description 21
- 230000008569 process Effects 0.000 claims description 30
- 239000000284 extract Substances 0.000 claims description 3
- 238000012545 processing Methods 0.000 description 25
- 238000010586 diagram Methods 0.000 description 21
- 238000004891 communication Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000004044 response Effects 0.000 description 5
- 239000007787 solid Substances 0.000 description 5
- 238000012790 confirmation Methods 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
本発明は、ネットワークに接続されている不特定多数の機器のうち、接続対象の機器のネットワーク論理アドレスを自動的に検出するネットワーク接続局情報出力装置、ネットワーク接続局情報出力方法、およびプログラムに関する。 The present invention relates to a network connection station information output device, a network connection station information output method, and a program for automatically detecting a network logical address of a connection target device among an unspecified number of devices connected to a network.
一般に、LANやインターネットなどのネットワークに接続されている機器は、ネットワーク論理アドレス(IPアドレス)を登録することによって、機器間の接続を確立している。 In general, devices connected to a network such as a LAN or the Internet establish a connection between devices by registering a network logical address (IP address).
たとえば、ネットワークを経由してプログラマブルコントローラと高速に通信するプログラミング装置が実用に供されているが、このプログラミング装置は、接続先のプログラマブルコントローラに設定されているIPアドレスを登録することにより、プログラマブルコントローラとの接続を確立するものである。したがって、通信するために接続先のプログラマブルコントローラに設定されているIPアドレスをユーザが覚えている必要がある。 For example, a programming device that communicates with a programmable controller at high speed via a network has been put to practical use. This programming device can register a programmable controller by registering an IP address set in a connected programmable controller. To establish a connection with. Therefore, it is necessary for the user to remember the IP address set in the connected programmable controller for communication.
しかしながら、このIPアドレスは同一のネットワーク機器でもシステム構成を変更すると変ってしまう場合があるので、変更の都度、IPアドレスを覚えておかなくてはならないという煩雑さがある。また、ネットワークの中に接続可能なプログラマブルコントローラが複数存在する場合があるが、通常は構成図などの図面を参照しなければ接続局数を正確に把握することができない。 However, since this IP address may change even when the system configuration is changed even in the same network device, there is a complication that it is necessary to remember the IP address every time it is changed. In addition, there may be a plurality of programmable controllers that can be connected in the network. Usually, the number of connected stations cannot be accurately grasped without referring to a drawing such as a configuration diagram.
一方、ネットワーク中の接続可能な機器を管理する従来の技術として、特許文献1では、各プログラマブルコントローラの有する通信ユニットの固体識別コードと、IPアドレス等の通信パラメータとを組み合わせた機器構成管理データを記憶しておき、通信ユニットの種別ごとに設定された通信パラメータに対する固体識別コードと実際の通信ユニットにある固体識別コードとが一致する通信ユニットに送出する装置が提案されている。
しかしながら、上記の従来の技術では、もともとIPアドレスが分かっている機器については、このIPアドレスをもとに当該機器と通信を行って固体識別コードを取得することができるが、そもそもIPアドレスが分かっていない場合には、その機器と通信することができず固体識別コードを取得することができない。すなわち、IPアドレスが分からない機器の固体識別コードをいかに取得するかが問題となる。 However, in the above-described conventional technology, for a device whose IP address is originally known, it is possible to obtain a solid identification code by communicating with the device based on this IP address, but in the first place the IP address is known. If not, it is not possible to communicate with the device and obtain a solid identification code. That is, how to obtain a solid identification code of a device whose IP address is unknown is a problem.
本発明は上述のかかる事情に鑑みてなされたものであり、ネットワークに繋がる機器のネットワーク論理アドレス(IPアドレス)を自動的に検出することができ、接続対象の機器か否かを簡便かつ確実に判定して接続することのできるネットワーク接続局情報出力装置、ネットワーク接続局情報出力方法、およびプログラムを提供することを目的とする。 The present invention has been made in view of the above-described circumstances, and can automatically detect a network logical address (IP address) of a device connected to a network, and simply and reliably whether or not the device is a connection target device. It is an object of the present invention to provide a network connection station information output device, a network connection station information output method, and a program that can be determined and connected.
上記の目的を達成するため、本発明に係わる接続局情報出力装置は、ネットワークに接続されている機器の接続情報を出力するネットワーク接続局情報出力装置であって、自己のネットワーク論理アドレスを用いて、ネットワークに接続されている機器を検索するための検索アドレスを生成する検索アドレス生成手段と、検索アドレスに対応付けて機器のネットワーク物理アドレスを収集する物理アドレス収集手段と、この物理アドレス収集手段によって収集されたネットワーク物理アドレスが予め定められた抽出条件を満たすか否かを判定するアドレス判定手段と、このアドレス判定手段により該ネットワーク物理アドレスは抽出条件を満たすと判定された場合は、検索アドレスを該ネットワーク物理アドレスに対応するネットワーク論理アドレスとして出力する出力手段と、を備えたことを特徴とする。 In order to achieve the above object, a connection station information output apparatus according to the present invention is a network connection station information output apparatus that outputs connection information of devices connected to a network, and uses its own network logical address. A search address generating means for generating a search address for searching for a device connected to the network, a physical address collecting means for collecting a network physical address of the device in association with the search address, and a physical address collecting means Address determination means for determining whether or not the collected network physical address satisfies a predetermined extraction condition; and when the address determination means determines that the network physical address satisfies the extraction condition, the search address is Network logic corresponding to the network physical address Characterized by comprising an output means for outputting as a dress, a.
また、本発明に係わるネットワーク接続局情報出力方法は、ネットワークに接続されている機器の接続情報を出力する方法であって、自己のネットワーク論理アドレスを用いて、ネットワークに接続されている機器を検索するための検索アドレスを生成する段階と、検索アドレスに対応付けて機器のネットワーク物理アドレスを収集する段階と、収集されたネットワーク物理アドレスが予め定められた抽出条件を満たすか否かを判定する段階と、該ネットワーク物理アドレスが抽出条件を満たすと判定された場合は、検索アドレスを該ネットワーク物理アドレスに対応するネットワーク論理アドレスとして出力する段階と、を含むことを特徴とする。 The network connection station information output method according to the present invention is a method for outputting connection information of a device connected to the network, and searches for the device connected to the network using its own network logical address. Generating a search address for performing, collecting a network physical address of the device in association with the search address, and determining whether the collected network physical address satisfies a predetermined extraction condition And a step of outputting the search address as a network logical address corresponding to the network physical address when it is determined that the network physical address satisfies the extraction condition.
また、本発明に係わるプログラムは、ネットワークに接続されている機器の接続情報を出力する装置上で動作するプログラムであって、自己のネットワーク論理アドレスを用いて、ネットワークに接続されている機器を検索するための検索アドレスを生成する検索アドレス生成処理と、検索アドレスに対応付けて機器のネットワーク物理アドレスを収集する物理アドレス収集処理と、収集されたネットワーク物理アドレスが予め定められた抽出条件を満たすか否かを判定するアドレス判定処理と、このアドレス判定処理で該ネットワーク物理アドレスは抽出条件を満たすと判定された場合は、検索アドレスを該ネットワーク物理アドレスに対応するネットワーク論理アドレスとして出力する出力処理と、をコンピュータに実行させることを特徴とする。 The program according to the present invention is a program that operates on a device that outputs connection information of devices connected to the network, and searches for devices connected to the network using its own network logical address. Search address generation processing for generating a search address for performing a search, physical address collection processing for collecting a network physical address of a device in association with the search address, and whether the collected network physical address satisfies a predetermined extraction condition An address determination process for determining whether or not, and an output process for outputting a search address as a network logical address corresponding to the network physical address when it is determined in this address determination process that the network physical address satisfies the extraction condition; , Special To.
本発明では、自己のネットワーク論理アドレスから、ネットワークに接続されている機器を検索するための検索アドレスを生成して、この検索アドレスに対してネットワーク物理アドレスの送信要求を行い、その後、ネットワーク物理アドレスを受信した場合は、このネットワーク物理アドレスと検索アドレスとを対応付けて保存しておくようにする。そして、保存されているネットワーク物理アドレスが、所定の抽出条件を満たす場合は、そのネットワーク物理アドレスに対応付けられている検索アドレスは、接続可能なネットワーク論理アドレスであるとして出力する。 In the present invention, a search address for searching for a device connected to the network is generated from its own network logical address, a transmission request for the network physical address is made to this search address, and then the network physical address Is received in association with the network physical address and the search address. If the stored network physical address satisfies a predetermined extraction condition, the search address associated with the network physical address is output as a connectable network logical address.
本発明に係わる接続局情報出力装置では、さらに、ネットワーク論理アドレスは、ネットワーク中のセグメント(サブネット)を識別するためのネットワークアドレス部とセグメント内の機器を識別するためのホストアドレス部とを有し、検索アドレス生成手段は、自己のネットワーク論理アドレスから、ネットワークアドレス部を抽出し、該抽出したネットワークアドレス部と予め定められた初期値から順にインクリメントして生成するホストアドレス部とを組み合わせることによって検索アドレスを生成することを特徴とする。 In the connection station information output device according to the present invention, the network logical address further includes a network address part for identifying a segment (subnet) in the network and a host address part for identifying a device in the segment. The search address generating means extracts a network address portion from its own network logical address, and searches by combining the extracted network address portion and a host address portion that is generated by incrementing sequentially from a predetermined initial value. An address is generated.
ネットワークアドレス部とホストアドレス部は、予めそれぞれの情報長(ビット長あるいはバイト長)を決めておいても良いし、自局で設定されているサブネットマスクから夫々の情報長を算出するようにしても良い。 The network address part and the host address part may determine the information length (bit length or byte length) in advance, or calculate the respective information length from the subnet mask set by the local station. Also good.
なお、ネットワークアドレス部は、実質的にネットワーク中のセグメント(サブネット)を識別できれば足り、ホストアドレス部は、実質的にセグメント内の機器(コンピュータあるいはホスト)を識別できれば足りる趣旨である。たとえば、Ipv6における、いわゆるグローバルルーティングプレフィクスとセグメントIDはネットワークアドレス部に相当し、インタフェースIDはホストアドレス部に相当する。 The network address portion only needs to be able to substantially identify a segment (subnet) in the network, and the host address portion only needs to be able to substantially identify a device (computer or host) in the segment. For example, in Ipv6, so-called global routing prefix and segment ID correspond to the network address part, and interface ID corresponds to the host address part.
物理アドレス収集手段は、ホストアドレス部をインクリメントして生成される複数の検索アドレスの夫々に対して、ネットワーク物理アドレスの送信要求を行う。送信要求の際は、ブロードキャストによって送信し、ネットワークに接続する全ての局がその送信要求を受信できるようにする。そして、検索用IPアドレスと自局のIPアドレスが一致した局のみ、この送信要求に応答して自局のネットワーク物理アドレスを返信する。物理アドレス収集手段は、検索アドレスと収集したネットワーク物理アドレスとを関連付けて保存する。 The physical address collection means makes a network physical address transmission request to each of a plurality of search addresses generated by incrementing the host address portion. When a transmission request is made, it is transmitted by broadcast so that all stations connected to the network can receive the transmission request. Then, only the station whose search IP address matches its own IP address returns its own network physical address in response to this transmission request. The physical address collection means stores the search address and the collected network physical address in association with each other.
このプロトコルは、たとえば、TCP/IPにおけるネットワーク診断プログラム(PING)を起動することによりアドレス解決プロトコル(ARP)を実行することによって実現することができる。 This protocol can be realized, for example, by executing an address resolution protocol (ARP) by starting a network diagnostic program (PING) in TCP / IP.
アドレス判定手段の抽出条件としては、下記の条件をそれぞれ単独で、または組み合わせて用いるのが好ましい。
(1)物理アドレス収集手段によって収集されたネットワーク物理アドレスのうち、製造業者ごとに割り当てられるコード部分であるOUI部が所定の製造業者コードに一致すること。
(2)ネットワーク物理アドレスについて、製造業者ごとに管理する固有アドレス部の一部を、機器グループを識別するためのグループコード部として割り当て、物理アドレス収集手段によって収集されたネットワーク物理アドレスのうち、グループコード部が所定の機器グループのコードに一致すること。
As the extraction conditions for the address determination means, the following conditions are preferably used alone or in combination.
(1) Of the network physical addresses collected by the physical address collecting means, the OUI part, which is a code part assigned to each manufacturer, matches a predetermined manufacturer code.
(2) For the network physical address, a part of the unique address part managed for each manufacturer is assigned as a group code part for identifying the device group, and the group among the network physical addresses collected by the physical address collecting means The code part must match the code of a given device group.
特に製造業者コードとグループコードとを組み合わせたグループ識別コードによって、機器の種別を特定することによって、複数の製造業者(ベンダ)の複数の機種が同じネットワークに繋がるような場合でも的確に接続管理を行うことができる。 In particular, by identifying the type of device with a group identification code that combines a manufacturer code and a group code, it is possible to accurately manage connections even when multiple models of multiple manufacturers (vendors) are connected to the same network. It can be carried out.
本発明によれば、ネットワークに繋がる機器のネットワーク論理アドレスを自動的に検出することができる。また、システム構成が変更になってもネットワーク論理アドレスを更新でき、さらに、収集したネットワーク物理アドレスをもとに接続対象の機器か否かを簡便かつ確実に判定することができる。 According to the present invention, it is possible to automatically detect a network logical address of a device connected to a network. In addition, the network logical address can be updated even if the system configuration is changed, and it can be easily and reliably determined whether or not the device is a connection target device based on the collected network physical address.
以下、本発明の実施の形態を説明する。本実施の形態では、ネットワーク接続局情報出力装置として、プログラマブルコントローラ(以下、PLCという。)のプログラミング装置の場合を例にPLCを接続対象機器として説明する。 Embodiments of the present invention will be described below. In the present embodiment, a PLC will be described as a connection target device by taking as an example a programming device of a programmable controller (hereinafter referred to as PLC) as a network connection station information output device.
図1は、第1の実施の形態によるネットワーク接続局情報出力装置およびネットワークを介してこれと接続する各装置のシステム構成図である。 FIG. 1 is a system configuration diagram of a network connection station information output device according to the first embodiment and each device connected to the network connection station information output device via a network.
ここで、ネットワーク接続局情報出力装置1は、ネットワーク110を介して接続局(接続対象機器)であるPLC111,112およびその他のネットワーク機器113と接続している。
Here, the network connection station
ネットワーク接続局情報出力装置1は、中央演算処理装置(以下、CPUという。)101、システムメモリ102、プログラムメモリ103、マウスやキーボードからなる入力装置04、ディスプレイからなる表示部105、および、ネットワークモジュール106を有し、これら各手段101〜106は共通バス107を経由してデータの受け渡しを行う。また、ネットワーク接続局情報出力装置1は、ネットワークモジュール106を介してネットワーク110に接続されている各局、すなわちPLC111,112あるいはネットワーク機器113と通信を行う。
The network connection station
図2は、ネットワーク接続局情報出力装置1のソフトウェア機能構成図である。ネットワーク接続局情報出力装置1が接続されているネットワーク110のネットワークアドレスに属するネットワーク論理アドレス(以下、IPアドレスという。)群を生成する検索アドレス生成手段201、検索アドレス生成手段201によってネットワーク110に接続されている機器のネットワーク物理アドレス(以下、MACアドレスという。)を収集する物理アドレス収集手段202、物理アドレス収集手段202によって収集されたMACアドレスの中から所定のPLCに該当するMACアドレスを選別するアドレス判定手段203、選別されたMACアドレスに対応するIPアドレスを表示部105に出力する出力手段204を有している。各手段201〜204はCPU101の機能として、プログラムによって実現可能である。
FIG. 2 is a software functional configuration diagram of the network connection station
なお、プログラムの実体はプログラムメモリ103に格納されており、CPU101にローディングされて実行される。また、PLC111,112は物理アドレス収集手段202による接続確認に応答する機能、たとえばARP(Address Resolution Protocol;アドレス解決プロトコル)要求に対するARP応答を送出する機能を備えている。
Note that the substance of the program is stored in the
図3〜図8は、本実施の形態で使用される情報資源である。
図3はIPアドレスのデータ構成図である。IPアドレスは、図3(a)に示すようにネットワーク中のセグメント(サブネット)を識別するためのネットワークアドレス部とセグメント内のホスト(接続局)を識別するためのホストアドレス部から構成されている。システムメモリ102には、図3(b)に示すようにネットワークアドレス部およびホストアドレス部のビット位置や情報長が保存されている。これらの情報は、入力装置104から入力される。
3 to 8 are information resources used in the present embodiment.
FIG. 3 is a data configuration diagram of the IP address. As shown in FIG. 3A, the IP address is composed of a network address part for identifying a segment (subnet) in the network and a host address part for identifying a host (connection station) in the segment. . As shown in FIG. 3B, the
図4は、検索アドレス生成手段201によって生成されたIPアドレスを保存する検索用IPアドレステーブル300のデータ構成図である。この検索用IPアドレステーブル300には、物理アドレス収集手段202によって収集されたMACアドレスが対応する検索用IPアドレスと関連付けられて保存される。このIPアドレスとMACアドレスの対からなるレコード領域は、ホストアドレスの取りうる値の範囲だけ存在する。
FIG. 4 is a data configuration diagram of the search IP address table 300 that stores the IP addresses generated by the search
図5は、アドレス判定手段203によって、MACアドレスの登録のあるIPアドレスが接続可能PLCのものか否かの識別フラグを書き込むために使用される表示用IPアドレステーブル301のデータ構成図である。IPアドレスと接続可能PLCフラグの対によって一つのレコードを形成している。検索用IPアドレスと同じ数のレコード領域を有している。
FIG. 5 is a data configuration diagram of the display IP address table 301 used by the
図6は、アドレス判定手段203が接続可能PLCを選別する際の判定基準とするMACアドレスパターンの説明図である。
FIG. 6 is an explanatory diagram of a MAC address pattern used as a determination criterion when the
これらの情報資源はシステムメモリ102に格納され、CPU101が各手段201〜204を実行するために参照されたり、退避されたりする。
These information resources are stored in the
また、図7はPING(Packet INternet Groper;ネットワーク診断プログラム)コマンドを発行する際に必要となるOSのソケット通信用のパラメータデータを示す図である。このソケット接続テーブルで設定したIPアドレス宛てにARP要求が送信される。 FIG. 7 is a diagram showing parameter data for socket communication of the OS that is necessary when issuing a PING (Packet Internet Groper) command. An ARP request is transmitted to the IP address set in the socket connection table.
図8はOSからARPテーブルを取得する際に必要となるパラメータデータを示す図である。ARP応答に基づいて、接続機器のMACアドレスとIPアドレスが対応付けられて保存される。ARPのプロトコルを実行することによって、このARPテーブルがリフレッシュされる。 FIG. 8 is a diagram showing parameter data necessary for obtaining the ARP table from the OS. Based on the ARP response, the MAC address and IP address of the connected device are stored in association with each other. By executing the ARP protocol, the ARP table is refreshed.
次に、上記の構成を有するネットワーク接続局情報出力装置1の動作を説明する。
図9は、ネットワーク接続局情報出力装置1の処理の全体の流れを表すフローチャートである。この図において、ネットワーク接続局出力装置1は、ユーザからの起動要求または周期的に動作が開始されると、まず検索アドレス生成手段201により接続確認を行うべきIPアドレスのテーブルである検索用IPアドレステーブル300を生成する(S101)。
Next, the operation of the network connection station
FIG. 9 is a flowchart showing the overall flow of processing of the network connection station
次に、物理アドレス収集手段202によって、検索用IPアドレステーブル300にしたがって、各検索用IPアドレスに対してPINGコマンドを発行することによりアドレス解決プロトコル(ARP)を実行し、その応答であるMACアドレスを取得することにより、ネットワーク110に接続されている機器の存在を確認する(S102)。続いて、アドレス判定手段203を起動して、登録されているMACアドレスパターンとARP応答によるMACアドレスとを照合することにより、接続可能なPLCであるか否かを判定する(S103)。そして、接続可能なPLCである場合は、出力手段204により、このPLCに対して発行した検索用IPアドレスを表示用文字列に変換して、このPLCのIPアドレスとして表示部105へ表示出力する(S104)。
Next, the physical
以下、上記のステップS101〜ステップS104の各処理について詳述する。
(検索アドレス生成処理)
図10は、検索アドレス生成手段201の処理手順を示すフローチャートである。本実施の形態では、図3に示すようにIPアドレスは4バイトのデータからなり、上位3バイトをネットワークアドレスとし、下位1バイトをホストアドレスとするアドレス形態を例に説明する。このネットワークアドレスが等しい局を同一セグメントとして定義する。
Hereinafter, each process of said step S101-step S104 is explained in full detail.
(Search address generation process)
FIG. 10 is a flowchart showing the processing procedure of the search address generation means 201. In the present embodiment, as shown in FIG. 3, an IP address is composed of 4-byte data, and an address form in which the upper 3 bytes are used as a network address and the lower 1 byte is used as a host address will be described as an example. Stations having the same network address are defined as the same segment.
検索アドレス生成手段201は、OSから自己(ネットワーク接続局情報出力装置1)のIPアドレスを取得し、そのIPアドレスのネットワークアドレス部をシステムメモリ102へ退避する(S201)。次に、検索用IPアドレステーブル300および表示用IPアドレステーブル301を順次アクセスするための変数であるホストアドレスを初期化する。具体的には、検索用IPアドレスのホストアドレス部の初期値となる「1」をセットする(S202)。なお本実施の形態では、ホストアドレスは、1〜255まで順に処理を行うものとするが、本発明はこれに限定されず、ホストアドレスの取りうる値の範囲により適宜適切な値を設定すれば良い。
The search
次に、検索用IPアドレステーブル300を最後まで処理したか否か、すなわちホストアドレスが255まで実行したか否かを判定し(S203)、最後まで処理した場合は終了し、最後まで処理していない場合は、ステップS201で退避したネットワークアドレスの値とホストアドレスの変数値とを組み合わせることによって、ネットワーク接続局情報出力装置1と同じセグメントに属するIPアドレス生成し、検索用IPアドレステーブル300の現在のホストアドレス値に対応するレコード領域のIPアドレス部に格納する(S204)。図中、検索用IPアドレステーブル[ホストアドレス]とは、検索用IPアドレステーブルの現在ホストアドレスの値に対応するレコード領域を意味する。
Next, it is determined whether or not the search IP address table 300 has been processed to the end, that is, whether or not the host address has been executed to 255 (S203). If not, an IP address belonging to the same segment as the network connection station
そして、検索用IPアドレステーブル300を順次アクセスするためにホストアドレスをインクリメントして(S205)、ステップS203へ戻る。 Then, the host address is incremented to sequentially access the search IP address table 300 (S205), and the process returns to step S203.
(物理アドレス収集処理)
図11は、物理アドレス収集手段202の処理手順を示すフローチャートである。
まず、検索用IPアドレステーブル300を順次アクセスするための変数であるホストアドレスを初期化する(S301)。
(Physical address collection processing)
FIG. 11 is a flowchart showing a processing procedure of the physical
First, a host address, which is a variable for sequentially accessing the search IP address table 300, is initialized (S301).
次に検索用IPアドレステーブル300を最後まで処理したか否かを判定し(S302)、最後まで処理した場合は終了し、最後まで処理していない場合は、検索用IPアドレステーブル[ホストアドレス]のIPアドレスに対してPINGを送出する(S303)。これによりARPが実行され、ネットワーク機器がこれに応答すると、送出元であるネットワーク接続局情報出力装置1のARPテーブルに、応答したネットワーク機器のIPアドレスとMACアドレスが登録される。物理アドレス収集手段202は、OSからこのARPテーブルを取得する(S304)。
Next, it is determined whether or not the search IP address table 300 has been processed to the end (S302). If it has been processed to the end, the process ends. If it has not been processed to the end, the search IP address table [host address] PING is sent to the IP address (S303). As a result, ARP is executed, and when the network device responds, the IP address and MAC address of the responding network device are registered in the ARP table of the network connection station
次に、ARPテーブルの中に検索用IPアドレスが存在するか検索し(S305)、存在すれば、そのARPテーブル中のMACアドレスを検索用IPアドレステーブル[ホストアドレス]のMACアドレス部に保存する(S306)。 Next, it is searched whether there is a search IP address in the ARP table (S305), and if it exists, the MAC address in the ARP table is stored in the MAC address part of the search IP address table [host address]. (S306).
その後、ホストアドレスのインクリメントを実行して(S307)、ステップS302へ戻る。 Thereafter, the host address is incremented (S307), and the process returns to step S302.
(アドレス判定処理)
図12は、アドレス判定手段203の処理手順を示すフローチャートである。
アドレス判定手段203は、物理アドレス収集手段202の処理の終了により起動されると、まず、検索用IPアドレステーブル300、および、表示用IPアドレステーブル301を順次アクセスするためのホストアドレスを初期化する(S401)。
(Address judgment processing)
FIG. 12 is a flowchart showing a processing procedure of the
When the
次に表示用IPアドレステーブル301を最後まで処理したか否かを判定し(S402)、最後まで処理した場合は終了し、最後まで処理していない場合は、検索用IPアドレステーブル[ホストアドレス]のIPアドレス部に保存されているIPアドレスを表示用IPアドレステーブル[ホストアドレス]のIPアドレス部に転送する(S403)。そして、MACアドレスパターンデータ302を参照して、検索用IPアドレステーブル[ホストアドレス]のMACアドレスがMACアドレスパターンのいずれかと一致するか否かを判定する(S404)。MACアドレスパターンは、図6に示すように、MACアドレスの上位4バイトを定義した値である。なお、このバイト数は任意に設定可能にするようにしても良い。
Next, it is determined whether or not the display IP address table 301 has been processed to the end (S402). If it has been processed to the end, the process ends. If it has not been processed to the end, the search IP address table [host address] The IP address stored in the IP address portion is transferred to the IP address portion of the display IP address table [host address] (S403). Then, with reference to the MAC
ステップS404でYesの場合は、接続可能なPLCと判定し、表示用IPアドレステーブル[ホストアドレス]の接続可能PLCフラグをONする(S405)。その後、ホストアドレスのインクリメントを実行して(S406)、ステップS402へ戻る。 If YES in step S404, it is determined that the PLC is connectable, and the connectable PLC flag in the display IP address table [host address] is turned ON (S405). Thereafter, the host address is incremented (S406), and the process returns to step S402.
(表示出力処理)
図13は、出力手段204の処理手順を示すフローチャートである。
出力手段204は、ユーザからの要求またはアドレス判定手段203の処理の終了によって起動されると、まず、表示用IPアドレステーブル301を順次アクセスするためのホストアドレス変数を初期化する(S501)。
(Display output processing)
FIG. 13 is a flowchart showing the processing procedure of the output means 204.
When the
次に表示用IPアドレステーブル301を最後まで処理したか否かを判定し(S502)、最後まで処理した場合は終了し、最後まで処理していない場合は、検索用IPアドレステーブル[ホストアドレス]のMACアドレス部にMACアドレスが登録されているか否かを調べ(S503)、MACアドレスが登録されていればIPアドレス部に格納されているIPアドレスを有するネットワーク機器がネットワーク上に存在すると判定する。 Next, it is determined whether or not the display IP address table 301 has been processed to the end (S502). If the display IP address table 301 has been processed to the end, the process ends. If not, the search IP address table [host address] It is determined whether or not the MAC address is registered in the MAC address part (S503). If the MAC address is registered, it is determined that the network device having the IP address stored in the IP address part exists on the network. .
ステップS503でYesの場合は、表示用IPアドレステーブル[ホストアドレス]のIPアドレス部のIPアドレス値を表示用文字列に変換する(S504)。
次に、表示用IPアドレステーブル[ホストアドレス]の接続可能PLCフラグのON/OFFの状態を判定し(S505)、当該フラグがONの場合は、表示用IPアドレス文字列に接続可能PLCを表す「PLC」を付加した表示データを生成する(S506)。そして、表示部105に表示データを出力する(S507)。
表示出力処理が終了すると、ホストアドレスをインクリメントして(S508)、ステップS502へ戻る。
If Yes in step S503, the IP address value in the IP address portion of the display IP address table [host address] is converted into a display character string (S504).
Next, the ON / OFF state of the connectable PLC flag in the display IP address table [host address] is determined (S505). If the flag is ON, the connectable PLC is represented in the display IP address character string. Display data to which “PLC” is added is generated (S506). Then, display data is output to the display unit 105 (S507).
When the display output process ends, the host address is incremented (S508), and the process returns to step S502.
上記の処理によって、ネットワーク接続局情報出力装置1は、ネットワークに接続されている機器のIPアドレスを取得することができ、また接続対象機器を特定し、接続対象機器のIPアドレス情報のみを表示させることができる。
Through the above processing, the network connection station
以上説明したように、本実施の形態によれば、ネットワークを介してそのネットワークに接続されている機器(接続局)を容易に特定することができるので、接続局のIPアドレス等を記憶しておく必要が無く、アドレス管理の負担が軽減される。また、IPアドレスを変更した接続局などの検索も容易にできるという効果もある。さらに、接続局のIPアドレスを間違えて設定してしまった場合でも、正しいIPアドレスを容易に把握することができる。 As described above, according to the present embodiment, the device (connection station) connected to the network can be easily specified via the network, so that the IP address of the connection station is stored. This reduces the burden of address management. Also, there is an effect that it is possible to easily search for a connection station whose IP address has been changed. Furthermore, even if the IP address of the connecting station is set by mistake, the correct IP address can be easily grasped.
さらに、ネットワークの専門知識を有することなく、ネットワーク接続局情報出力装置が接続可能な機器を容易に検索できるので、機器ユーザの負荷を軽減することができる。 Furthermore, since it is possible to easily search for devices that can be connected to the network connection station information output device without having specialized knowledge of the network, the load on the device user can be reduced.
また、接続局のIPアドレスを把握するために、接続局が設置されている場所に出向く必要がなく、通信ケーブルを接続しなおす必要もないため、接続局のIPアドレスの把握のための負担を軽減することができる。 In addition, in order to grasp the IP address of the connecting station, it is not necessary to go to the place where the connecting station is installed and it is not necessary to reconnect the communication cable. Can be reduced.
また、本実施の形態によれば、接続局全ての接続状態を把握することができるので、定期的に接続確認を行うことで、局脱落や故障の監視も可能となる。さらに、ネットワーク内のネットワーク機器が使用しているIPアドレスを全て確認することができるため、実際の空きIPアドレスが容易に把握でき、新たにネットワークモジュールを追加する際のIPアドレス割り付け作業の負担を軽減することができる。 Further, according to the present embodiment, it is possible to grasp the connection state of all the connected stations, so that it is possible to monitor the dropout or failure of the station by periodically checking the connection. In addition, since all the IP addresses used by network devices in the network can be confirmed, the actual free IP address can be easily grasped, and the burden of IP address assignment work when a new network module is added. Can be reduced.
次に、本発明の第2の実施の形態を説明する。
本実施の形態によるネットワーク接続局情報出力装置のハードウェア構成は図1と同様であり、パーソナルコンピュータなど汎用のコンピュータ装置によって実現することができる。
Next, a second embodiment of the present invention will be described.
The hardware configuration of the network connection station information output apparatus according to this embodiment is the same as that of FIG. 1, and can be realized by a general-purpose computer apparatus such as a personal computer.
図14は、本実施の形態によるネットワーク接続局情報出力装置1のソフトウェア機能構成図である。図2との主な違いは、表示用IPアドレステーブル301に替えて、図15に示す接続局管理テーブル306を用いるようにして、アドレス判定手段203a、出力手段204aの処理手順を後述するように変更したことである。
FIG. 14 is a software functional configuration diagram of the network connection station
図15において、接続局管理テーブル306は、ネットワークに接続している局のMACアドレスが登録され、MACアドレスごとに、IPアドレス、接続対象フラグ、接続非対象フラグが関連付けられて保存されている。 In FIG. 15, the connected station management table 306 registers the MAC address of the station connected to the network, and stores an IP address, a connection target flag, and a connection non-target flag in association with each MAC address.
以下、本実施の形態によるネットワーク接続局情報出力装置の動作を第1の実施の形態との違いを中心に説明する。なお、検索アドレス生成処理、物理アドレス収集処理については、第1の実施の形態と同様であるので説明を割愛する。 Hereinafter, the operation of the network connection station information output apparatus according to the present embodiment will be described focusing on the difference from the first embodiment. Note that the search address generation process and the physical address collection process are the same as those in the first embodiment, and a description thereof will be omitted.
(アドレス判定処理)
図16は、第2の実施の形態によるアドレス判定手段203aの処理手順を示すフローチャートである。
アドレス判定手段203aは起動されると、まず、接続局管理テーブル306のIPアドレス欄のみをクリアして(S601)、検索用IPアドレステーブル300を順次アクセスするためのホストアドレスを初期化する(S602)。
(Address judgment processing)
FIG. 16 is a flowchart illustrating a processing procedure of the
When the
次に検索用IPアドレステーブル300を最後まで処理したか否かを判定し(S603)、最後まで処理した場合は終了し、最後まで処理していない場合は、まず、検索用IPアドレステーブル[ホストアドレス]にMACアドレスが保存されているか否かを判定し(S604)、保存されている場合は、そのMACアドレスを抽出する(S605)。そして、接続局管理テーブル306にアクセスして、同テーブル306にステップS605で抽出したMACアドレスが登録されているか否かを判定し(S606)、存在していれば、その抽出したMACアドレスのIPアドレスを更新して(S607)、フラグ情報が登録済みか否かを判定する(S608)。この判定の結果、接続対象フラグまたは接続非対象フラグのいずれかが登録済みならば(S608で「Yes」)、ホストアドレスをインクリメントして(S616)、ステップS603へ戻って処理を繰り返す。 Next, it is determined whether or not the search IP address table 300 has been processed to the end (S603). If it has been processed to the end, the process ends. If not, the search IP address table [host It is determined whether or not the MAC address is stored in [Address] (S604). If the MAC address is stored, the MAC address is extracted (S605). Then, the access point management table 306 is accessed to determine whether or not the MAC address extracted in step S605 is registered in the table 306 (S606). If it exists, the IP of the extracted MAC address is determined. The address is updated (S607), and it is determined whether or not the flag information has been registered (S608). As a result of this determination, if either the connection target flag or the connection non-target flag has been registered (“Yes” in S608), the host address is incremented (S616), and the process returns to step S603 to repeat the process.
一方、ステップS606において、接続局管理テーブル306にステップS605で抽出したMACアドレスが登録されていなければ(S606で「No」)、同テーブル306に抽出したMACアドレスを登録すると共に(S609)、そのMACアドレスのIPアドレスを登録する(S610)。次に、ステップS605で抽出したMACアドレスはMACアドレスパターンと一致しているか否かを判定する(S611)。ステップS608で、フラグ情報が登録されていない場合も、ステップS611へ移行する。 On the other hand, if the MAC address extracted in step S605 is not registered in the connected station management table 306 in step S606 (“No” in S606), the extracted MAC address is registered in the table 306 (S609). The IP address of the MAC address is registered (S610). Next, it is determined whether or not the MAC address extracted in step S605 matches the MAC address pattern (S611). If no flag information is registered in step S608, the process proceeds to step S611.
ステップS611でMACアドレスパターンと一致していない場合は(S611で「No」)、接続対象か否かの確認入力を促すメッセージを表示部105へ出力し(S612)、入力装置104を介して入力された回答が接続対象の場合は(S613で「Yes」)、当該MACアドレスの接続対象フラグをONにする(S614)。なお、ステップS611でYesの場合は、ステップS614へ移行する。
If the MAC address pattern does not match in step S611 (“No” in S611), a message for prompting confirmation of whether or not to be connected is output to the display unit 105 (S612) and input via the
一方、ステップS613で、接続対象でない場合は、当該MACアドレスの接続非対象フラグをONにする(S615)。
その後、ホストアドレスをインクリメントして(S616)、ステップS603へ戻る。
On the other hand, if it is not a connection target in step S613, the connection non-target flag of the MAC address is turned ON (S615).
Thereafter, the host address is incremented (S616), and the process returns to step S603.
(表示出力処理)
図17は、第2の実施の形態による出力手段204aの処理手順を示すフローチャートである。
出力手段204aは起動されると、接続局管理テーブル306にアクセスして(S701)、MACアドレスが登録されているか否かについて判定し(S702)、登録されていなければ終了する。登録されていれば、最初のMACアドレスにアクセスする(S703)。
(Display output processing)
FIG. 17 is a flowchart illustrating a processing procedure of the
When the
そして、IPアドレスの登録の有無を判定し(S704)、登録されていれば、接続対象フラグがセットされているか否かについて判定し(S705)、セットされていれば、次に、MACアドレスパターンに対応する装置情報、機種情報を抽出する(S706)。 Then, it is determined whether or not the IP address is registered (S704). If it is registered, it is determined whether or not the connection target flag is set (S705). If it is set, then the MAC address pattern is determined. The device information and model information corresponding to are extracted (S706).
これは、たとえば、MACアドレスパターンのOUI部に対応させてメーカ名やブランド名などの装置情報を登録し、また、グループコード部に対応させてグループ名などの機種情報を登録したテーブルを設けることによって実現させることができる。 For example, device information such as manufacturer name and brand name is registered corresponding to the OUI part of the MAC address pattern, and a table in which model information such as group name is registered corresponding to the group code part is provided. Can be realized.
また、IPアドレスを表示用文字列に変換し(S707)、装置情報、機種情報、およびIPアドレス表示用文字列を表示部105へ出力する(S708)。 Also, the IP address is converted into a display character string (S707), and the device information, the model information, and the IP address display character string are output to the display unit 105 (S708).
そして、全てのMACアドレスについて実施済みか否かを判定し(S709)、実施済みの場合は終了し、そうでない場合は(S709で「No」)、次のMACアドレスにアクセスして(S710)、ステップS704へ戻る。
一方、ステップS704,ステップS705で「No」の場合は、それぞれステップS709へ移行する。
Then, it is determined whether or not all MAC addresses have been implemented (S709). If it has been implemented, the process ends. If not (“No” in S709), the next MAC address is accessed (S710). Return to step S704.
On the other hand, if “No” in steps S704 and S705, the process proceeds to step S709.
上記の処理によって、ネットワーク接続局情報出力装置1は、接続局管理テーブルを作成して、MACアドレスをインデックスにして、IPアドレスを更新し、接続対象か、非対象かのフラグを管理する。
Through the above processing, the network connection station
以上、本実施の形態によれば、接続局管理テーブルによって、個々のMACアドレスごとに接続局情報の管理を行い、MACアドレスのグループ識別コードが特定のコード体系以外の場合は、個別に接続対象か否かの登録を行う。これにより、MACアドレスパターンによる接続対象判定と、個別の接続対象判定が混在したときの管理が可能となる。 As described above, according to the present embodiment, connection station information is managed for each MAC address by the connection station management table, and when the group identification code of the MAC address is other than a specific code system, the connection target is individually Registration of whether or not. Thereby, it is possible to manage when the connection target determination based on the MAC address pattern and the individual connection target determination are mixed.
通常、MACアドレスはネットワークモジュールに直接設定されており、このネットワークモジュールは汎用化されてきているので、ネットワークモジュールが故障等した場合は、製造業者の異なる汎用品と交換して運用を続けることができる。これによって、保守品の共通化が可能となる。 Normally, the MAC address is set directly in the network module, and since this network module has been generalized, if the network module fails, it can be replaced with a different general-purpose product from the manufacturer and continue to operate. it can. This makes it possible to share maintenance products.
勿論、個々のMACアドレスをMACアドレスパターンデータ302に追加登録する機能を設けて、接続対象として管理できるようにしても良いが、MACアドレスの登録の煩雑さや、データ入力ミスの発生を抑制することができる。
また、この接続局管理テーブルは、MACアドレスをインデックスにしているので、新たに検出したMACアドレスの装置情報を表示させたり、IPアドレスが削除されたMACアドレスの装置情報を表示させることを容易に行うことができる。
Of course, a function for additionally registering individual MAC addresses in the MAC
In addition, since this connection station management table uses the MAC address as an index, it is easy to display the device information of the newly detected MAC address or the device information of the MAC address from which the IP address has been deleted. It can be carried out.
本発明によるネットワーク接続局情報出力装置は、PLCのプログラミング装置、その他ネットワークに繋がる局を特定の条件で抽出する装置として利用することができる。 The network connection station information output apparatus according to the present invention can be used as a PLC programming apparatus or other apparatus that extracts stations connected to a network under specific conditions.
1 ネットワーク接続局情報出力装置
101 中央演算処理装置(CPU)
102 システムメモリ
103 プログラムメモリ
104 入力装置
105 表示部
106 ネットワークモジュール
107 共通バス
110 ネットワーク
111,112 接続対象機器(プログラマブルコントローラ)
113 ネットワーク機器
201 検索アドレス生成手段
202 物理アドレス収集手段
203,203a アドレス判定手段
204,204a 出力手段
300 検索用IPアドレステーブル
301 表示用IPアドレステーブル
302 MACアドレスパターンデータ
303 IPアドレス構成データ
304 ソケット接続テーブル
305 ARPテーブル
306 接続局管理テーブル
1 Network connection station
DESCRIPTION OF
113
Claims (7)
ネットワーク物理アドレスごとにネットワーク論理アドレスと接続対象か否かを示すフラグ情報とを関連付けた接続局管理テーブルと、
自己のネットワーク論理アドレスを用いて、ネットワークに接続されている機器を検索するための検索アドレスを生成する検索アドレス生成手段と、
前記検索アドレスに対応付けて前記機器のネットワーク物理アドレスを収集する物理アドレス収集手段と、
前記接続局管理テーブルのネットワーク物理アドレスとネットワーク論理アドレスとフラグ情報のうち、ネットワーク論理アドレスのみをクリアして、前記物理アドレス収集手段によって収集されたネットワーク物理アドレスが前記接続局管理テーブルに既に登録されている場合は、そのネットワーク物理アドレスに関連付けてネットワーク論理アドレスを登録する一方、前記物理アドレス収集手段によって収集されたネットワーク物理アドレスが前記接続局管理テーブルに登録されていない場合は、前記接続局管理テーブルに当該ネットワーク物理アドレスを登録すると共に、そのネットワーク物理アドレスに対応するネットワーク論理アドレスを登録し、
前記物理アドレス収集手段によって収集されたネットワーク物理アドレスに対応する前記フラグ情報が前記接続局管理テーブルに登録されていない場合は、当該ネットワーク物理アドレスが予め定められた抽出条件を満たすか否かを判定し、
当該判定の結果、前記接続局管理テーブルに登録されているネットワーク物理アドレスが予め定められた抽出条件を満たす場合は、そのネットワーク物理アドレスに関連付けられている前記フラグ情報を接続対象として設定する一方、当該判定の結果、前記接続局管理テーブルに登録されているネットワーク物理アドレスが予め定められた抽出条件を満たさない場合は、接続対象か否かのメッセージを表示出力して、回答入力に基づいてそのネットワーク物理アドレスに関連付けられている前記フラグ情報を設定するアドレス判定手段と、
前記フラグ情報が接続対象として設定されているネットワーク論理アドレスを出力する出力手段と、
を備えたことを特徴とするネットワーク接続局情報出力装置。 A network connection station information output device that outputs connection information of devices connected to a network,
A connection station management table in which a network logical address and flag information indicating whether or not to be connected are associated with each network physical address;
Search address generation means for generating a search address for searching for devices connected to the network using its own network logical address;
Physical address collection means for collecting a network physical address of the device in association with the search address;
Of the network physical address, network logical address, and flag information in the connection station management table, only the network logical address is cleared, and the network physical address collected by the physical address collection means is already registered in the connection station management table. If the network physical address collected by the physical address collecting means is not registered in the connection station management table, the connection station management is registered. Register the network physical address in the table, register the network logical address corresponding to the network physical address,
If the flag information corresponding to the network physical address collected by the physical address collecting means is not registered in the connected station management table, it is determined whether or not the network physical address satisfies a predetermined extraction condition And
As a result of the determination, when the network physical address registered in the connection station management table satisfies a predetermined extraction condition, the flag information associated with the network physical address is set as a connection target, As a result of the determination, if the network physical address registered in the connected station management table does not satisfy a predetermined extraction condition, a message indicating whether or not it is a connection target is displayed and output based on an answer input. Address determining means for setting the flag information associated with a network physical address ;
Output means for outputting a network logical address in which the flag information is set as a connection target ;
A network connection station information output device comprising:
前記検索アドレス生成手段は、自己のネットワーク論理アドレスから、前記ネットワークアドレス部を抽出し、該抽出したネットワークアドレス部と予め定められた初期値から順にインクリメントして生成するホストアドレス部とを組み合わせることによって前記検索アドレスを生成することを特徴とする請求項1に記載のネットワーク接続局情報出力装置。 The network logical address has a network address part for identifying a segment in the network and a host address part for identifying a device in the segment,
The search address generation means extracts the network address portion from its own network logical address, and combines the extracted network address portion and a host address portion that is generated by incrementing sequentially from a predetermined initial value. The network connection station information output device according to claim 1, wherein the search address is generated.
自己のネットワーク論理アドレスを用いて、ネットワークに接続されている機器を検索するための検索アドレスを生成する段階と、
前記検索アドレスに対応付けて前記機器のネットワーク物理アドレスを収集する段階と、
ネットワーク物理アドレスごとにネットワーク論理アドレスと接続対象か否かを示すフラグ情報とを関連付けた接続局管理テーブルのネットワーク物理アドレスとネットワーク論理アドレスとフラグ情報のうち、ネットワーク論理アドレスのみをクリアして、前記物理アドレス収集手段によって収集されたネットワーク物理アドレスが前記接続局管理テーブルに既に登録されている場合は、そのネットワーク物理アドレスに関連付けてネットワーク論理アドレスを登録する一方、前記物理アドレス収集手段によって収集されたネットワーク物理アドレスが前記接続局管理テーブルに登録されていない場合は、前記接続局管理テーブルに当該ネットワーク物理アドレスを登録すると共に、そのネットワーク物理アドレスに対応するネットワーク論理アドレスを登録し、
前記物理アドレス収集手段によって収集されたネットワーク物理アドレスに対応する前記フラグ情報が前記接続局管理テーブルに登録されていない場合は、当該ネットワーク物理アドレスが予め定められた抽出条件を満たすか否かを判定し、
当該判定の結果、前記接続局管理テーブルに登録されているネットワーク物理アドレスが予め定められた抽出条件を満たす場合は、そのネットワーク物理アドレスに関連付けられている前記フラグ情報を接続対象として設定する一方、当該判定の結果、前記接続局管理テーブルに登録されているネットワーク物理アドレスが予め定められた抽出条件を満たさない場合は、接続対象か否かのメッセージを表示出力して、回答入力に基づいてそのネットワーク物理アドレスに関連付けられている前記フラグ情報を設定する段階と、
前記フラグ情報が接続対象として設定されているネットワーク論理アドレスを出力する段階と、
を含むことを特徴とするネットワーク接続局情報出力方法。 A method for outputting connection information of a device connected to a network,
Generating a search address for searching for a device connected to the network using its own network logical address;
Collecting a network physical address of the device in association with the search address;
For each network physical address, clear only the network logical address out of the network physical address, network logical address, and flag information in the connection station management table that associates the network logical address with flag information indicating whether or not to connect, and If the network physical address collected by the physical address collecting means is already registered in the connection station management table, the network logical address is registered in association with the network physical address, while being collected by the physical address collecting means When the network physical address is not registered in the connection station management table, the network physical address is registered in the connection station management table and the network corresponding to the network physical address is registered. To register the physical address,
If the flag information corresponding to the network physical address collected by the physical address collecting means is not registered in the connected station management table, it is determined whether or not the network physical address satisfies a predetermined extraction condition And
As a result of the determination, when the network physical address registered in the connection station management table satisfies a predetermined extraction condition, the flag information associated with the network physical address is set as a connection target, As a result of the determination, if the network physical address registered in the connected station management table does not satisfy a predetermined extraction condition, a message indicating whether or not it is a connection target is displayed and output based on an answer input. Setting the flag information associated with a network physical address ;
Outputting a network logical address in which the flag information is set as a connection target ;
A network connection station information output method comprising:
自己のネットワーク論理アドレスを用いて、ネットワークに接続されている機器を検索するための検索アドレスを生成する検索アドレス生成処理と、
前記検索アドレスに対応付けて前記機器のネットワーク物理アドレスを収集する物理アドレス収集処理と、
ネットワーク物理アドレスごとにネットワーク論理アドレスと接続対象か否かを示すフラグ情報とを関連付けた接続局管理テーブルのネットワーク物理アドレスとネットワーク論理アドレスとフラグ情報のうち、ネットワーク論理アドレスのみをクリアして、前記物理アドレス収集手段によって収集されたネットワーク物理アドレスが前記接続局管理テーブルに既に登録されている場合は、そのネットワーク物理アドレスに関連付けてネットワーク論理アドレスを登録する一方、前記物理アドレス収集手段によって収集されたネットワーク物理アドレスが前記接続局管理テーブルに登録されていない場合は、前記接続局管理テーブルに当該ネットワーク物理アドレスを登録すると共に、そのネットワーク物理アドレスに対応するネットワーク論理アドレスを登録し、
前記物理アドレス収集手段によって収集されたネットワーク物理アドレスに対応する前記フラグ情報が前記接続局管理テーブルに登録されていない場合は、当該ネットワーク物理アドレスが予め定められた抽出条件を満たすか否かを判定し、
当該判定の結果、前記接続局管理テーブルに登録されているネットワーク物理アドレスが予め定められた抽出条件を満たす場合は、そのネットワーク物理アドレスに関連付けられている前記フラグ情報を接続対象として設定する一方、当該判定の結果、前記接続局管理テーブルに登録されているネットワーク物理アドレスが予め定められた抽出条件を満たさない場合は、接続対象か否かのメッセージを表示出力して、回答入力に基づいてそのネットワーク物理アドレスに関連付けられている前記フラグ情報を設定するアドレス判定処理と、
前記フラグ情報が接続対象として設定されているネットワーク論理アドレスを出力する出力処理と、
をコンピュータに実行させるプログラム。 A program that operates on a device that outputs connection information of devices connected to a network,
A search address generation process for generating a search address for searching for devices connected to the network using its own network logical address;
A physical address collection process for collecting a network physical address of the device in association with the search address;
For each network physical address, clear only the network logical address out of the network physical address, network logical address, and flag information in the connection station management table that associates the network logical address with flag information indicating whether or not to connect, and If the network physical address collected by the physical address collecting means is already registered in the connection station management table, the network logical address is registered in association with the network physical address, while being collected by the physical address collecting means When the network physical address is not registered in the connection station management table, the network physical address is registered in the connection station management table and the network corresponding to the network physical address is registered. To register the physical address,
If the flag information corresponding to the network physical address collected by the physical address collecting means is not registered in the connected station management table, it is determined whether or not the network physical address satisfies a predetermined extraction condition And
As a result of the determination, when the network physical address registered in the connection station management table satisfies a predetermined extraction condition, the flag information associated with the network physical address is set as a connection target, As a result of the determination, if the network physical address registered in the connected station management table does not satisfy a predetermined extraction condition, a message indicating whether or not it is a connection target is displayed and output based on an answer input. An address determination process for setting the flag information associated with a network physical address ;
An output process for outputting a network logical address in which the flag information is set as a connection target ;
A program that causes a computer to execute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008238756A JP5266997B2 (en) | 2008-09-17 | 2008-09-17 | Network connection station information output device, network connection station information output method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008238756A JP5266997B2 (en) | 2008-09-17 | 2008-09-17 | Network connection station information output device, network connection station information output method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010074450A JP2010074450A (en) | 2010-04-02 |
JP5266997B2 true JP5266997B2 (en) | 2013-08-21 |
Family
ID=42205837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008238756A Active JP5266997B2 (en) | 2008-09-17 | 2008-09-17 | Network connection station information output device, network connection station information output method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5266997B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014033312A (en) * | 2012-08-02 | 2014-02-20 | Sumitomo Electric Networks Inc | Communication apparatus, communication method, and communication program |
CN108919762B (en) | 2018-07-06 | 2021-05-25 | 东莞市李群自动化技术有限公司 | Control method and device based on industrial Ethernet |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2590734B2 (en) * | 1994-04-30 | 1997-03-12 | 日本電気株式会社 | LAN connection device discovery device |
JP3704246B2 (en) * | 1999-01-22 | 2005-10-12 | 株式会社リコー | Network connection device setting method, computer-readable recording medium recording a program for causing a computer to function as each step of the method, network terminal device, and network connection system |
JP4619940B2 (en) * | 2005-12-21 | 2011-01-26 | 富士通株式会社 | Network fault location detection apparatus and network fault location detection method |
-
2008
- 2008-09-17 JP JP2008238756A patent/JP5266997B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2010074450A (en) | 2010-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20150066979A1 (en) | Device address management in an automation control system | |
US20110264244A1 (en) | Systems and methods for identifying fieldbus devices in a control system | |
JP2008033409A (en) | Asset management system and method, information processor, management device and program | |
CN106790131B (en) | Parameter modification method and device and distributed platform | |
JP2007286759A (en) | Network equipment connection device and network equipment connection method | |
CN110704115A (en) | Method, device and system for configuring BMC (baseboard management controller) of server | |
JP2010122773A (en) | Distributed processing system, method of allocating processing, and information processing apparatus | |
JP6008411B2 (en) | Device management apparatus, device management system, device management method and program | |
JP5266997B2 (en) | Network connection station information output device, network connection station information output method, and program | |
JP6802354B2 (en) | Communication test equipment, communication test methods and programs | |
JP2004086729A (en) | Network configuration display system | |
JP4221919B2 (en) | Method for specifying location of LAN configuration device and search device | |
KR20110066000A (en) | System for providing resource of sensor node in sensor network | |
US12061921B2 (en) | Management apparatus, management system, management method and management program | |
TWI720594B (en) | Remote update firmware control method | |
US20090150524A1 (en) | Network configuration method and system | |
KR20210060965A (en) | Data acquisition system | |
JP6390118B2 (en) | Automatic registration apparatus, automatic registration method and program | |
JP6155954B2 (en) | Information processing apparatus and method for generating network configuration information thereof | |
KR102169111B1 (en) | Apparatus and method for searching link of access network | |
JP2004266870A (en) | Parameter setting system | |
JP4714245B2 (en) | Network visualization apparatus and method, program, and storage medium | |
CN112579116B (en) | Control method for remote updating firmware | |
US20220150114A1 (en) | Communication system, communication apparatus, and program | |
JP4999880B2 (en) | Controller and network system provided with the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20110422 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110812 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20121018 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121023 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121210 |
|
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: 20130409 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130422 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5266997 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 |
|
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 |