{"id":602,"date":"2011-01-11T17:46:01","date_gmt":"2011-01-11T16:46:01","guid":{"rendered":"https:\/\/thebc.ch\/blog\/?p=602"},"modified":"2013-02-01T12:53:25","modified_gmt":"2013-02-01T11:53:25","slug":"dq-mode-packeteer","status":"publish","type":"post","link":"https:\/\/thebc.ch\/blog\/?p=602","title":{"rendered":"DQ Mode (Packeteer)"},"content":{"rendered":"<div class='toc toc'>\n<h2>Contents<\/h2>\n<ul class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Packeteer_DQ_Mode\">Packeteer DQ Mode<\/a>\n\t\t<ul class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#How_do_I_use_DQ_Mode\">How do I use DQ Mode?<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Example\">Example<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#What_are_the_individual_commands\">What are the individual commands?<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#What_are_some_good_values_to_use_for_latency\">What are some good values to use for latency?<\/a>\n\t\t\t\t<ul class='toc-odd level-3'>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href=\"#Some_common_values:\">Some common values:<\/a>\n\t\t\t\t\t<\/li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href=\"#T1\">T1<\/a>\n\t\t\t\t\t<\/li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href=\"#k\">56k<\/a>\n\t\t\t\t\t<\/li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href=\"#k_1\">64k<\/a>\n\t\t\t\t\t<\/li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href=\"#k_2\">128k<\/a>\n\t\t\t\t\t<\/li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href=\"#k_3\">128k<\/a>\n\t\t\t\t\t<\/li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href=\"#28.8\">28.8<\/a>\n\t\t\t\t\t<\/li>\n\t\t\t\t<\/ul>\n<\/ul>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Links\">Links<\/a>\n\t\t\t<\/li>\n<\/ul>\n<\/ul>\n<\/div>\n<div class='toc-end'>&nbsp;<\/div>\n<span id=\"Packeteer_DQ_Mode\"><h2>Packeteer DQ Mode<\/h2><\/span>\n<p><a id=\"How_do_I_use_DQ_Mode.3F\" name=\"How_do_I_use_DQ_Mode.3F\"><\/a><\/p>\n<span id=\"How_do_I_use_DQ_Mode\"><h3>How do I use DQ Mode?<\/h3><\/span>\n<p>First, you must enable DQ Mode. Do this with the command<\/p>\n<pre>sys set testShapingModes 1<\/pre>\n<p>Then, to enter DQ mode, use the command:<\/p>\n<pre>set shaping dq<\/pre>\n<div><strong>Wichtig<\/strong><\/div>\n<div>\n<p>Packet shaping and measurement do not operate while DQ mode is on.<\/p>\n<\/div>\n<p>To exit DQ mode, use<\/p>\n<pre>set shaping off<\/pre>\n<p>The steps to setting up a DQ environment are:<\/p>\n<ol>\n<li>Set the DQ Mode Global or per Connection<\/li>\n<li>Set the DQ Speed Link speed being simulated<\/li>\n<li>Set the Latency Latency to be introduced for each packet<\/li>\n<li>Set the Loss Rate Percentage of dropped packets to be simulated<\/li>\n<li>Switch to DQ Operation. Turn it on with <strong>set shaping dq<\/strong><\/li>\n<\/ol>\n<p><a id=\"Example\" name=\"Example\"><\/a><\/p>\n<span id=\"Example\"><h3>Example<\/h3><\/span>\n<p>The following example is the normal procedure for enabling DQ mode, setting a link speed (in this case, T1), and setting a latency (in this case 15ms one-way, +\/- 2ms)<\/p>\n<pre>PacketShaper# sys set testshapingmodes 1\r\n\r\nPacketShaper# set shaping dq\r\nChanging packet shaping from on to dq. Note that this will\r\nput the PacketShaper into delay queue mode, which is a lab test\r\nmode which should be used only with additional instruction.\r\n\r\nPlease confirm if you really want to proceed (YES): y\r\n\r\nPacketShaper# dq mode global<\/pre>\n<p>Changing mode to global<\/p>\n<pre>PacketShaper# dq speed 1544000\r\n\r\nPacketShaper# dq latency\u00c2\u00a0?\r\n\r\nusage: latency &lt;base&gt; [var_within_conn][var_among_conns]\r\n\r\nPacketShaper# dq latency 15 2 2\r\n\r\nLatency base 15 variable 2 variable between conns 2\r\nPacketShaper#<\/pre>\n<p>Remember that the latency is one way, so a ping, which measures round trip time, would show about 30ms in this example.<\/p>\n<p>DQ Loss may also be set, but modern communication links have almost no loss today. Most loss that is seen on a private network is typically attributable to Router Queuing drops, a problem which is normally alleviated by the deployment of PacketShapers and TCP Rate Control.<\/p>\n<p>&nbsp;<\/p>\n<p><a id=\"What_are_the_individual_commands.3F\" name=\"What_are_the_individual_commands.3F\"><\/a><\/p>\n<span id=\"What_are_the_individual_commands\"><h3>What are the individual commands?<\/h3><\/span>\n<pre>dq mode\r\n\r\nusage: mode [\"global\" | \"conn\"]<\/pre>\n<p>Global mode causes the settings to apply to the link as a whole. Connection mode causes the settings to be applied to each connection separately.<\/p>\n<div><strong>Wichtig<\/strong><\/div>\n<div>\n<p>some types of traffic, such as ICMP Ping are connectionless and therefore will not be affected by connection mode. Use global mode for these type of traffic.<\/p>\n<\/div>\n<pre>dq speed\r\n\r\nusage: speed &lt;bps&gt;<\/pre>\n<p>Sets the speed of the link being simulated, in bits per second. In global mode, this is the speed of the line. In connection mode, this is the speed of each separate connection.<\/p>\n<pre>dq loss<\/pre>\n<p>Sets the loss rate for the simulation.<\/p>\n<pre>usage: loss [pkts dropped per thousand] [congestive rate]\r\n\r\nwhere:\r\n\r\n[pkts dropped per thousand] base rate of packet loss\r\n[congestive rate] chance of a drop if the previous packet was dropped<\/pre>\n<p>Example:<\/p>\n<pre>dq loss 40 100<\/pre>\n<p>would set a base chance of 40\u00e2\u20ac\u00b0 that a packet is dropped with a 100\u00e2\u20ac\u00b0 chance of loss if the previous packet was dropped.<\/p>\n<pre>dq latency<\/pre>\n<p>Sets the link latency to be simulated<\/p>\n<pre>usage: latency &lt;base&gt; [var_within_conn][var_among_conns]\r\n\r\nwhere:\r\n\r\n&lt;base&gt; base latency in milliseconds\r\n[var_within_conn] packet-to-packet variation, in milliseconds\r\n[var_among_conns] modifier for each connection, in milliseconds<\/pre>\n<p>Example:<\/p>\n<pre>dq latency 200 20 50<\/pre>\n<p>in global mode, sets a latency between 180 and 220 ms for each packet. in connection mode, picks a random base latency between 150 and 250 ms for each flow and then modifies that + or &#8211; 20 ms for each packet within the flow.<\/p>\n<p><a id=\"What_are_some_good_values_to_use_for_latency.3F\" name=\"What_are_some_good_values_to_use_for_latency.3F\"><\/a><\/p>\n<span id=\"What_are_some_good_values_to_use_for_latency\"><h3>What are some good values to use for latency?<\/h3><\/span>\n<p>If you are trying to simulate a specific network, you may use values gathered from ping or (better) from the RTT measurement of the PacketShaper&#8217;s Response Time statistics. Don&#8217;t forget to divide Round Trip Time (RTT) by two to get link latency.<\/p>\n<p><a id=\"Some_common_values:\" name=\"Some_common_values:\"><\/a><\/p>\n<span id=\"Some_common_values:\"><h4>Some common values:<\/h4><\/span>\n<p><a id=\"T1\" name=\"T1\"><\/a><\/p>\n<span id=\"T1\"><h4>T1<\/h4><\/span>\n<pre>100 Miles 5-15 ms<\/pre>\n<p><a id=\"56k\" name=\"56k\"><\/a><\/p>\n<span id=\"k\"><h4>56k<\/h4><\/span>\n<pre>100 Miles 15-45 ms<\/pre>\n<p><a id=\"64k\" name=\"64k\"><\/a><\/p>\n<span id=\"k_1\"><h4>64k<\/h4><\/span>\n<pre>Transoceanic 250 ms<\/pre>\n<p><a id=\"128k\" name=\"128k\"><\/a><\/p>\n<span id=\"k_2\"><h4>128k<\/h4><\/span>\n<pre>Satellite 375 ms<\/pre>\n<p><a id=\"128k_2\" name=\"128k_2\"><\/a><\/p>\n<span id=\"k_3\"><h4>128k<\/h4><\/span>\n<pre>ISDN 10-30 ms<\/pre>\n<p><a id=\"28.8\" name=\"28.8\"><\/a><\/p>\n<span id=\"28.8\"><h4>28.8<\/h4><\/span>\n<pre>Modem 75 - 150 ms<\/pre>\n<p><a id=\"Links\" name=\"Links\"><\/a><\/p>\n<span id=\"Links\"><h2>Links<\/h2><\/span>\n<p>Dieser Artikel wurde hier gefunden:<\/p>\n<p><a title=\"http:\/\/techexchange.packeteer.com\/viewtopic.php?p=3868&amp;sid=ddac185cf6ecf247f0a8479c3b0fee4a\" href=\"http:\/\/techexchange.packeteer.com\/viewtopic.php?p=3868&amp;sid=ddac185cf6ecf247f0a8479c3b0fee4a\" rel=\"nofollow\">http:\/\/techexchange.packeteer.com\/viewtopic.php?p=3868&amp;sid=ddac185cf6ecf247f0a8479c3b0fee4a<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Packeteer DQ Mode How do I use DQ Mode? First, you must enable DQ Mode. Do this with the command sys set testShapingModes 1 Then, to enter DQ mode, use the command: set shaping dq Wichtig Packet shaping and measurement &hellip; <a href=\"https:\/\/thebc.ch\/blog\/?p=602\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-602","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=602"}],"version-history":[{"count":5,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/602\/revisions"}],"predecessor-version":[{"id":2660,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/602\/revisions\/2660"}],"wp:attachment":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}