Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3056348B2 - Bridge device and storage means management method - Google Patents
[go: Go Back, main page]

JP3056348B2 - Bridge device and storage means management method - Google Patents

Bridge device and storage means management method

Info

Publication number
JP3056348B2
JP3056348B2 JP5059010A JP5901093A JP3056348B2 JP 3056348 B2 JP3056348 B2 JP 3056348B2 JP 5059010 A JP5059010 A JP 5059010A JP 5901093 A JP5901093 A JP 5901093A JP 3056348 B2 JP3056348 B2 JP 3056348B2
Authority
JP
Japan
Prior art keywords
information
area
entry
storage
management table
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
JP5059010A
Other languages
Japanese (ja)
Other versions
JPH06276194A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5059010A priority Critical patent/JP3056348B2/en
Publication of JPH06276194A publication Critical patent/JPH06276194A/en
Application granted granted Critical
Publication of JP3056348B2 publication Critical patent/JP3056348B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数のLAN(Local
Area Network)間のデータ転送を実行するLAN間ブリ
ッジ装置に係り、特に、受信データや送信データを一時
的に格納するバッファメモリの管理方法に関わる。
BACKGROUND OF THE INVENTION 1. Field of the Invention
The present invention relates to an inter-LAN bridge device that executes data transfer between Area Networks, and particularly to a method of managing a buffer memory that temporarily stores received data and transmitted data.

【0002】[0002]

【従来の技術】従来の技術としては、例えば、特開平4
−150536号公報に記載されているものがある。該
従来技術は、ネットワーク間のデータ転送を実行するブ
リッジ装置において、受信データを格納するバッファメ
モリと、該バッファメモリの読み出しアドレスを発生す
る読み出し手段と、受信データの廃棄時に、前記読み出
し手段がつぎの受信データを示すようにアドレス値を変
換するアドレス変換手段を具備して、読み出し時のアク
セスを連続するようにしている。ここで、受信データの
廃棄とは、該受信データの転送先が転送元のネットワー
クである場合にはデータ転送が不要であるので当該デー
タを廃棄する、いわゆるフィルタリング処理をいう。
2. Description of the Related Art As a conventional technique, for example, Japanese Unexamined Patent Publication No.
There is one described in -150536. In the prior art, in a bridge device for executing data transfer between networks, a buffer memory for storing received data, a read unit for generating a read address of the buffer memory, and a read unit for discarding the received data. And the address conversion means for converting the address value so as to indicate the received data, so that the access at the time of reading is continuous. Here, discarding the received data means a so-called filtering process in which when the transfer destination of the received data is a transfer source network, the data transfer is unnecessary because the data transfer is unnecessary.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のLAN
間ブリッジ装置では、フィルタリング処理により生じた
空きバッファがある場合に、読み出し時のアクセスは連
続するように構成されているが、受信データを格納する
際のアドレスは、バッファアドレスの下位ビットにより
順次示されている。このため、一時的に出力側のスルー
プットが低下した場合などに、受信データを格納する際
のアドレスは空きバッファがあるにもかかわらず、読み
出しアドレスと一致する場合には受信バッファがビジー
であると判断してしまう。すなわち、フィルタリング処
理によりバッファメモリは空きバッファと受信データ
(まだ読みだされていないデータ)とが混在する不連続
状態になる。受信バッファビジーが発生すると、フィル
タリングする前に、受信フレームを廃棄してしまうとい
う欠点がある。
The above-mentioned conventional LAN
In the inter-bridge device, when there is an empty buffer generated by the filtering process, the access at the time of reading is configured to be continuous, but the address when storing the received data is sequentially indicated by the lower bits of the buffer address. Have been. Therefore, for example, when the throughput on the output side temporarily drops, the reception buffer is busy if the address for storing the received data matches the read address even though there is an empty buffer. I will judge. In other words, the filtering process causes the buffer memory to be in a discontinuous state in which a free buffer and received data (data that has not been read yet) are mixed. When the receiving buffer is busy, there is a disadvantage that the received frame is discarded before filtering.

【0004】本発明の目的は、上記課題を解決すべく、
受信バッファビジーによる受信フレーム廃棄を少なくす
るLAN間ブリッジ装置を提供することである。
[0004] An object of the present invention is to solve the above problems.
An object of the present invention is to provide a LAN-to-LAN bridge device that reduces reception frame discard due to reception buffer busy.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、本願発明は、複数のネットワーク間で情報を転送す
るブリッジ装置において、情報を格納する記憶手段と、
前記複数のネットワークの各々に対応して設けられ、
記複数のネットワークの各々からの情報を受信して前記
記憶手段に格納し、前記記憶手段に格納された情報を読
みだして転送先のネットワークに送信するコントローラ
と、前記記憶手段に格納された情報が、同一ネットワー
ク内における転送先から転送元への転送情報である場合
に該情報を廃棄するフィルタリング手段と、前記記憶手
段を、予め定めた領域ごとに、前記コントローラにより
受信された情報を格納させ、当該領域を管理する管理部
とを有し、前記管理部は、前記コントローラによる情報
の受信時に、前記情報が格納されていない前記領域に、
当該受信された情報を格納させ、当該格納された領域の
情報を前記フィルタリングにより処理させ、当該フィル
タリングにより廃棄されなかった情報を前記コントロー
ラにより送信させ、当該コントローラにより送信された
情報が格納されていた領域および前記フィルタリングに
より廃棄された情報が格納されていた領域を前記情報が
格納されていない領域とする
In order to achieve the above object, according to the present invention, there is provided a bridge device for transferring information between a plurality of networks.
It provided corresponding to each of the plurality of networks, before
A controller for receiving information from each of the plurality of networks and storing the information in the storage unit, reading the information stored in the storage unit, and transmitting the information to a destination network; and information stored in the storage unit. Is filtering means for discarding transfer information from a transfer destination to a transfer source in the same network, and the storage means, for each predetermined area, by the controller
And a management unit for storing the received information and managing the area , wherein the management unit is configured to store the information by the controller.
At the time of receiving, in the area where the information is not stored,
The received information is stored, and the stored area is
The information is processed by the filtering, and the
Information that was not discarded due to
And sent by the controller
The area where the information was stored and the filtering
The area where the more discarded information was stored is
This area is not stored .

【0006】また、複数のネットワーク間で情報を転送
するブリッジ装置において、情報を格納する記憶手段
と、前記ネットワークに対応して設けられ、ネットワー
クからの情報を受信して前記記憶手段に格納し、前記記
憶手段に格納された情報を読みだして転送先のネットワ
ークに送信するコントローラと、前記記憶手段に格納さ
れた情報が、同一ネットワーク内における転送先から転
送元への転送情報である場合に該情報を廃棄するフィル
タリング手段とを有し、前記コントローラが受信した情
報を前記記憶手段に格納するための前記記憶手段の格納
位置を示す受信管理手段と、前記コントローラが送信す
べき情報を前記記憶手段から読み出すための前記記憶手
段の読み出し位置を示す送信管理手段と、前記記憶手段
に情報が格納されていない空き領域の位置を示す空き領
域管理手段とを有し、前記コントローラは、前記受信管
理手段が示す格納位置に受信した情報を格納し、前記送
信管理手段が示す読み出し位置から情報を読み出し、前
記送信管理手段は、前記フィルタリング手段において廃
棄されなかった情報を送信すべき情報とし、前記受信管
理手段において示される該情報の格納位置を前記読み出
し位置として、前記コントローラにおける情報の読み出
しに従って順次示し、前記受信管理手段は、前記フィル
タリング手段において廃棄された情報を格納していた格
納位置と、前記空き領域管理手段において示される空き
領域の位置とを、前記コントローラが受信した情報を前
記記憶手段に格納するための前記格納位置として、前記
コントローラにおける受信した情報の格納に従って順次
示し、前記空き領域管理手段は、前記コントローラにお
いて情報が読みだされた後に、前記送信管理手段におい
て示される読み出し位置を、前記空き領域の位置とし
て、前記受信管理手段における空き領域の位置を格納位
置とすることに従って順次示すことができる。
Also, in a bridge device for transferring information between a plurality of networks, a storage means for storing information, provided corresponding to the network, receiving information from the network and storing the information in the storage means, A controller for reading information stored in the storage means and transmitting the information to a destination network; and a controller for reading information stored in the storage means when the information is transfer information from a destination to a source in the same network. Filtering means for discarding information, reception management means indicating a storage position of the storage means for storing the information received by the controller in the storage means, and storage means for storing information to be transmitted by the controller. Transmission management means for indicating a read position of the storage means for reading from the storage means, and information stored in the storage means The controller stores the received information in the storage position indicated by the reception management means, reads the information from the read position indicated by the transmission management means, The transmission management means, as the information to be transmitted, the information not discarded by the filtering means, and sequentially indicates the storage position of the information indicated by the reception management means as the readout position according to the information readout by the controller, The reception management unit stores, in the storage unit, the storage position where the information discarded by the filtering unit has been stored and the position of the free space indicated by the free space management unit, the information received by the controller in the storage unit. For the information received by the controller as the storage location for After the information has been read out by the controller, the read position indicated by the transmission management means is defined as the position of the free area, and the position of the free area in the reception management means is determined. Can be sequentially shown according to the storage position.

【0007】さらに、前記送信管理手段は、前記読み出
し位置としてのポインタを格納することができるエント
リ領域を複数備える送信管理テーブルと、該送信管理テ
ーブルの書き込み可能なエントリ領域を示し、送信すべ
き情報の格納に従って順次エントリ領域を移行していく
書き込みエントリと、該送信管理テーブルの読みだすべ
きエントリ領域を示し、前記コントローラにおける情報
の読み出しに従って順次エントリ領域を移行していく読
み出しエントリとを備え、前記受信管理手段は、前記格
納位置としてのポインタを格納することができるエント
リ領域を複数備える受信管理テーブルと、該受信管理テ
ーブルの書き込み可能なエントリ領域を示し、前記受信
情報の格納に従って順次エントリ領域を移行していく書
き込みエントリと、該受信管理テーブルの読みだすべき
エントリ領域を示し、前記フィルタリング手段における
情報の読み出しに従って順次エントリ領域を移行してい
く読み出しエントリとを備え、前記空き領域管理手段
は、前記空き領域の位置としてポインタを格納すること
ができるエントリ領域を複数備える空き領域管理テーブ
ルと、該空き領域管理テーブルの書き込み可能なエント
リ領域を示し、前記読み出し位置を空き領域の位置とす
ること従って順次エントリ領域を移行していく書き込み
エントリと、該空き領域管理テーブルの読みだすべきエ
ントリ領域を示し、前記空き領域を前記格納位置とする
ことに従って順次エントリ領域を移行していく読み出し
エントリとを備えることができる。
Further, the transmission management means indicates a transmission management table having a plurality of entry areas capable of storing pointers as the read positions, a writable entry area of the transmission management table, and information to be transmitted. And a read entry that indicates an entry area to be read out of the transmission management table according to the information read by the controller and sequentially shifts the entry area according to the reading of information by the controller. The reception management means indicates a reception management table including a plurality of entry areas capable of storing a pointer as the storage location, a writable entry area of the reception management table, and sequentially stores the entry areas according to the storage of the reception information. Migrating write entries and A read entry which indicates an entry area to be read out of the reception management table, and sequentially shifts the entry area in accordance with the reading of information by the filtering means, wherein the free area management means sets a pointer as the position of the free area. A free area management table having a plurality of entry areas that can be stored, and a writable entry area of the free area management table are shown. A write entry and a read entry that indicates an entry area to be read from the free area management table, and sequentially shifts the entry area according to the free area as the storage location, can be provided.

【0008】[0008]

【作用】コントローラは、各ネットワークに対応して設
けられ、ネットワークからの情報を受信して前記記憶手
段に格納し、前記記憶手段に格納された情報を読みだし
て転送先のネットワークに送信する。また、前記コント
ローラは、前記受信管理手段が示す格納位置に受信した
情報を格納し、前記送信管理手段が示す読み出し位置か
ら情報を読み出す。フィルタリング手段は、前記記憶手
段に格納された情報に含まれる転送先が転送元のネット
ワークである場合に該情報を廃棄する。
The controller is provided corresponding to each network, receives information from the network, stores the information in the storage means, reads out the information stored in the storage means, and transmits the information to the destination network. Further, the controller stores the received information in a storage position indicated by the reception management unit, and reads the information from a read position indicated by the transmission management unit. The filtering unit discards the information stored in the storage unit when the transfer destination included in the information is the transfer source network.

【0009】受信管理手段は、前記コントローラが受信
した情報を前記記憶手段に格納するための前記記憶手段
の格納位置を示す。また、送信管理手段は、前記コント
ローラが送信すべき情報を前記記憶手段から読み出すた
めの前記記憶手段の読み出し位置を示す。さらに、空き
領域管理手段は、前記記憶手段に情報が格納されていな
い空き領域の位置を示す。空き領域管理手段は、送信後
の空き領域となった領域を示すことにより、空き領域が
生じて不連続となった記憶手段を、連続的にする。
The reception management means indicates a storage position of the storage means for storing the information received by the controller in the storage means. The transmission management means indicates a read position of the storage means for reading out information to be transmitted by the controller from the storage means. Further, the free area management means indicates a position of a free area where no information is stored in the storage means. The free area management means indicates the area that has become a free area after transmission, thereby making the storage means that has become discontinuous due to a free area continuous.

【0010】この場合、前記送信管理手段は、前記フィ
ルタリング手段において廃棄されなかった情報を送信す
べき情報とし、前記受信管理手段において示される該情
報の格納位置を前記読み出し位置として、前記コントロ
ーラにおける情報の読み出しに従って順次示し、前記受
信管理手段は、前記フィルタリング手段において廃棄さ
れた情報を格納していた格納位置と、前記空き領域管理
手段において示される空き領域の位置とを、前記コント
ローラが受信した情報を前記記憶手段に格納するための
前記格納位置として、前記コントローラにおける受信し
た情報の格納に従って順次示し、前記空き領域管理手段
は、前記コントローラにおいて情報が読みだされた後
に、前記送信管理手段において示される読み出し位置
を、前記空き領域の位置として、前記受信管理手段にお
ける空き領域の位置を格納位置とすることに従って順次
示す。これにより、記憶手段の格納位置の管理を次々と
移行していき受信管理手段においては、常に連続した格
納位置を示すことができる。
In this case, the transmission management means sets information not discarded by the filtering means as information to be transmitted, a storage position of the information indicated by the reception management means as the readout position, and an information stored in the controller. The reception management means indicates the storage position where the information discarded by the filtering means is stored, and the position of the free space indicated by the free space management means, according to the information received by the controller. As the storage location for storing in the storage means in accordance with the storage of the received information in the controller, and the free space management means indicates in the transmission management means after the information is read out in the controller. The read position to be read As sequentially shown according to a storage position to a position of free space in the reception management means. Thereby, the management of the storage position of the storage means is shifted one after another, and the reception management means can always indicate the continuous storage position.

【0011】以上のように処理することにより、フィル
タリング手段における受信情報の廃棄による受信バッフ
ァの不連続状態が生じなくなり、受信バッファビジーに
よる受信フレーム廃棄をより少なくすることができる。
By performing the above processing, the discontinuity of the reception buffer due to the discard of the received information in the filtering means does not occur, and the reception frame discard due to the reception buffer busy can be reduced.

【0012】[0012]

【実施例】以下、本発明の実施例を図面を用いて説明す
る。図1は、本実施例のLAN間ブリッジ装置の構成図
を示す。図2は、本実施例のLAN間ブリッジ装置の受
信管理テーブルと送信管理テーブルとの構成を示す図で
ある。図3は、ふたつのLAN系を接続するLAN間ブ
リッジ装置の構成図を示す。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a configuration diagram of a LAN-to-LAN bridge device of the present embodiment. FIG. 2 is a diagram illustrating a configuration of the reception management table and the transmission management table of the inter-LAN bridge device of the present embodiment. FIG. 3 shows a configuration diagram of an inter-LAN bridge device that connects two LAN systems.

【0013】図1において、CPU11は、LAN間ブ
リッジ装置の制御部であり、LAN間を接続して各LA
Nからの情報を送信先のLANにたいして転送するため
の制御を行う。CPU11は、内部バス19によってフ
ィルタリングデータベース(FDB)12、プログラム
メモリ13、管理部の管理テーブル14−1〜14−
n、バッファメモリ15およびLANコントローラ17
−1〜17−nに接続されている。上記CPU11は、
内部バス19を介し、バス・アビータ16の調停のもと
に自由にアクセスすることができる。バス・アビータ1
6は、各LANコントローラおよびCPU11から内部
バス19へのアクセス要求を受けて調停し、アクセス可
能なものに対してアクセス権を与える。LANコントロ
ーラ17−1〜17−nは、バス・アビータ16の調停
のもとにプログラムメモリ13、管理テーブル14−1
〜14−nおよびバッファメモリ15に自由にアクセス
することができる。LANコントローラ17−1〜17
−nは、それぞれLAN1系18−1〜LAN N系1
8−nに接続されている。フィルタリングデータベース
12は、LAN1系18−1〜LAN N系18−nに
それぞれ接続されている情報処理装置のアドレスをアド
レス一覧表として保持している。CPU11は、フィル
タリングデータベース12のアドレス一覧表を参照する
ことによりフィルタリング処理を行う。また、CPU1
1は、受信バッファに格納されているデータの送信先ア
ドレスを前記アドレス一覧表から検索し、それが送信元
のLANに接続されているアドレスの場合にはそのデー
タを廃棄する。また、送信元以外のLANに接続されて
いる場合は、そのデータを転送先のLANに転送する。
LANコントローラ17−1〜17−nは、データを受
信し、受信したデータを後述する受信管理テーブルのポ
インタが示すバッファメモリの領域に格納し、送信時
に、送信管理テーブルのポインタが示すバッファメモリ
の領域からデータを読みだして送信先のLANに送出す
る。プログラムメモリ13には、CPU11において処
理されるプログラムを格納している。バッファメモリ1
5は、送信データおよび受信データを格納する。管理テ
ーブル14−1〜14−nは、LAN系に対応して設け
られ、受信データを格納しているバッファメモリ15の
位置を管理する、受信管理手段の受信管理テーブルと、
送信データを格納しているバッファメモリ15の位置を
管理する、送信管理手段の送信管理テーブルと、バッフ
ァメモリ15の空き領域を管理する、空き領域管理手段
の空きバッファ管理テーブルとを備える。
In FIG. 1, a CPU 11 is a control unit of an inter-LAN bridge device.
Control is performed to transfer information from N to the destination LAN. The CPU 11 controls the filtering database (FDB) 12, the program memory 13, and the management tables 14-1 to 14- of the management unit by the internal bus 19.
n, buffer memory 15 and LAN controller 17
-1 to 17-n. The CPU 11
Through the internal bus 19, it can be freely accessed under the arbitration of the bus arbiter 16. Bus Abita 1
6 arbitrates upon receiving an access request to the internal bus 19 from each LAN controller and the CPU 11, and gives an access right to accessible ones. The LAN controllers 17-1 to 17-n communicate with the program memory 13 and the management table 14-1 under the arbitration of the bus arbiter 16.
14-n and the buffer memory 15 can be freely accessed. LAN controllers 17-1 to 17
-N are LAN1 system 18-1 to LAN N system1
8-n. The filtering database 12 holds addresses of information processing apparatuses connected to the LAN1 system 18-1 to the LANN system 18-n as an address list. The CPU 11 performs a filtering process by referring to an address list in the filtering database 12. CPU1
1 retrieves the destination address of the data stored in the reception buffer from the address list, and discards the data if it is an address connected to the transmission source LAN. If the data is connected to a LAN other than the transmission source, the data is transferred to the destination LAN.
The LAN controllers 17-1 to 17-n receive the data, store the received data in an area of the buffer memory indicated by the pointer of the reception management table described later, and, when transmitting, store the data in the buffer memory indicated by the pointer of the transmission management table. Data is read from the area and sent to the destination LAN. The program memory 13 stores programs processed by the CPU 11. Buffer memory 1
5 stores transmission data and reception data. The management tables 14-1 to 14-n are provided corresponding to the LAN system and manage the position of the buffer memory 15 storing the received data, the reception management table of the reception management means;
It has a transmission management table of the transmission management means for managing the position of the buffer memory 15 storing the transmission data, and a free buffer management table of the free area management means for managing the free area of the buffer memory 15.

【0014】図2において、受信管理テーブルと送信管
理テーブルと空きバッファ管理テーブルとの構造を示
す。受信管理テーブルと送信管理テーブルと空きバッフ
ァ管理テーブルとの構造は同一であるため、管理テーブ
ルとして同一の図面で説明する。本実施例では、管理テ
ーブルは、リングバッファで構成されている。管理テー
ブル21は、バッファメモリ24のデータの格納位置を
示すポインタと、バッファメモリ24の格納領域の大き
さを示すバッファ長と、データの格納の有/無やLAN
コントローラにおいて処理された送受信時のエラー情報
などを格納するステータスとを管理情報として複数備
え、リングバッファ構造となっている。管理テーブル
は、1〜Mのエントリ番号が付されているエントリ領域
を備えている。それぞれのデータに関する管理情報とし
て、1〜Mのエントリ番号の領域に、各データごとにの
ポインタ、バッファ長およびステータスを格納する。管
理テーブル書き込みエントリ22は、データをバッファ
メモリに格納する際に、つぎに書き込み可能なエントリ
番号を示し、管理テーブル読みだしエントリ23は、よ
り先に書き込まれたエントリ番号、すなわち、より先に
読みだすべきエントリ番号を示している。管理テーブル
書き込みエントリ22および管理テーブル読みだしエン
トリ23は、受信管理テーブルと送信管理テーブルと空
きバッファ管理テーブルとに対応して設けられ、プログ
ラムメモリ13に備えてもよく、CPU11とLANコ
ントローラ17とにより読み書き時に参照され、参照時
にエントリ番号が順次更新される。管理テーブル書き込
みエントリ22および管理テーブル読みだしエントリ2
3は、カウンタなどで構成してもよい。また、バッファ
メモリにデータを格納するための領域があらかじめ領域
別けされていて、受信管理テーブルと空きバッファ管理
テーブルとにおいて、各領域の開始位置がポインタによ
り示されている。すなわち、受信管理テーブルと空きバ
ッファ管理テーブルとの各エントリ領域のポインタはあ
らかじめ設定されている。例えば、各管理テーブルのエ
ントリ領域の数を64にし、各エントリ領域のポインタ
にバッファのアドレスをそれぞれ設定しておく。もしく
は、空きバッファ管理テーブルのエントリ数は、受信管
理テーブルのエントリ数よりも少なくしておいてもよ
い。管理テーブル書き込みエントリ22および管理テー
ブル読みだしエントリ23は、1から順次エントリ番号
を示し、それぞれのエントリ数までカウントアップする
とリセットし、さらに1から順次エントリ番号を示すよ
うにしてリング上に構成されている。
FIG. 2 shows the structures of a reception management table, a transmission management table, and a free buffer management table. Since the structures of the reception management table, the transmission management table, and the empty buffer management table are the same, they will be described with reference to the same drawing as the management table. In the present embodiment, the management table is configured by a ring buffer. The management table 21 includes a pointer indicating the storage position of data in the buffer memory 24, a buffer length indicating the size of the storage area of the buffer memory 24, the presence / absence of data storage, and the LAN.
A plurality of statuses for storing error information during transmission / reception processed by the controller are provided as management information, and a ring buffer structure is provided. The management table includes entry areas to which entry numbers 1 to M are assigned. As management information relating to each data, a pointer, a buffer length, and a status for each data are stored in areas of entry numbers 1 to M. The management table write entry 22 indicates the next writable entry number when storing data in the buffer memory, and the management table read entry 23 indicates the entry number written earlier, that is, Indicates the entry number to be deleted. The management table write entry 22 and the management table read entry 23 are provided corresponding to the reception management table, the transmission management table, and the empty buffer management table, and may be provided in the program memory 13. It is referenced at the time of reading and writing, and the entry number is sequentially updated at the time of reference. Management table write entry 22 and management table read entry 2
3 may be constituted by a counter or the like. In addition, areas for storing data in the buffer memory are divided into areas in advance, and the start position of each area is indicated by a pointer in the reception management table and the empty buffer management table. That is, the pointers of the respective entry areas of the reception management table and the empty buffer management table are set in advance. For example, the number of entry areas in each management table is set to 64, and the address of the buffer is set in each entry area pointer. Alternatively, the number of entries in the free buffer management table may be smaller than the number of entries in the reception management table. The management table write entry 22 and the management table read entry 23 indicate the entry number sequentially from 1, reset when counting up to the respective entry number, and are further configured on the ring so as to indicate the entry number sequentially from 1. I have.

【0015】次に、このように構成されるLAN間ブリ
ッジの動作について説明する。動作の説明のために、図
3を参照し、LAN1系とLAN2系とのふたつのLA
Nの接続を行う場合を例にする。図3は、本実施例のふ
たつのLAN間ブリッジ装置の構成図であり、図4〜図
9は、本実施例のLAN間ブリッジの動作を示す説明図
である。図3に示す構成は、図1に示す構成と同じであ
り、LAN1系とLAN2系とを接続し、LAN1系と
LAN2系との管理テーブルを備える。
Next, the operation of the LAN bridge thus configured will be described. For the explanation of the operation, referring to FIG. 3, two LAs of the LAN1 system and the LAN2 system will be described.
The case where N connections are made is taken as an example. FIG. 3 is a configuration diagram of two LAN bridge devices of the present embodiment, and FIGS. 4 to 9 are explanatory diagrams illustrating the operation of the LAN bridge of the present embodiment. The configuration shown in FIG. 3 is the same as the configuration shown in FIG. 1, and connects the LAN1 system and the LAN2 system, and has a management table for the LAN1 system and the LAN2 system.

【0016】図3において、LAN1系18−1に接続
されるLANコントローラ17−1は、データを受信し
たとき、受信管理テーブル1 14−1aの管理情報を
もとにバッファメモリ15にデータを格納し、データの
受信があったことをCPU11に知らせる。CPU11
は、受信管理テーブル1 14−1aの管理情報をもと
にバッファメモリ15に格納された受信データから送信
先アドレスを検出し、送信先アドレスに基づいてフィル
タリングデータベース12を検索する。CPU11は、
送信先がLAN1系に接続されている場合には受信デー
タを廃棄し、LAN2系に接続されている場合には受信
データの格納されているバッファの管理テーブルの内容
を送信管理テーブル2 14−2bに移し、LANコン
トローラ17−2に知らせる。LANコントローラ17
−2は、送信管理テーブル2 14−2bに格納されて
いる管理情報をもとにデータを送信する。
In FIG. 3, when data is received, the LAN controller 17-1 connected to the LAN1 system 18-1 stores the data in the buffer memory 15 based on the management information in the reception management table 114-1a. Then, the CPU 11 is notified that the data has been received. CPU11
Detects the transmission destination address from the reception data stored in the buffer memory 15 based on the management information of the reception management table 114-1a, and searches the filtering database 12 based on the transmission destination address. The CPU 11
If the transmission destination is connected to the LAN 1 system, the received data is discarded. If the transmission destination is connected to the LAN 2 system, the contents of the management table of the buffer storing the received data are transmitted to the transmission management table 214-2b. And inform the LAN controller 17-2. LAN controller 17
-2 transmits data based on the management information stored in the transmission management table 214-2b.

【0017】次に、図4〜9によって本実施例の動作を
詳細に説明する。
Next, the operation of this embodiment will be described in detail with reference to FIGS.

【0018】(1)初期状態 図4において、LAN間ブリッジ装置が動作を始める前
の各管理テーブルの状態を示す。初期状態において、バ
ッファメモリ15には、データは格納されていない。矢
印56は、受信管理テーブル1 14−1aのエントリ
番号1のテーブルのポインタがバッファメモリ15aの
領域のアドレスを示していることを表している。送信管
理テーブル2 14−2bのすべてのエントリ番号のテ
ーブルのポインタは、バッファメモリ15のいかなる領
域も示していない。受信管理テーブル1 14−1aに
おいて、これから受信されるデータをバッファメモリ1
5に格納するために、すべてのエントリ番号のテーブル
のポインタは、バッファメモリ15のある領域のアドレ
スを示している。空きバッファ管理テーブル1 14−
1cのすべてのエントリ番号のテーブルのポインタは、
バッファメモリ15のある領域のアドレスを示してい
る。また、各管理テーブルには、各バッファの大きさを
示すバッファ長が設定されている。各管理テーブルの読
み出しエントリおよび書き込みエントリのエントリ番号
は、初期値として1が設定されている。
(1) Initial State FIG. 4 shows a state of each management table before the operation of the inter-LAN bridge device starts. In the initial state, no data is stored in the buffer memory 15. The arrow 56 indicates that the pointer of the table of the entry number 1 of the reception management table 114-1a indicates the address of the area of the buffer memory 15a. The pointer of the table of all entry numbers of the transmission management table 214-2b does not indicate any area of the buffer memory 15. In the reception management table 114-1a, data to be received is stored in the buffer memory 1
5, the pointer of the table of all entry numbers indicates the address of a certain area of the buffer memory 15. Empty buffer management table 1 14-
The pointer of the table of all entry numbers of 1c is
The address of a certain area of the buffer memory 15 is shown. In each management table, a buffer length indicating the size of each buffer is set. The entry number of the read entry and the write entry of each management table is set to 1 as an initial value.

【0019】(2)受信動作 図5に、LAN1系において、データの受信動作が行わ
れた場合を示す。図5において、すでに4つのデータが
バッファメモリ15a、15b、15cおよび15dの
領域に格納されている場合を示す。図3において、LA
Nコントローラ17−1は、LAN1系の受信管理テー
ブル1 14−1の書き込みエントリ53を参照し、書
き込みエントリ番号を読み出し、それとともに書き込み
エントリ53のエントリ番号をひとつ進める。また、こ
のとき、書き込みエントリ番号が読み出しエントリ番号
と一致したときには、受信バッファが全て使用状態にあ
るので受信できないと判定するできる。つぎに、LAN
コントローラ17−1は、受信管理テーブル1 14−
1aのエントリ番号1のテーブルのポインタを参照し、
受信データを格納するためのバッファメモリ15aの領
域のアドレスを検出する。LANコントローラ17−1
は、ポインタが示す領域に受信したデータをバッファメ
モリ15aに格納する。格納時に、管理情報のステータ
スをデータ有りに設定する。また、LANコントローラ
17−1は、管理情報のバッファ長と受信データ長とを
比較し、受信データが大きい場合にはエラーが発生した
として、エラー情報があることをステータスにより示
す。エラーが発生した場合には、管理テーブルはエラー
が発生したデータを廃棄することができる。データを受
信するたびに同様の操作を続ける。このように受信動作
を行うことで、例えば、図5に示すように、バッファメ
モリ15a、15b、15cおよび15dの領域に4つ
のデータが格納される。
(2) Receiving Operation FIG. 5 shows a case where a data receiving operation is performed in the LAN 1 system. FIG. 5 shows a case where four data have already been stored in the areas of the buffer memories 15a, 15b, 15c and 15d. In FIG. 3, LA
The N controller 17-1 refers to the write entry 53 of the reception management table 114-1 of the LAN1 system, reads the write entry number, and advances the entry number of the write entry 53 by one. At this time, when the write entry number matches the read entry number, it can be determined that the reception cannot be performed because all the reception buffers are in use. Next, LAN
The controller 17-1 receives the reception management table 114-
1a, referring to the pointer of the table of entry number 1;
An address of an area of the buffer memory 15a for storing received data is detected. LAN controller 17-1
Stores the data received in the area indicated by the pointer in the buffer memory 15a. At the time of storage, the status of the management information is set to “with data”. Further, the LAN controller 17-1 compares the buffer length of the management information with the received data length, and when the received data is large, determines that an error has occurred and indicates the presence of error information by the status. If an error occurs, the management table can discard the data in which the error has occurred. The same operation is repeated each time data is received. By performing the receiving operation in this manner, for example, as shown in FIG. 5, four data are stored in the areas of the buffer memories 15a, 15b, 15c, and 15d.

【0020】受信動作をまとめると以下のようになる。The receiving operation is summarized as follows.

【0021】(a)LANコントローラは、送信元のL
AN系の受信管理テーブル書き込みエントリの書き込み
エントリ番号を読みだし、書き込みエントリのエントリ
番号をひとつ進める。
(A) The LAN controller sends the L
The write entry number of the AN entry management table write entry is read, and the entry number of the write entry is incremented by one.

【0022】(b)読みだしたエントリ番号の受信管理
テーブルのポインタよりバッファメモリのアドレスを検
出する。
(B) The buffer memory address is detected from the pointer of the received entry number in the reception management table.

【0023】(c)受信したデータを書き込む。格納時
に、管理情報のステータスをデータ有りに設定する。こ
のようにして、受信データがバッファメモリに格納され
る。
(C) Write the received data. At the time of storage, the status of the management information is set to “with data”. Thus, the received data is stored in the buffer memory.

【0024】(3)フィルタリング処理 図6において、フィルタリング処理が行われ、データが
転送される例を示す。CPU11は、受信管理テーブル
1の読みだしエントリ54を参照し、読み出しエントリ
番号を読みだし、エントリ番号をひとつ進める。この読
みだしたエントリ番号は保持しておく。つぎに、CPU
11は、受信管理テーブル1 14−1aのエントリ番
号1のテーブルのポインタよりバッファメモリ15aの
領域のアドレスを検出する。CPU11は、該アドレス
から格納されているデータ内にある送信先アドレスを読
みだし、フィルタリングデータベースを検索し、フィル
タリング処理を行う。すなわち、送信先アドレスが送信
元のLANに接続されているアドレスの場合にはそのデ
ータを廃棄し、送信元以外のLANに接続されている場
合は、そのデータを転送先のLANに転送する。本実施
例においては、送信先がLAN2系であればデータを転
送する。
(3) Filtering Processing FIG. 6 shows an example in which filtering processing is performed and data is transferred. The CPU 11 refers to the read entry 54 of the reception management table 1, reads a read entry number, and advances the entry number by one. The read entry number is retained. Next, CPU
Numeral 11 detects the address of the area of the buffer memory 15a from the pointer of the table of the entry number 1 of the reception management table 114-1a. The CPU 11 reads a destination address in the stored data from the address, searches a filtering database, and performs a filtering process. That is, if the destination address is an address connected to the source LAN, the data is discarded, and if the destination address is connected to a LAN other than the source, the data is transferred to the destination LAN. In this embodiment, if the transmission destination is the LAN2 system, the data is transferred.

【0025】この場合、CPU11は、送信先のLAN
2系の送信管理テーブル2の書き込みエントリ51から
エントリ番号を参照し、書き込みエントリ番号を読み出
し、それとともに書き込みエントリ51のエントリ番号
をひとつ進める。つぎに、CPU11は、送信管理テー
ブル2 14−2bのエントリ番号1の管理テーブルに
前記受信管理テーブル1 14−1aの先に保持したエ
ントリ番号1のテーブルに格納されている管理情報を複
写する。次に、CPU11は、空きバッファ管理テーブ
ル1の読み出しエントリ57のエントリ番号を参照し、
読み出しエントリ番号を読み出し、それとともに読み出
しエントリ57のエントリ番号をひとつ進める。CPU
11は、空きバッファ管理テーブル1 14−1cのエ
ントリ番号1のテーブルの管理情報を、受信管理テーブ
ル1 14−1aの先に保持したエントリ番号1のテー
ブルに移す。以上の処理を行うことにより図6に示す状
態になる。
In this case, the CPU 11 transmits the data to the destination LAN.
The entry number is read from the write entry 51 of the transmission management table 2 of the second system, the write entry number is read, and the entry number of the write entry 51 is advanced by one. Next, the CPU 11 copies the management information stored in the entry number 1 table held before the reception management table 11 14-1a into the entry number 1 management table of the transmission management table 214-2b. Next, the CPU 11 refers to the entry number of the read entry 57 of the free buffer management table 1, and
The read entry number is read, and the entry number of the read entry 57 is advanced by one. CPU
Numeral 11 transfers the management information of the table of entry number 1 of the free buffer management table 114-1c to the table of entry number 1 held at the end of the reception management table 114-1a. The state shown in FIG. 6 is obtained by performing the above processing.

【0026】つぎに、図7を参照し、フィルタリング処
理が行われ、データが廃棄される例を説明する。CPU
11は、受信管理テーブル1 14−1aの読みだしエ
ントリ54よりエントリ番号を参照し、読み出しエント
リ番号を読み出し、それとともに読み出しエントリ54
のエントリ番号をひとつ進める。現在、読み出しエント
リ54のエントリ番号は2である。受信管理テーブル1
14−1aのエントリ番号2のテーブルのポインタよ
りバッファメモリ15bの領域のアドレスを検出する。
格納されているデータの送信先アドレスを読みだし、フ
ィルタリングデータベースを検索し、フィルタリング処
理を行う。データを廃棄する場合、前記受信管理テーブ
ル1 14−1aのエントリ番号2のテーブルに格納さ
れている管理情報のステータスをデータ無しとする。以
上の処理を行うことにより図7に示す状態になる。
Next, an example in which filtering processing is performed and data is discarded will be described with reference to FIG. CPU
Reference numeral 11 refers to the entry number from the read entry 54 of the reception management table 114-1-1a, reads the read entry number, and reads the read entry 54
Advance the entry number of. At present, the entry number of the read entry 54 is 2. Reception management table 1
The address of the area of the buffer memory 15b is detected from the pointer of the table of the entry number 2 of 14-1a.
The destination address of the stored data is read, a filtering database is searched, and a filtering process is performed. When discarding the data, the status of the management information stored in the table of the entry number 2 of the reception management table 114-1a is set to no data. The state shown in FIG. 7 is obtained by performing the above processing.

【0027】図8に、バッファメモリに格納されたデー
タのすべてにフィルタリング処理が行われた例を示す。
図8において、受信管理テーブル1読み出しエントリ5
4のエントリ番号は5を示しており、すでにエントリ番
号1〜4の受信管理テーブルのデータがフィルタリング
処理されていることを示している。受信管理テーブル1
4−1aから管理情報が複写され、バッファメモリ15
a、15cおよび15dのデータは、送信管理テーブル
14−2bにより管理されている。
FIG. 8 shows an example in which a filtering process has been performed on all the data stored in the buffer memory.
In FIG. 8, the reception management table 1 read entry 5
The entry number of 4 indicates 5, indicating that the data of the reception management tables of entry numbers 1 to 4 have already been subjected to the filtering process. Reception management table 1
The management information is copied from 4-1a and stored in the buffer memory 15a.
The data of a, 15c and 15d are managed by the transmission management table 14-2b.

【0028】フィルタリング処理をまとめると以下のよ
うになる。
The filtering processing is summarized as follows.

【0029】(a)CPU11は、受信管理テーブルの
読みだしエントリ番号を読みだし、受信管理テーブルの
読みだし、エントリ番号をひとつ進める。
(A) The CPU 11 reads the read entry number of the reception management table, reads the reception management table, and advances the entry number by one.

【0030】(b)読みだしたエントリ番号の受信管理
テーブルのポインタよりバッファメモリのアドレスを検
出する。
(B) The buffer memory address is detected from the pointer of the read entry number in the reception management table.

【0031】(c)バッファメモリの該当領域に格納さ
れている受信データから送信先アドレスを検出する。
(C) A destination address is detected from received data stored in a corresponding area of the buffer memory.

【0032】(d)送信先アドレスに基づいてフィルタ
リング処理を行う。
(D) Filtering is performed based on the destination address.

【0033】(e)転送する場合は以下のように処理す
る。
(E) When transferring, the following processing is performed.

【0034】CPU11は、送信管理テーブルの書き
込みエントリ番号を読みだし、書き込みエントリのエン
トリ番号をひとつ進める。
The CPU 11 reads the write entry number in the transmission management table, and advances the entry number of the write entry by one.

【0035】読みだしたエントリ番号の送信管理テー
ブルに、フィルタリング処理をしたエントリ番号の受信
管理テーブルの管理情報を複写する。
The management information in the reception management table of the entry number subjected to the filtering process is copied to the transmission management table of the read entry number.

【0036】空きバッファ管理テーブルの読み出しエ
ントリ番号を読みだし、それとともに読み出しエントリ
57のエントリ番号をひとつ進める。
The read entry number of the empty buffer management table is read, and the entry number of the read entry 57 is advanced by one.

【0037】読みだしたエントリ番号の空きバッファ
管理テーブルの管理情報をフィルタリング処理をしたエ
ントリ番号の受信管理テーブルの管理情報に移す。
The management information of the empty buffer management table of the read entry number is transferred to the management information of the reception management table of the entry number subjected to the filtering process.

【0038】(f)廃棄する場合には、受信管理テーブ
ルに格納されている管理情報のステータスをデータ無し
とする。
(F) When discarding, the status of the management information stored in the reception management table is set to no data.

【0039】(4)送信動作 図9において、LAN2系でデータの送信動作が行われ
た場合を示す。図9では、すでにバッファメモリ15a
に格納されたデータが送信されている状態を示してい
る。LANコントローラ17−2は、LAN系2の送信
管理テーブル2の読み出しエントリ52よりエントリ番
号を読み出し、読み出しエントリ52のエントリ番号を
ひとつ進める。また、LANコントローラ17−2は、
該読み出したエントリ番号を保持しておく。つぎに、L
ANコントローラ17−2は、送信管理テーブル14−
2bのエントリ番号1のテーブルのポインタよりバッフ
ァメモリ15aの領域のアドレスを検出する。LANコ
ントローラ17−2は、送信するデータをバッファメモ
リ15aから読み出して送信処理を行う。つぎに、LA
Nコントローラ17−2は、空きバッファ管理テーブル
1の書き込みエントリ55を参照し、書き込みエントリ
番号を読み出し、それとともに書き込みエントリ55の
エントリ番号をひとつ進める。LANコントローラ17
−2は、前記送信管理テーブル14−2bの先ほど保持
したエントリ番号1のテーブルに格納されている管理情
報を前記空きバッファ管理テーブル14−1cのエント
リ番号1のテーブルに移す。データを送信するたびに同
様の操作を続ける。
(4) Transmission Operation FIG. 9 shows a case where a data transmission operation is performed on the LAN2 system. In FIG. 9, the buffer memory 15a
Shows a state in which the data stored in is transmitted. The LAN controller 17-2 reads the entry number from the read entry 52 of the transmission management table 2 of the LAN system 2, and advances the entry number of the read entry 52 by one. In addition, the LAN controller 17-2
The read entry number is held. Next, L
The AN controller 17-2 transmits the transmission management table 14-
The address of the area of the buffer memory 15a is detected from the pointer of the table of the entry number 1 of 2b. The LAN controller 17-2 reads the data to be transmitted from the buffer memory 15a and performs a transmission process. Next, LA
The N controller 17-2 refers to the write entry 55 of the empty buffer management table 1, reads the write entry number, and advances the entry number of the write entry 55 by one. LAN controller 17
-2 transfers the management information stored in the table of entry number 1 held in the transmission management table 14-2b to the table of entry number 1 in the empty buffer management table 14-1c. The same operation is continued each time data is transmitted.

【0040】送信動作をまとめると以下のようになる。The transmission operation is summarized as follows.

【0041】(a)LANコントローラ17−2は、送
信管理テーブルの読み出しエントリ番号を読みだし、エ
ントリ番号をひとつ進める。
(A) The LAN controller 17-2 reads the read entry number of the transmission management table and advances the entry number by one.

【0042】(b)読みだしたエントリ番号の送信管理
テーブルのポインタよりバッファメモリのアドレスを検
出する。
(B) The buffer memory address is detected from the pointer of the read entry number in the transmission management table.

【0043】(c)バッファメモリから送信するデータ
を読み出し送信処理する。
(C) Data to be transmitted is read from the buffer memory and transmission processing is performed.

【0044】(d)空きバッファ管理テーブルの書き込
みエントリ番号を読み出し、書き込みエントリのエント
リ番号をひとつ進める。
(D) The write entry number of the empty buffer management table is read, and the entry number of the write entry is advanced by one.

【0045】(e)送信の終わった前記送信管理テーブ
ルの管理情報を空きバッファ管理テーブルの読み出した
エントリ番号のテーブルに移す。
(E) The management information of the transmission management table after the transmission is transferred to the table of the entry number read from the free buffer management table.

【0046】つぎに、前述のデータ転送処理におけるバ
ッファメモリの管理の様子を図10を参照して説明す
る。
Next, how the buffer memory is managed in the data transfer process will be described with reference to FIG.

【0047】図10は、本実施例においてバッファメモ
リの管理がどのように移動しているかを示す概念図であ
る。図10においては、前述したバッファメモリの管理
を、受信したデータの格納位置を管理する入力バッファ
管理テーブル(前述の受信管理テーブル)と、送信した
データの格納位置を管理する出力バッファ管理テーブル
(前述の送信管理テーブル)と、空きバッファ管理テー
ブルとに別けて、あらかじめ定めた格納領域を単位とし
て単位領域ごとに、それぞれ管理しているバッファメモ
リの領域の様子を示している。
FIG. 10 is a conceptual diagram showing how the buffer memory management is moved in this embodiment. In FIG. 10, the buffer memory management described above is based on the input buffer management table (reception management table) for managing the storage location of the received data and the output buffer management table (the aforementioned reception management table) for managing the storage location of the transmitted data. And a free buffer management table, and shows the state of the buffer memory area managed for each unit area using a predetermined storage area as a unit.

【0048】図10において、LAN1系18−1から
送信されたデータは、LAN間ブリッジ装置において受
信され、入力バッファ管理テーブルにより管理されてい
る書き込みアドレスの示す位置のバッファに格納される
(矢印114)。つぎに、フィルタリング処理により、
転送されるデータが格納されているバッファメモリの領
域は、出力バッファに管理が移動する(矢印115)。
バッファメモリに格納されているデータは、出力バッフ
ァ管理テーブルより順次読み出しアドレスが指示されて
読み出され、LAN2系18−2に送信される(矢印1
17)。フィルタリング処理は、受信動作に比較して高
速であるので、出力バッファ管理テーブルより管理され
ている読み出しアドレスは、入力バッファ管理テーブル
により管理されている書き込みアドレスにすぐに追い着
くことができる。送信が終了したバッファメモリは、そ
のまま空きバッファとなり空きバッファ管理テーブルに
管理が移される(矢印118)。また、フィルタリング
処理により、データが廃棄された場合に廃棄されたデー
タを格納していたバッファ領域は、そのまま入力バッフ
ァ管理テーブルにより管理される。入力バッファ管理テ
ーブルには、空きバッファ管理テーブルから、空きバッ
ファであるバッファメモリの一領域の管理が移動する
(矢印116)。
In FIG. 10, data transmitted from the LAN1 system 18-1 is received by the inter-LAN bridge device and stored in the buffer at the position indicated by the write address managed by the input buffer management table (arrow 114). ). Next, by the filtering process,
The management of the area of the buffer memory where the data to be transferred is stored moves to the output buffer (arrow 115).
The data stored in the buffer memory is sequentially read out with the read address specified from the output buffer management table, and is transmitted to the LAN2 system 18-2 (arrow 1).
17). Since the filtering process is faster than the receiving operation, the read address managed by the output buffer management table can quickly catch up with the write address managed by the input buffer management table. The buffer memory for which transmission has been completed becomes an empty buffer as it is, and the management is moved to the empty buffer management table (arrow 118). Further, when data is discarded by the filtering process, the buffer area storing the discarded data is managed as it is by the input buffer management table. In the input buffer management table, management of one area of the buffer memory that is a free buffer is moved from the free buffer management table (arrow 116).

【0049】本実施例によれば、入力バッファ管理テー
ブルに空きバッファとデータが混在する不連続状態が発
生しない。一般に、ネットワーク間で転送される情報
は、同一のネットワーク内で転送される情報よりも少な
いと考えることができる。このため、ブリッジ装置にお
いて廃棄する情報の方が転送する情報より多いので受信
バッファを連続的にすることにより、バッファビジーを
より少なくすることができる。また、フィルタリング処
理は、受信動作に比較して高速であり、フィルタリング
処理によりデータが格納されたバッファメモリの管理は
出力バッファ管理テーブルに移動するため、一時的に送
信側のスループットが低下した場合でも入力バッファビ
ジーは起こらず、受信フレーム廃棄は発生しない。
According to the present embodiment, a discontinuous state in which empty buffers and data coexist does not occur in the input buffer management table. In general, information transferred between networks can be considered less than information transferred within the same network. For this reason, since the information to be discarded in the bridge device is larger than the information to be transferred, by making the reception buffer continuous, the buffer busy can be further reduced. Also, the filtering process is faster than the receiving operation, and the management of the buffer memory in which the data is stored by the filtering process is moved to the output buffer management table, so that even if the transmission side throughput temporarily drops, No input buffer busy occurs and no received frame discard occurs.

【0050】以上説明したように、バッファメモリを受
信管理テーブルと送信管理テーブルと空きバッファ管理
テーブルとにより管理し、フィルタリング処理によりデ
ータの転送をするとき、受信データ管理テーブルから転
送するデータが格納されている領域の管理情報を送信デ
ータ管理テーブルに移し、かわりに空きバッファ管理テ
ーブルから空きバッファの管理情報を受信バッファ管理
テーブルに移す手段と、データを送信するとき、送信デ
ータ管理テーブルからデータの送信が終わったバッファ
メモリの管理情報を空きバッファ管理テーブルに移す手
段とを備えることにより、フィルタリング処理により受
信バッファの不連続状態が生じなくなり、受信バッファ
ビジーによる受信フレーム廃棄を防止することができ
る。
As described above, the buffer memory is managed by the reception management table, the transmission management table, and the empty buffer management table, and when transferring data by the filtering process, the data to be transferred from the reception data management table is stored. Means for transferring the management information of the allocated area to the transmission data management table, and instead transferring the management information of the free buffer from the free buffer management table to the reception buffer management table, and transmitting the data from the transmission data management table when transmitting data. Means for transferring the management information of the buffer memory for which the processing has been completed to the free buffer management table is provided, so that the discontinuity of the reception buffer does not occur due to the filtering process, and the discard of the reception frame due to the reception buffer busy can be prevented.

【0051】[0051]

【発明の効果】本発明によれば、LAN間ブリッジ装置
において、受信バッファビジーによる受信フレーム廃棄
を防止することができる。
According to the present invention, it is possible to prevent the reception frame from being discarded due to the reception buffer being busy in the LAN-to-LAN bridge device.

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

【図1】本願発明の実施例のLAN間ブリッジ装置を示
す図である。
FIG. 1 is a diagram showing a LAN-to-LAN bridge device according to an embodiment of the present invention.

【図2】本願発明の実施例の送信管理テーブルと受信管
理テーブルと空きバッファ管理テーブルの構造を示す図
である。
FIG. 2 is a diagram showing the structures of a transmission management table, a reception management table, and a free buffer management table according to the embodiment of the present invention.

【図3】本願発明の実施例の動作を説明するためのふた
つのLAN系を接続するLAN間ブリッジ装置を示す図
である。
FIG. 3 is a diagram showing an inter-LAN bridge device for connecting two LAN systems for explaining the operation of the embodiment of the present invention;

【図4】本願発明の実施例の動作を説明するための管理
テーブルとバッファメモリの初期状態を示す図である。
FIG. 4 is a diagram showing an initial state of a management table and a buffer memory for explaining the operation of the embodiment of the present invention.

【図5】本願発明の実施例の受信処理を説明するための
管理テーブルとバッファメモリの状態を示す図である。
FIG. 5 is a diagram showing a state of a management table and a buffer memory for explaining a receiving process according to the embodiment of the present invention.

【図6】本願発明の実施例のフィルタリング処理時の転
送処理を説明するための管理テーブルとバッファメモリ
の状態を示す図である。
FIG. 6 is a diagram showing a state of a management table and a buffer memory for explaining transfer processing at the time of filtering processing according to the embodiment of the present invention.

【図7】本願発明の実施例のフィルタリング処理時の廃
棄処理を説明するための管理テーブルとバッファメモリ
の状態を示す図である。
FIG. 7 is a diagram showing a state of a management table and a buffer memory for explaining a discarding process at the time of a filtering process according to the embodiment of the present invention.

【図8】本願発明の実施例のフィルタリング処理を説明
するための管理テーブルとバッファメモリの状態を示す
図である。
FIG. 8 is a diagram showing a state of a management table and a buffer memory for explaining a filtering process according to the embodiment of the present invention.

【図9】本願発明の実施例の送信処理を説明するための
管理テーブルとバッファメモリの状態を示す図である。
FIG. 9 is a diagram illustrating a state of a management table and a buffer memory for explaining transmission processing according to the embodiment of the present invention.

【図10】本願発明の実施例の処理の概念を示す図であ
る。
FIG. 10 is a diagram showing the concept of processing according to the embodiment of the present invention.

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

11…CPU、12…フィルタリングデータベース、1
3…プログラムメモリ、14−1〜n…受信・送信・空
きバッファ管理テーブル、15…バッファメモリ、16
…バス・アビータ、17−1〜n…LANコントロー
ラ、18−1〜n…LAN系、21…受信・送信管理テ
ーブル、22‥受信・送信管理テーブル書き込みエント
リ、23…受信・送信管理テーブル読み出しエントリ、
24…受信・送信管理テーブルにより管理されたバッフ
ァメモリ、31…空きバッファ管理テーブル、32…空
きバッファ管理テーブルエントリ、33…空きバッファ
管理テーブルにより管理されたバッファメモリ、51…
送信管理テーブル2書き込みエントリ、52…送信管理
テーブル2読み出しエントリ、53…受信管理テーブル
1書き込みエントリ、54…受信管理テーブル1読み出
しエントリ、55…空きバッファ管理テーブル1書き込
みエントリ、56…管理テーブル内のポインタがバッフ
ァメモリのアドレスを保持していることを示す矢印、5
7…空きバッファ管理テーブル1読み出しエントリ、1
11…入力バッファ、112…出力バッファ、113…
空きバッファ、114〜118…データの流れを示す矢
印。
11 CPU, 12 filtering database, 1
3: Program memory, 14-1 to n: Reception / transmission / empty buffer management table, 15: Buffer memory, 16
... Bus arbiter, 17-1 to n ... LAN controller, 18-1 to n ... LAN system, 21 ... Reception / transmission management table, 22 # Reception / transmission management table write entry, 23 ... Reception / transmission management table read entry ,
24: buffer memory managed by the reception / transmission management table, 31: free buffer management table, 32: free buffer management table entry, 33: buffer memory managed by the free buffer management table, 51:
Transmission management table 2 write entry, 52 ... transmission management table 2 read entry, 53 ... reception management table 1 write entry, 54 ... reception management table 1 read entry, 55 ... empty buffer management table 1 write entry, 56 ... management table Arrow indicating that the pointer holds the address of the buffer memory, 5
7... Free buffer management table 1 read entry, 1
11 input buffer 112 output buffer 113
Empty buffers, 114 to 118... Arrows indicating data flow.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 冨沢 宏 茨城県日立市大みか町五丁目2番1号 株式会社 日立製作所 大みか工場内 (56)参考文献 特開 昭60−91745(JP,A) 特開 昭63−5641(JP,A) 特開 平4−150536(JP,A) 特開 平4−290150(JP,A) 特開 平6−78000(JP,A) 特開 平6−132975(JP,A) 電子情報通信学会技術研究報告,Vo l.91 No.270,IN91−113,塚越 雅人 他「マルチメディア高速基幹LA NΣ−600におけるFDDI高速接続方 式」,pages.1−6 (58)調査した分野(Int.Cl.7,DB名) H04L 12/46 H04L 12/28 H04L 13/08 JICSTファイル(JOIS)──────────────────────────────────────────────────続 き Continuation of front page (72) Inventor Hiroshi Tomizawa 5-2-1 Omikacho, Hitachi City, Ibaraki Prefecture Hitachi, Ltd. Omika Plant (56) References JP-A-60-91745 (JP, A) JP-A-63-5564 (JP, A) JP-A-4-150536 (JP, A) JP-A-4-290150 (JP, A) JP-A-6-78000 (JP, A) JP-A-6-132975 ( JP, A) IEICE Technical Report, Vol. 91 No. 270, IN91-113, Masato Tsukagoshi, et al., "FDDI high-speed connection method in multimedia high-speed core LAN @ -600", pages. 1-6 (58) Fields surveyed (Int. Cl. 7 , DB name) H04L 12/46 H04L 12/28 H04L 13/08 JICST file (JOIS)

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のネットワーク間で情報を転送するブ
リッジ装置において、 情報を格納する記憶手段と、 前記複数のネットワークの各々に対応して設けられ、
記複数のネットワークの各々からの情報を受信して前記
記憶手段に格納し、前記記憶手段に格納された情報を読
み出して転送先のネットワークに送信するコントローラ
と、 前記記憶手段に格納された情報が、同一ネットワーク内
における転送先から転送元への転送情報である場合に、
当該情報を廃棄するフィルタリング手段と、 前記記憶手段を、予め定めた領域ごとに、前記コントロ
ーラにより受信された情報を格納させ、当該領域を管理
する管理部とを有し、 前記管理部は、前記コントローラによる情報の受信時
に、前記情報が格納されていない前記領域に、当該受信
された情報を格納させ、当該格納された領域の情報を前
記フィルタリングにより処理させ、当該フィルタリング
により廃棄されなかった情報を前記コントローラにより
送信させ、当該コントローラにより送信された情報が格
納されていた領域および前記フィルタリングにより廃棄
された情報が格納されていた領域を前記情報が格納され
ていない領域とすることを特徴とするブリッジ装置。
1. A bridge apparatus for transferring information between a plurality of networks, and storage means for storing information, provided corresponding to each of the plurality of networks, before
A controller that receives information from each of the plurality of networks, stores the information in the storage unit, reads out the information stored in the storage unit, and transmits the information to a destination network; , Transfer information from the transfer destination to the transfer source in the same network,
Filtering means for discarding the information, and the storage means for each of predetermined areas.
Store the information received by the
And a management unit for receiving information by the controller.
In the area where the information is not stored,
Information stored in the storage area, and
Processing by filtering
Information that was not discarded by the controller
And the information sent by the controller
Discarded by the stored area and the above filtering
The area where the information was stored is stored in the area where the information is stored.
A bridge device characterized in that it is an area that is not covered.
【請求項2】複数のネットワーク間で情報を転送するブ
リッジ装置において、 情報を格納する記憶手段と、 前記ネットワークに対応して設けられ、ネットワークか
らの情報を受信して前記記憶手段に格納し、前記記憶手
段に格納された情報を読みだして転送先のネットワーク
に送信するコントローラと、 前記記憶手段に格納された情報が、同一ネットワーク内
における転送先から転送元への転送情報である場合に該
情報を廃棄するフィルタリング手段とを有し、 前記コントローラが受信した情報を前記記憶手段に格納
するための前記記憶手段の格納位置を示す受信管理手段
と、 前記コントローラが送信すべき情報を前記記憶手段から
読み出すための前記記憶手段の読み出し位置を示す送信
管理手段と、 前記記憶手段に情報が格納されていない空き領域の位置
を示す空き領域管理手段とを有し、 前記コントローラは、前記受信管理手段が示す格納位置
に受信した情報を格納し、前記送信管理手段が示す読み
出し位置から情報を読み出し、 前記送信管理手段は、前記フィルタリング手段において
廃棄されなかった情報を送信すべき情報とし、前記受信
管理手段において示される該情報の格納位置を前記読み
出し位置として、前記コントローラにおける情報の読み
出しに従って順次示し、 前記受信管理手段は、前記フィルタリング手段において
廃棄された情報を格納していた格納位置と、前記空き領
域管理手段において示される空き領域の位置とを、前記
コントローラが受信した情報を前記記憶手段に格納する
ための前記格納位置として、前記コントローラにおける
受信した情報の格納に従って順次示し、 前記空き領域管理手段は、前記コントローラにおいて情
報が読みだされた後に、前記送信管理手段において示さ
れる読み出し位置を、前記空き領域の位置として、前記
受信管理手段における空き領域の位置を格納位置とする
ことに従って順次示すことを特徴とするブリッジ装置。
2. A bridge device for transferring information between a plurality of networks, comprising: storage means for storing information; provided in correspondence with the network; receiving information from the network and storing the information in the storage means; A controller for reading the information stored in the storage means and transmitting the information to the destination network; and a controller for reading the information stored in the storage means when the information is transfer information from the destination to the source in the same network. Filtering means for discarding information, reception management means indicating a storage position of the storage means for storing the information received by the controller in the storage means, and storage means for storing information to be transmitted by the controller. Transmission management means indicating a read position of the storage means for reading from the storage means, and information is stored in the storage means. The controller stores the received information in a storage position indicated by the reception management unit, and reads information from a read position indicated by the transmission management unit. The transmission management means, as the information to be transmitted, the information not discarded by the filtering means, and sequentially indicates the storage position of the information indicated by the reception management means as the read position in accordance with the reading of the information by the controller. The reception management unit stores, in the storage unit, the storage position where the information discarded by the filtering unit has been stored and the position of the free space indicated by the free space management unit, the information received by the controller in the storage unit. For the information received by the controller as the storage location for After the information has been read out by the controller, the read position indicated by the transmission management means is taken as the position of the free area, and the position of the free area in the reception management means is displayed. Are sequentially displayed according to the storage position.
【請求項3】請求項2において、前記送信管理手段は、
前記読み出し位置としてのポインタを格納することがで
きるエントリ領域を複数備える送信管理テーブルと、該
送信管理テーブルの書き込み可能なエントリ領域を示
し、送信すべき情報の格納に従って順次エントリ領域を
移行していく書き込みエントリと、該送信管理テーブル
の読みだすべきエントリ領域を示し、前記コントローラ
における情報の読み出しに従って順次エントリ領域を移
行していく読み出しエントリとを備え、 前記受信管理手段は、前記格納位置としてのポインタを
格納することができるエントリ領域を複数備える受信管
理テーブルと、該受信管理テーブルの書き込み可能なエ
ントリ領域を示し、前記受信情報の格納に従って順次エ
ントリ領域を移行していく書き込みエントリと、該受信
管理テーブルの読みだすべきエントリ領域を示し、前記
フィルタリング手段における情報の読み出しに従って順
次エントリ領域を移行していく読み出しエントリとを備
え、 前記空き領域管理手段は、前記空き領域の位置としてポ
インタを格納することができるエントリ領域を複数備え
る空き領域管理テーブルと、該空き領域管理テーブルの
書き込み可能なエントリ領域を示し、前記読み出し位置
を空き領域の位置とすること従って順次エントリ領域を
移行していく書き込みエントリと、該空き領域管理テー
ブルの読みだすべきエントリ領域を示し、前記空き領域
を前記格納位置とすることに従って順次エントリ領域を
移行していく読み出しエントリとを備えることを特徴と
するブリッジ装置。
3. The transmission management means according to claim 2, wherein:
A transmission management table including a plurality of entry areas capable of storing pointers as the readout positions, and a writable entry area of the transmission management table are shown, and the entry areas are sequentially shifted according to storage of information to be transmitted. A write entry, and a read entry indicating an entry area to be read from the transmission management table, and sequentially shifting the entry area in accordance with the reading of information by the controller, wherein the reception management means includes a pointer as the storage position. A reception management table provided with a plurality of entry areas capable of storing the reception management table, a write entry indicating a writable entry area of the reception management table, and sequentially shifting the entry area according to the storage of the reception information; Ent to read table And a read entry that sequentially shifts the entry area in accordance with the reading of information by the filtering means. The free area management means sets an entry area in which a pointer can be stored as a position of the free area. A plurality of free space management tables, a writable entry area of the free space management table, a write entry that sequentially shifts the entry area by setting the read position to a free area position, and a free space management table. A read entry that indicates an entry area to be read from the table, and sequentially shifts the entry area according to the empty area as the storage position.
【請求項4】情報を格納する記憶手段を備え、ネットワ
ークからの情報を受信して前記記憶手段に格納し、前記
記憶手段に格納された情報を読みだして転送先のネット
ワークに送信し、前記記憶手段に格納された情報が、同
一ネットワーク内における転送先から転送元への転送情
報である場合に該情報を廃棄するブリッジ装置における
記憶手段管理方法であって、 前記記憶手段を、送信すべき情報を格納する送信領域
と、受信した情報を格納し、あらかじめ定めた大きさを
備える受信領域と、情報を格納していない空き領域とに
別け、あらかじめ定めた格納領域を単位として単位領域
ごとに管理を行い、 前記コントローラにおいて情報の受信時に前記受信領域
の単位領域に当該情報を格納させ、前記フィルタリング
における処理後に廃棄されなかった情報を格納している
受信領域の単位領域を前記送信領域とし、当該受信領域
を送信領域としたときに、前記空き領域の単位領域を前
記受信領域とし、前記コントローラにおいて情報の送信
後に送信された後の送信領域の単位領域を前記空き領域
とすることを特徴とする記憶手段管理方法。
4. A storage means for storing information, receiving information from a network and storing the information in the storage means, reading the information stored in the storage means and transmitting the information to a destination network, When the information stored in the storage unit is transfer information from a transfer destination to a transfer source in the same network, the storage unit management method in a bridge device that discards the information, wherein the storage unit should be transmitted. A transmission area for storing information, a reception area for storing received information and having a predetermined size, and a free area for not storing information are divided into unit areas using a predetermined storage area as a unit. Performs management, causes the controller to store the information in a unit area of the reception area when the information is received, and discards the information after processing in the filtering. The unit area of the receiving area storing the never been information and the transmission region, the receiving area
The when the transmission region, the a unit area of the free area and the receiving area, the storage means, wherein the unit area of the transmission region after being transmitted after the transmission of information in the controller to said free area Management method.
JP5059010A 1993-03-18 1993-03-18 Bridge device and storage means management method Expired - Lifetime JP3056348B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5059010A JP3056348B2 (en) 1993-03-18 1993-03-18 Bridge device and storage means management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5059010A JP3056348B2 (en) 1993-03-18 1993-03-18 Bridge device and storage means management method

Publications (2)

Publication Number Publication Date
JPH06276194A JPH06276194A (en) 1994-09-30
JP3056348B2 true JP3056348B2 (en) 2000-06-26

Family

ID=13100899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5059010A Expired - Lifetime JP3056348B2 (en) 1993-03-18 1993-03-18 Bridge device and storage means management method

Country Status (1)

Country Link
JP (1) JP3056348B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7457892B2 (en) * 2006-06-05 2008-11-25 Freescale Semiconductor, Inc. Data communication flow control device and methods thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
電子情報通信学会技術研究報告,Vol.91 No.270,IN91−113,塚越雅人 他「マルチメディア高速基幹LANΣ−600におけるFDDI高速接続方式」,pages.1−6

Also Published As

Publication number Publication date
JPH06276194A (en) 1994-09-30

Similar Documents

Publication Publication Date Title
JP2809961B2 (en) Multiprocessor
US5561807A (en) Method and device of multicasting data in a communications system
EP0092895B1 (en) Data processing system
JP2983167B2 (en) Network interface device and packet processing method in network interface
US7111092B1 (en) Buffer management technique for a hypertransport data path protocol
US5418913A (en) System of two-way communication between processors using a single queue partitioned with pointers and limited overwrite privileges
USRE44151E1 (en) Switching ethernet controller
US6427185B1 (en) Method and apparatus for managing the flow of data within a switching device
US5761427A (en) Method and apparatus for updating host memory in an adapter to minimize host CPU overhead in servicing an interrupt
JP4078445B2 (en) Method and apparatus for sending multiple copies by duplicating a data identifier
US6857030B2 (en) Methods, system and article of manufacture for pre-fetching descriptors
US7117308B1 (en) Hypertransport data path protocol
JPH04233356A (en) Apparatus for network adaptor containing a plurality of processors and system memory means, network controller and control method
JP2008178138A (en) Method and apparatus for reclaiming a buffer
US5901328A (en) System for transferring data between main computer multiport memory and external device in parallel system utilizing memory protection scheme and changing memory protection area
US6240065B1 (en) Bit clearing mechanism for an empty list
US5913042A (en) Method and apparatus for managing packet memory
JP3056348B2 (en) Bridge device and storage means management method
US6434592B1 (en) Method for accessing a network using programmed I/O in a paged, multi-tasking computer
US20060165055A1 (en) Method and apparatus for managing the flow of data within a switching device
JP3115801B2 (en) Parallel computer system
JP2000259523A (en) Data transfer device, lan communication system and data transfer method
JP2984594B2 (en) Multi-cluster information processing system
JPH0950423A (en) Data transmission method between remote information processing systems
CN121560271A (en) First-in first-out device, control method thereof and chip

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080414

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090414

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090414

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100414

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110414

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120414

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120414

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130414

Year of fee payment: 13