Testing Network Drivers with the NDIS Test Tool

智能车竞赛环岛处理全解析:从图像识别到状态机控制 在嵌入式系统与自动控制领域,状态机是管理复杂系统行为、实现清晰逻辑流的核心设计模式。其原理在于定义一组有限的状态,以及触发状态迁移的事件和条件,从而将连续、模糊的过程分解为离散、确定的阶段。这种技术在机器人导航、工业自动化等场景中价值显著,尤其适用于需要应对多种场景、做出序列化决策的场合。在智能车竞赛中,赛道元素识别与路径跟踪是典型应用,其中环岛作为连续闭环的复杂场景,对系统的鲁棒性和决策连贯性提出了更高要求。通过图像处理提取赛道边线、宽度和曲率等特征,结合陀螺仪等传感器数据,可以构建一个专门处理环岛的状态 阅读详情

Copyright © 2003 by Stephan Wolf. All rights reserved

Any device driver that you write has the potential risk of crashing the system. Thus, you should intensively test your driver before shipping it.

Network drivers only cause about 1% of all Windows system crashes for good reason: The official Microsoft NDISTest Tool is the acid test for all "lower edge" NDIS network drivers such as NDIS miniport and NDIS intermediate drivers.

If you write an NDIS driver, you should use NDISTest at any stage during your driver development to verify the driver's integrity and stability. Not only will NDISTest find bugs in your driver that cause system crashes, but it will also help you to write a fully NDIS conformant driver with respect to all of the following:

  • Replies to get and set requests for mandatory as well as optional OIDs
  • Handling of unexpected NDIS failure replies
  • Indication of cable connect and disconnect events
  • Driver halt/restart and unload/reload
  • Adapter reset request
  • Send and receive path and send packet cancellation
  • Receive filter including multicast frames, promiscuous mode etc.
  • Task Offload such as TCP/IP checksum offload and IPSec offload
  • ...and more

Which NDIS drivers can I test with NDISTest?

NDISTest can test all of the following NDIS drivers:

  • NDIS miniport drivers for the following physical network adapter types:
    •  

    • Ethernet
    • Token Ring
    • FDDI
    • ATM
    • ISDN
    • Modem
    • IrDA
    • WLAN
    • WWAN (some WWAN devices have known troubles with the send/recv and load/unload tests)
    • SAN (the SAN tests require extra scripts that are shipped in the HCT but are not part of the standalone NDISTest download)

       

  • NDIS intermediate (IM) drivers that implement virtual network adapters

What equipment do I need to test my NDIS driver?

Although you can run NDISTest with just a single network card in one machine (see "one card tests" below), I recommend using two computers, four network cards, and two hubs to run NDISTest, as shown in Figure One.

Full NDISTest Setup
Figure One
Recommended Full NDISTest Hardware Setup

It's a good idea to use non-intelligent hubs or repeaters instead of intelligent switches for the test network. Some tests may fail or show warnings when switches are used because they filter the network traffic. If your network adapters so permit, you can connect them back-to-back directly (using a crossover cable) and omit the switch or hub.

An easy way to setup NDISTest with only one machine and two network cards is shown in Figure Two. If you have only one network card available, you can even omit the second network adapter and still run NDISTest.

Simple NDISTest Setup
Figure Two
Simple NDISTest Hardware Setup

NDISTest offers you the following test categories, which you can combine as desired. Each test category requires some or all of the hardware I just described.

1c - one card tests
Install the " test device" network adapter that your driver requires in the client machine, and you are ready to run the one card (1c) tests. I colored the test device blue in Figures One and Two. This is the minimal test setup.
  2c - two card tests
For the two card (2c) tests, install an additional " support device" network adapter in the client machine. Connect it to the test device on a private " test network". This support device is colored orange in Figure Two.
  2m - two machine tests
Add a server machine for the two machine (2m) tests. Equip the server with a "support device" (orange) network adapter and connect it to the same private test network as the test device of the client as shown in Figure One. The support device in the server takes over the role of the support device in the client, so the support device is no longer required in the client machine.

For the communication channel between the server and the client add a "message device" (green) network adapter to both the client and the server machine. The two message devices can be anything that allows for TCP/IP to run on top of them. For instance, if your test and support devices are Wireless LAN adapters, the message devices can be standard Ethernet adapters.

Connect the two message devices to a "message network" that is separate from the private test network. Note that the message network does not need to be a private network and you may also connect other machines to it. If the message devices are the adapter cards that you ordinarily use to connect the client and server machines to your office LAN, and if you're using TCP/IP as the network protocol, you've already done this step.

Alternatively, you may also connect the two message devices to the test network, but I recommend that you use independent test and message networks.

In order to achieve an optimal test coverage, you should run NDISTest on two machines with all of the available 1c, 2c, and 2m tests enabled. If available, you should use a multi-processor machine as the client.

Where Do I get the NDIS Test Tool?

NDISTest is part of the Microsoft Hardware Compatibility Test (HCT). But it is also available as a stand-alone tool coming in a self-extracting archive file, which you can download from the Microsoft Windows Hardware & Driver Central (WHDC) at the NDIS Test Tool page

  • Note: The HCT is required to run the official WHQL tests, which qualify a device for the "Designed for Windows" logo. You can download the complete HCT in the WHQL Network Testing section (several hundred MB!). If you have MSDN Universal Subscription, then the HCT is included in your distribution CDs. After installing the HCT you will find NDISTest in "<HCT root directory>/testbin/ndistest" .

Can I test on Windows 98 or Windows ME?

The current version of NDISTest (at the time of this writing) runs on Windows 2000, Windows XP, and Windows 2003. It does not run on Windows 98 or Windows ME. An older version of NDISTest does run on these older systems, namely version 3.91, and it is available from Microsoft WHQL (Windows Hardware Quality Labs) in their Network Testing section as file "ndt391.exe".

Note that you will find the term "trusted card" being used in earlier NDISTest versions, which is similar to what is now known as a "support device". However, with older NDISTest versions you need one trusted card in both the client and the server whereas newer NDISTest versions require only one support device in either the client or the server.

How do I install the NDIS Test Tool?

Installation of NDISTest is a fairly easy task: Simply run the downloaded self-extracting archive file and unzip the contained NDISTest files to a directory of your choice. Install NDISTest once on the client machine and once on the server machine.

  • Note: Once you extract the archived files, you can use the batch file "ndsetup.bat" to create further installation copies of NDISTest. For instance, to create the new directory "n:/ndistest" and copy a new installation of NDISTest there, open a command prompt in the current installation directory of NDISTest and enter the following command:

      ndsetup n:/ndistest

What else do I need?

I recommend connecting a debugger to your client machine for several reasons:

  • NDISTest prints a lot of messages to the debugger console. They will help you better understand any failed or warned tests.
  • Your driver should also print messages to the debugger when it detects any anomalies.
  • When NDISTest detects some critical situation it may hit a breakpoint, which will freeze the machine until you take appropriate actions in the debugger.
  • Any bugs in your driver can potentially crash the system. NDISTest usually hits those bugs, so it is a good idea to have a debugger ready that you can use to examine the bugcheck.

In very rare cases NDISTest may also hit a breakpoint in the server. So you may need to also connect a debugger to the server machine then.

The Microsoft WinDbg debugger is available for download in the Microsoft WHDC section Microsoft Debugging Tools. If you have an NDISTest server machine you can run WinDbg on the server machine and connect it to the client machine.

During installation of NDISTest, all the debug symbols for NDISTest are copied to the directory "<cpu>/symbols" under the directory where you installed NDISTest. You should add this directory to your debugger's symbol path.

If you are unable to connect a debugger to your client or server machine, you can alternatively use a tool like SysInternals' freeware tool DebugView, which you can download from their utilities section. Actually you can use any tool or debugger (e.g. SoftICE) that will display kernel debug messages.

Another useful tool is a network sniffer that allows you to watch all the traffic on the test network. The sniffer tool should not use any of the test or support devices but should use an extra network adapter also connected to the test network. You should prefer to run the sniffer on a separate third machine.

How do I configure the NDIS Test Tool?

Before you configure NDISTest, make sure to enable TCP/IP on both message devices and configure them to use the same IP subnet address. If you have DHCP enabled on the message devices, you should be ok. Check the IP addresses with the IPCONFIG command in a command prompt window if in doubt.

NDISTest will present you only those physical and virtual network adapters that are actually still available for the test, message, and support device entries. It is important to note that NDISTest will no longer show any entries that are associated with the same adapter once you select a listed adapter to be a test, message, or support device. This makes sense as you for instance cannot test an intermediate driver with a support device that is the physical adapter to which the IM is bound.

You need administrator privileges on the client and server machines in order to run NDISTest.

Start the server first

If you have a server machine, start NDISTest on the server first. Make sure you have administrator privileges on the server.

  1. Run the "ndtest.bat" file from the directory where you installed NDISTest on the server.
  2. Select the TESTS tab.
  3. On the right, select the SERVER radio button.
  4. In the MESSAGE combo box, select the message device from the list of adapters. Notice that the IP address is listed for each adapter.
    Note: The MESSAGE combo box will only show adapters that have TCP/IP bound to it.
  5. Select the support device in the SUPPORT DEVICES list box.

    NDISTest Server
    Figure Two
    Test settings for server machine

  6. Hit the START button.

The server is now fully configured and waiting to participate in any tests that the client will run.

Now start the client

Make sure you have administrator privileges on the client.

  1. Run the "ndtest.bat" file from the directory where you installed NDISTest on the client.
  2. Select the TESTS tab.
  3. On the right, select the CLIENT radio button.
  4. In the TEST combo box, select your test device from the list of adapters. The test device can be the NDIS miniport or intermediate driver of any physical or virtual adapter.
    • Note: If you are testing an NDIS intermediate driver, be sure to use an underlying network card that will pass NDISTest on its own. Run the tests that you intend to make on your NDIS IM driver on the "bare card" before you test your IM driver.

  5. If you have a server machine, select the message device from the list of adapters in the MESSAGE combo box. Notice that the IP address is listed for each adapter. The support device(s) of the server machine will now appear in the SUPPORT DEVICES list box.
    Note: The MESSAGE combo box will only show adapters that have TCP/IP bound to it.
  6. Select the support device in the SUPPORT DEVICES list box. If you have a server machine, make sure to select the support device of the server, not the client.
  7. Select the MANUAL TESTS radio button.
  8. You can select as many tests as you would like to run or simply hit the SELECT ALL button. Which tests can be selected depends on whether a support device is available:
    • One card (1c) tests are always available.
    • Two card (2c) tests can be selected as soon as a support device is available on the local client or on the remote server machine.
    • Two machine (2m) tests are only available when the support device is on the server machine.

    NDISTest will execute tests in the order they appear in the list.
    Note: You can change the order of the tests by selecting a test script, holding down the <Ctrl> key, and moving the test script with the <Up> and <Down> keys.

    NDISTest Server
    Figure Three
    Test settings for client machine

  9. Tests will begin as soon as you hit the START button. You can watch the status of the individual tests in the test progress window.

    Note: When you start NDISTest for the first time on the test device, a message box might appear saying that you will have to restart the machine in order to enable the Driver Verifier on the test device. NDISTest enables Driver Verifier by default on the test device and you should leave it enabled to achieve an optimal test coverage.

How long a test run takes depends on the number of tests selected, the speed of the machine(s) and the speed of the network. This can be anything from less than a minute to several hours.

Where can I see a summary of the test results?

Here is how you can get a list of the results of all individual tests:

  1. On the main menu, select "Results" - "Test Logs...".
  2. In the combo box on the top, select the test run for which you want to see the test results.
    Note: NDISTest creates a new test result entry for each test run and saves the results of the individual tests there.
  3. The list of the selected test run's test results appear in the list box along with a short summary for each individual test.
  4. Select the file "ndistest.htm" for a summary of the selected test run's test results or click on the file name of any of the individual test results to see its contents.

NDISTest will find lots of bugs and anomalies in your driver. It's really nit-picking and tests almost everything that has been specified in NDIS.

Bottom line

The quality of your NDIS miniport or intermediate driver will substantially increase when you run NDISTest against it. Do not wait to test your driver until you have added more features to it but test it as soon as you can install it for the first time. NDISTest will ensure your driver conforms to NDIS and will reveal any bugs at a very early stage.

Although available since the early 1990s, NDISTest has not become very popular amongst NDIS driver developers. Maybe because most people think NDISTest is only available in conjunction with the HCT. However, NDISTest is actually available separately from the HCT and is a great tool that will make your life easier.

Further reading

NDISTest comes with a help file that has many details about how the program works internally. You will find information about the packet structure that NDISTest uses for the packets it sends out to the test network, a list of command line options, and much more. So it's really worth reading it.

About the author:

Stephan Wolf has worked as an independent system software developer since 1988. He lives and works mainly in Germany, but sometimes abroad. His focus is on network driver development (not only) for all Windows variants (including CE). You can contact him at stewo68@hotmail.com (hotmail sometimes "recognizes" serious email as spam, so try again if you get no answer).

 

BGE-Reranker-v2-M3介绍 重排序模型介绍 阅读详情

相关推荐

(超详细)互补格雷码+相移码求解包裹相位(Python实现)

记录实现“互补格雷码+相移码”求解包裹相位的编码过程。也可以叫它“5+4”法,5代表五幅格雷码图像,4代表四步相移法的四张正弦条纹图。

暴雨梨花博客 3万+

(转载)Testing Network Drivers with the NDIS Test Tool

(转载)Testing Network Drivers with the NDIS Test Tool July 15th, 2003 Stephan Wolf Copyright © 2003 by Stephan Wolf. All rights reservedAny device driver that you write has the potential risk of c

无限天空 2216

S7-1200PLC 与温控仪表Modbus RTU通信

硬件:cpu 1214C 目的:通过Modbus RTU协议,实现对温控仪表的控制 软件:Portal V14SP1

weixin_43922025的博客 3万+

5个好用的网络故障排除工具分享_ip tools network utilities

为了帮助大家更好的学习网络安全,小编给大家准备了一份网络安全入门/进阶学习资料,里面的内容都是适合零基础小白的笔记和资料,不懂编程也能听懂、看懂,所有资料共282G,朋友们如果有需要全套网络安全入门+进阶学习资源包,可以点击免费领取(如遇扫码问题,可以在评论区留言领取哦)~😝有需要的小伙伴,可以点击下方链接免费领取或者V扫描下方二维码免费领取🆓👉CSDN大礼包🎁:全网最全《网络安全入门&进阶学习资源包》免费分享**(安全链接,放心点击)**👈。

2401_83974117的博客 3756

Win11桌面图标小箭头去除与恢复:解决任务栏关联错误的完整指南

本文提供了一份完整的Win11桌面图标小箭头去除与恢复指南,重点解决了因错误方法导致的任务栏关联错误问题。通过分析注册表中IsShortcut键值与Shell Icons的原理,推荐安全的“替换图标资源法”,并提供了可一键执行的批处理脚本,确保在美化桌面的同时不影响系统功能与默认应用设置。

weixin_29288313的博客 967

cesium加载天地图、OSM、谷歌底图

以上示例是加载矢量底图,若要加载影像或者其他只需要更换相应的url,在WebMapTileServiceImageryProvider中还要更改layer参数。url中’‘vec_w’,一些其他风格,基于CRAT渲染,两种方法效果差别不大。有两种方法加载天地图分别是。对应投影样式,具体可看。还要谷歌的一些卫星底图。

qq_44897914的博客 3006

42个网工高效率工具,我只告诉你(一)

而在 tcpdump 的世界里,过滤器的实现,都是通过一个又一个的参数组合起来,一个参数不够精准,那就再加一个,直到我们能过滤掉无用的数据包,只留下我们感兴趣的数据包。如果你输入的URL不存在本地记录,则DNS查找实用程序将引用你的本地网络DNS服务器或最近的基于互联网的服务器,你可以输入IP地址或URL作为此实用程序的搜索词。大家都知道,网络上的流量、数据包,非常的多,因此要想抓到我们所需要的数据包,就需要我们定义一个精准的过滤器,把这些目标数据包,从巨大的数据包网络中抓取出来。

1189

实现电脑同时上内网和外网(或通过外网访问到该电脑通过该电脑访问内网)

一、需求描述 目前使用的公司网络只能够上内网,但是又有上外网查资料的需求: ①想要实现电脑既能上内网的同时也可以上外网; ②想要使用其他外网电脑使用外网连接到该电脑,通过该电脑访问内部的网络内容。 二、准备内容 电脑必须具备两个网卡,即:可以同时连接内网和外网(比如我的笔记本就可以:使用网线连接笔记本网口与内网通讯,使用WIFI连接手机热点访问外部网络); 注意:如果只有一个网口,可以另外购买USB的无线网卡来实现上网卡。 三、实现电脑同时上内网和外网的操作步骤 3.1、网络拓扑图 ..

提供C#相关开发 、云计算、运维测试、网络安全相关技术分享与服务,有意向可联系。 2万+

网络测试工具nsit-包长变量、异常流量、大会话测试、长稳测试

网络测试工具nsit-包长变量、异常流量、大会话测试、长稳测试,提升质量和测试效率。 目前支持的功能: 1、不同包长流量遍历,验证基本通信能力,支持ICMP、TCP、UDP协议 2、会话测试,支持会话数量的压测和会话cps性能测试,支持TCP、UDP协议 3、针对常用网络协议头部、支持构造异常流量测试,支持Ethernet头、IP头、ICMP头、TCP头、UDP头、VXLAN头 4、组合流量模型测试,可做长稳测试,保持存量+毫秒级不断新建会话,支持ICMP、TCP、UDP协议

changjiangshui1993的博客 5092

【服务器电源架构与关键技术发展趋势】深度解析架构、方案、玩家与未来趋势

技术维度:台达 / 光宝在高功率密度(97%+ 效率)和垂直整合上领先,大陆厂商(麦格米特 / 欧陆通)在成本控制和快速响应上更优,国际厂商(英飞凌)聚焦核心器件突破。 客户维度:台达绑定英伟达核心供应链,麦格米特 / 欧陆通兼顾国内外客户,光宝 / 中恒电气侧重云端与互联网厂商。 趋势适配:所有厂商均加速布局 800V 高压架构、液冷技术和高功率 Power Shelf,以应对 AI 服务器单柜功率从 10kW→200kW 的升级需求。

昔时扬尘处 735

《C#零基础入门之百识百例》(七)算数运算符 -- 圆的面积

运算符是一种告诉编译器执行特定的数学或逻辑操作的符号。C# 有丰富的内置运算符,本文带你学习C# 中算数运算符。

陈言必行 -- Unity游戏开发领域优质博主 3620

Network Drivers

Windows-based operating systems support several types of kernel-mode network drivers. The network drivers documentation describes how to write these drivers. This topic briefly describes the supported

1536

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

尝试重新启动程序或计算机,安装程序无法正常启动,请重新启动PC并重新运行设置 | MOS86...

点击此处修复Windows错误并提高系统性能如果您收到安装程序无法正常启动,请尝试使用Microsoft的Media Creation工具尝试升级到Windows 10时重新启动计算机并重新启动Windows 10中的错误,或Windows ISO映像文件/可引导的USB闪存驱动器,那么这篇文章会让你感兴趣。这个问题的原因主要是归因于一些损坏的升级文件,由于Windows 10的下载,升级或安装失...

weixin_39574708的博客 1622

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

I225 2.5G ubuntu 20.04 驱动安装 (I225 2.5G network card driver installation for ubuntu 20.04)

I225 2.5G network card driver installation for ubuntu 20.04

agricultureman的专栏 1万+

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

CUDA和NVIDIA-Driver安装问题

环境: Ubuntu 18.04 CUDA 10.0 1. CUDA driver version is insufficient for CUDA runtime version CUDA安装好之后运行sample出错: ./deviceQuery Starting... CUDA Device Query (Runtime API) version (CUDART...

AI小学生 2万+

ndis官方linux驱动下载,ndiswrapper

软件简介NdisWrapper实际上是一个开源的驱动(从技术上讲,是内核的一个模块),它能够让Linux使用标准的WindowsXP下的无线网络驱动.你可以认为NdisWrapper是Linux内核和Windows驱动之间的一个翻译层.Windows驱动可以通过NdisWrapper的配置工具进行安装.有下面两种情况之一时,使用NdisWrapper:你的无线网络硬件没有被Ubuntu识别出来.也...

weixin_39634579的博客 767

npm install 错误 安装 chromedriver 失败的解决办法

问题: 50417verbosenodev10.16.3 50418verbosenpmv6.9.0 50419errorcodeELIFECYCLE 50420errorerrno1 50421errorchromedriver@2.27.2install:`nodeinstall.js` 50421errorExitstatus1 50422errorFailedatthechromedriver@2.27.2installscri...

白凤银刺的博客 1743

[第0章]欢迎使用CSDN-markdown编辑器(新)

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦: Markdown和扩展Markdown简洁的语法 代码块高亮 图片链接和图片上传 LaTex数学公式 UML序列图和流程图 离线写博客 导入导出Markdown文件 丰富的快捷键 快捷键 加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl

Archon 1683

解决pip install networkx失败

解决pip install networkx失败 打开终端, 输入cmd, 输入pip install -i https://pypi.tuna.tsinghua.edu.cn/simple networkx 等待直至完成

qq_36659185的博客 6299

docker——网络及项目部署

docker网络 理解docker0 将之前学习的镜像全部删除,查看一下ip,发现基础的网卡有三个,分别如下 [root@izbp1bc82otjd8cslsu9zsz ~]# ip attr Object "attr" is unknown, try "ip help". [root@izbp1bc82otjd8cslsu9zsz ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN ql

Yellow_Star的博客 1190

Docker网络解决方案 - Flannel部署记录

Docker跨主机容器间网络通信实现的工具有Pipework、Flannel、Weave、Open vSwitch(虚拟交换机)、Calico, 其中Pipework、Weave、Flannel,三者的区别是: Weave的思路 在每个宿主机上布置一个特殊的route的容器,不同宿主机的route容器连接起来。 route拦截所有普通容器的ip请求,并通过udp包发送到其他宿主机上的普通容器。这样在跨机的多个容器端看到的就是同一个扁平网络。 weave解决了网络问题,不过部署依然是单机的。 Flannel的

韩帅平的博客 807

安装Winsip遇到的问题:network : network driver appears to not be serving this directory?

环境:         winsip版本:3.54.164.0         主机系统:i5 + win7(64位)旗舰版 在安装winsip的过程以及安装完成打开时遇到的问题: 问题1、Winsip: network : network driver appears to not be serving this directory? 原因分析:这是很明显是旧版本的wi

宽简厚重—博约 5473
上一篇: Remote Kernel Debugging with WinDbg
下一篇: 使用 Microsoft Symbol Server 获取调试符号文件
iiprogram
博客等级 码龄25年 1068粉丝 1515原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址