Linux??QOS???????
???????????? ???????[ 2015/9/15 13:39:48 ] ?????????????? ????
?????????????????????????????£?
????cos tos dscp?????????:
????1??COS????????ISL??802.1Q??????е?ISL??802??1Q?????е?3λ????COS????????????3bit??0–7??????
????802.1Q:
????2??TOS?????????IP??????е?8λTOS????λ??????????????????8λ???3λ????????????4λ???????????(??????С?????????????????????С???á?????????λ?1??????Ч???????0??????????????λ????????0
????3??DSCP???????IP?е?8λTOS??α?????????????????????6λ??????????????0–63????64????????????6λ?е??3λ????????????3λ???0?????????DSCP??TOS????????????? ????λ????????????
???????COS???????????3λ?????????????????????COS??TOS??DSCP?е?????????
????DSCP??λ?????????????????????????????????????????????????????????????·???????????豸???????????????У??????????????????????????????????????????????Щ???????漰??DSCP??λ????????RFC2474???о?????????Χ?????????????????????μ?RFC3246????????????RFC2597?????????Щ?????????????????y???????????????????????С???????????????????
????RFC??????DSCP?46???????????????6λDSCP?????????101110????????????????VoIP??IP?????????????y??????????????????????????12??????????????????????????????
????????cos??dscp???????????????????????????????????豸??????????б?????????????????Щ????tc??u32??飬iptables??MARK?????iproute2?????.
??????Щ????????????????????????????????.
????QOS???????????????????????????????????
?????????????е????
????1. ????
????????????????????????????????????????????????????????????????????????????????????????????????????????λ???????????????“?????????”????????????????????Щ????????????????????
???????????????????????????????????????????ε???????????????У??ο? PRIO????????????????Σ???????????????????????????????
????2. ????
?????????????????????????????????????л??????
????3????
??????????????????????????????????????????????
????4.????
????????????????????????????е?????
????5. ????
?????????????????????????????????????μ???????????????????????
????6. ???
???????????????????????Щ???????
???????
????????????????fwmark??iptables??$ipt-mark;??ipchains???–mark????????????????????????????????????
?????????????е?????????????????????DSCP?????????????????????????????????μ?????·???????????????????
????QoS??????????????????????????????????????仯(?????????????)????
??????linux???????Tc??????????????????????. ???????????????????й???????????????????????TC????????tc??????qos??????.
??????????????豸?в????????qos?и????????????. ????QOS??????????????tc.
?????????????????
????????tc??????
?????????? ??ν???????????ε????????????????Σ?????????????μ?
????Qdisc –class –filter ???????????.
????qdisc ???й???(queueing discipline):
?????????????????????????.??????У?linux????????????????????????????????????????????????ж?????(?? tcp)????????????????????.??????????linux ???????е???????????????????????÷?????У???”?????????”.?????????????????? tc ???(????????).?????????????????????????????????????????????????????? qdisc ???й????????????????.?????????????? qdisc????????????????????????????????????????.
???????? QDisc ?? pfifo ??????????????????κε????????????????????????????????.?????????????????????????????????.???е???й?????? FIFO ????????RED ??????????SFQ ?????????к?????? Token Bucket????????? CBQ??CBQ ???????????У???????????????????У????????? CBQ
????Class ??
????class ??????????????.????????????????????????????IP??в???????????????????????????ò????class??????????????????.
????Filter ????
????filter ??????????????????????????
????????tc??????????????У?fwmark????????u32 ????????????·?????????? RSVP ???????????????IPV6??IPV4????????У?fwmark ????????????????? Linux netfilter ??????????????? u32 ???????????????????? ANY ??????? .??????????filter (??????)????QDisc ???????????????????
????????tc???????????????????.?????????????????????????????????QOS.
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11