TCP のネットワーク測定計画
5.1 ユーザ・レベルの診断
我々は、特定の TCP を動作させ、コネクションのオープン、クローズ、さまざまなコネクション上での送信など、複数の状態を巡回させるプログラムを想定している。このプログラムは統計を収集し、一般に TCP の機能仕様からの逸脱を検出しようとする。このプログラムのコピーは、試験対象のローカル・サイトと、認証済みの TCP を持つどこかのサイトの双方に置く必要があることは明らかである。したがって、このユーザ・レベルの診断プログラムについても仕様を作成しなければならない。
これには、マスタ側とスレーブ側が必要であり、試験で何が誤っているのかをマスタがスレーブに伝えられるようにする。
5.2 単一コネクションの測定
次に、単一コネクションについて測定する項目を示す。往復遅延時間、パケット・サイズの統計、順序の乱れた到着の尺度、再送のヒストグラム、実効スループット、出力の測定、利用率、ウィンドウとバッファの割り当ての測定が含まれる。
Round trip delay times
Time from moment the packet is sent by the TCP to the time that
the ACK is received by the TCP.
Time from the moment the USER issues the SEND to the time that the
USER gets the successful return code.
Note: packet size should be used to distinguish from one set of
round trip times and another.
Network destination, and current configuration and traffic load
may also be issues of importance that must be taken into
account.
What if the destination TCP decides to queue up ACKs and send a
single ACK after a while? How does this affect round trip
statistics?
What about out of order arrivals and the bunched ACK for all of
them?
The histogram of round trip times include retransmission times
and these must be taken into account in the analysis and
evaluation of the collected data.
Packet size statistics
Histogram of packet length in both directions on the full duplex
connection.
Histogram of letter size in both directions.
Measure of disorderly arrival
Distance from the first octet of arriving packet to the left
window edge. A histogram of this measure gives an idea of the out
of order nature of packet arrivals. It will be 0 for packets
arriving in order.
Retransmission Histogram
Effective throughput
This is the effective rate at which the left edge of the window
advances. The time interval over which the measure is made is a
parameter of the measurement experiment. The shorter the interval,
the more bursty we would expect the measure to be.
It is possible to measure effective data throughput in both
directions from one TCP by observing the rate at which the left
window edge is moving on ACK sent and received for the two
windows.
Since throughput is largely dependent upon buffer allocation and
window size, we must record these values also. Varying window for
a fixed file transmission might be a good way to discover the
sensitivity of throughput to window size.
Output measurement
The throughput measurement is for data only, but includes
retransmission. The output rate should include all octets
transmitted and will give a measure of retransmission overhead.
Output rate also includes packet format overhead octets as well as
data.
Utilization
The effective throughput divided by the output rate gives a
measure of utilization of the communication connection.
Window and buffer allocation measurements
Histogram of letters outstanding, measured at the instant of SEND
receipt by TCP from user or at instant of arrival of a letter for
a receiving user.
Buffers in use on the SEND side upon packet departure into the
net; buffers in use on the RECEIVE side upon delivery of packet
into a USER Buffer.
5.3 複数コネクションの測定
複数のコネクションにまたがる測定項目は次のとおりである。
Statistics on User Commands sent to the local TCP
Statistics of error or success codes returned [histogram of each type
of error or return response]
Statistics of control bit use
Counter for each control bit over all packets emitted by the TCP
and another for packets accepted
Count data carrying packets
Count ACK packets with no data
Error packets distribution by error type code received from the net
and sent out into the net
5.4 測定の実装方針
我々は、測定プロセスを、TCP の内部で行われるが外部から制御できるものとみなしている。TCP が所有する周知ソケットを使って、収集する 1 つ以上の測定クラスを選択する制御を受け付けることができる。データは、現在 ARPANET の IMP で用いられている方式と同様に、後の処理のためにデータを吸収する指定された外部ソケットへ定期的に送られる。各測定クラスは、データの構文解析と分析を容易にするために、それぞれ独自のデータ・パケット形式を持つ。
TCP の測定制御へのアクセスは、少数の指定されたサイト [たとえば NMC、SU-DSL、BBN] に限定する。これは、部分的に指定した外部ソケットで待ち受ける制御用コネクションを設定することで容易に実現できる。