<div dir="ltr">I have submitted a change into libzmq that allows sockets to set (and get) the Type-of-Service fields within the IP header. These fields seem to be called many names, Diffserv, Differential Services Code Point, DSCP, ECN, etc.<div>
<br></div><div>Basically, this will allows ZMQ socket users to set a field within the IP packet header that network equipment with use for traffic prioritisation. From Wikipedia: <br></div><div><br></div><div><i><b style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.1875px">Differentiated services</b><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.1875px"> or </span><b style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.1875px">DiffServ</b><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.1875px"> is a </span><a href="http://en.wikipedia.org/wiki/Computer_networking" title="Computer networking" class="" style="text-decoration:none;color:rgb(11,0,128);background-image:none;font-family:sans-serif;font-size:13px;line-height:19.1875px">computer networking</a><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.1875px"> architecture that specifies a simple, </span><a href="http://en.wikipedia.org/wiki/Scalable" title="Scalable" class="" style="text-decoration:none;color:rgb(11,0,128);background-image:none;font-family:sans-serif;font-size:13px;line-height:19.1875px">scalable</a><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.1875px"> and coarse-grained mechanism for classifying and managing network traffic and providing </span><a href="http://en.wikipedia.org/wiki/Quality_of_service" title="Quality of service" style="text-decoration:none;color:rgb(11,0,128);background-image:none;font-family:sans-serif;font-size:13px;line-height:19.1875px">quality of service</a><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.1875px"> (QoS) on modern </span><a href="http://en.wikipedia.org/wiki/Internet_Protocol" title="Internet Protocol" style="text-decoration:none;color:rgb(11,0,128);background-image:none;font-family:sans-serif;font-size:13px;line-height:19.1875px">IP</a><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.1875px"> networks.</span></i></div>
<div><font color="#000000" face="sans-serif"><span style="line-height:19.1875px">[</span></font><a href="http://en.wikipedia.org/wiki/Differentiated_services_code_point">http://en.wikipedia.org/wiki/Differentiated_services_code_point</a>]</div>
<div><br><div><div>This is available by using the ZMQ_TOS socket option.</div><div><br></div><div>Now on to adding it to CZMQ!</div></div></div></div>