JP2014192661A - Repeating device, repeating system, and repeating method - Google Patents
Repeating device, repeating system, and repeating method Download PDFInfo
- Publication number
- JP2014192661A JP2014192661A JP2013065531A JP2013065531A JP2014192661A JP 2014192661 A JP2014192661 A JP 2014192661A JP 2013065531 A JP2013065531 A JP 2013065531A JP 2013065531 A JP2013065531 A JP 2013065531A JP 2014192661 A JP2014192661 A JP 2014192661A
- Authority
- JP
- Japan
- Prior art keywords
- server
- accumulated
- database
- request
- sensor data
- 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.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
- Communication Control (AREA)
Abstract
【課題】センサネットワークにおけるデータ送信の際に生じる負荷を軽減すること。
【解決手段】ノードから送信された蓄積情報が付与されたパケットを送信先ごとに蓄積して記憶するデータベースと、データベースに記憶されている蓄積されたパケットをサーバに送信する間隔を管理するタイマー管理部と、間隔で蓄積されたパケットをサーバに送信する通信部と、を備える中継装置。
【選択図】図2An object of the present invention is to reduce a load generated during data transmission in a sensor network.
A database that accumulates and stores, for each transmission destination, packets to which accumulated information transmitted from a node is added, and timer management that manages an interval at which the accumulated packets stored in the database are transmitted to a server. And a communication unit that transmits packets accumulated at intervals to the server.
[Selection] Figure 2
Description
本発明は、ネットワークにおけるデータ送信方法の技術に関する。 The present invention relates to a technique of a data transmission method in a network.
従来、センサネットワーク内に設置されている複数のセンサ機器(以下、「ノード」という。)が収集したセンサデータを、ネットワークを中継してクラウド上のサーバに送信することによって、サーバに様々な場所におけるセンサデータを集約させている。集約された各地のセンサデータを利用することで、新しいサービスの提供や業務の効率化が可能になる。しかし、複数のノードがネットワークを経由してサーバにセンサデータを送信する場合、データサイズの小さいパケットが定期的にサーバに送信される。そのため、センサデータを受信するサーバの処理負荷や、ネットワークにおけるパケットの処理負荷が大きくなってしまう。
このような問題に対して、サーバやネットワークの負荷を軽減させる技術が複数提案されている。例えば、ノードからサーバへの送信間隔を制御することにより、サーバ側の処理負荷を軽減する技術が提案されている(例えば、特許文献1参照)。また、子ノードのデータを親ノードで集約してサーバに送信することにより、ネットワークの負荷を軽減する技術が提案されている(例えば、特許文献2参照)。
Conventionally, sensor data collected by a plurality of sensor devices (hereinafter referred to as “nodes”) installed in a sensor network is transmitted to a server on the cloud via the network, so that various locations can be stored on the server. The sensor data in is integrated. By using the collected sensor data of various locations, it is possible to provide new services and improve the efficiency of operations. However, when a plurality of nodes transmit sensor data to the server via the network, packets having a small data size are periodically transmitted to the server. This increases the processing load on the server that receives the sensor data and the packet processing load on the network.
In response to such a problem, a plurality of techniques for reducing the load on the server and the network have been proposed. For example, a technique for reducing the processing load on the server side by controlling the transmission interval from the node to the server has been proposed (see, for example, Patent Document 1). In addition, a technique for reducing the load on the network by aggregating data of child nodes at the parent node and transmitting the data to the server has been proposed (see, for example, Patent Document 2).
しかしながら、特許文献1の技術では、パケットの送信間隔を変更することによりサーバ側の処理負荷を軽減することはできるが、ネットワークの負荷を軽減することができない。また、特許文献2の技術では、サーバ側の処理負荷やネットワークにおける負荷を軽減することはできるが、ノードがパケットを集約する必要があるため、ノードの処理が複雑化してしまう。そのため、ノードの処理負荷が大きくなってしまうという問題が生じてしまう。このように、従来の技術では、ノードからサーバに対してセンサデータを送信する際に、ネットワークあるいはノードの負荷を軽減できないという問題があった。
However, with the technique of
上記事情に鑑み、本発明は、センサネットワークにおけるデータ送信の際に生じる負荷を軽減する技術の提供を目的としている。 In view of the above circumstances, an object of the present invention is to provide a technique for reducing a load generated during data transmission in a sensor network.
本発明の一態様は、ノードから送信された蓄積情報が付与されたパケットを送信先ごとに蓄積して記憶するデータベースと、前記データベースに記憶されている蓄積された前記パケットをサーバに送信する間隔を管理するタイマー管理部と、前記間隔で蓄積された前記パケットをサーバに送信する通信部と、を備える中継装置である。 One embodiment of the present invention is a database that accumulates and stores, for each transmission destination, packets to which accumulated information transmitted from a node is added, and an interval at which the accumulated packets stored in the database are transmitted to a server. A relay device comprising a timer management unit that manages the communication and a communication unit that transmits the packets accumulated at the intervals to a server.
本発明の一態様は、上記の中継装置であって、前記パケットのサイズ情報を取得する取得部と、自装置と前記サーバとの接続時に取得される前記パケットを送信可能な最大のサイズ情報と、前記パケットのサイズ情報とに基づいて、前記データベースに蓄積される前記パケットの集約可能数を算出する集約数算出部と、を更に備え、前記通信部は、前記集約可能数に基づいて、蓄積された前記パケットをサーバに送信する。 One aspect of the present invention is the relay device described above, an acquisition unit that acquires the size information of the packet, and maximum size information that can transmit the packet acquired when the device is connected to the server; And an aggregation number calculating unit that calculates the aggregable number of packets accumulated in the database based on the packet size information, and the communication unit accumulates based on the aggregable number The transmitted packet is transmitted to the server.
本発明の一態様は、複数のノードと、前記ノードから送信されるパケットをサーバに中継する中継装置とを備えたシステムであって、前記ノードは、周囲の空間情報を表すデータを収集するセンサと、前記センサによって収集された前記データを含むパケットを前記中継装置に送信する通信部と、を備え、前記中継装置は、ノードから送信された蓄積情報が付与されたパケットを送信先ごとに蓄積して記憶するデータベースと、前記データベースに記憶されている蓄積された前記パケットをサーバに送信する間隔を管理するタイマー管理部と、前記間隔で蓄積された前記パケットをサーバに送信する通信部と、を備える中継システムである。 One aspect of the present invention is a system including a plurality of nodes and a relay device that relays packets transmitted from the nodes to a server, wherein the nodes collect data representing surrounding spatial information And a communication unit that transmits the packet including the data collected by the sensor to the relay device, and the relay device stores, for each transmission destination, a packet to which storage information transmitted from a node is added. A database to be stored, a timer management unit for managing an interval for transmitting the accumulated packets stored in the database to the server, a communication unit for transmitting the packets accumulated at the interval to the server, Is a relay system.
本発明の一態様は、ノードから送信された蓄積情報が付与されたパケットを送信先ごとに蓄積してデータベースに記憶する記憶ステップと、前記データベースに記憶されている蓄積された前記パケットをサーバに送信する間隔を管理するタイマー管理ステップと、前記間隔で蓄積された前記パケットをサーバに送信する通信ステップと、を有する中継方法である。 One aspect of the present invention is a storage step of storing, for each transmission destination, a packet to which accumulated information transmitted from a node is added and storing it in a database; and storing the accumulated packet stored in the database in a server It is a relay method comprising a timer management step for managing an interval for transmission and a communication step for transmitting the packets accumulated at the interval to a server.
本発明により、センサネットワークにおけるデータ送信の際に生じる負荷を軽減することが可能となる。 According to the present invention, it is possible to reduce a load generated when data is transmitted in a sensor network.
以下、本発明の一実施形態を、図面を参照しながら説明する。
図1は、本実施形態における中継システムのシステム構成を示す図である。本実施形態の中継システムは、複数のノード10−1〜10−3、GW(Gate Way)機器20、サーバ30及びネットワーク50を備える。なお、以下の説明では、ノード10−1〜10−3について特に区別しない場合には、ノード10と記載する。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram illustrating a system configuration of a relay system according to the present embodiment. The relay system of this embodiment includes a plurality of nodes 10-1 to 10-3, a GW (Gate Way)
ノード10は、センサ付きの無線端末であり、自装置の周囲の空間情報を収集する。空間情報とは、ノード10に付与されているセンサが検知する情報であり、例えば自装置の周囲の温度や湿度などの情報である。また、ノード10は、収集した空間情報(センサデータ)を周期的にGW機器20に送信する。ノード10は、様々な場所に配置されることによって、センサネットワーク40を形成する。
GW機器20は、ノード10とネットワーク50との間で通信の中継を行う中継装置である。GW機器20は、ノード10から送信されたセンサデータを、ネットワーク50を介してサーバ30に送信する。
The node 10 is a wireless terminal with a sensor, and collects spatial information around its own device. Spatial information is information detected by a sensor attached to the node 10, for example, information such as temperature and humidity around the device itself. Further, the node 10 periodically transmits the collected spatial information (sensor data) to the
The
サーバ30は、情報処理装置を用いて構成され、GW機器20から送信されたセンサデータを収集する。
センサネットワーク40は、複数のノード10によって形成される。
ネットワーク50は、どのように構成されたネットワークでもよい。例えば、ネットワーク50はインターネットを用いて構成されてもよい。
The
The
The
図2は、GW機器20の機能構成を表す概略ブロック図である。GW機器20は、バスで接続されたCPU(Central Processing Unit)やメモリや補助記憶装置などを備え、中継プログラムを実行する。中継プログラムの実行によって、GW機器20は、通信部201、制御部202、取得部203、集約数算出部204、受信間隔算出部205、送信間隔算出部206、解析部207、タイマー管理部208、データベース209、生成部210を備える装置として機能する。なお、GW機器20の各機能の全て又は一部は、ASIC(Application Specific Integrated Circuit)やPLD(Programmable Logic Device)やFPGA(Field Programmable Gate Array)等のハードウェアを用いて実現されても良い。また、中継プログラムは、コンピュータ読み取り可能な記録媒体に記録されても良い。コンピュータ読み取り可能な記録媒体とは、例えばフレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置である。また、中継プログラムは、電気通信回線を介して送受信されても良い。
FIG. 2 is a schematic block diagram illustrating a functional configuration of the
通信部201は、ノード10との間で無線通信を行う。また、通信部201は、サーバ30との間で通信を行う。例えば、通信部201は、ノード10からセンサデータが格納されているリクエストメッセージを受信し、サーバ30に送信する。また、通信部201は、サーバ30から送信されたレスポンスメッセージを受信し、ノード10に送信する。また、通信部201は、サーバ30との間で接続を確立する際に、MSS(Maximum Segment Size)の値を取得する。MSSは、一度の通信においてパケットを送信可能な最大のサイズを表す。
制御部202は、GW機器20の各機能部を制御する。
The
The
取得部203は、一定期間(例えば、30分、1時間など)の間、ノード10からサーバ30に対して周期的に送信されるセンサデータのパケットを収集する。例えば、取得部203は、WireShark(登録商標)によってノード10からサーバ30に対して送信されるセンサデータのパケットを収集する。その後、取得部203は、収集したパケットからヘッダーサイズ及びボディサイズの各値を取得する。ボディサイズ(サイズ情報)とは、パケットのペイロードに格納されているセンサデータのサイズを表す。
集約数算出部204は、MSSの値と取得されたヘッダーサイズ及びボディサイズの各値とを用いて、集約可能数を算出する。集約可能数とは、自装置(GW機器20)からサーバ30に対して送信される一つのパケットに集約できるセンサデータの数を表す。
The
The aggregation
受信間隔算出部205は、取得部203によって周期的に収集されるセンサデータのパケットに基づいて、センサデータの受信間隔を算出する。例えば、受信間隔算出部205は、収集されたセンサデータのパケットの受信時刻と、当該パケットの収集後に収集されたセンサデータのパケットの受信時刻との差分に基づいて、センサデータの受信間隔を算出する。
送信間隔算出部206は、集約数算出部204によって算出された集約可能数と、受信間隔算出部205によって算出された受信間隔とに基づいて、自装置(GW機器20)からサーバ30に対してセンサデータを送信する送信間隔を算出する。例えば、送信間隔算出部206は、集約可能数の値と受信間隔の値とを乗算した値を送信間隔として算出する。送信間隔算出部206は、算出した送信間隔をタイマー管理部208に通知する。
The reception
The transmission
解析部207は、ノード10から送信されたリクエストメッセージを解析する。具体的には、まず、解析部207は、通信部201が受信したリクエストメッセージからリクエストメソッド、リクエストURL(Uniform Resource Locator)、リクエストURI(Uniform Resource Identifier)及びリクエストボディの各値を取得する。リクエストメソッドとは、リクエストメッセージを受信したリソースに対して要求する処理を表す。リクエストURLとは、リクエストメッセージを送信する宛先を識別する識別子を表す。リクエストURIとは、リクエストを適用するリソースを指定する識別子を表す。リクエストボディとは、サーバ30に対して送信されるデータ(センサデータ)を表す。
The
次に、解析部207は、リクエストメッセージのヘッダ部分にバッファリングオプション情報(以下、単にバッファリングオプションという。)が記述されているか否かを判定する。バッファリングオプション(蓄積情報)とは、リクエストメッセージに格納されているセンサデータをまとめて送信するか否かを表す情報である。
バッファリングオプションが記述されている場合、解析部207は取得したセンサデータをデータベース209に蓄積する。この際、解析部207は、取得したセンサデータに対応するリクエストURLをインデックスとして、センサデータをデータベース209に蓄積する。
一方、バッファリングオプションが記述されていない場合、解析部207は取得したセンサデータをサーバ30に送信するためのリクエストメッセージの生成を生成部210に指示する。
Next, the
When the buffering option is described, the
On the other hand, when the buffering option is not described, the
また、解析部207は、サーバ30から送信されたレスポンスメッセージを解析する。解析部207は、送信されたレスポンスメッセージからステータスコード及びレスポンスボディの各値を取得する。レスポンスボディとは、サーバ30から送信される応答データを表す。その後、解析部207は、生成部210にレスポンスメッセージの生成を指示する。
The
タイマー管理部208は、解析部207が解析した結果に基づいてタイマーの管理を行う。例えば、タイマー管理部208は、解析部207によってリクエストメッセージにバッファリングオプションが記述されていると判定された場合に、リクエストメッセージのリクエストURL毎に送信間隔算出部206から通知された送信間隔のカウントダウンを開始する。
The
データベース209は、磁気ハードディスク装置や半導体記憶装置などの記憶装置を用いて構成される。データベース209は、リクエストURL毎にセンサデータを記憶している。
生成部210は、取得されたリクエストメソッドとリクエストURIとリクエストボディとを用いて第一のリクエストメッセージを生成する。具体的には、生成部210は、ヘッダにリクエストメソッドとリクエストURIとを格納し、ボディ部分にリクエストボディを格納することによって第一のリクエストメッセージを生成する。第一のリクエストメッセージは、ノード10から送信された一つのセンサデータが格納されたリクエストメッセージである。
The
The
また、生成部210は、取得されたステータスコードとレスポンスボディとを用いてレスポンスメッセージを生成する。具体的には、生成部210は、ヘッダにステータスコードを格納し、ボディ部分にレスポンスボディを格納することによってレスポンスメッセージを生成する。
また、生成部210は、タイマー管理部208からタイマーの満了が通知されると、データベース209に記録されているセンサデータを用いて第二のリクエストメッセージを生成する。第二のリクエストメッセージは、複数のセンサデータが格納されたリクエストメッセージである。具体的には、まず、生成部210は、データベース209からタイマー満了が通知されたリクエストURLに対応するセンサデータを取得する。次に、生成部210は、取得したセンサデータを用いてリクエストボディを生成する。その後、生成部210は、リクエストメソッドとリクエストURIと生成されたリクエストボディとを用いて第二のリクエストメッセージを生成する。
In addition, the
Further, when the expiration of the timer is notified from the
図3は、リクエストメッセージを蓄積する方法の具体例を表す図である。図3(A)は、ノード10から送信されたリクエストメッセージを表す図である。図3(A)の“a”は、リクエストラインとメッセージヘッダで構成されるヘッダ部分を表し、図3(A)の“b”は、リクエストメッセージのボディ部分を表す。図3(A)のヘッダ部分“a”には、リクエストメソッド、リクエストURL、リクエストURI、HTTP(Hypertext Transfer Protocol)のバージョン、送信元のアドレス、ボディ部分のサイズ、バッファリングオプション、接続状態などの各情報が記述されている。図3(A)に示す例では、ヘッダ部分“a”にバッファリングオプション「Buffering:on」が記述されている。バッファリングオプションは、ノード10がセンサデータの蓄積が必要であると判断した場合に付与される。ノード10は、蓄積が必要であるか否かを判断するためのテーブルを予め記憶しており、センサデータを取得する度にテーブルを確認することによって、リクエストメッセージにバッファリングオプションを記述する必要があるか否かを判断する。例えば、テーブルには、センサデータを蓄積する必要がある送信先やユーザIDなどが記憶されている。また、取得したセンサデータが管理プロトコルのようなPIN(Personal identification number)を送信するのみのデータである場合には、ノード10は蓄積する必要が無いと判断し、バッファリングオプションを記述しない。解析部207は、受信されたリクエストメッセージにバッファリングオプションが記述されている場合には、ヘッダ部分“a”に記述されているリクエストURLをインデックスとしてデータベース209にセンサデータを蓄積する。また、図3(A)のボディ部分“b”には、ノード10によって収集されたセンサデータが記述されている。
FIG. 3 is a diagram illustrating a specific example of a method for accumulating request messages. FIG. 3A is a diagram illustrating a request message transmitted from the node 10. “A” in FIG. 3A represents a header portion composed of a request line and a message header, and “b” in FIG. 3A represents a body portion of the request message. The header portion “a” in FIG. 3A includes a request method, a request URL, a request URI, an HTTP (Hypertext Transfer Protocol) version, a source address, a body portion size, a buffering option, a connection state, and the like. Each information is described. In the example shown in FIG. 3A, the buffering option “Buffering: on” is described in the header portion “a”. The buffering option is given when the node 10 determines that sensor data needs to be accumulated. The node 10 stores a table for determining whether or not accumulation is necessary in advance, and it is necessary to describe the buffering option in the request message by checking the table every time sensor data is acquired. Judge whether there is. For example, the table stores destinations and user IDs for which sensor data needs to be accumulated. If the acquired sensor data is data that only transmits a PIN (Personal identification number) such as a management protocol, the node 10 determines that there is no need to store the data and does not describe a buffering option. When the buffering option is described in the received request message, the
図3(B)は、図3(A)のリクエストメッセージから一定時間(例えば、10分、1時間など)経過後にノード10から送信されたリクエストメッセージを表す図である。図3(B)に示すリクエストメッセージのヘッダ部分にもバッファリングオプション「Buffering:on」が記述されている。即ち、図3(B)に示すリクエストメッセージもリクエストURLをインデックスとしてデータベース209にセンサデータが蓄積される。図3(C)は、図3(A)のリクエストメッセージのセンサデータと図3(B)のリクエストメッセージのセンサデータとが蓄積された第二のリクエストメッセージを表す図である。
FIG. 3B is a diagram illustrating a request message transmitted from the node 10 after a predetermined time (for example, 10 minutes, 1 hour, etc.) has elapsed from the request message in FIG. The buffering option “Buffering: on” is also described in the header portion of the request message shown in FIG. That is, the request message shown in FIG. 3B also stores sensor data in the
次に、図3を用いてリクエストメッセージのセンサデータを追加する方法について説明する。図3(A)のリクエストメッセージのセンサデータがデータベース209に蓄積された後に、図3(B)のリクエストメッセージが受信されると、解析部207はヘッダ部分に記述されているリクエストURLを取得する。次に、解析部207は、取得したリクエストURLをインデックスとしてデータベース209を検索する。解析部207は、検索されたリクエストURLのセンサデータの後に取得したリクエストメッセージのセンサデータを追加する。
以上で、リクエストメッセージのセンサデータを追加する方法についての説明を終了する。
Next, a method for adding request message sensor data will be described with reference to FIG. When the request message of FIG. 3B is received after the sensor data of the request message of FIG. 3A is accumulated in the
This is the end of the description of the method for adding the request message sensor data.
図4は、バッファリングオプションが記述されていないリクエストメッセージの具体例を示す図である。
図4に示すリクエストメッセージでは、リクエストメッセージのヘッダ部分“c”にバッファリングオプション「Buffering:on」が記述されていない。したがって、図4に示すリクエストメッセージのセンサデータは、データベース209に蓄積されない。この場合、図4に示すクエストメッセージは、サーバ30に送信される。
FIG. 4 is a diagram illustrating a specific example of a request message in which a buffering option is not described.
In the request message shown in FIG. 4, the buffering option “Buffering: on” is not described in the header part “c” of the request message. Therefore, the sensor data of the request message shown in FIG. 4 is not accumulated in the
図5は、本実施形態における送信間隔算出処理の流れの具体例を示すフローチャートである。
まず、GW機器20の通信部201は、Synパケットをサーバ30に送信する(ステップS101)。この際、通信部201は、自装置(GW機器20)とサーバ30との通信に使用されるMSSの値をSynパケットに格納する。次に、通信部201は、サーバ30からSyn/Ackパケットを受信する(ステップS102)。この際、通信部201は、受信したSyn/Ackパケットに格納されているMSSの値を取得する。そして、通信部201は、サーバ30に対してAckパケットを送信する(ステップS103)。ステップS101〜ステップS103の処理を行うことによってGW機器20とサーバ30との接続が確立される。
FIG. 5 is a flowchart showing a specific example of the flow of transmission interval calculation processing in the present embodiment.
First, the
その後、通信部201は、サーバ30との通信に使用されるMSSの値を取得する(ステップS104)。具体的には、通信部201は、サーバ30に送信したMSSの値と受信したMSSの値とを比較して、小さい方のMSSをサーバ30との通信に使用するMSSの値として取得する。
次に、取得部203は、一定期間の間、ノード10からサーバ30に対して送信されているセンサデータのパケットを収集する(ステップS105)。取得部203は、収集したパケットからヘッダーサイズ及びボディサイズの各値を取得する(ステップS106)。具体的には、取得部203は、取得したパケットのHTTPヘッダのサイズとペイロードに格納されているセンサデータのサイズを取得する。
Thereafter, the
Next, the
集約数算出部204は、MSSの値とヘッダーサイズ及びボディサイズの各値とを用いてセンサデータの集約可能数を算出する(ステップS107)。受信間隔算出部205は、取得部203によって一定期間の間、収集されたパケットの受信時刻の差分に基づいて、センサデータのパケットの受信間隔を算出する(ステップS108)。その後、送信間隔算出部206は、算出された受信間隔の値と集約可能数の値とを用いて送信間隔を算出する(ステップS109)。例えば、送信間隔算出部206は、受信間隔の値と集約可能数の値とを乗算することによって送信間隔を算出する。そして、送信間隔算出部206は、算出した送信間隔の値をタイマー管理部208に通知する。その後、送信間隔算出処理が終了する。
The aggregation
図6は、本実施形態におけるセンサデータ送信処理の流れの具体例を示すフローチャートである。
GW機器20の通信部201は、ノード10から周期的に送信されるリクエストメッセージを受信する(ステップS201)。解析部207は、受信されたリクエストメッセージを解析する(ステップS202)。具体的には、解析部207は、受信されたリクエストメッセージに格納されているリクエストメソッド、リクエストURL、リクエストURI及びセンサデータの各値を取得する。その後、解析部207は、ヘッダ部分にバッファリングオプションが記述されているか否かを判定する(ステップS203)。バッファリングオプションが記述されている場合(ステップS203−YES)、解析部207は取得したリクエストURLをインデックスとしてデータベース209を検索する。そして、解析部207は、検索されたリクエストURLのセンサデータの後に、ステップS203の処理で取得したセンサデータをデータベース209に蓄積する(ステップS204)。
FIG. 6 is a flowchart showing a specific example of the flow of sensor data transmission processing in the present embodiment.
The
一方、バッファリングオプションが記述されていない場合(ステップS203−NO)、生成部210は受信されたリクエストメッセージに基づいて、サーバ30に送信する第一のリクエストメッセージを生成する(ステップS205)。具体的には、生成部210は、リクエストメッセージのヘッダ部分にリクエストメソッド及びリクエストメソッドURIを格納し、ボディ部分にリクエストボディを格納することによって第一のリクエストメッセージを生成する。そして、通信部201は、生成された第一のリクエストメッセージをサーバ30に送信する(ステップS214)。
また、ステップS204の処理後に、生成部210は、センサデータを蓄積したことを示す情報を含むレスポンスメッセージを生成する(ステップS206)。通信部201は、生成されたレスポンスメッセージをノード10に送信する(ステップS207)。
On the other hand, when the buffering option is not described (step S203—NO), the
Moreover, after the process of step S204, the production |
次に、タイマー管理部208は、ステップS201の処理で受信したリクエストメッセージのリクエストURLに対応するタイマーが起動しているか否かを判定する(ステップS208)。タイマーが起動している場合(ステップS208−YES)、タイマー管理部208はステップS201の処理で受信したリクエストメッセージのリクエストURLに対応するタイマーが満了であるか否かを判定する(ステップS209)。一方、ステップS208の処理において、タイマーが起動していない場合(ステップS208−NO)、タイマー管理部208は送信間隔算出部206によって算出された値を自装置に設定し、タイマーを開始する(ステップS210)。そして、ステップS201以降の処理が繰り返し実行される。
Next, the
タイマーが満了である場合(ステップS209−YES)、タイマー管理部208はタイマー満了を生成部210に通知する(ステップS211)。一方、ステップS209の処理において、タイマーが満了ではない場合(ステップS209−NO)、ステップS201以降の処理が繰り返し実行される。
次に、生成部210は、タイマー満了が通知されると、データベース209を参照し、ステップS201の処理で受信したリクエストメッセージのリクエストメソッド、リクエストURIに対応するセンサデータを用いてリクエストボディを生成する。(ステップS212)。生成部210は、リクエストメソッドとリクエストURIと生成されたリクエストボディとを用いて第二のリクエストメッセージを生成する(ステップS213)。具体的には、ヘッダ部分にリクエストメソッド及びリクエストURIを格納し、ボディ部分にリクエストボディを格納することによって第二のリクエストメッセージを生成する。その後、通信部201は、生成された第二のリクエストメッセージをサーバ30に送信する(ステップS214)。
When the timer has expired (step S209—YES), the
Next, when the expiration of the timer is notified, the
図7は、本実施形態におけるセンサデータ送信処理の動作の具体例を示すシーケンス図である。
ノード10は、センサデータを含むリクエストメッセージをGW機器20に送信する(ステップS301)。GW機器20の通信部201は、ノード10から送信されたリクエストメッセージを受信する。その後、解析部207は、受信されたリクエストメッセージを解析する(ステップS302)。リクエストメッセージにバッファリングオプションが記述されている場合、解析部207はリクエストメッセージに格納されているセンサデータをデータベース209に蓄積する(ステップS303)。一方、リクエストメッセージにバッファリングオプションが記述されていない場合、生成部210は受信されたリクエストメッセージに基づいて、第一のリクエストメッセージを生成する。その後、通信部201は、生成された第一のリクエストメッセージをサーバ30に送信する。
FIG. 7 is a sequence diagram showing a specific example of the operation of the sensor data transmission process in the present embodiment.
The node 10 transmits a request message including the sensor data to the GW device 20 (step S301). The
また、生成部210は、リクエストに対する結果を表すステータスコードとレスポンスボディとを用いてレスポンスメッセージを生成する(ステップS304)。通信部201は、生成されたレスポンスメッセージをノード10に送信する(ステップS305)。その後、タイマー管理部208は、送信間隔算出部206によって算出された送信間隔をタイマーに設定し、タイマーのカウントダウンを開始する(ステップS306)。
ノード10は、センサデータを含むリクエストメッセージをGW機器20に送信する(ステップS307)。GW機器20の通信部201は、ノード10から送信されたリクエストメッセージを受信する。その後、解析部207は、受信されたリクエストメッセージを解析する(ステップS308)。
Further, the
The node 10 transmits a request message including the sensor data to the GW device 20 (step S307). The
リクエストメッセージにバッファリングオプションが記述されている場合、解析部207はステップS307の処理で送信されたリクエストメッセージに格納されているセンサデータを、データベース209に蓄積する(ステップS309)。また、生成部210は、リクエストに対する結果を表すステータスコードとレスポンスボディとを用いてレスポンスメッセージを生成する(ステップS310)。通信部201は、生成されたレスポンスメッセージをノード10に送信する(ステップS311)。
When the buffering option is described in the request message, the
ステップS307の処理で送信されたリクエストメッセージのリクエストURLに対応するタイマーが満了すると、タイマー管理部208は、タイマー満了を生成部210に通知する。生成部210は、タイマー管理部208からタイマー満了が通知されると、データベース209を参照し、ステップS307の処理で送信されたリクエストメッセージのリクエストURLに対応するセンサデータを用いてリクエストボディを生成する(ステップS312)。その後、生成部210は、リクエストメソッド、リクエストURI及びリクエストボディを用いて第二のリクエストメッセージを生成する(ステップS313)。具体的には、生成部210は、ヘッダ部分にリクエストメソッド及びリクエストURIを格納し、ボディ部分にリクエストボディを格納することによって第二のリクエストメッセージを生成する。通信部201は、生成された第二のリクエストメッセージをサーバ30に送信する(ステップS314)。
When the timer corresponding to the request URL of the request message transmitted in the process of step S307 expires, the
サーバ30は、GW機器20から送信された第二のリクエストメッセージを受信する。次に、サーバ30は、受信した第二のリクエストメッセージに格納されているセンサデータをデータベースに記録する。そして、サーバ30は、レスポンスメッセージを生成する。その後、サーバ30は、生成したレスポンスメッセージをGW機器20に送信する(ステップS315)。
GW機器20の通信部201は、サーバ30から送信されたレスポンスメッセージを受信する。解析部207は、送信されたレスポンスメッセージを解析する(ステップS316)。生成部210は、レスポンスメッセージを生成する(ステップS317)。通信部201は、生成されたレスポンスメッセージをノード10に送信する(ステップS318)。
The
The
以上のように構成されたGW機器20によれば、複数のセンサデータがリクエストメッセージに付与されているリクエストURLに基づいて蓄積される。したがって、ノード10からセンサデータが送信される度に、センサデータの送信が行われないため、サーバ30に対してアクセス数が減少する。また、複数のセンサデータが一つのデータとして送信されるため、通信量も軽減することができ、サーバ30の処理負荷も軽減することができる。また、GW機器20は、フラグメンテーションが生じない最大のサイズで蓄積されたセンサデータをサーバ30に送信する。そのため、センサネットワークにおけるデータ送信の際に生じる負荷を軽減することが可能となる。
According to the
<変形例>
本実施例では、中継システムに存在するノード10の数は、三台であるが、ノード10の数が四台以上であっても良いし、ノード10の数が二台以下であっても良い。
また、本実施例では、中継システムに存在するGW機器20の数は、一台であるが、GW機器20の数は複数台で構成されても良い。
また、GW機器20がサーバ30に対して蓄積しているセンサデータを送信するタイミングは、上述のタイミングに限定される必要はない。例えば、GW機器20は、データベース209に蓄積されているセンサデータの数が、集約可能数を超過した場合にサーバ30にセンサデータを送信しても良い。また、ユーザによって送信間隔が設定されても良い。
また、本実施例では、センサデータをサーバ30に送信する中継装置としてGW機器20が使用されているが、これに限定される必要はなく、プロキシ機能を備えた中継装置であればどのような装置であっても良い。
バッファリングオプションは、リクエストメッセージのボディ部分に記述されても良い。
<Modification>
In this embodiment, the number of nodes 10 existing in the relay system is three, but the number of nodes 10 may be four or more, or the number of nodes 10 may be two or less. .
In the present embodiment, the number of
Further, the timing at which the
In the present embodiment, the
The buffering option may be described in the body part of the request message.
以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。 The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes designs and the like that do not depart from the gist of the present invention.
10(10−1〜10−3)…ノード, 20…GW機器, 30…サーバ, 40…センサネットワーク, 50…ネットワーク, 201…通信部, 202…制御部, 203…取得部, 204…集約数算出部, 205…受信間隔算出部, 206…送信間隔算出部, 207…解析部, 208…タイマー管理部, 209…データベース, 210…生成部 10 (10-1 to 10-3) ... node, 20 ... GW device, 30 ... server, 40 ... sensor network, 50 ... network, 201 ... communication unit, 202 ... control unit, 203 ... acquisition unit, 204 ... number of aggregation Calculation unit, 205 ... Reception interval calculation unit, 206 ... Transmission interval calculation unit, 207 ... Analysis unit, 208 ... Timer management unit, 209 ... Database, 210 ... Generation unit
Claims (4)
前記データベースに記憶されている蓄積された前記パケットをサーバに送信する間隔を管理するタイマー管理部と、
前記間隔で蓄積された前記パケットをサーバに送信する通信部と、
を備える中継装置。 A database for storing and storing packets with accumulated information transmitted from nodes for each destination;
A timer management unit for managing an interval for transmitting the accumulated packets stored in the database to a server;
A communication unit that transmits the packet accumulated at the interval to a server;
A relay device comprising:
自装置と前記サーバとの接続時に取得される前記パケットを送信可能な最大のサイズ情報と、前記パケットのサイズ情報とに基づいて、前記データベースに蓄積される前記パケットの集約可能数を算出する集約数算出部と、
を更に備え、
前記通信部は、前記集約可能数に基づいて、蓄積された前記パケットをサーバに送信する請求項1に記載の中継装置。 An acquisition unit for acquiring size information of the packet;
Aggregation for calculating the number of packets that can be accumulated in the database based on the maximum size information that can be transmitted when the packet is connected to the server and the size information of the packets. A number calculator,
Further comprising
The relay device according to claim 1, wherein the communication unit transmits the accumulated packets to a server based on the aggregation possible number.
前記ノードは、
周囲の空間情報を表すデータを収集するセンサと、
前記センサによって収集された前記データを含むパケットを前記中継装置に送信する通信部と、
を備え、
前記中継装置は、
ノードから送信された蓄積情報が付与されたパケットを送信先ごとに蓄積して記憶するデータベースと、
前記データベースに記憶されている蓄積された前記パケットをサーバに送信する間隔を管理するタイマー管理部と、
前記間隔で蓄積された前記パケットをサーバに送信する通信部と、
を備える中継システム。 A system comprising a plurality of nodes and a relay device that relays packets transmitted from the nodes to a server,
The node is
A sensor that collects data representing the surrounding spatial information;
A communication unit for transmitting a packet including the data collected by the sensor to the relay device;
With
The relay device is
A database for storing and storing packets with accumulated information transmitted from nodes for each destination;
A timer management unit for managing an interval for transmitting the accumulated packets stored in the database to a server;
A communication unit that transmits the packet accumulated at the interval to a server;
A relay system comprising:
前記データベースに記憶されている蓄積された前記パケットをサーバに送信する間隔を管理するタイマー管理ステップと、
前記間隔で蓄積された前記パケットをサーバに送信する通信ステップと、
を有する中継方法。 A storage step of storing, for each transmission destination, a packet to which accumulated information transmitted from a node is added and storing it in a database;
A timer management step for managing an interval for transmitting the accumulated packets stored in the database to a server;
A communication step of transmitting the packets accumulated at the intervals to a server;
A relay method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013065531A JP6047794B2 (en) | 2013-03-27 | 2013-03-27 | Relay device, relay system, and relay method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013065531A JP6047794B2 (en) | 2013-03-27 | 2013-03-27 | Relay device, relay system, and relay method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2014192661A true JP2014192661A (en) | 2014-10-06 |
| JP6047794B2 JP6047794B2 (en) | 2016-12-21 |
Family
ID=51838568
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2013065531A Active JP6047794B2 (en) | 2013-03-27 | 2013-03-27 | Relay device, relay system, and relay method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6047794B2 (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2017111568A (en) * | 2015-12-15 | 2017-06-22 | 日本電信電話株式会社 | Data aggregation device, method, and program |
| JP2017163440A (en) * | 2016-03-11 | 2017-09-14 | 富士通株式会社 | Data transfer program, data transfer method, and data transfer apparatus |
| DE102017126397A1 (en) | 2016-11-17 | 2018-05-17 | Minebea Mitsumi Inc. | Communication terminal and communication system |
| DE102017126398A1 (en) | 2016-11-25 | 2018-05-30 | Minebea Mitsumi Inc. | Transmission device and communication system |
| JP2018148494A (en) * | 2017-03-08 | 2018-09-20 | 株式会社東芝 | Packet aggregation device and transmission processing program |
| JP2019212987A (en) * | 2018-05-31 | 2019-12-12 | 株式会社東芝 | Observation data transmission system, observation data transmitter, and observation data transmission method |
| JPWO2019240034A1 (en) * | 2018-06-15 | 2020-12-17 | 日本電信電話株式会社 | Network management systems, management devices, relay devices, methods and programs |
| WO2022003964A1 (en) * | 2020-07-03 | 2022-01-06 | 日本電信電話株式会社 | Data collection system, terminal, data collection method, and program |
| JP7623208B2 (en) | 2021-04-30 | 2025-01-28 | 矢崎総業株式会社 | Relay device, communication system, data relay method, and data relay program |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011223496A (en) * | 2010-04-14 | 2011-11-04 | Nec Corp | Communication apparatus for ethernet (r) oam frame, oam frame processing method and processing program |
-
2013
- 2013-03-27 JP JP2013065531A patent/JP6047794B2/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011223496A (en) * | 2010-04-14 | 2011-11-04 | Nec Corp | Communication apparatus for ethernet (r) oam frame, oam frame processing method and processing program |
Non-Patent Citations (1)
| Title |
|---|
| JPN6016025109; 河合佑介 他: '無線センサネットワークにおけるデータ集約方式に関する考察' 情報処理学会シンポジウム Vol.2011,No.1, 20110706, p.871-877, 一般社団法人情報処理学会 * |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2017111568A (en) * | 2015-12-15 | 2017-06-22 | 日本電信電話株式会社 | Data aggregation device, method, and program |
| JP2017163440A (en) * | 2016-03-11 | 2017-09-14 | 富士通株式会社 | Data transfer program, data transfer method, and data transfer apparatus |
| DE102017126397A1 (en) | 2016-11-17 | 2018-05-17 | Minebea Mitsumi Inc. | Communication terminal and communication system |
| US10638290B2 (en) | 2016-11-17 | 2020-04-28 | Minebea Mitsumi Inc. | Communication terminal and communication system |
| US10523469B2 (en) | 2016-11-25 | 2019-12-31 | Minebea Mitsumi Inc. | Relay device and communication system |
| DE102017126398A1 (en) | 2016-11-25 | 2018-05-30 | Minebea Mitsumi Inc. | Transmission device and communication system |
| JP2018148494A (en) * | 2017-03-08 | 2018-09-20 | 株式会社東芝 | Packet aggregation device and transmission processing program |
| JP2019212987A (en) * | 2018-05-31 | 2019-12-12 | 株式会社東芝 | Observation data transmission system, observation data transmitter, and observation data transmission method |
| JP7150484B2 (en) | 2018-05-31 | 2022-10-11 | 株式会社東芝 | Observation data transmission system, observation data transmission device and observation data transmission method |
| JPWO2019240034A1 (en) * | 2018-06-15 | 2020-12-17 | 日本電信電話株式会社 | Network management systems, management devices, relay devices, methods and programs |
| US11477124B2 (en) | 2018-06-15 | 2022-10-18 | Nippon Telegraph And Telephone Corporation | Network management system, management device, relay device, method, and program |
| WO2022003964A1 (en) * | 2020-07-03 | 2022-01-06 | 日本電信電話株式会社 | Data collection system, terminal, data collection method, and program |
| JP7623208B2 (en) | 2021-04-30 | 2025-01-28 | 矢崎総業株式会社 | Relay device, communication system, data relay method, and data relay program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP6047794B2 (en) | 2016-12-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6047794B2 (en) | Relay device, relay system, and relay method | |
| CN112136293B (en) | Signaling Optimization in 3GPP Analysis | |
| US20190007928A1 (en) | Methods and nodes for enabling context-awareness in coap | |
| CN103957269B (en) | The system of selection of P2P network nodes and point-to-point redirection P2P Redirector servers | |
| JP5904908B2 (en) | Communication system and quality control server | |
| CN104217019A (en) | Content inquiry method and device based on multiple stages of cache modules | |
| JP2012191440A (en) | Communication quality measurement method and device | |
| WO2019007114A1 (en) | Data transmission method and device | |
| US9400547B2 (en) | Processing device and method thereof | |
| CN106101264A (en) | Content distributing network daily record method for pushing, device and system | |
| WO2017090306A1 (en) | Sensor data collection system | |
| CN106302638B (en) | Data management method, forwarding equipment and system | |
| CN104580228A (en) | System and method for blacklisting access requests from network | |
| EP3952233A1 (en) | Tcp congestion control method, apparatus, terminal, and readable storage medium | |
| WO2014208617A1 (en) | Push-type information transmission device, push-type information transmission method, and program | |
| JP5430411B2 (en) | Data collection server | |
| CN102957580B (en) | Flow statistical method and flow statistical equipment | |
| EP3643138B1 (en) | A method and network node of setting up a wireless connection | |
| KR20140125223A (en) | Method for collecting information with management interface in contents network based on information centric networking, content network management system, and node apparatus | |
| WO2017005118A1 (en) | Method, device, terminal and server for maintaining communication connection | |
| JP6609485B2 (en) | Communication device | |
| CN104579841B (en) | The system to the statistical result of certain statistical data item is generated according to the UDP messages of reception | |
| RU2576489C2 (en) | System and method for routing electronic content to recipient device | |
| JP6407133B2 (en) | Communication quality degradation detection system, communication quality degradation detection method, and program | |
| Uslu et al. | Ds+: Reliable distributed snapshot algorithm for wireless sensor networks |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150629 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160623 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160705 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160824 |
|
| 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: 20161025 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20161028 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6047794 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |