cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7368
Views
0
Helpful
10
Replies

Packet Generator for DSCP marking

Gerard Gacusan
Level 1
Level 1

Anyone uses packet generator either windows or linux? Trying to determine dscp markings end-to-end ...

I know extended ping works directly from the router but i'm wanting to generate from the client side.

thanks in advance

Gerard

3 Accepted Solutions

Accepted Solutions

andrew.prince
Level 10
Level 10

I use "PingPlotter" you can set the TOS in the ICMP header.

HTH>

View solution in original post

Hi,

All Ping implementations  should be capable of setting ToS and so no need  for anything special.

Regards.

Alain.

Don't forget to rate helpful posts.

View solution in original post

Hi gerard,

Alain is right. If you are looking at a windows machine then you should be able to see the various options

M:\>ping

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
            [-r count] [-s count] [[-j host-list] | [-k host-list]]
            [-w timeout] target_name

Options:

    -t             Ping the specified host until stopped.

                   To see statistics and continue - type Control-Break;

                   To stop - type Control-C.

    -a             Resolve addresses to hostnames.

    -n count       Number of echo requests to send.

    -l size        Send buffer size.

    -f             Set Don't Fragment flag in packet.

    -i TTL         Time To Live.

    -v TOS         Type Of Service.

    -r count       Record route for count hops.

    -s count       Timestamp for count hops.

    -j host-list   Loose source route along host-list.

    -k host-list   Strict source route along host-list.

    -w timeout     Timeout in milliseconds to wait for each reply.

HTH,

regards

Please rafe if helpful

View solution in original post

10 Replies 10

andrew.prince
Level 10
Level 10

I use "PingPlotter" you can set the TOS in the ICMP header.

HTH>

Hi,

All Ping implementations  should be capable of setting ToS and so no need  for anything special.

Regards.

Alain.

Don't forget to rate helpful posts.

Hi gerard,

Alain is right. If you are looking at a windows machine then you should be able to see the various options

M:\>ping

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
            [-r count] [-s count] [[-j host-list] | [-k host-list]]
            [-w timeout] target_name

Options:

    -t             Ping the specified host until stopped.

                   To see statistics and continue - type Control-Break;

                   To stop - type Control-C.

    -a             Resolve addresses to hostnames.

    -n count       Number of echo requests to send.

    -l size        Send buffer size.

    -f             Set Don't Fragment flag in packet.

    -i TTL         Time To Live.

    -v TOS         Type Of Service.

    -r count       Record route for count hops.

    -s count       Timestamp for count hops.

    -j host-list   Loose source route along host-list.

    -k host-list   Strict source route along host-list.

    -w timeout     Timeout in milliseconds to wait for each reply.

HTH,

regards

Please rafe if helpful

Great Help guys ... yeah i see it. Thanks all !

By default ALL windows OS have that option disabled.  You need to change the registry to enable TOS options to ICMP.

You need to change the "DisableUserTOSSetting" to 0

Hi Andrew,

I've just tried with a Windows xp sp2 with registry untouched and it worked.

Regards.

Alain.

Don't forget to rate helpful posts.

Are you guys using this setting from a Vista OS? Is it a Decimal value 1-255? Also, by default the registry is already set to 0. So, I guess nothing to worry about the reg DWORD value.

Examples:

c:\ping -v 46 x.x.x.x (EF Traffic)

c:\ping -v 10 x.x.x.x (AF11 Traffic)

Wondering what this message meant for - Type Of Service (IPv4-only. This setting has been deprecated
                   and has no effect on the type of service field in the IP Header).

C:\>ping

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
            [-r count] [-s count] [[-j host-list] | [-k host-list]]
            [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name

-v TOS        Type Of Service (IPv4-only. This setting has been deprecated
                  and has no effect on the type of service field in the IP Head

andrew.prince
Level 10
Level 10

You need to use the TOS value which is required, DSCP * 4 = TOS

So in your examples - they need to change

c:\ping -v 184 x.x.x.x (EF Traffic)

c:\ping -v 40 x.x.x.x (AF11 Traffic)

HTH>

oh ok, let me try this one... i think this one work.Yeah i was wondering why i can't see those markings

Hi,

You have to multiply your  DSCP values by 4 because ToS is coded on 8 bits and DSCP on 6 bits so

EF is DSCP 46(decimal) so in binary with 6 bits 101110 and  it gives 10111000 (8+16+32+128 = 184) for ToS byte.

Regards.

Alain.

Don't forget to rate helpful posts.