JPH09102793A - Repeater system - Google Patents

Repeater system

Info

Publication number
JPH09102793A
JPH09102793A JP7260331A JP26033195A JPH09102793A JP H09102793 A JPH09102793 A JP H09102793A JP 7260331 A JP7260331 A JP 7260331A JP 26033195 A JP26033195 A JP 26033195A JP H09102793 A JPH09102793 A JP H09102793A
Authority
JP
Japan
Prior art keywords
size
buffer
receiving buffer
frame
received
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7260331A
Other languages
Japanese (ja)
Inventor
Ryoji Suzuki
亮司 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Cable Ltd
Original Assignee
Hitachi Cable Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Cable Ltd filed Critical Hitachi Cable Ltd
Priority to JP7260331A priority Critical patent/JPH09102793A/en
Publication of JPH09102793A publication Critical patent/JPH09102793A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To store most frames to be received actually in one receiving buffer, and to simplify reception processing so as to enable the high-speed reception processing by changing the size of the receiving buffer to the optimal size on the basis of statistics. SOLUTION: All optimal buffer size calculating device 108 determines the upper limit value of a range in which cumulative ratio reaches definite ratio. A buffer size changing device 107 changes the size of the receiving buffer to the size determined by optimal buffer size calculation. The number of pieces of the receiving buffers becomes the number obtained by dividing the total size of the receiving buffer by the receiving buffer size. Thus, receiving buffer size can be changed. By executing this optimization, the most of the received frames can be stored in one receiving buffer. Thus, the size of the optimized receiving buffer is not too large and not too small for the size of the frame to be received actually, and efficiency becomes best.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、受信フレームを中
継するために受信バッファを持つ中継装置に係り、特
に、受信バッファサイズの最適化が可能な中継装置に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a relay device having a reception buffer for relaying a reception frame, and more particularly to a relay device capable of optimizing a reception buffer size.

【0002】[0002]

【従来の技術】従来の中継装置は、受信バッファのサイ
ズが固定されており、それを変更することはできない。
通常、受信バッファのサイズは、接続するローカルエリ
アネットワークの最大フレーム長に固定するか、また
は、それよりも小さいサイズに固定する。
2. Description of the Related Art In a conventional relay device, the size of a reception buffer is fixed and cannot be changed.
Usually, the size of the receiving buffer is fixed to the maximum frame length of the local area network to which it is connected, or fixed to a smaller size.

【0003】[0003]

【発明が解決しようとする課題】従来の方法には以下に
示す問題がある。
The conventional method has the following problems.

【0004】(1)受信バッファのサイズが受信フレー
ムのサイズに比べて小さ過ぎる場合、1つのフレームを
格納するために複数のバッファを使用しなければならな
い。このため、受信処理に時間がかかり、処理に時間が
かかってしまう。例えば、受信バッファサイズが64バ
イト、受信フレームサイズが4500バイトとすると、
4500÷64=70.3より、1つのフレームを71
個のバッファに分けて格納しなければならない。
(1) If the size of the receive buffer is too small compared to the size of the received frame, multiple buffers must be used to store one frame. Therefore, the receiving process takes time, and the process takes time. For example, if the receive buffer size is 64 bytes and the receive frame size is 4500 bytes,
From 4500 ÷ 64 = 70.3, one frame is 71
Must be stored in separate buffers.

【0005】(2)受信バッファのサイズが受信フレー
ムのサイズに比べて大き過ぎる場合、受信バッファの空
き領域が大きくなり、バッファの使用効率が悪くなる。
また、受信バッファサイズを小さめにした場合に比べ、
確保できる受信バッファの数が少なくなるため、保持で
きるフレーム数が少なくなる。このため、一度に多数の
フレームを受信した場合に、全て保持することができ
ず、受信フレームの一部を廃棄しなければならなくな
る。例えば、受信バッファサイズが4500バイトで、
受信フレームサイズが64バイトとすると、4500バ
イトのバッファのうちの64バイト(1.42%)しか
使用されないことになる。また、受信バッファの総サイ
ズを64Kバイトとすると、受信バッファは65536
/4500=14.6より14個しか確保できない。
(2) If the size of the reception buffer is too large compared to the size of the reception frame, the free area of the reception buffer becomes large and the efficiency of use of the buffer deteriorates.
Also, compared to the case where the receive buffer size is made smaller,
Since the number of receive buffers that can be secured decreases, the number of frames that can be retained decreases. For this reason, when a large number of frames are received at once, it is not possible to hold all of them and some of the received frames must be discarded. For example, if the receive buffer size is 4500 bytes,
If the received frame size is 64 bytes, only 64 bytes (1.42%) of the 4500-byte buffer will be used. If the total size of the receive buffer is 64 Kbytes, the receive buffer is 65536.
From /4500=14.6, only 14 can be secured.

【0006】(3)上記(1)、(2)で示したよう
に、受信バッファのサイズは、実際に受信するフレーム
のサイズより大き過ぎても小さ過ぎても効率が悪くなる
ため、実際に受信するフレームのサイズに合わせて決め
ることが望ましい。しかし、実際に受信するフレームサ
イズは接続するネットワークの種類やネットワークの利
用方法によって大きく異なるため、最適なサイズを固定
的に決めることは不可能である。
(3) As shown in (1) and (2) above, if the size of the receiving buffer is too large or too small as compared with the size of the frame to be actually received, the efficiency will be poor. It is desirable to decide according to the size of the received frame. However, the actual frame size to be received varies greatly depending on the type of network to be connected and the method of using the network, so it is impossible to fixedly determine the optimum size.

【0007】そこで、本発明の目的は、上記課題を解決
し、受信バッファサイズの最適化が可能な中継装置を提
供することにある。
Therefore, an object of the present invention is to solve the above problems and provide a relay device capable of optimizing the reception buffer size.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に本発明は、複数のローカルエリアネットワーク間でフ
レームを中継する中継装置において、フレームを受信す
るたびにそのフレームサイズの統計情報を求める統計手
段と、その統計情報を基に受信バッファのサイズを最適
サイズに変更する変更手段とを備えたものである。
In order to achieve the above object, the present invention provides a statistical device for obtaining statistical information on a frame size each time a frame is received in a relay device for relaying the frame between a plurality of local area networks. And a changing means for changing the size of the reception buffer to the optimum size based on the statistical information.

【0009】[0009]

【発明の実施の形態】本発明の中継装置は、フレームを
受信するたびにそのフレームサイズの統計情報を求める
統計手段と、その統計情報を基に受信バッファのサイズ
を最適サイズに変更する変更手段とを備えている。
BEST MODE FOR CARRYING OUT THE INVENTION The relay device of the present invention comprises statistical means for obtaining statistical information of the frame size each time a frame is received, and changing means for changing the size of the receiving buffer to the optimum size based on the statistical information. Is equipped with.

【0010】フレームサイズを統計する形態は、最大フ
レームサイズまでの範囲をいくつかの範囲に分け、範囲
毎に該当するサイズの受信フレームが発生した回数の累
計を行い、この累計数を統計値として記憶する。この処
理は中継装置がフレームを受信するたびに行う。従っ
て、受信フレームサイズの大きさ別発生回数が統計情報
となる。
In the form of statistically measuring the frame size, the range up to the maximum frame size is divided into several ranges, and the number of times the received frames of the corresponding size are generated is accumulated, and this accumulated number is used as a statistical value. Remember. This process is performed every time the relay device receives a frame. Therefore, the number of times the received frame size is generated for each size is statistical information.

【0011】受信バッファのサイズを変更する形態は、
今まで受信したフレームの大多数が1つの受信バッファ
に収まるような受信バッファサイズを求め、受信バッフ
ァのサイズをそのサイズに変更する。これにより、今後
受信するフレームの大多数が1つの受信バッファに収ま
ることが期待できる。それより大きなサイズの受信フレ
ームは複数の受信バッファに分けて蓄積することになる
が、その発生は統計的に少ないと判断できる。従って、
受信処理時間が短縮される。また、受信バッファのサイ
ズが不必要に大きくはならないので、空き領域は少なく
なる。従って、バッファの使用効率は向上する。
The mode for changing the size of the reception buffer is as follows.
The reception buffer size is calculated so that most of the frames received so far can fit in one reception buffer, and the size of the reception buffer is changed to that size. As a result, it can be expected that the majority of frames to be received in the future will fit in one reception buffer. Received frames of a larger size will be stored separately in a plurality of receive buffers, but it can be determined that the occurrence is statistically small. Therefore,
Reception processing time is shortened. In addition, the size of the receive buffer does not unnecessarily increase, so the free area is reduced. Therefore, the use efficiency of the buffer is improved.

【0012】以下、本発明の具体的な実施形態を添付図
面に基づいて説明する。
Specific embodiments of the present invention will be described below with reference to the accompanying drawings.

【0013】図1に示されるように、本発明に係る中継
装置は、複数のローカルエリアネットワークに接続され
るネットワークインタフェース106と受信部105と
主記憶102とを有し、主記憶102内に受信バッファ
領域103を有している。また、フレームを受信するた
びにその受信フレームの統計情報を求める統計手段とし
て主記憶102内に統計情報記憶領域104を有し、そ
の統計情報を基に受信バッファのサイズを最適サイズに
変更する変更手段として、最適バッファサイズ計算手段
108及びバッファサイズ変更手段107を有する。
As shown in FIG. 1, the relay apparatus according to the present invention has a network interface 106 connected to a plurality of local area networks, a receiving unit 105, and a main memory 102, and the main memory 102 receives the data. It has a buffer area 103. Further, as a statistic means for obtaining the statistic information of the received frame each time the frame is received, the statistic information storage area 104 is provided in the main memory 102, and the changing means for changing the size of the receiving buffer to the optimum size based on the statistic information. It has an optimum buffer size calculating means 108 and a buffer size changing means 107.

【0014】受信バッファ構成例を図2に示す。受信バ
ッファ領域103には受信バッファ203が複数個確保
されている(図示例では、バッファ1〜4の4個である
が、いくつでもよい)。各受信バッファ203には、フ
レームに関する情報やバッファサイズ、バッファの先頭
アドレス等を設定したバッファ記述子202がそれぞれ
用意されており、全てのバッファ記述子202はリング
状にチェインされている。即ち、記述子1には記述子2
の索引情報が付随し、記述子2には記述子3の索引情報
が付随するというように、順次索引が可能となってい
る。また、先頭ポインタ201は先頭の記述子を指し示
すようになっている。この受信バッファ構成にあって
は、記述子がバッファサイズ及びバッファの先頭アドレ
スを持っているので、バッファサイズを任意に変更する
ことが可能である。
An example of the structure of the receiving buffer is shown in FIG. A plurality of reception buffers 203 are secured in the reception buffer area 103 (in the illustrated example, there are four buffers 1 to 4, but any number may be used). Each reception buffer 203 is provided with a buffer descriptor 202 in which information about a frame, a buffer size, a buffer start address, and the like are set, and all the buffer descriptors 202 are chained in a ring shape. That is, descriptor 1 has descriptor 2
The index information of is attached, the descriptor 2 is attached with the index information of the descriptor 3, and the like. Further, the head pointer 201 points to the head descriptor. In this receiving buffer configuration, the descriptor has the buffer size and the buffer start address, so the buffer size can be arbitrarily changed.

【0015】受信バッファの総サイズは64Kバイトで
ある。
The total size of the receive buffer is 64 Kbytes.

【0016】統計情報記憶領域104の構成例を図3に
示す。本例では最大フレームサイズを4500バイトと
仮定し、この最大フレームサイズを0〜450バイト、
450〜900バイトというように450バイト間隔の
範囲に分けて、フレームサイズの欄301が設けられて
いる。そして、その範囲毎に該当するサイズのフレーム
の受信数の欄302が設けられている。この統計情報記
憶領域104の動作は、受信部105がネットワークイ
ンターフェイス106からフレームを受信して受信バッ
ファに格納するとき、受信フレームのサイズに対応する
欄の受信数を1増加するようになっている。
An example of the structure of the statistical information storage area 104 is shown in FIG. In this example, the maximum frame size is assumed to be 4500 bytes, and the maximum frame size is 0 to 450 bytes.
A frame size column 301 is provided in a range of 450-byte intervals such as 450 to 900 bytes. Then, a column 302 for the number of received frames of a corresponding size is provided for each range. The operation of the statistical information storage area 104 is such that when the receiving unit 105 receives a frame from the network interface 106 and stores the frame in the reception buffer, the reception number in the column corresponding to the size of the reception frame is incremented by one. .

【0017】実際の動作例を説明する。An actual operation example will be described.

【0018】統計情報記憶領域104に記憶される統計
情報例をグラフ形式で図4に示す。このグラフの縦軸は
総受信フレーム数に対する範囲毎受信数の割合である。
この図から、フレームサイズ450〜900バイトやそ
れに近い受信フレームは多く発生し、4500バイトに
近いような大きな受信フレームはあまり発生していない
ことがわかる。
FIG. 4 shows an example of statistical information stored in the statistical information storage area 104 in a graph format. The vertical axis of this graph is the ratio of the number of receptions for each range to the total number of reception frames.
From this figure, it can be seen that a large number of received frames with a frame size of 450 to 900 bytes or close thereto are generated, and large received frames close to 4500 bytes are rarely generated.

【0019】最適バッファサイズを計算するために、上
記統計情報はサイズの小さい方から大きい方へ順次累計
した統計情報に加工される。その加工結果として、縦軸
を総受信フレーム数に対する累計割合にしたグラフを図
5に示す。この図には累計割合が80%のラインが破線
で示されている。この図から大部分のフレームが0〜2
250バイトの範囲に収まることがわかる。
In order to calculate the optimum buffer size, the statistical information is processed into statistical information which is sequentially accumulated from the smaller size to the larger size. As a result of the processing, FIG. 5 shows a graph in which the vertical axis represents the cumulative ratio with respect to the total number of received frames. In this figure, a line with a cumulative ratio of 80% is indicated by a broken line. From this figure, most frames are 0-2
It turns out that it fits in the range of 250 bytes.

【0020】最適バッファサイズ計算手段は、累計割合
が一定の割合(例えば80%)に達する範囲(この例で
は1800〜2250バイトの範囲)の上限値(225
0バイト)を求める。バッファサイズ変更手段は受信バ
ッファのサイズを上記最適バッファサイズ計算手段が求
めたサイズ(2250バイト)に変更する。受信バッフ
ァの個数は、受信バッファの総サイズを受信バッファサ
イズで割つた数(65536÷2250=29.1より
29個)となる。こうすることにより、受信バッファの
総サイズは変えずに受信バッファサイズを変更すること
ができる。
The optimum buffer size calculating means has an upper limit value (225) of a range (in this example, a range of 1800 to 2250 bytes) in which the cumulative ratio reaches a constant ratio (for example, 80%).
0 bytes). The buffer size changing means changes the size of the receiving buffer to the size (2250 bytes) obtained by the optimum buffer size calculating means. The number of reception buffers is the total size of the reception buffers divided by the reception buffer size (65536/2250 = 29 from 29. 1). By doing so, the receive buffer size can be changed without changing the total size of the receive buffer.

【0021】以上の最適化を行うことにより、受信フレ
ームの大部分(この例では80%以上)を1つの受信バ
ッファに収めることができる。このようにして統計に基
づいて最適化された受信バッファのサイズは、実際に受
信するフレームのサイズに対して大き過ぎず小さ過ぎ
ず、最も効率が良いものとなる。
By performing the above optimization, most of the received frames (80% or more in this example) can be stored in one receiving buffer. In this way, the size of the receiving buffer optimized based on the statistics is not too large or too small as compared with the size of the actually received frame, and is the most efficient.

【0022】[0022]

【発明の効果】本発明は次の如き優れた効果を発揮す
る。
The present invention exhibits the following excellent effects.

【0023】(1)統計に基づき受信バッファのサイズ
を最適サイズに変更しているため、実際に受信する大部
分のフレームを1つの受信バッファに収めることができ
るようになり、受信処理を簡略化し、高速に受信処理を
行うことができる。
(1) Since the size of the receiving buffer is changed to the optimum size based on statistics, most of the frames actually received can be accommodated in one receiving buffer, and the receiving process is simplified. The reception process can be performed at high speed.

【0024】(2)統計に基づき受信バッファのサイズ
を最適サイズに変更しているため、実際に受信する大部
分のフレームサイズに合わせて受信バッファサイズを決
定することができるようになり、受信バッファの空き領
域を少なくし、使用効率を高めることができる。
(2) Since the size of the receiving buffer is changed to the optimum size based on statistics, it becomes possible to determine the receiving buffer size in accordance with most of the frame size actually received. It is possible to reduce the empty area of the and improve the usage efficiency.

【0025】(3)統計に基づき受信バッファのサイズ
を最適サイズに変更しているため、接続するネットワー
クの種類やネットワークの利用方法によらず、最適なサ
イズを決めることができる。
(3) Since the size of the receiving buffer is changed to the optimum size based on statistics, the optimum size can be determined regardless of the type of network to be connected or the method of using the network.

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

【図1】本発明の中継装置の内部構成図である。FIG. 1 is an internal configuration diagram of a relay device of the present invention.

【図2】本発明の受信バッファの構成図である。FIG. 2 is a configuration diagram of a reception buffer of the present invention.

【図3】本発明の統計情報記憶領域の構成図である。FIG. 3 is a configuration diagram of a statistical information storage area of the present invention.

【図4】本発明による統計情報の一例としてフレームの
総受信数に対する範囲毎の受信数の割合を示した統計図
である。
FIG. 4 is a statistical chart showing a ratio of the number of received frames for each range to the total number of received frames as an example of statistical information according to the present invention.

【図5】本発明による統計情報の一例としてフレームの
総受信数に対するサイズの小さい範囲順の受信数の累計
割合を示した統計図である。
FIG. 5 is a statistical chart showing an example of statistical information according to the present invention, showing a cumulative ratio of the number of received frames in order of decreasing size to the total number of received frames.

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

103 受信バッファ領域 104 統計情報記憶領域 107 バッファサイズ変更手段 108 最適バッファサイズ計算手段 203 受信バッファ 103 receive buffer area 104 statistical information storage area 107 buffer size changing means 108 optimum buffer size calculating means 203 receive buffer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数のローカルエリアネットワーク間で
フレームを中継する中継装置において、フレームを受信
するたびにそのフレームサイズの統計情報を求める統計
手段と、その統計情報を基に受信バッファのサイズを最
適サイズに変更する変更手段とを備えたことを特徴とす
る中継装置。
1. In a relay device for relaying a frame between a plurality of local area networks, statistical means for obtaining statistical information of the frame size each time the frame is received, and an optimum size of a receiving buffer based on the statistical information. A relay device comprising: a changing unit configured to change to.
JP7260331A 1995-10-06 1995-10-06 Repeater system Pending JPH09102793A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7260331A JPH09102793A (en) 1995-10-06 1995-10-06 Repeater system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7260331A JPH09102793A (en) 1995-10-06 1995-10-06 Repeater system

Publications (1)

Publication Number Publication Date
JPH09102793A true JPH09102793A (en) 1997-04-15

Family

ID=17346516

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7260331A Pending JPH09102793A (en) 1995-10-06 1995-10-06 Repeater system

Country Status (1)

Country Link
JP (1) JPH09102793A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7461393B1 (en) 1999-04-28 2008-12-02 Sony Corporation Broadcast receiver, control method therefor, and program
JP2010268321A (en) * 2009-05-15 2010-11-25 Fujitsu Ltd Transmitter and transmission method
JP2011142563A (en) * 2010-01-08 2011-07-21 Hitachi Information & Control Solutions Ltd Data receiving device and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7461393B1 (en) 1999-04-28 2008-12-02 Sony Corporation Broadcast receiver, control method therefor, and program
JP2010268321A (en) * 2009-05-15 2010-11-25 Fujitsu Ltd Transmitter and transmission method
JP2011142563A (en) * 2010-01-08 2011-07-21 Hitachi Information & Control Solutions Ltd Data receiving device and method

Similar Documents

Publication Publication Date Title
TWI400617B (en) Schedule and data caching for wireless transmission
US9204440B2 (en) Scheduling implementation method, apparatus, and system
US11425057B2 (en) Packet processing
US20220066699A1 (en) Data read/write method and apparatus, and exchange chip and storage medium
US7689047B2 (en) Reduced buffer size for JPEG encoding
US20050257012A1 (en) Storage device flow control
US20150229693A1 (en) Implementing reduced video stream bandwidth requirements when remotely rendering complex computer graphics scene
CN106503008A (en) File memory method and device and file polling method and apparatus
EP3726397A1 (en) Join query method and system for multiple time sequences under columnar storage
CN114124848B (en) Switch multi-monitoring port method based on VLID monitoring
JPH09102793A (en) Repeater system
CN111369444B (en) Image scaling processing method and device
JP2820106B2 (en) Traffic shaper device
US20030058879A1 (en) Scalable hardware scheduler time based calendar search algorithm
US10031884B2 (en) Storage apparatus and method for processing plurality of pieces of client data
JP2020088517A (en) Communication apparatus, and control method and program of communication apparatus
CN117499351A (en) Message forwarding device and method, communication chip and network equipment
CN105450543B (en) Voice data transmission method
JP2001125749A (en) Recording medium with recorded external storage device driver program and computer having external storage device access function
JP4252379B2 (en) Variable length frame buffer device
CN111143411A (en) Dynamic streaming pre-calculation method and device and storage medium
CN113645148B (en) Traffic shaper token updating system and method for time-sensitive network
US7475159B2 (en) High-speed scheduler
JP3230339B2 (en) Communication control device
CN115242735B (en) Real-time voice stream slice analysis method, system and computer equipment