JPH0879310A - Transmission buffer data storage method and transmission buffer data storage device - Google Patents
Transmission buffer data storage method and transmission buffer data storage deviceInfo
- Publication number
- JPH0879310A JPH0879310A JP20658794A JP20658794A JPH0879310A JP H0879310 A JPH0879310 A JP H0879310A JP 20658794 A JP20658794 A JP 20658794A JP 20658794 A JP20658794 A JP 20658794A JP H0879310 A JPH0879310 A JP H0879310A
- Authority
- JP
- Japan
- Prior art keywords
- transmission
- data
- transmission data
- buffer
- transmission buffer
- 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
Links
Landscapes
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
- Communication Control (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、送信データを記憶容量
Lの送信用バッファメモリへ格納する送信データ転送処
理の後に、前記送信データの送信時に付加するプロトコ
ルヘッダを送信時のデータ配列順で付加すべく、前記プ
ロトコルヘッダを前記送信用バッファへ格納する処理を
中心としたヘッダ付加処理を行う送信用バッファデータ
格納方法及び送信用バッファデータ格納装置に係り、特
に、所定のプロトコルに従った送信データを編成するた
め、該送信データへとプロトコルヘッダを付加する際
に、送信用バッファへと格納されている該送信データの
移動処理をより減少しながら、又、必要とされる送信用
バッファの数や領域の大きさを抑えることができる送信
用バッファデータ格納方法及び送信用バッファデータ格
納装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention According to the present invention, after a transmission data transfer process for storing transmission data in a transmission buffer memory having a storage capacity L, a protocol header added at the time of transmitting the transmission data is arranged in a data arrangement order at the time of transmission. The present invention relates to a transmission buffer data storage method and a transmission buffer data storage device that perform header addition processing centered on processing for storing the protocol header in the transmission buffer, in particular, transmission according to a predetermined protocol. In order to organize the data, when adding a protocol header to the transmission data, the transfer processing of the transmission data stored in the transmission buffer is further reduced, and the required transmission buffer The present invention relates to a transmission buffer data storage method and a transmission buffer data storage device capable of suppressing the number and size of areas.
【0002】[0002]
【従来の技術】ローカルエリアネットワーク(local ar
ea network、以降、LANとも呼ぶ)は、一般に、0.
1〜10km程度の範囲で、0.1〜100MBPS(メ
ガビット/秒)程度の伝送速度でデジタルデータを伝送
するネットワークである。又、LANは、総合通信シス
テムとしてある種の交換機能を有しており、分散設置さ
れたコンピュータやコンピュータの周辺機器や通信端末
機器等を有機的に結合することができる。2. Description of the Related Art A local area network (local ar
ea network, hereafter also referred to as LAN).
It is a network that transmits digital data at a transmission rate of about 0.1 to 100 MBPS (megabits / second) within a range of about 1 to 10 km. Further, the LAN has a certain kind of exchange function as an integrated communication system, and it is possible to organically combine distributedly installed computers, computer peripheral devices, communication terminal devices and the like.
【0003】従って、このようなLANによれば、オフ
ィス、工場、研究所、大学の構内等の限定された範囲内
において、分散設置されたコンピュータのハードウエア
(周辺機器等を含む)やデータベース等を効果的に共用
することができる。Therefore, according to such a LAN, the hardware (including peripheral devices) of distributed computers and databases, etc. are set within a limited range such as the premises of offices, factories, research laboratories, and universities. Can be effectively shared.
【0004】又、デジタルデータ公衆網(digital data
exchange 、以降、DDX網とも呼ぶ)によれば、日本
国内に限らず、外国とのデータ通信が可能である。又、
このDDX網には、CCITT(international telegr
ath and telephone consultative committee)勧告X.
25等の基準に従ったパケット交換網がある。In addition, digital data public network (digital data
exchange (hereinafter, also referred to as DDX network) enables data communication not only in Japan but also in foreign countries. or,
CCITT (international telegr
ath and telephone consultative committee) Recommendation X.
There are packet switching networks that comply with standards such as 25.
【0005】このパケット交換は、パケットと呼ばれる
所定バイト単位のブロックに、宛先情報等を含むプロト
コルヘッダを付与して、宛先の異なるパケットを同一の
伝送路を使って多重伝送するというものである。このよ
うなパケット交換網は、極めて高い伝送品質を得ること
ができる等の特徴を有している。In this packet exchange, a protocol header containing destination information and the like is added to a block called a packet in units of predetermined bytes, and packets with different destinations are multiplexed and transmitted using the same transmission path. Such a packet-switched network has features such that extremely high transmission quality can be obtained.
【0006】ここで、前述したLANやパケット交換網
においては、一般に複数のレイヤ(層あるいは階層)に
よって規定されている。Here, in the above-mentioned LAN and packet switching network, it is generally defined by a plurality of layers.
【0007】例えば図17に示す如く、前述のCCIT
T勧告で適用されるOSI(open systems interconnec
tion)参照モデル等で規定されるレイヤ構成と共に、I
EEE(institute of electrical and electronics en
gineers )802委員会等で規定されるLANのレイヤ
構成が示されている。For example, as shown in FIG. 17, the above-mentioned CCIT
OSI (open systems interconnec) applied by T recommendation
I) together with the layer structure defined by the reference model, etc.
EEE (institute of electrical and electronics en
gineers) The layer structure of the LAN defined by the 802 committee etc. is shown.
【0008】まず、OSI等で規定されるレイヤ構成
は、この図17に示される如く、合計7レイヤ構成とな
っている。First, the layer structure defined by OSI or the like has a total of 7 layer structures as shown in FIG.
【0009】このようなレイヤ構成において、まず、第
1のレイヤ、即ちフィジカルレイヤ(Ph 層)は、より
ハードウエアに直結した、主として伝送制御に関するも
のであり、ビット伝送するための機械的・電気的制御を
行う。第2のレイヤ、即ちデータリンクレイヤ(DL
層)は、データ転送を行うもので、特に伝送誤りの制御
等を行う。第3のレイヤ、即ちネットワークレイヤ(N
層)は、1つ又は複数の通信網を介してなされるデータ
通信の中継等を行うものとされる。又、第5のレイヤ、
即ちセッションレイヤ(S層)は、データの送受信の制
御や同期の制御等を行う。又、これら第3のレイヤと第
5のレイヤとの間の第4のレイヤ、即ちトランスポート
レイヤ(T層)は、特に第5のレイヤより上位のレイヤ
に対して、透過的なデータ転送を設定するものである。
又、より上位のレイヤとして、第6のレイヤのプレゼン
テーションレイヤ(P層)や、第7のレイヤのアプリケ
ーションレイヤ(A層)等が設定されている。In such a layer structure, firstly, the first layer, that is, the physical layer (Ph layer) is more directly connected to the hardware and mainly relates to the transmission control, and mechanical / electrical for bit transmission. Control. The second layer, namely the data link layer (DL
The layer) transfers data, and particularly controls transmission errors. The third layer, namely the network layer (N
The layer) is for relaying data communication performed via one or a plurality of communication networks. Also, the fifth layer,
That is, the session layer (S layer) controls data transmission / reception, synchronization, and the like. In addition, the fourth layer between the third layer and the fifth layer, that is, the transport layer (T layer), performs transparent data transfer especially to a layer higher than the fifth layer. It is something to set.
Further, as a higher layer, a presentation layer (P layer) of the sixth layer, an application layer (A layer) of the seventh layer, and the like are set.
【0010】なお、以降の説明では、このようなレイヤ
構成において、前述のような、第1のレイヤ、第2のレ
イヤ、第3のレイヤ・・・となるに従って、その階層
(レイヤ)がより上位になるものとする。In the following description, in such a layer structure, as the above-mentioned first layer, second layer, third layer, ... It shall be in the higher rank.
【0011】一方、IEEE等のLANに適用されるレ
イヤ構成では、例えば、前述の第2のレイヤのデータリ
ンクレイヤが分割され、ロジカルリンク制御サブレイヤ
(LLC層)と媒体アクセス制御サブレイヤ(MAC
層)とされている。これら2つのサブレイヤと共に、例
えば、フィジカルレイヤ(Ph 層)や、ネットワークレ
イヤ(N層)や、トランスポートレイヤ(T層)等にて
構成されている。On the other hand, in a layer structure applied to a LAN such as IEEE, for example, the data link layer of the above-mentioned second layer is divided into a logical link control sublayer (LLC layer) and a medium access control sublayer (MAC).
Layers). Together with these two sublayers, for example, a physical layer (Ph layer), a network layer (N layer), a transport layer (T layer), and the like are configured.
【0012】以上図17を用い説明したように、標準化
されたプロトコルにあっては、通常、多数のレイヤにて
規定されているものである。As described above with reference to FIG. 17, the standardized protocol is usually defined by many layers.
【0013】又、各レイヤでは、それぞれ規定されるプ
ロトコルヘッダを順次付加するようにされている。即
ち、アプリケーションレイヤやプレゼンテーションレイ
ヤ等、より上位のレイヤからより下位のレイヤへと、送
信データが規定のプロトコルへと編成される際、それぞ
れで規定されるプロトコルヘッダが順次付加されていく
ものである。Further, in each layer, protocol headers defined respectively are sequentially added. That is, when the transmission data is organized into a prescribed protocol from a higher layer such as an application layer and a presentation layer to a lower layer, protocol headers regulated by each are sequentially added. .
【0014】図18は、従来の通信制御装置の一例の構
成を示すブロック図である。FIG. 18 is a block diagram showing the configuration of an example of a conventional communication control device.
【0015】この図18においては、所定のプロトコル
に従ってデータを送信したり受信する、CPU1に接続
される通信制御装置2の構成が示されている。特に、前
記図17の右側に示されるレイヤ構成のような、T層、
N層及びLLC層のプロトコルに従って、送信データを
順次編成している。該通信制御装置2は、前記CPU1
が伝送路3を用いてデータ通信する際に用いられるもの
である。該通信制御装置2は、バス制御部11と、プロ
トコル制御部12Bと、回線制御部14と、バッファメ
モリ16Bとにより構成されている。FIG. 18 shows the configuration of the communication control device 2 connected to the CPU 1 for transmitting and receiving data according to a predetermined protocol. In particular, a T layer, such as the layer structure shown on the right side of FIG.
Transmission data is sequentially organized according to the protocols of the N layer and the LLC layer. The communication control device 2 includes the CPU 1
Is used when performing data communication using the transmission line 3. The communication control device 2 is composed of a bus control unit 11, a protocol control unit 12B, a line control unit 14, and a buffer memory 16B.
【0016】まず、前記通信制御装置2において、前記
プロトコル制御部12Bは、前記バス制御部11にて前
記CPU1へ接続される。該バス制御部11は、前記C
PU1からのコマンドの受付や、送受信データの授受
等、CPUインタフェースとしての制御を行う。First, in the communication control device 2, the protocol control unit 12B is connected to the CPU 1 by the bus control unit 11. The bus control unit 11 uses the C
Control as a CPU interface such as reception of commands from PU1 and transmission / reception of transmission / reception data.
【0017】一方、前記プロトコル制御部12Bは、前
記回線制御部14を介して前記伝送路3へ接続される。
該回線制御部14は、このような前記プロトコル制御部
12Bを前記伝送路3へ接続するための、インタフェー
スの制御を行うものである。On the other hand, the protocol control unit 12B is connected to the transmission line 3 via the line control unit 14.
The line control unit 14 controls an interface for connecting the protocol control unit 12B to the transmission line 3.
【0018】又、前記プロトコル制御部12Bへ接続さ
れる前記バッファメモリ16Bは、送信用バッファメモ
リ16c と、受信用バッファメモリ16b とにより構成
されている。The buffer memory 16B connected to the protocol control unit 12B is composed of a transmission buffer memory 16c and a reception buffer memory 16b.
【0019】前記送信用バッファメモリ16c は、前記
CPU1が当該通信制御装置2及び前記伝送路3を経
て、他のCPU等へデータを送信する際に用いられる。
即ち、前記CPU1がデータを送信する際、送信データ
は、前記プロトコル制御部12Bによって該送信用バッ
ファメモリ16c へ一時的に格納される。一方、前記受
信用バッファメモリ16b は、前記伝送路3及び当該通
信制御装置2等を経て前記CPU1が他のCPU等から
データを受信する際、受信されるデータが一時的に格納
される。即ち、前記プロトコル制御部12B等によっ
て、前記伝送路3から受信されたデータが一時的に格納
される。The transmission buffer memory 16c is used when the CPU 1 transmits data to another CPU or the like via the communication control device 2 and the transmission path 3.
That is, when the CPU 1 transmits data, the transmission data is temporarily stored in the transmission buffer memory 16c by the protocol control unit 12B. On the other hand, the reception buffer memory 16b temporarily stores the received data when the CPU 1 receives data from another CPU or the like via the transmission path 3 and the communication control device 2 or the like. That is, the data received from the transmission path 3 is temporarily stored by the protocol control unit 12B and the like.
【0020】図19は、従来の通信制御装置で用いられ
る前記プロトコル制御部の構成を示すブロック図であ
る。FIG. 19 is a block diagram showing the structure of the protocol control unit used in the conventional communication control apparatus.
【0021】この図19に示す如く、前記図18に示し
た前記プロトコル制御部12Bは、CPU送信データ処
理部12j と、T層データ処理部12k と、N層データ
処理部12m と、LLC層データ処理部12n と、フレ
ーム送信処理部12p とにより構成されている。As shown in FIG. 19, the protocol control unit 12B shown in FIG. 18 includes a CPU transmission data processing unit 12j, a T layer data processing unit 12k, an N layer data processing unit 12m, and LLC layer data. It is composed of a processing unit 12n and a frame transmission processing unit 12p.
【0022】該プロトコル制御部12Bは、これらCP
U送信データ処理部12j 、T層データ処理部12k 、
N層データ処理部12m 、LLC層データ処理部12n
及びフレーム送信処理部12p によって、例えば、プロ
トコルヘッダの付加や、送信データの分割等を、前記バ
ッファメモリ16Bを用いながら行う。The protocol control unit 12B uses these CPs.
U transmission data processing unit 12j, T layer data processing unit 12k,
N layer data processing unit 12m, LLC layer data processing unit 12n
The frame transmission processing unit 12p performs addition of a protocol header, division of transmission data, etc. while using the buffer memory 16B.
【0023】ここで、プロトコルヘッダの付加とは、各
レイヤのプロトコルに関する規定に従って送信データを
編成する際、そのレイヤで規定されるプロトコルヘッダ
を作成し、これを送信データへ付加するというものであ
る。又、送信データの分割とは、各レイヤのプロトコル
で一度に転送できるデータ長に制限があるため、このデ
ータ長より多量のデータを送信する際、上位のレイヤか
ら受取る送信データを複数の送信データへ分割するとい
うものである。このように分割することで、各レイヤで
のデータ長の制限範囲内に、送信データの長さを抑える
ことができる。Here, the addition of the protocol header means that, when the transmission data is organized according to the regulation regarding the protocol of each layer, a protocol header regulated by the layer is created and is added to the transmission data. . Also, because the division of transmission data is limited in the data length that can be transferred at one time by the protocol of each layer, when transmitting a larger amount of data than this data length, the transmission data received from the upper layer is divided into multiple transmission data. It is to divide into. By dividing in this way, the length of the transmission data can be suppressed within the limit range of the data length in each layer.
【0024】図20は、従来の通信制御装置で用いられ
る送信バッファの構成図である。FIG. 20 is a block diagram of a transmission buffer used in a conventional communication control device.
【0025】この図20に示される送信バッファは、前
記図18に示した前記送信用バッファメモリ16c 内に
設定される複数の送信バッファのうちの1つの構成を示
すものである。該送信バッファは、前記送信用バッファ
メモリ16c 内の所定の領域が確保され、これによって
用意される。The transmission buffer shown in FIG. 20 shows one of a plurality of transmission buffers set in the transmission buffer memory 16c shown in FIG. The transmission buffer secures a predetermined area in the transmission buffer memory 16c and is prepared by this.
【0026】この図20に示される如く、該送信用バッ
ファメモリ16c のアドレスの昇方向へ順に(即ち前記
バッファメモリ16Bのアドレスの昇方向に順に)、制
御情報CDの領域と、データ長LDの領域と、送信デー
タ領域SDと、特に未使用な領域、即ち空き領域とによ
り構成される。As shown in FIG. 20, the area of the control information CD and the data length LD are sequentially arranged in the ascending direction of the address of the transmission buffer memory 16c (that is, in the ascending direction of the address of the buffer memory 16B). It is composed of an area, a transmission data area SD, and an unused area, that is, an empty area.
【0027】ここで、前記制御情報CDの領域と前記デ
ータ長LDの領域とで構成される領域を、管理情報格納
領域とする。又、実際に送信データが格納されている。
前記送信データ領域STと共に前記空き領域を含め、送
信データ格納領域とする。又、このように前記管理情報
格納領域と前記送信データ格納領域とで構成される前記
送信バッファは、先頭アドレスASから尾端アドレスA
Eまでの領域である。又、前記送信データ格納領域にお
いて、実際に送信データが格納されている領域、即ち前
記送信データ領域SDは、送信データ先頭アドレスAD
Sから送信データ尾端アドレスADEまでの領域であ
る。Here, an area composed of the area of the control information CD and the area of the data length LD is defined as a management information storage area. Further, the transmission data is actually stored.
A transmission data storage area including the transmission data area ST and the empty area is provided. In addition, the transmission buffer configured by the management information storage area and the transmission data storage area as described above has a start address AS to a tail end address A.
The area up to E. Further, in the transmission data storage area, an area where transmission data is actually stored, that is, the transmission data area SD is a transmission data start address AD.
It is an area from S to the tail end address ADE of the transmission data.
【0028】ここで、前記制御情報CDは、当該送信用
バッファの管理に用いる情報である。例えば、当該送信
用バッファのそのバッファ全長(AE−AS+1)等で
ある。又、前記データ長LDには、前記送信データ先頭
アドレスADSから前記送信データ尾端アドレスADE
までの前記送信データ領域SDのデータ長が書き込まれ
る。即ち、前記データ長LDには、(ADE−ADS+
1)の値が書き込まれる。Here, the control information CD is information used for managing the transmission buffer. For example, the buffer total length of the transmission buffer (AE-AS + 1) and the like. The data length LD includes the transmission data head address ADS to the transmission data tail address ADE.
Up to the data length of the transmission data area SD is written. That is, the data length LD includes (ADE-ADS +
The value of 1) is written.
【0029】この図20に示される前記送信用バッファ
を用いながら、前記プロトコル制御部12Bは、図21
〜図24に順に示す如く、各レイヤに対応するプロトコ
ルヘッダを順次付加しながら、所定のプロトコルの編成
を行う。即ち、T層のプロトコルヘッダHTA、N層の
プロトコルヘッダHNA及びLLC層のプロトコルヘッ
ダHLLCAをこの順に、順次付加しながら、前記図2
4に示されるような送信データを最終的に得る。While using the transmission buffer shown in FIG. 20, the protocol control unit 12B operates as shown in FIG.
As shown in order in FIG. 24, a predetermined protocol is organized while sequentially adding protocol headers corresponding to each layer. That is, the protocol header HTA of the T layer, the protocol header HNA of the N layer, and the protocol header HLLCA of the LLC layer are sequentially added in this order while the above-mentioned FIG.
Finally, the transmission data as shown in 4 is obtained.
【0030】即ち、まず前記図21に示す如く、前記C
PU1から送られた送信データ、即ちCPU送信データ
SDAが、前記プロトコル制御部12Bによって、前記
送信バッファへ書き込まれる。このときの前記送信デー
タ尾端アドレスは、この図21の如くADE1となる。
又、このときのデータ長、即ちLDA1は(ADE1−
ADS+1)となる。この図21に示すプロトコルの編
成は、前記CPU送信データ処理部12j によってなさ
れる。That is, first, as shown in FIG.
The transmission data sent from PU1, that is, the CPU transmission data SDA is written in the transmission buffer by the protocol control unit 12B. At this time, the transmission data tail address is ADE1 as shown in FIG.
The data length at this time, that is, LDA1 is (ADE1-
ADS + 1). The organization of the protocol shown in FIG. 21 is performed by the CPU transmission data processing unit 12j.
【0031】続いて、前記図22に示す如く、T層のプ
ロトコルに従った送信データの編成がなされる。これ
は、主として、T層のプロトコルヘッダHTAの付加と
いうものである。Then, as shown in FIG. 22, the transmission data is organized according to the protocol of the T layer. This is mainly the addition of the protocol header HTA of the T layer.
【0032】このT層プロトコルヘッダHTAの付加に
際しては、まず、該T層プロトコルヘッダHTAを付加
する領域を得るため、前記CPU送信データSDAを前
記送信データ格納領域の、より後方へ移動する(送信デ
ータの移動処理)。例えば、前記T層プロトコルヘッダ
HTAのデータ長を(ADS2−ADS+1)とすれ
ば、前記CPU送信データSDAの前記送信データ尾端
アドレスが(ADE+(ADS2−ADS+1))(=
ADE2)となるまで、前記CPU送信データSDAを
前記送信データ格納領域の、より後方へ移動する。従っ
て、前記空き領域は、この移動の分だけ縮小される。When adding the T layer protocol header HTA, first, in order to obtain an area to which the T layer protocol header HTA is added, the CPU transmission data SDA is moved rearward of the transmission data storage area (transmission). Data movement process). For example, if the data length of the T layer protocol header HTA is (ADS2-ADS + 1), the transmission data tail address of the CPU transmission data SDA is (ADE + (ADS2-ADS + 1)) (=
The CPU transmission data SDA is moved rearward of the transmission data storage area until ADE2) is reached. Therefore, the empty area is reduced by this movement.
【0033】このように前記送信データの移動処理がな
されると、前記CPU送信データSDAの上方の直前
へ、前記T層プロトコルヘッダHTAを格納する領域が
確保される。従って、前記T層プロトコルヘッダHTA
の生成後、該T層プロトコルヘッダHTAを、前記デー
タ長LDA2の格納領域と前記CPU送信データSDA
の格納領域との間へ格納する。When the process of moving the transmission data is performed in this manner, an area for storing the T-layer protocol header HTA is secured just above the CPU transmission data SDA. Therefore, the T layer protocol header HTA
After the generation of the T layer protocol header HTA, the T layer protocol header HTA is stored in the storage area of the data length LDA2 and the CPU transmission data SDA.
Stored in the storage area of.
【0034】又、この後、前記データ長LDA2の値
は、(ADE2−ADS+1)に更新される。After that, the value of the data length LDA2 is updated to (ADE2-ADS + 1).
【0035】なお、以上説明したようなT層のプロトコ
ルに従った送信データの編成は、前記図19に示す前記
T層データ処理部12k によってなされる。The organization of transmission data according to the T layer protocol as described above is performed by the T layer data processing unit 12k shown in FIG.
【0036】又、該T層のプロトコルの送信データの編
成と同様に、前記N層データ処理部12m によって、前
記図23に示されるような前記N層のプロトコルに従っ
た前記送信データが編成される。この前記N層のプロト
コルの前記送信データは、主として、前記T層のプロト
コルの前記送信データに対して前記N層のプロトコルヘ
ッダHNAを付加することによって行われる。Further, similar to the organization of the transmission data of the T layer protocol, the N layer data processing unit 12m organizes the transmission data according to the N layer protocol as shown in FIG. It The transmission data of the N-layer protocol is mainly performed by adding the N-layer protocol header HNA to the transmission data of the T-layer protocol.
【0037】又、前記LLC層データ処理部12n によ
って、前記N層のプロトコルに従った前記送信データに
対して、前記LLC層のプロトコルヘッダHLLCAを
付加する。これによって、前記図24に示されるような
前記LLC層のプロトコルに従った前記送信データが編
成される。Further, the LLC layer data processing unit 12n adds the protocol header HLLCA of the LLC layer to the transmission data according to the protocol of the N layer. By this, the transmission data according to the protocol of the LLC layer as shown in FIG. 24 is organized.
【0038】このように、順次前記T層や前記N層や前
記LLC層のプロトコルヘッダを付加する際には、その
度に前記送信データの移動処理が行われるものである。
これによって、前記CPU送信データSDAのその前記
送信データ先頭アドレス及びその前記送信データ尾端ア
ドレスは、ADS及びADE1、ADS2及びADE
2、ADS4及びADE4と、順次後方へ移動される。As described above, when the protocol headers of the T layer, the N layer, and the LLC layer are sequentially added, the process of moving the transmission data is performed each time.
Accordingly, the transmission data start address and the transmission data tail address of the CPU transmission data SDA are ADS and ADE1, ADS2 and ADE.
2, ADS4 and ADE4 are sequentially moved backward.
【0039】ここで、前記図20に示す前記送信データ
格納領域の大きさに比べ、格納すべき前記送信データの
データ長が長い場合、図25に示すような、格納する送
信データの分割がなされる。Here, when the data length of the transmission data to be stored is longer than the size of the transmission data storage area shown in FIG. 20, the transmission data to be stored is divided as shown in FIG. It
【0040】即ち、この図25に示すように、送信デー
タSD1〜SD3にて構成される、前記送信バッファへ
格納される1つの送信データの全体の長さが、該送信バ
ッファの前記送信データ格納領域の記憶容量Lより長い
場合には、該送信データを、その先頭から前記記憶容量
L毎に順次分割する。即ち、前記記憶容量Lと同一のデ
ータ長の前記送信データSD1と、前記記憶容量Lと同
じデータ長の前記送信データSD2と、前記記憶容量L
未満のデータ長(A4−A3+1)の前記送信データS
D3とに分割する。That is, as shown in FIG. 25, the entire length of one transmission data, which is composed of the transmission data SD1 to SD3 and is stored in the transmission buffer, is the transmission data storage of the transmission buffer. If it is longer than the storage capacity L of the area, the transmission data is sequentially divided from the beginning by the storage capacity L. That is, the transmission data SD1 having the same data length as the storage capacity L, the transmission data SD2 having the same data length as the storage capacity L, and the storage capacity L.
The transmission data S having a data length (A4-A3 + 1) less than
And D3.
【0041】又、このように送信データを分割する場合
には、図26に示すような構成の送信バッファを用い
る。この図26に示される前記送信バッファは、前記図
20に示したものに比べて、特にリンクポインタLPを
有している点が異なる。該リンクポインタLPは、前述
のように複数に分割された前記送信データそれぞれが異
なる前記送信用バッファへ格納される際、各送信用バッ
ファのその次に続く他の送信用バッファの先頭アドレス
を示すものである。Further, when dividing the transmission data in this way, a transmission buffer having a structure as shown in FIG. 26 is used. The transmission buffer shown in FIG. 26 is different from that shown in FIG. 20 in that it has a link pointer LP. The link pointer LP indicates the start address of another transmission buffer subsequent to each transmission buffer when the transmission data divided into a plurality of pieces are stored in the different transmission buffers as described above. It is a thing.
【0042】例えば図27に示すような、送信データS
DB1と送信データSDB2とで構成される、その全体
のデータ長がLより長く且つ2L以下のある1つの送信
データについて、前記記憶容量Lと同じデータ長の前記
送信データSD1と、前記記憶容量L以下のデータ長
(A8−A7+1)の前記送信データSD2とに分割す
るものである。これは、該送信データの先頭側から分割
される。この場合には、図28に示す通り、2つの前記
送信用バッファが用いられる。これら送信用バッファ
は、前記図26に示したものである。For example, the transmission data S as shown in FIG.
The transmission data SD1 having the same data length as the storage capacity L and the storage capacity L with respect to one transmission data which is composed of DB1 and transmission data SDB2 and has a total data length longer than L and 2L or less. The transmission data SD2 having the following data length (A8-A7 + 1) is divided. This is divided from the head side of the transmission data. In this case, as shown in FIG. 28, the two transmission buffers are used. These transmission buffers are those shown in FIG.
【0043】ここで、前記図28において、制御情報C
DB1、リンクポインタLPB1及びデータ長LDB1
等によって構成される前記送信バッファへと、まず、前
記送信データSDB1が格納される。又、制御情報CD
B2、リンクポインタLPB2及びデータ長LDB2等
で構成される前記送信バッファへと、前記送信データS
DB2が格納される。このように前記送信データSDB
1及びSDB2が格納される場合、前記送信データSD
B1を格納した送信バッファの前記リンクポインタLP
B1へは、前記送信データSDB2を格納した前記送信
バッファの先頭アドレスが、この図28で矢印で示すよ
うに格納される。Here, in FIG. 28, the control information C
DB1, link pointer LPB1 and data length LDB1
First, the transmission data SDB1 is stored in the transmission buffer composed of the above. Also, control information CD
B2, a link pointer LPB2, a data length LDB2, and the like.
DB2 is stored. Thus, the transmission data SDB
1 and SDB2 are stored, the transmission data SD
The link pointer LP of the transmission buffer storing B1
The head address of the transmission buffer storing the transmission data SDB2 is stored in B1 as indicated by the arrow in FIG.
【0044】ここで、この図28に示されるように2つ
の送信バッファに跨って格納された送信データに対し
て、前記T層のプロトコルの送信データを編成すべくそ
のプロトコルヘッダHTBを付加し、前記N層のプロト
コルの送信データを編成するためそのプロトコルヘツダ
HNBを付加し、前記LLC層のプロトコルの送信デー
タを編成すべくそのプロトコルヘッダHLLCBを付加
する際、前記図21〜前記図24で前述したような送信
データSDAの移動処理を、2つの送信バッファに跨っ
て行うことも考えられる。即ち、前記図28に示す2つ
の前記送信バッファに跨って、それぞれのレイヤにおけ
るプロトコルヘッダHTB、HNB及びHLLCBの付
加に伴った、それぞれのレイヤにおける送信データの移
動処理を行うことも考えられる。Here, as shown in FIG. 28, the protocol header HTB is added to the transmission data stored across the two transmission buffers in order to organize the transmission data of the protocol of the T layer, When adding the protocol header HNB for organizing the transmission data of the N layer protocol and adding the protocol header HLLCB for organizing the transmission data of the LLC layer protocol, It is also conceivable to perform the above-described movement processing of the transmission data SDA across two transmission buffers. That is, it is also conceivable to carry out a process of moving transmission data in each layer across the two transmission buffers shown in FIG. 28 with the addition of the protocol headers HTB, HNB and HLLCB in each layer.
【0045】一方、前記図28に示されるような2つの
前記送信バッファに跨った前記送信データに対して、前
記T層や前記N層や前記LLC層のプロトコルヘッダH
TB、HNB及びHLLCBの付加に伴って、図29〜
図31に示す如く、各プロトコルヘッダ毎に1つの送信
バッファを割り付けることも考えられる。On the other hand, with respect to the transmission data spanning the two transmission buffers as shown in FIG. 28, the protocol header H of the T layer, the N layer or the LLC layer is transmitted.
With the addition of TB, HNB and HLLCB, FIG.
As shown in FIG. 31, it is possible to allocate one transmission buffer for each protocol header.
【0046】即ち、まず、前記T層のプロトコルの送信
データを編成する際、付加されるプロトコルヘッダHT
Bを格納するため、前記図29に示す如く、専用の1つ
の前記送信バッファを準備する。又、該プロトコルHT
Bの格納された該送信バッファにおいて、そのリンクポ
インタLPB3へは、前記送信データSDB1を格納し
た前記送信バッファの先頭アドレスを書き込む。That is, first, when the transmission data of the T layer protocol is organized, a protocol header HT added
In order to store B, one dedicated transmission buffer is prepared as shown in FIG. Also, the protocol HT
In the transmission buffer storing B, the head address of the transmission buffer storing the transmission data SDB1 is written to the link pointer LPB3.
【0047】続いて、前記N層のプロトコルの前記送信
データを編成する際には、前記図30に示す如く、専用
の1つの送信バッファを用意し、該N層のプロトコルヘ
ッダHNBを格納する。該プロトコルヘッダHNBが格
納された該送信バッファのリンクポインタLPB4に
は、前記プロトコルヘッダHTBが格納された前記送信
バッファの先頭アドレスが格納される。Subsequently, when organizing the transmission data of the N-layer protocol, as shown in FIG. 30, one dedicated transmission buffer is prepared and the protocol header HNB of the N-layer is stored. The link pointer LPB4 of the transmission buffer in which the protocol header HNB is stored stores the start address of the transmission buffer in which the protocol header HTB is stored.
【0048】更に、前記LLC層のプロトコルの前記送
信データを編成する際には、前記図31に示される如
く、専用の1つの前記送信バッファを用意し、該送信バ
ッファのその前記送信データ格納領域へ前記プロトコル
ヘッダHLLCBを格納する。又、該プロトコルヘッダ
HLLCBが格納された該送信バッファのリンクポイン
タLPB5には、前記プロトコルヘッダHNBが格納さ
れた前記送信バッファの先頭アドレスが格納される。Further, when organizing the transmission data of the LLC layer protocol, as shown in FIG. 31, one dedicated transmission buffer is prepared and the transmission data storage area of the transmission buffer is prepared. The protocol header HLLCB is stored in. Further, the link pointer LPB5 of the transmission buffer in which the protocol header HLLCB is stored stores the start address of the transmission buffer in which the protocol header HNB is stored.
【0049】なお、前記図25や前記図27に示す如
く、1つの前記送信データを複数に分割する際には、前
記送信バッファの前記記憶容量を、各レイヤ(各層)の
最大送信データ長のうち、最小のものの約数にしておく
ことが好ましい。これによって、より能率良く、送信バ
ッファの前記記憶容量Lに納まるように、送信データの
分割を行うことができる。又、これに伴なった複数の送
信バッファのリンクを、より容易に行うことができる。
又、必要に応じ、送信バッファのリンクを切断し、新な
送信バッファを挿入して、プロトコルヘッダを格納する
ことも、より容易に行うとが可能である。As shown in FIG. 25 and FIG. 27, when one transmission data is divided into a plurality of pieces, the storage capacity of the transmission buffer is set to the maximum transmission data length of each layer (each layer). Of these, it is preferable to set it to a divisor of the smallest one. As a result, the transmission data can be divided more efficiently so as to fit in the storage capacity L of the transmission buffer. In addition, the linking of a plurality of transmission buffers associated with this can be performed more easily.
It is also possible to disconnect the link of the transmission buffer, insert a new transmission buffer, and store the protocol header, if necessary.
【0050】[0050]
【発明が達成しようとする課題】しかしながら、前述し
た従来の通信制御装置においては、所定のプロトコルに
従った送信データを編成するため、該送信データへとプ
ロトコルヘッダを付加する際に、送信バッファ等へと格
納されている該送信データの移動処理を行わなければな
らなかった。However, in the above-mentioned conventional communication control device, in order to organize the transmission data according to the predetermined protocol, when adding the protocol header to the transmission data, the transmission buffer etc. Had to perform a movement process of the transmission data stored in the.
【0051】例えば、前記図21〜前記図24にあって
は、前記T層のプロトコルヘッダHTA、前記N層のプ
ロトコルヘッダHNA及び前記LLC層のプロトコルヘ
ッダHLLCAを付加する度に、前記CPU送信データ
SDAに対する移動処理を行わなければならなかった。
即ち、前記送信データ格納領域にあって、このようにプ
ロトコルヘッダを付加する度に、後方へと、その時に付
加するプロトコルヘッダHTA、HNAあるいはHLL
CAの長さ分だけ前記CPU送信データSDAを移動し
なければならなかった。For example, in FIGS. 21 to 24, the CPU transmission data is added every time the protocol header HTA of the T layer, the protocol header HNA of the N layer and the protocol header HLLCA of the LLC layer are added. The move process for SDA had to be done.
That is, in the transmission data storage area, each time a protocol header is added in this way, the protocol header HTA, HNA, or HLL to be added at that time is added backward.
The CPU transmission data SDA had to be moved by the length of CA.
【0052】又、例えば前記図28に示すように、2つ
の前記送信バッファへ跨って、分割ぬれた前記送信デー
タSDB1及びSDB2がそれぞれ格納される場合、こ
のような送信データの移動処理はより煩雑になってしま
う。即ち、このような送信データの移動処理は、プロト
コルヘッダを付加する毎に、2つの送信バッファに跨っ
て行わなければならない。Further, for example, as shown in FIG. 28, when the divided wet transmission data SDB1 and SDB2 are respectively stored in the two transmission buffers, such a movement process of the transmission data is more complicated. Become. That is, such movement processing of transmission data must be performed across two transmission buffers each time a protocol header is added.
【0053】なお、前記図29〜前記図31に示したよ
うに、付加するプロトコルヘッダHTB、HNB及びH
LLCB毎に、専用の1つの前記送信バッファを用意
し、これを順次リンクしていく場合では、このような送
信データの移動処理を行う必要はない。しかしながら、
各プロトコルヘッダに対して専用の1つの前記送信バッ
ファを用いてしまうため、必要とされる送信バッファの
数やその領域の大きさが増大してしまうという問題があ
る。As shown in FIGS. 29 to 31, protocol headers HTB, HNB and H to be added are added.
In the case where one dedicated transmission buffer is prepared for each LLCB and sequentially linked, it is not necessary to perform such movement processing of transmission data. However,
Since one dedicated transmission buffer is used for each protocol header, there is a problem that the number of required transmission buffers and the size of the area increase.
【0054】又、このように多数の送信バッファを獲得
するためには、このための処理を要する。送信バッファ
を獲得する処理は、前記送信用バッファメモリ16c 中
での空きエリアを検索したり、場合によっては小さな空
きエリアの統合や整理等を行う必要があるため、比較的
時間がかかるものである。従って、このように多数の送
信バッファを獲得するようにした場合には、全体の処理
時間が延長されてしまうという問題を生じてしまう。Further, in order to acquire a large number of transmission buffers in this way, processing for this is required. The process of acquiring the transmission buffer is relatively time-consuming because it is necessary to search for an empty area in the transmission buffer memory 16c and to integrate or organize small empty areas in some cases. . Therefore, when a large number of transmission buffers are acquired in this way, there arises a problem that the entire processing time is extended.
【0055】本発明は、前記従来の問題点を解決するべ
くなされたもので、所定のプロトコルに従った送信デー
タを編成するため、該送信データへとプロトコルヘッダ
を付加する際に、送信バッファ等へと格納されている該
送信データの移動処理をより減少しながら、又、必要と
される送信バッファの数や領域の大きさを抑えることが
できる送信用バッファメモリデータ格納方法及び送信用
バッファメモリデータ格納装置を提供することを目的と
する。The present invention has been made to solve the above-mentioned conventional problems, and in order to organize transmission data according to a predetermined protocol, when adding a protocol header to the transmission data, a transmission buffer, etc. Buffer memory data storage method and transmission buffer memory capable of suppressing the number of transmission buffers and the size of the area required while further reducing the movement processing of the transmission data stored in An object is to provide a data storage device.
【0056】[0056]
【課題を達成するための手段】まず、本願の第1発明の
送信用バッファデータ格納方法は、送信データを記憶容
量Lの送信用バッファへ格納する送信データ転送処理の
後に、前記送信データの送信時に付加するプロトコルヘ
ッダを送信時のデータ配列順で付加すべく、前記プロト
コルヘッダを前記送信用バッファの先頭側へ格納する処
理を中心としたヘッダ付加処理を行う送信用バッファデ
ータ格納方法において、前記送信データ転送処理の際
に、前記送信データの先頭及び尾端に関して、該送信デ
ータ尾端を後方側へ詰めるようにして該送信データを前
記送信用バッファへ格納し、又、前記送信データ転送処
理の際に、このような前記送信データの前記送信用バッ
ファへの格納後の、該送信用バッファにおける前記送信
データ先頭の格納位置を示す情報を保存するようにした
ことにより、前記課題を達成可能な送信用バッファデー
タ格納方法を提供したものである。First, in the transmission buffer data storage method of the first invention of the present application, after the transmission data transfer process of storing the transmission data in the transmission buffer of the storage capacity L, the transmission of the transmission data is performed. In the transmission buffer data storage method for performing header addition processing centered on processing for storing the protocol header at the head side of the transmission buffer so as to add the protocol header to be added at the time of data arrangement at the time of transmission, At the time of the transmission data transfer process, the transmission data is stored in the transmission buffer so that the transmission data tail end is packed rearward with respect to the head and tail end of the transmission data, and the transmission data transfer process is performed. In this case, the storage location of the head of the transmission data in the transmission buffer after the transmission data is stored in the transmission buffer. By which is adapted to store information indicating a is obtained by providing a transmit buffer data storage method achievable the problems.
【0057】又、前記第1発明の前記送信用バッファデ
ータ格納方法において、前記送信データのデータ量Mが
前記記憶容量Lより多い場合には、{(M/L)≦N<
((M+1)/L)}となる自然数Nに従った、少なく
とも合計N個の前記送信用バッファを確保し、前記送信
データをその前記送信データ尾端から前記記憶容量Lず
つ順次分割して行き、分割されたものを、その分割順に
従った格納順の情報を保存しながら、それぞれの前記送
信用バッファへ順次格納するようにしたことにより、前
記課題を達成すると共に、前記送信データのデータ量M
が前記記憶容量Lより多い場合にも、より効果的に対応
可能としたものである。In the transmission buffer data storing method of the first invention, if the data amount M of the transmission data is larger than the storage capacity L, {(M / L) ≤N <
According to a natural number N of ((M + 1) / L)}, a total of at least N transmission buffers are secured, and the transmission data is sequentially divided from the tail end of the transmission data by the storage capacity L. The divided object is sequentially stored in each of the transmission buffers while preserving the information of the storage order according to the division order, thereby achieving the above-mentioned object and the data amount of the transmission data. M
Even when the storage capacity is larger than the storage capacity L, it is possible to cope more effectively.
【0058】又、前記第1発明の前記送信用バッファデ
ータ格納方法において、前記送信データ転送処理の際に
保存する前記送信データ先頭の格納位置を示す情報が、
前記送信用バッファにおけるアドレスであることによ
り、前記課題を達成すると共に、前記送信用バッファに
書き込まれた情報の読み出しに要する処理等の効率の向
上等を図り、処理速度の向上等を可能としたものであ
る。In the transmission buffer data storage method of the first aspect of the invention, the information indicating the storage position of the head of the transmission data to be stored during the transmission data transfer process is:
By using the address in the transmission buffer, the above-mentioned problems can be achieved, and the efficiency of processing required for reading the information written in the transmission buffer can be improved and the processing speed can be improved. It is a thing.
【0059】又、前記第1発明の前記送信用バッファデ
ータ格納方法において、前記分割順格納順情報が、それ
ぞれの前記送信用バッファ毎に用意されたリンクポイン
タに記憶される、その送信用バッファに格納されたデー
タの分割順に従って各送信用バッファに続く、次の送信
用バッファの先頭のアドレスであることにより、前記課
題を達成すると共に、前記送信データの前記データ量M
が前記記憶容量Lより多い場合により効果的に対応でき
るようにすると共に、その際の前記送信用バッファを読
み出す際の処理の効率向上等、又、これによる処理速度
の向上等を図ったものである。In the transmission buffer data storage method of the first invention, the division order storage order information is stored in a link pointer prepared for each of the transmission buffers. According to the first address of the next transmission buffer, which follows each transmission buffer in accordance with the division order of the stored data, the above problem can be achieved and the data amount M of the transmission data can be achieved.
Is more effective than the storage capacity L, the processing efficiency in reading the transmission buffer at that time is improved, and the processing speed is improved. is there.
【0060】一方、本願の第2発明の送信用バッファデ
ータ格納装置は、送信データを記憶容量Lの送信用バッ
ファへ格納する送信データ転送処理の後に、前記送信デ
ータの送信時に付加するプロトコルヘッダを送信時のデ
ータ配列順で付加すべく、前記プロトコルヘッダを前記
送信用バッファの先頭側へ格納する処理を中心としたヘ
ッダ付加処理を行う送信用バッファデータ格納装置にお
いて、前記送信データ転送処理の際に、前記送信データ
の先頭及び尾端に関して、該送信データ尾端を後方側へ
詰めるようにして該送信データを前記送信用バッファへ
格納するデータ転送部と、又、前記送信データ転送処理
の際に、このような前記送信データの前記送信用バッフ
ァへの格納後の、該送信用バッファにおける前記送信デ
ータ先頭の格納位置を示す情報を保存する先頭アドレス
情報保存部とを備えたことにより、前記課題を達成可能
な送信用バッファデータ格納装置を提供したものであ
る。On the other hand, the transmission buffer data storage device of the second invention of the present application, after the transmission data transfer process of storing the transmission data in the transmission buffer of the storage capacity L, adds the protocol header added when the transmission data is transmitted. In the transmission buffer data storage device that performs header addition processing centered on the processing of storing the protocol header at the head side of the transmission buffer in order to add the data in the data array order at the time of transmission, A data transfer unit for storing the transmission data in the transmission buffer so that the transmission data tail end is packed backward with respect to the head and tail end of the transmission data; The storage position of the head of the transmission data in the transmission buffer after the transmission data is stored in the transmission buffer. By and a leading address information storage unit for storing information indicating a is obtained by providing a transmit buffer data storage device that can achieve the above objects.
【0061】[0061]
【作用】送信用データを記憶容量Lの送信用バッファへ
格納する送信データ転送処理の後に、前記送信データの
送信時に付加するプロトコルヘッダを送信時のデータ配
列順で付加すべく、前記プロトコルヘッダを前記送信用
バッファへ格納する際、該プロトコルヘッダについて
は、特に、その前記送信データの前方(先端側)の直前
へと格納されるものである。本願の前記第1発明及び前
記第2発明は、いずれもこのように、前記送信データの
前方の直前に格納されるという点に着目してなされたも
のである。After the transmission data transfer process for storing the transmission data in the transmission buffer having the storage capacity L, the protocol headers are added so that the protocol headers added at the time of transmitting the transmission data are added in the data arrangement order at the time of transmission. When the protocol header is stored in the transmission buffer, the protocol header is stored immediately before the front (front end) of the transmission data. Both the first invention and the second invention of the present application have been made paying attention to the fact that the transmission data is stored immediately before the transmission data.
【0062】このように前記プロトコルヘッダを前記送
信データの前方の直前へ付加し格納するため、前述のよ
うな前記送信データの移動処理を行わなくても、前記送
信データの前方に空き領域が既にあることが望ましい。
このため、本発明においては、前記送信データ転送処理
の際に、前記送信用バッファへ格納するその前記送信デ
ータの先端及び尾端に関して、該送信データ尾端を後方
側へ詰めるようにして該送信データを前記送信用バッフ
ァへ格納するようにしている。As described above, since the protocol header is added and stored immediately before the front of the transmission data, a vacant area is already present in front of the transmission data without performing the moving process of the transmission data as described above. Is desirable.
Therefore, in the present invention, in the transmission data transfer process, the transmission data tail end is stored in the transmission buffer so that the transmission data tail end is packed backward. Data is stored in the transmission buffer.
【0063】このように後方側へ詰めて格納すること
で、前記送信用バッファの前記記憶容量Lに対して、格
納する前記送信データのデータ長Mが短い場合には、該
送信データの前方(直前)へ空き領域ができる。従っ
て、本願の前記第1発明及び前記第2発明によれば、特
にその前記送信データの移動処理を行わずに、該送信デ
ータの前方へと空き領域を設けることができる。又、該
空き領域を有効に用いて、必要なプロトコルヘッダを即
座に付加することができる。By packing the data in the rearward direction and storing the data in this way, when the data length M of the transmission data to be stored is shorter than the storage capacity L of the transmission buffer, the front side of the transmission data ( There is an empty area to the last minute. Therefore, according to the first invention and the second invention of the present application, it is possible to provide an empty area in front of the transmission data without performing the moving process of the transmission data. Moreover, the required protocol header can be added immediately by effectively using the empty area.
【0064】図1は、本願の前記第1発明及び前記第2
発明の要旨を示すその用いる送信用バッファのアドレス
マップである。FIG. 1 shows the first invention and the second invention of the present application.
3 is an address map of a transmission buffer used therefor showing the gist of the invention.
【0065】この図1においては、前記第1発明の前記
送信用バッファデータ格納方法で用いられるその前記送
信用バッファの1つ分の、あるいは、前記第2発明の前
記送信用バッファデータ格納装置で用いられる前記送信
用バッファの1つ分のメモリマップが示されている。In FIG. 1, one of the transmission buffers used in the transmission buffer data storage method of the first invention, or the transmission buffer data storage device of the second invention is used. A memory map for one of the transmit buffers used is shown.
【0066】この図1においては、前記第1発明あるい
は前記第2発明で用いられる前記送信用バッファは、管
理情報格納領域及び送信データ格納領域にて構成され
る。特に、前記管理情報格納領域は、制御情報CDの格
納領域と、データ先頭アドレス情報SAの格納領域とに
より構成される。一方、前記送信データ格納領域は、特
に前記送信データが格納されている送信データ領域SD
と、特には前記送信データが格納されていない未使用の
空き領域とによって構成されている。In FIG. 1, the transmission buffer used in the first invention or the second invention is composed of a management information storage area and a transmission data storage area. In particular, the management information storage area includes a control information CD storage area and a data start address information SA storage area. On the other hand, the transmission data storage area is particularly the transmission data area SD in which the transmission data is stored.
And, in particular, an unused free area in which the transmission data is not stored.
【0067】まず、前記制御情報CDについて、前記第
1発明及び前記第2発明は、これを有することに限定さ
れるものではなく、又その内容についても限定するもの
ではない。しかしながら、一般には、各送信用バッファ
は、何らかの制御情報を有するもの等で、このような制
御情報CDの領域を備えるものである。First, regarding the control information CD, the first invention and the second invention are not limited to having the same, and the contents thereof are not limited. However, in general, each transmission buffer has some kind of control information, and has such a control information CD area.
【0068】又、前記データ先頭アドレス情報SAは、
前記送信データ格納領域へ格納される前記送信データ領
域SDのその先頭、即ち送信データ先頭のアドレス(格
納位置)を示す情報である。前記送信データ格納領域へ
格納される、前記送信データについては、そのデータ長
は種々の長さとなるものである。従って、前記図20や
前記図26に示される前記データ長LDに相当する何ら
かの情報(データ)を保存する必要がある。本発明は、
このような前記送信用バッファへ格納する前記送信デー
タのその先頭の格納位置を示す情報について特に限定す
るものではない。Further, the data head address information SA is
This is information indicating the start address (storage position) of the transmission data area SD stored in the transmission data storage area, that is, the transmission data start address. The transmission data stored in the transmission data storage area has various data lengths. Therefore, it is necessary to store some information (data) corresponding to the data length LD shown in FIG. 20 or FIG. The present invention
The information indicating the storage position at the beginning of the transmission data stored in the transmission buffer is not particularly limited.
【0069】例えば、該データ先頭アドレス情報SAを
前記送信用バッファにおけるアドレス、例えばその絶対
アドレスや、前記先頭アドレスSAに対する相対的なア
ドレスとした場合には、前記図1に示される前記送信デ
ータ先頭アドレスADSを即座に知ることができる。通
常、前記送信データを読み出す際、まず、該送信データ
先頭アドレスADSを要する。従って、このようにした
場合には、該送信データ先頭アドレスADSを即座に得
ることができるため、その演算速度や処理速度の向上を
図ることが可能である。For example, when the data head address information SA is an address in the transmission buffer, for example, its absolute address or an address relative to the head address SA, the transmission data head shown in FIG. The address ADS can be known immediately. Normally, when reading the transmission data, first, the transmission data start address ADS is required. Therefore, in such a case, the transmission data head address ADS can be immediately obtained, so that the calculation speed and processing speed can be improved.
【0070】又、この図1において、前述したように、
前記送信データは、前記送信用バッファ、特に前記送信
データ格納領域において、その後方側へと詰めて格納さ
れる。従って、空き領域は、この図1に示される如く、
前記送信データ領域SDの先頭側になる。なお、該送信
データ領域SDについて、その先頭アドレスは、前記図
1に示されるような送信データ先頭アドレスADSとな
る。Further, in FIG. 1, as described above,
The transmission data is stored rearward in the transmission buffer, particularly in the transmission data storage area. Therefore, the empty area is, as shown in FIG.
It is on the head side of the transmission data area SD. The start address of the transmission data area SD is the transmission data start address ADS as shown in FIG.
【0071】この図1に示される如く、前記第1発明あ
るいは前記第2発明によれば、前記送信データ領域SD
の先頭側には前記空き領域が生じ、例えば所定のプロト
コルに従った送信データを編成する際、そのプロトコル
ヘッダを前記送信データの先頭へより容易に付加するこ
とが可能である。従って、前記送信データの移動処理を
より減少することが可能である。又、複数の前記送信用
バッファを用いる場合には、必要とされる送信バッファ
の数や領域の大きさを抑えながら、前記送信データの移
動処理をより減少することも可能である。As shown in FIG. 1, according to the first invention or the second invention, the transmission data area SD is
The empty area is generated at the head side of the, and, for example, when organizing transmission data according to a predetermined protocol, it is possible to easily add the protocol header to the head of the transmission data. Therefore, it is possible to further reduce the movement processing of the transmission data. Further, when a plurality of transmission buffers are used, it is possible to further reduce the movement processing of the transmission data while suppressing the required number of transmission buffers and the size of the area.
【0072】なお、本願の前記第1発明及び前記第2発
明は、前記図20に示す従来の送信バッファのような複
数の送信バッファをリンクしないものや、前記図26に
示される従来の送信バッファのような複数の送信バッフ
ァをリンクするもの等の、いずれかに限定されるもので
はない。即ち、前記図26の従来のものの如く、リンク
ポインタ等を用い、複数の送信用バッファを用いるもの
であっても適用することができる。従来、このように複
数の前記送信用バッファを用いたものでは複数の送信用
バッファに跨って前述のような前記送信データの移動処
理を行わなければならず、その処理がかなり煩雑になっ
ていた。The first invention and the second invention of the present application do not link a plurality of transmission buffers like the conventional transmission buffer shown in FIG. 20 and the conventional transmission buffer shown in FIG. However, the present invention is not limited to one such as linking a plurality of transmission buffers. That is, like the conventional one shown in FIG. 26, the one using a plurality of transmission buffers by using a link pointer or the like can be applied. Conventionally, in the case of using a plurality of transmission buffers in this way, the movement processing of the transmission data as described above has to be performed across a plurality of transmission buffers, and the processing has become quite complicated. .
【0073】しかしながら、このように複数の前記送信
用バッファを用いるものに対して前記第1発明あるいは
前記第2発明を適用することで、このような繁雑な処理
を削減することが可能である。この際、前記図29〜図
31に示したような多数の前記送信バッファを用いる必
要も特になく、必要とされる送信バッファの数や領域の
大きさを抑えることも可能である。However, by applying the first invention or the second invention to the one using the plurality of transmission buffers in this way, it is possible to reduce such complicated processing. At this time, it is not particularly necessary to use a large number of the transmission buffers as shown in FIGS. 29 to 31, and it is possible to suppress the number of transmission buffers and the size of the area required.
【0074】なお、このように前記第1発明あるいは前
記第2発明を複数の前記送信用バッファを用いることに
適用した場合にあっては、前記図26等に示される前記
リンクポインタLPのような、分割後の前記送信データ
が順次複数の前記送信用バッファに格納される際の、そ
の分割順に対するその格納順の情報を保存する必要があ
る。本発明においては、このような格納順の情報につい
て特に限定するものではないが、例えば前記図26に示
したようなリンクポインタとすることで、その前記送信
用バッファに格納されるその前記送信データを読み出す
際、即座に複数の送信用バッファをリンクすることがで
き、その読み出し等に要する処理の効率を向上し、その
処理時間をより短縮することが可能である。When the first invention or the second invention is applied to the use of a plurality of the transmission buffers, the link pointer LP shown in FIG. 26 or the like is used. When the transmission data after division is sequentially stored in the plurality of transmission buffers, it is necessary to store information on the storage order with respect to the division order. In the present invention, such storage order information is not particularly limited, but the transmission data stored in the transmission buffer can be stored by using a link pointer as shown in FIG. 26, for example. It is possible to immediately link a plurality of transmission buffers at the time of reading, to improve the efficiency of the processing required for reading, and to further reduce the processing time.
【0075】[0075]
【実施例】以下、図を用いて本発明の実施例を詳細に説
明する。Embodiments of the present invention will be described in detail below with reference to the drawings.
【0076】図2は、前記第1発明の前記送信用バッフ
ァデータ格納方法及び前記第2発明の前記送信用バッフ
ァデータ格納装置が適用された通信制御装置の実施例の
構成を示すブロック図である。FIG. 2 is a block diagram showing the configuration of an embodiment of a communication control device to which the transmission buffer data storage method of the first invention and the transmission buffer data storage device of the second invention are applied. .
【0077】この図2と前記図18に示す前述した従来
の通信制御装置とを比較して明らかな如く、本実施例は
プロトコル制御部12Aとバッファメモリ16Aが、前
記図18のものと異なる。又、特に前記バッファメモリ
16Aにあって、この図2の送信用バッファメモリ16
a が、前記図18の前記送信用バッファメモリ16cと
異なる。As is apparent from a comparison between FIG. 2 and the above-mentioned conventional communication control device shown in FIG. 18, the protocol control unit 12A and the buffer memory 16A of this embodiment are different from those of FIG. Further, particularly in the buffer memory 16A, the transmission buffer memory 16 of FIG.
a is different from the transmission buffer memory 16c of FIG.
【0078】これらプロトコル制御部12A及びバッフ
ァメモリ16Aに関する、前記バス制御部11や前記回
線制御部14等に対する処理は、前記図18に示した前
記プロトコル制御部12Bや前記バッファメモリ16B
等と同等のものである。これらプロトコル制御部12A
やバッファメモリ16Aについては、その内部処理にお
いて、前記第1発明や前記第2発明を適用した点で前記
図18の従来のものと異なるのみである。With respect to the protocol control unit 12A and the buffer memory 16A, the processes for the bus control unit 11 and the line control unit 14 are performed by the protocol control unit 12B and the buffer memory 16B shown in FIG.
And the like. These protocol control units 12A
The internal processing of the buffer memory 16A is different from the conventional one of FIG. 18 in that the first invention and the second invention are applied.
【0079】図3は、前記実施例で用いられる前記プロ
トコル制御部の構成を示すブロック図である。FIG. 3 is a block diagram showing the configuration of the protocol control unit used in the above embodiment.
【0080】この図3に示される前記プロトコル制御部
12Aは、特に、CPU送信データ処理部12a と、T
層データ処理部12b と、N層データ処理部12c と、
LLC層データ処理部12d と、フレーム送信処理部1
2e とにより構成される。The protocol control section 12A shown in FIG. 3 has a CPU transmission data processing section 12a and a T
A layer data processing unit 12b, an N layer data processing unit 12c,
LLC layer data processing unit 12d and frame transmission processing unit 1
2e and.
【0081】これらについて、それぞれの機能は、同一
の名称の前記図19に示される対応するものと同一であ
る。即ち、これらCPU送信データ処理部12a 、T層
データ処理部12b 、N層データ処理部12c 、LLC
層データ処理部12d 及びフレーム送信処理部12e に
ついては、その機能を達成するその内部処理が、特に前
記図19に示す同名称のものと異なるのみである。Regarding these, the respective functions are the same as the corresponding ones shown in FIG. 19 having the same names. That is, these CPU transmission data processing unit 12a, T layer data processing unit 12b, N layer data processing unit 12c, LLC
The layer data processing unit 12d and the frame transmission processing unit 12e are different from each other only in the internal processing for achieving their functions, especially those having the same names shown in FIG.
【0082】図4は、前記実施例が有する前記CPU送
信データ処理部12a の構成を示すブロック図である。FIG. 4 is a block diagram showing the configuration of the CPU transmission data processing unit 12a of the above embodiment.
【0083】この図4に示す如く、前記CPU送信デー
タ処理部12a は、特に、送信要求受付部13a と、バ
ッファメモリ獲得部13b と、データ転送部13c と、
先頭アドレス情報保存部13d とにより構成されてい
る。なお、このような該CPU送信データ処理部12a
の実際の処理については、図14のフローチャートを用
い、より詳しく後述する。As shown in FIG. 4, the CPU transmission data processing unit 12a includes, in particular, a transmission request reception unit 13a, a buffer memory acquisition unit 13b, a data transfer unit 13c,
It is composed of a head address information storage unit 13d. In addition, such a CPU transmission data processing unit 12a
The actual processing of (1) will be described in more detail later using the flowchart of FIG.
【0084】図5は、本実施例で用いられる前記送信用
バッファの1つ分の構成を示すメモリマップである。FIG. 5 is a memory map showing the structure of one of the transmission buffers used in this embodiment.
【0085】前記図2に示される前記送信用バッファメ
モリ16a には、必要に応じ、この図5に示されるよう
な構成の前記送信バッファの領域が適宜確保される。
又、場合によっては複数の該送信バッファが用意される
場合もある。In the transmission buffer memory 16a shown in FIG. 2, an area of the transmission buffer having the structure shown in FIG. 5 is appropriately secured as needed.
In some cases, a plurality of transmission buffers may be prepared.
【0086】この図5に示される如く、本実施例の前記
送信バッファは、制御情報CDの領域と、リンクポイン
タLPの領域と、データ先頭アドレス情報SACの領域
と、送信データ領域SDと、空き領域とにより構成され
る。As shown in FIG. 5, the transmission buffer of this embodiment has a control information CD area, a link pointer LP area, a data head address information SAC area, a transmission data area SD, and an empty space. And a region.
【0087】特に、本実施例で用いられる送信用バッフ
ァは、前記図1に示す前述のものに対して、更に、前記
リンクポインタLPを備えている。該リンクポインタL
Pは、前記図26〜前記図31を用いて前述したものと
同じものである。In particular, the transmission buffer used in this embodiment further includes the link pointer LP in addition to the above-mentioned one shown in FIG. The link pointer L
P is the same as that described above with reference to FIGS. 26 to 31.
【0088】又、本実施例では、前記図1にある前記デ
ータ先頭アドレス情報SAに対応するデータ先頭アドレ
ス情報SACを備えている。該データ先頭アドレス情報
SACは、前記送信データ領域SDの先頭アドレス、即
ち前記図5に図示される送信データ先頭アドレスADS
が記憶される。特に、該送信データ先頭アドレスADS
の絶対アドレスが記憶される。In this embodiment, the data head address information SAC corresponding to the data head address information SA shown in FIG. 1 is provided. The data head address information SAC is the head address of the transmission data area SD, that is, the transmission data head address ADS shown in FIG.
Is memorized. In particular, the transmission data start address ADS
The absolute address of is stored.
【0089】以下、本実施例での前記送信用バッファの
利用方法について、より具体的に説明する。The method of using the transmission buffer in this embodiment will be described more specifically below.
【0090】まず、本実施例の前記送信用バッファのそ
の記憶容量Lに関して、前記CPU1から送られるCP
U送信データSDCのデータ長と、該CPU送信データ
に関して、前記T層のプロトコル編成時に付加されるプ
ロトコルヘッダHTCのデータ長と、前記N層のプロト
コル編成時に付加されるプロトコルヘッダHNCのデー
タ長と、前記LLC層のプロトコル編成時に付加される
プロトコルヘッダHLLCCのデータ長との、これらデ
ータ長の合計が前記記憶容量Lに対して短い場合、図6
〜図9に示される通りとなる。First, regarding the storage capacity L of the transmission buffer of this embodiment, the CP sent from the CPU 1
The data length of the U transmission data SDC, the data length of the protocol header HTC added at the time of the protocol composition of the T layer, and the data length of the protocol header HNC added at the time of the protocol composition of the N layer with respect to the CPU transmission data. , And the data length of the protocol header HLLCC added when the protocol of the LLC layer is organized, when the sum of these data lengths is shorter than the storage capacity L, FIG.
~ As shown in FIG.
【0091】即ち、まず、前記図6に示す如く、前記C
PU1から前記CPU送信データSDCが送られると、
本実施例の前記送信用バッファへは、後方側へ詰めるよ
うにして、前記CPU送信データSDCが格納される。
従って、空き領域は、前記送信データ格納領域の上方側
となる。即ち、前記データ先頭アドレス情報SAC1と
前記CPU送信データSDCとの間が空き領域となる。That is, first, as shown in FIG.
When the CPU transmission data SDC is sent from PU1,
The CPU transmission data SDC is stored in the transmission buffer of this embodiment so as to be packed backward.
Therefore, the empty area is above the transmission data storage area. That is, a space is provided between the data head address information SAC1 and the CPU transmission data SDC.
【0092】次に、前記T層のプロトコル編成に際し
て、その前記プロトコルヘッダHTCを付加すると、前
記図7に示す通りとなる。即ち、前記送信データ格納領
域において後方側へ詰めるようにして格納された前記C
PU送信データSDCの直前へ、前記プロトコルヘッダ
HTCが格納される。このような該プロトコルヘッダH
TCの格納の際、その格納位置は前記空き領域となって
いるため、特に前記送信データSDCの移動処理は要し
ない。Next, when the protocol header HTC is added when the protocol of the T layer is organized, it becomes as shown in FIG. That is, the C stored so as to be packed backward in the transmission data storage area
The protocol header HTC is stored immediately before the PU transmission data SDC. Such a protocol header H
When storing the TC, since the storage position is the empty area, the moving process of the transmission data SDC is not particularly required.
【0093】以下同様に、前記N層や前記LLC層のプ
ロトコル編成の際、それぞれのプロトコルヘッダHNC
あるいはHLLCCの付加の際にも、前記送信データ格
納領域中の空き領域が用いられる。従って、該空き領域
が存在すれば、前記図8や前記図9に示す如く、このよ
うなプロトコルの編成時におけるプロトコルヘッダHN
CあるいはHLLCCの格納を即座に行うことができ、
該格納のためのスペースを得るための前記CPU送信デ
ータSDCの移動処理は不要となる。即ち、前記図8の
如くまず前記プロトコルヘッダHNCを格納後、前記図
9の如く、前記プロトコルヘッダHLLCCを格納す
る。Similarly, when the protocol of the N layer and the LLC layer is organized, each protocol header HNC
Alternatively, the empty area in the transmission data storage area is also used when the HLLCC is added. Therefore, if the empty area exists, as shown in FIGS. 8 and 9, the protocol header HN at the time of organizing such a protocol.
The C or HLLCC can be stored immediately,
The movement process of the CPU transmission data SDC for obtaining the space for the storage becomes unnecessary. That is, the protocol header HNC is first stored as shown in FIG. 8, and then the protocol header HLLCC is stored as shown in FIG.
【0094】次に、図10は、送信データSDD1〜S
DD4でなる1つのCPU送信データを対象とした場合
のものである。この図10において、特に該CPU送信
データのその合計のデータ長が、本実施例の送信用バッ
ファの前記記憶容量Lについて、3Lより長く、且つ、
4L以下の場合である。Next, FIG. 10 shows transmission data SDD1 to SDD.
This is a case where one CPU transmission data of DD4 is targeted. In FIG. 10, in particular, the total data length of the CPU transmission data is longer than 3L with respect to the storage capacity L of the transmission buffer of the present embodiment, and
This is the case of 4 L or less.
【0095】このような場合には、この図10に示され
る如く、4つの前記送信用バッファに対応して、その前
記送信データの尾端側から順に、前記記憶容量Lずつ順
次分割され、分割されたものがそれぞれ別の前記送信用
バッファへ順次格納される。又、その分割順に対するそ
の格納順の情報として、それぞれの前記送信用バッファ
のリンクポインタLPD1〜LPD4の値が記憶保存さ
れる。In such a case, as shown in FIG. 10, corresponding to the four transmission buffers, the storage capacity L is sequentially divided from the tail end side of the transmission data, and divided. The obtained data are sequentially stored in different transmission buffers. The values of the link pointers LPD1 to LPD4 of the respective transmission buffers are stored and stored as the information of the storage order with respect to the division order.
【0096】ここで、このように前記送信データの尾端
から順次分割されるため、該送信データの先頭側の部
分、即ち、前記送信データSDD1の前方の直前の部分
へと、空き領域が存在する。従って、前記T層や前記N
層又前記LLC層のプロトコルの送信データの編成時、
それぞれの対応するプロトコルヘッダHTD1、HND
1及びHLLCD1は、前記送信データSDD1の前方
のこのような空き領域へ順次書き込むことが可能であ
る。従って、このようなプロトコルヘッダの書き込み
時、前記送信データSDD1〜SDD4について、移動
処理等を行う必要がない。Here, since the transmission data is sequentially divided from the tail end as described above, a vacant area exists at the head side portion of the transmission data, that is, the portion immediately before the transmission data SDD1. To do. Therefore, the T layer and the N layer
Layer or the transmission data of the LLC layer protocol,
Each corresponding protocol header HTD1, HND
1 and HLLCD1 can sequentially write to such an empty area in front of the transmission data SDD1. Therefore, at the time of writing such a protocol header, it is not necessary to perform a moving process or the like on the transmission data SDD1 to SDD4.
【0097】なお、前記図10に示されるようにそれぞ
れの前記送信用バッファに格納された前記送信データS
DD1〜SDD4について、全く分離された2つの電文
(メッセージ)へ分割する必要がある場合もある。The transmission data S stored in each of the transmission buffers as shown in FIG.
In some cases, it is necessary to divide DD1 to SDD4 into two completely separated messages (messages).
【0098】例えば、ある階層(レイヤ)より下位での
送信データの長さ(最大長)に制限が生じる場合等であ
る。例えば前記送信用バッファ3個分の長さが上限の場
合、前記図10において、前記送信データSDD4が格
納された送信用バッファのデータの前方において、2つ
の電文に分割する必要がある。即ち、前記送信データS
DD3が格納されたものと、前記送信データSDD4が
格納されたものとの間で分割する必要がある。For example, there is a case where the length (maximum length) of transmission data in a lower layer than a certain layer is limited. For example, when the length of the three transmission buffers is the upper limit, in FIG. 10, it is necessary to divide into two telegrams in front of the data of the transmission buffer in which the transmission data SDD4 is stored. That is, the transmission data S
It is necessary to divide between the one in which the DD3 is stored and the one in which the transmission data SDD4 is stored.
【0099】このような場合には、前記送信データSD
D4が格納された前記送信用バッファのデータの前方
へ、新たに別のプロトコルヘッダHTD2、HND2及
びHLLCD2を設ければよい。即ち、図11及び図1
2に示す通りである。In such a case, the transmission data SD
Other protocol headers HTD2, HND2 and HLLCD2 may be newly provided in front of the data in the transmission buffer in which D4 is stored. That is, FIG. 11 and FIG.
As shown in 2.
【0100】この図11では、前記送信データSDD1
〜SDD3が格納された、順にリンクされる3つの送信
用バッファが示されている。一方、前記図12において
は、前記送信用データSDD4が格納された前記送信用
バッファと共に、該送信用バッファのデータに対するプ
ロトコルヘッダとして、前記T層のプロトコルヘッダH
TD2、前記N層のプロトコルヘッダHND2及び前記
LLC層のプロトコルヘッダHLLCD2の付加に用い
られる1つの前記送信用バッファが用いられている。In FIG. 11, the transmission data SDD1
.About.SDD3 are stored and three sequentially linked transmission buffers are shown. On the other hand, in FIG. 12, together with the transmission buffer in which the transmission data SDD4 is stored, the protocol header H of the T layer is used as a protocol header for the data of the transmission buffer.
One transmission buffer used for adding the TD2, the protocol header HND2 of the N layer and the protocol header HLLCD2 of the LLC layer is used.
【0101】このように本実施例によれば、前記図11
や前記図12等に示されるように2つの電文に分割する
際にも、前記プロトコルヘッダHTD2、HND2及び
HLLCD2が格納される前記送信用バッファに関する
処理のみ行えばよく、前記送信用データSDD1〜SD
D4に関するデータの移動処理を行う必要がない。As described above, according to this embodiment, as shown in FIG.
Also, when dividing into two telegrams as shown in FIG. 12 and the like, only the processing relating to the transmission buffer in which the protocol headers HTD2, HND2 and HLLCD2 are stored is performed, and the transmission data SDD1 to SDD
There is no need to perform a data movement process regarding D4.
【0102】図13は、本実施例における前記プロトコ
ル制御部で行われる処理を示すフローチャートである。FIG. 13 is a flow chart showing the processing performed by the protocol control unit in this embodiment.
【0103】この図13において、まずステップS11
0では、前記図3の前記CPU送信データ処理部12a
でなされる送信データの転送の処理が示されている。こ
の送信データの転送処理は、前記図2において、前記バ
ス制御部11を用いながら、該CPU送信データ処理部
12a が前記CPU1からの送信データを転送するもの
である。該ステップS110でなされる処理について
は、図14のフローチャートを用いより詳しく後述す
る。In FIG. 13, first, step S11
0, the CPU transmission data processing unit 12a of FIG.
The process of transmitting the transmission data is shown in FIG. In this transmission data transfer processing, in FIG. 2, the CPU transmission data processing unit 12a transfers the transmission data from the CPU 1 while using the bus control unit 11. The process performed in step S110 will be described later in more detail with reference to the flowchart of FIG.
【0104】続いてステップS112では、前記プロト
コル制御部12Aの前記T層データ処理部12b でのT
層プロトコル処理が示される。又、ステップS114で
は、前記N層データ処理部12c でなされるN層プロト
コル処理が示される。ステップS116では、前記LL
C層データ処理部12d でなされるLLC層プロトコル
処理が示される。これらステップS112〜S116で
なされるそれぞれのプロトコル処理は、いずれも、図1
5のフローチャートを用いて後述するようなものであ
る。これらステップS112〜S116で示されるプロ
トコル処理の1つ1つが、前記図15に示す1つの処理
となる。これらのプロトコル処理は、いずれも、主とし
て前記送信用バッファメモリ16a に対してなされるも
のである。Subsequently, in step S112, the T in the T layer data processing unit 12b of the protocol control unit 12A is processed.
Layer protocol processing is shown. In step S114, the N-layer protocol processing performed by the N-layer data processing unit 12c is shown. In step S116, the LL
The LLC layer protocol processing performed by the C layer data processing unit 12d is shown. Each of the protocol processes performed in these steps S112 to S116 is as shown in FIG.
This will be described later with reference to the flowchart of FIG. Each of the protocol processes shown in steps S112 to S116 corresponds to one process shown in FIG. All of these protocol processes are mainly performed on the transmission buffer memory 16a.
【0105】続いてステップS118では、前記フレー
ム送信処理部12e 及び前記回線制御部14で行われる
フレーム送信処理である。このフレーム送信処理は、前
記送信用バッファメモリ16a へ得られた最終的な送信
データを、前記回線制御部14及び前記伝送路3を経
て、相手方のCPU等へ伝送するというものである。Subsequently, in step S118, a frame transmission process is performed by the frame transmission processing unit 12e and the line control unit 14. This frame transmission processing is to transmit the final transmission data obtained in the transmission buffer memory 16a to the other party's CPU or the like via the line control unit 14 and the transmission path 3.
【0106】図14は、本実施例でなされる送信データ
の転送処理を示すフローチャートである。FIG. 14 is a flow chart showing the transfer processing of transmission data performed in this embodiment.
【0107】この図14のフローチャートでは、前記図
13に示した前記ステップS110の送信データの転送
処理が、そのサブルーチンとして示されている。In the flowchart of FIG. 14, the transfer processing of the transmission data in step S110 shown in FIG. 13 is shown as a subroutine thereof.
【0108】この図14において、まずステップS13
2では、前記プロトコル制御部12Aの前記CPU送信
データ処理部12a が、前記バス制御部11等を経由し
て伝達される前記CPU1からのデータ送信要求を受付
ける。続いてステップS134では、前記ステップS1
32で受付けられた前記データ送信要求に対応する送信
データのそのデータ長を、前記CPU1から取得する。
続くステップ136では、前記ステップS134で得ら
れた前記送信データのデータ長に基づき、前記送信用バ
ッファメモリ16a 内で、実際に用いられる送信用バッ
ファが獲得される。In FIG. 14, first, in step S13.
In 2, the CPU transmission data processing unit 12a of the protocol control unit 12A accepts a data transmission request from the CPU 1 transmitted via the bus control unit 11 or the like. Then, in step S134, the step S1
The data length of the transmission data corresponding to the data transmission request accepted at 32 is acquired from the CPU 1.
In the following step 136, an actually used transmission buffer is acquired in the transmission buffer memory 16a based on the data length of the transmission data obtained in step S134.
【0109】この後、ステップS138及びS140の
ループを繰返すことで、前記CPU1から前記送信用バ
ッファメモリ16a へ、送信データを転送する。この
時、該送信データは、前記ステップS136で獲得され
た前記図5に示される前記送信用バッファへと、前記送
信データ格納領域の後方側から詰めるようにして格納さ
れる。After that, by repeating the loop of steps S138 and S140, the transmission data is transferred from the CPU 1 to the transmission buffer memory 16a. At this time, the transmission data is stored in the transmission buffer shown in FIG. 5 obtained in step S136 so as to be packed from the rear side of the transmission data storage area.
【0110】又、全ての前記送信データが前記送信用バ
ッファメモリ16a に格納され、前記ステップS138
及びS140が終了すると、ステップS142にて、前
記図5に示される前記データ先頭アドレス情報SACが
保存される。なお、このデータ先頭アドレス情報SAC
は、前記図5に示される前記送信データ先頭アドレスA
DSである。Further, all the transmission data are stored in the transmission buffer memory 16a, and the step S138 is performed.
When S140 and S140 are completed, the data head address information SAC shown in FIG. 5 is stored in step S142. This data start address information SAC
Is the transmission data start address A shown in FIG.
It is DS.
【0111】該送信データ先頭アドレスADSは、前記
ステップS134で得られる前記データ長に基づいて求
めてもよい。あるいは、該送信データ先頭アドレスAD
Sは、前記ステップS138及びS140でのデータ転
送の際、最終的な前記送信データが書き込まれる前記送
信データ先頭アドレスADSを検出して求めてもよい。
又、該データ先頭アドレス情報を前記ステップS134
での前記データ長から求めた場合、該ステップS142
を、前記ステップ134以降での任意のタイミングで実
行することが可能である。The transmission data head address ADS may be obtained based on the data length obtained in step S134. Alternatively, the transmission data start address AD
S may be obtained by detecting the transmission data start address ADS in which the final transmission data is written during the data transfer in steps S138 and S140.
Further, the data head address information is set in the step S134.
If it is determined from the data length in step S142,
Can be executed at any timing after step 134.
【0112】図15は、本実施例で行われるプロトコル
処理を示すフローチャートである。FIG. 15 is a flow chart showing the protocol processing performed in this embodiment.
【0113】このプロトコル処理は、前記T層データ処
理部12b で行われる、前記ステップS112で行われ
る前記T層プロトコル処理である。あるいは、前記N層
データ処理部12c で行われる、前記ステップS114
の前記N層プロトコル処理である。あるいは、前記LL
C層データ処理部12d で行われる、前記LLC層プロ
トコル処理である。This protocol processing is the T layer protocol processing performed in step S112, which is performed in the T layer data processing section 12b. Alternatively, the step S114 is performed in the N-layer data processing unit 12c.
The N-layer protocol processing of FIG. Alternatively, the LL
This is the LLC layer protocol processing performed by the C layer data processing unit 12d.
【0114】この図15において、まずステップS16
2では、そのプロトコル処理の階層(レイヤ)で生成す
るプロトコルの送信データのデータ長を示す、PDU長
を“0”にクリアする。即ち、該PDU長を記憶するレ
ジスタへと、“0”を書き込む。In FIG. 15, first, step S16.
In 2, the PDU length indicating the data length of the transmission data of the protocol generated in the protocol processing layer is cleared to “0”. That is, "0" is written in the register that stores the PDU length.
【0115】ここで、PDU長とは、あるレイヤで扱う
送信データのデータ長とプロトコルヘッダのデータ長と
の和である。即ち、該PDU長は、そのレイヤで付加さ
れるプロトコルヘッダをも含んだ送信データの全体のデ
ータ長である。該PDU長を記憶するレジスタは、既に
バッファに書込んだデータの長さを示す変数を格納する
ために使う。又、プロトコルによってそのレイヤで扱え
る最大のデータ長が決まっており、これを最大PDU長
という。あるレイヤでのこのような最大PDU長を越え
る送信データは、それぞれがそのレイヤでのプロトコル
ヘッダを有する全く分離された複数の電文(メッセー
ジ)へ分割する必要がある。Here, the PDU length is the sum of the data length of the transmission data handled by a certain layer and the data length of the protocol header. That is, the PDU length is the entire data length of the transmission data including the protocol header added in that layer. The register for storing the PDU length is used to store a variable indicating the length of the data already written in the buffer. Also, the maximum data length that can be handled by that layer is determined by the protocol, and this is called the maximum PDU length. Transmission data exceeding such a maximum PDU length in a certain layer needs to be divided into a plurality of completely separated messages (messages) each having a protocol header in the layer.
【0116】続いてステップS164では、送信データ
の終了か否かの判定を行う。終了であれば、続いてS1
66へ進む。一方、終了でなければ、続いてステップS
170へ進む。Subsequently, in step S164, it is determined whether or not the transmission data has ended. If finished, then S1
Proceed to 66. On the other hand, if it is not completed, then step S
Proceed to 170.
【0117】まず、前記ステップS170では、前記P
DU長へ、その送信バッファ内へ記憶されるデータのデ
ータ長を加算する。First, in step S170, the P
The data length of the data stored in the transmission buffer is added to the DU length.
【0118】続いてステップS172では、前記PDU
長に基づき、複数の送信バッファへと、前記送信データ
を分割するか否かを判定する。前記ステップS170で
加算されていく前記PDU長が最大PDU長以内であれ
ば、分割しないと判定し、該ステップ172から前記ス
テップS164の前方へ分岐する。一方、前記PDU長
が前記最大PDU長より大きくなれば、分割すると判定
し、続いてステップS174へ進む。Then, in step S172, the PDU is
Based on the length, it is determined whether or not to divide the transmission data into a plurality of transmission buffers. If the PDU length added in step S170 is within the maximum PDU length, it is determined not to be divided, and the process branches from step 172 to the front of step S164. On the other hand, if the PDU length becomes larger than the maximum PDU length, it is determined to divide, and the process proceeds to step S174.
【0119】前記ステップS174では、現時点で処理
されたその送信バッファの直後で、前記送信データを分
割する。この後、該分割箇所の次の前記送信バッファの
直前に達して、ステップS176にて、ヘッダ付加処理
を行う。In step S174, the transmission data is divided immediately after the transmission buffer processed at the present time. After this, the point immediately before the transmission buffer next to the division point is reached, and header addition processing is performed in step S176.
【0120】一方、前記ステップS164にて、送信デ
ータ終了と判定された場合、前記ステップS166に
て、前記ステップS176と同様のヘッダ付加処理を行
う。これらステップS176やS166で行われるヘッ
ダ付加処理は、図16を用い詳しく後述するものであ
る。又、該ステップS166の後には、この図15に示
される処理を全て終了し、当該プロトコル処理を呼び出
した次の処理へ復帰するものである。On the other hand, if it is determined in step S164 that the transmission data has ended, in step S166 the same header addition processing as in step S176 is performed. The header addition processing performed in steps S176 and S166 will be described later in detail with reference to FIG. Further, after the step S166, all the processes shown in FIG. 15 are ended, and the process returns to the next process that calls the protocol process.
【0121】図16は、本実施例で行われるヘッダ付加
処理を示すフローチャートである。FIG. 16 is a flow chart showing the header addition processing performed in this embodiment.
【0122】このヘッダ付加処理は、前記図15に示し
た前記プロトコル処理において、前記ステップ176あ
るいは前記ステップ166において呼び出される処理で
ある。This header addition process is a process called in step 176 or step 166 in the protocol process shown in FIG.
【0123】この図16において、まずステップS21
2では、付加すべきプロトコルヘッダを格納する領域
が、前記図5に示す前記空き領域にあるか否かを判定す
る。格納領域があれば、次にステップS214へ進む。
一方、格納領域がない場合、次にステップS220へ進
む。In FIG. 16, first, step S21.
In step 2, it is determined whether the area for storing the protocol header to be added is in the free area shown in FIG. If there is a storage area, the process proceeds to step S214.
On the other hand, when there is no storage area, the process proceeds to step S220.
【0124】まず、前記ステップS214では、前記図
5に示される前記空領域へ、前記送信データ領域SDの
直前へ、そのレイヤにおけるプロトコルヘッダを格納す
る。更に、該プロトコルヘッダのデータ長を、前記PD
U長に加算する。前述したように、前記PDU長はその
送信データのデータ長とそのときのプロトコルヘッダの
データ長との和であるため、今回格納したプロトコルヘ
ッダのデータ長を前記PDU長へこのように加算する。First, in step S214, the protocol header in the layer is stored in the empty area shown in FIG. 5 immediately before the transmission data area SD. Further, the data length of the protocol header is set to the PD
Add to U length. As described above, since the PDU length is the sum of the data length of the transmission data and the data length of the protocol header at that time, the data length of the protocol header stored this time is added to the PDU length in this way.
【0125】更に、前記データ先頭アドレス情報SAC
の値を更新する。即ち、今回格納した前記プロトコルヘ
ッダの長さ分、前記データ先頭アドレス情報SACの値
を減算する。これは、今回このようにプロトコルヘッダ
を格納したため、該プロトコルヘッダのデータ長の分だ
け、空き領域が短くなり、該空き領域の最後尾のアドレ
スも小さくなり、又、その分だけ前記送信データ先頭ア
ドレスADSが小さくなるためである。Further, the data head address information SAC
Update the value of. That is, the value of the data head address information SAC is subtracted by the length of the protocol header stored this time. This is because the protocol header is stored this time, so the free space is shortened by the data length of the protocol header, the address at the end of the free space is also reduced, and the transmission data head is reduced by that amount. This is because the address ADS becomes smaller.
【0126】一方、前記ステップS220では、その時
の前記送信用バッファの前記空き領域へ格納可能な範囲
で、その時のレイヤのプロトコルヘッダを格納する。
又、このような格納の後、その送信用バッファの前記デ
ータ先頭アドレス情報SACや、前記PDU長の値を更
新する。又、前記空き領域が不足するため、該ステップ
S220では、別の新たな前記送信用バッファを獲得す
る。又、ステップS222では今回獲得された前記送信
用バッファへと、今回格納する前記プロトコルヘッダの
未格納部分を、今回獲得した前記送信用バッファへ格納
し、その前記データ先頭アドレス情報SAC等を更新す
る。この際、ステップS224では、獲得前の最後の前
記送信用バッファの前記リンクポインタLPの値を、獲
得した前記送信用バッファの先頭アドレスに更新する。On the other hand, in step S220, the protocol header of the layer at that time is stored in the storable area of the transmission buffer at that time.
After such storage, the data head address information SAC of the transmission buffer and the value of the PDU length are updated. In addition, since the free space is insufficient, another new transmission buffer is acquired in step S220. Further, in step S222, the unstored portion of the protocol header to be stored this time is stored in the transmission buffer acquired this time, and is stored in the transmission buffer acquired this time, and the data head address information SAC and the like are updated. . At this time, in step S224, the value of the link pointer LP of the last transmission buffer before acquisition is updated to the head address of the acquired transmission buffer.
【0127】以上説明した通り、本実施例においては、
例えば前記図5のメモリマップに示す如く、前記第1発
明の前記送信用バッファデータ格納方法を適用すること
が可能である。又、該図5や前記図4等に示される如
く、前記第2発明が適用された通信制御装置を提供する
ことができる。As described above, in this embodiment,
For example, as shown in the memory map of FIG. 5, the transmission buffer data storage method of the first invention can be applied. Further, as shown in FIG. 5 and FIG. 4 etc., it is possible to provide a communication control device to which the second invention is applied.
【0128】従って、本実施例によれば、前記T層や前
記N層又前記LLC層等において、所定のプロトコルに
従った送信データを編成する際、それぞれでのプロトコ
ルヘッダを付加するための、前記送信データの移動処理
を省くことが可能である。又、前記図10〜前記図12
を用い前述したように、複数の送信バッファを用いる際
にも、その前記送信データの移動処理をより削減しなが
ら、同時に、必要とされる送信バッファの数や領域の大
きさを抑えることができる。例えば、本実施例において
は、前記図31に示される従来のような、プロトコルヘ
ッダを付加するため不必要に送信バッファを獲得すると
いうようなことがない。Therefore, according to this embodiment, when the transmission data according to a predetermined protocol is organized in the T layer, the N layer, the LLC layer, etc., in order to add a protocol header for each, It is possible to omit the movement processing of the transmission data. In addition, FIG. 10 to FIG.
As described above, even when a plurality of transmission buffers are used, it is possible to further reduce the number of transmission buffers and the size of the area required while reducing the movement processing of the transmission data. . For example, in this embodiment, there is no need to unnecessarily acquire a transmission buffer because a protocol header is added unlike the conventional case shown in FIG.
【0129】[0129]
【発明の効果】以上説明した通り、本発明によれば、所
定のプロトコルに従った送信データを編成するため、該
送信データへとプロトコルヘッダを付加する際に、送信
用バッファ等へと格納されている該送信データの移動処
理をより減少しながら、又、必要とされる送信バッファ
の数や領域の大きさを抑えることができる送信用バッフ
ァデータ格納方法及び送信用バッファデータ格納装置を
提供することができるという優れた効果を得ることがで
きる。As described above, according to the present invention, in order to organize transmission data according to a predetermined protocol, when a protocol header is added to the transmission data, it is stored in a transmission buffer or the like. Provided are a transmission buffer data storage method and a transmission buffer data storage device capable of suppressing the number of transmission buffers and the size of the area required while further reducing the transfer processing of the transmission data. It is possible to obtain an excellent effect of being able to.
【図1】本願の第1発明の送信用バッファデータ格納方
法及び第2発明の送信用バッファデータ格納装置の要旨
を示す送信用バッファのメモリマップ図FIG. 1 is a memory map diagram of a transmission buffer showing a summary of a transmission buffer data storage method of a first invention and a transmission buffer data storage device of a second invention of the present application.
【図2】前記第1発明及び前記第2発明が適用された通
信制御装置の実施例の構成を示すブロック図FIG. 2 is a block diagram showing a configuration of an embodiment of a communication control device to which the first invention and the second invention are applied.
【図3】前記実施例に用いられるプロトコル制御部の構
成を示すブロック図FIG. 3 is a block diagram showing the configuration of a protocol control unit used in the above embodiment.
【図4】前記実施例の前記プロトコル制御部の前記CP
U送信データ処理部の構成を示すブロック図FIG. 4 is the CP of the protocol control unit of the embodiment.
Block diagram showing the configuration of the U transmission data processing unit
【図5】前記実施例に用いられる送信用バッファのメモ
リマップ図FIG. 5 is a memory map diagram of a transmission buffer used in the embodiment.
【図6】前記実施例において1つの前記送信用バッファ
を用いた場合の作用を説明する第1ステップの前記送信
用バッファのメモリマップ図FIG. 6 is a memory map diagram of the transmission buffer in the first step for explaining the operation when one transmission buffer is used in the embodiment.
【図7】前記実施例において1つの前記送信用バッファ
を用いた場合の作用を説明する第2ステップの前記送信
用バッファのメモリマップ図FIG. 7 is a memory map diagram of the transmission buffer in the second step for explaining the operation when one transmission buffer is used in the embodiment.
【図8】前記実施例において1つの前記送信用バッファ
を用いた場合の作用を説明する第3ステップの前記送信
用バッファのメモリマップ図FIG. 8 is a memory map diagram of the transmission buffer in a third step for explaining the operation when one transmission buffer is used in the embodiment.
【図9】前記実施例において1つの前記送信用バッファ
を用いた場合の作用を説明する第4ステップの前記送信
用バッファのメモリマップ図FIG. 9 is a memory map diagram of the transmission buffer in the fourth step for explaining the operation when one transmission buffer is used in the embodiment.
【図10】前記実施例において複数の前記送信用バッフ
ァを用いた場合の作用を説明する該送信用バッファのメ
モリマップ図FIG. 10 is a memory map diagram of the transmission buffer for explaining the operation when a plurality of the transmission buffers are used in the embodiment.
【図11】前記実施例において複数の前記送信用バッフ
ァを用い、又送信データを分割した場合の前記送信用バ
ッファの第1のメモリマップ図FIG. 11 is a first memory map diagram of the transmission buffer when a plurality of transmission buffers are used and transmission data is divided in the embodiment.
【図12】前記実施例において複数の前記送信用バッフ
ァを用い、又送信データを分割した場合の前記送信用バ
ッファの第2のメモリマップ図FIG. 12 is a second memory map diagram of the transmission buffer when a plurality of transmission buffers are used and the transmission data is divided in the embodiment.
【図13】前記実施例で用いられるプロトコル制御部で
なされる処理を示すフローチャートFIG. 13 is a flowchart showing processing performed by a protocol control unit used in the above embodiment.
【図14】前記プロトコル制御部でなされる特に送信デ
ータの転送処理を示すフローチャートFIG. 14 is a flowchart showing a transfer process of transmission data, which is performed by the protocol control unit.
【図15】前記プロトコル制御部でなされる特にプロト
コル処理を示すフローチャートFIG. 15 is a flowchart showing particularly protocol processing performed by the protocol control unit.
【図16】前記実施例の前記プロトコル処理で行われる
ヘッダ付加処理を示すフローチャートFIG. 16 is a flowchart showing a header addition process performed in the protocol process of the embodiment.
【図17】従来から一般に用いられ適用されているプロ
トコル通信のレイヤ構成を示す構成図FIG. 17 is a configuration diagram showing a layer configuration of protocol communication generally used and applied conventionally.
【図18】従来の通信制御装置の構成を示すブロック図FIG. 18 is a block diagram showing a configuration of a conventional communication control device.
【図19】前記従来の通信制御装置のプロトコル制御部
の構成を示すブロック図FIG. 19 is a block diagram showing a configuration of a protocol control unit of the conventional communication control device.
【図20】前記従来の通信制御装置に用いられる送信用
バッファの第1のメモリマップ図FIG. 20 is a first memory map diagram of a transmission buffer used in the conventional communication control device.
【図21】前記従来の通信制御装置での作用を説明する
前記送信用バッファの第1ステップのメモリマップFIG. 21 is a memory map of the first step of the transmission buffer for explaining the operation of the conventional communication control device.
【図22】前記従来の通信制御装置での作用を説明する
前記送信用バッファの第2ステップのメモリマップFIG. 22 is a memory map of the second step of the transmission buffer for explaining the operation of the conventional communication control device.
【図23】前記従来の通信制御装置での作用を説明する
前記送信用バッファの第3ステップのメモリマップFIG. 23 is a memory map of a third step of the transmission buffer for explaining the operation of the conventional communication control device.
【図24】前記従来の通信制御装置での作用を説明する
前記送信用バッファの第4ステップのメモリマップFIG. 24 is a memory map of a fourth step of the transmission buffer for explaining the operation in the conventional communication control device.
【図25】前記従来の通信制御装置における送信データ
の分割を示す第1のデータ構成図FIG. 25 is a first data configuration diagram showing division of transmission data in the conventional communication control device.
【図26】前記従来の通信制御装置に用いられる送信用
バッファの第2のメモリマップ図FIG. 26 is a second memory map diagram of a transmission buffer used in the conventional communication control device.
【図27】前記従来の通信制御装置における送信データ
の分割を示す第2のデータ構成図FIG. 27 is a second data configuration diagram showing division of transmission data in the conventional communication control device.
【図28】前記従来の通信制御装置で複数の前記送信用
バッファを用いる際の作用を説明する第1ステップの前
記送信用バッファのメモリマップ図FIG. 28 is a memory map diagram of the transmission buffer in the first step for explaining the operation when the plurality of transmission buffers are used in the conventional communication control device.
【図29】前記従来の通信制御装置で複数の前記送信用
バッファを用いる際の作用を説明する第2ステップの前
記送信用バッファのメモリマップ図FIG. 29 is a memory map diagram of the transmission buffer in the second step for explaining the operation when the plurality of transmission buffers are used in the conventional communication control device.
【図30】前記従来の通信制御装置で複数の前記送信用
バッファを用いる際の作用を説明する第3ステップの前
記送信用バッファのメモリマップ図FIG. 30 is a memory map diagram of the transmission buffer in the third step for explaining the operation when the plurality of transmission buffers are used in the conventional communication control device.
【図31】前記従来の通信制御装置で複数の前記送信用
バッファを用いる際の作用を説明する第4ステップの前
記送信用バッファのメモリマップ図FIG. 31 is a memory map diagram of the transmission buffer in the fourth step for explaining the operation when the plurality of transmission buffers are used in the conventional communication control device.
1…CPU 2…通信制御装置 3…伝送路 11…バス制御部 12A、12B…プロトコル制御部 12a 、12j …CPU送信データ処理部 12b 、12k …T層データ処理部 12c 、12m …N層データ処理部 12d 、12n …LLC層データ処理部 12e 、12p …フレーム通信処理部 13a …送信要求受付部 13b …バッファメモリ獲得部 13c …データ転送部 13d …先頭アドレス情報保存部 14…回線制御部 16A、16B…バッファメモリ 16a 、16c …送信用バッファメモリ 16b …受信用バッファメモリ DESCRIPTION OF SYMBOLS 1 ... CPU 2 ... Communication control device 3 ... Transmission path 11 ... Bus control section 12A, 12B ... Protocol control section 12a, 12j ... CPU transmission data processing section 12b, 12k ... T layer data processing section 12c, 12m ... N layer data processing Part 12d, 12n ... LLC layer data processing part 12e, 12p ... Frame communication processing part 13a ... Transmission request acceptance part 13b ... Buffer memory acquisition part 13c ... Data transfer part 13d ... Head address information storage part 14 ... Line control part 16A, 16B ... buffer memory 16a, 16c ... transmission buffer memory 16b ... reception buffer memory
フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04L 29/02 // H04L 12/56 9466−5K H04L 11/20 102 F Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display location H04L 29/02 // H04L 12/56 9466-5K H04L 11/20 102 F
Claims (5)
へ格納する送信データ転送処理の後に、前記送信データ
の送信時に付加するプロトコルヘッダを送信時のデータ
配列順で付加すべく、前記プロトコルヘッダを前記送信
用バッファの先頭側へ格納する処理を中心としたヘッダ
付加処理を行う送信用バッファデータ格納方法におい
て、 前記送信データ転送処理の際に、前記送信データの先頭
及び尾端に関して、該送信データ尾端を後方側へ詰める
ようにして該送信データを前記送信用バッファへ格納
し、 又、前記送信データ転送処理の際に、このような前記送
信データの前記送信用バッファへの格納後の、該送信用
バッファにおける前記送信データ先頭の格納位置を示す
情報を保存するようにしたことを特徴とする送信用バッ
ファデータ格納方法。1. A protocol header for adding a protocol header, which is added when transmitting the transmission data, in a data array order when the data is transmitted, after the transmission data transfer process for storing the transmission data in a transmission buffer having a storage capacity L. In the transmission buffer data storage method for performing a header addition process centered on a process of storing the transmission data at the head side of the transmission buffer, the transmission data transfer process is performed with respect to the head and tail end of the transmission data. The transmission data is stored in the transmission buffer so that the tail end of the data is packed backward, and at the time of the transmission data transfer process, after the transmission data is stored in the transmission buffer, , Buffer information for transmission, characterized in that information indicating a storage position of the head of the transmission data in the transmission buffer is stored Paid method.
場合には、 {(M/L)≦N<((M+1)/L)}となる自然数
Nに従った、少なくとも合計N個の前記送信用バッファ
を確保し、 前記送信データをその前記送信データ尾端から前記記憶
容量Lずつ順次分割して行き、分割されたものを、その
分割順に従った格納順の情報を保存しながら、それぞれ
の前記送信用バッファへ順次格納するようにしたことを
特徴とする送信用バッファデータ格納方法。2. The natural number N according to claim 1, wherein when the data amount M of the transmission data is larger than the storage capacity L, {(M / L) ≦ N <((M + 1) / L)} Accordingly, at least a total of N transmission buffers are secured, the transmission data is sequentially divided by the storage capacity L from the end of the transmission data, and the divided data is stored according to the division order. A method for storing transmission buffer data, characterized in that the sequential information is stored in the respective transmission buffers while being stored.
先頭の格納位置を示す情報が、前記送信用バッファにお
けるアドレスであることを特徴とする送信用バッファデ
ータ格納方法。3. The transmission buffer according to claim 1, wherein the information indicating the storage position of the head of the transmission data, which is stored in the transmission data transfer process, is an address in the transmission buffer. Data storage method.
ァ毎に用意されたリンクポインタに記憶される、その送
信用バッファに格納されたデータの分割順に従って各送
信用バッファに続く、次の送信用バッファの先頭のアド
レスであることを特徴とする送信用バッファデータ格納
方法。4. The division order storage order information according to claim 2, wherein the division order storage order information is stored in a link pointer prepared for each of the transmission buffers, according to a division order of data stored in the transmission buffer. A transmission buffer data storage method, characterized in that it is the start address of the next transmission buffer following the transmission buffer.
へ格納する送信データ転送処理の後に、前記送信データ
の送信時に付加するプロトコルヘッダを送信時のデータ
配列順で付加すべく、前記プロトコルヘッダを前記送信
用バッファの先頭側へ格納する処理を中心としたヘッダ
付加処理を行う送信用バッファデータ格納装置におい
て、 前記送信データ転送処理の際に、前記送信データの先頭
及び尾端に関して、該送信データ尾端を後方側へ詰める
ようにして該送信データを前記送信用バッファへ格納す
るデータ転送部と、 又、前記送信データ転送処理の際に、このような前記送
信データの前記送信用バッファへの格納後の、該送信用
バッファにおける前記送信データ先頭の格納位置を示す
情報を保存する先頭アドレス情報保存部とを備えたこと
を特徴とする送信用バッファデータ格納装置。5. The protocol header for adding a protocol header to be added when transmitting the transmission data in a data arrangement order at the time of transmission after the transmission data transfer process for storing the transmission data in a transmission buffer having a storage capacity L. In a transmission buffer data storage device that performs a header addition process centered on a process of storing the transmission data at the head side of the transmission buffer, the transmission data transfer process is performed with respect to the head and tail ends of the transmission data. A data transfer unit for storing the transmission data in the transmission buffer so that the tail end of the data is packed to the rear side; and, in the transmission data transfer process, for transmitting the transmission data to the transmission buffer. A head address information storage unit that stores information indicating the storage position of the head of the transmission data in the transmission buffer after storing Transmit buffer data storage device, characterized in that.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20658794A JPH0879310A (en) | 1994-08-31 | 1994-08-31 | Transmission buffer data storage method and transmission buffer data storage device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20658794A JPH0879310A (en) | 1994-08-31 | 1994-08-31 | Transmission buffer data storage method and transmission buffer data storage device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0879310A true JPH0879310A (en) | 1996-03-22 |
Family
ID=16525878
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP20658794A Pending JPH0879310A (en) | 1994-08-31 | 1994-08-31 | Transmission buffer data storage method and transmission buffer data storage device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0879310A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6854020B1 (en) | 1998-10-27 | 2005-02-08 | Seiko Epson Corporation | Data transfer controller and electronic device |
| EP1553738A1 (en) * | 2004-01-12 | 2005-07-13 | Thomson Licensing S.A. | Method and apparatus for generating data packets |
| JP2009296074A (en) * | 2008-06-02 | 2009-12-17 | Fujitsu Microelectronics Ltd | Communication device and communication method |
| JP2012146027A (en) * | 2011-01-07 | 2012-08-02 | Nec Computertechno Ltd | Data transfer control apparatus, data transfer control method and program therefor |
-
1994
- 1994-08-31 JP JP20658794A patent/JPH0879310A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6854020B1 (en) | 1998-10-27 | 2005-02-08 | Seiko Epson Corporation | Data transfer controller and electronic device |
| EP1553738A1 (en) * | 2004-01-12 | 2005-07-13 | Thomson Licensing S.A. | Method and apparatus for generating data packets |
| JP2009296074A (en) * | 2008-06-02 | 2009-12-17 | Fujitsu Microelectronics Ltd | Communication device and communication method |
| JP2012146027A (en) * | 2011-01-07 | 2012-08-02 | Nec Computertechno Ltd | Data transfer control apparatus, data transfer control method and program therefor |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CA2283999C (en) | Packet processing apparatus, packet processing method, and packet exchange | |
| US5459723A (en) | Packet management device for fast-packet network | |
| US5535211A (en) | Communications network control method | |
| CN111092686B (en) | Data transmission method, device, terminal equipment and storage medium | |
| US5400326A (en) | Network bridge | |
| US6639917B1 (en) | Converged service for interconnected local area networks | |
| US6414961B1 (en) | ATM switching with virtual circuit FIFO buffers | |
| JP2002314598A (en) | Data delivery method | |
| WO1998030061A1 (en) | Method and system for quality of service assessment for multimedia traffic under aggregate traffic conditions | |
| US6128715A (en) | Asynchronous transmit packet buffer | |
| EP1629644B1 (en) | Method and system for maintenance of packet order using caching | |
| JPH08307432A (en) | Communication method | |
| JPH0715448A (en) | Communication network and method for adjusting of access to bus in network | |
| US20030147410A1 (en) | Ethernet switching architecture and dynamic memory allocation method for the same | |
| US20030012214A1 (en) | Hybrid time switch as a rotator tandem | |
| US6498793B1 (en) | Method for hardware-assisted automatic sorting of out-of-order packets using restricted transaction label | |
| CN118631766B (en) | A high-efficiency multi-port parallel shared cache management system for switches | |
| JPH0471377B2 (en) | ||
| CN110661728B (en) | Buffer design method and device combining sharing and privately using in multi-virtual channel transmission | |
| GB2320160A (en) | Shaping processing of ATM cells | |
| US6301259B1 (en) | Switch and switching method | |
| JPH11234306A (en) | Data transfer device | |
| US20080170577A1 (en) | Station Device, Message Transfer Method, and Program Storage Medium Storing Program Thereof | |
| CN110769049A (en) | A power distribution terminal and its SOE data uploading method | |
| JP3710967B2 (en) | Data transmission system |