JP2014110603A - Communication device, control method for communication device, and program - Google Patents
Communication device, control method for communication device, and program Download PDFInfo
- Publication number
- JP2014110603A JP2014110603A JP2012265271A JP2012265271A JP2014110603A JP 2014110603 A JP2014110603 A JP 2014110603A JP 2012265271 A JP2012265271 A JP 2012265271A JP 2012265271 A JP2012265271 A JP 2012265271A JP 2014110603 A JP2014110603 A JP 2014110603A
- Authority
- JP
- Japan
- Prior art keywords
- address
- communication device
- communication
- storage
- assigning
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Small-Scale Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本発明は、通信装置、通信装置の制御方法、プログラムに関する。 The present invention relates to a communication device, a communication device control method, and a program.
近年、デジタルカメラなどの装置に無線LANのステーション機能を搭載し、無線LANのアクセスポイントを接続して使用するケースが増えてきている。例えば特許文献1には、デジタルカメラに無線LANのステーション機能を搭載し、デジタルカメラで撮影した画像をアクセスポイントを介してネットワーク上にアップロードし、画像共有を容易に行う方法について開示されている。
In recent years, a case where a wireless LAN station function is installed in a device such as a digital camera and a wireless LAN access point is connected and used is increasing. For example,
また、アクセスポイントを介さずにデジタルカメラやプリンタ等の装置を、互いに直接無線LANによって通信可能にするために、これらの装置にアクセスポイントの機能を内蔵することも多くなってきている。そして、これらの装置に無線LANのアクセスポイントの機能を搭載した場合に、各装置へのIPアドレスの割り当てを行うために、DHCPのサーバ機能も併せて搭載することが多い。 In addition, in order to enable devices such as digital cameras and printers to directly communicate with each other via a wireless LAN without using an access point, the functions of the access point are often built in these devices. When these devices are equipped with a wireless LAN access point function, a DHCP server function is often installed together in order to assign an IP address to each device.
DHCPサーバとしてのデジタルカメラは、DHCPクライアントにIPアドレスを割り当てた後、通信相手の装置を検索するために検索処理を行う。例えば、mDNS(Multicast DNS)やSSDP(Simple Service Discovery Protocol)などの検索プロトコルを使用して、通信相手の装置を検索する。検索処理によって通信相手のIPアドレスを取得すると、そのIPアドレスを指定したARPを実行して、MACアドレスを取得する。その後、IPアドレスと、ARPによって取得したMACアドレスとを用いて、通信相手との通信を開始する。ここで、DHCPサーバとしてのデジタルカメラは、装置に割り当てたIPアドレスとその装置のMACアドレスとの対応をDHCPテーブルに記憶しておく。また、ARPによって得られたIPアドレスとMACアドレスとの対応もARPテーブルに記憶しておく。 A digital camera as a DHCP server performs search processing to search for a communication partner device after assigning an IP address to a DHCP client. For example, a communication partner device is searched using a search protocol such as mDNS (Multicast DNS) or SSDP (Simple Service Discovery Protocol). When the IP address of the communication partner is acquired by the search process, ARP specifying the IP address is executed to acquire the MAC address. Thereafter, communication with the communication partner is started using the IP address and the MAC address acquired by ARP. Here, the digital camera as the DHCP server stores the correspondence between the IP address assigned to the device and the MAC address of the device in the DHCP table. The correspondence between the IP address obtained by ARP and the MAC address is also stored in the ARP table.
DHCPサーバによって割り当てられたIPアドレスは、予め決められた期間を過ぎるとその割り当てが解除される。また、ARPテーブルに記憶された各IPアドレスとMACアドレスの対応は、それぞれに決められた更新時間になると、テーブルから削除される。 The IP address assigned by the DHCP server is released after a predetermined period. The correspondence between each IP address and MAC address stored in the ARP table is deleted from the table when the update time determined for each IP address is reached.
しかしながら、従来技術において、DHCPテーブルとARPテーブルはそれぞれの更新に同期がとられていなかった。そのため、DHCPテーブルとARPテーブルとの間で、IPアドレスとMACアドレスの対応関係が不整合を起こす可能性があった。例えば、DHCPサーバによって、あるMACアドレスの装置に対するIPアドレスの割り当てが解除されたにもかかわらず、ARPテーブルにおいてはその装置のIPアドレスが対応付けられたままとなることがあった。そのため従来技術では、通信相手の装置を検索した結果、あるIPアドレスの装置が検索された時、記憶しているARPテーブルに基づいてそのIPアドレスに対応付けられたMACアドレスを用いて通信しようとしても、通信することができない場合があった。 However, in the prior art, the DHCP table and the ARP table are not synchronized with each update. Therefore, there is a possibility that the correspondence between the IP address and the MAC address is inconsistent between the DHCP table and the ARP table. For example, the IP address of a device may remain associated in the ARP table even though the IP address assignment to the device having a certain MAC address is canceled by the DHCP server. Therefore, in the prior art, when a device with a certain IP address is retrieved as a result of searching for a communication partner device, an attempt is made to communicate using the MAC address associated with the IP address based on the stored ARP table. There was also a case that could not communicate.
本発明は、このような問題に鑑みてなされたものであり、アドレスの対応関係を適切に管理し、相手装置とより確実に通信することができる通信装置を提供することを目的とする。 The present invention has been made in view of such problems, and an object of the present invention is to provide a communication device that can appropriately manage the correspondence of addresses and can more reliably communicate with a counterpart device.
上記目的を達成するために、本発明の通信装置は、他の通信装置にIPアドレスを割り当てる割り当て手段と、前記割り当てたIPアドレスと前記他の通信装置の識別情報とを対応付けて記憶する第1の記憶手段と、前記他の通信装置と通信するための宛先となる物理アドレスを取得する取得手段と、前記割り当てたIPアドレスと前記取得した物理アドレスとを対応付けて記憶する第2の記憶手段と、前記他の通信装置から、前記IPアドレスの割り当ての解除を要求する解除要求を受信する受信手段と、前記受信手段によって受信された解除要求に応じて、前記第1の記憶手段の記憶内容を更新し、当該更新に対応するように前記第2の記憶手段の記憶内容を更新する更新手段とを有することを特徴とする。 In order to achieve the above object, a communication apparatus according to the present invention includes an assigning unit that assigns an IP address to another communication apparatus, and stores the assigned IP address and the identification information of the other communication apparatus in association with each other. A second storage for storing the allocated IP address and the acquired physical address in association with each other; and a storage unit for acquiring a physical address serving as a destination for communicating with the other communication device; Means, receiving means for receiving a release request for requesting release of the IP address assignment from the other communication device, and storing the first storage means in response to the release request received by the receiving means And updating means for updating the contents and updating the storage contents of the second storage means so as to correspond to the update.
本発明によれば、アドレスの対応関係を適切に管理し、相手装置とより確実に通信することができる通信装置を提供することができる。 ADVANTAGE OF THE INVENTION According to this invention, the communication apparatus which can manage the correspondence of an address appropriately and can communicate more reliably with the other party apparatus can be provided.
[実施例1]
以下、本実施形態に係る通信装置について、図面を参照しながら詳細に説明する。
[Example 1]
Hereinafter, the communication apparatus according to the present embodiment will be described in detail with reference to the drawings.
図1は本発明を適用できる実施形態に係る、通信装置101のハードウェア構成の一例を表すブロック図である。制御部102は、記憶部103に記憶される制御プログラムを実行することにより通信装置全体を制御する。制御部102は、CPUやMPU等のプロセッサによって構成される。また、制御部102は、他の装置との間で通信パラメータの設定の制御も行う。記憶部103は、制御部102が実行する各種の制御プログラムや、通信パラメータ等の情報を記憶する。また、記憶部103には、通信装置で生成されたり、外部装置から受信した画像データやファイル等を記憶してもよい。記憶部103は、ROM,RAM,HDD,フラッシュメモリ等の各種メモリによって構成される。尚、後述するフローチャートやシーケンス図に示す通信装置101の各種動作は、記憶部103に記憶された制御プログラムを制御部102が実行することにより行われる。
FIG. 1 is a block diagram illustrating an example of a hardware configuration of a
無線部104は、IEEE802.11シリーズに準拠した無線LANの通信を行う。表示部105は、LCDやLEDのように視覚で認知可能な情報の出力、あるいはスピーカなどの音出力が可能な機能を有する。表示部105は視覚情報および音情報の少なくともどちらか一方を出力する機能を備えるものであればよい。アンテナ制御部107であり、アンテナ108を制御して無線通信による信号を送信する。入力部109は、ユーザが各種入力を行うためのボタン、タッチパネル等によって構成される。尚、通信装置101は図1に示すハードウェア構成以外のハードウェア構成を備えていてもよい。例えば通信装置101がデジタルカメラである場合には、撮像部を備え、通信装置101がプリンタである場合には、印刷部を備える。
The
図2は、本実施形態における通信装置のソフトウェア構成201の一例を示すブロック図である。図2に示す各ソフトウェアは、図1の記憶部103に記憶されており、適宜制御部102によって実行される。mDNS制御部202は、通信相手の装置のホスト名を検索するためのMulticast DNSを実行するためのソフトウェアである。UPnP制御部203は、所望のサービスを検索するためのSSDP(Simple Service Discovery Protocol)を実行するためのソフトウェアである。これらは何れも通信装置の通信相手となる装置を検索するためのソフトウェアであるが、装置を検索するためのその他のソフトウェアを備えていても構わない。DHCPクライアント制御部204は、通信装置をDHCP(Dynamic Host Configuration Protocol)クライアントとして動作させるためのソフトウェアである。一方、DHCPサーバ制御部205は、通信装置をDHCPサーバとして動作させるためのソフトウェアである。本実施形態の通信装置は、予めユーザによって設定されている自身の役割、又は、他の通信装置との間のネゴシエーションによって自動的に決定された自身の役割に従って、DHCPクライアントとして動作するかDHCPサーバとして動作するかを決定する。通信装置がDHCPサーバとして動作する場合、DHCPサーバ制御部205は、DHCPプロトコルに従って他の装置にIPアドレスを割り当てる。そして、割り当てたIPアドレスと、当該他の装置の識別情報としてのMACアドレスを対応付けて、DHCPテーブルに登録する。DHCPテーブルについては後述する。AutoIP制御部206は、DHCPサーバが存在しない場合に、通信装置自身のIPアドレスを、予め決められた範囲のIPアドレスの中から自動的に決定する処理を行う。ARPテーブル制御部207は、IPアドレスを指定したARP(Address Resolution Protocol)を実行する。ARPは、アドレス解決のプロトコルであり、宛先IPアドレスをキーとして、次にパケットを受け取るべき装置のMACアドレスを取得するために利用する。宛先IPアドレスの装置との間に中継装置がある場合には、中継装置のMACアドレスをARPで取得することになる。ARPテーブル制御部207は、ARPによって取得したMACアドレスと、ARPで指定したIPアドレスとを対応付けてARPテーブルとして管理する。尚、DHCPテーブルやARPテーブルは、図1の記憶部103に記憶される。尚、MACアドレスは、通信装置に設定される物理アドレスの一例である。また、DHCPサーバ制御部205及びARPテーブル制御部207はそれぞれ第1の記憶手段、第2の記憶手段の一例である。
FIG. 2 is a block diagram illustrating an example of the
無線LANパケット受信部208は、図1のアンテナ108、アンテナ制御部107、無線部104を介して無線LANのパケットを受信する。無線LANパケット送信部209は、図1の無線部104、アンテナ制御部107、アンテナ108を介して、無線LANのパケットを送信する。
The wireless LAN
無線LANステーション機能制御部210は、通信装置が無線LANのステーションとして動作する際の、認証・暗号処理等、各種動作を実行する。無線LANアクセスポイント機能制御部211は、通信装置が無線LANのアクセスポイントとして動作する際の、認証・暗号処理等、各種動作を実行する。本実施形態の通信装置は、予めユーザによって設定されている自身の役割、又は、他の通信装置との間のネゴシエーションによって自動的に決定された自身の役割に従って、無線LANのアクセスポイントとして動作するかステーションとして動作するかを決定する。パケットルーティング制御部212は、無線LANアクセスポイント機能制御部211が動作しているときに、通信パケットのルーティングを行う。
The wireless LAN station
なお、これらのソフトウェアは一例であり、その他のソフトウェアブロックを備えていても構わない。また、複数のソフトウェアブロックが1つのソフトウェアブロックを構成するようにしてもよいし、何れかのソフトウェアブロックが更に複数の機能を行うソフトウェアブロックに分かれてもよい。 These software are examples, and other software blocks may be provided. Also, a plurality of software blocks may constitute one software block, or any one of the software blocks may be further divided into software blocks that perform a plurality of functions.
図3は、本実施形態におけるシステム構成を示す図である。図3の例は、IEEE802.11に準拠した無線LANネットワーク31を示している。図3の例では、無線LANネットワーク31は、3台の通信装置32,33,34によって構成されており、これらの通信装置は何れも図1及び図2の構成を備えている。図3の通信装置32は、無線LANアクセスポイント機能制御部211によって、無線LANネットワーク31におけるアクセスポイントとして動作している。一方、通信装置33及び通信装置34は、無線LANステーション機能制御部210によって、無線LANネットワーク31におけるステーションとして動作している。本実施形態では、アクセスポイントとして動作している通信装置32がデジタルカメラであり、ステーションとして動作している通信装置33、34がプリンタである場合を想定している。以下、通信装置32をデジタルカメラ、通信装置33,34をそれぞれプリンタA、プリンタBと呼ぶ。
FIG. 3 is a diagram showing a system configuration in the present embodiment. The example of FIG. 3 shows a
図4は、デジタルカメラとプリンタとが無線LANによる通信を行う際の、デジタルカメラにおいて実行される処理を示すフローチャートである。以下の説明では、デジタルカメラと図3のプリンタAとが通信する場合を説明するが、デジタルカメラとプリンタBとが通信する場合も同様である。図4の各ステップは、デジタルカメラにおいて、図1の記憶部103に記憶された各プログラム(例えば、図2に示す各ソフトウェアモジュール)を制御部102が実行することによって処理される。
FIG. 4 is a flowchart illustrating processing executed in the digital camera when the digital camera and the printer perform communication by wireless LAN. In the following description, the case where the digital camera communicates with the printer A in FIG. 3 will be described, but the same applies to the case where the digital camera communicates with the printer B. Each step in FIG. 4 is processed by the
S401において、デジタルカメラの無線LANアクセスポイント機能制御部211は、無線LANネットワーク31を形成する。具体的には、デジタルカメラは、形成した無線LANネットワーク31を示すSSIDを含んだビーコンを定期的に送信し、また、ステーションから送信される無線LANネットワークの問い合わせ信号(Probe Request)に応答する。S402において、デジタルカメラの無線LANアクセスポイント機能制御部211は、IEEE802.11に準拠した所定の認証処理を行い、プリンタAとの無線LANによる接続を確立する。S403において、デジタルカメラのDHCPサーバ制御部205は、プリンタAに対してIPアドレスを割り当てる。そしてS404において、デジタルカメラのDHCPサーバ制御部205は、プリンタAのMACアドレスと、S403で割り当てたIPアドレスとを対応付けて、DHCPテーブルに登録する。
In step S <b> 401, the wireless LAN access point
その後、デジタルカメラが実際にプリンタを使用して印刷処理等のサービスを受けるにあたって、デジタルカメラは無線LANネットワーク31に存在するプリンタを検索する。プリンタの検索には、例えばSSDPが用いられる。
Thereafter, when the digital camera actually receives a service such as print processing using the printer, the digital camera searches for a printer existing in the
S405において、デジタルカメラのUPnP制御部203は、SSDPを実行し、プリンタを検索する。具体的には、M−SEARCHと呼ばれる検索パケットをマルチキャストで送信し、プリンタからの応答を待つ。M−SEARCHに対する応答には、プリンタAのIPアドレスが含まれているため、デジタルカメラは、S405の検索の結果、プリンタAのIPアドレスを取得する。S406において、デジタルカメラは、自身が記憶しているARPテーブルを参照し、S405で取得したIPアドレスがARPテーブルに登録されているか否かを判断する。ARPテーブルに登録されていると判断された場合、S407へ進み、デジタルカメラの無線LANパケット送信部209は、画像データ等の送信すべきデータを、プリンタAに送信する。一方、取得したIPアドレスがARPテーブルに登録されていないと判断された場合は、S408へと進む。S408において、デジタルカメラは、プリンタAのIPアドレスを送信宛先としたARPリクエストパケットを送信する。S409において、デジタルカメラは、ARPレスポンスパケットを受信し、プリンタAにデータ送信する際の宛先となるMACアドレスを取得する。S410において、デジタルカメラのARPテーブル制御部207は、プリンタAのIPアドレスと、S409で取得したMACアドレスとを対応付けて、自身が記憶しているARPテーブルに登録する。その後、S407へ進み、デジタルカメラはプリンタAにデータを送信する。
In step S405, the
次に、図5を用いて、前述のDHCPテーブルおよびARPテーブルについて説明する。 Next, the aforementioned DHCP table and ARP table will be described with reference to FIG.
DHCPテーブルは、IPアドレスと、該IPアドレスを割り当てた通信装置のMACアドレスおよび、そのリースタイムを管理するテーブルである。リースタイムとは、IPアドレスとMACアドレスの割り当てが有効な期間を示している。図5(A)の例では、192.168.0.1というIPアドレスが、MACアドレスが00:bb:cc:dd:ee:ffの通信装置に割り当てられており、その有効期間は36000秒であることを示している。また、このDHCPサーバが割り当てることが可能なIPアドレスである192.168.0.2については、現在どの通信装置にも割り当てられていないことを示している。 The DHCP table is a table for managing an IP address, a MAC address of a communication apparatus to which the IP address is assigned, and a lease time thereof. The lease time indicates a period during which the assignment of the IP address and the MAC address is valid. In the example of FIG. 5A, an IP address of 192.168.0.1 is assigned to a communication device with a MAC address of 00: bb: cc: dd: ee: ff, and its valid period is 36000 seconds. It is shown that. Further, 192.168.0.2, which is an IP address that can be assigned by this DHCP server, indicates that it is not currently assigned to any communication device.
次に、ARPテーブルについて説明する。TCP/IPのネットワークにおいて、通信装置が相手装置と通信するためには、送信先アドレスとしてIPアドレスだけでなく、MACアドレスを指定しなければならない。従って、通信装置は、IPアドレスとMACアドレスの対応関係を示すテーブルを保持しておき、その相手装置との通信が一定時間以上途絶えるとテーブル内のその相手装置に関するレコードをクリアする。このテーブルがARPテーブルである。図5(B)の例では、ARPテーブルに2つのレコードが登録されている。また、ARPテーブルの項目の一つである「種別」とは、そのレコードが動的か静的かを示すものである。動的なレコードとは、ARPによって得られたレコードであり、静的なレコードとは、ユーザの入力によって作成されたレコードである。また、項目の一つである「寿命」とは、そのレコードをARPテーブルに登録しておく期間を示すものであり、そのレコードが示すIPアドレスとMACアドレスの対応関係の有効期間を示すものではない。 Next, the ARP table will be described. In a TCP / IP network, in order for a communication device to communicate with a partner device, not only an IP address but also a MAC address must be designated as a destination address. Therefore, the communication device holds a table indicating the correspondence relationship between the IP address and the MAC address, and clears a record related to the partner device in the table when communication with the partner device is interrupted for a predetermined time or longer. This table is an ARP table. In the example of FIG. 5B, two records are registered in the ARP table. The “type” that is one of the items in the ARP table indicates whether the record is dynamic or static. A dynamic record is a record obtained by ARP, and a static record is a record created by user input. Also, “life” as one of the items indicates a period during which the record is registered in the ARP table, and does not indicate an effective period of the correspondence between the IP address and the MAC address indicated by the record. Absent.
このように、DHCPテーブルとARPテーブルとは、共にIPアドレスとMACアドレスとの対応関係を示すテーブルであるにも関わらず、それらは別々のテーブルで管理されている。そして、従来はこれらのテーブルは互いに同期されていなかった。そのため、DHCPテーブルにおいて、あるIPアドレスとMACアドレスの割り当てが既に解除されているにも関わらず、ARPテーブルではそのIPアドレスとMACアドレスの対応関係が残り続けているといった状況が発生してしまっていた。 As described above, although the DHCP table and the ARP table are both tables indicating the correspondence between the IP address and the MAC address, they are managed as separate tables. Conventionally, these tables are not synchronized with each other. Therefore, in the DHCP table, there is a situation in which the correspondence between the IP address and the MAC address continues to remain in the ARP table even though the assignment of the IP address and the MAC address has already been released. It was.
図6のシーケンス図を用いて、そのような状況の発生する場合について説明する。 A case where such a situation occurs will be described with reference to the sequence diagram of FIG.
図6のシーケンス図は、デジタルカメラと無線LANネットワーク31での接続を確立していたプリンタAが、無線LANネットワーク31から離脱し、その後、新たなプリンタBが無線LANネットワーク31でデジタルカメラと接続された場合を示している。
In the sequence diagram of FIG. 6, the printer A that has established a connection with the digital camera via the
まず、デジタルカメラとプリンタAが無線LANネットワーク31による接続を確立する(F601)。その後、DHCPサーバとしてのデジタルカメラが、プリンタAにIPアドレスを割り当てる(F602)。F602の処理により、プリンタAに例えば、IPアドレスとして192.168.0.101が割り当てられたとする。デジタルカメラが記憶しているDHCPテーブルもこの時点で更新される。ただし、デジタルカメラが記憶しているARPテーブルについては、この時点では更新されていない。 First, the digital camera and the printer A establish a connection via the wireless LAN network 31 (F601). Thereafter, the digital camera as the DHCP server assigns an IP address to the printer A (F602). It is assumed that, for example, 192.168.0.101 is assigned to the printer A as an IP address by the processing of F602. The DHCP table stored in the digital camera is also updated at this time. However, the ARP table stored in the digital camera is not updated at this time.
その後、デジタルカメラは、プリンタを使用するために、SSDPによるサービス検索を実行する(F603)。ここでは、M−SEARCHと呼ばれる検索パケットをマルチキャストで送信する。マルチキャストで送信されたパケットは、無線LANネットワーク31に接続されている全ての装置が受信するが、現時点では、プリンタAのみが存在するため、プリンタAのみが検索パケットに応答する(F604)。
Thereafter, in order to use the printer, the digital camera executes a service search by SSDP (F603). Here, a search packet called M-SEARCH is transmitted by multicast. Although all the devices connected to the
プリンタAによる応答から、デジタルカメラはプリンタAのIPアドレスを取得する。その後、プリンタAと通信するためには、送信先となるMACアドレスの情報が必要であり、この時点ではARPテーブルにはプリンタAのレコードが存在しないため、デジタルカメラはARPを実行する。その結果、MACアドレスを取得する。この時点で、デジタルカメラが記憶するARPテーブルに、IPアドレス192.168.0.101と、取得したMACアドレスとを対応付けて登録する。デジタルカメラは、IPアドレス192.168.0.101と、取得したMACアドレスとを用いて、プリンタAと通信を行う(F605)。 From the response by the printer A, the digital camera acquires the IP address of the printer A. Thereafter, in order to communicate with the printer A, information on the MAC address as the transmission destination is necessary. At this time, since the record of the printer A does not exist in the ARP table, the digital camera executes ARP. As a result, the MAC address is acquired. At this time, the IP address 192.168.0.101 and the acquired MAC address are registered in association with each other in the ARP table stored in the digital camera. The digital camera communicates with the printer A using the IP address 192.168.0.101 and the acquired MAC address (F605).
プリンタAにおいて、プリント等の所定の処理が終了した場合や、電源がOFFされた場合には、プリンタAはサービスの離脱をデジタルカメラに通知する(F606)。具体的には、プリンタAは、UPnPで規定されたByeパケットを送信する。Byeパケットとは、装置がUPnPのシステムから離脱することを示す信号である。その後、プリンタAは、DHCP RELEASEパケットを送信し、IPアドレスの割り当ての解除をDHCPサーバであるデジタルカメラに要求する(F607)。これにより、デジタルカメラが記憶しているDHCPテーブルの192.168.0.101のエントリはクリアされ、次のアドレス割り当てでそのIPアドレスを割り当てることが可能となる。引き続き、プリンタAは、無線LANネットワーク31から離脱する(F608)。具体的には、deauthパケット又はdisassocパケットをデジタルカメラに送信する。 In the printer A, when predetermined processing such as printing is completed or the power is turned off, the printer A notifies the digital camera of the withdrawal of the service (F606). Specifically, the printer A transmits a Bye packet defined by UPnP. The Bye packet is a signal indicating that the device leaves the UPnP system. Thereafter, the printer A transmits a DHCP RELEASE packet and requests the digital camera, which is a DHCP server, to release the IP address assignment (F607). As a result, the entry of 192.168.0.101 in the DHCP table stored in the digital camera is cleared, and the IP address can be assigned by the next address assignment. Subsequently, the printer A leaves the wireless LAN network 31 (F608). Specifically, a deauth packet or a disassoc packet is transmitted to the digital camera.
その後、プリンタBが無線LANネットワーク31に参加する。即ち、デジタルカメラとプリンタAが無線LANネットワーク31による接続を確立する(F609)。そして、DHCPサーバとしてのデジタルカメラが、今度はプリンタBにIPアドレスを割り当てる(F610)。F610の処理により、プリンタBに例えば、IPアドレスとして192.168.0.101が割り当てられる。デジタルカメラが記憶しているDHCPテーブルもこの時点で更新される。ただし、デジタルカメラが記憶しているARPテーブルについては、この時点では更新されていない。従って、ARPテーブルでは、192.168.0.101のIPアドレスは、先のプリンタAとのARPによって取得したMACアドレスと対応付けられたままである。
Thereafter, the printer B participates in the
その後、デジタルカメラは、プリンタを使用するために、SSDPによるサービス検索を実行する(F611)。ここでは、M−SEARCHと呼ばれる検索パケットをマルチキャストで送信する。マルチキャストで送信されたパケットは、無線LANネットワーク31に接続されている全ての装置が受信するが、現時点では、プリンタBのみが存在するため、プリンタBのみが検索パケットに応答する(F612)。
Thereafter, the digital camera executes a service search by SSDP in order to use the printer (F611). Here, a search packet called M-SEARCH is transmitted by multicast. Although all devices connected to the
プリンタBによる応答から、デジタルカメラはプリンタBのIPアドレスを取得する。プリンタBのIPアドレスは、F610において割り当てた192.168.0.101である。プリンタBと通信するためには、送信先となるMACアドレスの情報が必要である。この時点では、ARPテーブルにはIPアドレス192.168.0.101のレコードが存在する。従って、デジタルカメラはARPを実行することなく、ARPテーブルに従って、192.168.0.101の装置と通信しようとする。しかしながら、ARPテーブルにおいて192.168.0.101と対応付けられているMACアドレスは、プリンタAと通信するためのMACアドレスであり、プリンタBと通信するためのものではない。従って、デジタルカメラは、プリンタBとの通信に失敗する(F613)。 From the response by the printer B, the digital camera acquires the IP address of the printer B. The IP address of the printer B is 192.168.0.101 assigned in F610. In order to communicate with the printer B, MAC address information as a transmission destination is necessary. At this point, there is a record with an IP address of 192.168.0.101 in the ARP table. Therefore, the digital camera tries to communicate with the 192.168.0.101 device according to the ARP table without executing the ARP. However, the MAC address associated with 192.168.0.101 in the ARP table is a MAC address for communicating with the printer A, and is not for communicating with the printer B. Accordingly, the digital camera fails to communicate with the printer B (F613).
このように、DHCPテーブルにおいて、あるIPアドレスとMACアドレスの割り当てが既に解除されているにも関わらず、ARPテーブルではそのIPアドレスとMACアドレスの対応関係が残り続けていると、正常な通信ができなくなってしまう。 As described above, if the correspondence between the IP address and the MAC address continues to remain in the ARP table even though the assignment of the IP address and the MAC address has already been canceled in the DHCP table, normal communication is not performed. It becomes impossible.
そこで本実施形態のデジタルカメラは、ステーションからDHCP RELEASEパケットを受信した場合、又はステーションが無線LANネットワークから離脱した場合、そのステーションに対応するARPテーブルのレコードをクリアする処理を実行する。 Therefore, when the digital camera of this embodiment receives a DHCP RELEASE packet from a station, or when the station leaves the wireless LAN network, the digital camera executes processing for clearing the record in the ARP table corresponding to the station.
図7は、プリンタと無線LANによる通信を行っている際の、デジタルカメラにおいて実行される処理を示すフローチャートである。以下の説明では、デジタルカメラと図3のプリンタAとが通信する場合を説明するが、デジタルカメラとプリンタBとが通信する場合も同様である。図7の各ステップは、デジタルカメラにおいて、図1の記憶部103に記憶された各プログラム(例えば、図2に示す各ソフトウェアモジュール)を制御部102が実行することによって処理される。
FIG. 7 is a flowchart illustrating processing executed in the digital camera when communication with a printer is performed via a wireless LAN. In the following description, the case where the digital camera communicates with the printer A in FIG. 3 will be described, but the same applies to the case where the digital camera communicates with the printer B. Each step in FIG. 7 is processed by the
S701において、デジタルカメラは、プリンタAからIPアドレスの割り当て解除要求を受信したか否か判断する。具体的には、プリンタAからDHCP RELEASEパケットを受信したかどうかを判断する。DHCP RELEASEパケットを受信した場合にはS702へ、受信していない場合にはS706へ進む。S702で、デジタルカメラのDHCPサーバ制御部205は、自身が記憶するDHCPテーブルにおける、プリンタAに割り当てたIPアドレスとプリンタAのMACアドレスとの対応付けを解除する。そしてS703において、デジタルカメラのARPテーブル制御部207は、自身が記憶するARPテーブルから、プリンタAのIPアドレス及び該IPアドレスに対応付けられているMACアドレスのレコードを削除する。本実施形態ではこの処理により、DHCPテーブルの記憶内容とARPテーブルの記憶内容とが同期され、DHCPによる割り当てが解除されたIPアドレスが、ARPテーブルに残り続けてしまうことがなくなる。
In step S <b> 701, the digital camera determines whether an IP address assignment release request has been received from the printer A. Specifically, it is determined whether a DHCP RELEASE packet is received from printer A. If a DHCP RELEASE packet is received, the process proceeds to S702. If not received, the process proceeds to S706. In step S <b> 702, the DHCP
その後、S704において、デジタルカメラは、プリンタAから、無線LANの接続を切断するための切断通知を受信したか否かを判断する。切断通知とは、例えばIEEE802.11に準拠したdeauthパケットやdesassocパケットである。デジタルカメラが切断通知を受信した場合にはS705へ進み、デジタルカメラは、デジタルカメラとプリンタAとの無線LANネットワーク31による接続を切断する。切断通知を受信しなかった場合には、本フローチャートの処理を終了する。尚、S705で行われる切断処理のトリガは、切断通知の受信に限らない。つまり、切断通知を受信しなくても、無線通信監視(エイジングタイマー処理ともいう)により、プリンタAが無線LANネットワーク31から離脱したことが判定できた場合にも、S705の処理を行うようにしてもよい。
Thereafter, in S704, the digital camera determines whether or not a disconnection notification for disconnecting the wireless LAN connection has been received from the printer A. The disconnection notification is, for example, a deauth packet or dessoc packet conforming to IEEE 802.11. If the digital camera receives the disconnection notification, the process advances to step S705, and the digital camera disconnects the connection between the digital camera and the printer A via the
S701においてDHCP RELEASEパケットを受信していないと判断された場合にはS706へ進む。S706において、デジタルカメラは、プリンタAから、無線LANの接続を切断するための切断通知を受信したか否かを判断する。切断通知については上述したとおりである。デジタルカメラが切断通知を受信した場合にはS707へ進み、一方、切断通知を受信しなかった場合には本フローチャートの処理を終了する。 If it is determined in S701 that a DHCP RELEASE packet has not been received, the process proceeds to S706. In step S <b> 706, the digital camera determines whether a disconnection notification for disconnecting the wireless LAN connection has been received from the printer A. The disconnection notification is as described above. If the digital camera receives a disconnection notification, the process advances to step S707. On the other hand, if the digital camera does not receive a disconnection notification, the process of this flowchart ends.
S707で、デジタルカメラのDHCPサーバ制御部205は、自身が記憶するDHCPテーブルにおける、プリンタAに割り当てたIPアドレスとプリンタAのMACアドレスとの対応付けを解除する。そしてS708において、デジタルカメラのARPテーブル制御部207は、自身が記憶するARPテーブルから、プリンタAのIPアドレス及び該IPアドレスに対応付けられているMACアドレスのレコードを削除する。本実施形態ではこの処理により、DHCPテーブルの記憶内容とARPテーブルの記憶内容とが同期され、無線LANネットワーク31から離脱したプリンタAのIPアドレスが、ARPテーブルに残り続けてしまうことがなくなる。その後、S709において、デジタルカメラは、デジタルカメラとプリンタAとの無線LANネットワーク31による接続を切断する。尚、S709で行われる切断処理のトリガは、切断通知の受信に限らないことは、S705の処理において説明したのと同様である。
In step S <b> 707, the DHCP
このように、本実施形態のデジタルカメラは、プリンタAからDHCP RELEASEパケットを受信した場合又は無線LANの切断通知を受信した場合に、DHCPテーブルの記憶内容を更新するだけでなく、ARPテーブルの記憶内容も合わせて更新する。これにより、図6で説明した従来の問題を防ぐことができる。 As described above, when the digital camera according to the present embodiment receives a DHCP RELEASE packet from the printer A or receives a wireless LAN disconnection notification, the digital camera not only updates the contents stored in the DHCP table but also stores the ARP table. The contents are also updated. Thereby, the conventional problem described in FIG. 6 can be prevented.
特に、本実施形態では、たとえDHCP RELEASEパケットを受信していなくても、無線LANの切断通知を受信した場合にはDHCPテーブル及びARPテーブルを更新するようにしている。これにより、例えばDHCPによってあるIPアドレスが割り当てられたプリンタAが、その無線LANから離脱した後、同じIPアドレスが手動で設定されたプリンタBが存在した場合でも、デジタルカメラはこのプリンタBと正常に通信できるようになる。 In particular, in the present embodiment, even when a DHCP RELEASE packet is not received, the DHCP table and the ARP table are updated when a wireless LAN disconnection notification is received. Thus, for example, even if the printer A to which a certain IP address is assigned by DHCP leaves the wireless LAN and there is a printer B in which the same IP address is manually set, the digital camera is normal with this printer B. Will be able to communicate.
図8のシーケンス図は、本実施形態におけるデジタルカメラ、プリンタA、プリンタBの通信の流れを示す図である。図6と対比させて、従来の問題点がどのように解消されているかを説明する。 The sequence diagram of FIG. 8 is a diagram illustrating a communication flow of the digital camera, the printer A, and the printer B in the present embodiment. Compared with FIG. 6, how the conventional problems are solved will be described.
F801〜F807までの処理は、図6のF601〜F607と同じであるため説明は省略する。F807においてデジタルカメラはプリンタAからDHCP RELEASEパケットを受信すると、デジタルカメラは、自身が記憶しているARPテーブルを更新する(F808)。この処理により、デジタルカメラが記憶するARPテーブルにおいて、IPアドレス192.168.0.101と、取得したMACアドレスとを対応付けたレコードは削除される。その後、F809〜F813までの処理は、図6のF608〜F612と同様である。F813においてデジタルカメラはプリンタBのIPアドレス192.168.0.101を取得する。プリンタBと通信するためには、送信先となるMACアドレスの情報が必要であるが、F808の処理によってARPテーブル内のIPアドレス192.168.0.101の情報は削除されている。従ってデジタルカメラはARPを実行し、MACアドレスを取得する。そして、デジタルカメラは、ARPテーブルにIPアドレス192.168.0.101と、取得したMACアドレスとを対応付けて登録する。デジタルカメラは、IPアドレス192.168.0.101と、取得したMACアドレスとを用いて、プリンタBと通信を行う(F814)。 The processing from F801 to F807 is the same as F601 to F607 in FIG. In F807, when the digital camera receives the DHCP RELEASE packet from the printer A, the digital camera updates the ARP table stored in itself (F808). By this process, the record in which the IP address 192.168.0.101 is associated with the acquired MAC address in the ARP table stored in the digital camera is deleted. Thereafter, processing from F809 to F813 is the same as F608 to F612 in FIG. In F813, the digital camera acquires the IP address 192.168.0.101 of the printer B. In order to communicate with the printer B, information on the MAC address as the transmission destination is necessary, but the information on the IP address 192.168.0.101 in the ARP table has been deleted by the processing of F808. Therefore, the digital camera executes ARP and acquires the MAC address. Then, the digital camera registers the IP address 192.168.0.101 and the acquired MAC address in association with each other in the ARP table. The digital camera communicates with the printer B using the IP address 192.168.0.101 and the acquired MAC address (F814).
このように、本実施形態によれば、DHCPテーブルとARPテーブルの情報の不一致による通信エラーが解消され、相手装置とより確実に通信することができるようになる。 As described above, according to the present embodiment, a communication error due to a mismatch between information in the DHCP table and the ARP table is eliminated, and communication with the partner apparatus can be performed more reliably.
[実施例2]
実施例1では、DHCPサーバとして動作しているデジタルカメラが、DHCPクライアントとして動作しているプリンタから送られるIPアドレスの割り当て解除要求を受信した場合に、それに連動してARPテーブルの更新を行うようにした。又は、プリンタから無線LANの切断通知を受信した場合に、それに連動してARPテーブルの更新を行うようにした。即ち、IPアドレスの割り当て解除要求の受信と無線LANの切断通知の受信の少なくとも何れかの場合に、それに連動してARPテーブルの更新を行うようにした。これに対して実施例2では、IPアドレスの割り当て解除要求や無線LANの切断通知を待たずに、DHCPによるIPアドレスの割り当てと連動して、ARPテーブルを更新するようにする。以下、実施例1との差分を中心に、実施例2を説明する。
[Example 2]
In the first embodiment, when a digital camera operating as a DHCP server receives an IP address allocation release request sent from a printer operating as a DHCP client, the ARP table is updated in conjunction with the request. I made it. Alternatively, when a wireless LAN disconnection notification is received from the printer, the ARP table is updated in conjunction with it. That is, the ARP table is updated in conjunction with at least one of reception of an IP address assignment release request and reception of a wireless LAN disconnection notification. In contrast, in the second embodiment, the ARP table is updated in conjunction with the IP address assignment by DHCP without waiting for the IP address assignment release request or the wireless LAN disconnection notification. Hereinafter, the second embodiment will be described focusing on differences from the first embodiment.
本実施形態における各通信装置の構成、無線LANネットワークシステムの構成は実施例1と同様であるため説明を省略する。また、本実施形態においても、アクセスポイントとして動作している通信装置32がデジタルカメラであり、ステーションとして動作している通信装置33、34がプリンタである。そして、アクセスポイントとして動作するデジタルカメラが、DHCPサーバとなり、ステーションとして動作しているプリンタが、DHCPクライアントとなる。
Since the configuration of each communication apparatus and the configuration of the wireless LAN network system in this embodiment are the same as those in the first embodiment, description thereof will be omitted. Also in this embodiment, the
図9は、デジタルカメラとプリンタとが無線LANによる通信を行う際の、デジタルカメラにおいて実行される処理を示すフローチャートである。図9のフローチャートは実施例1の図4のフローチャートと対応するため、図9の説明では、図4との差分について説明する。図9の各ステップは、デジタルカメラにおいて、図1の記憶部103に記憶された各プログラム(例えば、図2に示す各ソフトウェアモジュール)を制御部102が実行することによって処理される。
FIG. 9 is a flowchart showing processing executed in the digital camera when the digital camera and the printer perform communication by wireless LAN. Since the flowchart of FIG. 9 corresponds to the flowchart of FIG. 4 of the first embodiment, differences from FIG. 4 will be described in the description of FIG. Each step in FIG. 9 is processed by the
S401〜S404までの処理は、図4と同様である。即ち、デジタルカメラは無線LANネットワークを形成し、プリンタAとの無線LANによる接続を確立する。そして、デジタルカメラのプリンタAに対してIPアドレスを割り当て、割り当てたIPアドレスとプリンタAのMACアドレスとを対応付けてDHCPテーブルに登録する。 The processes from S401 to S404 are the same as those in FIG. That is, the digital camera forms a wireless LAN network and establishes a connection with the printer A via the wireless LAN. Then, an IP address is assigned to the printer A of the digital camera, and the assigned IP address and the MAC address of the printer A are associated and registered in the DHCP table.
その後、S901において、デジタルカメラはARPテーブルの更新を行う。具体的に、S901で行われるARPテーブルの更新処理は、以下の何れであってもよい。一つ目の方法として、デジタルカメラのARPテーブル制御部207は、S404でDHCPテーブルに登録したIPアドレスとMACアドレスとを、ARPテーブルにも登録する。このとき、もし既にARPテーブルに同じIPアドレスが登録されていた場合には、テーブルを上書きすることによって既存のIPアドレスのレコードを無効化する。このようにして、DHCPテーブルが更新された時に合わせて、ARPテーブルも同様に更新することで、これらのテーブルの内容を同期させる。
Thereafter, in S901, the digital camera updates the ARP table. Specifically, the update processing of the ARP table performed in S901 may be any of the following. As a first method, the ARP
二つ目の方法として、デジタルカメラのARPテーブル制御部207は、S404でDHCPテーブルに登録したIPアドレスがARPテーブル内に存在するかどうかを判断する。そして、存在した場合にはそのレコードを削除する。存在しなかった場合には特に処理を実行しない。このようにして、ARPテーブル内に、使用できない可能性のあるレコードが残り続けてしまうことを防ぐ。
As a second method, the ARP
三つ目の方法として、デジタルカメラのARPテーブル制御部207は、S404でDHCPテーブルが更新されたことを受けて、ARPテーブル全体をクリアする。このようにして、ARPテーブル内に、使用できない可能性のあるレコードが残り続けてしまうことを防ぐ。
As a third method, the ARP
S901で実行されるARPテーブルの更新処理は、これら3種類の方法の何れであっても構わない。また、これら3種類の方法のどれを用いるかをユーザの操作に応じて選択的に切り替えても構わないし、ネットワークシステム構成の情報を用いて自動的に切り替えても構わない。例えば、デジタルカメラとプリンタとが中継装置を介さずに直接通信できるシステム構成である場合には、一つ目の方法を用いることが望ましい。一方、デジタルカメラとプリンタとが通信するために中継装置を介す必要があるシステム構成の場合には、二つ目の方法や三つ目の方法が望ましい。 The ARP table update process executed in S901 may be any of these three methods. Further, which of these three types of methods is used may be selectively switched according to a user operation, or may be automatically switched using information on the network system configuration. For example, in the case of a system configuration in which a digital camera and a printer can communicate directly without using a relay device, it is desirable to use the first method. On the other hand, in the case of a system configuration that requires a relay device to communicate between the digital camera and the printer, the second method or the third method is desirable.
S901の処理が行われた後、S405〜S410までの処理は、図4と同様である。ただし、S901において上記3種類の方法のどれを用いたかによって、S406の判断結果は変わることになる。一つ目の方法を用いた場合には、S406では必ずYesとなり、S407へ進むことになる。一方、二つ目の方法又は三つ目の方法を用いた場合には、S406では必ずNoとなり、S408へと進むことになる。 After the processing of S901 is performed, the processing from S405 to S410 is the same as that in FIG. However, the determination result in S406 varies depending on which of the above three methods is used in S901. If the first method is used, S406 is always Yes, and the process proceeds to S407. On the other hand, if the second method or the third method is used, the answer is always No in S406, and the process proceeds to S408.
以上説明したように、本実施形態では、IPアドレスの割り当て解除要求や無線LANの切断通知を待たずに、DHCPによるIPアドレスの割り当てと連動して、ARPテーブルを更新するようにした。本実施形態によれば図6で説明した従来の問題を防ぐことができる。 As described above, in this embodiment, the ARP table is updated in conjunction with the IP address assignment by DHCP without waiting for an IP address assignment release request or a wireless LAN disconnection notification. According to this embodiment, the conventional problem described in FIG. 6 can be prevented.
[その他の実施形態]
上記実施例は、本発明を実施するための一例を示すものであり、本発明の趣旨を逸脱しない限り、上記実施例は種々の変更が可能である。
[Other Embodiments]
The above embodiment shows an example for carrying out the present invention, and the above embodiment can be variously modified without departing from the gist of the present invention.
上記実施例の通信装置は、デジタルカメラやプリンタに限らない。PCやタブレット端末であってもよく、携帯電話やスマートフォン等のモバイル端末であってもよい。また、複写機やスキャナ、FAX、複合機等の画像処理装置、テレビやレコーダー等のデジタル家電であってもよい。 The communication device of the above embodiment is not limited to a digital camera or a printer. It may be a PC or a tablet terminal, and may be a mobile terminal such as a mobile phone or a smartphone. Further, it may be an image processing apparatus such as a copying machine, a scanner, a FAX, or a multifunction machine, or a digital home appliance such as a television or a recorder.
また、通信装置が存在するネットワークは、アクセスポイントが存在するインフラストラクチャーモードの無線ネットワークに限らず、アクセスポイントを必要としないアドホックモードの無線ネットワークであってもよい。アドホックネットワークの場合、通信装置間でネゴシエーションを行い、どの通信装置がDHCPサーバの機能を実行するかを決定するようにするとよい。 The network in which the communication device exists is not limited to the infrastructure mode wireless network in which the access point exists, and may be an ad hoc mode wireless network that does not require an access point. In the case of an ad hoc network, it is preferable to negotiate between communication devices to determine which communication device performs the function of the DHCP server.
また、上記実施例はIEEE802.11準拠の無線LANを例に説明した。しかしながら、本発明は、ワイヤレスUSB、MBOA、Bluetooth(登録商標)、UWB、ZigBee(登録商標)等の他の無線媒体において実施してもよい。また、有線LAN等の有線通信媒体において実施してもよい。ここで、MBOAは、Multi Band OFDM Allianceの略である。また、UWBは、ワイヤレスUSB、ワイヤレス1394、WINETなどが含まれる。 The above embodiment has been described by taking an example of a wireless LAN compliant with IEEE 802.11. However, the present invention may be implemented in other wireless media such as wireless USB, MBOA, Bluetooth (registered trademark), UWB, and ZigBee (registered trademark). Moreover, you may implement in wired communication media, such as wired LAN. Here, MBOA is an abbreviation for Multi Band OFDM Alliance. UWB includes wireless USB, wireless 1394, WINET, and the like.
また、上記実施例では、通信相手となる通信装置に対してIPアドレスを割り当てる方法としてDHCPを用いたが、AUTOIPによるアドレス割り当てや、IPv6によるリンクローカルアドレスの自動割り当て等の別の方法を用いても構わない。その場合、上記実施例のDHCPテーブルはそれぞれのプロトコルにおけるIPアドスとMACアドレスの対応関係を示すテーブルに置き換わる。 In the above embodiment, DHCP is used as a method for assigning an IP address to a communication apparatus as a communication partner. However, another method such as address assignment by AUTOIP or automatic link local address assignment by IPv6 is used. It doesn't matter. In that case, the DHCP table of the above embodiment is replaced with a table indicating the correspondence between the IP address and the MAC address in each protocol.
上記実施例では、通信相手となる通信装置を検索する方法としてUPnPのSSDPを用いたが、mDNSやSLP等の別の方法を用いても構わない。 In the above embodiment, UPnP SSDP is used as a method of searching for a communication device as a communication partner, but another method such as mDNS or SLP may be used.
更に、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)をネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム又は装置のコンピュータ(又はCPUやMPU等)がプログラムコードを読み出して実行する処理である。この場合、そのプログラム、及び該プログラムを記憶した記憶媒体は本発明を構成することになる。 Furthermore, the present invention is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program code. It is a process to be executed. In this case, the program and the storage medium storing the program constitute the present invention.
102 制御部
103 記憶部
104 無線部
105 表示部
102
Claims (22)
他の通信装置にIPアドレスを割り当てる割り当て手段と、
前記割り当てたIPアドレスと前記他の通信装置の識別情報とを対応付けて記憶する第1の記憶手段と、
前記他の通信装置と通信するための宛先となる物理アドレスを取得する取得手段と、
前記割り当てたIPアドレスと前記取得した物理アドレスとを対応付けて記憶する第2の記憶手段と、
前記他の通信装置から、前記IPアドレスの割り当ての解除を要求する解除要求を受信する受信手段と、
前記受信手段によって受信された解除要求に応じて、前記第1の記憶手段の記憶内容を更新し、当該更新に対応するように前記第2の記憶手段の記憶内容を更新する更新手段と、
を有することを特徴とする通信装置。 A communication device,
Assigning means for assigning IP addresses to other communication devices;
First storage means for storing the assigned IP address and identification information of the other communication device in association with each other;
Obtaining means for obtaining a physical address as a destination for communicating with the other communication device;
Second storage means for storing the assigned IP address and the acquired physical address in association with each other;
Receiving means for receiving a release request for requesting release of the IP address assignment from the other communication device;
Updating means for updating the storage content of the first storage means in response to the release request received by the receiving means, and updating the storage content of the second storage means so as to correspond to the update;
A communication apparatus comprising:
前記第2の記憶手段は、前記割り当てたIPアドレスと前記取得した物理アドレスとを対応付けたテーブルを記憶することを特徴とする請求項1記載の通信装置。 The first storage means stores a table in which the assigned IP address is associated with identification information of the other communication device,
The communication apparatus according to claim 1, wherein the second storage unit stores a table in which the assigned IP address is associated with the acquired physical address.
他の通信装置にIPアドレスを割り当てる割り当て手段と、
前記割り当てたIPアドレスと前記他の通信装置の識別情報とを対応付けて記憶する第1の記憶手段と、
前記他の通信装置と通信するための宛先となる物理アドレスを取得する取得手段と、
前記割り当てたIPアドレスと前記取得した物理アドレスとを対応付けて記憶する第2の記憶手段と、
前記他の通信装置から、前記通信装置との間のネットワークの接続を切断する通知を受信する受信手段と、
前記受信手段による前記通知の受信に応じて、前記第1の記憶手段の記憶内容を更新し、当該更新に対応するように前記第2の記憶手段の記憶内容を更新する更新手段と、
を有することを特徴とする通信装置。 A communication device,
Assigning means for assigning IP addresses to other communication devices;
First storage means for storing the assigned IP address and identification information of the other communication device in association with each other;
Obtaining means for obtaining a physical address as a destination for communicating with the other communication device;
Second storage means for storing the assigned IP address and the acquired physical address in association with each other;
Receiving means for receiving notification from the other communication device to disconnect the network connection with the communication device;
Updating means for updating the storage content of the first storage means in response to the reception of the notification by the receiving means, and updating the storage content of the second storage means so as to correspond to the update;
A communication apparatus comprising:
前記第2の記憶手段は、前記割り当てたIPアドレスと前記取得した物理アドレスとを対応付けたテーブルを記憶することを特徴とする請求項4記載の通信装置。 The first storage means stores a table in which the assigned IP address is associated with identification information of the other communication device,
5. The communication apparatus according to claim 4, wherein the second storage unit stores a table in which the assigned IP address is associated with the acquired physical address.
前記割り当て手段によって割り当てるIPアドレスは、前記通信手段によって前記他の通信装置と通信を行う際に用いるアドレスであることを特徴とする請求項1乃至6のいずれか一項に記載の通信装置。 Communication means for communicating with the other communication device by a wireless LAN compliant with IEEE802.11.
The communication apparatus according to claim 1, wherein the IP address assigned by the assigning unit is an address used when the communication unit communicates with the other communication apparatus.
前記受信手段は、前記他の通信装置から、前記無線LANの接続を切断する通知を受信することを特徴とする請求項4乃至6のいずれか一項に記載の通信装置。 Communication means for communicating with the other communication device by a wireless LAN compliant with IEEE802.11.
The communication apparatus according to claim 4, wherein the reception unit receives a notification of disconnecting the wireless LAN connection from the other communication apparatus.
DHCPを用いて他の通信装置にIPアドレスを割り当てる割り当て手段と、
前記IPアドレスを指定したARPによって取得されたMACアドレスと、前記IPアドレスとをARPテーブルに登録する登録手段、
DHCPによって前記IPアドレスの割り当てが解除されるのに応じて、前記ARPテーブルを更新する更新手段と、
を有することを特徴とする通信装置。 A communication device,
Assigning means for assigning an IP address to another communication device using DHCP;
Registration means for registering the MAC address acquired by the ARP specifying the IP address and the IP address in the ARP table;
Updating means for updating the ARP table in response to the assignment of the IP address being canceled by DHCP;
A communication apparatus comprising:
DHCPを用いて他の通信装置にIPアドレスを割り当てる割り当て手段と、
前記IPアドレスを指定したARPによって取得されたMACアドレスと、前記IPアドレスとをARPテーブルに登録する登録手段、
前記他の通信装置から、前記通信装置との間のネットワークの接続を切断する通知を受信するのに応じて、前記ARPテーブルを更新する更新手段と、
を有することを特徴とする通信装置。 A communication device,
Assigning means for assigning an IP address to another communication device using DHCP;
Registration means for registering the MAC address acquired by the ARP specifying the IP address and the IP address in the ARP table;
Updating means for updating the ARP table in response to receiving a notification for disconnecting the network connection with the communication device from the other communication device;
A communication apparatus comprising:
DHCPを用いて他の通信装置にIPアドレスを割り当てる割り当て手段と、
前記割り当て手段によるIPアドレスの割り当てに応じて、前記IPアドレスを指定したARPを実行することなく、ARPテーブルを更新する更新手段と、
を有することを特徴とする通信装置。 A communication device,
Assigning means for assigning an IP address to another communication device using DHCP;
An updating means for updating the ARP table in accordance with the assignment of the IP address by the assigning means without executing the ARP specifying the IP address;
A communication apparatus comprising:
前記割り当て手段によって割り当てるIPアドレスは、前記通信手段によって前記他の通信装置と通信を行う際に用いるアドレスであることを特徴とする請求項11乃至15のいずれか一項に記載の通信装置。 Communication means for communicating with the other communication device by a wireless LAN compliant with IEEE802.11.
The communication apparatus according to claim 11, wherein the IP address assigned by the assigning unit is an address used when the communication unit communicates with the other communication apparatus.
他の通信装置にIPアドレスを割り当てる割り当てステップと、
前記割り当てたIPアドレスと前記他の通信装置の識別情報とを対応付けて記憶部に記憶する第1の記憶ステップと、
前記他の通信装置と通信するための宛先となる物理アドレスを取得する取得ステップと、
前記割り当てたIPアドレスと前記取得した物理アドレスとを対応付けて記憶部に記憶する第2の記憶ステップと、
前記他の通信装置から、前記IPアドレスの割り当ての解除を要求する解除要求を受信する受信ステップと、
前記受信ステップによって受信された解除要求に応じて、前記第1の記憶ステップにおける記憶内容を更新し、当該更新に対応するように前記第2の記憶ステップにおける記憶内容を更新する更新ステップと、
を有することを特徴とする通信装置の制御方法。 A communication device control method comprising:
An assigning step of assigning IP addresses to other communication devices;
A first storage step of storing the assigned IP address and the identification information of the other communication device in association with each other in a storage unit;
An acquisition step of acquiring a physical address as a destination for communicating with the other communication device;
A second storage step of storing the allocated IP address and the acquired physical address in a storage unit in association with each other;
Receiving a release request for requesting release of the IP address assignment from the other communication device;
In response to the release request received by the receiving step, the storage content in the first storage step is updated, and the storage content in the second storage step is updated to correspond to the update;
A method for controlling a communication apparatus, comprising:
他の通信装置にIPアドレスを割り当てる割り当てステップと、
前記割り当てたIPアドレスと前記他の通信装置の識別情報とを対応付けて記憶部に記憶する第1の記憶ステップと、
前記他の通信装置と通信するための宛先となる物理アドレスを取得する取得ステップと、
前記割り当てたIPアドレスと前記取得した物理アドレスとを対応付けて記憶部に記憶する第2の記憶ステップと、
前記他の通信装置から、前記通信装置との間のネットワークの接続を切断する通知を受信する受信ステップと、
前記受信ステップによる前記通知の受信に応じて、前記第1の記憶ステップにおける記憶内容を更新し、当該更新に対応するように前記第2の記憶ステップにおける記憶内容を更新する更新ステップと、
を有することを特徴とする通信装置の制御方法。 A communication device control method comprising:
An assigning step of assigning IP addresses to other communication devices;
A first storage step of storing the assigned IP address and the identification information of the other communication device in association with each other in a storage unit;
An acquisition step of acquiring a physical address as a destination for communicating with the other communication device;
A second storage step of storing the allocated IP address and the acquired physical address in a storage unit in association with each other;
Receiving from the other communication device a notification for disconnecting the network connection with the communication device;
An update step of updating the storage content in the first storage step in response to the reception of the notification by the reception step, and updating the storage content in the second storage step to correspond to the update;
A method for controlling a communication apparatus, comprising:
DHCPを用いて他の通信装置にIPアドレスを割り当てる割り当てステップと、
前記IPアドレスを指定したARPによって取得されたMACアドレスと、前記IPアドレスとをARPテーブルに登録する登録ステップと、
DHCPによって前記IPアドレスの割り当てが解除されるのに応じて、前記ARPテーブルを更新する更新ステップと、
を有することを特徴とする通信装置の制御方法。 A communication device control method comprising:
An assigning step of assigning an IP address to another communication device using DHCP;
A registration step of registering the MAC address acquired by the ARP specifying the IP address and the IP address in an ARP table;
An update step of updating the ARP table in response to the IP address being deallocated by DHCP;
A method for controlling a communication apparatus, comprising:
DHCPを用いて他の通信装置にIPアドレスを割り当てる割り当てステップと、
前記IPアドレスを指定したARPによって取得されたMACアドレスと、前記IPアドレスとをARPテーブルに登録する登録ステップ、
前記他の通信装置から、前記通信装置との間のネットワークの接続を切断する通知を受信するのに応じて、前記ARPテーブルを更新する更新ステップと、
を有することを特徴とする通信装置の制御方法。 A communication device control method comprising:
An assigning step of assigning an IP address to another communication device using DHCP;
A registration step of registering the MAC address acquired by the ARP specifying the IP address and the IP address in an ARP table;
An update step of updating the ARP table in response to receiving a notification of disconnecting a network connection with the communication device from the other communication device;
A method for controlling a communication apparatus, comprising:
DHCPを用いて他の通信装置にIPアドレスを割り当てる割り当てステップと、
前記割り当てステップによるIPアドレスの割り当てに応じて、前記IPアドレスを指定したARPを実行することなく、ARPテーブルを更新する更新ステップと、
を有することを特徴とする通信装置の制御方法。 A communication device control method comprising:
An assigning step of assigning an IP address to another communication device using DHCP;
An updating step for updating the ARP table without executing the ARP designating the IP address in accordance with the assignment of the IP address in the assignment step;
A method for controlling a communication apparatus, comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012265271A JP2014110603A (en) | 2012-12-04 | 2012-12-04 | Communication device, control method for communication device, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012265271A JP2014110603A (en) | 2012-12-04 | 2012-12-04 | Communication device, control method for communication device, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2014110603A true JP2014110603A (en) | 2014-06-12 |
Family
ID=51030973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012265271A Pending JP2014110603A (en) | 2012-12-04 | 2012-12-04 | Communication device, control method for communication device, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2014110603A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7258255B1 (en) * | 2022-06-22 | 2023-04-14 | 三菱電機株式会社 | Control device, control system, control method and program |
-
2012
- 2012-12-04 JP JP2012265271A patent/JP2014110603A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7258255B1 (en) * | 2022-06-22 | 2023-04-14 | 三菱電機株式会社 | Control device, control system, control method and program |
WO2023248382A1 (en) * | 2022-06-22 | 2023-12-28 | 三菱電機株式会社 | Control apparatus, control system, control method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5994261B2 (en) | Communication device | |
JP6271843B2 (en) | COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM | |
US7720097B2 (en) | Communication apparatus, communication method, communication program and recording medium | |
US9807583B2 (en) | Communication apparatus, control method thereof, and recording medium | |
JP5820106B2 (en) | Communication apparatus and control method thereof | |
US20180241826A1 (en) | Communication apparatus, control method therefor, and storage medium | |
US9882880B2 (en) | Communication apparatus, method for controlling the same, and storage medium | |
JP6271839B2 (en) | COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM | |
JP2005277937A (en) | Communication method and communication apparatus | |
JP4635592B2 (en) | Document processing system | |
JP6597423B2 (en) | Information processing apparatus and program | |
JP2018157516A (en) | Information processing device, communication system, communication route control method, and program | |
US9924554B2 (en) | Communication apparatus, control method for the communication apparatus, and non-transitory computer-readable storage medium | |
JP6271840B2 (en) | COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM | |
JP5915314B2 (en) | Communication device | |
JP2014110603A (en) | Communication device, control method for communication device, and program | |
JP2022046473A (en) | Information processing device and program | |
JP6119187B2 (en) | Management device, address information management program, and address information management system | |
JP2009225287A (en) | Communication system, server device, client device, communication method, program, and recording medium | |
JP4479494B2 (en) | Document processing system | |
JP2014241513A (en) | Communication apparatus, control method for communication apparatus, and program | |
JP2016195465A (en) | Communication device | |
JP6519668B2 (en) | Communication device | |
JP2014165603A (en) | Communication apparatus, control method thereof, and program | |
JP2014216691A (en) | Information processing device and network connection program |