JP2002009827A - Router and method for protecting memory from leakage - Google Patents

Router and method for protecting memory from leakage

Info

Publication number
JP2002009827A
JP2002009827A JP2000183398A JP2000183398A JP2002009827A JP 2002009827 A JP2002009827 A JP 2002009827A JP 2000183398 A JP2000183398 A JP 2000183398A JP 2000183398 A JP2000183398 A JP 2000183398A JP 2002009827 A JP2002009827 A JP 2002009827A
Authority
JP
Japan
Prior art keywords
memory
packet
switch interface
received
destination slot
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.)
Pending
Application number
JP2000183398A
Other languages
Japanese (ja)
Inventor
Yoshihiro Iwasaki
至宏 岩崎
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 Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2000183398A priority Critical patent/JP2002009827A/en
Publication of JP2002009827A publication Critical patent/JP2002009827A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent the leakage of a memory storing packets in a store-and- forward router with a simple configuration. SOLUTION: An interface 2 transmits a transmission slot retrieval request including packet interface to a retrieval card 4 in order to decide a destination slot of a packet received from a line side. A detection circuit 6 can also obtain the same packet information. The detection circuit 6 measures a time when the destination slot information with respect to the packet information is received by an interface 3 from the retrieval card 4. When a prescribed time reaches before the slot information is received by the interface 3, it is discriminated that a hardware fault takes place, the detection circuit 6 gives an instruction to the interface 2 to release the memory area of a memory 1 storing the packet. The interface 2 uses a drop function provided substantially thereto to release the memory area.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、無効となったパケ
ットが記憶されているメモリ領域を強制的に開放するル
ータおよびメモリリーク保護方法に関し、特にストア・
アンド・フォワード型ルータが備えるメモリに対しての
メモリリーク保護に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a router for forcibly opening a memory area in which invalidated packets are stored, and a memory leak protection method.
The present invention relates to memory leak protection for a memory provided in an AND-forward router.

【0002】[0002]

【従来の技術】この種の従来技術の例が特開平11-33126
0号公報に「通信装置および通信方法、並びに記録媒
体」として記載されているので、同公報における図面を
引用して、その技術について説明する。
2. Description of the Related Art An example of this kind of prior art is disclosed in JP-A-11-33126.
Since it is described as “communication device, communication method, and recording medium” in Japanese Patent Publication No. 0, the technology will be described with reference to the drawings in the publication.

【0003】図15は、パケットをフォワーディング
(転送)するための一般的な装置(ルータ)の全体構成
図である。このルータは、パケットを回線を介して送受
信する2つのラインカード10,20と、ラインカード
10,20で受信したパケットをフォワーディングする
フォワーディングエンジン30と、ラインカード10,
20およびフォワーディングエンジン30を相互接続す
るクロスバスイッチ(以下、「スイッチ」と記す)40
から構成されている。
FIG. 15 is an overall configuration diagram of a general device (router) for forwarding (transferring) a packet. The router includes two line cards 10 and 20 for transmitting and receiving packets via a line, a forwarding engine 30 for forwarding packets received by the line cards 10 and 20, a line card 10,
A crossbar switch (hereinafter, referred to as “switch”) 40 interconnecting the forwarding engine 20 and the forwarding engine 30
It is composed of

【0004】ラインカード10(20)は、送信側回線
対応部11(21)と、受信側回線対応部12(22)
と、スイッチ40からページを受信しバッファリングす
るFSU(From Switch Unit)13(23)と、受信側
回線対応部12(22)から送られてきたページをスイ
ッチ40へ送出するためのTSU(To Switch Unit)1
4(24)から構成される。
[0004] The line card 10 (20) includes a transmission line corresponding unit 11 (21) and a reception line corresponding unit 12 (22).
And a FSU (From Switch Unit) 13 (23) for receiving and buffering a page from the switch 40, and a TSU (To Switch Unit) for transmitting the page sent from the receiving-side line corresponding unit 12 (22) to the switch 40. Switch Unit) 1
4 (24).

【0005】フォワーディングエンジン30は、FSU
13(23),TSU14(24)と同構成のFSU3
3,TSU34と、FSU33から受信したルートペー
ジリクエストとルーティングテーブルを基に、フォワー
ディング処理を行うフォワーディングプロセッサ35と
から構成される。
[0005] The forwarding engine 30 is an FSU.
13 (23), FSU3 having the same configuration as TSU14 (24)
3, a forwarding processor 35 for performing a forwarding process based on a route page request received from the FSU 33 and a routing table.

【0006】図16は、図15に示したルータのFSU
13(23,33も同構成)の構成例を示す。図16に
おいて、ページ受信部42がパケットを構成するページ
データを受信すると、そのページデータがオブジェクト
生成部45およびペイロードメモリ43に供給され、ア
ドレス変換部41により、ペイロードメモリ43に割り
当て可能なアドレスが生成される。オブジェクト生成部
45により、そのアドレスを含むオブジェクトが1パケ
ットにつき1つだけ生成され、ペイロードメモリ43の
そのアドレスにページデータがリスト構造にして格納さ
れる。メモリリーク検出部44は、オブジェクト喪失等
に起因するメモリリークを検出すると、ペイロードメモ
リ43の対応するアドレスの領域を強制的に開放する。
この開放は、オブジェクトに設定された有効期限が経過
することにより行う。
FIG. 16 shows the FSU of the router shown in FIG.
13 (23 and 33 have the same configuration). In FIG. 16, when the page receiving unit 42 receives the page data constituting the packet, the page data is supplied to the object generating unit 45 and the payload memory 43, and the address that can be assigned to the payload memory 43 by the address converting unit 41. Generated. The object generation unit 45 generates only one object including the address for each packet, and stores the page data in the address of the payload memory 43 in a list structure. When detecting a memory leak due to a loss of an object or the like, the memory leak detection unit 44 forcibly releases an area of a corresponding address of the payload memory 43.
This release is performed when the expiration date set for the object elapses.

【0007】このような構成により、オブジェクトのア
ドレス情報がノイズ等の外乱により失われた場合に、ペ
ーロードメモリに割り当てられたページが永久に開放さ
れなくなって(これをメモリリークという)、ぺイロー
ドメモリ内の割り当て可能なページ数が減少し、メモリ
の有効利用ができず、結果的に装置の性能が低下するの
を阻止する。
With this configuration, when the address information of the object is lost due to disturbance such as noise, the page allocated to the payload memory is not released permanently (this is called a memory leak), and the payload is deleted. This reduces the number of pages that can be allocated in the memory and prevents the memory from being used effectively, thereby preventing the performance of the device from being reduced.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上述し
た従来技術では、メモリリーク検出部がメモリリークの
発生を検出すると、そのメモリ領域を未使用状態にし
て、ページの開放を行うため、メモリリーク検出部には
データ領域開放機能の追加が必要になるという問題点が
ある。
However, in the above-mentioned prior art, when the memory leak detection unit detects the occurrence of a memory leak, the memory area is set to an unused state and the page is released. However, there is a problem that it is necessary to add a data area release function to the section.

【0009】本発明の目的は、データ領域開放機能の追
加を不要とするルータおよびメモリリーク保護方法を提
供することにある。
An object of the present invention is to provide a router and a memory leak protection method which do not require the addition of a data area release function.

【0010】[0010]

【課題を解決するための手段】第1の本発明のルータ
は、通信回線から受信したパケットの送先スロットが検
索できないとき、前記パケットを格納しているメモリの
領域を開放するために備えられているドロップ機能を使
用して、所定のメモリリーク要保護状態になったとき
に、該メモリリーク要保護状態が解除されるまで前記メ
モリの領域を開放することを特徴とする。
According to a first aspect of the present invention, when a destination slot of a packet received from a communication line cannot be searched, an area of a memory storing the packet is released. When a predetermined memory leak protection required state is entered by using the drop function, the memory area is released until the memory leak required protection state is released.

【0011】第2の本発明のルータは、通信回線に接続
された複数のラインカードと、ラインカードが通信回線
から受信したパケットの送先スロットを検索するルーテ
ィングテーブル検索カード(4)とをクロスバスイッチ
(5)で相互接続したルータにおいて、各ラインカード
は、通信回線から受信したパケットを格納するメモリ
(1)と、送先スロットの検索のために受信したパケッ
トの先頭アドレスをルーティングテーブル検索カード
(4)に、受信したパケットを検索された送先スロット
にクロスバスイッチ(5)経由でそれぞれ送信する送信
側スイッチインタフェース(2)と、クロスバススイッ
チ(5)経由で受信した検索された送先スロットを送信
側スイッチインタフェース(2)に、送信されたパケッ
トを通信回線にそれぞれ通知する受信側スイッチインタ
フェース(3)と、送信側スイッチインタフェース
(2)に受信したパケットの先頭アドレスが入力してか
ら、受信側スイッチインタフェース(3)により、検索
された送先スロットが通知されるまでの時間によってメ
モリリークの発生を検出し、受信側スイッチインタフェ
ース(3)にドロップ指示を行うメモリリーク検出回路
(6)とを備え、送信側スイッチインタフェース(2)
は受信側スイッチインタフェース(3)からドロップ指
示に基づくドロップ通知を受けると、メモリ(1)の当
該メモリ領域を開放することを特徴とする。
A router according to a second aspect of the present invention comprises a plurality of line cards connected to a communication line and a routing table search card (4) for searching a destination slot of a packet received by the line card from the communication line. In the router interconnected by the switch (5), each line card includes a memory (1) for storing a packet received from a communication line and a head address of a packet received for searching for a destination slot in a routing table search card. (4) A transmitting-side switch interface (2) for transmitting a received packet to the searched destination slot via the crossbar switch (5), and a searched destination received via the crossbus switch (5). The slot is sent to the transmitting switch interface (2), and the transmitted packet is sent to the communication line. After the head address of the received packet is input to the receiving switch interface (3) to be notified and the transmitting switch interface (2), the searched destination slot is notified by the receiving switch interface (3). A memory leak detection circuit (6) for detecting the occurrence of a memory leak based on the time up to and issuing a drop instruction to the reception-side switch interface (3);
Upon receiving a drop notification based on a drop instruction from the receiving-side switch interface (3), the memory area is opened in the memory (1).

【0012】第3の本発明のルータは、メモリリーク検
出回路(6)がメモリ(1)に格納されている受信パケ
ットの量によってメモリリークの発生を検出することを
特徴とする。
A third aspect of the present invention is characterized in that the memory leak detection circuit (6) detects the occurrence of a memory leak based on the amount of received packets stored in the memory (1).

【0013】本発明は、通信回線に接続された複数のラ
インカードと、ラインカードが前記通信回線から受信し
たパケットの送先スロットを検索するルーティングテー
ブル検索カード(4)とをクロスバスイッチ(5)で相
互接続したルータにおけるメモリリーク保護に関する。
先ず、通信回線から受信したパケットをメモリ(1)に
格納する。ラインカードの送信側スイッチインタフェー
ス(2)は、送先スロットの検索のために受信したパケ
ットの先頭アドレスをクロスバスイッチ(5)経由でル
ーティングテーブル検索カード(4)に送信する。ルー
ティングテーブル検索カード(4)は先頭アドレスによ
って送先スロットを検索する。ラインカードの受信側ス
イッチインタフェース(3)は、検索された送先スロッ
トをクロスバスイッチ(5)経由で受信して送信側スイ
ッチインタフェース(2)に通知する。送信側スイッチ
インタフェース(2)は、メモリ(1)に格納されたパ
ケットを送先スロットに宛てクロスバスイッチ(5)経
由で送信する。受信側スイッチインタフェース(3)
は、送信されたパケットをクロスバスイッチ(5)経由
で受信すると通信回線に送信する。メモリリーク検出回
路(6)は、送信側スイッチインタフェース(2)に受
信したパケットの先頭アドレスが入力してから、受信側
スイッチインタフェース(3)により、検索された送先
スロットが通知されるまでの時間によってメモリリーク
の発生を検出してドロップ指示を行う。受信側スイッチ
インタフェース(3)は、ドロップ指示に基づき送信側
スイッチインタフェース(2)にドロップ通知を行う。
送信側スイッチインタフェース(2)はドロップ通知を
受けると、メモリ(1)の当該メモリ領域を開放する。
According to the present invention, a crossbar switch (5) includes a plurality of line cards connected to a communication line and a routing table search card (4) for searching a destination slot of a packet received by the line card from the communication line. On memory leak protection in routers interconnected by.
First, the packet received from the communication line is stored in the memory (1). The transmission switch interface (2) of the line card transmits the head address of the packet received for searching for the destination slot to the routing table search card (4) via the crossbar switch (5). The routing table search card (4) searches for a destination slot according to the head address. The receiving switch interface (3) of the line card receives the searched destination slot via the crossbar switch (5) and notifies the transmitting switch interface (2). The transmission-side switch interface (2) transmits the packet stored in the memory (1) to the destination slot via the crossbar switch (5). Switch interface on the receiving side (3)
Receives the transmitted packet via the crossbar switch (5) and transmits the packet to the communication line. The memory leak detection circuit (6) operates from the input of the head address of the received packet to the transmission-side switch interface (2) to the notification of the searched destination slot by the reception-side switch interface (3). The occurrence of a memory leak is detected depending on the time, and a drop instruction is issued. The receiving switch interface (3) notifies the transmitting switch interface (2) of the drop based on the drop instruction.
Upon receiving the drop notification, the transmitting-side switch interface (2) releases the memory area of the memory (1).

【0014】なお、メモリリーク検出回路(6)は、メ
モリ(1)に格納されているパケットの量によってメモ
リリークを検出するようにしてもよい。
The memory leak detection circuit (6) may detect a memory leak based on the amount of packets stored in the memory (1).

【0015】本発明は、このように、送先スロットの検
索時にパケット先頭アドレスがルーティングテーブルに
ヒットしない場合に使用されるように本来備わっている
ドロップ機能を、メモリリークの保護のためのメモリ領
域の開放に流用することとしたため、簡単な構成のルー
タを提供することができ、また方法も単純化できるよう
になる。
According to the present invention, the drop function inherently used so that the packet start address does not hit the routing table when searching for the destination slot is provided in the memory area for protecting the memory leak. Since it is determined that the router is used, a router having a simple configuration can be provided, and the method can be simplified.

【0016】[0016]

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

【0017】図1は、本発明のルータの一実施形態の構
成例を示すブロック図である。本発明についても、図1
5に示した一般的な全体構成が適用され、図1における
メモリ1,スイッチインタフェース2,スイッチインタ
フェース3およびメモリリーク検出部6は、図15にお
けるラインカード10または20を構成し、また、図1
におけるルーティングテーブル検索カード4は図15に
おけるフォワーディングエンジン30に、図1のスイッ
チ5は図15のスイッチ40に相当する。
FIG. 1 is a block diagram showing a configuration example of an embodiment of the router of the present invention. As for the present invention, FIG.
5 is applied, the memory 1, the switch interface 2, the switch interface 3, and the memory leak detector 6 in FIG. 1 constitute the line card 10 or 20 in FIG.
15 corresponds to the forwarding engine 30 in FIG. 15, and the switch 5 in FIG. 1 corresponds to the switch 40 in FIG.

【0018】メモリ1はライン側から受信したパケット
を保持する。スイッチインタフェース2はメモリ1から
送先スロットを決定するためのパケット情報を受け取
り、送出先スロット検索要求としてスイッチ5経由でル
ーティングテーブル検索カード4に送信する。また、ス
イッチインタフェース3の指示によりメモリ1からのパ
ケットを送先スロットに送信すると共に、メモリ1に保
持しているパケットのメモリ領域の開放を行う。スイッ
チインタフェース3は、ルーティングテーブル検索カー
ド4からスイッチ5経由で受信した送先情報(送先およ
びパケット先頭アドレスから成る)をスイッチインタフ
ェース2に通知すると共に、スイッチ5経由でパケット
を受信した際にはライン側に送信する。ルーティングテ
ーブル検索カード4はスイッチ5経由で、スイッチイン
タフェース2から受信した送出スロット検索要求に対し
て、パケットの送先スロットを内蔵するルーティングテ
ーブルにより検索し、送先情報をスイッチインタフェー
ス3に送信する。スイッチ5は送受信を行うスロットの
接続を行う。
The memory 1 holds a packet received from the line side. The switch interface 2 receives the packet information for determining the destination slot from the memory 1 and transmits the packet information to the routing table search card 4 via the switch 5 as a destination slot search request. In addition, a packet from the memory 1 is transmitted to a destination slot in accordance with an instruction from the switch interface 3, and a memory area of the packet held in the memory 1 is released. The switch interface 3 notifies the switch interface 2 of destination information (consisting of a destination and a packet head address) received from the routing table search card 4 via the switch 5 and, when a packet is received via the switch 5, Send to line side. The routing table search card 4 searches the transmission slot search request received from the switch interface 2 via the switch 5 by using a routing table having a built-in destination slot of the packet, and transmits the destination information to the switch interface 3. The switch 5 connects slots for transmission and reception.

【0019】次に、一般的な動作について説明する。ラ
イン側から受信したパケットは、どのスロットに送るの
かを決定するまでメモリ1に保持される。この際に、パ
ケットはメモリ1のデータ幅単位に区切られ、リンクリ
ストを形成して保持される。メモリ1に保持されたパケ
ットの送先を決定するために、スイッチインタフェース
2は、パケットの先頭データとパケットの先頭アドレス
をメモリ1から受け取る。そのパケット先頭データに示
されている送先のIPアドレスとパケット先頭アドレス
をルーティングテーブル検索カード4に送信する。ルー
ティングテーブル検索カード4はスイッチインタフェー
ス2から受信したIPアドレスから送先のスロット番号
の検索を行い、検索された送り先スロット番号とパケッ
ト先頭アドレスをルーティング情報として、スイッチ5
経由でスイッチインタフェース3に送信する。
Next, a general operation will be described. The packet received from the line side is held in the memory 1 until it decides to which slot to send. At this time, the packet is divided into units of data width of the memory 1, and a link list is formed and held. To determine the destination of the packet held in the memory 1, the switch interface 2 receives the head data of the packet and the head address of the packet from the memory 1. The destination IP address and the packet start address indicated in the packet start data are transmitted to the routing table search card 4. The routing table search card 4 searches for the destination slot number from the IP address received from the switch interface 2, and uses the searched destination slot number and packet start address as the routing information as the switch 5.
Via the switch interface 3.

【0020】スイッチインターフェース3は、ルーティ
ングテーブル検索カード4から送先スロット番号とパケ
ット先頭アドレスを受信すると、それをスイッチインタ
フェース2に通知する。また、別カードから送信された
パケットをスイッチ5経由で受信すると、そのパケット
をライン側に送信する。スイッチインタフェース2は、
スイッチインタフェース3から送先スロット番号とパケ
ット先頭アドレスを受け取ると、パケット先頭アドレス
から成るリンクリストのパケットをスイッチ5経由で順
に送先スロット番号へ送信し、そのパケットが使用して
いたメモリ1のメモリ領域を開放する。
When the switch interface 3 receives the destination slot number and the packet start address from the routing table search card 4, it notifies the switch interface 2 of them. When a packet transmitted from another card is received via the switch 5, the packet is transmitted to the line side. Switch interface 2
When the destination slot number and the packet start address are received from the switch interface 3, the packets of the link list including the packet start address are sequentially transmitted to the destination slot number via the switch 5, and the memory of the memory 1 used by the packet is used. Release the area.

【0021】ラインからパケットPを受信した際に、図
3に示すように、パケットPはメモリ1のデータ幅毎に
区切られる。ここでは、A〜Dと区切られるものとす
る。A〜Dのデータをメモリ1の使用していないアドレ
ス00h〜03hに保持する。保持する際には、データ
A〜Dのリンクリストを形成するようにポインタを設定
する。このポインタを00hから順に辿っていき、00
h→01h→02h→03hのデータを読み出すことに
より、元のパケットPを形成することができる。ポイン
タ値が00hを示すデータはパケットの最終データを表
す。実際にパケットを送信する際にパケットの先頭から
順に送れるようにパケットに対する先頭アドレス00h
を保持しておく。
When a packet P is received from a line, the packet P is divided for each data width of the memory 1 as shown in FIG. Here, it is assumed to be separated from A to D. The data of A to D is held at unused addresses 00h to 03h of the memory 1. At the time of holding, a pointer is set so as to form a linked list of data A to D. Follow this pointer sequentially from 00h,
By reading the data of h → 01h → 02h → 03h, the original packet P can be formed. The data whose pointer value indicates 00h indicates the last data of the packet. When the packet is actually transmitted, the head address 00h for the packet so that the packet can be sent in order from the beginning of the packet.
Is kept.

【0022】次に、パケットPの送り先のスロットを決
定するために、スイッチインタフェース2は、図4に示
すようにパケットPの先頭アドレス00hとパケット先
頭データAをメモリ1から受け取る。スイッチインタフ
ェース2はパケット先頭データAから送信先のIPアド
レスEを抜き出し、パケット先頭アドレス00と共にル
ーティングテーブル検索カード4に送信する。ルーティ
ングテーブル検索カード4は、スイッチインタフェース
2から図7に示すように、パケット先頭アドレス00h
とIPアドレスEを受信する。そこで、IPアドレスE
によりルーティングテーブルから送先スロットFを検索
し、パケット先頭アドレス00hと共にスイッチインタ
フェース3に送信する。スイッチインタフェース3は、
図5に示すように、送先スロットFとパケット先頭アド
レス00hを受信して、スイッチインタフェース2に通
知する。スイッチインタフェース2は、送先スロットF
に先頭アドレス00hからリンクリストを生成している
パケットPを順に送信し、パケットPが使用していたメ
モリ1のメモリ領域(アドレス00h,01h,02
h,03h)を開放する。
Next, in order to determine the destination slot of the packet P, the switch interface 2 receives the head address 00h and the packet head data A of the packet P from the memory 1 as shown in FIG. The switch interface 2 extracts the destination IP address E from the packet head data A and sends it to the routing table search card 4 together with the packet head address 00. As shown in FIG. 7, the routing table search card 4 receives the packet start address 00h from the switch interface 2.
And the IP address E. Therefore, the IP address E
To retrieve the destination slot F from the routing table, and transmits it to the switch interface 3 together with the packet start address 00h. The switch interface 3
As shown in FIG. 5, the destination slot F and the packet start address 00h are received and notified to the switch interface 2. The switch interface 2 has a destination slot F
The packet P generating the link list is sequentially transmitted from the start address 00h to the memory area of the memory 1 used by the packet P (addresses 00h, 01h, 02
h, 03h).

【0023】次に、メモリリーク検索回路6は、メモリ
1からパケット情報を受け取り、ルーティングテーブル
検索カード4において送先が決定するまでメモリ1にそ
のパケットが保持される時間を測定することにより、メ
モリリークかどうかの判断処理を行う。そして、メモリ
リークと判断した際には、スイッチインタフェース3に
そのパケットに対するメモリ1の領域を開放するように
ドロップ指示をする。スイッチインタフェース3は、メ
モリリーク検出回路6からのドロップ指示を受けると、
スイッチインタフェース2にドロップ通知をする。スイ
ッチインタフェース2は、スイッチインタフェース3か
ら受けたドロップ通知により、メモリ1のメモリ領域を
開放する。なお、スイッチインタフェース3は、パケッ
トの送先が決定した際には、メモリリーク検出回路6に
送信データ情報を通知する。
Next, the memory leak search circuit 6 receives the packet information from the memory 1 and measures the time during which the packet is held in the memory 1 until the destination is determined in the routing table search card 4, thereby obtaining the memory information. A process for determining whether or not a leak has occurred is performed. Then, when it is determined that the packet is a memory leak, a drop instruction is issued to the switch interface 3 so as to release an area of the memory 1 for the packet. When receiving the drop instruction from the memory leak detection circuit 6, the switch interface 3
The switch interface 2 is notified of the drop. The switch interface 2 releases the memory area of the memory 1 according to the drop notification received from the switch interface 3. When the destination of the packet is determined, the switch interface 3 notifies the memory leak detection circuit 6 of the transmission data information.

【0024】図2は、メモリリーク検出回路6の構成例
を示すブロック図である。メモリ8は、パケットがメモ
リ1に保持されている時間を保持している。この値はC
PU7によってある一定間隔でカウントアップされる。
またCPU7はメモリ8の値からパケットがメモリ1に
保持されている時間を基に、ある一定時間保持されてい
るパケットに対してそのメモリ領域を開放するようスイ
ッチインタフェース3にドロップ指示を出す。
FIG. 2 is a block diagram showing a configuration example of the memory leak detection circuit 6. The memory 8 holds the time during which the packet is held in the memory 1. This value is C
It is counted up at a certain interval by the PU 7.
Further, based on the time when the packet is held in the memory 1 based on the value in the memory 8, the CPU 7 issues a drop instruction to the switch interface 3 to release the memory area for the packet held for a certain period of time.

【0025】次に、図2の回路の動作について図1をも
参照して説明する。ライン側から受信したパケットがメ
モリ1に保持され、このパケットに対する送先スロット
を決定するために、スイッチインタフェース2は、パケ
ット情報とパケットの先頭アドレスを受け取る。同時
に、メモリリーク検出回路6は送先が決定するまでの時
間を測定するためにパケット先頭アドレスを受け取る。
CPU7は、受け取ったパケット先頭アドレスと同じメ
モリ8のアドレスの値を「1」にする。CPU7は一定
間隔でメモリ8の全アドレスに対して、値が「0」でな
いときはその値を「1」インクリメントする。メモリ8
に保持されている値は、そのアドレスをパケット先頭ア
ドレスとするパケットがメモリ1に保持されている時間
を示している。CPU7はこのメモリ8に保持されてい
る値からパケットがメモリリークを起こしているか否か
を判断する。
Next, the operation of the circuit of FIG. 2 will be described with reference to FIG. The packet received from the line side is held in the memory 1, and the switch interface 2 receives the packet information and the head address of the packet in order to determine the destination slot for the packet. At the same time, the memory leak detection circuit 6 receives the packet start address to measure the time until the destination is determined.
The CPU 7 sets the value of the address of the memory 8 that is the same as the received packet head address to “1”. If the value is not "0" for all the addresses of the memory 8 at regular intervals, the CPU 7 increments the value by "1". Memory 8
Indicates the time during which a packet having that address as the packet start address is stored in the memory 1. The CPU 7 determines from the value held in the memory 8 whether or not the packet has a memory leak.

【0026】スイッチインタフェース3は、ルーティン
グテーブル検索カード4から送先スロットとパケット先
頭アドレスを受信すると、メモリ1はスイッチインタフ
ェース2によってメモリ領域を開放される。メモリ1の
メモリ領域が開放されると、CPU7は送先が決定した
パケットに対してメモリ8に保持されている時間をクリ
アしなければならない。そのためCPU7はスイッチイ
ンタフェース3から送先が決定したパケット先頭アドレ
スを送信情報アドレスとして受け取ると、メモリ8のパ
ケット先頭アドレスと同じアドレスの値を「0」にす
る。
When the switch interface 3 receives the destination slot and the packet start address from the routing table search card 4, the memory area of the memory 1 is released by the switch interface 2. When the memory area of the memory 1 is released, the CPU 7 must clear the time held in the memory 8 for the packet whose destination has been determined. Therefore, when the CPU 7 receives, from the switch interface 3, the packet start address determined as the transmission destination as the transmission information address, the CPU 7 sets the value of the same address as the packet start address in the memory 8 to “0”.

【0027】スイッチインタフェース3がルーティング
テーブル検索カード4から送先スロットを受信しない間
は、メモリ8の値はカウントアップされ続ける。メモリ
8の値がある一定の値に達すると、CPU7はそのアド
レスをパケット先頭アドレスとするパケットに対してメ
モリリークが起こったと判断する。その結果、そのパケ
ットが使用しているメモリ1のメモリ領域を開放する処
理が行われる。CPU7は、メモリリークと判断する
と、インタフェース3にそのパケット先頭アドレスを通
知し、そのパケットをドロップするように指示を送る。
スイッチインタフェース3はパケット先頭アドレスとド
ロップ指示を受け取ると、スイッチインタフェース2に
パケット先頭アドレスをドロップするように通知し、ス
イッチインタフェース2によりそのパケットはドロップ
される。よってそのパケットに対してメモリ1で使用さ
れていたメモリ領域が開放される。
While the switch interface 3 does not receive the destination slot from the routing table search card 4, the value of the memory 8 continues to be counted up. When the value of the memory 8 reaches a certain value, the CPU 7 determines that a memory leak has occurred for a packet having that address as the packet start address. As a result, a process of releasing the memory area of the memory 1 used by the packet is performed. When determining that the memory leaks, the CPU 7 notifies the interface 3 of the packet start address, and sends an instruction to drop the packet.
When receiving the packet start address and the drop instruction, the switch interface 3 notifies the switch interface 2 to drop the packet start address, and the switch interface 2 drops the packet. Therefore, the memory area used in the memory 1 for the packet is released.

【0028】次に、図3に示したパケットデータを用い
て、さらに具体的に説明する。
Next, a more specific description will be given using the packet data shown in FIG.

【0029】ラインから受信したパケットPは、図3に
示すように、メモリ1のデータ幅毎にA〜Dと区切ら
れ、メモリ1のアドレス00h〜03hに保持される。
パケットPの送先のスロットを決定するために、スイッ
チインタフェース2が図4に示すように、パケットPの
先頭アドレス00hとパケット先頭データAをメモリ1
から受け取ると同時に、メモリリーク検出回路6もパケ
ット先頭アドレス00hを受け取る。CPU7は、図8
に示すように受け取ったパケット先頭アドレス00hに
対応するメモリ8のアドレス00hのデータ値を「1」
にする。CPU7は、一定間隔(ここでは1秒間隔とす
る。)でメモリ8の全アドレスに対して、データ値が
「0」でないときはその値を「1」インクリメントす
る。
As shown in FIG. 3, the packet P received from the line is divided into A to D for each data width of the memory 1 and held at addresses 00h to 03h of the memory 1.
In order to determine the destination slot of the packet P, the switch interface 2 stores the packet P head address 00h and the packet head data A in the memory 1 as shown in FIG.
, The memory leak detection circuit 6 also receives the packet start address 00h. The CPU 7 shown in FIG.
As shown in the figure, the data value of the address 00h of the memory 8 corresponding to the received packet start address 00h is set to "1".
To When the data value is not “0” for all addresses of the memory 8 at a constant interval (here, 1 second interval), the CPU 7 increments the value by “1”.

【0030】まず、送先スロットが決定される場合につ
いての例を説明する。スイッチインタフェース3は、図
5に示すように、パケットPに対する送先スロットFと
パケット先頭アドレス00hをルーティングテーブル検
索カード4から受信する。スイッチインタフェース3
は、パケット先頭アドレス00hをスイッチインタフェ
ース2に通知すると同時に、パケットの送先スロットが
決定したので、メモリリーク検出回路6にパケット先頭
アドレス00hを通知する。スイッチインタフェース2
は、パケット先頭アドレス00hのパケットPをメモリ
1から読み込み、スイッチ5に送信する。スイッチ5は
パケットPを送先スロットFのスイッチインタフェース
3に送り、パケットPはラインに送出される。パケット
Pが送出されると、スイッチインタフェース2によっ
て、00h,01h,02hおよび03hの領域は開放
され、メモリリーク検出回路6のCPU7は、図9に示
すようにスイッチインタフェース3から受け取ったパケ
ット先頭アドレス00hから、メモリ8のアドレス00
hの値を「0」にする。
First, an example in which a destination slot is determined will be described. The switch interface 3 receives the destination slot F for the packet P and the packet start address 00h from the routing table search card 4 as shown in FIG. Switch interface 3
Notifies the switch interface 2 of the packet start address and at the same time notifies the memory leak detection circuit 6 of the packet start address 00h because the destination slot of the packet has been determined. Switch interface 2
Reads the packet P with the packet start address 00h from the memory 1 and sends it to the switch 5. The switch 5 sends the packet P to the switch interface 3 in the destination slot F, and the packet P is sent out to the line. When the packet P is transmitted, the areas of 00h, 01h, 02h and 03h are released by the switch interface 2, and the CPU 7 of the memory leak detection circuit 6 sends the packet start address received from the switch interface 3 as shown in FIG. 00h, the address 00 of the memory 8
The value of h is set to “0”.

【0031】次に、送先スロットが決定しない場合につ
いての例を説明する。これは、何らかの障害により、ル
ーティングテーブル検索カード4において送先スロット
が検索できなかったケースである。スイッチインタフェ
ース3がルーティングテーブル検索カード4から送先ス
ロットを受信しない間は、メモリ8の値はインクリメン
トされ続ける。その結果、メモリ8の値がある一定値
(ここでは10秒とする)に達すると、図10に示すよう
にそのアドレス00hを先頭アドレスとするパケットに
対してCPU7はメモリリークが起こったと判断し、ス
イッチインタフェース3にパケット先頭アドレス00h
とそのパケットをドロップするように通知する。ドロッ
プの指示をした後、ある一定値に達した値を「0」に戻
す。スイッチインタフェース3は、図6に示すように、
パケット先頭アドレス00hとドロップ指示を受け取る
と、スイッチインタフェース2にパケット先頭アドレス
00hをドロップするように通知する。スイッチインタ
フェース2でそのパケットは廃棄され、メモリ1で使用
されていたアドレス00h,01h,02hおよび03
hのメモリ領域が開放される。
Next, an example in which the destination slot is not determined will be described. This is a case where a destination slot cannot be searched in the routing table search card 4 due to some failure. While the switch interface 3 does not receive the destination slot from the routing table search card 4, the value of the memory 8 continues to be incremented. As a result, when the value of the memory 8 reaches a certain value (here, 10 seconds), as shown in FIG. 10, the CPU 7 determines that a memory leak has occurred for the packet having the address 00h as the top address. , The packet head address 00h in the switch interface 3
And tells it to drop the packet. After the drop instruction, the value that has reached a certain value is returned to “0”. The switch interface 3, as shown in FIG.
When the packet head address 00h and the drop instruction are received, the switch interface 2 is notified to drop the packet head address 00h. The packet is discarded by the switch interface 2 and the addresses 00h, 01h, 02h and 03 used in the memory 1 are discarded.
The memory area of h is released.

【0032】この実施例によると、送先スロットが一定
時間内に決定しないパケットを廃棄するのにルータが本
来備えているドロップ機能を用いている。ドロップ機能
とは、ルーティングテーブル検索カード4において送先
スロットが検索できなかったパケットに対しては、その
格納メモリ領域を開放する機能をいう。
According to this embodiment, the drop function inherently provided in the router is used to discard a packet whose destination slot is not determined within a predetermined time. The drop function is a function of releasing a storage memory area of a packet whose destination slot cannot be searched in the routing table search card 4.

【0033】また、メモリリーク検出回路6は、プログ
ラムによって制御を行っているため、にメモリリークと
判断する時間の変更はプログラムを変更することによっ
て容易に実現できる。
Further, since the memory leak detection circuit 6 is controlled by a program, the change of the time for determining a memory leak can be easily realized by changing the program.

【0034】次に、本発明のルータの他の実施例につい
て説明する。第1の実施例では、送先スロットが決定す
るまでの時間の多少によってメモリリークと判断するも
のであったが、第2の実施例では、メモリ1の使用量に
よってメモリリーク判断するというものである。つま
り、パケットを保持しているメモリ1の使用量がある一
定値を超えるまでは、たとえ送先スロットが決定しない
パケットであっても、メモリ1に保持されたままとする
のである。
Next, another embodiment of the router according to the present invention will be described. In the first embodiment, the memory leak is determined based on the time required for the destination slot to be determined. In the second embodiment, the memory leak is determined based on the usage amount of the memory 1. is there. That is, until the amount of use of the memory 1 holding the packet exceeds a certain value, even if the destination slot is not determined, the packet is kept held in the memory 1.

【0035】第2実施におけるメモリリーク検出回路6
は、メモリ1からパケット先頭アドレスとそのパケット
がメモリ1で使用したアドレス数を受け取る。図3に示
した例では、パケットPに対してパケット先頭アドレス
は「00h」、メモリ1内で使用したアドレス数は
「4」となる。CPU7は、パケット先頭アドレス00
hと同じメモリ8のアドレスにパケットの使用アドレス
数「4」を書き込む。そして、メモリ1を使用している
パケットの先頭アドレスを、パケットがメモリ1に保持
された順に連結したリンクリストをメモリ8に形成す
る。また、メモリ1がどれくらい使用されているのかわ
かるように、メモリ1で使用されているアドレスの総数
を保持しておく。
Memory leak detection circuit 6 in second embodiment
Receives the packet start address and the number of addresses used by the packet in the memory 1 from the memory 1. In the example shown in FIG. 3, the packet start address for the packet P is “00h”, and the number of addresses used in the memory 1 is “4”. The CPU 7 sets the packet start address 00
The used address number “4” of the packet is written to the same address of the memory 8 as that of the address h. Then, a link list in which the head addresses of the packets using the memory 1 are linked in the order in which the packets are held in the memory 1 is formed in the memory 8. Also, the total number of addresses used in the memory 1 is stored so that the user can know how much the memory 1 is used.

【0036】スイッチインタフェース3がルーティング
テーブル検索カード4から送先スロットを受信した場合
には、CPU7が受け取ったパケット先頭アドレスをメ
モリ8のリンクリストから削除し、使用アドレス総数か
らそのパケットの使用アドレス数を引いた数がメモリ1
内の使用アドレス総数となる。一方、送先スロットが決
定せずにメモリ1の使用アドレス総数がある一定値に達
したときには、メモリ8に形成されているリンクリスト
の先頭から順にパケット先頭アドレスを削除し、その使
用アドレス数分の使用アドレス総数を減らす。そしてス
イッチインタフェース3にこのパケットをドロップする
ように指示を出す。これをメモリ1の使用アドレス総数
が一定値以下になるまで繰り返す。
When the switch interface 3 receives the destination slot from the routing table search card 4, the CPU 7 deletes the packet start address received from the link list in the memory 8, and calculates the number of addresses used of the packet from the total number of addresses used. Number minus 1 is memory 1
Is the total number of addresses used. On the other hand, when the destination slot is not determined and the total number of addresses used in the memory 1 reaches a certain value, the packet head addresses are sequentially deleted from the head of the link list formed in the memory 8 and the number of the used addresses is reduced. To reduce the total number of addresses used. Then, it instructs the switch interface 3 to drop this packet. This is repeated until the total number of addresses used in the memory 1 becomes equal to or less than a certain value.

【0037】メモリ1には、既に2つのパケットが保持
されているものとし、それぞれをP1、P2とする。パ
ケットP1に対してパケット先頭アドレスを00hと
し、使用しているアドレスを00h,01h,02hお
よび03hの4つとする。さらに、パケットP2はメモ
パケットP1がメモリ1に保持された後にパケット先頭
アドレスを04hとして、04h,05hおよび06h
の3アドレスに保持されたものとし、パケットP1,P
2ともにパケットの送先が決定していないものとする。
このとき、モリリーク検出回路6は、図11に示すよう
に、メモリ8においてパケットP1,P2のパケット先
頭アドレスでのリンクリストが形成され、使用アドレス
総数は、4+3=7となる。
It is assumed that two packets have already been stored in the memory 1, and that these packets are denoted by P1 and P2, respectively. Assume that the packet head address is 00h for the packet P1, and the four addresses 00h, 01h, 02h and 03h are used. Further, after the memo packet P1 is stored in the memory 1, the packet P2 is set to 04h, 05h and 06h, with the packet start address set to 04h.
Packets P1, P2
In both cases, it is assumed that the destination of the packet has not been determined.
At this time, as shown in FIG. 11, the memory leak detection circuit 6 forms a link list with the packet head addresses of the packets P1 and P2 in the memory 8, and the total number of addresses used is 4 + 3 = 7.

【0038】ここで,新たにパケットP3がメモリ1に
パケット先頭アドレスを07hとして、アドレス07h
および08hに保持されると、CPU7はパケットP3
に対してのパケット先頭アドレス07hと使用アドレス
数「2」を受け取る。メモリ8のアドレス07hに使用
アドレス数「2」を書き込み、使用アドレス総数の値を
7+2=9とする。また、形成されているリンクリスト
の最後に追加するため、最後であったアドレス04hの
ポインタを00h→07hに書き換える。
Here, the packet P3 is newly stored in the memory 1 with the packet start address set to 07h and the address 07h.
And 08h, the CPU 7 sends the packet P3
, The packet head address 07h and the number of used addresses “2” are received. The number of used addresses “2” is written to the address 07h of the memory 8, and the value of the total number of used addresses is set to 7 + 2 = 9. Further, in order to add to the end of the formed link list, the pointer of the last address 04h is rewritten from 00h to 07h.

【0039】ここで、CPU7がメモリリークと判断す
る使用アドレス総数の基準値を10とする。図12で示
されたこの状態では、使用アドレス総数が9と基準値に
達していないため、CPU7はパケットの送先が決定す
るのを待っている。そして、パケット先頭アドレス00
hのパケットの送先が決定すると、スイッチインタフェ
ース3からパケット先頭アドレス00hを受け取り、図
13に示すように、メモリ8のアドレス00hのポイン
タと使用アドレス数は、それぞれ00hと「0」にクリ
アされ、リンクリストから削除される。また、使用アド
レス総数は、アドレス00hの使用アドレス数「4」だ
け減少するため、9→5となる。
Here, it is assumed that the reference value of the total number of used addresses at which the CPU 7 determines that there is a memory leak is 10. In this state shown in FIG. 12, since the total number of addresses used is 9 and has not reached the reference value, the CPU 7 is waiting for the destination of the packet to be determined. Then, the packet head address 00
When the destination of the packet h is determined, the packet head address 00h is received from the switch interface 3, and as shown in FIG. 13, the pointer of the address 00h of the memory 8 and the number of addresses used are cleared to 00h and “0”, respectively. , Will be removed from the linked list. Also, the total number of used addresses is reduced from 9 to 5 because it is reduced by the used address number “4” of the address 00h.

【0040】次に、CPU7がメモリリークと判断する
使用アドレス総数の基準値を「8」とする。この場合に
は、図12で示された状態で、使用アドレス総数が9と
基準値8を超えている。このため、図14に示すよう
に、CPU7はメモリリークと判断して、メモリ8が形
成しているリンクリストの先頭アドレス00hをスイッ
チインタフェース3に通知し、同時にドロップするよう
通知する。この際に、メモリ8のアドレス00hのポイ
ンタと使用アドレス数は、それぞれ00hと「0」にク
リアされ、リンクリストから削除される。また、使用ア
ドレス総数は、アドレス00hでの使用アドレス数
「4」だけ減少し、使用アドレス総数は、9→5とな
る。まだ使用アドレス総数が基準値「8」を超えている
ならば、基準値以下になるまでリンクリストから順に同
様の処理を行う。
Next, the reference value of the total number of addresses used by the CPU 7 to judge a memory leak is "8". In this case, in the state shown in FIG. 12, the total number of addresses used is 9 and exceeds the reference value 8. Therefore, as shown in FIG. 14, the CPU 7 determines that there is a memory leak, notifies the switch interface 3 of the head address 00h of the link list formed in the memory 8, and notifies the switch interface 3 of dropping at the same time. At this time, the pointer of the address 00h of the memory 8 and the number of addresses used are cleared to 00h and “0”, respectively, and are deleted from the link list. Further, the total number of used addresses is reduced by the number of used addresses “4” at the address 00h, and the total number of used addresses is 9 → 5. If the total number of addresses to be used still exceeds the reference value “8”, the same processing is performed sequentially from the link list until the total number becomes equal to or less than the reference value.

【0041】この第2の実施例は、パケットを保持する
メモリに空きがある間はメモリリークと判断しない構成
であるため、送先スロットが決定するのにかなりの時間
を要した際でもそのパケットを送信することができると
いう効果も有する。
Since the second embodiment does not judge that a memory leak occurs while a memory holding a packet has a free space, even if a considerable amount of time is required to determine a destination slot, the packet is not leaked. Can also be transmitted.

【0042】なお、以上に説明したメモリリーク保護方
法をコンピュータに実行させるためのプログラムを半導
体メモリ,フロッピー(登録商標)ディスク,CD−R
OM等の記録媒体に記録し、ルータを構成するコンピュ
ータに読み込ませて実行するようにしてもよい。
A program for causing a computer to execute the memory leak protection method described above is stored in a semiconductor memory, a floppy (registered trademark) disk, or a CD-R.
The program may be recorded on a recording medium such as an OM and read and executed by a computer constituting a router.

【0043】[0043]

【発明の効果】本発明の第1の効果は、ストア・アンド
・フォワード型のルータで受信したパケットをストアす
るメモリのメモリ領域の開放を、本来備えているドロッ
プ機能により行うこととしたため、簡単な構成でメモリ
ワークを保護できるということである。
The first effect of the present invention is that the memory area of the memory for storing the packet received by the store-and-forward router is released by the inherent drop function. This means that the memory work can be protected with a simple configuration.

【0044】また、第2の効果は、プログラムによって
メモリリークであるかを判別しているため、プログラム
を変更することにより、メモリリークである判断するた
めの基準の設定を容易に変更できるということである。
プログラムによってメモリリークであるかを判別してい
るためプログラムを変更することで時間設定を変更でき
るためである。
The second effect is that, because a program is used to determine whether a memory leak has occurred, by changing the program, the reference setting for determining a memory leak can be easily changed. It is.
This is because the time setting can be changed by changing the program because the program determines whether or not there is a memory leak.

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

【図1】本発明のルータの一実施例を示すブロック図FIG. 1 is a block diagram showing an embodiment of a router according to the present invention.

【図2】メモリリーク検出回路のブロック図FIG. 2 is a block diagram of a memory leak detection circuit.

【図3】メモリ1内でのパケットデータの格納状態を示
す図
FIG. 3 is a diagram showing a storage state of packet data in a memory 1;

【図4】スイッチインタフェース2におけるデータの流
れ図
FIG. 4 is a data flow diagram in the switch interface 2.

【図5】スイッチインタフェース3におけるスイッチ4
からのデータの流れ図
FIG. 5 shows a switch 4 in the switch interface 3
Of data flow from

【図6】スイッチインタフェース3におけるメモリリー
ク検出回路6からのデータの流れ図
FIG. 6 is a flow chart of data from the memory leak detection circuit 6 in the switch interface 3;

【図7】ルーティングテーブル4におけるデータの流れ
FIG. 7 is a flow chart of data in the routing table 4;

【図8】メモリリーク検出回路6におけるメモリ1から
のデータの流れ図
FIG. 8 is a flow chart of data from the memory 1 in the memory leak detection circuit 6;

【図9】メモリリーク検出回路6におけるスイッチイン
タフェース3からのデータの流れ図
FIG. 9 is a flow chart of data from the switch interface 3 in the memory leak detection circuit 6;

【図10】メモリリーク検出回路6におけるスイッチイ
ンタフェース3へのメモリデータの流れ図
FIG. 10 is a flow chart of memory data to the switch interface 3 in the memory leak detection circuit 6;

【図11】本発明のルータの他の実施例におけるメモリ
リーク検出回路6のメモリ8におけるデータの格納状態
を示す図
FIG. 11 is a diagram showing a data storage state in a memory 8 of a memory leak detection circuit 6 in another embodiment of the router of the present invention.

【図12】本発明のルータの他の実施例におけるメモリ
リーク検出回路6でのメモリ1からデータの流れ図
FIG. 12 is a flow chart of data from the memory 1 in the memory leak detection circuit 6 in another embodiment of the router of the present invention.

【図13】本発明のルータの他の実施例におけるメモリ
リーク検出回路6でのスイッチインタフェース3からの
データの流れ図
FIG. 13 is a flow chart of data from the switch interface 3 in the memory leak detection circuit 6 in another embodiment of the router of the present invention.

【図14】本発明のルータの他の実施例におけるメモリ
リーク検出回路6でのスイッチインタフェース3へのデ
ータの流れ図
FIG. 14 is a diagram showing the flow of data to the switch interface 3 in the memory leak detection circuit 6 in another embodiment of the router of the present invention.

【図15】本発明が適用されるルータの一般的なブロッ
ク図
FIG. 15 is a general block diagram of a router to which the present invention is applied;

【図16】従来の実施のれいを示すブロック図FIG. 16 is a block diagram showing a conventional embodiment.

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

1 メモリ 2 スイッチインタフェース 3 スイッチインタフェース 4 ルーティングテーブル検索カード 5 スイッチ 6 メモリリーク検出回路 7 CPU 8 メモリ 10 ラインカード 11 送信側回線対応部 12 受信側回線対応部 13 FSU 14 TSU 20 ラインカード 21 送信側回線対応部 22 受信側回線対応部 23 FSU 24 TSU 30 フォワードエンジング 33 FSU 34 TSU 35 フォワーディングプロセッサ 40 スイッチ 1 Memory 2 Switch Interface 3 Switch Interface 4 Routing Table Search Card 5 Switch 6 Memory Leak Detection Circuit 7 CPU 8 Memory 10 Line Card 11 Transmitting Line Corresponding Unit 12 Receiving Line Corresponding Unit 13 FSU 14 TSU 20 Line Card 21 Transmitting Line Corresponding unit 22 Receiving line corresponding unit 23 FSU 24 TSU 30 Forward engine 33 FSU 34 TSU 35 Forwarding processor 40 Switch

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 通信回線から受信したパケットの送先ス
ロットが検索できないとき、前記パケットを格納してい
るメモリの領域を開放するために備えられているドロッ
プ機能を使用して、所定のメモリリーク要保護状態にな
ったときに、該メモリリーク要保護状態が解除されるま
で前記メモリの領域を開放することを特徴とするルー
タ。
When a destination slot of a packet received from a communication line cannot be searched, a predetermined memory leak is performed by using a drop function provided for releasing an area of a memory storing the packet. A router that releases the memory area until the memory leak protection required state is released when the protection required state is entered.
【請求項2】 通信回線に接続された複数のラインカー
ドと、該ラインカードが前記通信回線から受信したパケ
ットの送先スロットを検索するルーティングテーブル検
索カードとをクロスバスイッチで相互接続したルータに
おいて、前記各ラインカードは、 前記通信回線から受信したパケットを格納するメモリ
と、 前記送先スロットの検索のために前記受信したパケット
の先頭アドレスを前記ルーティングテーブル検索カード
に、前記受信したパケットを検索された送先スロットに
前記クロスバスイッチ経由でそれぞれ送信する送信側ス
イッチインタフェースと、 前記クロスバススイッチ経由で受信した前記検索された
送先スロットを前記送信側スイッチインタフェースに、
前記送信されたパケットを前記通信回線にそれぞれ通知
する受信側スイッチインタフェースと、 前記送信側スイッチインタフェースに前記受信したパケ
ットの先頭アドレスが入力してから、前記受信側スイッ
チインタフェースにより、前記検索された送先スロット
が通知されるまでの時間によってメモリリークの発生を
検出し、前記受信側スイッチインタフェースにドロップ
指示を行うメモリリーク検出回路とを備え、前記送信側
スイッチインタフェースは前記受信側スイッチインタフ
ェースから前記ドロップ指示に基づくドロップ通知を受
けると、前記メモリの当該メモリ領域を開放することを
特徴とするルータ。
2. A router in which a plurality of line cards connected to a communication line and a routing table search card for searching a destination slot of a packet received by the line card from the communication line are interconnected by a crossbar switch. Each of the line cards includes a memory for storing a packet received from the communication line, a routing table search card for a head address of the received packet for searching for the destination slot, and a search for the received packet. A transmission-side switch interface for transmitting to the destination slot via the crossbar switch, and the retrieved destination slot received via the cross-bus switch to the transmission-side switch interface,
A receiving switch interface for notifying the transmitted packet to the communication line, and a head address of the received packet is input to the transmitting switch interface. A memory leak detection circuit for detecting the occurrence of a memory leak by the time until the destination slot is notified, and issuing a drop instruction to the receiving switch interface. Upon receiving a drop notification based on an instruction, the router releases the memory area of the memory.
【請求項3】 前記メモリリーク検出回路は、前記送信
側スイッチインタフェースに前記受信したパケットの先
頭アドレスが入力してから、前記受信側スイッチインタ
フェースにより、前記検索された送先スロットが通知さ
れるまでの時間によってメモリリークの発生を検出する
のに代えて、前記メモリに格納されている受信パケット
の量によってメモリリークの発生を検出することを特徴
とする請求項2に記載のルータ。
3. The memory leak detection circuit according to claim 1, wherein: a head address of the received packet is input to the transmission-side switch interface until the received destination slot is notified by the reception-side switch interface. 3. The router according to claim 2, wherein instead of detecting the occurrence of a memory leak based on the time, the occurrence of a memory leak is detected based on the amount of received packets stored in the memory.
【請求項4】 通信回線に接続された複数のラインカー
ドと、該ラインカードが前記通信回線から受信したパケ
ットの送先スロットを検索するルーティングテーブル検
索カードとをクロスバスイッチで相互接続したルータに
おけるメモリリーク保護方法であって、 通信回線から受信したパケットをメモリに格納する手順
と、 前記ラインカードの送信側スイッチインタフェースが、
前記送先スロットの検索のために前記受信したパケット
の先頭アドレスを前記クロスバスイッチ経由で前記ルー
ティングテーブル検索カードに送信する手順と、 前記ルーティングテーブル検索カードが前記先頭アドレ
スによって前記送先スロットを検索する手順と、 前記ラインカードの受信側スイッチインタフェースが、
前記検索された送先スロットを前記クロスバスイッチ経
由で受信して前記送信側スイッチインタフェースに通知
する手順と、 前記送信側スイッチインタフェースが、前記メモリに格
納されたパケットを前記送先スロットに宛て前記クロス
バスイッチ経由で送信する手順と、 前記受信側スイッチインタフェースが、前記送信された
パケットを前記クロスバスイッチ経由で受信すると前記
通信回線に送信する手順と、 メモリリーク検出回路が、前記送信側スイッチインタフ
ェースに前記受信したパケットの先頭アドレスが入力し
てから、前記受信側スイッチインタフェースにより、前
記検索された送先スロットが通知されるまでの時間によ
ってメモリリークの発生を検出してドロップ指示を行う
手順と、 前記受信側スイッチインタフェースが、前記ドロップ指
示に基づき前記送信側スイッチインタフェースにドロッ
プ通知を行う手順と、 前記送信側スイッチインタフェースは該ドロップ通知を
受けると、前記メモリの当該メモリ領域を開放する手順
とを有することことを特徴とするメモリリーク保護方
法。
4. A memory in a router in which a plurality of line cards connected to a communication line and a routing table search card for searching a destination slot of a packet received by the line card from the communication line are interconnected by a crossbar switch. A leak protection method, comprising: storing a packet received from a communication line in a memory; and
Transmitting a head address of the received packet to the routing table search card via the crossbar switch to search for the destination slot; and the routing table search card searches the destination slot based on the head address. Procedure, the receiving switch interface of the line card,
Receiving the retrieved destination slot via the crossbar switch and notifying the transmitting side switch interface, the transmitting side switch interface directs the packet stored in the memory to the destination slot, and A step of transmitting via a switch; a step of transmitting the packet to the communication line when the receiving side switch interface receives the transmitted packet via the crossbar switch; and A step of detecting the occurrence of a memory leak and instructing a drop instruction by the time from when the head address of the received packet is input until the notified destination slot is notified by the receiving-side switch interface; The receiving switch interface is A step of performing a drop notification to the transmission-side switch interface based on the drop instruction; and a step of releasing the memory area of the memory when the transmission-side switch interface receives the drop notification. Memory leak protection method.
【請求項5】 前記メモリリーク検出回路が、前記送信
側スイッチインタフェースに前記受信したパケットの先
頭アドレスが入力してから、前記受信側スイッチインタ
フェースにより、前記検索された送先スロットが通知さ
れるまでの時間によってメモリリークの発生を検出して
ドロップ指示を行う手順に代えて、前記メモリリーク検
出回路が、前記メモリに格納されている受信パケットの
量によってメモリリークの発生を検出してドロップ指示
を行う手順を有することことを特徴とする請求項4に記
載のメモリリーク保護方法。
5. The memory leak detection circuit according to claim 1, wherein a start address of the received packet is input to the transmission-side switch interface, and the memory switch detection circuit notifies the searched destination slot by the reception-side switch interface. The memory leak detection circuit detects the occurrence of a memory leak based on the amount of received packets stored in the memory and issues a drop instruction in place of the procedure of detecting the occurrence of a memory leak based on the time and performing the drop instruction. 5. The memory leak protection method according to claim 4, further comprising a step of performing the procedure.
【請求項6】 請求項4または請求項5に記載のメモリ
リーク保護方法をコンピュータに実行させるためのプロ
グラムを記録したコンピュータ読み込み可能な記録媒
体。
6. A computer-readable recording medium on which a program for causing a computer to execute the memory leak protection method according to claim 4 or 5 is recorded.
JP2000183398A 2000-06-19 2000-06-19 Router and method for protecting memory from leakage Pending JP2002009827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000183398A JP2002009827A (en) 2000-06-19 2000-06-19 Router and method for protecting memory from leakage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000183398A JP2002009827A (en) 2000-06-19 2000-06-19 Router and method for protecting memory from leakage

Publications (1)

Publication Number Publication Date
JP2002009827A true JP2002009827A (en) 2002-01-11

Family

ID=18683990

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000183398A Pending JP2002009827A (en) 2000-06-19 2000-06-19 Router and method for protecting memory from leakage

Country Status (1)

Country Link
JP (1) JP2002009827A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012144041A1 (en) * 2011-04-20 2012-10-26 富士通株式会社 Relay apparatus and recovery method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012144041A1 (en) * 2011-04-20 2012-10-26 富士通株式会社 Relay apparatus and recovery method
JP5585725B2 (en) * 2011-04-20 2014-09-10 富士通株式会社 Relay device and recovery method
US9465701B2 (en) 2011-04-20 2016-10-11 Fujitsu Limited Relay device and recovery method

Similar Documents

Publication Publication Date Title
US6181705B1 (en) System and method for management a communications buffer
JP3935880B2 (en) Hybrid search memory for network processors and computer systems
EP2306322A1 (en) Method for processing data packets in flow-aware network nodes
CN103942252B (en) A kind of method and system for recovering data
US7441268B2 (en) Method and apparatus to manage exceptions in network processors
JP5094460B2 (en) Computer system, data matching method, and data matching processing program
US8391167B2 (en) Method to precisely and securely determine propagation delay and distance between sending and receiving node in packet network and packet network node system for executing the method
WO2006062328A1 (en) Retransmission and delayed ack timer management logic for tcp protocol
CN110399348A (en) File deletes method, apparatus, system and computer readable storage medium again
CN107329859A (en) A kind of data guard method and storage device
JP2002009827A (en) Router and method for protecting memory from leakage
US6629226B1 (en) Fifo read interface protocol
JP5430369B2 (en) Buffer memory device and buffering method
JPH10271113A (en) Fault tracing method and fault tracing device for realizing the method
US6810098B1 (en) FIFO read interface protocol
JP2008085886A (en) Packet processing apparatus, packet processing method, and packet processing program
JP2002252635A (en) Data communication system, data relay device and data relay method
JP3730642B2 (en) Attack packet detection apparatus and method
JPH1196091A (en) Method and device for controlling communication and recording medium recording communication control program
JP2001326683A (en) Packet switchboard, packet switching method
JP2790112B2 (en) Instantaneous interruption switching device and switching method of delay priority control buffer
JP2002057712A (en) Memory leakage recovery method for packet memory and buffer processing unit
JP3562371B2 (en) ATM cell processing system, processing method, and recording medium
JPH11163924A (en) Electronic mail system and recording medium for recording address managing program of the same
JP3812231B2 (en) First-in first-out memory read waiting time excess cell discard circuit and cell discard method