TDI Query (TDIQ)

Home Up TTCP Utility NDIS Tools TDI Query (TDIQ) MACADDR II

TDI Query (TDIQ) Test Tool
for
Windows

 

What Is TDIQ?

The PCAUSA TDI Query (TDIQ) Test Tool is a platform-independent utility for accessing IP configuration, IP route and IP statistics information.

Initially TDIQ was simply a test utility used in the development of the new PCAUSA TDI Client 2000 Samples for Windows NT and Windows 2000. The original purpose of TDIQ was to expedite development of code for kernel mode extended TDI queries (IOCTL_TCP_QUERY_INFORMATION_EX) on the Windows NT platform.

 

What Is Interesting About TDIQ?

An unintended result of this development is that TDIQ is capable of accessing information similar to that provided by the new IP Helper functions. The information at least partially accessible by the PCAUSA TDIQ includes:

bullet

IP Configuration

bullet

IP Route Information

bullet

IP Statistics

Of significance is:

TDIQ is platform-independent...

TDIQ does not examine the registry, use Winsock 2, use INETMIB1.DLL or use IPHelper functions. It does link to wsock32.dll (Winsock 1.1) primarily for formatting functions like intoa, etc.

Testing has shown that it works correctly (so far...) on:

bullet

Windows 95

bullet

Windows 98

bullet

Windows Me

bullet

Windows NT 4.0

bullet

Windows 2000

bullet

Windows XP

The information accessible by the PCAUSA TDIQ is not as complete as that provided by IP Helper and TDIQ does not currently support changing any IP settings.

Nevertheless, the availability of a single platform-independent API that provides a useful subset of the platform-limited IP Helper is of potential use.

 

TDIQ Usage And Output Format

TDIQ is a Win32 console application. You run it from a Windows 9X MS-DOS Prompt window or a Windows NT Command Prompt window.

The TDIQ output is formatted to be similar to existing Windows NT IP utilities such as IPCONFIG, ROUTE PRINT and the SDK IP Helper sample called IPSTAT.

 

Displaying IP Configuration Information

To command TDIQ to display IP configuration information use the ipconfig command line option:

C:> tdiq ipconfig

The following is a capture of the TDIQ IP configuration output for a PCAUSA Windows 2000 server that has two Ethernet adapters installed. One adapter has two IP addresses:

TDI Query (TDIQ) Test Tool for Windows NT - V2.01.04.12
Copyright (c) 2000-2002 Printing Communications Assoc., Inc (PCAUSA)

IP Configuration
Loopback Adapter:

Description..........: MS TCP Loopback interface
Physical Address.....:
IP Address...........: 127.0.0.1
Subnet Mask..........: 255.0.0.0
Speed................: 10000000 bits/second
MTU (Local Nodes)....: 32768 bytes
Bytes Sent...........: 226940
Bytes Received.......: 226940

Ethernet Adapter:

Description..........: NETGEAR FA310TX Fast Ethernet PCI Adapter
Physical Address.....: 00-A0-CC-63-08-1B
IP Address...........: 192.168.1.64
Subnet Mask..........: 255.255.255.0
Default Gateway......: 192.168.1.1
Speed................: 10000000 bits/second
MTU (Local Nodes)....: 1500 bytes
Bytes Sent...........: 589960909
Bytes Received.......: 2556362483

Ethernet Adapter:

Description..........: NETGEAR FA310TX Fast Ethernet PCI Adapter
Physical Address.....: 00-A0-CC-65-61-7D
IP Address...........: 66.47.97.218
Subnet Mask..........: 255.255.255.248
IP Address...........: 66.47.97.219
Subnet Mask..........: 255.255.255.248
Default Gateway......: 66.47.97.217
Speed................: 10000000 bits/second
MTU (Local Nodes)....: 1500 bytes
Bytes Sent...........: 3938397
Bytes Received.......: 63344217

 

Displaying IP Route Information

To command TDIQ to display IP route information use the iproute command line option:

C:> tdiq iproute

The following is a capture of the TDIQ IP route information output for a PCAUSA Windows 2000 server that has two Ethernet adapters installed:

TDI Query (TDIQ) Test Tool for Windows NT - V2.01.04.12
Copyright (c) 2000-2002 Printing Communications Assoc., Inc (PCAUSA)
==========================================================================
Interface List
0x01 ...........................  MS TCP Loopback interface
0x03 ...00-A0-CC-63-08-1B.......  NETGEAR FA310TX Fast Ethernet PCI Adapter
0x04 ...00-A0-CC-65-61-7D.......  NETGEAR FA310TX Fast Ethernet PCI Adapter
==========================================================================
==========================================================================
Active Routes:
Network Address          Netmask  Gateway Address        Interface  Metric
        0.0.0.0          0.0.0.0      192.168.1.1     192.168.1.64       1
        0.0.0.0          0.0.0.0     66.47.97.217     66.47.97.218       1
   66.47.97.216  255.255.255.248     66.47.97.219     66.47.97.218       1
   66.47.97.218  255.255.255.255        127.0.0.1        127.0.0.1       1
   66.47.97.219  255.255.255.255        127.0.0.1        127.0.0.1       1
 66.255.255.255  255.255.255.255     66.47.97.219     66.47.97.218       1
      127.0.0.0        255.0.0.0        127.0.0.1        127.0.0.1       1
    192.168.1.0    255.255.255.0     192.168.1.64     192.168.1.64       1
   192.168.1.64  255.255.255.255        127.0.0.1        127.0.0.1       1
  192.168.1.255  255.255.255.255     192.168.1.64     192.168.1.64       1
      224.0.0.0        224.0.0.0     192.168.1.64     192.168.1.64       1
      224.0.0.0        224.0.0.0     66.47.97.219     66.47.97.218       1
255.255.255.255  255.255.255.255     192.168.1.64     192.168.1.64       1
Default Gateway:     192.168.1.1
==========================================================================

Displaying IP Statistics Information

To command TDIQ to display IP statistics information use the ipstat command line option:

C:> tdiq ipstat

The following is a capture of the TDIQ IP statistics information for a PCAUSA Windows NT workstation:

TDI Query (TDIQ) Test Tool for Windows NT - V2.01.04.12
Copyright (c) 2000-2002 Printing Communications Assoc., Inc (PCAUSA)
IP Statistics
  dwForwarding       = 2
  dwDefaultTTL       = 128
  dwInReceives       = 2694939
  dwInHdrErrors      = 0
  dwInAddrErrors     = 0
  dwForwDatagrams    = 0
  dwInUnknownProtos  = 0
  dwInDiscards       = 0
  dwInDelivers       = 2694905
  dwOutRequests      = 1985929
  dwRoutingDiscards  = 0
  dwOutDiscards      = 0
  dwOutNoRoutes      = 0
  dwReasmTimeout     = 60
  dwReasmReqds       = 34
  dwReasmOks         = 0
  dwReasmFails       = 31
  dwFragOks          = 0
  dwFragFails        = 0
  dwFragCreates      = 0
  dwNumIf            = 3
  dwNumAddr          = 4
  dwNumRoutes        = 13

This information looks identical to the output of the SDK IP Helper sample called IPSTAT and the statistics fields can be interpreted as described in the MIB_IPSTATS structure description. However, the IP Helper GetIPStatistics() function was not used to acquire this information.

 

Release Notes

June 22, 2002 - Released V2.01.02.14. Fixed bug observed on Windows Me. Code repartition for ease of readability,
February 17, 2000 - Released V2.00.03.09. This is the initial release of TDIQ.

 

Suggestions

Please let us know if you encounter difficulties using this program or if you have suggestions for improvement.

 

Download TDIQ Executables

You'll need to read the Terms And Conditions and enter your Contact Information before beginning your download. Your Contact Information will only be used by PCAUSA, primarily to determine if there is sufficient interest to maintain the software on the PCAUSA website.

Enjoy!

Download TDI Query (TDIQ) Executables icodownl.gif (151 bytes)

If you find bugs in TDIQ or wish to suggest improvements, please let us know.

 

 

TDIQ Source Code

The TDI Query (TDIQ) source code is included with the PCAUSA TDI Client 2000 Samples for Windows NT and Windows 2000.

 

 

PCAUSA Home · Privacy Statement · Products · Ordering · Support · Utilities · Resources
Mailing Lists  · PCAUSA Newsletter · PCAUSA Discussion List
 
Rawether for Windows and WinDis 32 are trademarks of Printing Communications Assoc., Inc. (PCAUSA)
Microsoft, MS, Windows, Windows 95, Windows 98, Windows Millennium, Windows 2000, and Win32 are registered trademarks and Visual C++ and Windows NT are trademarks of the Microsoft Corporation.
Send mail to webmaster@pcausa.com with questions or comments about this web site.
Copyright © 1996-2008 Printing Communications Assoc., Inc. (PCAUSA)
Last modified: December 31, 2007