2 Note all these are mere examples which can be customized to your needs
6 AF PHB built using CBQ, DSMARK,GRED (default in GRIO mode) ,RED for BE
7 and the tcindex classifier with some algorithmic mapping
11 EF PHB built using CBQ (for rate control and prioritization),
12 DSMARK( to remark DSCPs), tcindex classifier and RED for the BE
17 EF PHB using the PRIO scheduler, Token Bucket to rate control EF,
18 tcindex classifier, DSMARK to remark, and RED for the BE traffic
23 CB-3(1|2)-(u32/chains)
24 ======================
27 The major differences are that the classifier is u32 on -u32 extension
28 and IPchains on the chains extension. CB stands for color Blind
29 and 31 is for the mode where only a CIR and CBS are defined whereas
30 32 stands for a mode where a CIR/CBS + PIR/EBS are defined.
34 We look at one special subnet that we are interested in for simplicty
35 reasons to demonstrate the capability. We send the packets from that
36 subnet to AF4*, BE or end up dropping depending on the metering results.
39 The algorithm overview is as follows:
45 if !exceed meter1 tag as AF41
47 if !exceed meter2 tag as AF42
49 if !exceed meter 3 tag as AF43
53 default case: Any other subnet
54 -------------------------------
55 if !exceed meter 5 tag as AF43
60 One Egress side change the DSCPs of the packets to reflect AF4* and BE
61 based on the tags from the ingress.
63 -------------------------------------------------------------
68 Define some meters with + policing and give them IDs eg
70 meter1=police index 1 rate $CIR1 burst $CBS1
71 meter2=police index 2 rate $CIR2 burst $CBS2 etc
74 classify based on the DSCPs and use the policer ids to decide tagging
80 case AF41: /* tos&0xfc == 0x88 */
81 if (!exceed meter1) break;
82 case AF42: /* tos&0xfc == 0x90 */
87 case AF43: /* tos&0xfc == 0x98 */
94 if (!exceed meter4) tag as BE;
98 On the Egress side mark the proper AF tags