JP3256989B2 - Packet processing device - Google Patents

Packet processing device

Info

Publication number
JP3256989B2
JP3256989B2 JP24532391A JP24532391A JP3256989B2 JP 3256989 B2 JP3256989 B2 JP 3256989B2 JP 24532391 A JP24532391 A JP 24532391A JP 24532391 A JP24532391 A JP 24532391A JP 3256989 B2 JP3256989 B2 JP 3256989B2
Authority
JP
Japan
Prior art keywords
packet
data
layer
storage memory
packet header
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP24532391A
Other languages
Japanese (ja)
Other versions
JPH0583300A (en
Inventor
達生 小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP24532391A priority Critical patent/JP3256989B2/en
Publication of JPH0583300A publication Critical patent/JPH0583300A/en
Application granted granted Critical
Publication of JP3256989B2 publication Critical patent/JP3256989B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、パケットの分割処理を
行うパケット処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a packet processing apparatus for performing packet division processing.

【0002】[0002]

【従来の技術】従来のCCITTX.25プロトコルを
用いるパケット処理装置を図3に示す。このパケット処
理装置が収容している端末の許容パケット長より長いパ
ケットを送る時は、レイヤ3プロセッサ24がパケット
データ蓄積用メモリ26上の長いパケットをメモリコピ
ーすることで、短かいパケットにパケットヘッダ(PK
THD)を付けて完全なパケットの形を生成し、インタ
フェース用メモリ23上にパケットデータのバイト数
(BC)とパケットデータの先頭アドレス(ADR)を
含むパケット転送命令を書き込む。レイヤ2プロセッサ
22は、レイヤ2のアドレスフィールドとコントロール
フィールドとを送信用FIFO21に直接書き込んだ
後、前述のパケットデータのバイト数(BC)と先頭ア
ドレス(ADR)とをDMAコントローラ25に設定し
起動をかける。起動をかけられたDAMコントローラ2
5は、パケットデータ蓄積メモリ26からパケットデー
タを送信用FIFO21に順次書き込んでいく。これを
分割コピーされた短かいパケット数だけ転送すること
で、パケット分割処理を行なっていた。
2. Description of the Related Art Conventional CCITTX. FIG. 3 shows a packet processing apparatus using the 25 protocol. When a packet longer than the allowable packet length of the terminal accommodated in this packet processing apparatus is sent, the layer 3 processor 24 copies the long packet in the packet data storage memory 26 into a memory so that the packet header becomes shorter. (PK
THD), a complete packet form is generated, and a packet transfer instruction including the number of bytes (BC) of the packet data and the head address (ADR) of the packet data is written on the interface memory 23. The layer 2 processor 22 writes the address field and the control field of the layer 2 directly into the transmission FIFO 21 and then sets the byte number (BC) and the start address (ADR) of the packet data in the DMA controller 25 and starts up. multiply. Activated DAM controller 2
5 sequentially writes the packet data from the packet data storage memory 26 to the transmission FIFO 21. This is transferred by the number of short packets divided and copied to perform packet division processing.

【0003】[0003]

【発明が解決しようとする課題】この従来のパケット処
理装置ではレイヤ3プロセッサが長いパケットをメモリ
上に短かいパケットに展開して、各々パケットヘッダを
付けてパケット長変換処理を行なっていたため、パケッ
ト変換の処理能力がパケット長に依存し、しかもメモリ
のコピー処理だけ余分に処理時間がかかり、いちじるし
い処理能力の低下につながるという欠点があった。
In this conventional packet processing apparatus, a layer 3 processor expands a long packet into a short packet on a memory and attaches a packet header to each packet to perform a packet length conversion process. There is a drawback in that the processing capacity of conversion depends on the packet length, and that extra processing time is required only for the memory copy processing, which leads to a significant reduction in processing capacity.

【0004】[0004]

【課題を解決するための手段】本発明のパケット処理装
置は、CCITT勧告X.25プロトコルに従ってパケ
ットデータを処理し所定の長さ以下の複数のパケットに
分割して出力するパケット処理装置において、ネットワ
ークからのパケットデータを蓄積するパケットデータ蓄
積用メモリと、X.25レイヤ3の処理を行い前記パケ
ットデータ蓄積メモリに蓄積されたパケットデータの所
定のバイト数以下に分割された複数のデータブロックの
各々に対応する複数の転送命令を作成するレイヤ3プロ
セッサと、X.25レイヤ2の処理を行い前記転送命令
に応じて前記パケットデータ蓄積用メモリからデータを
読み出し出力パケットを作成するレイヤ2プロセッサと
を備え、前記レイヤ3プロセッサが、前記転送命令とし
て、パケットヘッダを付加するか否かを指定するパケッ
トヘッダ付加識別子と、前記パケットヘッダを付加する
場合はそのパケットヘッダと、転送バイト数と、前記パ
ケットデータ蓄積用メモリのアドレスとを含んで設定
し、前記レイヤ2プロセッサが、この転送命令中の前記
パケットヘッダ付加識別子を判定し、パケットヘッダ付
加が指定されていればこの転送命令中の前記パケットヘ
ッダを前記出力パケットのパケットヘッダとし、前記ア
ドレスと前記転送バイト数に応じて前記パケットデータ
蓄積用メモリから読み出したデータを前記出力パケット
のデータとする構成である。
According to the present invention, there is provided a packet processing apparatus comprising: A packet data storage memory for storing packet data from a network; a packet data storage memory for storing packet data from a network; A layer 3 processor that performs processing of layer 3 and creates a plurality of transfer instructions corresponding to each of a plurality of data blocks divided into a predetermined number of bytes or less of the packet data stored in the packet data storage memory; . A layer 2 processor that performs processing of layer 2 and reads data from the packet data storage memory in response to the transfer command to create an output packet, wherein the layer 3 processor adds a packet header as the transfer command A packet header addition identifier designating whether or not to perform the setting, including the packet header, the number of transfer bytes, and the address of the packet data storage memory when the packet header is added; Determines the packet header addition identifier in the transfer command, and if the packet header addition is specified, the packet header in the transfer command is used as the packet header of the output packet. Data read from the packet data storage memory accordingly. It is configured to the data of the output packet.

【0005】[0005]

【実施例】次に本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0006】図1は本発明の一実施例のパケット処理装
置のハードウェア構成及びメモリ上でのデータフォーマ
ットを示す図である。ハードウェアのブロック構成は図
3の従来例と同様である。図2はX.25プロトコルの
データフォーマットを示す図であり、(a)はレイヤ2
のエフレームフォーマットを、(b)はレイヤ3のデー
タパケットフォーマットを示す。
FIG. 1 is a diagram showing a hardware configuration of a packet processing apparatus according to an embodiment of the present invention and a data format on a memory. The hardware block configuration is the same as that of the conventional example shown in FIG. FIG. FIG. 3 is a diagram showing a data format of 25 protocol, where (a) is a layer 2
(B) shows a layer 3 data packet format.

【0007】収容されている端末が128バイトのデー
タしか受信できない場合、ネットワークを介して通信相
手端末から送られてきた512バイトデータがパケット
データ蓄積用メモリ16にあるとき、レイヤ3プロセッ
サ14はレイヤ2とのインタフェース用メモリ13上
に、まずパケットヘッダ付加識別子(ID)=0として
パケットヘッダ(PKTHD)付加不要のパケット転送
命令を転送バイトカウンタ(BC)を128に設定して
書き込む。さらにレイヤ3プロセッサ14は、残りの3
84バイトのデータに対して、ID=1すなわちパケッ
トヘッダ付加要とし、転送バイトカウンタ(BC)を
“128”に設定し、蓄積用メモリ16上のDMA転送
先頭アドレス(ADR)を128バイトずつ増やすこと
で、3つのパケット転送命令に分割しインタフェース用
メモリ13へ書き込む。レイヤ2プロセッサ12はイン
タフェース用メモリ13上のパケット転送命令を読みに
いき、アドレスフィールド(A)と、コントロールフィ
ールド(C)を送信用FIFO11に書き込んだ後、I
D=0のときはDMAコントローラ15にDMA転送先
頭アドレス(ADR)と転送バイト数(BC)を設定
し、ID=1のときはパケットヘッダ(PKTHD)を
直接送信用FIFO11に書き込んだ後、DMAコント
ローラ15にDMA転送先頭アドレス(ADR)と転送
バイト数(BC)を設定し、DMAコントローラ15を
起動する。起動されたDMAコントローラ15はパケッ
トデータ蓄積用メモリ16からパケットデータを送信用
FIFO11に転送して、512バイトのデータが12
8バイトのデータを持つ4つのパケットとして端末側へ
送出される。
When the accommodated terminal can receive only 128 bytes of data, when the 512-byte data sent from the communication partner terminal via the network is in the packet data storage memory 16, the layer 3 processor 14 First, a packet transfer instruction that does not require the addition of a packet header (PKTHD) is written with the transfer byte counter (BC) set to 128 on the interface memory 13 with the packet header addition identifier (ID) = 0. Further, the layer 3 processor 14
For the 84-byte data, ID = 1, that is, a packet header needs to be added, the transfer byte counter (BC) is set to "128", and the DMA transfer start address (ADR) on the storage memory 16 is increased by 128 bytes. As a result, the packet is divided into three packet transfer instructions and written into the interface memory 13. The layer 2 processor 12 reads the packet transfer instruction on the interface memory 13, writes the address field (A) and the control field (C) in the transmission FIFO 11,
When D = 0, the DMA transfer start address (ADR) and the number of transfer bytes (BC) are set in the DMA controller 15, and when ID = 1, the packet header (PKTHD) is directly written into the FIFO 11 for transmission, The DMA transfer start address (ADR) and the number of transfer bytes (BC) are set in the controller 15, and the DMA controller 15 is started. The started DMA controller 15 transfers the packet data from the packet data storage memory 16 to the transmission FIFO 11 and stores 512-byte data in the transmission FIFO 11.
The packet is transmitted to the terminal side as four packets having 8-byte data.

【0008】[0008]

【発明の効果】以上説明したように本発明は、パケット
の分割処理をデータをコピーすることなしに行なうの
で、パケット処理能力を低下させず、パケット分割処理
を行なえるという効果を有する。
As described above, according to the present invention, since the packet division processing is performed without copying data, the packet division processing can be performed without lowering the packet processing capacity.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】X.25プロトコルのデータフォーマットを示
す図である。
FIG. It is a figure showing the data format of 25 protocols.

【図3】従来のパケット処理装置のブロック図である。FIG. 3 is a block diagram of a conventional packet processing device.

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

11,21 送信用FIFO 12,22 レイヤ2プロセッサ(X.25レイヤ2
処理用プロセッサ) 13,23 インタフェース用メモリ 14,24 レイヤ3プロセッサ(X.25レイヤ3
処理用プロセッサ) 15,25 DMAコントローラ 16,26 パケットデータ蓄積用メモリ
11, 21 Transmission FIFO 12, 22 Layer 2 processor (X.25 Layer 2
Processing Processor) 13,23 Interface Memory 14,24 Layer 3 Processor (X.25 Layer 3)
Processing processor) 15, 25 DMA controller 16, 26 Packet data storage memory

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 CCITT勧告X.25プロトコルに従
ってパケットデータを処理し所定の長さ以下の複数のパ
ケットに分割して出力するパケット処理装置において、
ネットワークからのパケットデータを蓄積するパケット
データ蓄積用メモリと、X.25レイヤ3の処理を行い
前記パケットデータ蓄積メモリに蓄積されたパケットデ
ータの所定のバイト数以下に分割された複数のデータブ
ロックの各々に対応する複数の転送命令を作成するレイ
ヤ3プロセッサと、X.25レイヤ2の処理を行い前記
転送命令に応じて前記パケットデータ蓄積用メモリから
データを読み出し出力パケットを作成するレイヤ2プロ
セッサとを備え、前記レイヤ3プロセッサが、前記転送
命令として、パケットヘッダを付加するか否かを指定す
るパケットヘッダ付加識別子と、前記パケットヘッダを
付加する場合はそのパケットヘッダと、転送バイト数
と、前記パケットデータ蓄積用メモリのアドレスとを含
んで設定し、前記レイヤ2プロセッサが、この転送命令
中の前記パケットヘッダ付加識別子を判定し、パケット
ヘッダ付加が指定されていればこの転送命令中の前記パ
ケットヘッダを前記出力パケットのパケットヘッダと
し、前記アドレスと前記転送バイト数に応じて前記パケ
ットデータ蓄積用メモリから読み出したデータを前記出
力パケットのデータとすることを特徴とするパケット処
理装置。
[Claim 1] CCITT Recommendation X. 25. A packet processing apparatus which processes packet data according to 25 protocols, divides the data into a plurality of packets having a predetermined length or less, and outputs the plurality of packets.
A packet data storage memory for storing packet data from the network; A layer 3 processor that performs processing of layer 3 and creates a plurality of transfer instructions corresponding to each of a plurality of data blocks divided into a predetermined number of bytes or less of the packet data stored in the packet data storage memory; . A layer 2 processor that performs processing of layer 2 and reads data from the packet data storage memory in response to the transfer command to create an output packet, wherein the layer 3 processor adds a packet header as the transfer command A packet header addition identifier designating whether or not to perform the setting, including the packet header, the number of transfer bytes, and the address of the packet data storage memory when the packet header is added; Determines the packet header addition identifier in the transfer command, and if the packet header addition is specified, the packet header in the transfer command is used as the packet header of the output packet. Data read from the packet data storage memory accordingly. Packet processing device, characterized in that the data of the output packet.
JP24532391A 1991-09-25 1991-09-25 Packet processing device Expired - Fee Related JP3256989B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24532391A JP3256989B2 (en) 1991-09-25 1991-09-25 Packet processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24532391A JP3256989B2 (en) 1991-09-25 1991-09-25 Packet processing device

Publications (2)

Publication Number Publication Date
JPH0583300A JPH0583300A (en) 1993-04-02
JP3256989B2 true JP3256989B2 (en) 2002-02-18

Family

ID=17131956

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24532391A Expired - Fee Related JP3256989B2 (en) 1991-09-25 1991-09-25 Packet processing device

Country Status (1)

Country Link
JP (1) JP3256989B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3397144B2 (en) 1998-09-29 2003-04-14 日本電気株式会社 Packet processing device, packet processing method, and packet switch

Also Published As

Publication number Publication date
JPH0583300A (en) 1993-04-02

Similar Documents

Publication Publication Date Title
JP3127523B2 (en) Communication control device and data transmission method
JP2005167965A (en) Packet processing method and apparatus
JP3256989B2 (en) Packet processing device
KR100348545B1 (en) Communication dma device
JPS6335139B2 (en)
JP2821053B2 (en) Network system
JPH04277850A (en) Descriptor control system
JPH02170644A (en) Priority transmitting method for multimedia communication system
JPS6025935B2 (en) HDLC transmission method
JP3339442B2 (en) Communication processing system network
JP2001167046A (en) Image processor
JP3146864B2 (en) Unidirectional loop transmission circuit
JPH06244902A (en) Communication controller
JPS6294042A (en) Communication control equipment
JP3414486B2 (en) Node communication device
JPH05204829A (en) Data transfer device
JPS6211951A (en) Channel device
JPS6118058A (en) Data transfer system
JPH09288639A (en) Information processor
JPH1063606A (en) Method for controlling dma transfer
JPS62250746A (en) Hdlc transmitting device
JPS63191224A (en) Bit order inverting circuit
JPH0310354A (en) Data transfer control system
JPH05130162A (en) Data transfer system
JPS63212242A (en) Dma controller for packet length conversion

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

LAPS Cancellation because of no payment of annual fees