Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

IF Start / Stop

Anchor10129091012909The purpose of the Interface Start / Stop test is to validate that the driver can successfully stop a network interface and restart it again. Testing the driver’s driver’s ability to stop the network interface is often skipped, but it is an essential function. Stopping and starting the network interface of your device is one of the ways to detect buffer leaks since stopping the device will deallocate all the network buffers and descriptors. If restarting the network interface fails, it might indicate that you have a buffer leak situation. Anchor10037521003752

IF Start / Stop Test using NDIT

...

1003753To validate the start/stop function, the NDIT verifies tthat the network device should: Anchor10037541003754

...

Image Added

Figure 8-5 Interface Start / Stop test tab

...

Anchor10037591003759

There is a single option for the Interface Start / Stop test:anchor

10037601003760Delayanchor10037611003761

The time between the Interface Stops and the Interface Starts (in seconds).

...

IF #anchor10037631003763

The Interface number to Start / Stop.

...

...

Analyzing the results

Anchor10037651003765If the Test Result column does not indicate a PASS, it will show a FAIL followed by three echo request results. The first result should be 1 and represents a 100% echo reply success rate before the interface is stopped. The second result should be 0 and represents a 0% echo reply success rate while the interface is stopped. The final result should be 1 and represents a 100% echo reply success rate after the interface is restarted. Anchor10037661003766

In the example shown in Figure 8-5, the test result that shows "FAIL – 1 1 1" indicates that the Interface continued replying to the test station host after it has sent the ifss stop command. Since all commands sent by the NDIT are acknowledged by the target, it is unlikely that the command wasn't received and processed by the target. Furthermore, the 100% success rate for the ICMP echo shows that the target is responsive. Therefore the error should be in the implementation of the NetDev_Stop() function.