JP2561033B2 - Packet relay system - Google Patents

Packet relay system

Info

Publication number
JP2561033B2
JP2561033B2 JP16058294A JP16058294A JP2561033B2 JP 2561033 B2 JP2561033 B2 JP 2561033B2 JP 16058294 A JP16058294 A JP 16058294A JP 16058294 A JP16058294 A JP 16058294A JP 2561033 B2 JP2561033 B2 JP 2561033B2
Authority
JP
Japan
Prior art keywords
packet
transmission
network
protocol
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 - Lifetime
Application number
JP16058294A
Other languages
Japanese (ja)
Other versions
JPH0774784A (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
Nippon Electric Co Ltd
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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP16058294A priority Critical patent/JP2561033B2/en
Publication of JPH0774784A publication Critical patent/JPH0774784A/en
Application granted granted Critical
Publication of JP2561033B2 publication Critical patent/JP2561033B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は異なるネットワークを接
続してデータパケットのネットワーク間転送を可能にす
る中継システムに係り、特に公衆網を介してデータパケ
ットの送信及び受信を行うためのパケット中継システム
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a relay system that connects different networks and enables data packets to be transferred between networks, and more particularly to a packet relay system for transmitting and receiving data packets via a public network. Regarding

【0002】[0002]

【従来の技術】近年、LAN(ローカルエリアネットワ
ーク)の急速な普及に伴って、複数のLANの接続ある
いは広域網(ワイドエリアネットワーク)との接続の必
要性が高まってきた。例えば、地理的に離れたLAN同
士を公衆パケット網を介して接続し、電子メールやファ
イル転送を行う場合が考えられる。このような接続装置
の1つであるルータはLAN同士を広域網を介して接続
する装置であり、受信したデータのヘッダを解析してル
ーチングを行い、宛先LANへ広域網を介してデータを
転送する。
2. Description of the Related Art In recent years, with the rapid spread of LANs (local area networks), it has become necessary to connect a plurality of LANs or a wide area network (wide area network). For example, geographically distant LANs may be connected to each other via a public packet network for electronic mail or file transfer. A router, which is one of such connection devices, is a device that connects LANs via a wide area network, analyzes the header of the received data and performs routing, and transfers the data to the destination LAN via the wide area network. To do.

【0003】このようなルータにおけるパケット中継シ
ステムでは、例えばLANから公衆網へ送信するパケッ
トデータが終了すると、所定時間経過後に回線を切断す
るように構成されている。即ち、そのシステムに予め時
間設定されたタイマが設けられており、パケットデータ
の送信が終了した時点でそのタイマを起動し、所定時間
経過時点でタイマから出力される信号により回線を切断
する。このタイマの設定時間は固定値であり、システム
構築時にユーザによって適切な値に設定されている。
The packet relay system in such a router is configured to disconnect the line after a lapse of a predetermined time when the packet data transmitted from the LAN to the public network ends. That is, the system is provided with a timer set in advance, the timer is started when the transmission of the packet data is completed, and the line is disconnected by the signal output from the timer when the predetermined time has elapsed. The set time of this timer is a fixed value, and is set to an appropriate value by the user when the system is constructed.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
パケット中継システムでは、タイマ設定値が固定である
ために、どのような業務を行っている場合にも公衆回線
が途中で切断されないように、タイマ設定値が比較的大
きな値に予め設定されている。例えば、上位プロトコル
が遠隔端末プロトコル(TELNET)で、操作者がキ
ーを打つ毎にパケットが送信されるような会話型アプリ
ケーションの場合には、作業途中で回線が切断されない
ように、タイマ設定値は大きく設定しておく必要があ
る。また、ファイル転送プロトコル(FTP)による連
続処理型アプリケーションの場合には、短いタイマ設定
値で十分である。従って、従来のようにタイマ設定値が
固定されているシステムでは、TELNETのようなプ
ロトコルに合わせてタイマ設定値を大きく設定してい
る。
However, in the conventional packet relay system, since the timer set value is fixed, the timer is set so that the public line is not cut off during the course of any work. The set value is preset to a relatively large value. For example, in the case of a conversational application in which the upper layer protocol is the remote terminal protocol (TELNET) and a packet is transmitted every time the operator hits a key, the timer setting value is set so that the line is not disconnected during the work. It needs to be set large. Further, in the case of a continuous processing type application based on the file transfer protocol (FTP), a short timer setting value is sufficient. Therefore, in the conventional system in which the timer setting value is fixed, the timer setting value is set large in accordance with the protocol such as TELNET.

【0005】このために、上位アプリケーションが高速
転送を行うファイル転送プロトコルである場合は、送信
が終了したにも拘わらず公衆回線が依然として接続され
た状態が長く続くという問題が生じる。その結果、公衆
回線の有効利用を阻害し、またユーザから見れば回線使
用料の無駄が生じてしまう。
For this reason, when the upper application is a file transfer protocol for performing high-speed transfer, there arises a problem that the public line remains connected for a long time despite the end of transmission. As a result, the effective use of the public line is hindered, and the line fee is wasted from the user's point of view.

【0006】本発明の目的は、公衆回線の有効利用を促
進し且つ回線使用料金を節約できるルータにおけるパケ
ット中継システムを提供することにある。
An object of the present invention is to provide a packet relay system in a router that can promote effective use of public lines and save line usage charges.

【0007】[0007]

【課題を解決するための手段】本発明によるパケット中
継システムは、第1ネットワークと第2ネットワークと
の間でデータパケットを伝送するためのルーティング機
能を有し、更に、パケット中継システムが終端するプロ
トコルより上位のプロトコルの種類に対応した時間設定
値を予め格納しているメモリ手段と、メモリ手段を参照
して第1ネットワークから第2ネットワークへ伝送され
る送信パケットの上位プロトコルに対応する時間設定値
を前記時間設定値から選択する選択手段と、送信パケッ
トの送信終了を検出する送信終了検出手段と、検出され
た送信終了によって起動し選択手段によって選択された
時間設定値に到達した時に終了信号を発生する計時手段
と、終了信号に従って第2ネットワークの回線を切断す
る回線制御手段と、からなることを特徴とする。
A packet relay system according to the present invention has a routing function for transmitting a data packet between a first network and a second network, and a protocol terminated by the packet relay system. Memory means for storing in advance a time setting value corresponding to the type of a higher protocol, and a time setting value corresponding to the higher protocol of a transmission packet transmitted from the first network to the second network by referring to the memory means. From the time set value, a transmission end detection means for detecting the end of transmission of a transmission packet, and an end signal when the time set value selected by the selection means is activated and the end signal is reached. A clocking means for generating and a line control means for disconnecting the line of the second network according to the end signal Characterized in that it consists of.

【0008】[0008]

【作用】第2ネットワークの回線切断タイミングが送信
パケットの上位プロトコルに従って設定される。上位プ
ロトコルの種類に応じた切断タイミングを表す時間設定
値を予めメモリ手段に格納しておき、送信パケットの上
位プロトコルに対応する時間設定値を選択する。続い
て、送信パケットの送信終了を検出すると計時手段を起
動し、選択された時間設定値に到達すると計時手段が終
了信号を発生する。この終了信号によって、回線制御手
段が第2ネットワークの回線を切断する。
The timing of disconnecting the line of the second network is set according to the upper protocol of the transmission packet. A time setting value representing the disconnection timing corresponding to the type of the upper protocol is stored in advance in the memory means, and the time setting value corresponding to the upper protocol of the transmission packet is selected. Subsequently, when the end of transmission of the transmission packet is detected, the time measuring means is activated, and when the selected time set value is reached, the time measuring means generates an end signal. With this end signal, the line control means disconnects the line of the second network.

【0009】より具体的には、LANと公衆網との間で
データパケットを伝送する場合、公衆網を介してパケッ
トデータを宛先へ送信し又は宛先から受信する時点で公
衆回線を接続し、その送信/受信が終了した時点で計時
手段(タイマ)を起動する。このタイマが時間設定値に
到達する前にパケットの送信/受信が生起するとタイマ
の動作は停止され、タイマが設定値に到達すると公衆回
線を切断する。
More specifically, when transmitting a data packet between a LAN and a public network, a public line is connected at the time when packet data is transmitted to or received from the destination via the public network, A timer (timer) is started when transmission / reception is completed. If packet transmission / reception occurs before this timer reaches the time set value, the operation of the timer is stopped, and when the timer reaches the set value, the public line is disconnected.

【0010】望ましくは、タイマ設定値は上位プロトコ
ルの種類に対応したテーブル形式でメモリに格納されて
いる。例えば、アプリケーションが高速転送を行うファ
イル転送プロトコルであればタイマ設定値を小さくして
短時間で回線切断を行い、遠隔端末プロトコルであれば
大きな値に設定して十分な時間が経過してから回線を切
断する。
Preferably, the timer setting value is stored in the memory in a table format corresponding to the type of upper layer protocol. For example, if the application is a file transfer protocol that performs high-speed transfer, reduce the timer setting value to disconnect the line in a short time, and if the application is a remote terminal protocol, set it to a large value and set the line Disconnect.

【0011】TCP/IP(トランスミッション・コン
トロール・プロトコル/インターネット・プロトコル)
仕様に基づくパケットでは、上位プロトコルの種類の識
別をパケットの発信元ポート番号(ソース・ポート・ア
ドレス)によって行う。発信元ポート番号とそれに対応
したタイマ設定値とを記憶したテーブルを用意してお
き、送信パケットの発信元ポート番号を用いてテーブル
を参照し、対応するタイマ設定値を取り出す。そして、
パケットの送信/受信が終了した時点で、取り出したタ
イマ設定値に従ってタイマを動作させ、設定値に到達す
ると公衆回線を切断する。
TCP / IP (Transmission Control Protocol / Internet Protocol)
In the packet based on the specification, the type of higher-layer protocol is identified by the source port number (source port address) of the packet. A table storing the source port number and the timer setting value corresponding to the source port number is prepared, the table is referred to by using the source port number of the transmission packet, and the corresponding timer setting value is extracted. And
When the packet transmission / reception is completed, the timer is operated according to the extracted timer setting value, and the public line is disconnected when the setting value is reached.

【0012】[0012]

【実施例】以下、本発明の実施例を図面を参照しながら
詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0013】図1は、本発明によるパケット中継システ
ムの一実施例を示すブロック図である。なお、本実施例
におけるパケットはTCP/IP仕様に基づくものであ
る。
FIG. 1 is a block diagram showing an embodiment of a packet relay system according to the present invention. The packet in this embodiment is based on the TCP / IP specifications.

【0014】まず、LANから送信パケットを入力する
と、ルーティング処理部101は宛先を決定し、それが
公衆回線へ送信すべきものであれば、データ回線終端装
置(DCE)109へ転送し、そこから送信パケットが
公衆回線へ送出される。逆に、公衆回線から受信したパ
ケットは、DCE109で復調された後、ルーティング
処理部101へ転送され、宛先を決定されてLANへ送
出される。
First, when a transmission packet is input from the LAN, the routing processing unit 101 determines the destination, and if it is to be transmitted to the public line, transfers it to the data circuit terminating device (DCE) 109 and transmits from there. The packet is sent to the public line. On the contrary, the packet received from the public line is demodulated by the DCE 109, transferred to the routing processing unit 101, the destination is determined, and sent to the LAN.

【0015】ルーティング処理部101から出力された
送信パケットを入力して、ポート番号抽出部102はT
CPヘッダの発信元ポート番号を抽出しテーブル103
へ出力する。テーブル103は、その発信元ポート番号
に対応するタイマ設定値をレジスタ104へ出力し、レ
ジスタ104はこのタイマ設定値を保持する。テーブル
103については後述する(図9参照)。
The transmission packet output from the routing processing unit 101 is input, and the port number extraction unit 102 receives the T packet.
Source port number of CP header is extracted and table 103
Output to. The table 103 outputs the timer setting value corresponding to the source port number to the register 104, and the register 104 holds the timer setting value. The table 103 will be described later (see FIG. 9).

【0016】ルーティング処理部101からDCE10
9へ出力される送信パケット及びDCE109から入力
する受信パケットは、いずれもパケット終了検出部10
5及びパケット開始検出部106に入力する。パケット
終了検出部105は、送信及び受信パケットが終了した
時点を検出し、スタート信号をタイマ108へ出力す
る。このスタート信号によってタイマ108は計時動作
を開始する。パケット開始検出部106はパケットが送
信又は受信され始めた時点を検出し、パルス信号をタイ
マ108及びDCE109へ出力する。タイマ108
は、このパルス信号をタイマ停止信号として入力し計時
動作を停止して初期状態に復帰する。これと同時に、D
CE109はパルス信号を接続信号として入力し公衆回
線を接続して送信パケットを回線へ送出する。
From the routing processing unit 101 to the DCE 10
Both the transmission packet output to 9 and the reception packet input from the DCE 109 are the packet end detection unit 10.
5 and the packet start detection unit 106. The packet end detection unit 105 detects the time when the transmission and reception packets have ended, and outputs a start signal to the timer 108. The start signal causes the timer 108 to start a time counting operation. The packet start detection unit 106 detects the time when the packet starts to be transmitted or received, and outputs a pulse signal to the timer 108 and the DCE 109. Timer 108
Input this pulse signal as a timer stop signal to stop the time counting operation and return to the initial state. At the same time, D
The CE 109 inputs a pulse signal as a connection signal, connects a public line, and sends a transmission packet to the line.

【0017】排他的論理和回路107は、タイマ108
の計時値とレジスタ104に格納されているタイマ設定
値とを比較し、両者が一致した時にパルス信号をタイマ
108及びDCE109へ出力する。タイマ108は、
このパルス信号を停止信号として入力し、計時動作を停
止する。DCE109は、このパルス信号を切断信号と
して入力し、公衆回線を切断する。
The exclusive OR circuit 107 includes a timer 108.
Of the timer and the timer set value stored in the register 104 are compared with each other, and when they match each other, a pulse signal is output to the timer 108 and the DCE 109. The timer 108
This pulse signal is input as a stop signal to stop the time counting operation. The DCE 109 inputs this pulse signal as a disconnection signal and disconnects the public line.

【0018】図2は、本実施例におけるルーティング処
理部101の詳細なブロック図である。LANはLAN
インタフェース1010に接続され、DCE109は回
線インタフェース1011に接続される。これらインタ
フェース1010および1011は、パケットが入力が
すると、ルーティング制御を行うCPU(中央処理装
置)1012に対して割り込みをかける。CPU101
2は、メモリ1013に格納されたルーティングテーブ
ルを参照して、LANインタフェース1010又は回線
インタフェース1011に対して通信制御を行う。
FIG. 2 is a detailed block diagram of the routing processing unit 101 in this embodiment. LAN is LAN
The DCE 109 is connected to the interface 1010, and the DCE 109 is connected to the line interface 1011. When a packet is input, these interfaces 1010 and 1011 interrupt a CPU (central processing unit) 1012 that performs routing control. CPU 101
2 refers to the routing table stored in the memory 1013, and performs communication control for the LAN interface 1010 or the line interface 1011.

【0019】図3(A)はLANインタフェース101
0でのパケットフォーマットであり、図3(B)は回線
インタフェース1011でのパケットフォーマットであ
る。いずれのパケットにおいてもIPヘッダ部に宛先ア
ドレスが存在する。図3(C)は、宛先アドレスに対応
する出力ポートが定められたルーティングテーブルであ
る。ルーティング処理部101の動作を更に詳細に説明
する。
FIG. 3A shows a LAN interface 101.
0 is the packet format, and FIG. 3B is the packet format in the line interface 1011. In each packet, the destination address exists in the IP header part. FIG. 3C is a routing table in which output ports corresponding to destination addresses are defined. The operation of the routing processing unit 101 will be described in more detail.

【0020】図4は、ルーティング処理部101の制御
を示すフローチャートである。同図において、CPU1
012は割り込み要求があると、LAN及び回線のいず
れの割り込み要求であるかを判断し(401)、回線か
らの要求であれば、回線インタフェース1011からパ
ケットを入力してメモリ1013へ格納する(40
2)。また、LANからであれば、LANインタフェー
ス1010からパケットを入力してメモリ1013に格
納する(403)。
FIG. 4 is a flow chart showing the control of the routing processing unit 101. In the figure, CPU1
When an interrupt request is issued, 012 determines which of the LAN and the line is the interrupt request (401). If the request is from the line, the packet is input from the line interface 1011 and stored in the memory 1013 (40).
2). If it is from the LAN, the packet is input from the LAN interface 1010 and stored in the memory 1013 (403).

【0021】続いて、IPヘッダの宛先アドレスを用い
てルーティングテーブルを検索し(404)、一致する
宛先アドレスがあれば(405のYes)、それに対応
する出力ポートがどちらであるかを判断する(40
6)。回線側であれば、メモリ1013から回線インタ
フェース1011にパケットを転送し(407)、回線
インタフェース1011に対して送信指示を出力する
(408)。また、LAN側であれば、メモリ1013
からLANインタフェース1010にパケットを転送し
(409)、LANインタフェース1010に対して送
信指示を出力する(410)。
Next, the routing table is searched using the destination address of the IP header (404), and if there is a matching destination address (Yes in 405), it is determined which output port corresponds to it ( 40
6). On the line side, the packet is transferred from the memory 1013 to the line interface 1011 (407), and a transmission instruction is output to the line interface 1011 (408). On the LAN side, the memory 1013
Packet is transferred from the LAN interface 1010 to the LAN interface 1010 (409), and a transmission instruction is output to the LAN interface 1010 (410).

【0022】ルーティング処理部101の回線インタフ
ェース1011から出力された送信パケットは、ポート
番号抽出部102に入力して発信元ポート番号が取り出
される。図5に示すように、パケットのTCPヘッドで
は先頭の2オクテットが発信元ポート番号フィールド5
01である。
The transmission packet output from the line interface 1011 of the routing processing unit 101 is input to the port number extraction unit 102 and the source port number is extracted. As shown in FIG. 5, in the TCP head of the packet, the first two octets are the source port number field 5
01.

【0023】図6は、本実施例におけるポート番号抽出
部102の詳細なブロック図である。送信パケットのデ
ータは、シリアル/パラレル変換器1021によって8
ビットのパラレルデータとなり、先頭の2オクテットが
レジスタ1022及び1023にそれぞれ格納され、発
信元ポート番号として出力される。送信パケットが入力
すると、HDLCヘッダ検出器1024によって検出さ
れ、アップカウンタ1025がリセットされる。アップ
カウンタ1025は、入力クロックの1/8分周された
クロックによって動作し、そのアップカウンタ1025
の出力に従ってレジスタ1026にはシリアル/パラレ
ル変換器1021の出力データが格納される。レジスタ
1026に格納されたデータは、下位4ビットを0でマ
スクされ、更に2ビット右シフトしてダウンカウンタ1
027にセットされる。ダウンカウンタ1027の出力
に従ってレジスタ1022及び1023はパラレルデー
タを格納し、各8ビットを合計した16ビットの発信元
ポート番号を出力する。
FIG. 6 is a detailed block diagram of the port number extraction unit 102 in this embodiment. The data of the transmission packet is converted to 8 by the serial / parallel converter 1021.
It becomes parallel data of bits, and the first two octets are stored in the registers 1022 and 1023, respectively, and output as the source port number. When the transmission packet is input, it is detected by the HDLC header detector 1024, and the up counter 1025 is reset. The up counter 1025 operates by a clock obtained by dividing the input clock by 1/8,
The output data of the serial / parallel converter 1021 is stored in the register 1026 in accordance with the output of. The lower 4 bits of the data stored in the register 1026 are masked with 0, and further downshifted by 2 bits to the down counter 1
It is set to 027. In accordance with the output of the down counter 1027, the registers 1022 and 1023 store the parallel data, and output a 16-bit source port number that is a total of 8 bits.

【0024】図7は、本実施例におけるパケット終了検
出部105の詳細なブロック図である。同図において、
HDLCフラグパターン検出器1051及び1052に
よって、送信及び受信パケットのフラグパターン‘01
111110’が検出されると、検出結果‘1’がレジ
スタ1053及び1054にそれぞれ格納される。レジ
スタ1053及び1054に格納された検出結果が共に
‘1’である場合は、送信及び受信ともHDLCフレー
ムの終了フラグを検出してから、パケットが入力してい
ないことを表す。従って、パケットの入力が終了する
と、ANDゲート1055から‘1’がタイマ108へ
出力され、タイマ108をスタートさせる。
FIG. 7 is a detailed block diagram of the packet end detection unit 105 in this embodiment. In the figure,
The HDLC flag pattern detectors 1051 and 1052 allow the flag patterns of the transmission and reception packets to be “01”.
When 111110 'is detected, the detection result' 1 'is stored in the registers 1053 and 1054, respectively. When the detection results stored in the registers 1053 and 1054 are both “1”, it means that no packet is input after the end flag of the HDLC frame is detected for both transmission and reception. Therefore, when the input of the packet is completed, "1" is output from the AND gate 1055 to the timer 108 and the timer 108 is started.

【0025】図8は、本実施例におけるパケット開始検
出部106の詳細なブロック図である。同図において、
送信及び受信パケットのHDLCヘッダはHDLCヘッ
ダ検出器1061及び1062によって検出されると、
その検出結果‘1’がレジスタ1063及び1064に
それぞれ格納される。レジスタ1063および1064
に格納された検出結果のいずれかが‘1’であれば、送
信あるいは受信パケットが入力したことを表す。従っ
て、パケット入力が開始されると、ORゲート1065
から‘1’が出力され、上述したように、これによって
タイマ108が停止し、DCE109が公衆回線を接続
する。
FIG. 8 is a detailed block diagram of the packet start detector 106 in this embodiment. In the figure,
When the HDLC headers of the transmitted and received packets are detected by the HDLC header detectors 1061 and 1062,
The detection result “1” is stored in the registers 1063 and 1064. Registers 1063 and 1064
If any of the detection results stored in 1 is “1”, it indicates that a transmission or reception packet has been input. Therefore, when the packet input is started, the OR gate 1065
"1" is output from this, and as described above, this stops the timer 108 and the DCE 109 connects the public line.

【0026】図9は、本実施例におけるテーブル103
に格納されている発信元ポート番号とタイマ設定値との
対応の一例を示す模式図である。テーブル103にはポ
ート番号フィールドとタイマ設定値フィールドとが設け
られている。本実施例では、上位プロトコルがファイル
転送プロトコル(FTP)の場合はポート番号が‘1
0’に定められ、その場合のタイマ設定値は10秒に設
定される。また、遠隔端末プロトコル(TELNET)
の場合にはポート番号が‘23’に定められ、その場合
のタイマ設定値は600秒に設定される。
FIG. 9 is a table 103 in this embodiment.
FIG. 3 is a schematic diagram showing an example of correspondence between a source port number and a timer set value stored in FIG. The table 103 is provided with a port number field and a timer setting value field. In this embodiment, the port number is "1" when the upper protocol is the file transfer protocol (FTP).
It is set to 0'and the timer setting value in that case is set to 10 seconds. Also, the remote terminal protocol (TELNET)
In this case, the port number is set to '23', and the timer setting value in that case is set to 600 seconds.

【0027】FTPによる連続処理アプリケーションの
場合は、パケット終了後直ちに回線を切断して回線の無
駄な占有を防止し、また回線使用料金を節約する。他
方、TELNETによる会話型アプリケーションの場合
は、パケット終了が検出されても次のパケットが送信さ
れる可能性が大きいために、操作中に回線が切断されな
いようにタイマ設定値が長く設定される。従って、ポー
ト番号抽出部102によって取り出された送信パケット
の発信元ポート番号を用いて、テーブル103はそのア
プリケーションに適したタイマ設定値を選択する。
In the case of an FTP continuous processing application, the line is disconnected immediately after the end of the packet to prevent wasteful occupation of the line and save the line usage fee. On the other hand, in the case of a conversational application by TELNET, the next packet is likely to be transmitted even if the end of the packet is detected, so the timer setting value is set long so that the line is not disconnected during the operation. Therefore, the table 103 selects the timer setting value suitable for the application using the source port number of the transmission packet extracted by the port number extraction unit 102.

【0028】FTPによるアプリケーションの場合、タ
イマ108はパケット終了検出部105によってパケッ
ト終了が検出されてから10秒間計時動作を続ける。そ
して、10秒経過した時点で計時値とタイマ設定値とが
一致するために、EOR107から切断信号がDCE1
09へ出力され、回線が切断される。
In the case of the FTP application, the timer 108 continues the time counting operation for 10 seconds after the packet end detection unit 105 detects the packet end. Then, at the time when 10 seconds have passed, the disconnection signal from the EOR 107 is DCE1 because the measured value and the timer setting value match.
09, and the line is disconnected.

【0029】他方、TELNETによるアプリケーショ
ンの場合、タイマ108はパケット終了が検出されてか
ら600秒間計時動作を続ける。そして、600秒経過
した時点で計時値とタイマ設定値とが一致し、DCE1
09へ切断信号が出力される。
On the other hand, in the case of the TELNET application, the timer 108 continues the time counting operation for 600 seconds after the end of the packet is detected. Then, at the time when 600 seconds have passed, the measured value and the timer set value match, and DCE1
A disconnection signal is output to 09.

【0030】[0030]

【発明の効果】以上詳細に説明したように、本発明によ
るパケット中継システムは、パケットの上位アプリケー
ションの種別によって回線保持時間を選択するために、
FTPのように連続処理アプリケーションでは、パケッ
ト終了後直ちに回線を切断することで回線の無駄な占有
を防止し、回線使用料金を節約できる。また、TELN
ETのような会話型アプリケーションでは、回線保持時
間を長く設定して操作中の回線切断を防止することがで
き、操作性が向上する。
As described in detail above, the packet relay system according to the present invention selects the line holding time according to the type of the upper application of the packet.
In a continuous processing application such as FTP, by disconnecting the line immediately after the end of the packet, it is possible to prevent unnecessary occupation of the line and save the line usage fee. Also, TELN
In an interactive application such as ET, the line holding time can be set to be long to prevent disconnection of the line during operation, thus improving operability.

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

【図1】本発明によるパケット中継システムの一実施例
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a packet relay system according to the present invention.

【図2】本実施例におけるルーティング処理部101の
詳細なブロック図である。
FIG. 2 is a detailed block diagram of a routing processing unit 101 in this embodiment.

【図3】(A)はLANインタフェース1010でのパ
ケットフォーマットを示す図、(B)は回線インタフェ
ース1011でのパケットフォーマットを示す図、
(C)は宛先アドレスに対応する出力ポートが定められ
たルーティングテーブルを示す模式図である。
3A is a diagram showing a packet format in a LAN interface 1010, FIG. 3B is a diagram showing a packet format in a line interface 1011, FIG.
(C) is a schematic diagram showing a routing table in which an output port corresponding to a destination address is defined.

【図4】ルーティング処理部101の制御を示すフロー
チャートである。
FIG. 4 is a flowchart showing control of a routing processing unit 101.

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

【図6】本実施例におけるポート番号抽出部102の詳
細なブロック図である。
FIG. 6 is a detailed block diagram of a port number extraction unit 102 in this embodiment.

【図7】本実施例におけるパケット終了検出部105の
詳細なブロック図である。
FIG. 7 is a detailed block diagram of a packet end detection unit 105 in this embodiment.

【図8】本実施例におけるパケット開始検出部106の
詳細なブロック図である。
FIG. 8 is a detailed block diagram of a packet start detection unit 106 in this embodiment.

【図9】本実施例におけるテーブル103に格納されて
いる発信元ポート番号とタイマ設定値との対応の一例を
示す模式図である。
FIG. 9 is a schematic diagram showing an example of correspondence between a source port number and a timer setting value stored in a table 103 in this embodiment.

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

101 ルーティング処理部 102 ポート番号抽出部 103 テーブル 104 レジスタ 105 パケット終了検出部 106 パケット開始検出部 107 排他的論理和回路 108 タイマ 109 データ回線終端装置 101 routing processing unit 102 port number extraction unit 103 table 104 register 105 packet end detection unit 106 packet start detection unit 107 exclusive OR circuit 108 timer 109 data line termination device

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 第1ネットワークと第2ネットワークと
の間でデータパケットを伝送するためのルーティング機
能を有するパケット中継システムにおいて、 前記パケット中継システムが終端するプロトコルより上
位のプロトコルの種類に対応した時間設定値を予め格納
しているメモリ手段と、 前記メモリ手段を参照して、第1ネットワークから第2
ネットワークへ伝送される送信パケットの上位プロトコ
ルに対応する時間設定値を前記時間設定値から選択する
選択手段と、 前記送信パケットの送信終了を検出する送信終了検出手
段と、 前記検出された送信終了によって起動し、前記選択手段
によって選択された時間設定値に到達した時に終了信号
を発生する計時手段と、 前記終了信号に従って前記第2ネットワークの回線を切
断する回線制御手段と、 からなることを特徴とするパケット中継システム。
1. A packet relay system having a routing function for transmitting a data packet between a first network and a second network, the time corresponding to a protocol type higher than a protocol terminated by the packet relay system. Memory means for storing set values in advance, and a second network from the first network by referring to the memory means.
The selecting means for selecting a time setting value corresponding to the upper protocol of the transmission packet transmitted to the network from the time setting value, the transmission end detecting means for detecting the transmission end of the transmission packet, and the detected transmission end And a line control unit for activating and terminating the line of the second network according to the end signal when the time setting value selected by the selecting unit is reached. Packet relay system.
【請求項2】 前記第1ネットワークと前記第2ネット
ワークとの間でデータパケットの伝送開始を検出する伝
送開始検出手段を更に有し、前記伝送開始を検出する
と、前記計時手段が計時動作を停止し、且つ前記回線制
御手段が第2ネットワークの回線を接続することを特徴
とする請求項1記載のパケット中継システム。
2. A transmission start detecting means for detecting the start of transmission of a data packet between the first network and the second network, wherein when the transmission start is detected, the time measuring means stops the time counting operation. The packet relay system according to claim 1, wherein the line control means connects a line of the second network.
【請求項3】 前記データパケットは、TCP/IP
(トランスミッション・コントロール・プロトコル/イ
ンターネット・プロトコル)仕様に基づくことを特徴と
する請求項1又は2記載のパケット中継システム。
3. The data packet is TCP / IP
The packet relay system according to claim 1 or 2, which is based on (Transmission Control Protocol / Internet Protocol) specifications.
【請求項4】 前記メモリ手段は、パケットの発信元ポ
ート番号を入力し、それに対応する時間設定値を出力
し、 前記時間設定手段は、 前記送信パケットの発信元ポート番号を検出するポート
番号検出手段と、 前記発信元ポート番号に従って前記メモリ手段から出力
された時間設定値を格納する設定値メモリ手段と、 からなる請求項3記載のパケット中継システム。
4. The memory means inputs a source port number of a packet and outputs a time setting value corresponding thereto, and the time setting means detects a source port number of the transmitted packet. 4. The packet relay system according to claim 3, further comprising: means for setting a time setting value output from the memory means according to the source port number.
【請求項5】 ローカルエリアネットワーク(LAN)
と公衆網との間でデータパケットを伝送するためのルー
ティングプロセッサ及びデータ回線終端装置からなるパ
ケット中継システムにおいて、 前記ルーティングプロセッサが終端するプロトコルより
上位のプロトコルの種類を指定することで、その種類に
対応した時間設定値を出力するメモリ手段と、 前記LANから前記公衆網へ伝送される送信パケットの
上位プロトコルの種類を検出するプロトコル検出手段
と、 前記送信パケットの送信終了を検出する送信終了検出手
段と、 前記検出された送信終了によって計時動作を開始し、前
記検出された上位プロトコルに対応した時間設定値と前
記計時値とが一致した時に、前記データ回線終端装置へ
公衆回線切断信号を出力する計時手段と、 からなることを特徴とするパケット中継システム。
5. A local area network (LAN)
In a packet relay system consisting of a routing processor and a data circuit terminating device for transmitting a data packet between a public network and a public network, by specifying the type of protocol higher than the protocol terminated by the routing processor, Memory means for outputting a corresponding time set value, protocol detection means for detecting the type of upper-layer protocol of a transmission packet transmitted from the LAN to the public network, and transmission end detection means for detecting the end of transmission of the transmission packet And, when the detected transmission end, starts a time counting operation, and outputs a public line disconnection signal to the data line termination device when the time set value corresponding to the detected upper protocol and the time measured value match. A packet relay system comprising: a clocking means.
【請求項6】 前記LANと前記公衆網との間でデータ
パケットの伝送開始を検出する伝送開始検出手段を更に
有し、前記検出された伝送開始によって、前記計時手段
の計時動作が停止し、且つ前記データ回線終端装置が前
記公衆網の回線を接続することを特徴とする請求項5記
載のパケット中継システム。
6. A transmission start detection means for detecting transmission start of a data packet between the LAN and the public network, wherein the detected transmission start stops the timing operation of the clock means. 6. The packet relay system according to claim 5, wherein the data line terminating device connects the line of the public network.
【請求項7】 前記データパケットは、TCP/IP
(トランスミッション・コントロール・プロトコル/イ
ンターネット・プロトコル)仕様に基づくことを特徴と
する請求項5又は6記載のパケット中継システム。
7. The data packet is TCP / IP
7. The packet relay system according to claim 5, which is based on (Transmission Control Protocol / Internet Protocol) specifications.
【請求項8】 前記メモリ手段は、パケットの発信元ポ
ート番号を入力し、それに対応する時間設定値を出力
し、 前記プロトコル検出手段は、前記送信パケットの発信元
ポート番号を検出するポート番号検出手段からなり、 前記計時手段は、 前記発信元ポート番号に従って前記メモリ手段から出力
された時間設定値を格納する設定値メモリ手段と、 所定クロックに従って計時値を出力するタイマと、 前記計時値と前記時間設定値とが一致した時に前記公衆
回線切断信号を出力し、前記タイマを初期化する比較回
路と、 からなることを特徴とする請求項7記載のパケット中継
システム。
8. The memory means inputs a packet source port number and outputs a time setting value corresponding to the packet source port number, and the protocol detecting means detects a source port number of the transmitted packet. The timer means includes a set value memory means for storing the time set value output from the memory means in accordance with the source port number, a timer for outputting a timer value in accordance with a predetermined clock, the timer value and the 8. The packet relay system according to claim 7, further comprising: a comparator circuit that outputs the public line disconnection signal and initializes the timer when the set time values match.
JP16058294A 1993-06-21 1994-06-20 Packet relay system Expired - Lifetime JP2561033B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16058294A JP2561033B2 (en) 1993-06-21 1994-06-20 Packet relay system

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP5-148997 1993-06-21
JP14899793 1993-06-21
JP16058294A JP2561033B2 (en) 1993-06-21 1994-06-20 Packet relay system

Publications (2)

Publication Number Publication Date
JPH0774784A JPH0774784A (en) 1995-03-17
JP2561033B2 true JP2561033B2 (en) 1996-12-04

Family

ID=26479023

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16058294A Expired - Lifetime JP2561033B2 (en) 1993-06-21 1994-06-20 Packet relay system

Country Status (1)

Country Link
JP (1) JP2561033B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6582372B2 (en) * 2014-08-26 2019-10-02 カシオ計算機株式会社 Electronic device and communication connection control method

Also Published As

Publication number Publication date
JPH0774784A (en) 1995-03-17

Similar Documents

Publication Publication Date Title
US5495480A (en) Packet transmission system having timer for circuit disconnection
JP2683499B2 (en) Communication of local area network-based applications over a switched network
US6421352B1 (en) Data processing apparatus capable of independently interrupting transmission data
JPH0778112A (en) Network system and communication method for network
JPH08204746A (en) Inter-lan connection router
JP2001119434A (en) Network system
JP2561033B2 (en) Packet relay system
CN106453022A (en) Network device and data packet sending method
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces

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