JP6354431B2 - Storage device - Google Patents

Storage device Download PDF

Info

Publication number
JP6354431B2
JP6354431B2 JP2014158325A JP2014158325A JP6354431B2 JP 6354431 B2 JP6354431 B2 JP 6354431B2 JP 2014158325 A JP2014158325 A JP 2014158325A JP 2014158325 A JP2014158325 A JP 2014158325A JP 6354431 B2 JP6354431 B2 JP 6354431B2
Authority
JP
Japan
Prior art keywords
nas
content
address
external device
storage device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2014158325A
Other languages
Japanese (ja)
Other versions
JP2016035666A (en
Inventor
雅彦 堀部
雅彦 堀部
磨 山田
磨 山田
雅人 松村
雅人 松村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Buffalo Inc
Original Assignee
Buffalo Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Buffalo Inc filed Critical Buffalo Inc
Priority to JP2014158325A priority Critical patent/JP6354431B2/en
Publication of JP2016035666A publication Critical patent/JP2016035666A/en
Application granted granted Critical
Publication of JP6354431B2 publication Critical patent/JP6354431B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、LANに接続される記憶装置および当該記憶装置のIPアドレスの交換方法に関する。   The present invention relates to a storage device connected to a LAN and an IP address exchange method for the storage device.

家庭やオフィスにおいて、ハードディスクなどの記憶手段を有する記憶装置(NAS;Network Attached Storage、以下NAS)が利用されている。NASは、家庭やオフィス内のLANに接続され、LAN内の他の電子機器で利用されるデータを記憶する。   In a home or office, a storage device (NAS: Network Attached Storage: NAS) having a storage means such as a hard disk is used. The NAS is connected to a home or office LAN and stores data used by other electronic devices in the LAN.

近年普及しているスマートフォンやタブレットPC等の外部機器からNASを利用したいというニーズがある。このような外部機器は、機器の性質上、家庭やオフィス内にとどまらず、移動先においても頻繁に利用される。移動先での外部機器は、携帯電話回線等を介してインターネット等の広域回線網に接続される。従って、移動先で外部機器が家庭やオフィスのNASにアクセスする場合、広域回線網を介したアクセスを行うことになる。このようなアクセスを可能にするため、広域回線網とLANを接続するルータは、NAPTまたは静的IPマスカレードと呼ばれる技術を用いてIPアドレスの変換を行っている。   There is a need to use NAS from external devices such as smartphones and tablet PCs that have become popular in recent years. Such external devices are frequently used not only in homes and offices but also at destinations due to the nature of the devices. The external device at the destination is connected to a wide area network such as the Internet via a mobile phone line or the like. Therefore, when an external device accesses a NAS in a home or office at the destination, access is made via a wide area network. In order to enable such access, a router that connects a wide area network and a LAN performs IP address conversion using a technique called NAPT or static IP masquerade.

広域回線網を介してLAN側の特定のサーバにアクセスする機会は増加する傾向にある。例えば、動画配信サービスにおいて、人気の高いコンテンツを保有するサーバ(コンテンツサーバ)に対し、アクセスが殺到する場合がある。この場合、サーバの負担を軽減するため、複数のミラーサーバによってコンテンツサーバを構築し、アクセスを分散させる。これに関連する技術として、特許文献1は、複数のミラーサーバのうちの特定のミラーサーバへのアクセスの偏りを防止し、各ミラーサーバの負担を分散させるコネクション分配装置を開示している。   Opportunities to access specific servers on the LAN side via a wide area network tend to increase. For example, in a video distribution service, there is a case where access is flooded to a server (content server) that holds popular content. In this case, in order to reduce the load on the server, a content server is constructed by a plurality of mirror servers, and access is distributed. As a technology related to this, Patent Document 1 discloses a connection distribution device that prevents uneven access to a specific mirror server among a plurality of mirror servers and distributes the load on each mirror server.

特開2003−152729号公報JP 2003-152729 A

外部機器の普及により、様々な種類の膨大なデータを1台の装置に集約できるNASの需要は益々高まっている。一方、近年は画質の向上などにより1つのコンテンツのデータ量が増大している。従って、NASの記憶容量は非常に大きく且つ現在も増加傾向にあるものの、データ量の急速な増大によって記憶容量が飽和してしまう可能性がある。その場合、新たなNASの増設が必要である。   With the spread of external devices, the demand for NAS capable of consolidating various types of enormous amounts of data into a single device is increasing. On the other hand, in recent years, the data amount of one content has increased due to improvement in image quality. Therefore, although the storage capacity of the NAS is very large and is currently increasing, the storage capacity may be saturated due to a rapid increase in the amount of data. In that case, it is necessary to add a new NAS.

広域回線網側の外部機器がLAN側のNASにアクセスする場合、上述のアドレス変換テーブルが用いられる。ところが、アドレス変換テーブルは各NASに対して作成されるので、広域回線網側からはこれらのNASを個別に指定する必要がある。つまり、複数のNASの何れかに記憶された所望のコンテンツにアクセスしたい場合は、そのコンテンツを記憶しているNAS(具体的にはポート番号)を特定し、指定する必要がある。   When the external device on the wide area network side accesses the NAS on the LAN side, the above-described address conversion table is used. However, since the address conversion table is created for each NAS, it is necessary to individually specify these NAS from the wide area network side. That is, in order to access desired content stored in any of a plurality of NAS, it is necessary to specify and specify the NAS (specifically, the port number) storing the content.

しかしながら、複数のNASに記憶されるコンテンツの数が増加すると、コンテンツとこれを記憶するNASの組合せが膨大になり、NASの特定が煩雑になる。これを回避するため、所望のコンテンツを記憶するNASを自動的に特定するための機器をLANに増設することも考えられるが、その場合はコストの増大に繋がり、環境設定も専門的になるために普及の妨げとなる。   However, when the number of contents stored in a plurality of NASs increases, the number of combinations of contents and NAS for storing the contents becomes enormous, and NAS identification becomes complicated. In order to avoid this, it is conceivable to add a device for automatically specifying the NAS for storing the desired content to the LAN. In this case, however, the cost will increase and the environment setting will also be specialized. It becomes an obstacle to popularization.

そこで、本発明は、1つのLAN内に複数の記憶装置が設置された場合でも、広域回線網側から所望の記憶装置に容易にアクセスできる記憶装置の提供を目的とする。   Therefore, an object of the present invention is to provide a storage device that can easily access a desired storage device from the wide area network side even when a plurality of storage devices are installed in one LAN.

本発明の第1の態様は記憶装置であって、ネットワークに接続した他の記憶装置と前記ネットワークを介して通信可能な通信部と、コンテンツを記憶する記憶部と、前記ネットワークを介してアクセス可能なコンテンツとその所在とを対応付けたコンテンツリストを作成するコンテンツリスト作成部と、前記コンテンツに対して、前記ネットワークを介してアクセスする外部機器から読み出し要求があったとき、(a)前記コンテンツリストに基づいて前記コンテンツの所在を特定し、(b) 特定された前記所在は前記他の記憶装置であって、且つ、前記通信部が前記外部機器と通信可能な、前記ネットワークで利用される唯一IPアドレスを保有している場合、前記外部機器が前記他の記憶装置から前記他の記憶装置の前記コンテンツを読み出せるように、前記通信部が保有している前記IPアドレスと前記他の記憶装置の通信部が保有しているIPアドレスとを交換する制御部とを備えることを要旨とする。 A first aspect of the present invention is a storage device, which can communicate with another storage device connected to a network via a communication unit, a storage unit for storing content, and accessible via the network A content list creation unit that creates a content list in which various contents and their locations are associated with each other, and when there is a read request from the external device that accesses the content via the network, And (b) the specified location is the other storage device, and the communication unit can communicate with the external device, and is the only one used in the network. The external device can read the content of the other storage device from the other storage device. So that the, and summarized in that a control unit for exchanging the IP address the communication unit with the IP address of the communication unit owns the other storage device is held.

本発明によれば、1つのLAN内に複数の記憶装置が設置された場合でも、広域回線網側から所望の記憶装置に容易にアクセスできる記憶装置を提供できる。   According to the present invention, it is possible to provide a storage device that can easily access a desired storage device from the wide area network side even when a plurality of storage devices are installed in one LAN.

図1は、本発明の概念図である。FIG. 1 is a conceptual diagram of the present invention. 図2は、本発明の一実施形態に係る記憶装置を含む通信システムの構成図である。FIG. 2 is a configuration diagram of a communication system including a storage device according to an embodiment of the present invention. 図3は、本発明の一実施形態に係る記憶装置を示すブロック図である。FIG. 3 is a block diagram showing a storage device according to an embodiment of the present invention. 図4は、本発明の一実施形態に係る読み込み時のIPアドレス交換方法のシーケンス図である。FIG. 4 is a sequence diagram of an IP address exchange method at the time of reading according to an embodiment of the present invention. 図5は、本発明の一実施形態に係る書き込み時のIPアドレス交換方法のシーケンス図である。FIG. 5 is a sequence diagram of an IP address exchange method at the time of writing according to an embodiment of the present invention.

本発明の実施形態に係る記憶装置について、図面を参照しながら説明する。   A storage device according to an embodiment of the present invention will be described with reference to the drawings.

本実施形態に係る記憶装置は、動画、画像および文書などユーザが利用する或いは作成したコンテンツを記憶するものである。記憶装置はLAN等のネットワークに接続可能に構成される。このネットワークを介してコンピュータや携帯電話などの外部機器(端末機器)からコンテンツの読み出し要求があった場合、記憶装置は当該コンテンツをその外部機器に出力する。   The storage device according to the present embodiment stores contents used or created by the user such as moving images, images, and documents. The storage device is configured to be connectable to a network such as a LAN. When there is a content read request from an external device (terminal device) such as a computer or a mobile phone via this network, the storage device outputs the content to the external device.

さらに、本実施形態に係る記憶装置がネットワークに複数接続された場合でも、各記憶装置は、上述の動作を実行する。このとき各記憶装置は、外部機器にアクセス可能な唯一のIPアドレスを、コンテンツを記憶する記憶装置に割り当てる処理を実行する。即ち、コンテンツを記憶する記憶装置以外の記憶装置にこのIPアドレスが割り当てられている場合は、コンテンツを記憶する記憶装置のIPアドレスと、他の記憶装置の外部機器にアクセス可能な唯一のIPアドレスとを交換する処理を実行する。この処理によって、外部機器は、唯一のIPアドレスを用いつつ、コンテンツに応じて複数の記憶装置の何れかにアクセスできる。すなわち、図1に示すように、外部機器からは、ネットワークの外に公開されている唯一の「窓」を通して、コンテンツを記憶した記憶装置のみが見えるようになる。換言すると、各記憶装置は、上記の唯一のIPアドレスが割り当てられた1台の仮想的な記憶装置を構築する。   Furthermore, even when a plurality of storage devices according to the present embodiment are connected to the network, each storage device performs the above-described operation. At this time, each storage device executes a process of assigning a unique IP address accessible to the external device to the storage device that stores the content. That is, when this IP address is assigned to a storage device other than the storage device that stores the content, the IP address of the storage device that stores the content and the only IP address that can access the external device of the other storage device The process of exchanging with is executed. By this processing, the external device can access any of the plurality of storage devices according to the content while using the unique IP address. That is, as shown in FIG. 1, the external device can see only the storage device storing the content through the only “window” open to the outside of the network. In other words, each storage device constructs one virtual storage device to which the above unique IP address is assigned.

本実施形態に係る複数の記憶装置の何れかに対して外部機器からコンテンツを書き込む場合も、各記憶装置は上記のIPアドレス交換を行う。この場合、書き込もうとする新たなコンテンツ(以下、新コンテンツ)の種類(ファイル形式、内容の類似性など)が、コンテンツリスト中のコンテンツと種類が比較される。同一または類似の種類のコンテンツがあったときには、外部機器にアクセス可能な唯一のIPアドレスがそのコンテンツを記憶した記憶装置に割り当てられ、この記憶装置に新コンテンツが記憶される。   Even when content is written from any external device to any of the plurality of storage devices according to the present embodiment, each storage device performs the above IP address exchange. In this case, the type (file format, content similarity, etc.) of the new content to be written (hereinafter, new content) is compared with the content in the content list. When there is content of the same or similar type, a unique IP address accessible to the external device is assigned to the storage device storing the content, and the new content is stored in this storage device.

以下、本発明の一実施形態に係る記憶装置について説明する。図2は、本実施形態に係る記憶装置10A、10Bを含む通信システム100を示す図である。図3は、本実施形態に係る記憶装置10A、10Bを示すブロック図である。後述するように、本実施形態に係る記憶装置は、コンテンツを記憶し、LAN12を介した通信機能を有する所謂NAS(NAS;Network Attached Storage)である。以下、説明の便宜上、この記憶装置をNASと称する。   Hereinafter, a storage device according to an embodiment of the present invention will be described. FIG. 2 is a diagram showing a communication system 100 including the storage devices 10A and 10B according to the present embodiment. FIG. 3 is a block diagram showing the storage devices 10A and 10B according to the present embodiment. As will be described later, the storage device according to the present embodiment is a so-called NAS (Network Attached Storage) that stores content and has a communication function via the LAN 12. Hereinafter, for convenience of explanation, this storage device is referred to as NAS.

図2に示すように、通信システム100は、広域通信網30に接続する外部機器40と、広域通信網30及びLAN12に接続するルータ14と、LAN12に接続する複数のNAS10A、10Bとを有する。なお、設置されるNASは図2に示す2台に限られない。また、本実施形態では、2台のNAS10A、10Bのうち、NAS10Aだけに外部機器40と唯一通信可能なIPアドレスが割り当てられているものとする。換言すれば、NAS10Aだけが外部機器と唯一通信可能なIPアドレスを保有している。以下、説明の便宜上、外部機器40と唯一通信可能なIPアドレスを公開IPアドレスと称する。   As illustrated in FIG. 2, the communication system 100 includes an external device 40 connected to the wide area communication network 30, a router 14 connected to the wide area communication network 30 and the LAN 12, and a plurality of NAS 10 </ b> A and 10 </ b> B connected to the LAN 12. The installed NAS is not limited to the two shown in FIG. In the present embodiment, it is assumed that an IP address that can communicate only with the external device 40 is assigned to only the NAS 10A out of the two NAS 10A and 10B. In other words, only the NAS 10A has an IP address that can communicate only with an external device. Hereinafter, for convenience of explanation, an IP address that can communicate only with the external device 40 is referred to as a public IP address.

広域通信網30は電気通信事業者等によって提供される無線又は有線の通信網であり、例えば、TCP/IPなどの周知のプロトコルが適用されるインターネットである。また、LAN12は、家庭やオフィスにおいて無線又は有線により構築された、広域通信網30と異なる通信網である。   The wide area communication network 30 is a wireless or wired communication network provided by a telecommunications carrier or the like, for example, the Internet to which a known protocol such as TCP / IP is applied. The LAN 12 is a communication network different from the wide area communication network 30 constructed by wireless or wired in a home or office.

外部機器40は、広域通信網30に無線又は有線で接続し、広域通信網30のウェブサーバ(図示せず)等との間で通信する機能を有する端末機器である。また、外部機器40は、コンテンツの記録、再生、入力、出力などの処理を行う機能を有する。このような外部機器40としては、コンピュータ、スマートフォンなどの携帯電話、デジタルカメラ、デジタルビデオカメラなどが挙げられる。外部機器40が携帯電話である場合、広域通信網30には移動体通信網(図示せず)を介して接続してもよい。後述するアドレス交換処理に基づき、外部機器40は、NAS10A又はNAS10Bからのコンテンツの読み出し及びNAS10A又はNAS10Bへのコンテンツの書き込みの少なくとも1つを実行する。なお、コンテンツは、例えば、動画、音楽、文書、静止画像などのデジタルデータであり、娯楽性のあるものに限られない。   The external device 40 is a terminal device that is connected to the wide area communication network 30 wirelessly or by wire and has a function of communicating with a web server (not shown) of the wide area communication network 30. The external device 40 has a function of performing processing such as content recording, reproduction, input, and output. Examples of the external device 40 include a computer, a mobile phone such as a smartphone, a digital camera, and a digital video camera. When the external device 40 is a mobile phone, it may be connected to the wide area communication network 30 via a mobile communication network (not shown). Based on an address exchange process described later, the external device 40 executes at least one of reading content from the NAS 10A or NAS 10B and writing content to the NAS 10A or NAS 10B. The content is digital data such as moving images, music, documents, still images, and the like, and is not limited to entertainment.

ルータ14は、広域通信網30及びLAN12に接続し、広域通信網30を介したNAS10A或いはNAS10Bと外部機器40との間の通信を可能にする。ただし、上述の通り、公開IPアドレスはNAS10Aに割り当てられているが、NAS10Bには割り当てられていない。従って、後述のアドレス交換処理を行わない限り、NAS10Bは外部機器40との間の通信ができない。なお、ルータ14は、無線LANアクセスポイントとして動作する機能を有してもよい。この場合、ルータ14は、当該ルータ14のカバーエリア内に位置する各種の電子機器と無線接続を確立する。   The router 14 is connected to the wide area communication network 30 and the LAN 12, and enables communication between the NAS 10 </ b> A or NAS 10 </ b> B and the external device 40 via the wide area communication network 30. However, as described above, the public IP address is assigned to the NAS 10A, but is not assigned to the NAS 10B. Therefore, the NAS 10B cannot communicate with the external device 40 unless the address exchange process described later is performed. The router 14 may have a function of operating as a wireless LAN access point. In this case, the router 14 establishes a wireless connection with various electronic devices located within the cover area of the router 14.

広域通信網30及びLAN12のネットワークアドレスは互いに異なっている。つまり、LAN12に接続するNAS10A、10Bには、LAN12で用いられるIPアドレスが割り当てられており、NAS10Aの外部(即ち、広域通信網30)からNAS10AのIPアドレスを指定することができない。これはNAS10Bについても同様である。従って、外部機器40が広域通信網30を経由してNAS10Aにアクセスするためには、広域通信網30からルータ14を指定する際に用いられるIPアドレスを、LAN12側でNAS10Aに割り当てられているIPアドレスに変換する処理が必要である。ルータ14は、これらIPアドレスの組合せをアドレス変換テーブルとして予め保有し、上記の通信が行われる際には、このアドレス変換テーブルに基づいたIPアドレスの変換を行う。なお、この組合せにはNAS10Aが保有(設定)するポート番号を含んでもよい。   The network addresses of the wide area communication network 30 and the LAN 12 are different from each other. In other words, the NAS 10A, 10B connected to the LAN 12 is assigned an IP address used in the LAN 12, and the IP address of the NAS 10A cannot be designated from outside the NAS 10A (ie, the wide area communication network 30). The same applies to the NAS 10B. Therefore, in order for the external device 40 to access the NAS 10A via the wide area communication network 30, the IP address used when designating the router 14 from the wide area communication network 30 is the IP assigned to the NAS 10A on the LAN 12 side. Processing to convert to an address is required. The router 14 previously holds a combination of these IP addresses as an address conversion table, and performs the IP address conversion based on the address conversion table when the communication is performed. This combination may include a port number held (set) by the NAS 10A.

NAS10A、10Bに割り当てられているIPアドレスは異なるものの、NAS10A、10Bの各構成は同一である。従って、NAS10Aについて説明し、NAS10Bの説明は省略する。図3に示すように、NAS10Aは、通信部16と、記憶部18と、コンテンツ作成部20と、制御部22とを有する。また、NAS10Aは、電源スイッチやリセットボタンなどの操作部(図示せず)や動作状況を示す表示部(図示せず)を有する。   Although the IP addresses assigned to the NASs 10A and 10B are different, the configurations of the NASs 10A and 10B are the same. Therefore, the NAS 10A will be described, and the description of the NAS 10B will be omitted. As illustrated in FIG. 3, the NAS 10 </ b> A includes a communication unit 16, a storage unit 18, a content creation unit 20, and a control unit 22. The NAS 10A also includes an operation unit (not shown) such as a power switch and a reset button, and a display unit (not shown) that shows the operation status.

通信部16は、例えば、無線又は有線LANモジュールである。通信部16はNAS10Aに割り当てられたIPアドレスを保有し、このIPアドレスを用いてLAN12、ルータ14および広域通信網30を通じ、外部機器40との通信を行う。また、通信部16は、LAN12を通じてNAS10Bの通信部との通信も行う。通信部16は、USBモジュールを有してもよい。この場合、USBモジュールを介した記憶部18へのコンテンツの書き込みが可能になる。   The communication unit 16 is, for example, a wireless or wired LAN module. The communication unit 16 has an IP address assigned to the NAS 10 </ b> A, and communicates with the external device 40 through the LAN 12, the router 14, and the wide area communication network 30 using this IP address. The communication unit 16 also performs communication with the communication unit of the NAS 10B through the LAN 12. The communication unit 16 may include a USB module. In this case, content can be written to the storage unit 18 via the USB module.

記憶部18は、ハードディスクや、フラッシュメモリによって構成されるSSD(Solid State Drive)であり、上述のコンテンツを記憶する。また、記憶部18は、NAS10Aの識別情報を記憶する。識別情報は、例えば、NAS10Aに割り当てられたID又はNAS10Aが有するMACアドレスである。   The storage unit 18 is an SSD (Solid State Drive) configured by a hard disk or a flash memory, and stores the above-described content. Further, the storage unit 18 stores the identification information of the NAS 10A. The identification information is, for example, an ID assigned to the NAS 10A or a MAC address possessed by the NAS 10A.

コンテンツ作成部20は、ルータ14に接続されているNASにおいて、外部機器40がアクセス可能な全てのコンテンツとその所在(例えば、NAS10AのMACアドレス)とを対応付けたコンテンツリストを作成する。また、NAS10A、10Bの何れが新たなコンテンツを記憶した場合、そのコンテンツを含むようにコンテンツリストを更新する。コンテンツリストは、例えば記憶部18に記憶される。   The content creation unit 20 creates a content list in which all contents accessible by the external device 40 and their locations (for example, the MAC address of the NAS 10A) are associated with each other in the NAS connected to the router 14. When any of the NASs 10A and 10B stores new content, the content list is updated to include the content. The content list is stored in the storage unit 18, for example.

コンテンツリストは、NAS10AとNAS10BのIPアドレスを交換する際に参照される。つまり、外部機器40がNAS10A、10Bの何れかに記憶されたコンテンツの読み出しを要求した場合、このコンテンツリストに基づいて、当該コンテンツを記憶するNAS10Aが特定される。   The content list is referred to when the IP addresses of the NAS 10A and NAS 10B are exchanged. That is, when the external device 40 requests reading of the content stored in one of the NASs 10A and 10B, the NAS 10A that stores the content is specified based on the content list.

制御部22は、中央演算部(CPU)やRAM、ROMなどの記憶素子などを有し、記憶素子や記憶部18に記憶されているプログラムに基づき、NAS10A内の一連の処理を実行する。この一連の処理の1つとして、制御部22は、NAS10AのIPアドレスとNAS10BのIPアドレスを交換する。具体的には、NAS10A、10Bの何れかに記憶されたコンテンツに対して、外部機器40から読み出し要求があったとき、コンテンツリストに基づいてコンテンツの所在を特定し、特定されたコンテンツがNAS10Bにあり、且つ、NAS10Aが公開IPアドレス(即ち、外部機器40と唯一通信可能なIPアドレス)を保有している場合は、外部機器40がコンテンツを読み出せるように、NAS10Aの通信部16に割り当てられたIPアドレスとNAS10Bの通信部(図示せず)に割り当てられたIPアドレスとを交換する。   The control unit 22 includes a central processing unit (CPU), a storage element such as a RAM and a ROM, and executes a series of processes in the NAS 10A based on a program stored in the storage element or the storage unit 18. As one of the series of processes, the control unit 22 exchanges the IP address of the NAS 10A and the IP address of the NAS 10B. Specifically, when there is a read request from the external device 40 for content stored in any of the NASs 10A and 10B, the location of the content is specified based on the content list, and the specified content is stored in the NAS 10B. If the NAS 10A has a public IP address (that is, an IP address that can only communicate with the external device 40), the NAS 10A is assigned to the communication unit 16 of the NAS 10A so that the external device 40 can read the content. The IP address assigned to the communication unit (not shown) of the NAS 10B is exchanged.

本実施形態では、NAS10Aに公開IPアドレスが割り当てられていると仮定している。従って、NAS10Bに読み出し要求を受けたコンテンツが記憶されている場合にのみ、各NASのIPアドレスの交換が行われる。NAS10Aに読み出し要求を受けたコンテンツが記憶されている場合、制御部22はIPアドレスの交換を行わない。つまり、外部機器40からNAS10Aへのアクセスが維持され、外部機器40はNAS10Aから所望のコンテンツを読み出す。   In this embodiment, it is assumed that a public IP address is assigned to the NAS 10A. Therefore, the exchange of the IP address of each NAS is performed only when the content that has received the read request is stored in the NAS 10B. When the content that received the read request is stored in the NAS 10A, the control unit 22 does not exchange the IP address. That is, access from the external device 40 to the NAS 10A is maintained, and the external device 40 reads out desired content from the NAS 10A.

このように、本実施形態では、NAS10AおよびNAS10Bの何れかに、公開IPアドレスが割り当てられる。一方、外部機器40は、公開IPアドレスを用いてNAS10A又はNAS10Bのコンテンツを読み出す。或いは、外部機器40は、公開IPアドレスを用いてNAS10A又はNAS10Bのコンテンツと同一又は類似のコンテンツをNAS10A又はNAS10Bに書き込む。従って、外部機器40にとっては、唯一のIPアドレスを用いていることになるため、1台の記憶装置にアクセスする状態が保たれる。   Thus, in this embodiment, a public IP address is assigned to either NAS 10A or NAS 10B. On the other hand, the external device 40 reads the content of the NAS 10A or NAS 10B using the public IP address. Alternatively, the external device 40 writes the same or similar content as the content of the NAS 10A or NAS 10B to the NAS 10A or NAS 10B using the public IP address. Accordingly, since the external device 40 uses only one IP address, the state of accessing one storage device is maintained.

本実施形態におけるコンテンツの読み出しの処理について説明する。
NAS10A、10Bの各IPアドレスはルータ14によって割り当てられる。ルータ14がDHCPサーバとして機能する場合も同様である。また、DHCPサーバを別途用意して上記の割り当てを行ってもよい。以下、ルータ14がDHCPサーバとしての機能を有する場合について説明する。
A content reading process according to the present embodiment will be described.
Each IP address of the NAS 10A, 10B is assigned by the router 14. The same applies when the router 14 functions as a DHCP server. Alternatively, a DHCP server may be separately prepared and the above allocation may be performed. Hereinafter, a case where the router 14 has a function as a DHCP server will be described.

初めに、NAS10A、10Bがルータ14に接続された状態で起動する。NAS10A、10Bは、ルータ14に接続された他のNASを検索する。この検索により、NAS10AはNAS10Bを見つけ、NAS10BはNAS10Aを見つける。その後、各NAS10A、10Bは、全てのNAS(この場合はNAS10A及びNAS10B)に対するコンテンツリストを作成し、これを記憶する。即ち、各NAS10A、10Bは、同一のコンテンツリストを共有する。コンテンツリストは、例えば、コンテンツの書き込みがあった時等に随時更新される。このコンテンツリストの共有により、外部機器40が要求するコンテンツの検索は親NASとして動作するNAS内のみで行うことができる。つまり、検索時間の削減及び他のNASの処理負担の軽減が可能になる。   First, the NAS 10 </ b> A and 10 </ b> B is started in a state where it is connected to the router 14. The NASs 10 </ b> A and 10 </ b> B search for other NAS connected to the router 14. Through this search, NAS 10A finds NAS 10B, and NAS 10B finds NAS 10A. Thereafter, each NAS 10A, 10B creates a content list for all NAS (in this case, NAS 10A and NAS 10B) and stores this. That is, each NAS 10A, 10B shares the same content list. The content list is updated as needed, for example, when content is written. By sharing the content list, the content requested by the external device 40 can be searched only within the NAS operating as the parent NAS. That is, it is possible to reduce the search time and the processing load of other NAS.

上記の状態ではまだ、NAS10A、10Bのどちらに公開IPアドレスが割り当てられているかが判らない。そこで、NAS10A、10Bはそれぞれ、送信先を自分自身にし、且つ公開IPアドレスを送信元に設定したパケットを広域通信網30に送信する。このパケットを受信したNASが外部機器40と唯一通信可能なNAS(親NAS)である。本実施形態では、説明の便宜上、NAS10Aが親NASとして動作を開始し、パケットを受信しなかったNAS10Bは、LAN12内のみでの通信が可能な子NASとして動作を開始するものと仮定する。   In the above state, it is not yet known which of the NASs 10A and 10B is assigned a public IP address. Therefore, each of the NASs 10A and 10B transmits a packet in which the transmission destination is itself and the public IP address is set as the transmission source to the wide area communication network 30. The NAS that has received this packet is a NAS (parent NAS) that can only communicate with the external device 40. In the present embodiment, for convenience of explanation, it is assumed that the NAS 10A starts operating as a parent NAS and the NAS 10B that has not received a packet starts operating as a child NAS capable of communication only within the LAN 12.

次に、外部機器40からコンテンツの読み出しの要求があった場合、そのコンテンツが外部機器40に送信されるまでの処理について説明する。
まず、外部機器40は、ルータ14にコンテンツの読み出し要求を送信する(ステップS1)。これに応じて、ルータ14はIPアドレスの変換を行った上で、コンテンツの読み出し要求を親NASであるNAS10Aに送信する(ステップS2)。NAS10Aは、既に作成したコンテンツリストを参照し、コンテンツの所在を検索する(ステップS3)。
Next, a process until the content is transmitted to the external device 40 when the content is requested from the external device 40 will be described.
First, the external device 40 transmits a content read request to the router 14 (step S1). In response to this, the router 14 converts the IP address and then transmits a content read request to the NAS 10A as the parent NAS (step S2). The NAS 10A refers to the already created content list and searches for the location of the content (step S3).

この検索により、子NASであるNAS10Bがコンテンツを記憶していることが判明したとする(ステップS4)。この場合、NAS10AのIPアドレスとNAS10BのIPアドレスを交換する必要が生じる。そこで、NAS10Aは、IPアドレスの予約割当をルータ14が実施する命令をNAS10Bが送信するようにNAS10Bに指示する(ステップS5)。ステップS5の指示に基づき、NAS10BはNAS10AのIPアドレスの予約割当を要求する(ステップS6)。これを受けてルータ14は、NAS10BのMACアドレスとNAS10AのIPアドレスの予約割当を実施する(ステップS7)。なお、ステップS3において、コンテンツがNAS10Aに記憶されていることが判明した場合、NAS10Aは直ちにそのコンテンツを外部機器40に送信し、一連の処理は終了する。   It is assumed that the NAS 10B, which is a child NAS, stores the content by this search (step S4). In this case, it is necessary to exchange the IP address of the NAS 10A and the IP address of the NAS 10B. Therefore, the NAS 10A instructs the NAS 10B to transmit an instruction for the router 14 to perform IP address reservation allocation (step S5). Based on the instruction in step S5, the NAS 10B requests reservation allocation of the IP address of the NAS 10A (step S6). In response to this, the router 14 performs reservation allocation of the MAC address of the NAS 10B and the IP address of the NAS 10A (step S7). If it is determined in step S3 that the content is stored in the NAS 10A, the NAS 10A immediately transmits the content to the external device 40, and the series of processing ends.

ステップS7の後、NAS10Bは、予約割当の実施をNAS10Aに通知する(ステップS8)。この通知を受けて、NAS10Aは自分のIPアドレス(公開IPアドレス)を解放し(ステップS9)、この解放をNAS10Bに通知する(ステップS10)。   After step S7, the NAS 10B notifies the NAS 10A that reservation allocation has been performed (step S8). Upon receiving this notification, the NAS 10A releases its own IP address (public IP address) (step S9), and notifies the NAS 10B of this release (step S10).

以上の処理により、公開IPアドレスがNAS10Aから解放され、NAS10Bに予約される。次に、NAS10BはIPアドレス再取得の要求をルータ14に送信する(ステップS11)。これを受けて、ルータ14は、NAS10Bに対するNAS10AのIPアドレスの割り当てを準備する(ステップS12)。その後、NAS10Bは"DHCP REQUEST"メッセージをルータ14に送信し(ステップS13)、ルータ14は"DHCP OFFER"メッセージをNAS10Bに送信し(ステップS14)、NAS10Bは"DHCP ACK"メッセージをルータ14に送信する(ステップS15)。これらのメッセージの送受信により、NAS10Bは公開IPアドレスを獲得し、外部機器40が要求したコンテンツを外部機器40に送信し(ステップS16)、一連の処理が完了する。   Through the above processing, the public IP address is released from the NAS 10A and reserved in the NAS 10B. Next, the NAS 10B transmits a request for IP address reacquisition to the router 14 (step S11). In response to this, the router 14 prepares the assignment of the IP address of the NAS 10A to the NAS 10B (step S12). Thereafter, the NAS 10B transmits a “DHCP REQUEST” message to the router 14 (step S13), the router 14 transmits a “DHCP OFFER” message to the NAS 10B (step S14), and the NAS 10B transmits a “DHCP ACK” message to the router 14. (Step S15). By transmitting and receiving these messages, the NAS 10B acquires a public IP address, transmits the content requested by the external device 40 to the external device 40 (step S16), and a series of processing is completed.

なお、ルータ14がDHCPサーバとしての機能を備えていない場合、各NAS10A、10BのIPアドレスは固定されている。この場合において、NAS10Aが公開IPアドレスを保有し、NAS10Bが外部機器40の要求するコンテンツを記憶しているとき、NAS10A、10Bは両者間の直接通信によってIPアドレスを交換する。この直接通信は、例えば、MACアドレスなど両者の識別情報を用いることで実行可能である。その後、NAS10Bは、外部機器40の要求するコンテンツを外部機器40に送信する。   When the router 14 does not have a function as a DHCP server, the IP addresses of the NASs 10A and 10B are fixed. In this case, when the NAS 10A has a public IP address and the NAS 10B stores the content requested by the external device 40, the NAS 10A and 10B exchange IP addresses by direct communication between the two. This direct communication can be executed by using both identification information such as a MAC address. Thereafter, the NAS 10B transmits the content requested by the external device 40 to the external device 40.

次に、本実施形態におけるコンテンツの書き込みの処理について説明する。この処理の多くは、上述したコンテンツの読み出しの処理に類似している。従って、両者の間で異なる処理についてのみ説明し、同一の処理については同一の符号を付して説明を省略する。   Next, content writing processing in the present embodiment will be described. Most of this processing is similar to the content reading processing described above. Therefore, only processes that are different between the two will be described, and the same processes are denoted by the same reference numerals and description thereof is omitted.

コンテンツの書き込みにおいて、外部機器40は、ルータ14にコンテンツの書き込み要求を送信する(ステップS1´)。これに応じて、ルータ14はIPアドレスの変換を行った上で、コンテンツの書き込み要求を親NASであるNAS10Aに送信する(ステップS2´)。NAS10Aは、既に作成したコンテンツリストを参照し、外部機器40が書き込もうとするコンテンツと類似の他のコンテンツの所在を検索する(ステップS3´)。この同一性又は類似性は、コンテンツの名称、種類、内容、属性などに基づいて制御部22が判断する。   In the content writing, the external device 40 transmits a content writing request to the router 14 (step S1 ′). In response to this, the router 14 converts the IP address, and then transmits a content write request to the NAS 10A as the parent NAS (step S2 ′). The NAS 10A refers to the already created content list and searches for the location of other content similar to the content to be written by the external device 40 (step S3 ′). This identity or similarity is determined by the control unit 22 based on the name, type, content, attribute, and the like of the content.

この検索により、子NASであるNAS10Bが同一又は類似のコンテンツを記憶していることが判明したとする(ステップS4´)。その後の処理は、ステップS15まで上述したコンテンツの読み込み処理と同一である。即ち、NAS10Bが最終的に公開IPアドレスを取得し、外部機器40はその後に、コンテンツをNAS10Bに書き込む(ステップS16´)。   It is assumed that the NAS 10B as a child NAS stores the same or similar content by this search (step S4 ′). The subsequent processing is the same as the content reading processing described above up to step S15. That is, the NAS 10B finally obtains the public IP address, and the external device 40 then writes the content in the NAS 10B (step S16 ′).

本実施形態によれば、外部機器からアクセス可能な記憶装置(NAS)は1台だけである。従って、アドレス変換に必要なIPアドレスの組合せ(あるいはIPアドレスと対応するポート番号のセットの組合せ)は1通りだけである。この組合せは記憶装置を増設したときにも変更されない。従って、外部機器では、コンテンツを記憶している記憶装置を個別に指定する必要がない。また、各記憶装置が上記のアドレス交換を行うので、別途、このアドレス交換を行うための専用機器を用意する必要もなく、外部機器やルータにそのような機能を付与する必要もない。   According to the present embodiment, only one storage device (NAS) can be accessed from an external device. Therefore, there is only one combination of IP addresses (or combination of a set of port numbers corresponding to the IP addresses) necessary for address translation. This combination is not changed when a storage device is added. Therefore, it is not necessary for the external device to individually specify the storage device that stores the content. In addition, since each storage device performs the above address exchange, it is not necessary to separately prepare a dedicated device for performing this address exchange, and it is not necessary to provide such a function to an external device or a router.

また、外部機器の利用者は複数の記憶装置を1台の記憶装置として処理できる。そのため、複数の記憶装置を管理する煩わしさから利用者を解放することができる。つまり、コンテンツの読み出し及び書き込みに対して、利用者の利便性を向上させることができる。   In addition, a user of an external device can process a plurality of storage devices as one storage device. Therefore, the user can be released from the troublesomeness of managing a plurality of storage devices. That is, it is possible to improve user convenience for reading and writing of content.

アドレス変換に必要なIPアドレスの組合せが1通りの場合でも、IPアドレスの交換を行わずにコンテンツを外部機器に出力することは原理的に可能である。この場合、外部機器からアクセス可能な記憶装置が、コンテンツを記憶する記憶装置から当該コンテンツを受信し、外部機器に送信することになる。しかしながら、記憶装置間でコンテンツを転送する必要があるため、転送速度が低下する可能性が高まる。本実施形態の場合、外部機器はコンテンツを記憶する記憶装置から直接当該コンテンツを受信するので、上記の転送による転送速度の低下は発生しない。   Even when there are only one combination of IP addresses necessary for address conversion, it is possible in principle to output content to an external device without exchanging IP addresses. In this case, the storage device accessible from the external device receives the content from the storage device that stores the content and transmits the content to the external device. However, since it is necessary to transfer content between storage devices, there is an increased possibility that the transfer rate will decrease. In the case of the present embodiment, since the external device directly receives the content from the storage device that stores the content, the transfer rate does not decrease due to the transfer described above.

また、新たなコンテンツの書き込み時には同一または類似の種類のコンテンツを記憶する記憶装置に記憶されるので、これらのコンテンツが複数の記憶装置に散逸せず、管理が容易になる。   Further, since the same or similar types of content are stored when new content is written, these contents are not scattered to a plurality of storage devices, and management is facilitated.

なお、上記の実施形態では、初期状態において複数のNASの何れかに対する公開IPアドレスの割り当てが未確定であり、パケットの送信及び受信を用いて公開IPアドレスの割り当てを確定した。しかしながら、DHCPサーバとしての機能するルータ14において、自動割り当てのリストから公開IPアドレスを予め除外しておき、この公開IPアドレスを複数のNASの何れかに予め割り当てておいてもよい。この場合、パケットの送信及び受信を用いずに、公開IPアドレスが割り当てられたNASが親NASとして動作を開始する。また、外部機器40が要求したコンテンツまたはこのコンテンツに関連するコンテンツが子NAS(NAS10B)に記憶されているときは、親NAS(NAS10A)は、公開IPアドレスを解放すると共にIPアドレスの自動割り当てをルータ14に要求する。一方、子NASは、解放された公開IPアドレスが自分のMACアドレスに対応付けられたことをルータ14に登録する。ルータ14では、この登録に基づいてアドレス変換テーブルが更新される。その後は、上記の実施形態と同じく、子NASは新たな親NASに変わり、外部機器40との間でコンテンツの読み出し又は書き込みが行われる。   In the above-described embodiment, the assignment of the public IP address to any of the plurality of NASs in the initial state is unconfirmed, and the assignment of the public IP address is confirmed using packet transmission and reception. However, in the router 14 functioning as a DHCP server, the public IP address may be excluded in advance from the automatic assignment list, and the public IP address may be assigned in advance to any of a plurality of NAS. In this case, the NAS to which the public IP address is assigned starts the operation as the parent NAS without using packet transmission and reception. When the content requested by the external device 40 or content related to this content is stored in the child NAS (NAS 10B), the parent NAS (NAS 10A) releases the public IP address and automatically assigns the IP address. Request to the router 14. On the other hand, the child NAS registers in the router 14 that the released public IP address is associated with its own MAC address. The router 14 updates the address conversion table based on this registration. Thereafter, as in the above embodiment, the child NAS is changed to a new parent NAS, and content is read from or written to the external device 40.

10A、10B…記憶装置(NAS)、12…LAN、14…ルータ、16…通信部、18…記憶部、20…コンテンツリスト作成部、22…制御部、30…広域通信網、40…外部機器   DESCRIPTION OF SYMBOLS 10A, 10B ... Storage device (NAS), 12 ... LAN, 14 ... Router, 16 ... Communication unit, 18 ... Storage unit, 20 ... Content list creation unit, 22 ... Control unit, 30 ... Wide area communication network, 40 ... External device

Claims (1)

記憶装置であって、
ネットワークに接続した他の記憶装置と前記ネットワークを介して通信可能な通信部と、
コンテンツを記憶する記憶部と、
前記ネットワークを介してアクセス可能なコンテンツとその所在とを対応付けたコンテンツリストを作成するコンテンツリスト作成部と、
前記コンテンツに対して、前記ネットワークを介してアクセスする外部機器から読み出し要求があったとき、
(a)前記コンテンツリストに基づいて前記コンテンツの所在を特定し、
(b)特定された前記所在は前記他の記憶装置であって、且つ、前記通信部が前記外部機器と通信可能な、前記ネットワークで利用される唯一IPアドレスを保有している場合、前記外部機器が前記他の記憶装置から前記他の記憶装置の前記コンテンツを読み出せるように、前記通信部が保有している前記IPアドレスと前記他の記憶装置の通信部が保有しているIPアドレスとを交換する制御部と
を備えることを特徴とする記憶装置。
A storage device,
A communication unit capable of communicating with another storage device connected to a network via the network;
A storage unit for storing content;
A content list creation unit for creating a content list in which contents accessible via the network are associated with their locations;
When there is a read request from an external device that accesses the content via the network,
(a) identifying the location of the content based on the content list;
(b) is identified the location a said another storage device, and, if the communication unit is the external device capable of communicating with owns a unique IP address that is utilized by the network, the IP address of the external device is the so read out the contents of said another storage device from said another storage device, the communication unit with the IP address of the communication unit owns the other storage devices owns And a control unit for exchanging with each other.
JP2014158325A 2014-08-04 2014-08-04 Storage device Expired - Fee Related JP6354431B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014158325A JP6354431B2 (en) 2014-08-04 2014-08-04 Storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014158325A JP6354431B2 (en) 2014-08-04 2014-08-04 Storage device

Publications (2)

Publication Number Publication Date
JP2016035666A JP2016035666A (en) 2016-03-17
JP6354431B2 true JP6354431B2 (en) 2018-07-11

Family

ID=55523486

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014158325A Expired - Fee Related JP6354431B2 (en) 2014-08-04 2014-08-04 Storage device

Country Status (1)

Country Link
JP (1) JP6354431B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7032012B2 (en) * 2001-09-04 2006-04-18 Samsung Electronics Co., Ltd. PPPOA spoofing in point-to-point protocol over ATM using an XDSL modem
JP4024108B2 (en) * 2002-08-21 2007-12-19 富士通株式会社 Assigning global addresses to devices on the LAN
JP2006025457A (en) * 2005-09-20 2006-01-26 Hitachi Ltd Network management system
EP1858228A1 (en) * 2006-05-16 2007-11-21 THOMSON Licensing Network data storage system with distributed file management

Also Published As

Publication number Publication date
JP2016035666A (en) 2016-03-17

Similar Documents

Publication Publication Date Title
JP6903121B2 (en) Packet transmission
JP6347107B2 (en) Communication management system, communication control system, communication system, relay device, communication method, and program
JP4944940B2 (en) Media information sharing system and media information sharing method
KR20140110058A (en) Cloud computing controlled gateway for communication networks
JP6920472B2 (en) CGN transfer / control separation
KR101701158B1 (en) Method and system of providing remote access for device within home network
CN111405042B (en) Electronic device discovery method and device, storage medium and electronic device
JP6825142B2 (en) Packet transfer
JP5901586B2 (en) Relay device, communication system, and node setting information acquisition method
JP2013542681A (en) Content sharing method and apparatus using group change information in content-centric network environment
US9313345B2 (en) Information processing apparatus, system, and control method for information processing apparatus
WO2020038443A1 (en) Bridging communication method and device
JP2016019270A (en) Communication method and communication program
US9882880B2 (en) Communication apparatus, method for controlling the same, and storage medium
CN111107119B (en) Data access method, device and system based on cloud storage system and storage medium
JP6193155B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
KR20160150583A (en) Transport stack name scheme and identity management
US20080232370A1 (en) Method of communication in LAN without setting IP
JP6354431B2 (en) Storage device
KR102023115B1 (en) Communication method based on integrated flat id and system
JP2015111330A (en) Terminal device, communication system, and communication program
KR102526770B1 (en) Electronic device providing fast packet forwarding with reference to additional network address translation table
JP2009278317A (en) Network driver, computer incorporated with the network driver and server
JP2010146246A (en) Framework computer program for multi-agent system, network system and inter-agent communication method
EP3404892B1 (en) Method of transferring audiovisual data and corresponding device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170418

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180221

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180404

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180528

R150 Certificate of patent or registration of utility model

Ref document number: 6354431

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees