{"id":158,"date":"2018-01-07T22:04:09","date_gmt":"2018-01-07T22:04:09","guid":{"rendered":"https:\/\/www.kuncar.net\/blog\/?p=158"},"modified":"2018-01-09T00:45:19","modified_gmt":"2018-01-09T00:45:19","slug":"ethersam-y-1564-explained","status":"publish","type":"post","link":"https:\/\/www.kuncar.net\/blog\/2018\/ethersam-y-1564-explained\/","title":{"rendered":"EtherSam (Y.1564) explained"},"content":{"rendered":"<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-159\" src=\"https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/EtherSAM-logo-HR-150x116.jpg\" alt=\"\" width=\"150\" height=\"116\" srcset=\"https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/EtherSAM-logo-HR-150x116.jpg 150w, https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/EtherSAM-logo-HR-300x233.jpg 300w, https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/EtherSAM-logo-HR.jpg 640w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/>This is the last article (at least for now) from the series about testing methodologies and testing standards. I will cover some bits and pieces in the region of testing in general but it won\u2019t be as heavy on the theory as I want to write some \u201chands-on\u201d scenarios for combined use of Wireshark and PackEth as well as about some multicast scenarios. Also I will be doing more Cisco and Juniper stuff so it is quite likely I will be blogging some configs and labs. Anyway enough about the future plans and let\u2019s start with the topic at hand.<\/span><\/p>\n<h3><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">Introduction<\/span><\/h3>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">The ITU-T\u00a0<b>Y<\/b>.1564 also more commonly known as\u00a0<b>EtherSam<\/b>\u00a0(which originated in the old name of the standard ITU-T\u00a0<b>Y<\/b>.<b>156sam<\/b>)\u00a0is a service activation test suite whose goal is to allow for rapid link testing in deployment of services. The main advantage of this test is that it allows for testing of SLA (Service Level Agreements) while deploying new service and it can do that disregarding the Physical topology (i.e. it can verify end-to-end SLA even in live environment with live traffic flowing through the network).<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">There is few serious considerations in general that make this test suite bit awkward to use.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">First one is that this is a very new standard (initiated in 2009, published 2011) and is still changing as new drafts are still being issued.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">The next rather serious problem is that this test suite is for \u201cservice activation\u201d which means in normal language that it is no good for lab testing as it doesn\u2019t really stress the equipment. The reason is that the\u00a0<b>EtherSam<\/b>\u00a0is designed around the idea of rapid deployment of new links\/services in Telcos (I will write about the disadvantages of the design in later).<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">The last issue is that as a new standard it is rather unknown among network engineers so it takes some education before it can be used.<\/span><\/p>\n<h3><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">Traffic parameters<\/span><\/h3>\n<p><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">The theory behind this test suite is somewhere half way through between the RFC2544 and BERT tests as it tried to get the best of both while achieving similar results to both. Lets start with definitions as they are the most important. In\u00a0<b>EtherSam<\/b>\u00a0you can configure multiple concurrent services and each service \u00a0can have following 4 parameters:<\/span><\/p>\n<ul class=\"ili-indent\">\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">CIR \u2013 Committed Information rate<\/span><\/li>\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">CBS \u2013 Committed Burst Size<\/span><\/li>\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">EIR \u2013 Excess Information rate<\/span><\/li>\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">EBS \u2013 Excess Burst Size\u00a0<\/span><\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">This is not as complicated as it might seem at this point. These values are only used to set the SLA. The CIR defines the minimal amount of traffic within the available bandwidth and must be always fulfilled. If there is only CIR specified on the links\/services it is a good practice to have some amount of bandwidth allocated to CBS as it will allow for a small overshoot in case of traffic burstiness. Obviously one might need more flexibility in how much traffic to pass through (like over-subscription) where some frame loss is acceptable in exchange for more data being delivered. That is the Excess Information Rate. As it is obvious that once EIR is in place the data from CBS would be calculated as part of EIR so CBS setting loses its meaning. If you want to get little more flexibility in case of having more bursty traffic you can specify EBS on top of the EIR.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">Traffic coloring<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">In the paragraph above I have described the two out of three traffic types that exist in\u00a0<b>EtherSam<\/b>\u00a0which would be reffered to as a green traffic (CIR+CBS) and yellow (EIR+EBS). The standard also defines a red traffic which is a traffic non-conforming to either CIR or EIR. In effect based on the\u00a0<b>EtherSam<\/b>\u00a0methodology this traffic should never be passed and should be dropped. This look like a absolutely trivial and obvious thing but it has one very serious consequence in deployments with over-subscription in place \u2013 you must define the EIR as the \u201cshared\u201d part of your QoS with specific size allocated to it. So having a random amount of free-to-grab bandwidth for the tested service will result in failing the test as passing red traffic is a fail criteria on\u00a0<b>Y<\/b>.1564.<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-160 size-full\" title=\"Traffic profile for EhterSam - colouring\" src=\"https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/y1564.jpg\" alt=\"Traffic profile for EhterSam - colouring\" width=\"495\" height=\"243\" srcset=\"https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/y1564.jpg 495w, https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/y1564-150x74.jpg 150w, https:\/\/www.kuncar.net\/blog\/wp-content\/uploads\/2018\/01\/y1564-300x147.jpg 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">Bandwidth profile parameters \u2013 Coupling flag and Color mode<\/span><\/h3>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">I am putting description of these two parameters at this place just for the sole reason that they are defined in the standard but I would like to stress out that I haven\u2019t seen them implemented in any testing equipment so far so this section will be rather short and most people can just skip it as it has little to none practical use (at least at the time of writing). These two parameters allow for the metering algorithm to be adjusted and thus change the result. Also they are valid only in certain scenarios.<\/span><\/p>\n<ul class=\"ili-indent\">\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">CF \u2013 Coupling flag \u2013 Could be only set as on or off. Is only useful for introducing new service in live environment with extremely bursty traffic. It allows for coupling unused green and yellow traffic thus allowing for higher throughput.<\/span><\/li>\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">CM \u2013 Color mode \u2013 allows for two options color-aware and color-blind mode where the first one is requiring the tested equipment to re-mark\/re-color the traffic streams to adhere to the existing network rules whereas the color-blind expect no interference with the coloring.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">The Service Configuration test<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">This is the first test that you can run and is meant to test a individual service. The aim is to test the CIR\/EIR (and optionally CBS\/EBS) comply to the setup. It is a rather simple test but except the obvious CIR\/EIR\/policing it allows for some variability offering the following\u00a0 options:<\/span><\/p>\n<ul class=\"ili-indent\">\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">Fixed frame size or EMIX pattern (1518, 1518, 1024, 64, 64)<\/span><\/li>\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">optional Step Load (25%,50%,75%100%)<\/span><\/li>\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">optional Burst test for the CBS and EBS (defined in Bytes)<\/span><\/li>\n<\/ul>\n<p><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">If you have multiple services configured each one will be done separately so be careful about the time-estimate as this test is not intended to run for long time. Especially with the ramped services it is important to realize that the total duration of this test will be number of services x number of steps x step time. Also the other thing is that CBS and EBS will be tested separately adding more time to the test. In total this should not take more than 10 minutes as this test is not supposed to be replacing a long term tests.<\/span><\/p>\n<h3><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">The Service Performance test<\/span><\/h3>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">This test is the second (and last) test you can do in\u00a0<b>Y<\/b>.1564 and is in place to test all services in one go in order to check that the sum of the CIRs is actually available on the path in question. It is also meant to be a long test with specified durations 15 min, 2 hrs and 24 hrs. The EMIX and ramped traffic in the services should be available as in previous test.<\/span><\/p>\n<p><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">I think that this test due to its simplicity can replace the BERT in many cases while giving better results for service providing.<\/span><\/p>\n<h3><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">The results and pass\/fail criteria<\/span><\/h3>\n<p><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">The pass\/fail criteria are rather obvious<\/span><\/p>\n<ul class=\"ili-indent\">\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">Fulfilling CIR (or CIR+CBS)<\/span><\/li>\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">Fulfilling EIR (or EIR + EBS)<\/span><\/li>\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">Policing overshoot of traffic &gt; CIR+EIR+EBS<\/span><\/li>\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">Conform to maximal acceptable delay variation (jitter)<\/span><\/li>\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">Conform to maximal acceptable\u00a0round-trip latency<\/span><\/li>\n<li><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">Conform to SLA\u2019s Frame loss (or availability)<\/span><\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">These are solid criteria and there is not much you can say against these but as always there are some considerations that must be taken in account.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">First one is something I have already mentioned \u2013 there is no way for the\u00a0<b>Y<\/b>.1564 to consider a shared \u201cbest effort\u201d overshoot above the defined CIR+EIR which might be problem in some scenarios but I think it could be avoided via some hacked configuration of EIR\/EBS.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">Second is the SLA frame loss or more known in the telco world as availability. So if you provide let\u2019s say 99.99% availability it means that on a 100mbps stream it would be acceptable to lose \u00a0over 2000 frames single hour which I don\u2019t think would be found acceptable in most environments. As far as I know there is no possibility to set the availability to 100% (also no SLA would ever have this number in it). I ma not currently aware of any possible workaround for this so the only advice is to go through the data in the results table very carefully and set this option to be as close to what you expect of the test as possible (i.e. in my opinion under normal circumstances there should be 0% packet loss on 2 hours test on most systems).<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">The last thing I would like to mention is that there is no built-in out-of sequence counting mechanism. This might sound as an unnecessary feature but in voice-enabled environment this is \u00a0actually a very important parameter to observe.<\/span><\/p>\n<h3><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">\u00a0Conclusion<\/span><\/h3>\n<p style=\"text-align: justify;\"><span style=\"font-size: 14px; font-family: arial, helvetica, sans-serif;\">The\u00a0<b>EtherSam<\/b>\u00a0is rather interesting test suite which cannot and was never meant to replace the RFC2544. In some ways it can partially replace BERT in some field operations. I have to say I do welcome this standard as it addresses the last bit of testing that was not properly included in any Ethernet\/IP testing suite to my knowledge. It obviously has some drawbacks but I think it has its place in field service activation environment . Only time will tell if it will become as wide spread as the RFC2544 but I certainly hope so.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the last article (at least for now) from the series about testing methodologies and testing standards. I will cover some bits and pieces in the region of testing in general but it won\u2019t be as heavy on the theory as I want to write some \u201chands-on\u201d scenarios for combined use of Wireshark and &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.kuncar.net\/blog\/2018\/ethersam-y-1564-explained\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;EtherSam (Y.1564) explained&#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":[13,14],"tags":[],"class_list":["post-158","post","type-post","status-publish","format-standard","hentry","category-recovered","category-testing"],"_links":{"self":[{"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/posts\/158","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=158"}],"version-history":[{"count":1,"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":161,"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions\/161"}],"wp:attachment":[{"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kuncar.net\/blog\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}