Guest User

Junos CoS Configuration

a guest
Sep 14th, 2017
133
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [edit class-of-service]
  2. classifiers {
  3. dscp ba-classifier-rfc4594 {
  4. forwarding-class voip-telephony {
  5. loss-priority high code-points ef;
  6. }
  7. forwarding-class broadcast-video {
  8. loss-priority high code-points cs3;
  9. }
  10. forwarding-class real-time-interactive {
  11. loss-priority high code-points cs4;
  12. }
  13. forwarding-class multimedia-conferencing {
  14. loss-priority high code-points [ af41 af42 af43 ];
  15. }
  16. forwarding-class multimedia-streaming {
  17. loss-priority high code-points [ af31 af32 af33 ];
  18. }
  19. forwarding-class network-control {
  20. loss-priority high code-points [ cs6 cs7 ];
  21. }
  22. forwarding-class signalling {
  23. loss-priority high code-points cs5;
  24. }
  25. forwarding-class ops-admin-mgmt {
  26. loss-priority high code-points cs2;
  27. }
  28. forwarding-class transactional-data {
  29. loss-priority high code-points [ af21 af22 af23 ];
  30. }
  31. forwarding-class bulk-data {
  32. loss-priority high code-points [ af11 af12 af13 ];
  33. }
  34. forwarding-class scavenger {
  35. loss-priority high code-points cs1;
  36. }
  37. forwarding-class best-effort {
  38. loss-priority high code-points be;
  39. }
  40. }
  41. }
  42. host-outbound-traffic {
  43. forwarding-class network-control;
  44. }
  45. drop-profiles {
  46. high-drop {
  47. interpolate {
  48. fill-level [ 50 70 90 ];
  49. drop-probability [ 1 50 90 ];
  50. }
  51. }
  52. }
  53. forwarding-classes {
  54. class voip-telephony queue-num 0;
  55. class broadcast-video queue-num 0;
  56. class real-time-interactive queue-num 0;
  57. class network-control queue-num 1;
  58. class signalling queue-num 1;
  59. class ops-admin-mgmt queue-num 1;
  60. class multimedia-conferencing queue-num 2;
  61. class multimedia-streaming queue-num 3;
  62. class transactional-data queue-num 4;
  63. class bulk-data queue-num 5;
  64. class scavenger queue-num 6;
  65. class best-effort queue-num 7;
  66. }
  67. interfaces {
  68. ge-0/0/0 {
  69. scheduler-map scheduler-8q;
  70. unit 0 {
  71. forwarding-class best-effort;
  72. rewrite-rules {
  73. dscp rewrite-rfc4594;
  74. }
  75. }
  76. }
  77. ge-0/1/0 {
  78. scheduler-map scheduler-8q;
  79. shaping-rate 500m;
  80. unit 210 {
  81. classifiers {
  82. dscp ba-classifier-rfc4594;
  83. }
  84. rewrite-rules {
  85. dscp rewrite-rfc4594;
  86. }
  87. }
  88. unit 211 {
  89. classifiers {
  90. dscp ba-classifier-rfc4594;
  91. }
  92. rewrite-rules {
  93. dscp rewrite-rfc4594;
  94. }
  95. }
  96. }
  97. ge-0/1/1 {
  98. scheduler-map scheduler-8q;
  99. shaping-rate 500m;
  100. unit 210 {
  101. classifiers {
  102. dscp ba-classifier-rfc4594;
  103. }
  104. rewrite-rules {
  105. dscp rewrite-rfc4594;
  106. }
  107. }
  108. unit 211 {
  109. classifiers {
  110. dscp ba-classifier-rfc4594;
  111. }
  112. rewrite-rules {
  113. dscp rewrite-rfc4594;
  114. }
  115. }
  116. }
  117. }
  118. rewrite-rules {
  119. dscp rewrite-rfc4594 {
  120. forwarding-class voip-telephony {
  121. loss-priority high code-point ef;
  122. loss-priority low code-point ef;
  123. }
  124. forwarding-class broadcast-video {
  125. loss-priority high code-point cs3;
  126. loss-priority low code-point cs3;
  127. }
  128. forwarding-class real-time-interactive {
  129. loss-priority high code-point cs4;
  130. loss-priority low code-point cs4;
  131. }
  132. forwarding-class multimedia-conferencing {
  133. loss-priority high code-point af41;
  134. loss-priority low code-point af41;
  135. }
  136. forwarding-class multimedia-streaming {
  137. loss-priority high code-point af31;
  138. loss-priority low code-point af31;
  139. }
  140. forwarding-class network-control {
  141. loss-priority high code-point cs7;
  142. loss-priority low code-point cs7;
  143. }
  144. forwarding-class signalling {
  145. loss-priority high code-point cs5;
  146. loss-priority low code-point cs5;
  147. }
  148. forwarding-class ops-admin-mgmt {
  149. loss-priority high code-point cs2;
  150. loss-priority low code-point cs2;
  151. }
  152. forwarding-class transactional-data {
  153. loss-priority high code-point af21;
  154. loss-priority low code-point af21;
  155. }
  156. forwarding-class bulk-data {
  157. loss-priority high code-point af11;
  158. loss-priority low code-point af11;
  159. }
  160. forwarding-class scavenger {
  161. loss-priority high code-point cs1;
  162. loss-priority low code-point cs1;
  163. }
  164. forwarding-class best-effort {
  165. loss-priority high code-point be;
  166. loss-priority low code-point be;
  167. }
  168. }
  169. }
  170. scheduler-maps {
  171. scheduler-8q {
  172. forwarding-class voip-telephony scheduler real-time;
  173. forwarding-class broadcast-video scheduler real-time;
  174. forwarding-class real-time-interactive scheduler real-time;
  175. forwarding-class network-control scheduler control;
  176. forwarding-class signalling scheduler control;
  177. forwarding-class ops-admin-mgmt scheduler control;
  178. forwarding-class multimedia-streaming scheduler multimedia-streaming;
  179. forwarding-class multimedia-conferencing scheduler multimedia-conferencing;
  180. forwarding-class transactional-data scheduler transactional-data;
  181. forwarding-class bulk-data scheduler bulk-data;
  182. forwarding-class scavenger scheduler scavenger;
  183. forwarding-class best-effort scheduler best-effort;
  184. }
  185. }
  186. schedulers {
  187. real-time {
  188. transmit-rate percent 20;
  189. priority high;
  190. }
  191. control {
  192. transmit-rate percent 10;
  193. priority medium-high;
  194. }
  195. multimedia-conferencing {
  196. transmit-rate percent 10;
  197. priority medium-high;
  198. drop-profile-map loss-priority high protocol any drop-profile high-drop;
  199. }
  200. multimedia-streaming {
  201. transmit-rate percent 10;
  202. priority medium-high;
  203. drop-profile-map loss-priority high protocol any drop-profile high-drop;
  204. }
  205. transactional-data {
  206. transmit-rate percent 10;
  207. priority medium-high;
  208. drop-profile-map loss-priority high protocol any drop-profile high-drop;
  209. }
  210. bulk-data {
  211. transmit-rate percent 8;
  212. priority low;
  213. drop-profile-map loss-priority high protocol any drop-profile high-drop;
  214. }
  215. scavenger {
  216. transmit-rate percent 2;
  217. priority low;
  218. }
  219. best-effort {
  220. transmit-rate percent 30;
  221. priority medium-low;
  222. drop-profile-map loss-priority high protocol any drop-profile high-drop;
  223. }
  224. }
RAW Paste Data