{"id":1456,"date":"2020-02-03T07:32:07","date_gmt":"2020-02-03T14:32:07","guid":{"rendered":"http:\/\/jaredrobinson.com\/blog\/?p=1456"},"modified":"2020-02-03T07:32:07","modified_gmt":"2020-02-03T14:32:07","slug":"simulate-dropped-or-latent-packets-in-linux","status":"publish","type":"post","link":"https:\/\/jaredrobinson.com\/blog\/simulate-dropped-or-latent-packets-in-linux\/","title":{"rendered":"Simulate dropped or latent packets in Linux"},"content":{"rendered":"<p>I&#8217;m documenting this more for my own reference than anything, partly because I&#8217;ve used &#8216;tc&#8217; off and on over the years.<\/p>\n<li>https:\/\/stackoverflow.com\/questions\/614795\/simulate-delayed-and-dropped-packets-on-linux<\/li>\n<li>https:\/\/wiki.linuxfoundation.org\/networking\/netem<\/p>\n<pre><code>\ntc qdisc add dev tun0 root netem loss 30%\ntc qdisc show dev tun0\ntc qdisc change dev tun0 root netem loss 0.1%\n<\/code><\/pre>\n<p>When finished:<\/p>\n<pre><code>tc qdisc del dev tun0 root\n<\/code><\/pre>\n<\/li>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m documenting this more for my own reference than anything, partly because I&#8217;ve used &#8216;tc&#8217; off and on over the years. https:\/\/stackoverflow.com\/questions\/614795\/simulate-delayed-and-dropped-packets-on-linux https:\/\/wiki.linuxfoundation.org\/networking\/netem tc qdisc add dev tun0 root netem loss 30% tc qdisc show dev tun0 tc qdisc change dev tun0 root netem loss 0.1% When finished: tc qdisc del dev tun0 root<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,17,30],"tags":[],"class_list":["post-1456","post","type-post","status-publish","format-standard","hentry","category-linux","category-tech","category-tools"],"_links":{"self":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/1456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/comments?post=1456"}],"version-history":[{"count":3,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/1456\/revisions"}],"predecessor-version":[{"id":1460,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/1456\/revisions\/1460"}],"wp:attachment":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/media?parent=1456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/categories?post=1456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/tags?post=1456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}