【0001】
【発明の属する技術分野】
この発明は、インターネットプロトコルによって構内ネットワークに接続されたビル管理装置及びその管理方法に関するものである。
【0002】
【従来の技術】
インターネットプロトコルによって通信する装置は、IPアドレスとポート番号によって、通信相手とアプリケーションを識別するが、ポート番号は通信装置間において自由に設定できるため、ビル内等の構内ネットワークに装置を接続する場合、他のネットワーク装置のポート番号と重複する可能性がある。
【0003】
【発明が解決しようとする課題】
上記のような従来のビル管理装置では、インターネットプロトコルによって通信する装置のポート番号が、他の無関係のネットワーク装置のポート番号と重複した場合、無効な伝送データの解析により処理性能が低下したり、通信トラフィックの増大により通信速度が低下したりするという問題点がある。
【0004】
この発明は上記問題点を解消するためになされたもので、ポート番号の重複による処理性能の低下や通信速度の低下を防止できるようにしたビル管理装置を提供することを目的とする。
【0005】
【課題を解決するための手段】
この発明の第1発明に係るビル管理装置は、インターネットプロトコルによって、構内ネットワークに接続された中央装置と端末装置との間で、IPアドレスとポート番号によって通信する装置において、上記中央装置又は端末装置が受信したデータに無効又は不正なデータが含まれているかを判定するデータ判定手段と、このデータ判定手段が動作すると受信側のポート番号を変更するポート番号変更手段とを備えたものである。
【0006】
また、第2発明に係るビル管理装置は、第1発明のものにおいて、変更されたポート番号を送信側へ通知するポート番号送信手段を設けたものである。
【0007】
また、第3発明に係るビル管理方法は、インターネットプロトコルによって、構内ネットワークに接続された中央装置と端末装置との間で、IPアドレスとポート番号によって通信する方法において、上記中央装置又は端末装置が受信したデータに無効又は不正なデータが含まれているかを判定するステップと、この判定ステップが動作すると受信側のポート番号を変更するステップとを備えたものである。
【0008】
【発明の実施の形態】
実施の形態1.
図1及び図2はこの発明の第1〜第3発明の一実施の形態を示す図で、図1は全体構成図、図2は動作フローチャートである。
図1において、1はビル内等に配設された通信用の構内ネットワーク、2はネットワーク1に接続されたビル管理装置の中央装置、3はネットワーク1に接続され照明、空調、電気錠等のビル内設備の状態を監視し、その状態の変化を中央装置2へ通知するビル管理装置の端末装置、4はネットワーク1に接続されたビル管理装置以外のネットワーク機器である。
【0009】
中央装置2と端末装置3は、それぞれが自分のIPアドレスとポート番号及び相手のIPアドレスとポート番号の情報を持ち、インターネットプロトコルによって通信する。
次に、この実施の形態の動作を図2を参照して説明する。
ステップS1で端末装置3は送信されたデータを受信すると、受信したデータのIPアドレスとポート番号を読み込み、ステップS2で自分あてのデータかを判定する。自分あてのデータでなければステップS1へ戻る。
【0010】
自分あてのデータであれば、ステップS3へ進み、中央装置2からの正常なデータであるかを判定する。正常なデータであれば、ステップS4へ進んで、データの解析処理を実行してステップS1へ戻る。正常なデータでなければ、ステップS5へ進んで自分のポート番号を新たに生成したポート番号に変更する。そして、ステップS6で新しいポート番号をネットワーク1を介して中央装置2へ送信してステップS1へ戻る。
【0011】
中央装置2はステップS6で送信された新しいポート番号を受信し、通信相手である端末装置3のポート番号を更新する。これで、再び端末装置3と通信することが可能となる。
ここで、ステップS1〜ステップS3はデータ判定手段を、ステップS5はポート番号変更手段を、ステップS6はポート番号送信手段を構成している。
なお、上記実施の形態では、端末装置3から中央装置2へポート番号の変更を送信するものとしたが、中央装置2から端末装置3へポート番号の変更を送信する場合もあり、同様の手順で処理することが可能である。
【0012】
このようにして、重複したポート番号は自動的に変更されるため、無効なデータや不正なデータを受信することによる処理性能の低下や、通信速度の低下を防止することが可能となる。また、ポート番号が変更されると、これを送信側へ通知されるため、送信先でポート番号の変更を認識することにより、新しいポート番号で通信を再開することが可能となる。
【0013】
【発明の効果】
以上述べたとおりこの発明の第1発明では、中央装置又は端末装置が受信したデータに無効又は不正なデータが含まれていると判定すると、受信側のポート番号を変更するようにしたので、処理性能の低下や、通信速度の低下を防止することができる。
【0014】
また、第2発明では、変更されたポート番号を送信側へ通知するようにしたので、処理性能の低下や、通信速度の低下を防止することができるとともに、新しいポート番号で自動的に通信を再開することができる。
【0015】
また、第3発明では、中央装置又は端末装置が受信したデータに無効又は不正なデータが含まれていると判定すると、受信側のポート番号を変更する各ステップを備えているので、処理性能の低下や、通信速度の低下を防止することができる。
【図面の簡単な説明】
【図1】この発明の実施の形態1を示す全体構成図。
【図2】この発明の実施の形態1を示す動作フローチャート。
【符号の説明】
1 構内ネットワーク、 2 中央装置、 3 端末装置。
S1〜S3 データ判定手段、 S5 ポート番号変更手段、 S6 ポート番号送信手段。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a building management device connected to a private network by an Internet protocol and a management method thereof.
[0002]
[Prior art]
A device that communicates according to the Internet protocol identifies a communication partner and an application by an IP address and a port number, but since the port number can be freely set between the communication devices, when connecting the device to a private network such as in a building, There is a possibility that it will be the same as the port number of another network device.
[0003]
[Problems to be solved by the invention]
In the conventional building management device as described above, if the port number of a device communicating according to the Internet protocol overlaps with the port number of another unrelated network device, the processing performance is reduced due to analysis of invalid transmission data, There is a problem that the communication speed decreases due to an increase in communication traffic.
[0004]
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has as its object to provide a building management apparatus capable of preventing a reduction in processing performance and a reduction in communication speed due to duplication of port numbers.
[0005]
[Means for Solving the Problems]
According to a first aspect of the present invention, there is provided a building management apparatus for communicating between a central apparatus connected to a private network and a terminal apparatus by an IP address and a port number using an Internet protocol. Are provided with data determining means for determining whether invalid data or invalid data is included in received data, and port number changing means for changing a port number on the receiving side when the data determining means operates.
[0006]
The building management apparatus according to a second aspect of the present invention is the building management apparatus according to the first aspect, further comprising a port number transmitting means for notifying the changed port number to the transmitting side.
[0007]
The building management method according to a third aspect of the present invention is a method for communicating between a central device and a terminal device connected to a private network by an IP address and a port number by an Internet protocol, wherein the central device or the terminal device is It is provided with a step of determining whether the received data contains invalid or invalid data, and a step of changing the port number of the receiving side when the determining step operates.
[0008]
BEST MODE FOR CARRYING OUT THE INVENTION
Embodiment 1 FIG.
FIGS. 1 and 2 show an embodiment of the first to third aspects of the present invention. FIG. 1 is an overall configuration diagram, and FIG. 2 is an operation flowchart.
In FIG. 1, reference numeral 1 denotes a premises network for communication disposed in a building or the like, 2 denotes a central unit of a building management device connected to the network 1, and 3 denotes lighting, air conditioning, an electric lock, etc., connected to the network 1. The terminal device 4 of the building management device that monitors the status of the facilities in the building and notifies the central device 2 of the change in the status is a network device other than the building management device connected to the network 1.
[0009]
The central device 2 and the terminal device 3 each have their own IP address and port number and the information of the other party's IP address and port number, and communicate using the Internet protocol.
Next, the operation of this embodiment will be described with reference to FIG.
Upon receiving the transmitted data in step S1, the terminal device 3 reads the IP address and port number of the received data, and determines in step S2 whether the data is addressed to itself. If it is not the data for yourself, the process returns to step S1.
[0010]
If the data is for itself, the process proceeds to step S3, and it is determined whether the data is normal data from the central device 2. If the data is normal, the process proceeds to step S4, executes data analysis processing, and returns to step S1. If the data is not normal, the process proceeds to step S5 to change its own port number to the newly generated port number. Then, in step S6, the new port number is transmitted to the central device 2 via the network 1, and the process returns to step S1.
[0011]
The central device 2 receives the new port number transmitted in step S6 and updates the port number of the terminal device 3 that is the communication partner. This makes it possible to communicate with the terminal device 3 again.
Here, steps S1 to S3 constitute data determination means, step S5 constitutes port number changing means, and step S6 constitutes port number transmission means.
In the above-described embodiment, the change of the port number is transmitted from the terminal device 3 to the central device 2. However, the change of the port number may be transmitted from the central device 2 to the terminal device 3. Can be processed.
[0012]
In this way, since the duplicated port number is automatically changed, it is possible to prevent a reduction in processing performance and a reduction in communication speed due to reception of invalid data or invalid data. Further, when the port number is changed, the change is notified to the transmission side, so that the transmission destination can recognize the change in the port number and restart the communication with the new port number.
[0013]
【The invention's effect】
As described above, according to the first aspect of the present invention, when it is determined that the data received by the central device or the terminal device includes invalid or invalid data, the port number on the receiving side is changed. It is possible to prevent a decrease in performance and a decrease in communication speed.
[0014]
Further, in the second invention, the changed port number is notified to the transmitting side, so that it is possible to prevent a reduction in processing performance and a reduction in communication speed, and to automatically perform communication with a new port number. Can be resumed.
[0015]
Further, in the third invention, when it is determined that the data received by the central device or the terminal device contains invalid or invalid data, each step of changing the port number of the receiving side is provided, so that the processing performance is improved. It is possible to prevent a decrease and a decrease in the communication speed.
[Brief description of the drawings]
FIG. 1 is an overall configuration diagram showing a first embodiment of the present invention.
FIG. 2 is an operation flowchart showing the first embodiment of the present invention.
[Explanation of symbols]
1 Premise network, 2 Central unit, 3 Terminal unit.
S1 to S3 data determination means, S5 port number change means, S6 port number transmission means.