SunVTS 3.0 Test Reference Manual

Chapter 3 SunATM Adapter Test (atmtest)

atmtest checks the functionality of the SunATM-155 and SunATM-622 SBus and PCI bus adapters.

It runs only in loopback (external or internal) mode. The Asynchronous Transfer Mode (ATM) adapter, and ATM device driver must be present. To run the atmtest in external loopback mode, a loopback connector must be attached to the ATM adapter. The internal loopback mode does not require a loopback connector.

atmtest uses DLPI RAW mode to talk to the device driver. It establishes a virtual circuit (VC) to send a message, receive a message, and compare messages. If the message does not match, or the message is out of sequence, it displays an error message.

Using a random number generator, atmtest sends data into a data buffer and then sends each message from a different starting point. This assures that no two consecutive messages are the same.

atmtest can test more than one virtual circuit. The more virtual circuits used increases the stress level of the test. atmtest automatically selects the virtual circuit number which is unique to the test. atmtest is nonscalable as it provides for more than one virtual circuit to be tested for each instance, which is adequate for the purpose of a stress test.

atmtest can only be selected when the Intervention mode is enabled since it requires a loopback connector for external loopback testing. While Intervention mode is enabled, atmtest and nettest are both available as default selections, however, you must deselect nettest when testing the ATM device.


Note -

Do not run nettest while running atmtest.



Note -

Bring the ATM interface down to make sure that the interface is in offline mode before running atmtest.


atmtest Options

Figure 3-1 atmtest Option Menu

Graphic

Table 3-1 atmtest Options

Options 

Description 

Configuration 

The Post Address, Host ID, and Domain Name of the system being tested. 

Total Packets 

The total number of packets sent. The default number of packets sent is 10000. 

Number of VC 

The number of virtual circuits to be set up by one instance. The default number of virtual circuits is 2for each instance. The atmtest uses these two virtual circuits to send out messages simultaneously. The message is received in sending order.

Loopback 

Enables the user to select either the external loopback field or internal loopback field. The default selection is the external loopback field. A loopback connector is only needed for external loopback testing. 

MAX_PKG_LEN 

The maximum packet length to be used by the test to send out the data. The default number is 9140. 

Outstanding_pkts 

Describes the maximum number of outstanding packets. atmtest stops sending messages when the outstanding packet count is more than the number of packets this field specifies.

First_VC_no 

Enables the user to set up the starting virtual circuit number to be used for each atmtest instance. atmtest can automatically avoid virtual circuit numbers that have already been used.

Bandwidth 

Enables the user to select different bandwidths to test. The default number is 14. 

atmtest Test Modes

atmtest can only be run in Functional test mode.

atmtest Command Line Syntax

/opt/SUNWvts/bin/atmtest standard_arguments -o dev=device,tpkts=n,nv=n,ml=n,bw=n,opkts=n,ld,sd,sl,nc,ns,vcf

Table 3-2 atmtest Command Line Syntax

Argument 

Explanation 

dev=device

Specifies the device name to be tested, such as ba0 or sa0.

tpkts=n

Specifies the number of packets to loopback [1.2147483647]. 

nv=num_vc

Specifies the number of simultaneous virtual circuits to be tested. 

ml=max_len

Specifies the maximum length of the random packet. 

bw=bandwidth

Specifies the bandwidth in MBits/s of a virtual circuit. 

opkts=n

Specifies the number of packets for each virtual circuit that can be transmitted without receiving a corresponding packet. 

lb

The internal loopback mode is selected. 

sd

Changes the payload data to static instead of random. 

sl

Changes all packets to their maximum length. 

nc

Instructs the test not to check the receive payload (Improves throughput). 

ns

Instructs the test not to exit on a packet reception failure. 

vcf=n

Specifies the first virtual circuit number used. 


Note -

64-bit tests are located in the sparcv9 subdirectory: /opt/SUNWvts/bin/sparcv9/testname. If the test is not present in this directory, then it may only be available as a 32-bit test. For more information refer to "32-Bit and 64-Bit Tests".


atmtest Error Messages

The atmtest error messages are listed below with explanations or probable causes:

Table 3-3 atmtest Error Messages

 

Error Message 

Probable Cause(s) 

Recommended Action 

6000

putmsg failed, errmsg=data

 

 

6001

getmsg failed, errmsg=data

 

 

6002

wrong vc: exp: number, obs: number

 

 

6003

VC number bogus pkt, seq: exp=number, obs=number; len: exp=number, obs=number

 

 

6004

VC number bad pkt len, EXP: number, OBS: number, seq=number

 

 

6005

VC number memcmp error

 

 

6006

VC number failed to rcv a packet

 

 

6007

Complete Usage: string u

 

 

6008

string: alarm

 

 

6009

string: getmsg

 

 

6010

receive string for string with string error

 

 

6011

DL_OK_ACK was not M_PCPROTO

 

 

6012

short response ctl.len: number

 

 

6013

ctl.len sizeof (dl_ok_ack_t): number

 

 

6014

receive string for string with string error

 

 

6015

DL_BIND_ACK was not M_PCPROTO

 

 

6016

ioctl DLIOCRAW failed, errmsg string

 

 

6017

ioctl DL_IOC_HDR_INFO failed, errmsg string

 

 

6018

len=number hdrmax=number

 

 

6019

ioctl ADDVC failed, errmsg string

 

 

6020

ioctl ALLOCBW failed, errmsg string

 

 

8000

open device failed, errmsg=string

 

 

8001

sa_add_vpci failed, errmsg=string

 

 

8002

sa_allocatebw failed, errmsg=string

 

 

8003

atm_attach failed, errmsg=string