02-21-2011 01:31 PM - edited 03-04-2019 11:30 AM
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
Solved! Go to Solution.
02-22-2011 06:02 AM
02-22-2011 07:15 AM
Hi,
All Ping implementations should be capable of setting ToS and so no need for anything special.
Regards.
Alain.
02-22-2011 02:38 PM
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
02-22-2011 06:02 AM
I use "PingPlotter" you can set the TOS in the ICMP header.
HTH>
02-22-2011 07:15 AM
Hi,
All Ping implementations should be capable of setting ToS and so no need for anything special.
Regards.
Alain.
02-22-2011 02:38 PM
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
02-22-2011 08:28 PM
Great Help guys ... yeah i see it. Thanks all !
02-23-2011 01:35 AM
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
02-23-2011 01:53 AM
Hi Andrew,
I've just tried with a Windows xp sp2 with registry untouched and it worked.
Regards.
Alain.
02-28-2011 07:38 AM
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
02-28-2011 07:44 AM
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>
02-28-2011 07:47 AM
oh ok, let me try this one... i think this one work.Yeah i was wondering why i can't see those markings
02-28-2011 07:58 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide