Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
17.  Compiling, Loading, Packaging, and Testing Drivers Testing Drivers Testing Specific Types of Drivers Asynchronous Communication Drivers  Previous   Contents   Next 
   
 

Network Drivers

Network drivers can be tested using standard network utilities. ftp(1) and rcp(1) are useful because the files can be compared on each end of the network. The driver should be tested under heavy network loading, so that various commands can be run by multiple processes. Heavy network loading means:

  • Traffic to the test machine is heavy.

  • Traffic among all machines on the network is heavy.

Network cables should be unplugged while the tests are executing to ensure that the driver recovers gracefully from the resulting error conditions. Another important test is for the driver to receive multiple packets in rapid succession (back-to-back packets). In this case, a relatively fast host on a lightly loaded network should send multiple packets in quick succession to the test machine. Verify that the receiving driver does not drop the second and subsequent packets.

These types of devices are usually STREAMS-based (see STREAMS Programming Guide).

 
 
 
  Previous   Contents   Next