Advertisement
ScratchMonkey

sqm simple.qos 2020-04-25 07:00

Apr 25th, 2020
897
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 13.17 KB | None | 0 0
  1. Starting simple.qos
  2. ifb associated with interface em2:
  3. Currently no ifb is associated with em2, this is normal during starting of the sqm system.
  4. /usr/sbin/ip link add name ifb4em2 type ifb
  5.  
  6. cmd_wrapper: ip: SUCCESS: /usr/sbin/ip link add name ifb4em2 type ifb
  7. iptables -t mangle -N QOS_MARK_em2
  8. ip6tables -t mangle -N QOS_MARK_em2
  9. iptables -t mangle -D QOS_MARK_em2 -j MARK --set-mark 0x2/0xff
  10. iptables: No chain/target/match by that name.
  11. ip6tables -t mangle -D QOS_MARK_em2 -j MARK --set-mark 0x2/0xff
  12. ip6tables: No chain/target/match by that name.
  13. iptables -t mangle -A QOS_MARK_em2 -j MARK --set-mark 0x2/0xff
  14. ip6tables -t mangle -A QOS_MARK_em2 -j MARK --set-mark 0x2/0xff
  15. iptables -t mangle -D QOS_MARK_em2 -m dscp --dscp-class CS1 -j MARK --set-mark 0x3/0xff
  16. iptables: No chain/target/match by that name.
  17. ip6tables -t mangle -D QOS_MARK_em2 -m dscp --dscp-class CS1 -j MARK --set-mark 0x3/0xff
  18. ip6tables: No chain/target/match by that name.
  19. iptables -t mangle -A QOS_MARK_em2 -m dscp --dscp-class CS1 -j MARK --set-mark 0x3/0xff
  20. ip6tables -t mangle -A QOS_MARK_em2 -m dscp --dscp-class CS1 -j MARK --set-mark 0x3/0xff
  21. iptables -t mangle -D QOS_MARK_em2 -m dscp --dscp-class CS6 -j MARK --set-mark 0x1/0xff
  22. iptables: No chain/target/match by that name.
  23. ip6tables -t mangle -D QOS_MARK_em2 -m dscp --dscp-class CS6 -j MARK --set-mark 0x1/0xff
  24. ip6tables: No chain/target/match by that name.
  25. iptables -t mangle -A QOS_MARK_em2 -m dscp --dscp-class CS6 -j MARK --set-mark 0x1/0xff
  26. ip6tables -t mangle -A QOS_MARK_em2 -m dscp --dscp-class CS6 -j MARK --set-mark 0x1/0xff
  27. iptables -t mangle -D QOS_MARK_em2 -m dscp --dscp-class EF -j MARK --set-mark 0x1/0xff
  28. iptables: No chain/target/match by that name.
  29. ip6tables -t mangle -D QOS_MARK_em2 -m dscp --dscp-class EF -j MARK --set-mark 0x1/0xff
  30. ip6tables: No chain/target/match by that name.
  31. iptables -t mangle -A QOS_MARK_em2 -m dscp --dscp-class EF -j MARK --set-mark 0x1/0xff
  32. ip6tables -t mangle -A QOS_MARK_em2 -m dscp --dscp-class EF -j MARK --set-mark 0x1/0xff
  33. iptables -t mangle -D QOS_MARK_em2 -m dscp --dscp-class AF42 -j MARK --set-mark 0x1/0xff
  34. iptables: No chain/target/match by that name.
  35. ip6tables -t mangle -D QOS_MARK_em2 -m dscp --dscp-class AF42 -j MARK --set-mark 0x1/0xff
  36. ip6tables: No chain/target/match by that name.
  37. iptables -t mangle -A QOS_MARK_em2 -m dscp --dscp-class AF42 -j MARK --set-mark 0x1/0xff
  38. ip6tables -t mangle -A QOS_MARK_em2 -m dscp --dscp-class AF42 -j MARK --set-mark 0x1/0xff
  39. iptables -t mangle -D QOS_MARK_em2 -m tos --tos Minimize-Delay -j MARK --set-mark 0x1/0xff
  40. iptables: No chain/target/match by that name.
  41. ip6tables -t mangle -D QOS_MARK_em2 -m tos --tos Minimize-Delay -j MARK --set-mark 0x1/0xff
  42. ip6tables: No chain/target/match by that name.
  43. iptables -t mangle -A QOS_MARK_em2 -m tos --tos Minimize-Delay -j MARK --set-mark 0x1/0xff
  44. ip6tables -t mangle -A QOS_MARK_em2 -m tos --tos Minimize-Delay -j MARK --set-mark 0x1/0xff
  45. Squashing differentiated services code points (DSCP) from ingress.
  46. iptables -t mangle -D PREROUTING -i em2 -m dscp ! --dscp 0 -j DSCP --set-dscp-class be
  47. iptables: No chain/target/match by that name.
  48. ip6tables -t mangle -D PREROUTING -i em2 -m dscp ! --dscp 0 -j DSCP --set-dscp-class be
  49. ip6tables: No chain/target/match by that name.
  50. iptables -t mangle -I PREROUTING -i em2 -m dscp ! --dscp 0 -j DSCP --set-dscp-class be
  51. ip6tables -t mangle -I PREROUTING -i em2 -m dscp ! --dscp 0 -j DSCP --set-dscp-class be
  52. iptables -t mangle -D POSTROUTING -o em2 -m mark --mark 0x00/0xff -g QOS_MARK_em2
  53. iptables: No chain/target/match by that name.
  54. ip6tables -t mangle -D POSTROUTING -o em2 -m mark --mark 0x00/0xff -g QOS_MARK_em2
  55. ip6tables: No chain/target/match by that name.
  56. iptables -t mangle -A POSTROUTING -o em2 -m mark --mark 0x00/0xff -g QOS_MARK_em2
  57. ip6tables -t mangle -A POSTROUTING -o em2 -m mark --mark 0x00/0xff -g QOS_MARK_em2
  58. iptables -t mangle -D PREROUTING -i vtun+ -p tcp -j MARK --set-mark 0x2/0xff
  59. iptables: No chain/target/match by that name.
  60. ip6tables -t mangle -D PREROUTING -i vtun+ -p tcp -j MARK --set-mark 0x2/0xff
  61. ip6tables: No chain/target/match by that name.
  62. iptables -t mangle -I PREROUTING -i vtun+ -p tcp -j MARK --set-mark 0x2/0xff
  63. ip6tables -t mangle -I PREROUTING -i vtun+ -p tcp -j MARK --set-mark 0x2/0xff
  64. iptables -t mangle -D OUTPUT -p udp -m multiport --ports 123,53 -j DSCP --set-dscp-class AF42
  65. iptables: No chain/target/match by that name.
  66. ip6tables -t mangle -D OUTPUT -p udp -m multiport --ports 123,53 -j DSCP --set-dscp-class AF42
  67. ip6tables: No chain/target/match by that name.
  68. iptables -t mangle -A OUTPUT -p udp -m multiport --ports 123,53 -j DSCP --set-dscp-class AF42
  69. ip6tables -t mangle -A OUTPUT -p udp -m multiport --ports 123,53 -j DSCP --set-dscp-class AF42
  70. IFACE: em2 MTU: 1500
  71. get_htb_quantum: 1: em2, 2: 45000, 3: 1000
  72. get_burst: 1: 1500, 2: 45000, 3: 1000
  73. get_burst (by duration): BURST [Byte]: 5625, BANDWIDTH [Kbps]: 45000, DURATION [us]: 1000
  74. IFACE: em2 MTU: 1500
  75. get_htb_burst: 1: em2, 2: 45000, 3: 1000
  76. get_burst: 1: 1500, 2: 45000, 3: 1000
  77. get_burst (by duration): BURST [Byte]: 5625, BANDWIDTH [Kbps]: 45000, DURATION [us]: 1000
  78. /usr/sbin/tc qdisc del dev em2 root
  79. RTNETLINK answers: No such file or directory
  80. cmd_wrapper: tc: FAILURE (2): /usr/sbin/tc qdisc del dev em2 root
  81. cmd_wrapper: tc: LAST ERROR: RTNETLINK answers: No such file or directory
  82. LLA: default link layer adjustment method for !cake is tc_stab
  83. /usr/sbin/tc qdisc add dev em2 root handle 1: htb default 12
  84.  
  85. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc qdisc add dev em2 root handle 1: htb default 12
  86. /usr/sbin/tc class add dev em2 parent 1: classid 1:1 htb quantum 5625 rate 45000kbit ceil 45000kbit burst 5625 cburst 5625
  87.  
  88. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc class add dev em2 parent 1: classid 1:1 htb quantum 5625 rate 45000kbit ceil 45000kbit burst 5625 cburst 5625
  89. /usr/sbin/tc class add dev em2 parent 1:1 classid 1:11 htb quantum 5625 rate 128kbit ceil 15000kbit prio 1
  90.  
  91. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc class add dev em2 parent 1:1 classid 1:11 htb quantum 5625 rate 128kbit ceil 15000kbit prio 1
  92. /usr/sbin/tc class add dev em2 parent 1:1 classid 1:12 htb quantum 5625 rate 7500kbit ceil 44984kbit burst 5625 cburst 5625 prio 2
  93.  
  94. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc class add dev em2 parent 1:1 classid 1:12 htb quantum 5625 rate 7500kbit ceil 44984kbit burst 5625 cburst 5625 prio 2
  95. /usr/sbin/tc class add dev em2 parent 1:1 classid 1:13 htb quantum 5625 rate 7500kbit ceil 44984kbit burst 5625 cburst 5625 prio 3
  96.  
  97. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc class add dev em2 parent 1:1 classid 1:13 htb quantum 5625 rate 7500kbit ceil 44984kbit burst 5625 cburst 5625 prio 3
  98. get_limit:  CURLIMIT: 1001
  99. get_target defaulting to auto.
  100. get_ECN: ECN CURECN: ecn IECN: ECN EECN: ECN
  101. /usr/sbin/tc qdisc add dev em2 parent 1:11 handle 110: fq_codel limit 1001 target 5000us interval 100000us ecn quantum 300 flows 1024
  102.  
  103. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc qdisc add dev em2 parent 1:11 handle 110: fq_codel limit 1001 target 5000us interval 100000us ecn quantum 300 flows 1024
  104. get_limit:  CURLIMIT: 1001
  105. get_target defaulting to auto.
  106. get_ECN: ECN CURECN: ecn IECN: ECN EECN: ECN
  107. /usr/sbin/tc qdisc add dev em2 parent 1:12 handle 120: fq_codel limit 1001 target 5000us interval 100000us ecn quantum 300 flows 1024
  108.  
  109. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc qdisc add dev em2 parent 1:12 handle 120: fq_codel limit 1001 target 5000us interval 100000us ecn quantum 300 flows 1024
  110. get_limit:  CURLIMIT: 1001
  111. get_target defaulting to auto.
  112. get_ECN: ECN CURECN: ecn IECN: ECN EECN: ECN
  113. /usr/sbin/tc qdisc add dev em2 parent 1:13 handle 130: fq_codel limit 1001 target 5000us interval 100000us ecn quantum 300 flows 1024
  114.  
  115. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc qdisc add dev em2 parent 1:13 handle 130: fq_codel limit 1001 target 5000us interval 100000us ecn quantum 300 flows 1024
  116. /usr/sbin/tc filter add dev em2 parent 1:0 protocol all prio 999 u32 match ip protocol 0 0x00 flowid 1:12
  117.  
  118. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc filter add dev em2 parent 1:0 protocol all prio 999 u32 match ip protocol 0 0x00 flowid 1:12
  119. /usr/sbin/tc filter add dev em2 parent 1:0 protocol ip prio 1 handle 1/0xff fw classid 1:11
  120.  
  121. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc filter add dev em2 parent 1:0 protocol ip prio 1 handle 1/0xff fw classid 1:11
  122. /usr/sbin/tc filter add dev em2 parent 1:0 protocol ip prio 2 handle 2/0xff fw classid 1:12
  123.  
  124. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc filter add dev em2 parent 1:0 protocol ip prio 2 handle 2/0xff fw classid 1:12
  125. /usr/sbin/tc filter add dev em2 parent 1:0 protocol ip prio 3 handle 3/0xff fw classid 1:13
  126.  
  127. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc filter add dev em2 parent 1:0 protocol ip prio 3 handle 3/0xff fw classid 1:13
  128. /usr/sbin/tc filter add dev em2 parent 1:0 protocol ipv6 prio 4 handle 1/0xff fw classid 1:11
  129.  
  130. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc filter add dev em2 parent 1:0 protocol ipv6 prio 4 handle 1/0xff fw classid 1:11
  131. /usr/sbin/tc filter add dev em2 parent 1:0 protocol ipv6 prio 5 handle 2/0xff fw classid 1:12
  132.  
  133. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc filter add dev em2 parent 1:0 protocol ipv6 prio 5 handle 2/0xff fw classid 1:12
  134. /usr/sbin/tc filter add dev em2 parent 1:0 protocol ipv6 prio 6 handle 3/0xff fw classid 1:13
  135.  
  136. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc filter add dev em2 parent 1:0 protocol ipv6 prio 6 handle 3/0xff fw classid 1:13
  137. /usr/sbin/tc filter add dev em2 parent 1:0 protocol arp prio 7 handle 1/0xff fw classid 1:11
  138.  
  139. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc filter add dev em2 parent 1:0 protocol arp prio 7 handle 1/0xff fw classid 1:11
  140. /usr/sbin/tc filter add dev em2 parent 1:0 protocol ip prio 8 u32 match ip protocol 1 0xff flowid 1:13
  141.  
  142. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc filter add dev em2 parent 1:0 protocol ip prio 8 u32 match ip protocol 1 0xff flowid 1:13
  143. /usr/sbin/tc filter add dev em2 parent 1:0 protocol ipv6 prio 9 u32 match ip protocol 1 0xff flowid 1:13
  144.  
  145. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc filter add dev em2 parent 1:0 protocol ipv6 prio 9 u32 match ip protocol 1 0xff flowid 1:13
  146. egress shaping activated
  147. /usr/sbin/ip link add name TMP_IFB_4_SQM type ifb
  148.  
  149. cmd_wrapper: ip: SUCCESS: /usr/sbin/ip link add name TMP_IFB_4_SQM type ifb
  150. /usr/sbin/tc qdisc replace dev TMP_IFB_4_SQM ingress
  151.  
  152. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc qdisc replace dev TMP_IFB_4_SQM ingress
  153. QDISC ingress is useable.
  154. /usr/sbin/ip link set dev TMP_IFB_4_SQM down
  155.  
  156. cmd_wrapper: ip: SUCCESS: /usr/sbin/ip link set dev TMP_IFB_4_SQM down
  157. /usr/sbin/ip link delete TMP_IFB_4_SQM type ifb
  158.  
  159. cmd_wrapper: ip: SUCCESS: /usr/sbin/ip link delete TMP_IFB_4_SQM type ifb
  160. IFACE: em2 MTU: 1500
  161. get_htb_quantum: 1: em2, 2: 42500, 3: 1000
  162. get_burst: 1: 1500, 2: 42500, 3: 1000
  163. get_burst (by duration): BURST [Byte]: 5312, BANDWIDTH [Kbps]: 42500, DURATION [us]: 1000
  164. IFACE: em2 MTU: 1500
  165. get_htb_burst: 1: em2, 2: 42500, 3: 1000
  166. get_burst: 1: 1500, 2: 42500, 3: 1000
  167. get_burst (by duration): BURST [Byte]: 5312, BANDWIDTH [Kbps]: 42500, DURATION [us]: 1000
  168. /usr/sbin/tc qdisc del dev em2 handle ffff: ingress
  169. RTNETLINK answers: Invalid argument
  170. cmd_wrapper: tc: FAILURE (2): /usr/sbin/tc qdisc del dev em2 handle ffff: ingress
  171. cmd_wrapper: tc: LAST ERROR: RTNETLINK answers: Invalid argument
  172. /usr/sbin/tc qdisc add dev em2 handle ffff: ingress
  173.  
  174. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc qdisc add dev em2 handle ffff: ingress
  175. /usr/sbin/tc qdisc del dev ifb4em2 root
  176. RTNETLINK answers: No such file or directory
  177. cmd_wrapper: tc: FAILURE (2): /usr/sbin/tc qdisc del dev ifb4em2 root
  178. cmd_wrapper: tc: LAST ERROR: RTNETLINK answers: No such file or directory
  179. Do not perform DSCP based filtering on ingress. (1-tier classification)
  180. LLA: default link layer adjustment method for !cake is tc_stab
  181. /usr/sbin/tc qdisc add dev ifb4em2 root handle 1: htb default 10
  182.  
  183. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc qdisc add dev ifb4em2 root handle 1: htb default 10
  184. /usr/sbin/tc class add dev ifb4em2 parent 1: classid 1:1 htb quantum 5312 rate 42500kbit ceil 42500kbit burst 5312 cburst 5312
  185.  
  186. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc class add dev ifb4em2 parent 1: classid 1:1 htb quantum 5312 rate 42500kbit ceil 42500kbit burst 5312 cburst 5312
  187. /usr/sbin/tc class add dev ifb4em2 parent 1:1 classid 1:10 htb quantum 5312 rate 42500kbit ceil 42500kbit burst 5312 cburst 5312 prio 0
  188.  
  189. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc class add dev ifb4em2 parent 1:1 classid 1:10 htb quantum 5312 rate 42500kbit ceil 42500kbit burst 5312 cburst 5312 prio 0
  190. get_limit:  CURLIMIT: 1001
  191. get_target defaulting to auto.
  192. get_ECN: ECN CURECN: ecn IECN: ECN EECN: ECN
  193. /usr/sbin/tc qdisc add dev ifb4em2 parent 1:10 handle 110: fq_codel limit 1001 target 5000us interval 100000us ecn flows 1024
  194.  
  195. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc qdisc add dev ifb4em2 parent 1:10 handle 110: fq_codel limit 1001 target 5000us interval 100000us ecn flows 1024
  196. /usr/sbin/ip link set dev ifb4em2 up
  197.  
  198. cmd_wrapper: ip: SUCCESS: /usr/sbin/ip link set dev ifb4em2 up
  199. /usr/sbin/tc filter add dev em2 parent ffff: protocol all prio 10 u32 match u32 0 0 flowid 1:1 action mirred egress redirect dev ifb4em2
  200.  
  201. cmd_wrapper: tc: SUCCESS: /usr/sbin/tc filter add dev em2 parent ffff: protocol all prio 10 u32 match u32 0 0 flowid 1:1 action mirred egress redirect dev ifb4em2
  202. ingress shaping activated
  203. simple.qos was started on em2 successfully
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement