JP2856095B2 - Caching method for cell / packet translation module - Google Patents

Caching method for cell / packet translation module

Info

Publication number
JP2856095B2
JP2856095B2 JP5407395A JP5407395A JP2856095B2 JP 2856095 B2 JP2856095 B2 JP 2856095B2 JP 5407395 A JP5407395 A JP 5407395A JP 5407395 A JP5407395 A JP 5407395A JP 2856095 B2 JP2856095 B2 JP 2856095B2
Authority
JP
Japan
Prior art keywords
packet
cell
cache memory
management information
value
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
JP5407395A
Other languages
Japanese (ja)
Other versions
JPH07307746A (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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP5407395A priority Critical patent/JP2856095B2/en
Publication of JPH07307746A publication Critical patent/JPH07307746A/en
Application granted granted Critical
Publication of JP2856095B2 publication Critical patent/JP2856095B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】この発明はセル・パケット変換モ
ジュールのキャッシング方法に関し、特に、ATM網を
介してLAN間を中継する場合などに用いられ、パケッ
トとセルとを変換する機能を有するセル・パケット変換
モジュールにおけるキャッシング方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a caching method for a cell / packet conversion module, and more particularly to a cell / packet conversion module having a function of converting a packet to a cell, which is used for relaying between LANs via an ATM network. The present invention relates to a caching method in a packet conversion module.

【0002】[0002]

【従来の技術】ATM網(非同期転送モード)は、すべ
ての情報を5バイトのヘッダと48バイトの情報フィー
ルドとからなる53バイトの固定長のセルに変換して伝
送するものであり、ATM交換システムでは、従来の回
線交換網とパケット交換網の長所を取入れて高速に処理
することができる。
2. Description of the Related Art In an ATM network (asynchronous transfer mode), all information is converted into a fixed-length cell of 53 bytes consisting of a 5-byte header and a 48-byte information field and transmitted. The system can process at high speed by taking advantage of the conventional circuit switching network and packet switching network.

【0003】図6はATM交換システムの概略ブロック
図である。図6において、LAN1で発生したパケット
情報をLAN2に伝送する場合、LAN1からのパケッ
ト情報がP−C変換装置3に与えられ、P−C変換装置
3ではパケット情報を伝送すべき通信路(コネクショ
ン)ごとに並べ、コネクションごとに決められた送信レ
ートに基づいてセルに分割する。そして、P−C変換装
置3は分割したそれぞれのセルの先頭に宛先などを示す
ヘッダを付加し、ATM交換網4に送出する。ATM交
換網4はセルに含まれるヘッダの内容を参照して、高速
にセルを振分け、C−P変換装置5に届ける。C−P変
換装置5はセルをパケットに戻し、LAN2に送り出
す。もし、複数のコネクションが同じ送信レートでパケ
ットを送信する場合、それぞれのコネクション別のパケ
ット行列の先頭のパケットを巡回して1セルずつ分割し
て送信することになる。図6に示したP−C変換装置3
とC−P変換装置5において、セル・パケット変換を行
なうためにキャッシングの技術が用いられる。すなわ
ち、キャッシングの技術はセル・パケット変換の際にパ
ケットの管理情報であるパケット情報を必要とするセル
・パケット変換モジュールの内容に、限られた数のパケ
ット情報を持ち、すべてパケット情報を持つデータベー
スへの直接の検索の回数を減らすことで行なわれる。す
なわち、データベースにはすべてのパケットを処理する
ための管理情報が登録されており、キャッシングメモリ
には、データベース内の管理情報の一部が記憶される。
FIG. 6 is a schematic block diagram of an ATM switching system. In FIG. 6, when packet information generated in LAN1 is transmitted to LAN2, packet information from LAN1 is given to PC conversion device 3, and PC conversion device 3 transmits the packet information to a communication path (connection). ), And is divided into cells based on the transmission rate determined for each connection. Then, the PC converter 3 adds a header indicating a destination or the like to the head of each of the divided cells, and transmits the cells to the ATM switching network 4. The ATM switching network 4 refers to the contents of the header included in the cell, sorts the cell at high speed, and delivers it to the CP converter 5. The CP converter 5 returns the cell to a packet and sends it out to the LAN 2. If a plurality of connections transmit packets at the same transmission rate, the first packet in the packet matrix for each connection is circulated and transmitted one cell at a time. PC conversion device 3 shown in FIG.
And the CP converter 5 use a caching technique to perform cell / packet conversion. That is, the caching technique uses a database having a limited number of packet information and all packet information in the contents of the cell / packet conversion module that requires packet information as packet management information at the time of cell / packet conversion. This is done by reducing the number of direct searches to. That is, management information for processing all packets is registered in the database, and a part of the management information in the database is stored in the caching memory.

【0004】図7は従来のパケットの管理情報のキャッ
シングのエントリの内容を示す図である。図7に示すよ
うに、それぞれのパケットごとのエントリには、各パケ
ットを識別するための識別子とパケットの情報とエント
リが登録された時間を示すタイムスタンプが登録されて
いる。また、それぞれのエントリごとにそのエントリが
無効であるかを示す無効フラグが設けられている。
FIG. 7 is a diagram showing the contents of an entry for caching the conventional packet management information. As shown in FIG. 7, in the entry for each packet, an identifier for identifying each packet, information of the packet, and a time stamp indicating the time when the entry was registered are registered. Further, an invalid flag indicating whether the entry is invalid is provided for each entry.

【0005】セル・パケット変換モジュールは、セルを
分割、セルをパケットに組立を行うごとにキャッシュメ
モリの内容を検索する。そのセルが属するパケットの識
別子がキャッシュメモリに登録されている場合には、そ
のパケット情報を取出してパケットをセルに分割して送
信,セルをパケットに組立て受信が行なわれる。セルが
属するパケットの識別子がキャッシュメモリに登録され
ていない場合は、すべてのパケットのパケット情報を持
つデータベースからそのパケットの情報が読込まれ、パ
ケットをセルに分割して送信,セルをパケットに組立て
受信が行なわれる。
The cell-to-packet conversion module searches the contents of the cache memory every time a cell is divided and a cell is assembled into packets. If the identifier of the packet to which the cell belongs is registered in the cache memory, the packet information is taken out, the packet is divided into cells and transmitted, and the cells are assembled into packets and received. If the identifier of the packet to which the cell belongs is not registered in the cache memory, the information of the packet is read from the database having the packet information of all the packets, the packet is divided into cells and transmitted, and the cells are assembled into packets and received. Is performed.

【0006】図8は従来から用いられているキャッシュ
メモリへの登録判定を説明するためのフローチャートで
ある。図8においてステップ(図示ではSPと略称す
る)SP1において、データベースからパケットのパケ
ット情報が読込まれると、ステップSP2においてキャ
ッシュメモリに無効フラグがセットさせたエントリがあ
るか否かが判断される。もしも、無効フラグがセットさ
れたエントリがあれば、ステップSP3に進み、新しく
読込んだパケット情報をキャッシュメモリに登録する。
一方、無効フラグがセットされたエントリがなければ、
ステップSP4において、最も古いタイムスタンプのエ
ントリが削除される。そして、ステップSP5におい
て、新たに読込んだパケット情報がその削除したエント
リ領域に登録される。すなわち、キャッシュメモリのエ
ントリが一杯の場合には、登録されているエントリの中
で最もタイムスタンプが古いエントリをキャッシュメモ
リから削除し、新たに読込んだパケット情報がそのエン
トリに登録される。
FIG. 8 is a flow chart for explaining the registration judgment to the cache memory which has been used conventionally. In FIG. 8, when the packet information of the packet is read from the database in step (abbreviated as SP in FIG. 8) SP1, it is determined whether or not there is an entry in which the invalid flag is set in the cache memory in step SP2. If there is an entry with an invalid flag set, the process proceeds to step SP3, and the newly read packet information is registered in the cache memory.
On the other hand, if there is no entry with the invalid flag set,
In step SP4, the entry with the oldest time stamp is deleted. Then, in step SP5, the newly read packet information is registered in the deleted entry area. That is, when the cache memory entry is full, the entry with the oldest time stamp among the registered entries is deleted from the cache memory, and the newly read packet information is registered in the entry.

【0007】[0007]

【発明が解決しようとする課題】上述の従来の方法で
は、キャッシュメモリのエントリ数を越える複数のパケ
ットを同時に一定間隔で分割・組立てを行なう場合、そ
れぞれのパケットを順番に1セルずつ分割・組立てを行
うため、キャッシュメモリのエントリが一杯の場合最も
タイムスタンプの古いエントリを削除し、新たに読込ん
できた情報を登録する必要がある。このため、キャッシ
ュメモリに常に該当するエントリがない状態が起こり得
る。
In the above-mentioned conventional method, when a plurality of packets exceeding the number of entries in the cache memory are simultaneously divided and assembled at regular intervals, each packet is divided and assembled one cell at a time in order. Therefore, when the entries in the cache memory are full, it is necessary to delete the entry with the oldest time stamp and register the newly read information. For this reason, a state may occur in which there is no corresponding entry in the cache memory.

【0008】例を掲げて説明すると、キャッシュメモリ
のエントリ数がたとえば3つまでであって、同時に4つ
のパケットA,B,C,Dを分割しようとした場合、分
割する間隔が一定間隔であれば、A→B→C→D→Aの
順で各パケットの先頭から順次セルへの分割を繰返す必
要がある。このため、Dのパケットを分割する場合、キ
ャッシュメモリにはA,B,Cのパケットがエントリさ
れているだけであるため、Dのパケット情報をデータベ
ースから読込むと、最もタイムスタンプが古いAのパケ
ットのエントリを削除し、Dのパケット情報を登録する
必要がある。そして、次には再びAのパケットの分割が
行なわれるが、このときにはAのパケットはキャッシュ
メモリにエントリされていないため、外部データベース
からパケット情報を読込むことになる。この動作が繰返
されるため、キャッシュメモリが全く効果を持たなくな
ってしまうという問題点がある。
For example, when the number of entries in the cache memory is, for example, up to three and four packets A, B, C, and D are to be divided at the same time, if the division interval is constant. For example, it is necessary to repeat division into cells sequentially from the head of each packet in the order of A → B → C → D → A. For this reason, when the packet of D is divided, only the packets of A, B, and C are entered in the cache memory. When the packet information of D is read from the database, the packet of A with the oldest time stamp is obtained. Must be deleted and the packet information of D must be registered. Then, the packet of A is divided again. At this time, since the packet of A is not entered in the cache memory, the packet information is read from the external database. Since this operation is repeated, there is a problem that the cache memory has no effect at all.

【0009】それゆえに、この発明の主たる目的は、キ
ャッシュメモリの効果を高めることができるセル・パケ
ット変換モジュールのキャッシング方法を提供すること
である。
SUMMARY OF THE INVENTION Therefore, a main object of the present invention is to provide a method for caching a cell / packet conversion module which can enhance the effect of a cache memory.

【0010】[0010]

【課題を解決するための手段】請求項1に係る発明は、
パケットを処理するための管理情報を記憶するデータベ
ースと、データベースに記憶されている管理情報のうち
の一部の管理情報を記憶するキャッシュメモリとを含
み、パケットをセルに分割またはセルをパケットとして
組立てるときに、キャッシュメモリを検索し、そのセル
が属するパケットの管理情報が登録されていれば、その
パケットをセルに分割またはセルをパケットとして組立
て、管理情報が登録されていなければデータベースから
別の管理情報を読出し、キャッシュメモリに記憶させる
セル・パケット変換モジュールにおいて、キャッシュメ
モリの各エリアはある開始値を持ち、一定時間ごとに値
を減少させ、そのエリアがセル分割のために参照された
ときに再び開始値にセットされ、値が所定の値のときに
タイムアップフラグをセットするタイマを含み、データ
ベースから別の管理情報を読出してキャッシュメモリに
記憶させるとき、タイムアップフラグのセットされてい
るエリアにその管理情報を登録させ、タイムアップフラ
グのセットされているエリアがなければ、その管理情報
をキャッシュメモリに登録しないようにしたものであ
る。
The invention according to claim 1 is
Includes a database that stores management information for processing packets, and a cache memory that stores some management information among the management information stored in the database, and divides packets into cells or assembles cells as packets. When the cache memory is searched, if the management information of the packet to which the cell belongs is registered, the packet is divided into cells or the cell is assembled as a packet. If the management information is not registered, another management from the database is performed. In the cell / packet conversion module for reading information and storing the information in the cache memory, each area of the cache memory has a certain starting value, and the value is reduced at regular intervals, and when the area is referred to for cell division. Set to the starting value again, and when the value is the specified value, the time-up flag Including a set timer, when another management information is read from the database and stored in the cache memory, the management information is registered in the area where the time-up flag is set, and there is no area where the time-up flag is set. For example, the management information is not registered in the cache memory.

【0011】請求項2に係る発明は、キャッシュメモリ
のエリアが一杯で新たなデータが追加できなかった場合
に、請求項1のタイマの開始値を減少させ、タイマの値
が所定の値になる時間を徐々に短くする。
According to a second aspect of the present invention, when the area of the cache memory is full and new data cannot be added, the start value of the timer of the first aspect is reduced, and the value of the timer becomes a predetermined value. Reduce the time gradually.

【0012】請求項3に係る発明は、キャッシュメモリ
の登録ができないという事象が、ある時間の間発生しな
かった場合に、請求項2のタイマの開始値を増加させ、
タイマの値が所定の値になる時間を徐々に長くする。
According to a third aspect of the invention, when the event that the cache memory cannot be registered has not occurred for a certain period of time, the start value of the timer of the second aspect is increased,
The time when the value of the timer becomes a predetermined value is gradually increased.

【0013】[0013]

【0014】[0014]

【0015】[0015]

【作用】請求項1に係る発明は、キャッシュメモリの各
エリアには、ある開始値を持ち、一定時間ごとに値を減
少させ、そのエリアがセル分割のために参照されたとき
に再び開始値にセットされ、値が所定の値のときにタイ
ムアップフラグをセットするタイマを設け、データベー
スから別の管理情報を読出してキャッシュメモリに記憶
させるとき、タイムアップフラグのセットされているエ
リアに管理情報を登録し、タイムアップフラグのセット
されているエリアがなければその管理情報をキャッシュ
メモリに登録しないようにすることにより、複数のパケ
ットの分割,組立を同時に一定間隔で行なう場合にも、
キャッシュメモリとしての効果を持つことができる。
According to the first aspect of the present invention, each area of the cache memory has a certain start value, the value is reduced at regular intervals, and when the area is referred to for cell division, the start value is again set. A timer is provided for setting a time-up flag when the value is a predetermined value. When another management information is read from the database and stored in the cache memory, the management information is stored in an area where the time-up flag is set. And if the management information is not registered in the cache memory unless there is an area in which the time-up flag is set, even when dividing and assembling a plurality of packets simultaneously at a constant interval,
It can have an effect as a cache memory.

【0016】請求項2に係る発明では、キャッシュメモ
リが一杯でパケット情報を登録できなかった場合、徐々
にタイマの開始値を小さくすることにより、送信レート
が高いパケットほどキャッシュメモリのエントリに存在
する確率が高まり、キャッシュの効果を向上できる。
According to the second aspect of the present invention, when the packet information cannot be registered because the cache memory is full, the start value of the timer is gradually reduced, so that a packet having a higher transmission rate is present in the entry of the cache memory. The probability increases, and the effect of the cache can be improved.

【0017】請求項3に係る発明では、キャッシュメモ
リの登録ができないという事象が発生しない場合、キャ
ッシュメモリのタイマ開始値を増やすことにより、各パ
ケット情報がキャッシュメモリに登録されている時間が
延び、キャッシュメモリの効果を向上できる。
According to the third aspect of the invention, when the event that the cache memory cannot be registered does not occur, the time when each packet information is registered in the cache memory is extended by increasing the timer start value of the cache memory, The effect of the cache memory can be improved.

【0018】[0018]

【0019】[0019]

【実施例】図1はこの発明の一実施例のP−C,C−P
変換装置のブロック図である。図1において、P−C,
C−P変換装置30は、内部バス31に接続されたCP
U32とデータベース33とLANインタフェース36
とセル・パケット変換モジュール35とを含み、さらに
セル・パケット変換モジュール35に接続されるパケッ
ト蓄積用メモリ34とATMインタフェース37とを含
む。LANインタフェース36にはLAN1が接続さ
れ、ATMインタフェース37にはATM網4が接続さ
れる。データベース33はすべてのパケットのパケット
情報を蓄積し、パケット蓄積用メモリ34はパケット本
体を蓄積する。セル・パケット変換モジュール35はこ
の発明によるキャッシング方法が採用されたキャッシュ
メモリ38を含む。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a PC, CP according to an embodiment of the present invention.
It is a block diagram of a converter. In FIG. 1, PC,
The CP converter 30 is connected to the CP connected to the internal bus 31.
U32, database 33 and LAN interface 36
And a cell / packet conversion module 35, and further includes a packet storage memory 34 and an ATM interface 37 connected to the cell / packet conversion module 35. The LAN 1 is connected to the LAN interface 36, and the ATM network 4 is connected to the ATM interface 37. The database 33 stores the packet information of all the packets, and the packet storage memory 34 stores the packet itself. The cell / packet conversion module 35 includes a cache memory 38 in which the caching method according to the present invention is employed.

【0020】図2は図1に示したセル・パケット変換モ
ジュール35の具体的なブロック図である。図2におい
て、セル・パケット変換モジュール35は、キャッシュ
メモリ38とパケット・セル変換コア40とタイマ開始
値モジュール41とを含む。キャッシュメモリ38は、
パケット識別子381とパケット情報382とタイマ3
83と無効フラグ384とタイムアップフラグ385と
をエントリするためのエリアを含む。パケット・セル変
換コア40はキャッシュメモリ38に登録されているエ
ントリを参照してパケット情報をセルに変換するもので
あり、タイマ開始値モジュール41はパケット・セル変
換コア40からの要求に応じて、タイマ383の開始値
を増減する。
FIG. 2 is a specific block diagram of the cell / packet conversion module 35 shown in FIG. 2, the cell / packet conversion module 35 includes a cache memory 38, a packet / cell conversion core 40, and a timer start value module 41. The cache memory 38
Packet identifier 381, packet information 382, and timer 3
83, an area for entering an invalid flag 384, and a time-up flag 385. The packet / cell conversion core 40 converts the packet information into cells by referring to the entries registered in the cache memory 38, and the timer start value module 41 responds to a request from the packet / cell conversion core 40, The start value of the timer 383 is increased or decreased.

【0021】図3は図2に示したパケット・セル変換コ
ア40の動作を説明するためのフローチャートであり、
図4はキャッシュメモリ38内のタイマの動作を説明す
るためのフローチャートであり、図5はタイマ開始値モ
ジュール41の動作を説明するためのフローチャートで
ある。
FIG. 3 is a flowchart for explaining the operation of the packet / cell conversion core 40 shown in FIG.
FIG. 4 is a flowchart for explaining the operation of the timer in the cache memory 38, and FIG. 5 is a flowchart for explaining the operation of the timer start value module 41.

【0022】次に、図1〜図5を参照して、この発明の
一実施例の具体的な動作について説明する。まず、図1
に示したLAN1からLANインタフェース36を介し
て受信されたパケットは、パケット蓄積用メモリ34に
記憶される。CPU32はそのパケットの宛先アドレス
からATM網4に通信するパケットであるか否かを判別
する。ATM網4に通信するパケットである場合には、
CPU32はそのパケットのパケット情報をデータベー
ス33に登録し、パケットのATM網4への送信要求
を、パケット識別子をセル・パケット変換モジュール3
5へ渡すことによって行なう。セル・パケット変換モジ
ュール35は、コネクションごとにそのパケットの識別
子を並べ、設定されたレートに基づいてパケットをセル
に分割し、ATM網4へそのセルを送信する。
Next, a specific operation of one embodiment of the present invention will be described with reference to FIGS. First, FIG.
The packet received from the LAN 1 through the LAN interface 36 is stored in the packet storage memory 34. The CPU 32 determines from the destination address of the packet whether the packet is for communication with the ATM network 4 or not. If the packet is to be transmitted to the ATM network 4,
The CPU 32 registers the packet information of the packet in the database 33, sends a packet transmission request to the ATM network 4, and transmits the packet identifier to the cell / packet conversion module 3.
Perform by passing to 5. The cell / packet conversion module 35 arranges the identifier of the packet for each connection, divides the packet into cells based on the set rate, and transmits the cells to the ATM network 4.

【0023】ここで、セル・パケット変換モジュール3
5がパケット情報をセルに分割する動作についてより詳
細に説明する。CPU4からセル・パケット変換モジュ
ール35にパケットの送信要求が与えられると、パケッ
ト・セル変換コア40は図3に示す処理を実行する。す
なわち、パケット・セル変換コア40は、ステップSP
11において、パケット・セル変換処理起動を行ない、
ステップSP12において、キャッシュメモリ38を検
索し、分割を行なおうとしているパケットに対応するエ
ントリがキャッシュメモリ38に登録されているか否か
を判別する。そのエントリが登録されていれば、ステッ
プSP13において、キャッシュメモリ38からパケッ
ト情報382を読出し、ステップSP50においてパケ
ットの最後のセルであるか否かを判別する。最後のセル
でなければ、ステップSP14においてそのエントリに
対応するタイマ383を開始値にするための要求をタイ
マ開始値モジュール41に与える。もし、変換を行なっ
たセルが最後であれば、ステップSP51において読出
したエントリを無効にする。
Here, the cell / packet conversion module 3
The operation of No. 5 for dividing packet information into cells will be described in more detail. When a packet transmission request is given from the CPU 4 to the cell / packet conversion module 35, the packet / cell conversion core 40 executes the processing shown in FIG. That is, the packet / cell conversion core 40 performs step SP
At 11, packet / cell conversion processing is started,
In step SP12, the cache memory 38 is searched to determine whether or not an entry corresponding to the packet to be divided is registered in the cache memory 38. If the entry is registered, the packet information 382 is read from the cache memory 38 at step SP13, and it is determined at step SP50 whether or not the packet is the last cell of the packet. If it is not the last cell, a request to set the timer 383 corresponding to the entry to a start value is given to the timer start value module 41 in step SP14. If the converted cell is the last cell, the entry read in step SP51 is invalidated.

【0024】タイマ開始値モジュール41は、タイマ開
始値をキャッシュメモリ38に与える。キャッシュメモ
リ38内のタイマ383は図4に示すステップSP21
において、開始値をセットする。パケット・セル変換コ
ア40は図3に示すステップSP15において、パケッ
ト情報382を用いてパケットをセルに変換する。変換
されたセルは、図1に示すATMインタフェース37を
介してATM網4に送出される。その後、タイマ383
は、ステップSP22においてタイマ値を−1し、ステ
ップSP23においてタイマ値が0になったか否かを判
別し、0でなければ再びステップSP22でタイマ値を
−1する。タイマ値が0であれば、ステップSP24に
おいてそのエントリのタイムアップフラグ385を立て
る。
The timer start value module 41 gives the timer start value to the cache memory 38. The timer 383 in the cache memory 38 is set at the step SP21 shown in FIG.
In, a starting value is set. The packet / cell conversion core 40 converts the packet into a cell using the packet information 382 in step SP15 shown in FIG. The converted cells are sent to the ATM network 4 via the ATM interface 37 shown in FIG. Then, the timer 383
In step SP22, the timer value is decremented by one, and in step SP23, it is determined whether the timer value has become 0. If not, the timer value is decremented by one again in step SP22. If the timer value is 0, the time-up flag 385 of the entry is set in step SP24.

【0025】パケット・セル変換コア40は前述のステ
ップSP12において分割を行なおうとしているパケッ
トに対応するエントリが登録されていないことを判別し
たときにはステップSP16において、すべてのパケッ
ト情報が登録されているデータベース33からそのパケ
ットに対応するパケット情報を読出す。そして、ステッ
プSP52において、変換を行ったセルがパケットの最
後であるか否かを判別し、最後であればステップSP1
5においてパケット・セル変換を行ない、パケットの最
後でなければステップSP17において、キャッシュメ
モリ38を検索し、無効フラグがセットされているエン
トリがあるか否かを判別する。無効フラグのセットされ
ているエントリがある場合には、ステップSP18にお
いて、その無効フラグがセットされたエントリに、新た
に読込んだパケット情報を登録し、無効フラグ384を
クリアする。ステップSP17において無効なエントリ
のないことを判別すると、ステップSP53においてキ
ャッシュメモリ83を検索し、タイムアップフラグ38
5のセットされているエントリがあるか否かを判別す
る。タイムアップフラグ385のセットされているエン
トリがある場合は、ステップSP54においてそのタイ
ムアップフラグ385のセットされているエントリに、
新たに読込んだパケット情報を登録し、タイムアップフ
ラグ385をクリアする。その後前述の説明と同様にし
て、ステップSP14およびSP15の動作を実行す
る。
When the packet / cell conversion core 40 determines that the entry corresponding to the packet to be divided is not registered in step SP12, all the packet information is registered in step SP16. The packet information corresponding to the packet is read from the database 33. Then, in step SP52, it is determined whether or not the converted cell is the last cell of the packet.
The packet / cell conversion is performed in step 5, and if not the end of the packet, the cache memory 38 is searched in step SP17 to determine whether or not there is an entry for which the invalid flag is set. If there is an entry with an invalid flag set, in step SP18, the newly read packet information is registered in the entry with the invalid flag set, and the invalid flag 384 is cleared. If it is determined in step SP17 that there is no invalid entry, the cache memory 83 is searched in step SP53, and the time-up flag 38
It is determined whether or not there is an entry in which 5 is set. If there is an entry in which the time-up flag 385 is set, the entry in which the time-up flag 385 is set is set in step SP54.
The newly read packet information is registered, and the time-up flag 385 is cleared. Thereafter, the operations of steps SP14 and SP15 are executed in the same manner as described above.

【0026】ステップSP53において、キャッシュメ
モリ38にタイムアップフラグ385のセットされてい
るエントリがない場合には、キャッシュメモリ38のエ
ントリが一杯であることを意味し、この場合はステップ
SP19において新たに読込んだパケット情報をキャッ
シュメモリ38に登録せず、ステップSP20におい
て、タイマ開始値減少要求をタイマ開始値モジュール4
1に与える。
If there is no entry in the cache memory 38 in which the time-up flag 385 is set in step SP53, it means that the entry in the cache memory 38 is full. In this case, a new read is performed in step SP19. In step SP20, the timer start value reduction request is sent to the timer start value module 4
Give to 1.

【0027】タイマ開始値モジュール41はタイマ開始
値減少要求があったことに応じて、図5に示す動作を実
行する。すなわち、タイマ開始値モジュール41はそれ
以前にステップSP31において初期値を設定してお
り、ステップSP32において時間を初期化している。
そして、パケット・セル変換コア40から減少要求が与
えられると、ステップSP33において減少要求のあっ
たことを判別し、ステップSP34においてタイマ38
3のタイマ開始値を減少させる。具体的には、タイマ開
始値がたとえば半分に減少される。なお、タイマ開始値
モジュール41は、ステップSP35において一定時間
アイドル状態になったか否か、すなわちキャッシュメモ
リ38への登録ができないという事象が、ある時間の間
で発生しなかった場合には、ステップSP36において
タイマの開始値を増加させる。具体的には、タイマの開
始値を倍にする。それによって、各パケット情報がキャ
ッシュメモリ38に登録されている時間が伸び、キャッ
シングの効果を向上できる。
The timer start value module 41 executes the operation shown in FIG. 5 in response to the timer start value decrease request. That is, the timer start value module 41 has previously set the initial value in step SP31, and has initialized the time in step SP32.
Then, when a decrease request is given from the packet / cell conversion core 40, it is determined in step SP33 that a decrease request has been made, and in step SP34, the timer 38
Decrease the timer start value of 3. Specifically, the timer start value is reduced to, for example, half. It should be noted that the timer start value module 41 determines in step SP35 whether or not an idle state has been maintained for a certain period of time, that is, if the event that registration to the cache memory 38 cannot be performed has not occurred within a certain period of time, the process proceeds to step SP36. In, the start value of the timer is increased. Specifically, the start value of the timer is doubled. As a result, the time during which each piece of packet information is registered in the cache memory 38 is increased, and the effect of caching can be improved.

【0028】[0028]

【発明の効果】以上のように、この発明によれば、キャ
ッシュメモリの各エリアには、ある開始値を持ち、一定
時間ごとに値を減少させ、そのエリアがセル分割のため
に参照されたときに再び開始値にセットされ、値が所定
の値のときにタイムアップフラグをセットするタイマを
設け、データベースから別の管理情報を読出してキャッ
シュメモリに記憶させるとき、タイムアップフラグのセ
ットされているエリアに管理情報を登録し、タイムアッ
プフラグのセットされているエリアがなければその管理
情報をキャッシュメモリに登録しないようにすることに
より、複数のパケットの分割,組立を同時に一定間隔で
行なう場合にも、キャッシュメモリとしての効果を持つ
ことができる。
As described above, according to the present invention, each area of the cache memory has a certain starting value, and the value is reduced at regular intervals, and the area is referred to for cell division. When the timer is set to the start value again and a time-up flag is set when the value is a predetermined value, the time-up flag is set when another management information is read from the database and stored in the cache memory. When dividing and assembling a plurality of packets at a certain interval at the same time by registering the management information in the area where the Also, the effect as a cache memory can be obtained.

【0029】[0029]

【0030】[0030]

【0031】[0031]

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

【図1】この発明の一実施例のP−C,C−P変換装置
のブロック図である。
FIG. 1 is a block diagram of a PC, CP converter according to an embodiment of the present invention.

【図2】図1に示したセル・パケット変換モジュールの
具体的なブロック図である。
FIG. 2 is a specific block diagram of a cell packet conversion module shown in FIG. 1;

【図3】図2に示したパケット・セル変換コアの動作を
説明するためのフローチャートである。
FIG. 3 is a flowchart for explaining an operation of the packet / cell conversion core shown in FIG. 2;

【図4】キャッシュメモリ内のタイマの動作を説明する
ためのフローチャートである。
FIG. 4 is a flowchart illustrating the operation of a timer in a cache memory.

【図5】タイマ開始値モジュールの動作を説明するため
のフローチャートである。
FIG. 5 is a flowchart for explaining the operation of a timer start value module.

【図6】従来のATM交換システムの概略ブロック図で
ある。
FIG. 6 is a schematic block diagram of a conventional ATM switching system.

【図7】従来のセル・パケット変換モジュールにおける
キャッシュメモリのエントリを示す図である。
FIG. 7 is a diagram showing entries of a cache memory in a conventional cell / packet conversion module.

【図8】従来のセル・パケット変換モジュールのキャッ
シュメモリへの登録判定を説明するためのフローチャー
トである。
FIG. 8 is a flowchart for explaining a conventional cell / packet conversion module registration determination in a cache memory.

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

1 LAN 4 ATM網 30 P−C変換装置 31 内部バス 32 CPU 33 データベース 34 パケット蓄積用メモリ 35 セル・パケット変換モジュール 36 LANインタフェース 37 ATMインタフェース 38 キャッシュメモリ 40 パケット・セル変換コア 41 タイマ開始値モジュール DESCRIPTION OF SYMBOLS 1 LAN 4 ATM network 30 PC converter 31 Internal bus 32 CPU 33 Database 34 Packet storage memory 35 Cell / packet conversion module 36 LAN interface 37 ATM interface 38 Cache memory 40 Packet / cell conversion core 41 Timer start value module

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 パケットを処理するための管理情報を記
憶するデータベースと、 前記データベースに記憶されている管理情報のうちの一
部の管理情報を記憶するキャッシュメモリとを含み、 前記パケットをセルに分割またはセルをパケットとして
組立てるときに前記キャッシュメモリを検索し、そのセ
ルが属するパケットの管理情報が登録されていれば、前
記パケットをセルに分割またはセルをパケットとして組
立て、管理情報が登録されていなければ前記データベー
スから別の管理情報を読出して前記キャッシュメモリに
記憶させるセル・パケット変換モジュールにおいて、 前記キャッシュメモリの各エリアは、ある開始値を持
ち、一定時間ごとに値を減少させ、そのエリアがセル分
割のために参照されたときに再び開始値にセットされ、
値が所定の値のときにタイムアップフラグをセットする
タイマを含み、 前記データベースから別の管理情報を読出して前記キャ
ッシュメモリに記憶させるとき、前記タイムアップフラ
グのセットされているエリアに該管理情報を登録し、タ
イムアップフラグのセットされているエリアがなければ
該管理情報を前記キャッシュメモリに登録しないように
したことを特徴とする、セル・パケット変換モジュール
のキャッシング方法。
1. A database for storing management information for processing a packet, and a cache memory for storing a part of management information among the management information stored in the database, wherein the packet is stored in a cell. When dividing or assembling a cell as a packet, the cache memory is searched. If the management information of the packet to which the cell belongs is registered, the packet is divided into cells or the cell is assembled as a packet, and the management information is registered. If not, in the cell-packet conversion module for reading another management information from the database and storing it in the cache memory, each area of the cache memory has a certain start value, and the value is reduced at regular time intervals. Is set to the starting value again when is referenced for cell splitting,
A timer for setting a time-up flag when the value is a predetermined value; and when reading out another management information from the database and storing the same in the cache memory, the management information is stored in an area where the time-up flag is set. Characterized in that the management information is not registered in the cache memory unless there is an area in which a time-up flag is set.
【請求項2】 前記キャッシュメモリのエリアが一杯で
新たな管理情報が追加できなかった場合に、前記タイマ
の開始値を減少させ、前記タイマの値が所定の値になる
時間を徐々に短くするようにしたことを特徴とする、請
求項1に記載のセル・パケット変換モジュールのキャッ
シング方法。
2. When the area of the cache memory is full and new management information cannot be added, the start value of the timer is reduced, and the time when the value of the timer becomes a predetermined value is gradually shortened. 2. The method according to claim 1, wherein the caching is performed on the cell packet conversion module.
【請求項3】 前記キャッシュメモリの登録ができない
という事象が、ある時間の間発生しなかった場合に、前
記タイマの開始値を増加させ、前記タイマの値が所定の
値になる時間を徐々に長くすることを特徴とする、請求
項2に記載のセル・パケット変換モジュールのキャッシ
ング方法。
3. If the event that the cache memory cannot be registered has not occurred for a certain period of time, the start value of the timer is increased, and the time when the value of the timer becomes a predetermined value is gradually increased. 3. The method according to claim 2, wherein the length is increased.
JP5407395A 1994-03-14 1995-03-14 Caching method for cell / packet translation module Expired - Lifetime JP2856095B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5407395A JP2856095B2 (en) 1994-03-14 1995-03-14 Caching method for cell / packet translation module

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP6-42313 1994-03-14
JP4231394 1994-03-14
JP5407395A JP2856095B2 (en) 1994-03-14 1995-03-14 Caching method for cell / packet translation module

Publications (2)

Publication Number Publication Date
JPH07307746A JPH07307746A (en) 1995-11-21
JP2856095B2 true JP2856095B2 (en) 1999-02-10

Family

ID=26381970

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5407395A Expired - Lifetime JP2856095B2 (en) 1994-03-14 1995-03-14 Caching method for cell / packet translation module

Country Status (1)

Country Link
JP (1) JP2856095B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2849259B2 (en) * 1991-02-13 1999-01-20 三菱電機株式会社 LAN connection method by ATM network
JP3132575B2 (en) * 1991-05-07 2001-02-05 株式会社日立製作所 Packet switching device and packet switching method

Also Published As

Publication number Publication date
JPH07307746A (en) 1995-11-21

Similar Documents

Publication Publication Date Title
US8611372B2 (en) Data transfer system and method
CA2052349C (en) Communication control system using an asynchronous transfer mode network.
JP3129244B2 (en) Communication control device
US6064674A (en) Method and apparatus for hardware forwarding of LAN frames over ATM networks
US5917828A (en) ATM reassembly controller and method
US7130312B1 (en) Packet processing apparatus, packet processing method, and packet exchange
JPH06152634A (en) Transmitter by atm system and communication system
US20040105448A1 (en) Method and apparatus for hardware forwarding of LAN frames over ATM networks
US6714562B1 (en) Method and apparatus for segmenting network traffic variable length frames
US20040037233A1 (en) Time-out control apparatus, terminal unit, time-out control system and time-out procedure
US20040090967A1 (en) Method and apparatus for hardware forwarding of LAN frames over ATM networks
US5604743A (en) Method for the processing of data coming from an adaptation layer for transmission according to an ATM type asynchronous transfer mode
US6788700B1 (en) Interfacing between a network interface and a bus
JP2856095B2 (en) Caching method for cell / packet translation module
EP1384355B1 (en) Interface circuit
JP2002247097A (en) Communication controller
JPH07111507A (en) Data reception system and communication controller
US20020120888A1 (en) Network co-processor for vehicles
JP2742129B2 (en) Address filter device
JP3186707B2 (en) ATM communication controller
JP3191920B2 (en) Trunk device for interworking between frame relay and ATM
JPH10257068A (en) Atm controller and atm communication controller
JP3503725B2 (en) Information processing apparatus and method
JP3003648B2 (en) LAN emulation method on ATM
JPH08186565A (en) One-to-multiple distribution method for packet

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19981027