コンテンツにスキップ

ネットワーク帯域幅制御#

このトピックでは、blazeカメラが画像と深度データをストリーミングするときのネットワーク帯域幅消費量を制御するためのパラメーターについて説明します。

機能を使用する#

複数のデバイスが共通リンクを介して受信ホストに接続され、使用可能なネットワーク帯域幅を共有する必要がある場合は、ネットワーク帯域幅消費量を制御する必要があります。安定した動作を保証するために、各カメラが消費する帯域幅の量を制限しなければならない場合があります。

例:スイッチ経由で2台のカメラを受信側コンピューターのGigabit Ethernetアダプターのネットワークポートに接続する場合、両方のカメラのスループットの合計が最大スループット1GBit/s(125 000 000byte/s)を超えてはなりません。

カメラで使用される帯域幅を減らすもう1つの理由は、受信ホストがデータ転送に対応できず、パケットを破棄する必要がある場合です。

帯域幅消費量の制御#

In a first step, determine the maximum possible throughput your cameras can generate with their current settings by reading the BslDeviceLinkCurrentThroughput parameter. This parameter indicates the bandwidth consumption when the camera is in free run mode, i.e., when it isn't triggered externally using software or hardware triggers.

Once you have this information, use the DeviceLinkThroughputLimitMode and DeviceLinkThroughputLimit parameters to specify sensible throughput limits for each camera. The sum of the throughputs of all cameras sharing the same link must not exceed the maximum throughput of the network adapter.

指定された制限を達成するために、カメラは個々のネットワークパケット間に一時停止を挿入します。下限値が低いほど、一時停止の回数と時間が増加します。完全なフレームの転送時間と関連する待ち時間(画像の生成からデータがホストのメモリーに到達するまでの時間)は、制限値が小さくなるにしたがって増加します。

At a certain point, this will affect the frame rate you can achieve. Read the BslResultingAcquisitionFrameRate parameter to find out the maximum possible frame rate with the current camera settings.

帯域制限の指定は、ネットワーク帯域幅の割り当てとも呼ばれます。

スループットを制限するには:

  1. Set the DeviceLinkThroughputLimitMode parameter to On.
  2. Specify the desired DeviceLinkThroughputLimit parameter value.
  3. Read the BslResultingAcquisitionFrameRate parameter to find out how the device link throughput limit affects the frame rate.

Bandwidth Reserve#

ストリーミングプロトコルはUDPプロトコルに基づいています。UDPは、カメラから送信されたパケットがホストによって受信されることを保証しません。

パケットは、ホストまたはカメラとホスト間のネットワークデバイスによってドロップできます。受信ソフトウェアは通常、失われたパケットを検出し、失われたデータを再送信するために適切な要求をカメラに送信します。これらのパケットを再送信するため、および制御トラフィック用に、一定の帯域幅予約が使用できる状態になっています。この予約を使い切った場合、カメラは要求されたパケットを再送信できなくなります。

The bandwidth reserve is controlled by the GevSCBWR and GevSCBWRA parameters, which are described in the table below.

使用可能なパラメーター#

パラメーター名 表示名 説明
DeviceLinkThroughputLimitMode Device Link Throughput Limitモード Allows you to limit the maximum available bandwidth for data transmission. Set the parameter to On to enable the limit. The maximum bandwidth is limited to the DeviceLinkThroughputLimit parameter value.
DeviceLinkThroughputLimit Device Link Throughput Limit Specifies the maximum available bandwidth for data transmission in bytes per second. To enable the limit, set the DeviceLinkThroughputLimitMode parameter to On.
BslDeviceLinkCurrentThroughput Device Link Current Throughput 現在のカメラ設定で、データをカメラから転送するために使用する実際の帯域幅(バイト/秒単位)。
BslResultingAcquisitionFrameRate 結果として得られるAcquisition Frame Rate 現在のカメラ設定で1秒あたりに取得できるフレームの最大数。
GevSCBWR Bandwidth Reserve Specifies which portion of the assigned bandwidth is reserved to handle packet resends and to control data transmission.
The setting is expressed as a percentage of the assigned bandwidth.
Example: If a bandwidth of 30 MByte/s is assigned to the camera and the GevSCBWR parameter is set to 5 %, the bandwidth reserve will be 1.5 MByte/s.
GevSCBWRA Bandwidth Reserve Accumulation Multiplier used to set the maximum number of resends that can be held in the "accumulator pool".
You can use the GevSCBWRA parameter to handle situations when the network connection becomes unstable. In these situations, a larger number of packet resends may be needed temporarily to transmit an image. The bandwidth reserve accumulation is basically an additional pool of resends that the camera can use in unusual situations.
Example: The current bandwidth reserve setting is large enough to allow up to 5 packet resends during a frame period. The bandwidth reserve accumulation (GevSCBWRA parameter) is set to 3. With these settings, the accumulator pool can hold a maximum of 5 x 3 = 15 resends.
GevSCPSPacketSize Packet Size Specifies the maximum size of a data packet transmitted via Ethernet. The value is in bytes.
For blaze cameras the only supported value is 1500 bytes.