1[ 2 { 3 "id": "0904", 4 "name": "Create HTB with default setting", 5 "category": [ 6 "qdisc", 7 "htb" 8 ], 9 "plugins": { 10 "requires": "nsPlugin" 11 }, 12 "setup": [ 13 ], 14 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root htb", 15 "expExitCode": "0", 16 "verifyCmd": "$TC qdisc show dev $DUMMY", 17 "matchPattern": "qdisc htb 1: root refcnt [0-9]+ r2q 10 default 0 direct_packets_stat.*direct_qlen", 18 "matchCount": "1", 19 "teardown": [ 20 "$TC qdisc del dev $DUMMY handle 1: root" 21 ] 22 }, 23 { 24 "id": "3906", 25 "name": "Create HTB with default-N setting", 26 "category": [ 27 "qdisc", 28 "htb" 29 ], 30 "plugins": { 31 "requires": "nsPlugin" 32 }, 33 "setup": [ 34 ], 35 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root htb default 10", 36 "expExitCode": "0", 37 "verifyCmd": "$TC qdisc show dev $DUMMY", 38 "matchPattern": "qdisc htb 1: root refcnt [0-9]+ r2q 10 default 0x10 direct_packets_stat.* direct_qlen", 39 "matchCount": "1", 40 "teardown": [ 41 "$TC qdisc del dev $DUMMY handle 1: root" 42 ] 43 }, 44 { 45 "id": "8492", 46 "name": "Create HTB with r2q setting", 47 "category": [ 48 "qdisc", 49 "htb" 50 ], 51 "plugins": { 52 "requires": "nsPlugin" 53 }, 54 "setup": [ 55 ], 56 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root htb r2q 5", 57 "expExitCode": "0", 58 "verifyCmd": "$TC qdisc show dev $DUMMY", 59 "matchPattern": "qdisc htb 1: root refcnt [0-9]+ r2q 5 default 0 direct_packets_stat.*direct_qlen", 60 "matchCount": "1", 61 "teardown": [ 62 "$TC qdisc del dev $DUMMY handle 1: root" 63 ] 64 }, 65 { 66 "id": "9502", 67 "name": "Create HTB with direct_qlen setting", 68 "category": [ 69 "qdisc", 70 "htb" 71 ], 72 "plugins": { 73 "requires": "nsPlugin" 74 }, 75 "setup": [ 76 ], 77 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root htb direct_qlen 1024", 78 "expExitCode": "0", 79 "verifyCmd": "$TC qdisc show dev $DUMMY", 80 "matchPattern": "qdisc htb 1: root refcnt [0-9]+ r2q 10 default 0 direct_packets_stat.*direct_qlen 1024", 81 "matchCount": "1", 82 "teardown": [ 83 "$TC qdisc del dev $DUMMY handle 1: root" 84 ] 85 }, 86 { 87 "id": "b924", 88 "name": "Create HTB with class rate and burst setting", 89 "category": [ 90 "qdisc", 91 "htb" 92 ], 93 "plugins": { 94 "requires": "nsPlugin" 95 }, 96 "setup": [ 97 "$TC qdisc add dev $DUMMY handle 1: root htb" 98 ], 99 "cmdUnderTest": "$TC class add dev $DUMMY parent 1: classid 1:1 htb rate 20kbit burst 1000", 100 "expExitCode": "0", 101 "verifyCmd": "$TC class show dev $DUMMY", 102 "matchPattern": "class htb 1:1 root prio 0 rate 20Kbit ceil 20Kbit burst 1000b cburst 1600b", 103 "matchCount": "1", 104 "teardown": [ 105 "$TC qdisc del dev $DUMMY handle 1: root" 106 ] 107 }, 108 { 109 "id": "4359", 110 "name": "Create HTB with class mpu setting", 111 "category": [ 112 "qdisc", 113 "htb" 114 ], 115 "plugins": { 116 "requires": "nsPlugin" 117 }, 118 "setup": [ 119 "$TC qdisc add dev $DUMMY handle 1: root htb" 120 ], 121 "cmdUnderTest": "$TC class add dev $DUMMY parent 1: classid 1:1 htb rate 20Kbit mpu 64", 122 "expExitCode": "0", 123 "verifyCmd": "$TC class show dev $DUMMY", 124 "matchPattern": "class htb 1:1 root prio 0 rate 20Kbit ceil 20Kbit burst 1600b cburst 1600b", 125 "matchCount": "1", 126 "teardown": [ 127 "$TC qdisc del dev $DUMMY handle 1: root" 128 ] 129 }, 130 { 131 "id": "9048", 132 "name": "Create HTB with class prio setting", 133 "category": [ 134 "qdisc", 135 "htb" 136 ], 137 "plugins": { 138 "requires": "nsPlugin" 139 }, 140 "setup": [ 141 "$TC qdisc add dev $DUMMY handle 1: root htb" 142 ], 143 "cmdUnderTest": "$TC class add dev $DUMMY parent 1: classid 1:1 htb rate 20Kbit prio 1", 144 "expExitCode": "0", 145 "verifyCmd": "$TC class show dev $DUMMY", 146 "matchPattern": "class htb 1:1 root prio 1 rate 20Kbit ceil 20Kbit burst 1600b cburst 1600b", 147 "matchCount": "1", 148 "teardown": [ 149 "$TC qdisc del dev $DUMMY handle 1: root" 150 ] 151 }, 152 { 153 "id": "4994", 154 "name": "Create HTB with class ceil setting", 155 "category": [ 156 "qdisc", 157 "htb" 158 ], 159 "plugins": { 160 "requires": "nsPlugin" 161 }, 162 "setup": [ 163 "$TC qdisc add dev $DUMMY handle 1: root htb" 164 ], 165 "cmdUnderTest": "$TC class add dev $DUMMY parent 1: classid 1:1 htb rate 20Kbit ceil 10Kbit", 166 "expExitCode": "0", 167 "verifyCmd": "$TC class show dev $DUMMY", 168 "matchPattern": "class htb 1:1 root prio 0 rate 20Kbit ceil 10Kbit burst 1600b cburst 1600b", 169 "matchCount": "1", 170 "teardown": [ 171 "$TC qdisc del dev $DUMMY handle 1: root" 172 ] 173 }, 174 { 175 "id": "9523", 176 "name": "Create HTB with class cburst setting", 177 "category": [ 178 "qdisc", 179 "htb" 180 ], 181 "plugins": { 182 "requires": "nsPlugin" 183 }, 184 "setup": [ 185 "$TC qdisc add dev $DUMMY handle 1: root htb" 186 ], 187 "cmdUnderTest": "$TC class add dev $DUMMY parent 1: classid 1:1 htb rate 20Kbit cburst 2000", 188 "expExitCode": "0", 189 "verifyCmd": "$TC class show dev $DUMMY", 190 "matchPattern": "class htb 1:1 root prio 0 rate 20Kbit ceil 20Kbit burst 1600b cburst 2000b", 191 "matchCount": "1", 192 "teardown": [ 193 "$TC qdisc del dev $DUMMY handle 1: root" 194 ] 195 }, 196 { 197 "id": "5353", 198 "name": "Create HTB with class mtu setting", 199 "category": [ 200 "qdisc", 201 "htb" 202 ], 203 "plugins": { 204 "requires": "nsPlugin" 205 }, 206 "setup": [ 207 "$TC qdisc add dev $DUMMY handle 1: root htb" 208 ], 209 "cmdUnderTest": "$TC class add dev $DUMMY parent 1: classid 1:1 htb rate 20Kbit mtu 2048", 210 "expExitCode": "0", 211 "verifyCmd": "$TC class show dev $DUMMY", 212 "matchPattern": "class htb 1:1 root prio 0 rate 20Kbit ceil 20Kbit burst 2Kb cburst 2Kb", 213 "matchCount": "1", 214 "teardown": [ 215 "$TC qdisc del dev $DUMMY handle 1: root" 216 ] 217 }, 218 { 219 "id": "346a", 220 "name": "Create HTB with class quantum setting", 221 "category": [ 222 "qdisc", 223 "htb" 224 ], 225 "plugins": { 226 "requires": "nsPlugin" 227 }, 228 "setup": [ 229 "$TC qdisc add dev $DUMMY handle 1: root htb" 230 ], 231 "cmdUnderTest": "$TC class add dev $DUMMY parent 1: classid 1:1 htb rate 20Kbit quantum 2048", 232 "expExitCode": "0", 233 "verifyCmd": "$TC class show dev $DUMMY", 234 "matchPattern": "class htb 1:1 root prio 0 rate 20Kbit ceil 20Kbit burst 1600b cburst 1600b", 235 "matchCount": "1", 236 "teardown": [ 237 "$TC qdisc del dev $DUMMY handle 1: root" 238 ] 239 }, 240 { 241 "id": "303a", 242 "name": "Delete HTB with handle", 243 "category": [ 244 "qdisc", 245 "htb" 246 ], 247 "plugins": { 248 "requires": "nsPlugin" 249 }, 250 "setup": [ 251 "$TC qdisc add dev $DUMMY handle 1: root htb r2q 5" 252 ], 253 "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root", 254 "expExitCode": "0", 255 "verifyCmd": "$TC qdisc show dev $DUMMY", 256 "matchPattern": "qdisc htb 1: root refcnt [0-9]+", 257 "matchCount": "0", 258 "teardown": [ 259 ] 260 } 261] 262