Using the Windows Ping Commands -v

Posted on 2006-05-31
Last Modified: 2012-06-21
Hi All

I am trying to use Windows Ping Command to TAG ICMP with the Binary value of 101 in the Precedance 3 bit feild . This is using the -v TOS command suffix on ping.

The command I understand is ping -v 160

This result in the following packet

Interface Rx: v=LAN1 LAN
            Ethernet Header info - dst=00e007009f53 src=00123f12dd32 len=60
             IP Header info - Dst= Src= vl=0x45 tos=0x00 len=42 id=0xb77d
                                ttl=128 flg=0x00 off=0x0000 pcol=17(UDP) sum=0xf21b
              UDP Header info -  DstPort=50794(IPO Monitor) SrcPort=4099 Len=22 Sum=0x9824

TOS feild is still marked as tos=0x00 or 000

How does the -v command work exaclty TECH NET is no help and only provides the follwoing

-v TOS : Specifies the value of the Type of Service (TOS) field in the IP header for Echo Request messages sent. The default is 0. TOS is specified as a decimal value from 0 to 255. ?????

I have also tried the following

ping -v 101
ping -v 5

HELP !!!!!!
Question by:IPLCommunication
    LVL 12

    Expert Comment

    by:Bob Stone
    I do know that -V = Verbose Output. Supposedly it lists individual ICMP packets, as well as Echo Responses, but I never have seen alot of difference in the output.
    LVL 40

    Expert Comment

    Whoa..  what a question!  never delved this deeply into PING before..  may I ask what your intentions are here?  Very curious...

    Author Comment

    To perform VoIp testing on a router under Load. Basically to tag traffic so the Queuing Mech on the router Routes the ICMP tagged with Prec 5 with higher rate. Basically a good test to see how the queue on the router is performing from a Delay point of view only

    Anyways I have found the fix see below

    After years of trying to figure this one out finally got it.

    Enable QoS Packet Scheduler
    Enter DWORD DisableUserTOSSetting in reg
    Test with Ping XXX.XXX.XXX.XXX -v 46

    See output from Sniffer Below

       80298mS Interface Rx: v=LAN1 LAN
                Ethernet Header info - dst=00e007009f53 src=00123f12dd32 len=74
                 IP Header info - Dst= Src= vl=0x45 tos=0x2e len=60 id=0x0097
                                    ttl=128 flg=0x00 off=0x0000 pcol=1(ICMP) sum=0xa8d2
                  ICMP Echo Request. [csum=0x415c id=0x0200 seqnum=0x0a00]

    TOS is marked with tos=0x2e (HEX) = 46 Dec = 010110 Binary  !!!!!!!!!!!!!!!!!!!!!!

    See Microsoft which is not indexed in Google :(

    [copyrighted text removed by Netminder; see link posted below]

    For more information about traffic prioritization, click the following article numbers to view the articles in the Microsoft Knowledge Base:
    222102 ( Traffic prioritization using IP precedence
    222020 ( Description of 802.1P signaling
    233039 ( QoS queuing techniques
    For more information about the DisableUserTOSSetting registry entry in Windows Server 2003, visit the following Microsoft Web site:
    LVL 40

    Expert Comment

    Yes, please post that link!  shame to waste that post!

    Accepted Solution

    LVL 40

    Expert Comment

    Good call.. and no objections..

    LVL 40

    Expert Comment

    BTW:  thanks for providing that answer IPL..  Good find, and interesting..

    Author Comment

    Point Noted, sorry I am new to the workings of Experts Exchange.

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
    FIPS stands for the Federal Information Processing Standardisation and FIPS 140-2 is a collection of standards that are generically associated with hardware and software cryptography. In most cases, people can refer to this as the method of encrypti…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now