当前位置:网站首页>tos cos dscp 区别和作用
tos cos dscp 区别和作用
2022-06-26 00:04:00 【仗剑天涯 回首枉然】
tos cos 和dscp 都是通过iptable 的mange 的mark 标签来更改的。
谈到qos首先需要了解qos调度的几个重要过程,qos调度过程包括网络入口数据流量的分类和标记、骨干网设备上的拥塞避免和拥塞管理、网路出口的队列调度这几个重要过程.
1、cos和tos的区别:
通过acl对流量进行分类以后,紧接着就需要对报文进行标记,打标记可以在三层(ip)报文头上做,也可以在二层报文头上做.
tos(type of service)就是指在三层报文头(即ip头)作标记,cos(code of service)则是在二层报文头作标记,tos与cos只是qos的一种标记机制。
2、802.1p、ip preference、tos、dscp的区别:
(1)、802.1p:
当需要在二层报文头做标记的时候,由于单纯二层报文没有地方能打标记,二层打标记只能在trunk上完成,trunk要用到802.1q或isl协议,如果使用的是802.1q协议,标记会打在802.1q协议头的tci字段上,打了标记(优先级)后的报文,就称为802.1p报文了。
ToS是历史产物,有点简单粗暴,只有三位二进制数,加起来就八种,后来发现不够,就玩出了DSCP,把两者的对应关系搞清楚是非常必要的。

ToS是三位二进制,所以有八位,0-7,和DSCP的对应关系,对应的DSCP就是ToS加上五位0,那不就是乘以8的关系么?
比如ToS值为1,那么DSCP就是100000,也就是32,*8的关系
边栏推荐
- Longitude and latitude multipoint acquisition center point has been solved
- shell正则表达式
- Focal loss
- 图文大师印章简易制作
- 物联网亿万级通信一站式解决方案EMQ
- 2022 explosion proof electrical operation certificate examination question bank and simulation examination
- Basic concepts of machine learning
- Postman接口测试之断言
- GUN make (3) Makefile的规则
- JQ 自定义属性取值
猜你喜欢

Abnova丨CSV 单克隆抗体解决方案

RT thread project engineering construction and configuration - (Env kconfig)

28. contour discovery

Shengxin weekly issue 34

图文大师印章简易制作

Abnova丨ACTN4 DNA 探针解决方案

Simple making of master seal

Talking about interface test (I)

MySQL book borrowing system project database creation TABLE statement (combined primary key and foreign key settings)

快速生成1~20自然数,并轻松复制
随机推荐
Difference between app test and web test
Summary of in-depth learning optimization techniques
2021 - 1 - 15 notes de pêche Ctrl + C / V
UN make (6) makefile的条件执行
Obtain WiFi password through computer (only connected WiFi)
“热帖”统计
leetcode 300. Longest increasing subsequence (medium)
2022 documenter general basic (documenter) exam simulation 100 questions and online simulation exam
Assertion of postman interface test
leetcode 300. Longest Increasing Subsequence 最长递增子序列 (中等)
RT thread project engineering construction and configuration - (Env kconfig)
What is the process of opening a mobile card account? Is it safe to open an account online?
GUN make (2) 总述
OTA trigger
Postman斷言對應脚本的解釋
Region of Halcon: generation of multiple regions (4)
Exploring temporary information for dynamic network embedding
Interpretation of script corresponding to postman assertion
Reading notes on how to connect the network - hubs, routers and routers (III)
Cross validation -- a story that cannot be explained clearly