JP3409723B2 - Packet communication device and credit update method - Google Patents
Packet communication device and credit update methodInfo
- Publication number
- JP3409723B2 JP3409723B2 JP03472499A JP3472499A JP3409723B2 JP 3409723 B2 JP3409723 B2 JP 3409723B2 JP 03472499 A JP03472499 A JP 03472499A JP 3472499 A JP3472499 A JP 3472499A JP 3409723 B2 JP3409723 B2 JP 3409723B2
- Authority
- JP
- Japan
- Prior art keywords
- credit
- packet
- transmission
- information
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Meter Arrangements (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、クレジットに基づ
きパケット通信を行うパケット通信装置及びクレジット
更新方法に関し、特にクレジットに基づくパケット通信
のクレジット制御で、情報パケットの一部にクレジット
を埋め込む技術(ピギーバッククレジット)を実現する
場合に好適なパケット通信装置と通信回線システム及び
クレジット更新方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a packet communication device and a credit updating method for performing packet communication based on credits, and particularly to a technique of embedding credits in a part of an information packet in credit control of packet communication based on credits (piggy). The present invention relates to a packet communication device, a communication line system, and a credit updating method suitable for realizing back credit.
【0002】[0002]
【従来の技術】近年、クレジット通話サービスとして、
通話時に予め交換機に登録されている会員番号と暗証番
号をダイヤルすることにより、その通話に拘わる料金が
予め指定した加入電話に課金され、全国どこからでもキ
ャッシュレスで通話できるサービスが提供されている。
また、クレジット通話専用カードの提供で、公衆電話や
ピンク電話からクレジット通話サービスを利用する際の
ダイヤル操作を削減したサービスも提供されている。ま
た、国際クレジット通話サービスも提供され、最近は、
クレジット通信サービスも提供され、通信データをパケ
ット形式で伝送するサービスも現実に提供されている。2. Description of the Related Art Recently, as a credit call service,
By dialing a member number and a personal identification number registered in advance in an exchange at the time of a call, a charge related to the call is charged to a pre-designated subscriber phone, and a cashless call service is provided from anywhere in the country.
In addition, by providing a credit-dedicated card, a service that reduces dial operations when using a credit-call service from a public phone or a pink phone is also provided. In addition, an international credit calling service is also provided, and recently,
Credit communication services are also provided, and services for transmitting communication data in packet format are also actually provided.
【0003】この国際クレジット通話サービスに関し、
IEEE(Institute of Electrical and Electroni
csEngineers)1284.4により規定されている。こ
の規定に関し、例えば特開平9-135270号公報に
示されたクレジットに基づくパケット通信システムで
は、前もって受信側が送信側に対して現在受信が可能な
“情報”のパケット(情報パケット)の数(クレジット
数と言う)を、情報パケットとは形式の異なる特別なパ
ケット(命令パケット)として送信することで、送信側
へクレジット数を提供することを特徴としている。Regarding this international credit calling service,
IEEE (Institute of Electrical and Electrical)
csEngineers) 1284.4. Regarding this regulation, for example, in a credit-based packet communication system disclosed in Japanese Patent Laid-Open No. 9-135270, the number of "information" packets (information packets) that the receiving side can currently receive with respect to the transmitting side in advance (credit packet). The number of credits is transmitted as a special packet (instruction packet) having a format different from that of the information packet to provide the number of credits to the transmitting side.
【0004】そして、送信側は、受信側によって示され
たクレジットの最大数を限度とし、連続して情報パケッ
トを送信することができる。Then, the transmitting side can continuously transmit the information packets within the maximum number of credits indicated by the receiving side.
【0005】上記特開平9-135270号公報は、通
信システムに用いるに好適なクレジット数決定装置を提
供することを目的としたものであり、端末は、受信した
パケットの種別を判別する手段と、受信したパケットを
バッファリングする手段と、受信した情報パケットを通
信プロトコルの規定に従い処理する手段と、受信した情
報パケットを格納しておくパケット格納キュー手段と、
クレジット数の問い合わせパケットを受信すると送信側
の回線に向けて応答パケットを作成する手段と、上位レ
イヤに渡した受信情報パケットの数をカウントする手段
と、応答パケットを送出後カウントする手段をリセット
する手段とを備えるクレジット数決定装置が開示されて
いる。The above-mentioned Japanese Laid-Open Patent Publication No. 9-135270 is intended to provide a credit number determination device suitable for use in a communication system, in which a terminal determines a type of a received packet, A means for buffering the received packet, a means for processing the received information packet according to the regulations of the communication protocol, a packet storage queue means for storing the received information packet,
When a credit number inquiry packet is received, a means for creating a response packet toward the transmission side line, a means for counting the number of received information packets passed to the upper layer, and a means for counting after sending the response packet are reset. There is disclosed a credit number determination device including means.
【0006】上述したパケット通信システムを実現する
図9の装置において、命令パケットでクレジットを更新
する様子を、図10を参照して説明する。In the apparatus of FIG. 9 which realizes the above-mentioned packet communication system, the state of updating the credit with the command packet will be described with reference to FIG.
【0007】図9は従来のパケット送受信装置の構成例
を示す機能ブロック図である。従来のパケット送受信装
置は、送信回線制御部1、送信バッファ2、クレジット
更新パケット作成部3、更新パケット数カウント部4、
カウンタ減算部5、受信回線制御部6、受信バッファ
7、応答パケット作成部8、受信パケット種別判別部
9、情報パケット処理部10、受信パケット格納キュー
11、命令パケット処理部13、送信クレジット数カウ
ント部14、送信パケット作成部16を備えている。FIG. 9 is a functional block diagram showing a configuration example of a conventional packet transmitting / receiving apparatus. The conventional packet transmission / reception device includes a transmission line control unit 1, a transmission buffer 2, a credit update packet creation unit 3, an update packet number counting unit 4,
Counter subtraction unit 5, reception line control unit 6, reception buffer 7, response packet creation unit 8, reception packet type determination unit 9, information packet processing unit 10, reception packet storage queue 11, command packet processing unit 13, transmission credit count It includes a unit 14 and a transmission packet creation unit 16.
【0008】まずは初期動作として、接続要求が発生し
た送信側P1から受信側P2へ接続要求の命令パケット
が転送されると、受信側P2は予め予約されていた初期
クレジットを返し、一方、送信側P1から受信側P2へ
も、受信側P2から送信側P1の方向への情報パケット
のクレジット数を、命令パケットによって更新し、受信
側P2はその応答としての命令パケットを送信する。First, as an initial operation, when a connection request command packet is transferred from the transmission side P1 which has generated a connection request to the reception side P2, the reception side P2 returns the pre-reserved initial credit, and on the other hand, the transmission side. Also from P1 to the receiving side P2, the credit number of the information packet from the receiving side P2 to the transmitting side P1 is updated by the command packet, and the receiving side P2 transmits the command packet as its response.
【0009】以降は、図9及び図10を参照して説明す
る。図10の送信側P1及び受信側P2は、それぞれ図
9で示したパケット送受信装置であり、互いの送信回線
制御部1と受信回線制御部6が接続されたものである。
送信側P1は初期クレジットの分だけ受信側P2へ情報
パケットの転送を行うことができるので、随時情報パケ
ットを転送する。受信側P2では受信回線制御部6が受
信したパケット(受信パケット110)を受信バッファ
7に保存する。The following will be described with reference to FIGS. 9 and 10. The transmission side P1 and the reception side P2 in FIG. 10 are the packet transmission / reception devices shown in FIG. 9, respectively, and the transmission line control unit 1 and the reception line control unit 6 are connected to each other.
Since the transmitting side P1 can transfer the information packet to the receiving side P2 by the amount of the initial credit, it transfers the information packet at any time. On the receiving side P2, the packet (reception packet 110) received by the reception line control unit 6 is stored in the reception buffer 7.
【0010】受信パケット種別判別部9は、そのパケッ
トが情報パケットならば情報パケット処理部10に通知
し、命令パケットならば命令パケット処理部13に通知
する。情報パケット処理部10は、そのパケットの受信
バッファ2上の格納状態を受信パケット格納キュー11
に登録する。受信パケット格納キュー11は、上位レイ
ヤが受信パケット格納キューから受信パケットを読み出
すごとに、パケットカウント部4にパケットが処理され
たことを通知する。更新パケット数カウント部4は、受
信パケット格納キュー11からの通知があるごとに内部
のカウンタをカウントアップし、その結果が受信パケッ
トの最大値になったならば、クレジット更新パケット作
成部3に通知する。The received packet type discrimination unit 9 notifies the information packet processing unit 10 if the packet is an information packet, and notifies the instruction packet processing unit 13 if the packet is an instruction packet. The information packet processing unit 10 determines the storage state of the packet on the reception buffer 2 by the reception packet storage queue 11
Register with. The reception packet storage queue 11 notifies the packet counting unit 4 that the packet has been processed each time the upper layer reads the reception packet from the reception packet storage queue. The update packet number counting unit 4 counts up an internal counter each time a notification is received from the received packet storage queue 11, and notifies the credit update packet creation unit 3 if the result reaches the maximum value of the received packets. To do.
【0011】クレジット更新パケット作成部3は、送信
バッファ2に現在のカウント数でクレジット更新の命令
パケットを作成すると共に、そのカウント数をカウンタ
減算部5に通知する。カウンタ減算部5は、通知された
カウント数だけパケットカウント部4のカウンタを減算
する。送信パケット作成部16は、ここまでの処理とは
全く非同期に、上位レイヤからの送信要求が合った時、
送信クレジット数カウント部14の送信クレジット数が
0でなければ1減じた上で送信バッファ2に送信パケッ
トを作成する。The credit update packet creation unit 3 creates a credit update command packet with the current count number in the transmission buffer 2 and notifies the counter subtraction unit 5 of the count number. The counter subtraction unit 5 subtracts the counter of the packet count unit 4 by the notified count number. When the transmission request from the upper layer is satisfied, the transmission packet creation unit 16 is completely asynchronous with the processing so far,
If the number of transmission credits of the transmission credit number counting unit 14 is not 0, 1 is subtracted and a transmission packet is created in the transmission buffer 2.
【0012】送信回線制御部1は、送信バッファ2に作
成されたパケットを、命令パケット、情報パケットの区
別なく、作成された順に送信パケット100として送信
する。また、命令パケット処理部13は、その命令パケ
ットがクレジット更新のものか、クレジット更新に対す
る応答パケットかを確認し、応答パケットならばクレジ
ットの更新が正常に完了したことを認識し、クレジット
更新の命令パケットだった場合は、その更新クレジット
数を送信クレジット数カウント部14に通知し、さらに
応答パケット作成部8に通知する。送信クレジット数カ
ウント部14は、通知されたカウント数を内部のカウン
タである送信クレジット数に加算する。応答パケット作
成部8は、送信バッファ2に応答の命令パケットを作成
する。The transmission line control section 1 transmits the packets created in the transmission buffer 2 as a transmission packet 100 in the order of creation, without distinguishing between the command packet and the information packet. Further, the instruction packet processing unit 13 confirms whether the instruction packet is a credit update or a response packet to the credit update, and if the response packet is a response packet, recognizes that the credit update is normally completed, and issues a credit update instruction. If it is a packet, the updated credit number is notified to the transmission credit number counting unit 14 and further to the response packet creation unit 8. The transmission credit number counting unit 14 adds the notified count number to the transmission credit number, which is an internal counter. The response packet creation unit 8 creates a response command packet in the transmission buffer 2.
【0013】このように、IEEE1284.4の規定
に関し、例えば特開平9-135270号公報のような
クレジットに基づくパケット通信方法では、このように
クレジットを更新するためには常に命令パケットを用い
ており、このための転送負荷が問題となっていた。As described above, with respect to the IEEE1284.4 standard, in the credit-based packet communication method disclosed in, for example, Japanese Patent Laid-Open No. 9-135270, an instruction packet is always used to update the credit. The transfer load for this was a problem.
【0014】そこで、クレジットに基づくパケット通信
システムの一つであるIEEE1284.4では、上述
のような命令パケットによるクレジット更新に加え、互
いに送信を行う情報パケットの一部にクレジットを埋め
込む方法が定められた。この場合の処理について、図1
1を参照して説明する。Therefore, in IEEE1284.4, which is one of credit-based packet communication systems, a method of embedding credit in a part of information packets to be transmitted to each other is defined in addition to the credit update by the above-mentioned command packet. It was The processing in this case is shown in FIG.
This will be described with reference to FIG.
【0015】まず初期動作として、接続要求が発生した
送信側P1から受信側P2へ接続要求の命令パケットが
転送されると、受信側P2は受信可能なクレジット数を
初期クレジットとして送信側P1へ応答の命令パケット
を送信する。送信側P1は初期クレジット数の分だけ受
信側P2へ情報パケットの転送を行うことができるよう
になるが、受信側P2への情報パケット転送を行う時に
は、受信側P2から送信側P1の方向へのパケット転送
のクレジットを情報パケットの一部に埋め込む処理をす
る。受信側P2では送信側P1から受信した情報パケッ
トを解析して処理するが、情報パケットに埋め込まれた
クレジットによって、送信側P1へのパケット転送が可
能であるのでその応答を情報パケットにし、また送信側
P1から受信側P2の方向へのパケット転送のクレジッ
トを情報パケットの一部に埋め込んで送信側P1へ転送
する。First, as an initial operation, when a connection request command packet is transferred from the transmission side P1 having a connection request to the reception side P2, the reception side P2 responds to the transmission side P1 with the number of receivable credits as an initial credit. Command packet is transmitted. The transmitting side P1 can transfer the information packet to the receiving side P2 by the number of initial credits. However, when transferring the information packet to the receiving side P2, the information is transferred from the receiving side P2 to the transmitting side P1. The process of embedding the packet transfer credit in part of the information packet. The receiving side P2 analyzes and processes the information packet received from the transmitting side P1. However, since the packet embedded in the information packet can be transferred to the transmitting side P1, the response is converted into an information packet and transmitted. Credits for packet transfer from the side P1 to the receiving side P2 are embedded in a part of the information packet and transferred to the transmitting side P1.
【0016】このように従来の情報パケットの一部にク
レジットを埋め込む方式では、互いに情報パケットの送
信とその応答とでクレジットを渡し合う方法を用いてい
る。[0016] As described above, the conventional method of embedding credit in a part of an information packet uses a method of passing the credit between the transmission of the information packet and the response thereof.
【0017】[0017]
【発明が解決しようとする課題】しかしながら、上述し
た従来技術においては次のような問題点があった。However, the above-mentioned conventional technique has the following problems.
【0018】第1の問題点は、IEEE1284.4に
関し、例えば特開平9-135270号公報のようなク
レジットに基づくパケット通信方法では、クレジットの
更新を常に専用のパケット(命令パケット)で行ってい
るため、クレジット更新のために、クレジット数を更新
するための命令パケットの転送負荷がかかることであ
る。The first problem relates to IEEE1284.4, and in the credit-based packet communication method as disclosed in, for example, Japanese Patent Laid-Open No. 9-135270, credit is always updated by a dedicated packet (command packet). Therefore, the transfer load of the instruction packet for updating the credit number is applied for the credit update.
【0019】第2の問題点は、IEEE1284.4に
よって知られているクレジットに基づくパケット通信の
情報パケットの一部にクレジットを埋め込む方法では、
送信に対して常に応答するという機能上の動作を、情報
パケットの一部にクレジットを埋め込む方法に利用して
いるため、相手側の送信に対して応答を返すような機能
でなければならない。つまり、送信と受信が別々のタイ
ミングで処理される機能の場合、それぞれクレジットを
授与しなければならなくなったタイミングと、クレジッ
トの更新処理を行うタイミングが非同期になってしまう
ため、上述した知られているクレジットに基づくパケッ
ト通信の情報パケットの一部にクレジットを埋め込む方
法では、情報パケットの一部にクレジットを埋め込むこ
とができない。The second problem is that in the method of embedding a credit in a part of the information packet of the packet communication based on credit known by IEEE1284.4,
Since the functional operation of always responding to the transmission is used in the method of embedding the credit in a part of the information packet, the function must be such that it returns a response to the transmission of the other party. In other words, in the case of a function in which transmission and reception are processed at different timings, the timing at which credits must be given and the timing at which credits are updated are asynchronous, so the above-mentioned known In the method of embedding credit in a part of information packet of packet communication based on existing credit, credit cannot be embedded in a part of information packet.
【0020】本発明の目的は、クレジットに基づくパケ
ット通信制御で情報パケットの一部にクレジット情報を
埋め込む技術において、双方の送信が非同期に行われる
ような場合(互いのパケット転送のタイミングが同期し
ていない場合)でも、クレジット数の更新要求があった
時には送信待ちをしている情報パケットが存在するかど
うかを調べ、クレジット更新可能であれば情報パケット
の一部にクレジットを埋め込む方法によってクレジット
を更新することにより、命令パケットによるクレジット
の更新処理を低減し転送効率を向上することができるパ
ケット通信装置及びクレジット更新方法を提供するもの
である。An object of the present invention is to provide a technique for embedding credit information in a part of an information packet in credit-based packet communication control in the case where both transmissions are performed asynchronously (the timing of packet transfer of each is synchronized. If there is a request to update the number of credits, check whether there is an information packet waiting to be sent, and if the credit can be updated, embed the credit in a part of the information packet to credit the credit. The present invention provides a packet communication device and a credit updating method capable of reducing credit updating processing by an instruction packet and improving transfer efficiency by updating.
【0021】[0021]
【課題を解決するための手段】本発明は、受信可能な情
報パケットの数を示すクレジットを相手側に送信するこ
とでパケット通信を行うパケット通信装置において、ク
レジットの更新要求があった場合にクレジットの更新が
可能か否かを判別する判別手段と、該判別手段でクレジ
ットの更新が可能と判別された場合は送信待ち情報パケ
ットの一部にクレジットを埋め込む埋込手段と、送信待
ち情報パケット数を計数する計数手段と、クレジットを
更新する命令パケットを作成する作成手段と、時間を計
測する計時手段とを具備し、前記判別手段は、前記計数
手段で計数された送信待ち情報パケット数を参照し前記
計時手段で計時された規定時間内に前記クレジットの更
新が可能か否かを判別し、規定時間内に送信待ち情報パ
ケット数が増加し前記クレジットの更新が可能な場合は
前記埋込手段にクレジット埋め込み指示を行い、規定時
間内に送信待ち情報パケット数が不足状態でクレジット
の更新が不可能な場合は前記作成手段に命令パケット作
成指示を行うことを特徴とする。SUMMARY OF THE INVENTION According to the present invention, in a packet communication device that performs packet communication by transmitting a credit indicating the number of receivable information packets to the other party, the credit is issued when a credit update request is made. Determination means for determining whether or not the credit can be updated, and if the determination means determines that the credit can be updated, an embedding means for embedding the credit in a part of the transmission waiting information packet and a transmission waiting
The counting means for counting the number of information packets and the credit
Create a command packet to be updated and measure the time.
And a counting means for measuring,
Referring to the number of transmission waiting information packets counted by the means
The credit is updated within the specified time measured by the time measuring means.
It is determined whether or not new information is available, and the information waiting to be sent is sent within the specified time.
If the number of bets increases and the credit can be updated,
At the time of stipulation, issuing a credit embedding instruction to the embedding means
Credit due to insufficient number of information packets waiting to be sent
If it is impossible to update the
It is characterized by giving a successful instruction .
【0022】[0022]
【0023】更に、送信待ち情報パケットを格納する格
納手段を具備し、前記埋込手段は、前記判別手段でクレ
ジットの更新が可能と判別された場合は前記格納手段に
格納されている送信待ち情報パケットの一部にクレジッ
トを埋め込むことを特徴とする。Further, the transmission means has a storage means for storing the transmission wait information packet, and the embedding means stores the transmission wait information stored in the storage means when the determination means determines that the credit can be updated. The feature is that credit is embedded in a part of the packet.
【0024】[0024]
【0025】また、本パケット通信装置は、同一通信回
線上に存在するホストコンピュータ等の上位装置或いは
プリンタ等の周辺装置の何れかが相手側に対しクレジッ
トの更新を行う場合に適用可能であることを特徴とす
る。Further, the packet communication device can be applied when any of the host device such as the host computer and the peripheral device such as the printer existing on the same communication line updates the credit with respect to the other party. Is characterized by.
【0026】また、本発明は、受信可能な情報パケット
の数を示すクレジットを相手側に送信することでパケッ
ト通信を行うパケット通信装置におけるクレジット更新
方法において、クレジットの更新要求があった場合にク
レジットの更新が可能か否かを判別する判別工程と、該
判別工程でクレジットの更新が可能と判別された場合は
送信待ち情報パケットの一部にクレジットを埋め込む埋
込工程と、送信待ち情報パケット数を計数する計数工程
と、クレジットを更新する命令パケットを作成する作成
工程と、時間を計測する計時工程とを有し、前記判別工
程では、前記計数工程で計数された送信待ち情報パケッ
ト数を参照し前記計時工程で計時された規定時間内にク
レジットの更新が可能か否かを判別し、規定時間内に送
信待ち情報パケット数が増加しクレジットの更新が可能
な場合は前記埋込工程にクレジット埋め込み指示を行
い、規定時間内に送信待ち情報パケット数が不足状態で
クレジットの更新が不可能な場合は前記作成工程に命令
パケット作成指示を行うことを特徴とする。Further, according to the present invention, in a credit update method in a packet communication device for performing packet communication by transmitting a credit indicating the number of receivable information packets to the other party, the credit is updated when a credit update request is made. And a step of embedding the credit in a part of the transmission waiting information packet when it is judged that the credit can be updated, and the number of transmission waiting information packets. Counting process to count
And create an instruction packet to update credits
And a time measuring step for measuring time,
The waiting information packet counted in the counting step is
The clock within the specified time counted in the timekeeping process.
Determine whether it is possible to update the ledger and send it within the specified time.
Credit waiting can be updated by increasing the number of waiting information packets
If not, give a credit embedding instruction to the embedding process.
The number of information packets waiting to be sent is insufficient within the specified time.
If the credit cannot be renewed, order the creation process
The feature is that a packet creation instruction is given .
【0027】[0027]
【0028】更に、送信待ち情報パケットを格納する格
納工程を有し、前記埋込工程では、前記判別工程でクレ
ジットの更新が可能と判別された場合は前記格納工程に
格納されている送信待ち情報パケットの一部にクレジッ
トを埋め込むことを特徴とする。Further, there is a storing step for storing the transmission waiting information packet, and in the embedding step, the transmission waiting information stored in the storing step when it is judged in the judging step that the credit can be updated. The feature is that credit is embedded in a part of the packet.
【0029】[0029]
【0030】また、本クレジット更新方法は、同一通信
回線上に存在するホストコンピュータ等の上位装置或い
はプリンタ等の周辺装置の何れかが相手側に対しクレジ
ットの更新を行う場合に適用可能であることを特徴とす
る。Further, the present credit updating method can be applied to the case where any one of a host device such as a host computer and a peripheral device such as a printer existing on the same communication line updates the credit to the other party. Is characterized by.
【0031】また、本発明のパケット通信装置は、図1
及び図8を参照しつつ説明すれば、受信可能な情報パケ
ットの数を示すクレジットを相手側に送信することでパ
ケット通信を行うパケット通信装置において、クレジッ
トの更新要求があった場合にクレジットの更新が可能か
否かを判別する判別手段(図1の19)と、該判別手段
でクレジットの更新が可能と判別された場合は送信待ち
情報パケットの一部にクレジットを埋め込む埋込手段
(図1の17)とを具備している。The packet communication device of the present invention is shown in FIG.
Further, referring to FIG. 8, in a packet communication device that performs packet communication by transmitting a credit indicating the number of receivable information packets to the other party, the credit is updated when a credit update request is made. Determination means (19 in FIG. 1) for determining whether the credit can be updated, and an embedding means for embedding the credit in a part of the transmission waiting information packet (FIG. 1) when the determination means determines that the credit can be updated. 17) and are provided.
【0032】また、送信待ち情報パケット数を計数する
計数手段(図1の15)と、クレジットを更新する命令
パケットを作成する作成手段(図1の3)とを具備し、
前記判別手段(図1の19)は、前記計数手段(図1の
15)で計数された送信待ち情報パケット数を参照しク
レジットの更新が可能か否かを判別し、クレジットの更
新が可能な場合は前記埋込手段(図1の17)にクレジ
ット埋め込み指示を行い、クレジットの更新が不可能な
場合は前記作成手段(図1の3)に命令パケット作成指
示を行うように制御している。Further, it is provided with counting means (15 in FIG. 1) for counting the number of transmission waiting information packets, and creating means (3 in FIG. 1) for creating a command packet for updating the credit,
The discriminating unit (19 in FIG. 1) discriminates whether or not the credit can be updated by referring to the number of transmission waiting information packets counted by the counting unit (15 in FIG. 1), and the credit can be updated. In this case, the embedding means (17 of FIG. 1) is instructed to embed a credit, and when the credit cannot be updated, the creation means (3 of FIG. 1) is instructed to create an instruction packet. .
【0033】また、送信待ち情報パケットを格納する格
納手段(図1の18)を具備し、前記埋込手段(図1の
17)は、前記判別手段(図1の19)でクレジットの
更新が可能と判別された場合は前記格納手段(図1の1
8)に格納されている送信待ち情報パケットの一部にク
レジットを埋め込むように制御している。Further, a storage means (18 in FIG. 1) for storing the transmission waiting information packet is provided, and the embedding means (17 in FIG. 1) updates the credit by the discrimination means (19 in FIG. 1). If it is determined that it is possible, the storage means (1 in FIG.
The control is performed so that the credit is embedded in a part of the transmission waiting information packet stored in 8).
【0034】また、時間を計測する計時手段(図8の2
0)を具備し、前記判別手段(図8の19)は、前記計
数手段(図8の15)で計数された送信待ち情報パケッ
ト数を参照し前記計時手段(図8の20)で計時された
規定時間内にクレジットの更新が可能か否かを判別し、
規定時間内に送信待ち情報パケット数が増加しクレジッ
トの更新が可能な場合は前記埋込手段(図8の17)に
クレジット埋め込み指示を行い、規定時間内に送信待ち
情報パケット数が不足状態でクレジットの更新が不可能
な場合は前記作成手段(図8の3)に命令パケット作成
指示を行うように制御している。Further, a time measuring means for measuring time (2 in FIG. 8)
0), the discriminating means (19 in FIG. 8) refers to the number of transmission waiting information packets counted by the counting means (15 in FIG. 8) and is timed by the time counting means (20 in FIG. 8). It is determined whether the credit can be updated within the specified time,
When the number of transmission waiting information packets increases and the credit can be updated, a credit embedding instruction is given to the embedding means (17 in FIG. 8), and the number of transmission waiting information packets is insufficient within the prescribed time. When the credit cannot be updated, the creating means (3 in FIG. 8) is controlled to give an instruction packet creating instruction.
【0035】「作用」本発明のパケット通信装置は、例
えば、同一通信回線上にホストコンピュータ等の上位装
置、或いはプリンタ等の周辺装置の何れかが、相手側へ
クレジットを更新する必要が生じた時に、送信待ちをし
ている情報パケットの有無を調べ、送信待ちの情報パケ
ットが存在し、且つクレジット更新が可能な場合は、そ
の情報パケットの一部にクレジットを埋め込み、クレジ
ット更新が不可能な場合は、従来どおり命令パケットを
送信することによってクレジットを更新する。[Operation] In the packet communication device of the present invention, for example, either the host computer or other upper device or the printer or other peripheral device on the same communication line needs to update the credit to the other party. Sometimes, if there is an information packet waiting to be sent, and if there is an information packet waiting to be sent and the credit can be updated, the credit is embedded in a part of the information packet and the credit cannot be updated. If so, the credit is updated by sending an instruction packet as before.
【0036】[0036]
【発明の実施の形態】次に、本発明の実施形態につい
て、図面を参照して詳細に説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described in detail with reference to the drawings.
【0037】[第1の実施形態]
(1)構成の説明
図1は本発明の第1の実施形態のパケット送受信装置の
構成例を示す機能ブロック図である。[First Embodiment] (1) Description of Configuration FIG. 1 is a functional block diagram showing a configuration example of a packet transmitting / receiving apparatus according to a first embodiment of the present invention.
【0038】本発明の第1の実施形態のパケット送受信
装置は、送信回線制御部1、送信バッファ2、クレジッ
ト更新パケット作成部3、更新パケット数カウント部
4、カウンタ減算部5、受信回線制御部6、受信バッフ
ァ7、応答パケット作成部8、受信パケット種別判別部
9、情報パケット処理部10、受信パケット格納キュー
11、ピギーバッククレジット抽出部12、命令パケッ
ト処理部13、送信クレジット数カウント部14、送信
待ちパケット数カウント部15、送信パケット作成部1
6、ピギーバッククレジット埋め込み部17、送信待ち
パケット格納キュー18、クレジット更新判別部19を
備えている。図中100は送信パケット、110は受信
パケット、120は上位レイヤの送信、130は上位レ
イヤの受信を示す。The packet transmission / reception apparatus of the first embodiment of the present invention comprises a transmission line control unit 1, a transmission buffer 2, a credit update packet creation unit 3, an update packet number counting unit 4, a counter subtraction unit 5, and a reception line control unit. 6, reception buffer 7, response packet creation unit 8, reception packet type determination unit 9, information packet processing unit 10, reception packet storage queue 11, piggyback credit extraction unit 12, command packet processing unit 13, transmission credit number counting unit 14 , The transmission waiting packet number counting unit 15, the transmission packet creating unit 1
6, a piggyback credit embedding unit 17, a transmission waiting packet storage queue 18, and a credit update determination unit 19. In the figure, 100 is a transmission packet, 110 is a reception packet, 120 is an upper layer transmission, and 130 is an upper layer reception.
【0039】尚、図1において、上記図9に示した構成
と共通する構成には同一符号を付し説明を簡略化もしく
は省略するものとする。In FIG. 1, the same components as those shown in FIG. 9 are designated by the same reference numerals, and the description will be simplified or omitted.
【0040】パケット送受信装置各部の機能について詳
述すると、受信回線制御部6は、受信したパケットを受
信バッファ7に格納して受信パケット種別判別部9へ処
理を進める。受信パケット種別判別部9は、受信バッフ
ァ7を参照して受信したパケットがクレジット更新のた
めの命令パケットならば命令パケット処理部13に通知
し、通常処理のための情報パケットならばピギーバック
クレジット抽出部12に通知する。ピギーバッククレジ
ット抽出部12は、情報パケットに埋め込まれていたク
レジットを抽出し、そのクレジット数を送信クレジット
カウント部14へ通知し情報パケット処理部10へ処理
を進める。The function of each unit of the packet transmitting / receiving apparatus will be described in detail. The receiving line control unit 6 stores the received packet in the receiving buffer 7 and advances the process to the receiving packet type discriminating unit 9. The reception packet type discrimination unit 9 refers to the reception buffer 7 to notify the instruction packet processing unit 13 if the received packet is an instruction packet for credit update, and to extract a piggyback credit if it is an information packet for normal processing. Notify the department 12. The piggyback credit extraction unit 12 extracts the credit embedded in the information packet, notifies the transmission credit count unit 14 of the number of credits, and advances the processing to the information packet processing unit 10.
【0041】情報パケット処理部10は、情報パケット
の受信バッファ2上での格納状態を、受信パケット格納
キュー11に登録する。受信パケット格納キュー11
は、上位レイヤがこの受信パケット格納キューの情報を
順に読み出す度に(図中130で示す上位レイヤの受信
の度に)、更新パケット数カウント部4に通知する。更
新パケット数カウント部4は、通知によって内部のカウ
ンタを加算し、カウントした値がキューの最大値に等し
くなったならば、クレジット更新判別部19にクレジッ
ト更新の命令パケットを作るように通知する。The information packet processing unit 10 registers the storage state of the information packet in the reception buffer 2 in the reception packet storage queue 11. Received packet storage queue 11
Notifies the update packet number counting unit 4 every time the upper layer sequentially reads out the information of the received packet storage queue (every time when the upper layer receives 130 in the drawing). The update packet number counting unit 4 adds an internal counter by the notification, and when the counted value becomes equal to the maximum value of the queue, notifies the credit update determination unit 19 to make a credit update command packet.
【0042】クレジット更新判別部19は、送信待ちパ
ケット数カウンタ15を参照して、ピギーバッククレジ
ットによるクレジットの更新が可能であるかどうかを判
断し(判断方法については後述する)、クレジットの更
新が可能な場合はピギーバッククレジット埋め込み部1
7へ処理を進め、クレジットの更新が不可能な場合はク
レジット更新パケット作成部3へ処理を進める。The credit update determination unit 19 refers to the transmission waiting packet number counter 15 and determines whether or not the credit can be updated by piggyback credit (a determination method will be described later), and the credit is updated. Piggyback credit embedding unit 1 if possible
7, the process proceeds to the credit update packet creation unit 3 if the credit cannot be updated.
【0043】クレジット更新パケット作成部3は、更新
パケット数カウント部4からクレジット更新判別部19
を介して送られてくる命令パケット作成通知に基づき、
クレジット数を更新する命令パケットを送信バッファ2
に作成すると共に、カウンタ減算部5に通知して更新パ
ケット数カウント部4をクリアする。The credit update packet creation unit 3 includes the update packet number counting unit 4 to the credit update determination unit 19
Based on the instruction packet creation notification sent via
Send a command packet to update the number of credits Buffer 2
In addition, the counter subtraction unit 5 is notified and the update packet number counting unit 4 is cleared.
【0044】ピギーバッククレジット埋め込み部17
は、送信待ちパケット格納キュー18に示された送信バ
ッファ2上のパケット操作を行い、後述するように、更
新するクレジットをピギーバックとして埋め込む(埋め
込み方法については後述する)と共に、カウンタ減算部
5に通知して更新パケット数カウント部4をクリアす
る。Piggyback credit embedding unit 17
Performs a packet operation on the transmission buffer 2 shown in the transmission waiting packet storage queue 18 and embeds the credit to be updated as piggyback (the embedding method will be described later), as well as the counter subtraction unit 5 as described later. It notifies and clears the update packet number counting unit 4.
【0045】一方、命令パケット処理部13は、その命
令パケットが、クレジットを更新するものなら、送信ク
レジット数カウント部14にそのクレジット数を通知し
て、応答パケット作成部8へ処理を進め、受信した命令
パケットが応答パケットならば何もしない。応答パケッ
ト作成部8は、クレジットの更新が完了したことを示す
命令パケットを送信バッファ2に作成する。On the other hand, if the command packet updates the credit, the command packet processing unit 13 notifies the transmission credit number counting unit 14 of the credit number, advances the process to the response packet creating unit 8 and receives the credit. If the command packet is a response packet, nothing is done. The response packet creation unit 8 creates an instruction packet indicating that the credit update is completed in the transmission buffer 2.
【0046】送信パケット作成部16は、上位レイヤか
ら送信情報が送られると(図中120で示す上位レイヤ
の送信)、送信クレジット数カウンタ14を参照して、
0でなければ、これを作成するパケット数だけ減じた上
で、送信バッファ2にその情報をパケット化して作成す
ると同時に、作成するパケット数を送信待ちパケット数
カウンタ15に通知し、またそのパケットの送信バッフ
ァ2上での格納状態を送信待ちパケット格納キュー18
に登録する。また、送信パケット作成部16は、送信ク
レジット数カウンタ14が0の時には送信処理を行わな
い。When the transmission information is sent from the upper layer (transmission of the upper layer indicated by 120 in the figure), the transmission packet creating section 16 refers to the transmission credit number counter 14,
If it is not 0, this is reduced by the number of packets to be created, and then the information is packetized and created in the transmission buffer 2, and at the same time, the number of packets to be created is notified to the transmission waiting packet number counter 15, and The storage state in the transmission buffer 2 is stored in the transmission waiting packet storage queue 18
Register with. Further, the transmission packet creation unit 16 does not perform the transmission process when the transmission credit counter 14 is 0.
【0047】(2)動作の説明
次に、本発明の第1の実施形態の動作について、図2〜
図7を参照して詳細に説明する。(2) Description of Operation Next, the operation of the first embodiment of the present invention will be described with reference to FIGS.
This will be described in detail with reference to FIG. 7.
【0048】先ず、上述したクレジット更新判別部19
の判別方法について、図2を参照し、ピギーバッククレ
ジットクレジット埋め込み部17の更新処理について、
図3を参照して、以下詳細に説明する。図2はクレジッ
ト更新判別部19の処理を示すフローチャート、図3は
ピギーバッククレジット埋め込み部17の処理を示すフ
ローチャートである。First, the credit update determination unit 19 described above.
2 for the determination method of the update process of the piggyback credit credit embedding unit 17,
This will be described in detail below with reference to FIG. FIG. 2 is a flowchart showing the processing of the credit update determination unit 19, and FIG. 3 is a flowchart showing the processing of the piggyback credit embedding unit 17.
【0049】ここで、授与する必要の有るクレジット数
をC0とした時、これをCp+Cp+…+Cp+C2
(但し、1<=C2<=Cp;Cp=1つの情報パケッ
トに埋め込むことのできるクレジット数の最大値)に分
解する(ステップS500)。この時、送信待ちパケッ
ト数カウント部15がカウントした送信待ち情報パケッ
ト数(nとする)が、n>=C1+1(但し、C1は上
述のCpを繰り返す数)を満足するかどうかを判断する
(ステップS510)。ただし、「1<=C2」の符号
は、C2が1に等しいか又は1より大きいことを示す。Here, when the number of credits to be awarded is C0, this is Cp + Cp + ... + Cp + C2
(However, 1 <= C2 <= Cp; Cp = 1 maximum value of the number of credits that can be embedded in one information packet) (step S500). At this time, it is determined whether or not the number of transmission waiting information packets (denoted by n) counted by the transmission waiting packet number counting unit 15 satisfies n> = C1 + 1 (where C1 is the number of repeating Cp described above). Step S510). However, the code “1 <= C2” indicates that C2 is equal to 1 or greater than 1.
【0050】送信待ち情報パケット数が上記式を満足し
ない場合は、送信待ち情報パケットの一部にクレジット
を埋め込む方法によるクレジットの授与は不可能なの
で、従来どおりクレジット更新パケット作成部3よりク
レジット更新のための命令パケットを作成して受信クレ
ジットを更新する(ステップS530)。送信待ち情報
パケット数が上記式を満足する場合は、送信待ち情報パ
ケットの一部にクレジットを埋め込む方法によるクレジ
ットの授与が可能なので、ピギーバッククレジット埋め
込み部17に分岐する(ステップS520)。If the number of transmission waiting information packets does not satisfy the above equation, it is impossible to give credit by a method of embedding credit in a part of the transmission waiting information packet. A command packet for updating the received credit (step S530). When the number of transmission waiting information packets satisfies the above expression, credit can be given by a method of embedding credit in a part of the transmission waiting information packets, and therefore the process branches to the piggyback credit embedding unit 17 (step S520).
【0051】ピギーバッククレジット埋め込み部17で
は、図3に示すように、C1が0かどうかを比較する
(ステップS600)。C1が0でない場合は(C1が
1である場合)、送信待ちパケット格納キュー18によ
る、送信バッファ2上の送信待ち情報パケットの格納情
報に基づき、送信待ち情報パケットNo.0から送信待
ち情報パケットNo.C1−1までのピギーバッククレ
ジットをCpに、送信待ち情報パケットNo.C1のピ
ギーバッククレジットをC2とする(ステップS61
0)。C1=0の場合は、送信待ち情報パケットNo.
0のピギーバック・クレジットのみをC2とする(ステ
ップS620)。As shown in FIG. 3, the piggyback credit embedding unit 17 compares whether or not C1 is 0 (step S600). When C1 is not 0 (when C1 is 1), the transmission waiting information packet No. 0 to the transmission waiting information packet are stored in the transmission waiting packet storage queue 18 based on the stored information of the transmission waiting information packet in the transmission buffer 2. The piggyback credit up to No. C1-1 is Cp, and the piggyback credit of the transmission waiting information packet No. C1 is C2 (step S61).
0). When C1 = 0, the transmission waiting information packet No.
Only the piggyback credit of 0 is set as C2 (step S620).
【0052】以上のように、可能であれば送信待ち情報
パケットの一部にクレジットを埋め込むことにより、命
令パケットを新たに送信することなく、クレジットの更
新処理を行うことができる。As described above, if possible, by embedding the credit in a part of the transmission waiting information packet, the credit updating process can be performed without newly transmitting the command packet.
【0053】次に、第1の実施形態のクレジットを授与
する例について、図4〜図7を参照して詳細に説明す
る。尚、本発明の第1の実施形態では、送信待ちパケッ
トの一部にクレジットを埋め込み可能な最大のクレジッ
ト数は255とする。Next, an example of giving credits according to the first embodiment will be described in detail with reference to FIGS. In addition, in the first embodiment of the present invention, the maximum number of credits in which credits can be embedded in a part of the packet waiting to be transmitted is 255.
【0054】図4は1つの送信待ち情報パケットによる
ピギーバッククレジット処理を行う場合のタイムチャー
トである。図4において、初期動作として、接続要求が
発生した送信側P1から受信側P2へ接続要求の命令パ
ケットが転送されると、受信側P2は受信可能なクレジ
ット数を初期クレジットとして送信側P1へ応答のパケ
ット(エコーパケット)として命令パケットで送信し、
一方、送信側P1から受信側P2へも、受信側P2から
送信側P1の方向への情報パケットのクレジット数を命
令パケットによって授与し、受信側P2はそのエコーパ
ケットとしての命令パケットを返す。FIG. 4 is a time chart when the piggyback credit process is performed by one transmission waiting information packet. In FIG. 4, as an initial operation, when a connection request command packet is transferred from the transmission side P1 having a connection request to the reception side P2, the reception side P2 responds to the transmission side P1 with the number of receivable credits as an initial credit. Command packet as a packet (echo packet) of
On the other hand, the credit number of the information packet in the direction from the receiving side P2 to the transmitting side P1 is given by the command packet from the transmitting side P1 to the receiving side P2, and the receiving side P2 returns the command packet as the echo packet.
【0055】以降は図1に示したパケット送受信装置の
動作を行う。送信側P1は初期クレジット数の分だけ受
信側P2へ情報パケットの転送を行うことができるよう
になるので、随時情報パケットを転送する。受信側P2
では送信側P1から受信回線制御部6がパケット(情報
パケット)を受信する。受信パケット種別判別部9は、
これを情報パケットと判断してピギーバッククレジット
抽出部12へ処理を分岐する。ピギーバッククレジット
抽出部12は、ピギーバッククレジットとして0を抽出
し、送信クレジットカウント部14に通知して情報パケ
ット処理部10に処理を進める。After that, the operation of the packet transmitting / receiving apparatus shown in FIG. 1 is performed. Since the transmitting side P1 can transfer the information packet to the receiving side P2 by the number of initial credits, the information packet is transferred at any time. Receiver P2
Then, the receiving line control unit 6 receives a packet (information packet) from the transmitting side P1. The received packet type discrimination unit 9
This is judged as an information packet, and the process branches to the piggyback credit extraction unit 12. The piggyback credit extraction unit 12 extracts 0 as the piggyback credit, notifies the transmission credit count unit 14, and advances the processing to the information packet processing unit 10.
【0056】情報パケット処理部10は、情報パケット
の受信バッファ7上の格納状態を受信パケット格納キュ
ー11に登録する。上位レイヤは受信パケット格納キュ
ー11に基づいて順次情報パケットを処理しているが、
一方、送信パケット作成部16に送信情報が上位レイヤ
より受け渡され、送信パケット作成部16は、受け渡さ
れた情報をパケット化すると2パケットの大きさになる
ので、送信クレジット数カウント部14が2以上かを確
認したが、2以上だったので2減じた上で送信バッファ
2にその送信情報をパケット化して格納し、また同時に
送信待ちパケット数カウン部15に、カウンタを2加算
するように通知した。The information packet processing unit 10 registers the storage state of the information packet on the reception buffer 7 in the reception packet storage queue 11. The upper layer sequentially processes the information packets based on the received packet storage queue 11,
On the other hand, the transmission information is passed from the upper layer to the transmission packet creation unit 16, and the transmission packet creation unit 16 packetizes the passed information into two packets. It was confirmed that it was 2 or more, but since it was 2 or more, it is subtracted by 2 and then the transmission information is packetized and stored in the transmission buffer 2, and at the same time, the counter is incremented by 2 in the transmission waiting packet number counting unit 15. reported.
【0057】この時点では、まだ送信側P1から受信側
P2へのパケット転送が続けられており、受信側P2か
ら送信側P1への送信は行われていない。それより少し
遅れて、更新パケット数カウント部4のカウント数が受
信パケットの最大数になった(図4では10)ので、更
新する必要の有るクレジット数(=10)は、クレジッ
ト更新判別部19が図2の判断処理を行ったところ、
255×0 +10 =10 かつ 2>=1+0=1
(1つの送信待ち情報パケットで更新可能)
であるから、ピギーバッククレジットによるクレジット
の更新が可能と判断して、ピギーバッククレジット埋め
込み部17に処理を移し、かつ更新パケット数カウント
部5に更新パケット数のクリアを通知した。At this point in time, packet transfer from the sending side P1 to the receiving side P2 is still in progress, and transmission from the receiving side P2 to the sending side P1 is not being performed. A little later than that, the count number of the update packet number counting unit 4 reached the maximum number of received packets (10 in FIG. 4), so the credit number (= 10) that needs to be updated is the credit update determination unit 19 2 performed the judgment process of FIG. 2, it was found that 255 × 0 +10 = 10 and 2> = 1 + 0 = 1 (updating can be done by one transmission waiting information packet), so it is possible to renew the credit by the piggyback credit. The determination is made, the processing is moved to the piggyback credit embedding unit 17, and the update packet number counting unit 5 is notified of the clearing of the update packet number.
【0058】ピギーバッククレジット埋め込み部17
は、図3の判断処理に基づき、
1=1
(1つの送信待ち情報パケットで更新可能)
であるから、送信待ち情報パケットNo.0のピギーバ
ッククレジットを10に書き換える処理を行った。Piggyback credit embedding unit 17
Is 1 (1 can be updated with one transmission waiting information packet) based on the determination processing of FIG. 3, so the piggyback credit of the transmission waiting information packet No. 0 is rewritten to 10.
【0059】すると今度は、受信側P2から送信側P1
への送信処理が始まり、送信回線制御部1が2つの情報
パケットを送信されたが、そのうちの一つ目のピギーバ
ッククレジットが10である。送信側P1の受信回線制
御部6は、この情報パケットを受信し、受信パケット種
別判別部9で情報パケットと判断されたので、次いでピ
ギーバッククレジット抽出部12で10のピギーバック
クレジットが抽出されて、送信クレジット数カウント部
14に加算され、再び送信処理が継続できるようになっ
た。Then, from the receiving side P2 to the transmitting side P1 this time.
The transmission process to S1 has started, and the transmission line control unit 1 has transmitted two information packets, but the first piggyback credit is 10. The reception line control unit 6 of the transmission side P1 receives this information packet, and the reception packet type determination unit 9 determines that it is an information packet. Therefore, the piggyback credit extraction unit 12 extracts 10 piggyback credits. , And is added to the transmission credit number counting unit 14, so that the transmission processing can be continued again.
【0060】図5は1つの送信待ち情報パケットによる
ピギーバッククレジット処理がうまく行かない場合のタ
イムチャートである。図5において、初期動作として、
接続要求が発生した送信側P1から受信側P2へ接続要
求の命令パケットが転送されると、受信側P2は受信可
能なクレジット数を初期クレジットとして送信側P1へ
応答のパケット(エコーパケット)として命令パケットで
送信し、一方、送信側P1から受信側P2へも、受信側
P2から送信側P1の方向への情報パケットのクレジッ
ト数を命令パケットによって授与し、受信側P2はその
エコーパケットとしての命令パケットを返す。FIG. 5 is a time chart when the piggyback credit process by one transmission waiting information packet is not successful. In FIG. 5, as the initial operation,
When the connection request command packet is transferred from the transmission side P1 where the connection request is generated to the reception side P2, the reception side P2 commands the transmission side P1 as a response packet (echo packet) with the receivable credit number as an initial credit. The packet number is transmitted in packets, and on the other hand, the number of credits of the information packet from the receiving side P2 to the transmitting side P1 is also given to the receiving side P2 by the command packet, and the receiving side P2 commands the echo packet. Returns the packet.
【0061】以降は、図1に示したパケット送受信装置
の動作を行う。送信側P1は初期クレジット数の分だけ
受信側P2へ情報パケットの転送を行うことができるよ
うになるので、随時情報パケットを転送する。受信側P
2では送信側P1から受信回線制御部6がパケット(情
報パケット)を受信する。受信パケット種別判別部9
は、これを情報パケットと判断してピギーバッククレジ
ット抽出部12へ処理を分岐する。ピギーバッククレジ
ット抽出部12は、ピギーバッククレジットとして0を
抽出し、送信クレジットカウント部14に通知して情報
パケット処理部10に処理を進める。After that, the operation of the packet transmitting / receiving apparatus shown in FIG. 1 is performed. Since the transmitting side P1 can transfer the information packet to the receiving side P2 by the number of initial credits, the information packet is transferred at any time. Receiver P
In 2, the reception line control unit 6 receives a packet (information packet) from the transmission side P1. Received packet type discrimination unit 9
Judges that this is an information packet and branches the process to the piggyback credit extraction unit 12. The piggyback credit extraction unit 12 extracts 0 as the piggyback credit, notifies the transmission credit count unit 14, and advances the processing to the information packet processing unit 10.
【0062】情報パケット処理部10は、情報パケット
の受信バッファ7上の格納状態を受信パケット格納キュ
ー11に登録する。上位レイヤは受信パケット格納キュ
ー11にもとづいて順次情報パケットを処理している
が、一方、送信パケット作成部16に送信情報が上位レ
イヤより受け渡され、送信パケット作成部16は、受け
渡された情報をパケット化すると2パケットの大きさに
なるので、送信クレジット数カウント部14が2以上か
を確認したが、2以上だったので2減じた上で送信バッ
ファ2にその送信情報をパケット化して格納し、また同
時に送信待ちパケット数カウン部15に、カウンタを2
加算するように通知した。The information packet processing unit 10 registers the storage state of the information packet on the reception buffer 7 in the reception packet storage queue 11. The upper layer sequentially processes the information packets based on the received packet storage queue 11, while the transmission information is passed to the transmission packet creation unit 16 from the upper layer, and the transmission packet creation unit 16 is delivered. Since the packetized information has a size of 2 packets, it was confirmed whether the transmission credit number counting unit 14 was 2 or more. However, since it was 2 or more, it was reduced by 2 and the transmission information was packetized in the transmission buffer 2. At the same time, the counter is set to 2 in the transmission waiting packet count section 15.
Notified to add.
【0063】この時点では、まだ送信側P1から受信側
P2へのパケット転送が続けられており、受信側P2か
ら送信側P1への送信は行われていない。At this point, the packet transfer from the transmitting side P1 to the receiving side P2 is still continuing, and the transmission from the receiving side P2 to the transmitting side P1 is not performed.
【0064】すると今度は、受信側P2から送信側P1
への送信処理が始まり、送信回線制御部1が2つの情報
パケットを送信されたが、ピギーバッククレジットは0
である。その後、また送信側P1から受信側P2への情
報パケットの送信が行われ、再び同様に処理が進んだ。
その結果、パケット数カウント部4のカウント数が受信
パケットの最大数になった(図5では10)ので、更新
する必要の有るクレジット数(=10)より、クレジッ
ト更新判別部19が図2の判断処理を行ったところ
255×0+10=10 かつ 0>=1+0=1
(1つの送信待ち情報パケットで授与可能だが送信待ち
情報パケットが無い)
であるから、ピギーバッククレジットによるクレジット
の更新が不可能と判断してクレジット更新パケット作成
部3に処理を移し、かつ更新パケット数カウント部5に
更新パケット数のクリアを通知した。Then, from the receiving side P2 to the transmitting side P1 this time.
The transmission line control unit 1 has transmitted two information packets, but the piggyback credit is 0.
Is. After that, the information packet was transmitted from the transmitting side P1 to the receiving side P2 again, and the same processing was performed again.
As a result, since the count number of the packet number counting unit 4 has reached the maximum number of received packets (10 in FIG. 5), the credit update determination unit 19 of FIG. When the judgment process is performed, it is 255 × 0 + 10 = 10 and 0> = 1 + 0 = 1 (one transmission waiting information packet can be given, but there is no transmission waiting information packet), so the credit cannot be updated by piggyback credit. Then, the processing is moved to the credit update packet creation unit 3, and the update packet number counting unit 5 is notified that the update packet number is cleared.
【0065】以上のように送信待ち情報パケットの無い
状態では、従来どおり命令パケットによるクレジットの
更新を行う。As described above, in the state where there is no transmission waiting information packet, the credit is updated by the command packet as usual.
【0066】図6は複数の送信待ち情報パケットによる
ピギーバッククレジット処理のタイムチャートである。
図6において、初期動作として、接続要求が発生した側
P1から受信側P2へ接続要求の命令パケットが転送さ
れると、受信側P2は受信可能なクレジット数を初期ク
レジットとして送信側P1へ応答のパケット(エコーパ
ケット)として命令パケットで送信し、一方、送信側P
1から受信側P2へも、受信側P2から送信側P1の方
向への情報パケットのクレジット数を命令パケットによ
って授与し、受信側P2はそのエコーパケットとしての
命令パケットを返す。FIG. 6 is a time chart of piggyback credit processing by a plurality of transmission waiting information packets.
In FIG. 6, as an initial operation, when a connection request command packet is transferred from the side P1 that has generated a connection request to the reception side P2, the reception side P2 sends a response to the transmission side P1 with the number of receivable credits as the initial credit. The command packet is sent as a packet (echo packet), while the sending side P
From 1 to the receiving side P2, the credit number of the information packet from the receiving side P2 to the transmitting side P1 is given by the command packet, and the receiving side P2 returns the command packet as the echo packet.
【0067】以降は図1に示したパケット送受信装置の
動作を行う。送信側P1は初期クレジット数の分だけ受
信側P2へ情報パケットの転送を行うことができるよう
になるので、随時情報パケットを転送する。受信側P2
では送信側P1から受信回線制御部6がパケット(情報
パケット)を受信する。受信パケット種別判別部9は、
これを情報パケットと判断してピギーバッククレジット
抽出部12へ処理を分岐する。ピギーバッククレジット
抽出部12は、ピギーバッククレジットとして0を抽出
し、送信クレジットカウント部14に通知して情報パケ
ット処理部10に処理を進める。After that, the operation of the packet transmitting / receiving apparatus shown in FIG. 1 is performed. Since the transmitting side P1 can transfer the information packet to the receiving side P2 by the number of initial credits, the information packet is transferred at any time. Receiver P2
Then, the receiving line control unit 6 receives a packet (information packet) from the transmitting side P1. The received packet type discrimination unit 9
This is judged as an information packet, and the process branches to the piggyback credit extraction unit 12. The piggyback credit extraction unit 12 extracts 0 as the piggyback credit, notifies the transmission credit count unit 14, and advances the processing to the information packet processing unit 10.
【0068】情報パケット処理部10は、情報パケット
の受信バッファ7上の格納状態を受信パケット格納キュ
ー11に登録する。上位レイヤは受信パケット格納キュ
ー11にもとづいて順次情報パケットを処理している
が、一方、送信パケット作成部16に送信情報が上位レ
イヤより受け渡され、送信パケット作成部16は、受け
渡された情報をパケット化すると2パケットの大きさに
なるので、送信クレジット数カウント部14が2以上か
を確認したが、2以上だったので2減じた上で送信バッ
ファ2にその送信情報をパケット化して格納し、また同
時に送信待ちパケット数カウン部15に、カウンタを2
加算するように通知した。The information packet processing unit 10 registers the storage state of the information packet on the reception buffer 7 in the reception packet storage queue 11. The upper layer sequentially processes the information packets based on the received packet storage queue 11, while the transmission information is passed to the transmission packet creation unit 16 from the upper layer, and the transmission packet creation unit 16 is delivered. Since the packetized information has a size of 2 packets, it was confirmed whether the transmission credit number counting unit 14 was 2 or more. However, since it was 2 or more, it was reduced by 2 and the transmission information was packetized in the transmission buffer 2. At the same time, the counter is set to 2 in the transmission waiting packet count section 15.
Notified to add.
【0069】この時点では、まだ送信側P1から受信側
P2へのパケット転送が続けられており、受信側P2か
ら送信側P1への送信は行われていない。それより少し
遅れて、更新パケット数カウント部4のカウント数が受
信パケットの最大数になった(図6では300)ので、
更新する必要の有るクレジット数(=300)より、ク
レジット更新判別部19が図2の判断処理を行ったとこ
ろ、
255×1+45=300 かつ 2>=1+1=2
(2つのピギーバックで授与可能)
であるから、ピギーバッククレジットによるクレジット
の更新が可能と判断して、ピギーバッククレジット埋め
込み部17に処理を移し、かつ更新パケット数カウント
部5に更新パケット数のクリアを通知した。At this point in time, packet transfer from the sending side P1 to the receiving side P2 is still in progress, and transmission from the receiving side P2 to the sending side P1 is not being performed. A little later than that, the count number of the update packet number counting unit 4 became the maximum number of received packets (300 in FIG. 6).
When the credit update determination unit 19 performs the determination process of FIG. 2 from the number of credits (= 300) that need to be updated, it is 255 × 1 + 45 = 300 and 2> = 1 + 1 = 2 (awardable by two piggybacks) Therefore, it is determined that the credit can be updated by the piggyback credit, the process is moved to the piggyback credit embedding unit 17, and the update packet number counting unit 5 is notified that the update packet number is cleared.
【0070】ピギーバッククレジット埋め込み部17
は、図3の判断処理に基づき、
2>1
(2つ以上の送信待ち情報パケットで更新可能)
であるから、送信待ち情報パケットNo.0のピギーバ
ッククレジットを255に、送信待ち情報パケットN
o.1のピギーバッククレジットを45に書き換える処
理を行った。Piggyback credit embedding unit 17
Is 2> 1 (which can be updated by two or more transmission waiting information packets) based on the judgment processing of FIG. 3, the piggyback credit of the transmission waiting information packet No. 0 is set to 255, and the transmission waiting information packet N is set.
The process of rewriting the piggyback credit of o.1 to 45 was performed.
【0071】すると今度は、受信側P2から送信側P1
への送信処理が始まり、送信回線制御部1が2つの情報
パケットを送信されたが、そのうちの一つ目のピギーバ
ッククレジットが255、二つ目のピギーバッククレジ
ットが45である。送信側P1の受信回線制御部6は、
この情報パケットを受信し、受信パケット種別判別部9
で情報パケットと判断されたので、次いでピギーバック
クレジット抽出部12で一つ目の情報パケットからは2
55、二つ目からは45のピギーバッククレジットが抽
出されて、それぞれ送信クレジット数カウント部14に
加算(合計300)され、再び送信処理が継続できるよ
うになった。Then, from the receiving side P2 to the transmitting side P1 this time.
The transmission line control unit 1 has transmitted two information packets, and the first piggyback credit is 255 and the second piggyback credit is 45. The receiving line control unit 6 of the transmitting side P1
This information packet is received, and the received packet type discrimination unit 9
Since it is determined to be an information packet, the piggyback credit extraction unit 12 determines that the first information packet is 2
From the 55th and 45th piggyback credits, 45 piggyback credits are extracted and added to the transmission credit number counting unit 14 (300 in total), so that the transmission processing can be continued again.
【0072】図7は複数の送信待ち情報パケットによる
ピギーバッククレジット処理がうまく行かない場合のタ
イムチャートである。図7において、初期動作として、
接続要求が発生した送信側P1から受信側P2へ接続要
求の命令パケットが転送されると、受信側P2は受信可
能なクレジット数を初期クレジットとして送信側P1へ
応答のパケット(エコーパケット)として命令パケットで
送信し、一方、送信側P1から受信側P2へも、受信側
P2から送信側P1の方向への情報パケットのクレジッ
ト数を命令パケットによって授与し、受信側P2はその
エコーパケットとしての命令パケットを返す。FIG. 7 is a time chart when the piggyback credit process using a plurality of transmission waiting information packets is not successful. In FIG. 7, as the initial operation,
When the connection request command packet is transferred from the transmission side P1 where the connection request is generated to the reception side P2, the reception side P2 commands the transmission side P1 as a response packet (echo packet) with the receivable credit number as an initial credit. The packet number is transmitted in packets, and on the other hand, the number of credits of the information packet from the receiving side P2 to the transmitting side P1 is also given to the receiving side P2 by the command packet, and the receiving side P2 commands the echo packet. Returns the packet.
【0073】以降は、図1に示したパケット送受信装置
の動作を行う。送信側P1は初期クレジット数の分だけ
受信側P2へ情報パケットの転送を行うことができるよ
うになるので、随時情報パケットを転送する。受信側P
2では送信側P1から受信回線制御部6がパケット(情
報パケット)を受信する。受信パケット種別判別部9
は、これを情報パケットと判断してピギーバッククレジ
ット抽出部12へ処理を分岐する。ピギーバッククレジ
ット抽出部12は、ピギーバッククレジットとして0を
抽出し、送信クレジットカウント部14に通知して情報
パケット処理部10に処理を進める。After that, the operation of the packet transmitting / receiving apparatus shown in FIG. 1 is performed. Since the transmitting side P1 can transfer the information packet to the receiving side P2 by the number of initial credits, the information packet is transferred at any time. Receiver P
In 2, the reception line control unit 6 receives a packet (information packet) from the transmission side P1. Received packet type discrimination unit 9
Judges that this is an information packet and branches the process to the piggyback credit extraction unit 12. The piggyback credit extraction unit 12 extracts 0 as the piggyback credit, notifies the transmission credit count unit 14, and advances the processing to the information packet processing unit 10.
【0074】情報パケット処理部10は、情報パケット
の受信バッファ7上の格納状態を受信パケット格納キュ
ー11に登録する。上位レイヤは受信パケット格納キュ
ー11にもとづいて順次情報パケットを処理している
が、一方、送信パケット作成部16に送信情報が上位レ
イヤより受け渡され、送信パケット作成部16は、受け
渡された情報をパケット化すると1パケットの大きさに
なるので、送信クレジット数カウント部14が1以上か
を確認したが、1以上だったので1減じた上で送信バッ
ファ2にその送信情報をパケット化して格納し、また同
時に送信待ちパケット数カウン部15に、カウンタを1
加算するように通知した。The information packet processing unit 10 registers the storage state of the information packet on the reception buffer 7 in the reception packet storage queue 11. The upper layer sequentially processes the information packets based on the received packet storage queue 11, while the transmission information is passed to the transmission packet creation unit 16 from the upper layer, and the transmission packet creation unit 16 is delivered. Since the packetized information has a size of 1 packet, it was confirmed whether the transmission credit number counting unit 14 was 1 or more. However, since it was 1 or more, 1 was subtracted and the transmission information was packetized in the transmission buffer 2. At the same time, the counter is set to 1 in the transmission packet count counter 15
Notified to add.
【0075】この時点では、まだ送信側P1から受信側
P2へのパケット転送が続けられており、受信側P2か
ら送信側P1への送信は行われていない。それより少し
遅れて、更新パケット数カウント部4のカウント数が受
信パケットの最大数になった(図6では300)ので、
更新する必要の有るクレジット数(=300)より、ク
レジット更新判別部19が図2の判断処理を行ったとこ
ろ、
255×1+45=300 かつ 1<1+1=2
(2つの送信待ち情報パケットで授与可能だが送信待ち
情報パケットが1つしかない)
であるから、ピギーバッククレジットによるクレジット
の更新が不可能と判断してクレジット更新パケット作成
部3に処理を移し、かつ更新パケット数カウント部5に
更新パケット数のクリアを通知した。At this point, the packet transfer from the transmitting side P1 to the receiving side P2 is still continuing, and the transmission from the receiving side P2 to the transmitting side P1 is not performed. A little later than that, the count number of the update packet number counting unit 4 became the maximum number of received packets (300 in FIG. 6).
When the credit update determination unit 19 performs the determination process of FIG. 2 from the number of credits (= 300) that need to be updated, it is 255 × 1 + 45 = 300 and 1 <1 + 1 = 2 (2 transmission waiting information packets can be given. However, since there is only one transmission waiting information packet), it is judged that the credit cannot be updated by the piggyback credit, the processing is moved to the credit update packet creation unit 3, and the update packet number counting unit 5 is updated. Notified that the number has been cleared.
【0076】以上のように、送信待ち情報パケット数で
可能なクレジット数以上のクレジットを更新しようとし
た場合も、従来どおり命令パケットによるクレジットの
更新を行うことができる。As described above, even when an attempt is made to update more credits than the number of transmission wait information packets, the credits can be updated by command packets as in the conventional case.
【0077】以上説明したように本発明の第1の実施形
態によれば、クレジットの更新要求があった場合に、送
信待ちパケット数カウント部15で計数された送信待ち
情報パケット数を参照してクレジットの更新が可能か否
かを判別し、クレジットの更新が可能な場合はピギーバ
ッククレジット埋め込み部19にクレジット埋め込み指
示を行い、クレジットの更新が不可能な場合はクレジッ
ト更新パケット作成部3に命令パケット作成指示を行う
クレジット更新判別部19と、送信待ちパケット格納キ
ュー18に格納されている送信待ち情報パケットの一部
にクレジットを埋め込むピギーバッククレジット埋め込
み部19とを具備しているため、次のような効果が得ら
れる。As described above, according to the first embodiment of the present invention, the number of transmission waiting information packets counted by the transmission waiting packet number counting unit 15 is referred to when a credit update request is made. It is determined whether or not the credit can be updated. If the credit can be updated, the piggyback credit embedding unit 19 is instructed to embed the credit. If the credit cannot be updated, the credit update packet creation unit 3 is instructed. Since the credit update determination unit 19 for issuing a packet creation instruction and the piggyback credit embedding unit 19 for embedding credit in a part of the transmission waiting information packet stored in the transmission waiting packet storage queue 18 are provided, Such an effect can be obtained.
【0078】双方の送信が非同期に行われるような場合
でも、クレジットの更新要求があった時には送信待ちを
している情報パケットが存在するかどうかを調べ、送信
待ち情報パケットが存在し且つクレジット更新が可能で
あれば、情報パケットの一部にクレジットを埋め込む方
法によってクレジットを更新するため、従来のような命
令パケットによるクレジットの更新処理を低減すること
ができ、その分の転送負荷を軽減することができると共
に転送効率を向上させることができる。Even when both transmissions are performed asynchronously, when a credit update request is made, it is checked whether there is an information packet waiting to be transmitted, and there is a transmission wait information packet and the credit is updated. If possible, credits are updated by embedding the credits in a part of the information packet, so that it is possible to reduce the credit update processing by the instruction packet as in the past and reduce the transfer load. And the transfer efficiency can be improved.
【0079】[第2の実施形態]次に、本発明の第2の
実施形態について、図面を参照して詳細に説明する。[Second Embodiment] Next, a second embodiment of the present invention will be described in detail with reference to the drawings.
【0080】(1)構成の説明
図8は本発明の第2の実施形態のパケット送受信装置の
構成例を示す機能ブロック図である。本発明の第2の実
施形態のパケット送受信装置は、送信回線制御部1、送
信バッファ2、クレジット更新パケット作成部3、更新
パケット数カウント部4、カウンタ減算部5、受信回線
制御部6、受信バッファ7、応答パケット作成部8、受
信パケット種別判別部9、情報パケット処理部10、受
信パケット格納キュー11、ピギーバッククレジット抽
出部12、命令パケット処理部13、送信クレジット数
カウント部14、送信待ちパケット数カウント部15、
送信パケット作成部16、ピギーバッククレジット埋め
込み部17、送信待ちパケット格納キュー18、クレジ
ット更新判別部19、タイマ処理カウント部20、タイ
マ処理リセット部21を備えている。図中100は送信
パケット、110は受信パケット、120は上位レイヤ
の送信、130は上位レイヤの受信を示す。(1) Description of Configuration FIG. 8 is a functional block diagram showing an example of the configuration of the packet transmitting / receiving apparatus of the second embodiment of the present invention. The packet transmission / reception device of the second embodiment of the present invention includes a transmission line control unit 1, a transmission buffer 2, a credit update packet creation unit 3, an update packet number counting unit 4, a counter subtraction unit 5, a reception line control unit 6, and reception. Buffer 7, response packet creation unit 8, received packet type determination unit 9, information packet processing unit 10, received packet storage queue 11, piggyback credit extraction unit 12, command packet processing unit 13, transmission credit number counting unit 14, transmission waiting Packet number counting unit 15,
The transmission packet creation unit 16, the piggyback credit embedding unit 17, the transmission waiting packet storage queue 18, the credit update determination unit 19, the timer processing count unit 20, and the timer processing reset unit 21 are provided. In the figure, 100 is a transmission packet, 110 is a reception packet, 120 is an upper layer transmission, and 130 is an upper layer reception.
【0081】即ち、本発明の第2の実施形態のパケット
送受信装置は、上記図1に示した本発明の第1の実施形
態のパケット送受信装置の構成にタイマ処理カウント部
20とタイマ処理リセット部21を追加したものであ
る。That is, the packet transmitting / receiving apparatus of the second embodiment of the present invention is the same as the packet transmitting / receiving apparatus of the first embodiment of the present invention shown in FIG. 21 is added.
【0082】尚、図8において、上記図1に示した構成
と共通する構成には同一符号を付し説明を簡略化もしく
は省略するものとする。In FIG. 8, the same components as those shown in FIG. 1 are designated by the same reference numerals, and the description will be simplified or omitted.
【0083】(2)動作の説明
次に、本発明の第2の実施形態の動作について、図8を
参照して詳細に説明する。(2) Description of Operation Next, the operation of the second embodiment of the present invention will be described in detail with reference to FIG.
【0084】更新クレジット数カウント部4は、更新ク
レジット数が最大パケット数となった時クレジット更新
判別部19に通知している。だが、クレジット更新判別
部19は、送信待ちパケット数カウント部15のカウン
ト数を参照し、ピギーバッククレジットによるクレジッ
トの更新が可能な場合は、ピギーバッククレジット埋め
込み部17に更新クレジット数を通知するが、もしピギ
ーバックが不可能であった場合には、タイマ処理カウン
ト部20に通知するように変更する。The update credit number counting section 4 notifies the credit update determination section 19 when the update credit number reaches the maximum packet number. However, the credit update determination unit 19 refers to the count number of the transmission waiting packet number counting unit 15 and notifies the piggyback credit embedding unit 17 of the updated credit number when the credit can be updated by the piggyback credit. If piggyback is impossible, the timer processing counting unit 20 is notified.
【0085】タイマ処理カウント部20は、タイマが動
作状態のときはそのままにし、タイマがリセット状態な
らばタイマを初期化して動作し、またタイマが規定時間
が経過するとクレジット更新パケット作成部3に通知す
る。また、送信待ちパケット数カウント部15は、カウ
ントアップと共にクレジット更新判別部19にカウント
アップがあったことを通知するようにする。When the timer is in the operating state, the timer processing counting section 20 keeps the timer as it is, and when the timer is in the reset state, the timer processing counting section 20 initializes and operates the timer. To do. Further, the transmission waiting packet number counting unit 15 notifies the credit update determination unit 19 of the count-up as well as the count-up.
【0086】更に、クレジット更新パケット作成部3及
びピギーバッククレジット埋め込み部17は、これまで
の処理と共にタイマ処理リセット部21にクレジット更
新を行ったことを通知する。タイマ処理リセット部21
は、タイマ処理カウント部20をリセットし、カウンタ
の動作を停止する。Further, the credit update packet creating section 3 and the piggyback credit embedding section 17 notify the timer processing resetting section 21 that the credit has been updated, along with the processing up to this point. Timer processing reset unit 21
Resets the timer processing counting unit 20 and stops the operation of the counter.
【0087】これにより、タイマの規定時間内に、送信
待ち情報パケット数が増加すれば、クレジット更新判別
部19は、その時点でピギーバックによるクレジット更
新が可能かどうかを判断し、クレジット更新が可能なら
ば、ピギーバッククレジット埋め込み部17に処理を進
めてピギーバックによるクレジット更新を行うと同時
に、ピギーバッククレジット埋め込み部17からタイマ
処理リセット部21に通知してタイマをクリアすること
によりタイマを停止する。As a result, if the number of transmission waiting information packets increases within the specified time of the timer, the credit update determination unit 19 determines whether or not the credit can be updated by piggyback at that time, and the credit can be updated. In this case, the process is advanced to the piggyback credit embedding unit 17 to update the credit by piggyback, and at the same time, the piggyback credit embedding unit 17 notifies the timer processing reset unit 21 to clear the timer and stop the timer. .
【0088】そして、もし送信待ち情報パケット数が足
りないまま規定時間が過ぎた場合には、タイマ処理カウ
ント部20は、クレジット更新パケット作成部3に処理
を進めることにより命令パケットによるクレジットの更
新を行う。If the specified time has passed while the number of transmission waiting information packets is insufficient, the timer processing counting section 20 advances the processing to the credit update packet creating section 3 to update the credit by the command packet. To do.
【0089】このような方法によって、更に送信待ち情
報パケットの一部にクレジットを埋め込む方法によるク
レジット授与が可能となる確率を向上させることができ
る。By such a method, it is possible to further improve the probability that the credit can be granted by the method of embedding the credit in a part of the transmission waiting information packet.
【0090】以上説明したように本発明の第2の実施形
態によれば、クレジットの更新要求があった場合に、送
信待ちパケット数カウント部15で計数された送信待ち
情報パケット数を参照してタイマ処理カウント部20の
タイマで計時された規定時間内にクレジットの更新が可
能か否かを判別し、規定時間内に送信待ち情報パケット
数が増加しクレジットの更新が可能な場合はピギーバッ
ククレジット埋め込み部17にクレジット埋め込み指示
を行い、規定時間内に送信待ち情報パケット数が不足状
態でクレジットの更新が不可能な場合はタイマ処理カウ
ント部20を介してクレジット更新パケット作成部3に
命令パケット作成指示を行うクレジット更新判別部19
と、送信待ちパケット格納キュー18に格納されている
送信待ち情報パケットの一部にクレジットを埋め込むピ
ギーバッククレジット埋め込み部19とを具備している
ため、次のような効果が得られる。As described above, according to the second embodiment of the present invention, when there is a credit update request, the number of transmission waiting information packets counted by the transmission waiting packet number counting unit 15 is referred to. It is determined whether or not the credit can be updated within the specified time counted by the timer of the timer processing / counting unit 20, and when the number of transmission waiting information packets increases and the credit can be updated within the specified time, the piggyback credit is given. When the credit embedding unit 17 is instructed to embed the credit and the credit update is impossible due to the shortage of the number of transmission waiting information packets within the specified time, the command update packet creation unit 3 creates the command packet via the timer processing counting unit 20. Credit update determination unit 19 for giving an instruction
And the piggyback credit embedding unit 19 for embedding credit in a part of the transmission waiting information packet stored in the transmission waiting packet storage queue 18, the following effects can be obtained.
【0091】上記第1の実施形態と同様に、双方の送信
が非同期に行われるような場合でも、クレジットの更新
要求があった時には、送信待ちをしている情報パケット
が存在するかどうかを調べ、送信待ち情報パケットが存
在し且つクレジット更新が可能であれば、情報パケット
の一部にクレジットを埋め込む方法によってクレジット
を更新するため、従来のような命令パケットによるクレ
ジットの更新処理を低減することができ、その分の転送
負荷を軽減することができると共に転送効率を向上させ
ることができる。As in the first embodiment, even when both transmissions are performed asynchronously, when a credit update request is made, it is checked whether there is an information packet waiting for transmission. If the transmission waiting information packet exists and the credit can be updated, the credit is updated by the method of embedding the credit in a part of the information packet, so that the conventional credit updating process by the instruction packet can be reduced. Therefore, the transfer load can be reduced and the transfer efficiency can be improved.
【0092】また、第2の実施形態に特有の効果として
は、規定時間だけ送信待ち情報パケット数の増減を待つ
ことにより、より送信待ち情報パケットへのクレジット
埋め込みができる確率を高めることができる。Further, as an effect peculiar to the second embodiment, by waiting for the increase or decrease of the number of transmission waiting information packets for a specified time, the probability that the credit can be embedded in the transmission waiting information packets can be increased.
【0093】[0093]
【発明の効果】以上説明したように、本発明によれば、
送信待ち情報パケット数を参照してクレジットの更新が
可能か否かを判別し、クレジットの更新が可能な場合は
送信待ち情報パケットの一部にクレジットを埋め込むよ
うに制御しているため、次のような効果が得られる。As described above, according to the present invention,
It is determined whether the credit can be updated by referring to the number of transmission waiting information packets. If the credit can be updated, the credit is controlled to be embedded in a part of the transmission waiting information packet. Such an effect can be obtained.
【0094】また、双方の送信が非同期に行われるよう
な場合でも、クレジットの更新要求があった時には送信
待ちをしている情報パケットが存在するかどうかを調
べ、送信待ち情報パケットが存在し且つクレジット更新
が可能であれば、情報パケットの一部にクレジットを埋
め込む方法によってクレジットを更新するため、従来の
ような命令パケットによるクレジットの更新処理を低減
することができ、その分の転送負荷を軽減することがで
きると共に転送効率を向上させることができる。Further, even when both of the transmissions are performed asynchronously, when there is a credit update request, it is checked whether there is an information packet waiting to be transmitted, and there is a transmission waiting information packet. If the credit can be updated, the credit is updated by embedding the credit in a part of the information packet. Therefore, it is possible to reduce the conventional credit update processing by the instruction packet and reduce the transfer load. It is possible to improve the transfer efficiency.
【図1】本発明の第1の実施形態のピギーバッククレジ
ットの制御方法を実現するパケット送受信装置の構成例
を示す機能ブロック図である。FIG. 1 is a functional block diagram showing a configuration example of a packet transmission / reception device that realizes a piggyback credit control method according to a first embodiment of the present invention.
【図2】本発明の第1の実施形態のパケット送受信装置
のクレジット更新判別部の処理を示すフローチャートで
ある。FIG. 2 is a flowchart showing a process of a credit update determination unit of the packet transmission / reception device according to the first embodiment of the present invention.
【図3】本発明の第1の実施形態のパケット送受信装置
のピギーバッククレジット埋め込み部の処理を示すフロ
ーチャートである。FIG. 3 is a flowchart showing a process of a piggyback credit embedding unit of the packet transmission / reception device according to the first embodiment of the present invention.
【図4】本発明の第1の実施形態による互いに非同期の
転送を行うような場合の1つの情報パケットへの埋め込
みによるクレジット更新処理を示すタイムチャートであ
る。FIG. 4 is a time chart showing a credit update process by embedding in one information packet when asynchronous transfer is performed according to the first embodiment of the present invention.
【図5】本発明の第1の実施形態による互いに非同期の
転送を行うような場合の1つの情報パケットへの埋め込
みによるクレジット更新ができない場合の処理を示すタ
イムチャートである。FIG. 5 is a time chart showing a process when credit cannot be updated by embedding in one information packet when asynchronous transfer is performed according to the first embodiment of the present invention.
【図6】本発明の第1の実施形態による互いに非同期の
転送を行うような場合の複数の情報パケットへの埋め込
みによるクレジット更新処理を示すタイムチャートであ
る。FIG. 6 is a time chart showing a credit update process by embedding in a plurality of information packets in the case where asynchronous transfers are performed according to the first embodiment of the present invention.
【図7】本発明の第1の実施形態による互いに非同期の
転送を行うような場合の複数の情報パケットへの埋め込
みによるクレジット更新ができない場合の処理を示すタ
イムチャートである。FIG. 7 is a time chart showing processing when credit cannot be updated by embedding in a plurality of information packets when asynchronous transfer is performed according to the first embodiment of the present invention.
【図8】本発明の第2の実施形態のタイマ機能を装備し
たパケット送受信装置の構成例を示す機能ブロック図で
ある。FIG. 8 is a functional block diagram showing a configuration example of a packet transmission / reception device equipped with a timer function according to a second embodiment of the present invention.
【図9】従来例のクレジット処理に基づくパケット送受
信装置の構成例を示す機能ブロック図である。FIG. 9 is a functional block diagram showing a configuration example of a packet transmission / reception device based on a credit process of a conventional example.
【図10】従来例の互いに任意のタイミングで送信し合
う場合における命令パケットによるクレジット更新処理
を示すタイムチャートである。FIG. 10 is a time chart showing a credit update process by an instruction packet in the case of transmitting data at arbitrary timings in the conventional example.
【図11】従来例の応答の情報パケットを互いに転送し
合うように取り決めた場合における埋め込みによるクレ
ジット更新処理を示すタイムチャートである。FIG. 11 is a time chart showing a credit updating process by embedding in the case where it is arranged to transfer information packets of a response of the conventional example to each other.
1 送信回線制御部 2 送信バッファ 3 クレジット更新パケット作成部 4 更新パケット数カウント部 5 カウンタ減算部 6 受信回線制御部 7 受信バッファ 8 応答パケット作成部 9 受信パケット種別判別部 10 情報パケット処理部 11 受信パケット格納キュー 12 ピギーバッククレジット抽出部 13 命令パケット処理部 14 送信クレジット数カウント部 15 送信待ちパケット数カウント部 16 送信パケット作成部 17 ピギーバッククレジット埋め込み部 18 送信待ちパケット格納キュー 19 クレジット更新判別部 20 タイマ処理カウント部 21 タイマ処理リセット部 1 Transmission line control unit 2 Send buffer 3 Credit update packet creation unit 4 Update packet count section 5 Counter subtraction unit 6 Reception line control unit 7 Receive buffer 8 Response packet creation unit 9 Received packet type discrimination unit 10 Information packet processing unit 11 Received packet storage queue 12 Piggyback Credit Extraction Unit 13 Command packet processor 14 Transmission credit count section 15 Packet waiting count section 16 Transmit packet generator 17 Piggyback credit embedding department 18 Packet waiting queue for transmission 19 Credit update discriminator 20 Timer processing counting section 21 Timer processing reset section
Claims (6)
ジットを相手側に送信することでパケット通信を行うパ
ケット通信装置において、 前記クレジットの更新要求があった場合に前記クレジッ
トの更新が可能か否かを判別する判別手段と、 該判別手段で前記クレジットの更新が可能と判別された
場合は送信待ち情報パケットの一部に前記クレジットを
埋め込む埋込手段と、 送信待ち情報パケット数を計数する計数手段と、 前記クレジットを更新する命令パケットを作成する作成
手段と、 時間を計測する計時手段とを具備し、 前記判別手段は、前記計数手段で計数された送信待ち情
報パケット数を参照し前記計時手段で計時された規定時
間内に前記クレジットの更新が可能か否かを判別し、規
定時間内に送信待ち情報パケット数が増加し前記クレジ
ットの更新が可能な場合は前記埋込手段にクレジット埋
め込み指示を行い、規定時間内に送信待ち情報パケット
数が不足状態でクレジットの更新が不可能な場合は前記
作成手段に命令パケット作成指示を行う ことを特徴とす
るパケット通信装置。1. A packet communication device that performs packet communication by transmitting a credit including the number of receivable information packets to a partner, whether or not the credit can be updated when there is a request for updating the credit. Determining means for determining whether or not the credit can be updated, embedding means for embedding the credit in a part of the transmission waiting information packet, and counting for counting the number of transmission waiting information packets Creating means and a command packet for updating said credit
Means and time measuring means for measuring time, wherein the determining means is the transmission waiting information counted by the counting means.
Specified time counted by the timekeeping means with reference to the number of report packets
It is determined whether the credit can be renewed within the
The number of information packets waiting to be transmitted increases within a fixed time
If it is possible to update the
Information packet waiting to be sent within the specified time after instructing to embed
If credit cannot be renewed due to insufficient number,
A packet communication device characterized by instructing a creating means to create a command packet .
格納手段を具備し、前記埋込手段は、前記判別手段で前
記クレジットの更新が可能と判別された場合は前記格納
手段に格納されている送信待ち情報パケットの一部に前
記クレジットを埋め込むことを特徴とする請求項1に記
載のパケット通信装置。2. The storage device further comprises storage means for storing a transmission waiting information packet, and the embedding means is stored in the storage means when the determination means determines that the credit can be updated. The packet communication device according to claim 1 , wherein the credit is embedded in a part of a transmission waiting information packet.
置を適用可能であるホストコンピュータ等の上位装置或
いはプリンタ等の周辺装置の何れかを備え、前記上位装
置或いは前記周辺装置が同一通信回線上に存在し且つ相
手側に対し前記クレジットの更新を行うことを特徴とす
る通信回線システム。3. A packet communication device according to claim 1 or 2 is provided with any one of a host device such as a host computer and a peripheral device such as a printer, and the host device or the peripheral device has the same communication time. A communication line system existing on a line and updating the credit to the other party.
ジットを相手側に送信することでパケット通信を行うパ
ケット通信装置におけるクレジット更新方法において、 クレジットの更新要求があった場合にクレジットの更新
が可能か否かを判別する判別工程と、 該判別工程でクレジットの更新が可能と判別された場合
は送信待ち情報パケットの一部にクレジットを埋め込む
埋込工程と、 送信待ち情報パケット数を計数する計数工程と、 クレジットを更新する命令パケットを作成する作成工程
と、 時間を計測する計時工程とを有し、 前記判別工程では、前記計数工程で計数された送信待ち
情報パケット数を参照し前記計時工程で計時された規定
時間内にクレジットの更新が可能か否かを判別し、規定
時間内に送信待ち情報パケット数が増加しクレジットの
更新が可能な場合は前記埋込工程にクレジット埋め込み
指示を行い、規定時間内に送信待ち情報パケット数が不
足状態でクレジットの更新が不可能な場合は前記作成工
程に命令パケット作成指示を行う ことを特徴とするクレ
ジット更新方法。4. A credit updating method in a packet communication device that performs packet communication by transmitting a credit indicating the number of receivable information packets to a partner side, which can be updated when a credit updating request is made. a determination step of determining whether, and the buried burying credit to part of the transmission waiting information packet when it is determined that the possible credit update with該判based process, the counting of counting the transmission waiting number of information packets Process and creation process to create a command packet to update credits
And a time counting step of measuring time, and in the determining step, waiting for transmission counted in the counting step.
Regulations measured in the timekeeping process with reference to the number of information packets
Determine whether it is possible to renew the credit within the time, and specify
The number of information packets waiting to be sent increases within the time
If renewal is possible, credit is embedded in the embedding process.
And the number of information packets waiting to be sent
If the credit cannot be renewed in the current condition
A credit renewal method characterized in that an instruction packet creation instruction is given in order .
格納工程を有し、 前記埋込工程では、前記判別工程でクレジットの更新が
可能と判別された場合は前記格納工程に格納されている
送信待ち情報パケットの一部にクレジットを埋め込むこ
とを特徴とする請求項4に記載のクレジット更新方法。5. The method further comprises a storage step of storing a transmission-waiting information packet, wherein the embedding step stores the transmission stored in the storage step when the determination step determines that the credit can be updated. The credit renewal method according to claim 4 , wherein credit is embedded in a part of the waiting information packet.
ュータ等の上位装置或いはプリンタ等の周辺装置の何れ
かが相手側に対しクレジットの更新を行う場合に適用可
能であることを特徴とする請求項4又は5に記載のクレ
ジット更新方法。6. The present invention is applicable when any of a host device such as a host computer or a peripheral device such as a printer existing on the same communication line updates credits to the other party. The credit renewal method described in 4 or 5 .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03472499A JP3409723B2 (en) | 1999-02-12 | 1999-02-12 | Packet communication device and credit update method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03472499A JP3409723B2 (en) | 1999-02-12 | 1999-02-12 | Packet communication device and credit update method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2000236351A JP2000236351A (en) | 2000-08-29 |
| JP3409723B2 true JP3409723B2 (en) | 2003-05-26 |
Family
ID=12422280
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP03472499A Expired - Fee Related JP3409723B2 (en) | 1999-02-12 | 1999-02-12 | Packet communication device and credit update method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3409723B2 (en) |
-
1999
- 1999-02-12 JP JP03472499A patent/JP3409723B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2000236351A (en) | 2000-08-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2063577B1 (en) | A method for transmitting and analyzing data in the wireless communication network and the apparatus thereof | |
| US20030163580A1 (en) | Data transmission protocol using short message service | |
| US7460519B2 (en) | Packet data processing apparatus and method of wideband wireless local loop (W-WLL) system | |
| EP1175065A3 (en) | Method and system for improving network performance enhancing proxy architecture with gateway redundancy | |
| CN101247261A (en) | Method and apparatus for preventing DDos attack | |
| EP1406424A3 (en) | Terminal device, method for processing communication data inside the terminal device, and program for implementing the method | |
| CA2585578A1 (en) | System and method for provisioning service flows in broadband wireless access communication | |
| JP3409723B2 (en) | Packet communication device and credit update method | |
| JP2001069174A (en) | Transmission control method | |
| CN108199814A (en) | Data transmission method and device | |
| US9204206B2 (en) | Method and apparatus for transmitting signaling | |
| US7701968B2 (en) | Device and method thereof for transmitting a MAC service data unit in a network system | |
| EP1933573A1 (en) | A mobile short message system and a delivering method for mobile short message | |
| EP1921821A2 (en) | Wireless communication system, information and communication terminal, portable telephone, reader/writer, communication method and computer program | |
| EP1182864A3 (en) | Communication terminal | |
| JPH09186772A (en) | Conference type mail box service | |
| JP3037233B2 (en) | Personal communication system | |
| AU4739699A (en) | Method for interfacing a rate adaptation processing unit and a board messenger processing unit in a wireless data communication system | |
| CN105894285A (en) | Using method of face payment system based on Bluetooth-assisted authentication | |
| JP3191899B2 (en) | Facsimile apparatus and communication history storage method | |
| KR100532318B1 (en) | How to set datalink map in V5.2 protocol | |
| EP0944217A3 (en) | Methods for data communication and for generating communication frames | |
| JP3362547B2 (en) | Communication adapter | |
| KR100720576B1 (en) | Packet transmission apparatus provided in mobile communication base station and transmission method using same | |
| JPH04177600A (en) | Vehicle movement management system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080320 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090320 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090320 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100320 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100320 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110320 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110320 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120320 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120320 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130320 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130320 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140320 Year of fee payment: 11 |
|
| LAPS | Cancellation because of no payment of annual fees |