{"id":187,"date":"2018-02-11T00:06:15","date_gmt":"2018-02-11T00:06:15","guid":{"rendered":"https:\/\/www.kuncar.net\/blog\/?p=187"},"modified":"2018-11-01T00:11:54","modified_gmt":"2018-11-01T00:11:54","slug":"packeth-tutorial-part-ii-the-gen-bgen-s-and-pcap-options","status":"publish","type":"post","link":"https:\/\/www.kuncar.net\/blog\/2018\/packeth-tutorial-part-ii-the-gen-bgen-s-and-pcap-options\/","title":{"rendered":"PackEth tutorial part II \u2013 The Gen-B,Gen-S and PCAP options"},"content":{"rendered":"<header class=\"entry-header\">\n<h1 class=\"entry-title\"><\/h1>\n<div class=\"entry-meta\" style=\"text-align: justify;\"><span style=\"font-size: 1rem;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-185\" src=\"https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/PackEth-150x150.png\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/PackEth-150x150.png 150w, https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/PackEth-300x300.png 300w, https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/PackEth-100x100.png 100w, https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/PackEth.png 512w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><span style=\"font-family: arial, helvetica, sans-serif;\">This is a Second part of an article I have written some time ago about the great tool called\u00a0<\/span><\/span><span style=\"font-family: arial, helvetica, sans-serif;\"><a style=\"font-size: 1rem;\" title=\"PackETH packet builder\" href=\"https:\/\/web.archive.org\/web\/20151002130711\/http:\/\/packeth.sourceforge.net\/\" target=\"_blank\" rel=\"noopener\">PackETH<\/a><span style=\"font-size: 1rem;\">. \u00a0This article will be much shorted as it will be focused on the less complicated (but not useful!) modes of the tool.<\/span><\/span><\/div>\n<\/header>\n<div class=\"entry-content\">\n<p style=\"text-align: justify;\"><span style=\"font-family: arial, helvetica, sans-serif;\">In the previous par I have described how to build your own packet from L2 to L4 but what if you need something else ? maybe not a single packet but a burst of packets? or what is you need to send multiple streams of various frames ? Well then you need to use the Gen-S and Gen-B modes.<\/span><\/p>\n<h3>GEN-B<\/h3>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial, helvetica, sans-serif;\">The name stands for Generate burst. The necessary prerequisite for using this mode is for you to have a ready and valid packet loaded in the Builder mode. Once you have that you can run the burst generation. This is how the GUI looks like:<\/span><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-378\" src=\"https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/11\/gen-b.jpg\" alt=\"\" width=\"729\" height=\"529\" srcset=\"https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/11\/gen-b.jpg 729w, https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/11\/gen-b-150x109.jpg 150w, https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/11\/gen-b-300x218.jpg 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<div class=\"entry-content\">\n<p style=\"text-align: justify;\"><span style=\"font-family: arial, helvetica, sans-serif;\">The \u201cNumber of packets\u201d field is I think rather self-explanatory. The second is more interesting and deserves our attention as it can be used for buffer testing. The \u201cDelay between packets\u201d field is actually referring to what is correctly called the Inter Frame Gap (IFG) which is a delay between end of one frame and beginning of the next one. The physical media has a limitation of how fast you can the frames be send. Then the \u201cmax speed\u201d check box is in effect it means you will send all the frames with minimal IFG. This situation is also be known as back-to-back scenario. \u00a0Under normal circumstances the frames would not be played out from the buffer like this unless the buffer would be full. So you are asking what is this good for ? Well the traffic can be very bursty and the software on your network equipment might not be able to handle it very well so testing this behavior before you introduce new equipment into your network is highly recommended (and is actually standardized as part of\u00a0<a title=\"RFC2544\" href=\"https:\/\/web.archive.org\/web\/20151002130711\/http:\/\/www.ietf.org\/rfc\/rfc2544.txt\" target=\"_blank\" rel=\"noopener\">RFC 2544<\/a>\u00a0test suite).<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial, helvetica, sans-serif;\">The other interesting thing you can do in Gen-B mode is to change the frame\u2019s content on fly (from the original you\u2019ve build in the Builder mode). The things you can do with it are quite wild. let\u2019s have a look at the options and what they do:<\/span><\/p>\n<ul class=\"ili-indent\">\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">do nothing \u00a0\u2013 will result in sending the same frame you have in Builder mode with no changes<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">MAC set random source address \u2013 rather self explanatory \u2013 good for testing L2 paths and load balancing mechanisms<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">IP set random source address\u00a0\u2013 rather self explanatory \u2013 good for testing L3 paths and load balancing mechanisms<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">RTP options \u2013 this allows to simulate a more real RTP stream<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Change Byte X and Y values \u2013 probably quite good for protocol developers<\/span><\/li>\n<\/ul>\n<h3><span style=\"font-family: arial, helvetica, sans-serif;\">GEN-S<\/span><\/h3>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">This is a Stream generator as there is quite often a need to play different types of traffic. For example you want to try a nice voice traffic stream you have captured or build in combination with various bursty types of traffic and see how your network will be dealing with it? Well that is why you can select up to 10 packets in pcap format and give them some basic parameters (as seen below).<\/span><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-377\" src=\"https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/11\/gen-s.png\" alt=\"\" width=\"726\" height=\"576\" srcset=\"https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/11\/gen-s.png 726w, https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/11\/gen-s-150x119.png 150w, https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/11\/gen-s-300x238.png 300w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/p>\n<div class=\"entry-content\">\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">You can also run these stream in cycles so the traffic pattern will repeat itself up to infinity. You can also enable\/disable the stream on the fly to alter the traffic mix.<\/span><\/p>\n<h3><span style=\"font-family: arial, helvetica, sans-serif;\">THE PCAP<\/span><\/h3>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">The PCAP\u2019s only function is to open a packet in pcap format (not pcapng!) and load is into the builder once it is selected. On the other hand this can be achieved using the load button from the Builder as well so I am bit unsure what is supposed to be the extra feature here.<\/span><\/p>\n<h3><span style=\"font-family: arial, helvetica, sans-serif;\">THE SUMMARY &amp; A SMALL TESTIMONIAL<\/span><\/h3>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial, helvetica, sans-serif;\">Well what to say at the end \u2013 I hope I was able to describe PackETH\u2019s features with few minor hints what they can be useful for. I will most likely include PackETH in some of my other articles as a method of testing thing while playing with various LAB scenarios. The truth is that it cannot replace a proper Ethernet tester but taking in account its flexibility,stability and the fact it is free \u00a0I must say I can only rate it as high as possible.<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Before I will really end this article I wanted to write one more thing a small testimonial \u2013\u00a0<em>I successfully used PackETH over period of about three years for various testing ranging from proving equipment behavior for L2 broadcasting\/multicasting, faking ARP and ICMP messages to invoking network behaviors so as proving equipment\u2019s dealing with QinQ and it has aways been a tool in my software toolbox I could and can completely rely on. There aren\u2019t many pieces software like this one and I would recommend to anyone anytime for both \u00a0training and troubleshooting purposes.<\/em><\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is a Second part of an article I have written some time ago about the great tool called\u00a0PackETH. \u00a0This article will be much shorted as it will be focused on the less complicated (but not useful!) modes of the tool. In the previous par I have described how to build your own packet from &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.kuncar.net\/blog\/2018\/packeth-tutorial-part-ii-the-gen-bgen-s-and-pcap-options\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PackEth tutorial part II \u2013 The Gen-B,Gen-S and PCAP options&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,13,14],"tags":[32,33],"class_list":["post-187","post","type-post","status-publish","format-standard","hentry","category-networks","category-recovered","category-testing","tag-packeth","tag-testing"],"_links":{"self":[{"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/posts\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/comments?post=187"}],"version-history":[{"count":2,"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/posts\/187\/revisions"}],"predecessor-version":[{"id":379,"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/posts\/187\/revisions\/379"}],"wp:attachment":[{"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/media?parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/categories?post=187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/tags?post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}