JP3068511B2 - Packet relay system - Google Patents

Packet relay system

Info

Publication number
JP3068511B2
JP3068511B2 JP9168819A JP16881997A JP3068511B2 JP 3068511 B2 JP3068511 B2 JP 3068511B2 JP 9168819 A JP9168819 A JP 9168819A JP 16881997 A JP16881997 A JP 16881997A JP 3068511 B2 JP3068511 B2 JP 3068511B2
Authority
JP
Japan
Prior art keywords
communication
time
packet
line
relay system
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
JP9168819A
Other languages
Japanese (ja)
Other versions
JPH1117741A (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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP9168819A priority Critical patent/JP3068511B2/en
Publication of JPH1117741A publication Critical patent/JPH1117741A/en
Application granted granted Critical
Publication of JP3068511B2 publication Critical patent/JP3068511B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、TCP/IP(ト
ランスミッション・コントロール・プロトコル/インタ
ネット・プロトコル)仕様のパケットを中継するパケッ
ト中継システムに関し、特に公衆網を介して異なるネッ
トワーク間の通信を行うパケット中継システムにおける
回線切断方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a packet relay system for relaying packets conforming to TCP / IP (Transmission Control Protocol / Internet Protocol) specifications, and more particularly to a packet relay system for communicating between different networks via a public network. The present invention relates to a line disconnection method in a relay system.

【0002】[0002]

【従来の技術】従来、この種のパケット中継システム
は、複数のLAN(ローカルエリアネットワーク)を直
接または広域網(ワイドエリアネットワーク)を使用し
て接続するために用いられている。このような接続装置
の一種であるルータは、LANどおしを広域網を介して
接続する装置であり、受信したデータのヘッダを解析し
てルーティングを行い、宛先LANへ広域網を介してデ
ータを転送する。
2. Description of the Related Art Conventionally, this type of packet relay system is used to connect a plurality of LANs (local area networks) directly or by using a wide area network (wide area network). A router, which is a type of such a connection device, is a device that connects LANs through a wide area network, analyzes a header of received data, performs routing, and transmits data to a destination LAN via a wide area network. To transfer.

【0003】このようなルータによるパケット中継シス
テムで、特に公衆回線を介してデータ転送終了時の回線
切断方式は、例えば、特開平7−74784に示される
ように最終パケット(システム側で、通話時間の最大値
を勝手に判断)が通過してからあらかじめ一つまたはプ
ロトコル内容に応じて複数設定された固定的なタイマに
よる切断を行う方法に限られていた。
[0003] In such a packet relay system using a router, a line disconnection method at the end of data transfer via a public line is disclosed in, for example, Japanese Patent Application Laid-Open No. 7-74784. Is limited to a method in which one or a plurality of fixed timers set in advance in accordance with the contents of the protocol are used for disconnection after the maximum value has been passed.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のパケッ
ト中継システムは、どのパケットが最終パケットである
かを判断できず、実際の通信の終了を判断することがで
きないため、公衆回線を切断するための切断タイマに
は、予想される通信時間の最大値をあらかじめ固定的に
設定していた。このため、通信が終了していない状態で
切断したり、通信が終了しても無効に回線を保留し続け
余分な回線費用が発生するなどの問題があった。
The above-described conventional packet relay system cannot determine which packet is the last packet, and cannot determine the end of actual communication. In the disconnect timer, the maximum value of the expected communication time is fixedly set in advance. For this reason, there have been problems such as disconnection in a state where the communication has not been completed, invalid holding of the line even after the communication has been completed, and generation of extra line cost.

【0005】本発明の目的は、公衆回線を使用した通信
において、通信の開始と終了を把握し、実際の通信時間
と過去の通信時間の統計情報に基づいて、回線の切断時
間を最適化することにより、通信中に切断したり、無効
に回線を保留し続けることのないパケット中継システム
を提供することにある。
An object of the present invention is to grasp the start and end of communication in communication using a public line and optimize the line disconnection time based on actual communication time and past communication time statistical information. Accordingly, it is an object of the present invention to provide a packet relay system that does not disconnect during communication and does not keep holding a line invalid.

【0006】[0006]

【課題を解決するための手段】本第1の発明のパケット
中継システムは、LAN(ローカルエリアネットワー
ク)と公衆網を経由してデータパケットを伝送するため
のルーティング機能をTCP/IP(トランスミッショ
ン・コントロール・プロトコル/インタネット・プロト
コル)仕様に基づいて遂行するパケット中継システムに
おいて、データパケットの通信の開始と終了を識別し識
別された該通信の開始と終了から通信時間を算出し、算
出した前記通信時間と前記通信と同じ通信内容の過去の
通信の平均通信時間との関係から前記通信の終了識別後
の前記公衆網の回線切断時間を動的に変更することを特
徴とする。
According to a first aspect of the present invention, there is provided a packet relay system having a routing function for transmitting data packets via a LAN (Local Area Network) and a public network by using TCP / IP (Transmission Control). (Protocol / Internet Protocol) In a packet relay system performed based on specifications, the start and end of data packet communication are identified, and a communication time is calculated from the identified start and end of the communication, and the calculated communication time is calculated. And dynamically changing the line disconnection time of the public network after the end of the communication is identified from the relationship between the communication and the average communication time of the past communication having the same communication content as the communication.

【0007】また、第2の発明は、第1の発明における
前記データパケットの通信の開始と終了は、前記開始が
前記TCPヘッダ内のSYNフラグにより、前記終了が
前記TCPヘッダ内のFINフラグまたはRSTフラグ
によることを特徴とする。
According to a second aspect of the present invention, in the first aspect of the present invention, the start and end of the communication of the data packet are started by a SYN flag in the TCP header, and ended by a FIN flag or a FIN flag in the TCP header. It is characterized by an RST flag.

【0008】また、第3の発明は、第1の発明における
前記通信内容が宛先IPアドレス,送信元IPアドレ
ス,発信元ポート番号の組み合わせであることを特徴と
する。
A third invention is characterized in that the communication content in the first invention is a combination of a destination IP address, a source IP address, and a source port number.

【0009】また、第4の発明は、第3の発明における
算出した前記通信時間が前記通信と同じ通信内容の過去
の通信の平均通信時間よりも大きい場合は、前記通信の
終了識別後予め定められた最短切断時間が経過するまで
前記公衆回線に該通信内容と同じ他のパケットが発生し
ておらず該最短切断時間が経過時に前記公衆回線に該通
信内容と異なる他のパケットが発生していないことを条
件に前記公衆網の回線を切断することを特徴とする。
In a fourth aspect of the present invention, when the communication time calculated in the third aspect of the invention is longer than the average communication time of the past communication having the same communication content as the communication, the predetermined time after the end of the communication is identified. No other packet having the same communication content has been generated on the public line until the shortest disconnection time has elapsed, and another packet different from the communication content has occurred on the public line when the shortest disconnection time has elapsed. And disconnecting the line of the public network on condition that there is no public network.

【0010】また、第5の発明は、第3の発明における
算出した前記通信時間が前記通信と同じ通信内容の過去
の通信の平均通信時間よりも小さい場合は、前記通信の
終了識別後予め定められた最短切断時間が経過するまで
前記公衆回線に該通信内容と同じ他のパケットが発生し
ておらず予め定められた最長切断時間が経過時に前記公
衆回線に該通信内容と異なる他のパケットが発生してい
ないことを条件に前記公衆網の回線を切断することを特
徴とする。
According to a fifth aspect of the present invention, when the communication time calculated in the third aspect of the invention is shorter than an average communication time of a past communication having the same communication content as the communication, a predetermined time after the end of the communication is determined. No other packet having the same communication content has been generated on the public line until the predetermined shortest disconnection time has elapsed, and another packet different from the communication content has been generated on the public line when the predetermined maximum disconnection time has elapsed. It is characterized in that the line of the public network is cut off on the condition that no occurrence has occurred.

【0011】また、第6の発明は、第4及び第5の発明
における前記最短切断時間は、前記通信内容対応に予め
定められていることを特徴とする。
A sixth invention is characterized in that the shortest disconnection time in the fourth and fifth inventions is predetermined in correspondence with the communication content.

【0012】また、第7の発明は、第5の発明における
前記最長切断時間は、前記通信内容対応に予め定められ
ていることを特徴とする。
A seventh invention is characterized in that the longest disconnection time in the fifth invention is predetermined in correspondence with the communication content.

【0013】[作用]通信中に送受信されたパケット内
に設定されているプロトコル識別子を認識すると同時に
通信プロトコル内部に設定されたフラグを検出すること
により、該通信の通信開始と通信終了を確認し、それに
伴い実際の通信時間を算出する。
[Operation] By recognizing a protocol identifier set in a packet transmitted / received during communication and detecting a flag set inside the communication protocol, the start and end of the communication are confirmed. Then, the actual communication time is calculated accordingly.

【0014】一方、通信内容(宛先IPアドレス,送信
元IPアドレス,発信元ポート番号の組み合わせ)毎に
過去の統計情報として累積総通信時間、総通信回数、及
び平均通信時間を算出して記憶する。
On the other hand, the accumulated total communication time, the total number of communication times, and the average communication time are calculated and stored as past statistical information for each communication content (a combination of a destination IP address, a transmission source IP address, and a transmission source port number). .

【0015】算出された通信時間とこの通信と同じ通信
内容の通信に関する過去の統計に基づいた平均通信時間
との大小関係から通信終了を確認後の公衆回線切断用の
切断タイマを動的に変更する。
[0015] The disconnection timer for disconnecting the public line after confirming the end of communication is dynamically changed from the magnitude relation between the calculated communication time and the average communication time based on the past statistics regarding the communication having the same communication contents as this communication. I do.

【0016】[0016]

【発明の実施の形態】次に本発明の実施の形態について
図面を参照して詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0017】図1は本発明一実施の形態を示すシステム
構成図、図2,図3は本発明の一実施の形態を示す処理
フローチャートである。
FIG. 1 is a system configuration diagram showing one embodiment of the present invention, and FIGS. 2 and 3 are processing flowcharts showing one embodiment of the present invention.

【0018】図1を参照すると、本発明は、パケットの
蓄積,送受信処理を行うルーティング処理部101と、
パケットをルーティング処理部101に送信あるいはル
ーティング処理部101から受信するためのLANイン
タフェース部102,回線インタフェース部103と、
通信の開始とそのパケットのポート番号を抽出するパケ
ット開始検出部104と、システムの時間をカウントす
るシステムクロック105と、通信状態を保存する通信
状態管理テーブル106と、パケットの通信終了を検出
するパケット終了検出部107と、回線切断を行うため
に参照される終了タイマ108と、回線切断を行うため
の基本データがあらかじめ登録された基本情報テーブル
109と、システム稼動時から現在までの通信状況が格
納されている統計情報テーブル110と、統計情報を算
出するための統計情報処理部111から構成される。
Referring to FIG. 1, the present invention comprises a routing processing unit 101 for storing, transmitting and receiving packets.
A LAN interface unit 102 and a line interface unit 103 for transmitting a packet to the routing processing unit 101 or receiving a packet from the routing processing unit 101;
A packet start detector 104 for extracting the start of communication and the port number of the packet, a system clock 105 for counting the system time, a communication state management table 106 for storing the communication state, and a packet for detecting the end of communication of the packet An end detection unit 107, an end timer 108 referred to for disconnecting the line, a basic information table 109 in which basic data for disconnecting the line are registered in advance, and a communication status from the time of operation of the system to the present are stored. And a statistical information processing unit 111 for calculating statistical information.

【0019】次に本発明の実施の形態の動作について図
2及び図3を参照して詳細に説明する。なお、本発明が
扱うパケットは、TCP/IP仕様に基づくものであ
る。
Next, the operation of the embodiment of the present invention will be described in detail with reference to FIGS. The packet handled by the present invention is based on the TCP / IP specification.

【0020】図4は、ルーティング処理部101の詳細
ブロック図である。LANインタフェース102,回線
インタフェース103から入力されたパケットはバッフ
ァメモリ1013に蓄積される。中央処理装置1011
はあらかじめ端末装置(図示せず)から登録されたルー
ティングテーブル1012の情報に基づいて、バッファ
メモリ1013に蓄積されたパケットのIPアドレスを
認識し、適切なインタフェースに配送される。また、入
出力メモリ1014は、パケット終了検出部107や統
計情報処理部111とデータの受け渡しを行うために利
用される。
FIG. 4 is a detailed block diagram of the routing processing unit 101. Packets input from the LAN interface 102 and the line interface 103 are stored in the buffer memory 1013. Central processing unit 1011
Recognizes the IP address of the packet stored in the buffer memory 1013 based on the information of the routing table 1012 registered in advance from a terminal device (not shown), and delivers the packet to an appropriate interface. The input / output memory 1014 is used to exchange data with the packet end detection unit 107 and the statistical information processing unit 111.

【0021】図1におけるパケット開始検出部104
は、バッファメモリ1013に蓄積されたパケットの内
容を常時監視しており、蓄積されたパケットの宛先IP
アドレスと送信元IPアドレスと図4に示す、TCPヘ
ッダの発信元ポート番号401とSYNフラグ402を
監視している(S1)。
The packet start detecting unit 104 in FIG.
Is constantly monitoring the contents of the packets stored in the buffer memory 1013, and the destination IP of the stored packets is
The address, source IP address, and source port number 401 and SYN flag 402 of the TCP header shown in FIG. 4 are monitored (S1).

【0022】パケット開始検出部104がバッファメモ
リ1013に蓄積されたパケットにおいて、TCPヘッ
ダ内のSYNフラグが1の状態を認識すると、そのパケ
ットの情報を抽出し、通信状態管理テーブル106に情
報を書き込む。
When the packet start detection unit 104 recognizes that the SYN flag in the TCP header of the packet stored in the buffer memory 1013 is 1, information of the packet is extracted and the information is written in the communication state management table 106. .

【0023】図6は、通信状態管理テーブル106に格
納されている情報の詳細である。パケット開始検出部1
04は、パケットのTCPヘッダのSYNフラグが1で
あることを認識すると、そのパケットの宛先IPアドレ
ス,送信元IPアドレス,発信元ポート番号を抽出し、
テーブルの先頭から書き込んでいく。また、パケット開
始検出部は、通信状態管理テーブル106に情報を書き
込む際、システムクロック105から現在時刻も併せて
抽出し、書き込みを行う(S2)。
FIG. 6 shows details of the information stored in the communication state management table 106. Packet start detection unit 1
04 recognizes that the SYN flag of the TCP header of the packet is 1, extracts the destination IP address, the source IP address, and the source port number of the packet,
Write from the top of the table. Also, when writing information to the communication state management table 106, the packet start detection unit extracts the current time together with the system clock 105 and writes the information (S2).

【0024】システムクロック105は、システム起動
時に端末装置(図示せず)により、あらかじめ設定され
ている。
The system clock 105 is preset by a terminal device (not shown) when the system is started.

【0025】図6においては、FTP(ファイル転送プ
ロトコル)がテーブル番号1に記憶された例を示してい
る。
FIG. 6 shows an example in which FTP (File Transfer Protocol) is stored in table number 1.

【0026】パケット終了検出部107もパケット開始
検出部104と同様にルーティング処理部101のバッ
ファメモリ1013に入力されるパケットを常に監視し
ており、図5におけるFINフラグ403とRSTフラ
グ404に1が入力されているかどうかを監視している
(S3)。
Similarly to the packet start detecting unit 104, the packet end detecting unit 107 constantly monitors the packet input to the buffer memory 1013 of the routing processing unit 101. When the FIN flag 403 and the RST flag 404 in FIG. It is monitored whether an input has been made (S3).

【0027】パケット終了検出部107がFINフラグ
403またはRSTフラグ404に1が入力されている
ことを検知すると、通信の終了であることを認識し、フ
ラグを検出したパケットの宛先IPアドレス,発信元I
Pアドレス,発信元ポート番号を検出する(S4)。
When the end-of-packet detection unit 107 detects that 1 has been input to the FIN flag 403 or the RST flag 404, it recognizes that communication has ended, and determines the destination IP address and source of the packet in which the flag was detected. I
The P address and the source port number are detected (S4).

【0028】その後、パケット終了検出部107は、検
出した情報を元に通信状態管理テーブル106を検索
し、該当する情報を認識する。更にパケット終了検出部
107は通信状態管理テーブル106で認識した情報の
格納位置情報を抽出し、ルーティング処理部101の中
央処理装置1011に対して、通信終了を示す割り込み
を行うと同時に入出力メモリ1014に該当する通信状
態管理テーブル106の格納位置情報を出力する(S
5)。本実施例においては、通信状態管理テーブル10
6の格納位置情報は1となり、入出力メモリ1014に
は、1が出力される。
After that, the packet end detecting section 107 searches the communication state management table 106 based on the detected information, and recognizes the corresponding information. Further, the packet end detecting unit 107 extracts the storage position information of the information recognized in the communication state management table 106, and interrupts the central processing unit 1011 of the routing processing unit 101 indicating the end of the communication, and at the same time, simultaneously executes the interruption indicating the communication end Is output as the storage position information of the communication state management table 106 corresponding to (S)
5). In the present embodiment, the communication status management table 10
The storage position information of 6 becomes 1, and 1 is output to the input / output memory 1014.

【0029】更にまた、パケット終了検出部107は、
終了タイマ108にパルスの送出を行う。パケット終了
検出部107からパルスを受信した終了タイマ108
は、計時を開始する(S6)。
Further, the packet end detecting section 107
A pulse is sent to the end timer 108. End timer 108 receiving a pulse from packet end detection section 107
Starts timing (S6).

【0030】パケット終了検出部107から割り込みを
受けたルーティング処理部101の中央処理装置101
1は、システムクロック105から現在の時刻情報を認
識し、同時に入出力メモリ1014の格納位置情報を元
に、通信情報管理テーブル106から該当する情報を認
識する(S7)。
The central processing unit 101 of the routing processing unit 101 having received an interrupt from the packet end detection unit 107
1 recognizes the current time information from the system clock 105 and, at the same time, recognizes the corresponding information from the communication information management table 106 based on the storage position information in the input / output memory 1014 (S7).

【0031】アドレス情報,ポート番号,時刻情報を認
識した中央処理装置1011は、基本情報テーブル10
9に登録されている内容を検索する(S8)。
The central processing unit 1011 recognizing the address information, the port number, and the time information sends the basic information table 10
9 are searched for (S8).

【0032】図7は基本情報テーブル109に登録され
ている情報の詳細を示す。基本情報テーブル109に
は、宛先IPアドレス,送信元IPアドレス,発信元ポ
ート番号,最短切断時間1091,最長切断時間109
2,統計情報参照番号1093がシステム起動時にあら
かじめ端末装置(図示せず)から登録されている。最短
切断時間1091は、パケット終了検出部107が通信
終了を検出してから回線を切断するまでに最低限状態監
視をする時間である。最長切断時間1092は、平均通
信時間がこの時間より短い場合に、最大限通信状態を監
視する時間を示す(詳細は後述)。
FIG. 7 shows details of information registered in the basic information table 109. The basic information table 109 includes a destination IP address, a source IP address, a source port number, a shortest disconnection time 1091, and a longest disconnection time 109.
2. Statistical information reference number 1093 is registered in advance from a terminal device (not shown) when the system is started. The shortest disconnection time 1091 is a minimum monitoring time from when the packet end detection unit 107 detects the end of communication to when the line is disconnected. The longest disconnection time 1092 indicates the time for monitoring the maximum communication state when the average communication time is shorter than this time (details will be described later).

【0033】上述の最短切断時間1091,最長切断時
間1092,統計情報参照番号1093の値は、システ
ム管理者が、宛先や送信元の端末の種類および過去の通
信実績などから判断して登録する。本実施例において
は、宛先IPアドレス,送信元IPアドレス,発信元ポ
ート番号がFTPであることから最短切断時間1091
が5秒、最長切断時間1092が30秒、統計情報参照
番号1093が3に決定される。
The value of the shortest disconnection time 1091, the longest disconnection time 1092, and the statistical information reference number 1093 is registered by the system administrator, judging from the type of the destination and the terminal of the transmission source, the past communication results, and the like. In this embodiment, since the destination IP address, source IP address, and source port number are FTP, the shortest disconnection time 1091
5 seconds, the longest cutting time 1092 is 30 seconds, and the statistical information reference number 1093 is 3.

【0034】基本情報テーブル109の検索を終了した
中央処理装置1011は、基本情報テーブルの該当する
情報の中から、最短切断時間を参照する(S9)。
After finishing searching the basic information table 109, the central processing unit 1011 refers to the shortest cutting time from the corresponding information in the basic information table (S9).

【0035】その後、中央処理装置1011はパケット
開始検出部104から現在切断処理を行おうとしている
情報を持つパケットが発生しないか(同じ通信を続けて
行う場合がある)を確認しながら(S10)、終了タイ
マ108と最短切断時間1091を比較する(S1
1)。
Thereafter, the central processing unit 1011 confirms whether or not a packet having the information for which the disconnection process is currently to be performed is generated from the packet start detection unit 104 (the same communication may be continuously performed) (S10). Compare the end timer 108 with the shortest disconnection time 1091 (S1
1).

【0036】その間に該当するパケットが発生した場合
は、終了タイマ108を停止しクリアすると共に再度監
視状態に戻る(S12)。
If a corresponding packet is generated during that time, the end timer 108 is stopped and cleared, and the state returns to the monitoring state again (S12).

【0037】終了タイマ108の値が最短切断時間10
91と等しくなった場合には、中央処理装置1011
は、基本情報テーブル109の該当する統計情報参照番
号1093を参照する(S13)。本実施例において
は、該当する新規パケットが未発生にため、終了タイマ
108の値が5秒に達した場合に統計情報参照番号とし
て値3が認識される。
The value of the end timer 108 is set to the shortest disconnection time 10
If it is equal to 91, the central processing unit 1011
Refers to the corresponding statistical information reference number 1093 in the basic information table 109 (S13). In this embodiment, the value 3 is recognized as the statistical information reference number when the value of the end timer 108 reaches 5 seconds because no corresponding new packet has been generated.

【0038】図8は、統計情報テーブル110の詳細を
示す。(a)は通信開始前の情報を、(b)は通信終了
後に登録内容が変更された情報を示す。統計情報テーブ
ル110には、基本情報テーブル109の統計情報参照
番号1093に対応した、統計情報テーブル番号110
1,システム起動時からカウントされた総通信回数11
02,総通信時間1103,総通信回数1102と総通
信時間1103から算出された平均通信時間1104が
記憶されている。
FIG. 8 shows the details of the statistical information table 110. (A) shows information before the start of communication, and (b) shows information whose registered contents have been changed after the end of communication. The statistical information table 110 has a statistical information table number 110 corresponding to the statistical information reference number 1093 of the basic information table 109.
1, the total number of communication times counted since the system was started 11
02, the total communication time 1103, and the average communication time 1104 calculated from the total communication time 1102 and the total communication time 1103 are stored.

【0039】ルーティング処理部101の中央処理装置
1011は、統計情報参照番号1093から統計情報テ
ーブル110の統計情報テーブル番号1101を検索
し、平均通信時間1104を参照する(S14)。
The central processing unit 1011 of the routing processing unit 101 searches the statistical information table number 1101 of the statistical information table 110 from the statistical information reference number 1093, and refers to the average communication time 1104 (S14).

【0040】本実施例においては、図8の(a)におい
て、統計情報テーブル番号が3に決定し、総通信回数1
102は26回、総通信時間1103は8790秒、平
均通信時間1104は338秒に決定される。
In this embodiment, the statistical information table number is determined to be 3 in FIG.
102 is determined 26 times, the total communication time 1103 is determined to be 8790 seconds, and the average communication time 1104 is determined to be 338 seconds.

【0041】その後、中央処理装置1011は、パケッ
ト終了検出部107から割り込みをかけられた時刻と通
信状態管理テーブル106の該当する項目に記憶されて
いている通信開始時間を元に今回の検出した通信の通信
時間を算出し(S15)、平均通信時間1104と比較
を行う(S16)。
Thereafter, the central processing unit 1011 sends the current detected communication based on the time when the packet end detection unit 107 interrupted and the communication start time stored in the corresponding item of the communication state management table 106. Is calculated (S15), and compared with the average communication time 1104 (S16).

【0042】このとき、通信時間が平均通信時間より長
い場合は、中央処理装置1011が通信完了状態である
ことを認識する。
At this time, if the communication time is longer than the average communication time, the central processing unit 1011 recognizes that the communication is completed.

【0043】また、比較の結果通信時間が短い場合は、
パケット開始検出部104から現在切断処理を行おうと
している情報を持つパケット(宛先IPアドレス,送信
元IPアドレス,発信元ポート番号が同じパケット)が
発生しないかを確認しながら(S17)、最長切断時間
1092と比較を行う(S18)。
If the communication time is short as a result of the comparison,
The longest disconnection is performed while confirming whether or not a packet (a packet having the same destination IP address, source IP address, and source port number) having information to be disconnected currently is generated from the packet start detection unit 104 (S17). A comparison is made with time 1092 (S18).

【0044】その間に該当するパケットが発生した場合
は、終了タイマ108を停止しクリアすると共に再度監
視状態に戻る。
If a corresponding packet is generated during that time, the end timer 108 is stopped and cleared, and the monitor returns to the monitoring state again.

【0045】終了タイマ108の値が最長切断時間10
92と等しくなった場合には、中央処理装置1011
は、通信完了状態であることを認識する。同時に中央制
御装置1011は通信状態管理テーブル106を再度参
照する(S19)。
The value of the end timer 108 is set to the maximum disconnection time of 10
If it is equal to 92, the central processing unit 1011
Recognizes that the communication is completed. At the same time, the central control device 1011 again refers to the communication state management table 106 (S19).

【0046】もし、通信状態管理テーブル106に他の
エントリ(同一回線を使用しているが、宛先IPアドレ
ス,送信元IPアドレス,発信元ポート番号が異なるパ
ケット)が存在する場合、その通信を継続監視し、行っ
ていない場合は、回線インタフェース103に対して切
断指示を行う(S20)。
If another entry (a packet using the same line but different destination IP address, source IP address, and source port number) exists in the communication status management table 106, the communication is continued. If monitoring is not performed, a disconnection instruction is issued to the line interface 103 (S20).

【0047】中央処理装置1011は通信終了が確定し
た時点で、終了タイマ108を停止しクリアする(S2
1)。また、同時に今回算出された通信時間を入出力メ
モリ1014に出力する(S22)。本実施例において
は、通信状態管理テーブル106に他の通信が登録され
ていないため、今回の通信時間400秒が入出力メモリ
1014に出力される。
When the end of communication is determined, the central processing unit 1011 stops and clears the end timer 108 (S2).
1). At the same time, the communication time calculated this time is output to the input / output memory 1014 (S22). In this embodiment, since no other communication is registered in the communication state management table 106, the current communication time of 400 seconds is output to the input / output memory 1014.

【0048】統計情報処理部111は、入出力メモリ1
014を監視しており、通信時間が出力されると総通信
回数1102に1を加え、新たな総通信回数として統計
情報テーブル110に書き込む(S23)。同時に入出
力メモリ1104に出力されている通信時間を総通信時
間1103に加え統計情報テーブル110に書き込む
(S24)。更に、統計情報処理部111は新たに書き
込まれた総通信回数1102と総通信時間1103を元
に、平均通信時間を算出し、統計情報テーブル111に
書き込む(S25)。
The statistical information processing section 111 has an input / output memory 1
014 is monitored, and when the communication time is output, 1 is added to the total number of times of communication 1102 and written in the statistical information table 110 as a new total number of times of communication (S23). At the same time, the communication time output to the input / output memory 1104 is added to the total communication time 1103 and written to the statistical information table 110 (S24). Further, the statistical information processing unit 111 calculates an average communication time based on the newly written total communication count 1102 and total communication time 1103, and writes the average communication time in the statistical information table 111 (S25).

【0049】本実施例においては、図8の(b)に示す
とおり、総通信回数が27回となり総通信時間が919
0秒となるため、平均通信時間には340秒が新たな平
均通信時間として書き込まれることになる。
In this embodiment, as shown in FIG. 8B, the total number of communication times is 27 and the total communication time is 919.
Since it is 0 second, 340 seconds is written as the new average communication time as the average communication time.

【0050】このように、通信が実施される都度、その
情報が統計情報として反映され、次回の通信に適応され
る。このため、通信の種類に応じて、最適な回線切断時
間が決定されるため、従来の固定式タイマに比べて公衆
網の無効な回線保留時間を短縮し、それに伴う回線料金
低減と、回線使用効率を上げることが可能となる。
As described above, each time communication is performed, the information is reflected as statistical information, and is applied to the next communication. For this reason, since the optimal line disconnection time is determined according to the type of communication, the invalid line holding time of the public network is reduced as compared with the conventional fixed timer, thereby reducing the line charge and the line usage. Efficiency can be increased.

【0051】[0051]

【発明の効果】以上説明したように、本発明のパケット
中継システムは、通信の開始と終了を把握し、実際の通
信時間と過去の統計情報に基づいて、回線の切断時間を
最適化するようにしたことにより、通信中に切断した
り、無効に回線を保留し続けることがなくなり、サービ
ス性が向上するとともに、通信料金の適正化、及び回線
使用効率の向上に寄与する効果がある。
As described above, the packet relay system of the present invention grasps the start and end of communication and optimizes the line disconnection time based on the actual communication time and past statistical information. By doing so, it is possible to prevent disconnection during communication or to keep the line invalidly held, thereby improving serviceability and optimizing communication charges and improving line use efficiency.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施の形態を示すシステム構成図で
ある。
FIG. 1 is a system configuration diagram showing an embodiment of the present invention.

【図2】本発明の一実施の形態を示す処理フローチャー
トである。
FIG. 2 is a processing flowchart illustrating an embodiment of the present invention.

【図3】図2の後続の処理フローチャートである。FIG. 3 is a processing flowchart subsequent to FIG. 2;

【図4】本発明のルーティング処理部のブロック図であ
る。
FIG. 4 is a block diagram of a routing processing unit according to the present invention.

【図5】TCPヘッダのフォーマットを示す模式図であ
る。
FIG. 5 is a schematic diagram showing a format of a TCP header.

【図6】本発明における通信状態管理テーブルの構成例
を示す図である。
FIG. 6 is a diagram illustrating a configuration example of a communication state management table according to the present invention.

【図7】本発明における基本情報テーブルの構成例を示
す図である。
FIG. 7 is a diagram showing a configuration example of a basic information table according to the present invention.

【図8】本発明における統計情報テーブルの構成例を示
す図であり、(a)は情報更新前を示し、(b)は情報
更新後を示す。
FIGS. 8A and 8B are diagrams illustrating a configuration example of a statistical information table according to the present invention, wherein FIG. 8A illustrates a state before information update and FIG. 8B illustrates a state after information update.

【符号の説明】[Explanation of symbols]

101 ルーティング処理部 1011 中央処理装置 1012 ルーティングテーブル 1013 バッファメモリ 1014 入出力メモリ 102 LANインタフェース部 103 回線インタフェース部 104 パケット開始検出部 105 システムクロック 106 通信状態管理テーブル 107 パケット終了検出部 108 終了タイマ 109 基本情報テーブル 1091 最短切断時間 1092 最長切断時間 1093 統計情報参照番号 110 統計情報テーブル 1101 統計情報テーブル番号 1102 総通信回数 1103 総通信時間 1104 平均通信時間 111 統計情報処理部 401 発信元ポート番号 402 SYNフラグ 403 FINフラグ 404 RSTフラグ 101 routing processing unit 1011 central processing unit 1012 routing table 1013 buffer memory 1014 input / output memory 102 LAN interface unit 103 line interface unit 104 packet start detection unit 105 system clock 106 communication state management table 107 packet end detection unit 108 end timer 109 basic information Table 1091 Shortest disconnection time 1092 Longest disconnection time 1093 Statistical information reference number 110 Statistical information table 1101 Statistical information table number 1102 Total communication count 1103 Total communication time 1104 Average communication time 111 Statistical information processing unit 401 Source port number 402 SYN flag 403 FIN Flag 404 RST flag

フロントページの続き (56)参考文献 特開 平7−336392(JP,A) 特開 平8−8917(JP,A)Continuation of the front page (56) References JP-A-7-336392 (JP, A) JP-A-8-8917 (JP, A)

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 LAN(ローカルエリアネットワーク)
と公衆網を経由してデータパケットを伝送するためのル
ーティング機能をTCP/IP(トランスミッション・
コントロール・プロトコル/インタネット・プロトコ
ル)仕様に基づいて遂行するパケット中継システムにお
いて、データパケットの通信の開始と終了を識別し識別
された該通信の開始と終了から通信時間を算出し、算出
した前記通信時間と前記通信と同じ通信内容の過去の通
信の平均通信時間との関係から前記通信の終了識別後の
前記公衆網の回線切断時間を動的に変更することを特徴
とするパケット中継システム。
1. A LAN (local area network)
And a routing function for transmitting data packets via the public network with TCP / IP (transmission
In a packet relay system performed based on a control protocol / internet protocol) specification, a start and an end of communication of a data packet are identified, a communication time is calculated from the identified start and end of the communication, and the calculated communication is calculated. A packet relay system characterized by dynamically changing a line disconnection time of the public network after the end of the communication is identified based on a relationship between time and an average communication time of past communication having the same communication content as the communication.
【請求項2】 前記データパケットの通信の開始と終了
は、前記開始が前記TCPヘッダ内のSYNフラグによ
り、前記終了が前記TCPヘッダ内のFINフラグまた
はRSTフラグによることを特徴とする請求項1記載の
パケット中継システム。
2. The communication system according to claim 1, wherein the start and the end of the communication of the data packet are started by a SYN flag in the TCP header, and the end is started by a FIN flag or an RST flag in the TCP header. The packet relay system according to the above.
【請求項3】 前記通信内容が宛先IPアドレス,送信
元IPアドレス,発信元ポート番号の組み合わせである
ことを特徴とする請求項1記載のパケット中継システ
ム。
3. The packet relay system according to claim 1, wherein the communication content is a combination of a destination IP address, a source IP address, and a source port number.
【請求項4】 算出した前記通信時間が前記通信と同じ
通信内容の過去の通信の平均通信時間よりも大きい場合
は、前記通信の終了識別後予め定められた最短切断時間
が経過するまで前記公衆回線に該通信内容と同じ他のパ
ケットが発生しておらず該最短切断時間が経過時に前記
公衆回線に該通信内容と異なる他のパケットが発生して
いないことを条件に前記公衆網の回線を切断することを
特徴とする請求項3記載のパケット中継システム。
4. When the calculated communication time is longer than the average communication time of past communication having the same communication content as the communication, the public communication is continued until a predetermined shortest disconnection time elapses after the end of the communication is identified. The line of the public network is provided on the condition that no other packet identical to the communication content has occurred on the line and no other packet different from the communication content has occurred on the public line when the shortest disconnection time has elapsed. The packet relay system according to claim 3, wherein the packet is disconnected.
【請求項5】 算出した前記通信時間が前記通信と同じ
通信内容の過去の通信の平均通信時間よりも小さい場合
は、前記通信の終了識別後予め定められた最短切断時間
が経過するまで前記公衆回線に該通信内容と同じ他のパ
ケットが発生しておらず予め定められた最長切断時間が
経過時に前記公衆回線に該通信内容と異なる他のパケッ
トが発生していないことを条件に前記公衆網の回線を切
断することを特徴とする請求項3記載のパケット中継シ
ステム。
5. When the calculated communication time is shorter than the average communication time of past communication having the same communication content as the communication, the public communication is continued until a predetermined shortest disconnection time elapses after the end of the communication is identified. On the condition that no other packet identical to the communication content has occurred on the line and no other packet different from the communication content has occurred on the public line when a predetermined maximum disconnection time has elapsed. 4. The packet relay system according to claim 3, wherein said line is disconnected.
【請求項6】 前記最短切断時間は、前記通信内容対応
に予め定められていることを特徴とする請求項4及び5
記載のパケット中継システム。
6. The communication system according to claim 4, wherein the shortest disconnection time is predetermined in correspondence with the communication content.
The packet relay system according to the above.
【請求項7】 前記最長切断時間は、前記通信内容対応
に予め定められていることを特徴とする請求項5記載の
パケット中継システム。
7. The packet relay system according to claim 5, wherein said longest disconnection time is predetermined in correspondence with said communication contents.
JP9168819A 1997-06-25 1997-06-25 Packet relay system Expired - Fee Related JP3068511B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9168819A JP3068511B2 (en) 1997-06-25 1997-06-25 Packet relay system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9168819A JP3068511B2 (en) 1997-06-25 1997-06-25 Packet relay system

Publications (2)

Publication Number Publication Date
JPH1117741A JPH1117741A (en) 1999-01-22
JP3068511B2 true JP3068511B2 (en) 2000-07-24

Family

ID=15875102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9168819A Expired - Fee Related JP3068511B2 (en) 1997-06-25 1997-06-25 Packet relay system

Country Status (1)

Country Link
JP (1) JP3068511B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012178792A (en) * 2011-02-28 2012-09-13 Nec Access Technica Ltd Router, node management method, and node management program

Also Published As

Publication number Publication date
JPH1117741A (en) 1999-01-22

Similar Documents

Publication Publication Date Title
JP3184817B2 (en) Flow control method, suspension control system and node
US5430709A (en) Network monitoring method and apparatus
US9112882B2 (en) Method and apparatus for the fast detection of connectivity loss between devices in a network
JPH07273789A (en) System and method for communication
JP2000332817A (en) Packet processing unit
JP2002290459A (en) Device for transferring packets and method for the same
JP2006261873A (en) Packet transfer apparatus and transfer control system therefor
JP3214454B2 (en) Packet processing device with built-in program
JP4022017B2 (en) LAN relay device
US7649906B2 (en) Method of reducing buffer usage by detecting missing fragments and idle links for multilink protocols and devices incorporating same
JP3068511B2 (en) Packet relay system
JP3465183B2 (en) Network monitoring method
US6956864B1 (en) Data transfer method, data transfer system, data transfer controller, and program recording medium
JP4505575B2 (en) COMMUNICATION SYSTEM, GATEWAY TRANSMISSION DEVICE, GATEWAY RECEPTION DEVICE, TRANSMISSION METHOD, RECEPTION METHOD, AND INFORMATION RECORDING MEDIUM
JP2000156707A (en) Packet-switching station and packet-switching network system
CN107623607A (en) BFD session connections method for building up and device
CN114205405B (en) BFD message sending method and device, electronic equipment and storage medium
JP2561033B2 (en) Packet relay system
JP2943453B2 (en) Response return timing calculation system corresponding to the transmission buffer of the communication partner
JP3831920B2 (en) Data transfer device, data transfer method, data transfer program, and storage medium on which data transfer program is recorded
JP2006033713A (en) Communication apparatus and communication band control method
JP2000174846A (en) Communication equipment and recording medium
JP3831921B2 (en) Data transfer device, data transmission device, data transfer method, data transfer program, and storage medium on which data transfer program is recorded
JP3508057B2 (en) Layer 3 switch
JP3005569B1 (en) Frame relay exchange and CIR monitoring processing method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000418

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

LAPS Cancellation because of no payment of annual fees