{"id":30,"date":"2014-08-05T23:27:38","date_gmt":"2014-08-05T15:27:38","guid":{"rendered":"http:\/\/www.theinsecurewire.com\/?p=30"},"modified":"2014-08-05T23:27:38","modified_gmt":"2014-08-05T15:27:38","slug":"testingqoswithextendedping","status":"publish","type":"post","link":"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/","title":{"rendered":"Testing QoS with extended ping"},"content":{"rendered":"<p>Recently i have been working on a Cisco Telepresence Video roll out for my employer. One of the challenges i had was to configure QoS classes with the service provider &#8211; which manages our WAN. I provided to them what dscp (layer 3) tags the traffic would be marked as and how much bandwidth they should dedicate to video for these tags.<\/p>\n<p>For Cisco Telepresence Video i used the following setup:<br \/>\n<strong>DSCP Marking &#8211; AF41 = ToS of 34<\/strong><br \/>\nFor our large bandwidth sites &#8211; 100mbit i reserved 16mbit in a QoS class\u00a0based on a 720p video call @ 60fps equaling 4mbit of bandwidth. So 4 calls at 720p guaranteed over the WAN service.<\/p>\n<p>I needed a way to test WAN configs on the router with purely sending traffic from Site A to Site B with the correct DSCP tag so it would be honored by the router. After a bit if research if found that the Linux networking stack still allows the ToS bit to be set with the inbuilt ping command like so:<\/p>\n<blockquote><p>ping -Q 34 10.1.1.1<\/p><\/blockquote>\n<p>The -Q option sets the Type of Service bit &#8211; which is a decimal value in IPv4 &#8211; if your using IPv6 it has to be a hex value. For this article im working with IPv4. How do you know which decimal value to use? Well they marry up to DSCP and CoS, i use a very useful table by the website tucny:<\/p>\n<p><a href=\"http:\/\/www.tucny.com\/Home\/dscp-tos\" target=\"_blank\" rel=\"noopener\">http:\/\/www.tucny.com\/Home\/dscp-tos<\/a><\/p>\n<p>Really handy resource to work out what CoS, DSCP and ToS values you need for your QoS config. So when testing from a Linux host with the above command and at the same time running a shell session to the Cisco router &#8211; issuing the following command:<\/p>\n<blockquote><p>show policy-map interface gi0\/0 (where gi0\/0 is your inbound wan interface)<\/p><\/blockquote>\n<p>You should see the incremental qos class packet matches\u00a0rise with every<br \/>\nre-iteration of the above command. Also FYI, Windows deprecated the use of the ToS bit in its ping command, so testing qos with extended ping can only be done from non-windows operating systems.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently i have been working on a Cisco Telepresence Video roll out for my employer. One of the challenges i had was to configure QoS&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-quality-of-service"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Testing QoS with extended ping - Insecure Wire<\/title>\n<meta name=\"description\" content=\"testing qos with extended ping\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Testing QoS with extended ping - Insecure Wire\" \/>\n<meta property=\"og:description\" content=\"testing qos with extended ping\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/\" \/>\n<meta property=\"og:site_name\" content=\"Insecure Wire\" \/>\n<meta property=\"article:published_time\" content=\"2014-08-05T15:27:38+00:00\" \/>\n<meta name=\"author\" content=\"nikonau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/insecurewire\" \/>\n<meta name=\"twitter:site\" content=\"@insecurewire\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"nikonau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/\"},\"author\":{\"name\":\"nikonau\",\"@id\":\"https:\/\/www.insecurewi.re\/#\/schema\/person\/8ba08b41fc754b971a948ead6ccb777d\"},\"headline\":\"Testing QoS with extended ping\",\"datePublished\":\"2014-08-05T15:27:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/\"},\"wordCount\":350,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.insecurewi.re\/#organization\"},\"articleSection\":[\"Quality of Service\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/\",\"url\":\"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/\",\"name\":\"Testing QoS with extended ping - Insecure Wire\",\"isPartOf\":{\"@id\":\"https:\/\/www.insecurewi.re\/#website\"},\"datePublished\":\"2014-08-05T15:27:38+00:00\",\"description\":\"testing qos with extended ping\",\"breadcrumb\":{\"@id\":\"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.insecurewi.re\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Testing QoS with extended ping\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.insecurewi.re\/#website\",\"url\":\"https:\/\/www.insecurewi.re\/\",\"name\":\"Insecure Wire\",\"description\":\"A Network Engineer\u2019s Perspective.\",\"publisher\":{\"@id\":\"https:\/\/www.insecurewi.re\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.insecurewi.re\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.insecurewi.re\/#organization\",\"name\":\"Insecure Wire\",\"url\":\"https:\/\/www.insecurewi.re\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.insecurewi.re\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.insecurewi.re\/wp-content\/uploads\/2023\/10\/cloud.png\",\"contentUrl\":\"https:\/\/www.insecurewi.re\/wp-content\/uploads\/2023\/10\/cloud.png\",\"width\":32,\"height\":32,\"caption\":\"Insecure Wire\"},\"image\":{\"@id\":\"https:\/\/www.insecurewi.re\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/insecurewire\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.insecurewi.re\/#\/schema\/person\/8ba08b41fc754b971a948ead6ccb777d\",\"name\":\"nikonau\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.insecurewi.re\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2d1b9d9dc90da4f6d3da31b870f418c6b3553ba9be48d53e8ee3a35b0adb1d35?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2d1b9d9dc90da4f6d3da31b870f418c6b3553ba9be48d53e8ee3a35b0adb1d35?s=96&d=mm&r=g\",\"caption\":\"nikonau\"},\"sameAs\":[\"https:\/\/x.com\/https:\/\/twitter.com\/insecurewire\"],\"url\":\"https:\/\/www.insecurewi.re\/index.php\/author\/nikon\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Testing QoS with extended ping - Insecure Wire","description":"testing qos with extended ping","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/","og_locale":"en_US","og_type":"article","og_title":"Testing QoS with extended ping - Insecure Wire","og_description":"testing qos with extended ping","og_url":"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/","og_site_name":"Insecure Wire","article_published_time":"2014-08-05T15:27:38+00:00","author":"nikonau","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/insecurewire","twitter_site":"@insecurewire","twitter_misc":{"Written by":"nikonau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/#article","isPartOf":{"@id":"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/"},"author":{"name":"nikonau","@id":"https:\/\/www.insecurewi.re\/#\/schema\/person\/8ba08b41fc754b971a948ead6ccb777d"},"headline":"Testing QoS with extended ping","datePublished":"2014-08-05T15:27:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/"},"wordCount":350,"commentCount":0,"publisher":{"@id":"https:\/\/www.insecurewi.re\/#organization"},"articleSection":["Quality of Service"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/","url":"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/","name":"Testing QoS with extended ping - Insecure Wire","isPartOf":{"@id":"https:\/\/www.insecurewi.re\/#website"},"datePublished":"2014-08-05T15:27:38+00:00","description":"testing qos with extended ping","breadcrumb":{"@id":"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.insecurewi.re\/index.php\/2014\/08\/05\/testingqoswithextendedping\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.insecurewi.re\/"},{"@type":"ListItem","position":2,"name":"Testing QoS with extended ping"}]},{"@type":"WebSite","@id":"https:\/\/www.insecurewi.re\/#website","url":"https:\/\/www.insecurewi.re\/","name":"Insecure Wire","description":"A Network Engineer\u2019s Perspective.","publisher":{"@id":"https:\/\/www.insecurewi.re\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.insecurewi.re\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.insecurewi.re\/#organization","name":"Insecure Wire","url":"https:\/\/www.insecurewi.re\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.insecurewi.re\/#\/schema\/logo\/image\/","url":"https:\/\/www.insecurewi.re\/wp-content\/uploads\/2023\/10\/cloud.png","contentUrl":"https:\/\/www.insecurewi.re\/wp-content\/uploads\/2023\/10\/cloud.png","width":32,"height":32,"caption":"Insecure Wire"},"image":{"@id":"https:\/\/www.insecurewi.re\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/insecurewire"]},{"@type":"Person","@id":"https:\/\/www.insecurewi.re\/#\/schema\/person\/8ba08b41fc754b971a948ead6ccb777d","name":"nikonau","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.insecurewi.re\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2d1b9d9dc90da4f6d3da31b870f418c6b3553ba9be48d53e8ee3a35b0adb1d35?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2d1b9d9dc90da4f6d3da31b870f418c6b3553ba9be48d53e8ee3a35b0adb1d35?s=96&d=mm&r=g","caption":"nikonau"},"sameAs":["https:\/\/x.com\/https:\/\/twitter.com\/insecurewire"],"url":"https:\/\/www.insecurewi.re\/index.php\/author\/nikon\/"}]}},"_links":{"self":[{"href":"https:\/\/www.insecurewi.re\/index.php\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.insecurewi.re\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.insecurewi.re\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.insecurewi.re\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.insecurewi.re\/index.php\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":0,"href":"https:\/\/www.insecurewi.re\/index.php\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.insecurewi.re\/index.php\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.insecurewi.re\/index.php\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.insecurewi.re\/index.php\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}