home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
lan
/
nbtest.arj
/
NBTEST.DOC
< prev
next >
Wrap
Text File
|
1992-04-03
|
5KB
|
136 lines
Documentation file for NBTEST. (5-JUL-1987)
Copyright (C) 1987 Micro-Matic Research
1. Introduction
_______________________________________________________________________________
NBTEST is a simple test program for NETBIOS implementations.
'Simple' means that only a limited set of functions are tested.
Datagram tests are completely missing.
NBTEST establishes a session between two stations and then moves data
from one to the other. Thereafter the session is closed and some
statistics are reported.
2. Operation
_______________________________________________________________________________
NBTEST should be started from the MS/DOS command line after NETBIOS is
installed on two stations.
The station that is started first will ADDNAME the name 'NBTEST-R'
and LISTEN for a call. The other station will also try to ADDNAME 'NBTEST-R',
which will fail because it is registered already. Then it tries to
ADDNAME 'NBTEST-S'. This should succeed so it will issue a CALL to the
other station.
Now 'NBTEST-S' will SEND data, 'NBTEST-R' will RECEIVE data. When the
specified number of blocks is sent both stations will HANGUP the session.
NBTEST is able to issue the RECEIVE and SEND commands in no-wait mode.
In this case it is possible to set the number of commands that are issued
at the same time.
3. Command arguments.
_______________________________________________________________________________
Arguments are given to NBTEST by putting them on the command line
that starts NBTEST. They are separated from each other by one or more
spaces.
The format for an argument is a dash (-) immediately followed (NO spaces)
by a single letter, optionally followed by one or more spaces and a
decimal number.
NBTEST recognizes the following arguments:
-i displays the number of kilobytes transferred in real time.
This option should not be turned on if NBTEST is used to
measure NETBIOS speeds.
-w wait for a keystroke before sending each block. This option
implies -i.
-v verifies proper received data length and data contents.
This option should not be turned on if NBTEST is used to
measure NETBIOS speeds.
-b nnn specifies the number of commands that are issued simultaneously
in no-wait mode. If nnn is zero then data transfer takes place
in wait mode.
IMPORTANT: this parameter must have the same value at both
stations. !
-n nnn specifies the number of blocks that are exchanged in the test
Higher numbers will give more accurate speed results but will
make the test take longer.
IMPORTANT: this parameter must have the same value at both
stations. !
-s nnn specifies the block size. In most networks blocks > 512 will
be split up by NETBIOS to fit into network packets.
IMPORTANT: this parameter must have the same value at both
stations. !
notes:
The -i -w and -v options will adversely affect the measured speeds.
The -b -n and -s options MUST have the same value at both stations.
examples:
command string action
------------------------- ----------------------------------------------
NBTEST starts NBTEST in default mode
NBTEST -b 5 -i uses 5 NCBS simultaneously, displays the
number of kilobytes transferred in real time
NBTEST -n 10000 -s 12 sends 10000 blocks of 12 bytes
4. Suggestions:
_______________________________________________________________________________
4.1. Measuring speed:
Speed will be maximal when large blocks (-s 10000) are used and data transfer
is in background (-b 4).
It is interesting to test the speed with small blocks (-s 50) to check the
overhead of the protocols used.
The value of the background parameter will also influence speed; setting it
on at one side and off at the other may produce slow speeds.
4.2. no-wait option:
It has been noticed that many NETBIOS implementations have difficulties
handling the no-wait option. To assure good performance NETBIOS
should continue to work with large values of the b-parameter (up to 10).
Any error encountered during data transfer will cause problems later on.
5. Program Assembly:
_______________________________________________________________________________
NBTEST is provided as .EXE file. To allow for experiments the full source
code is included. It consists of 2 files:
NBTEST.C the main program
NB.H include file containing definitions for NBTEST.C
To make NBTEST.EXE you need Microsoft C V5.0 or above and Microsoft LINK.
The following commands must be entered:
cl nbtest.c
---oooOOOooo---