当前位置:网站首页>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的关系
边栏推荐
- Oracle常用的基础命令
- 2022 explosion proof electrical operation certificate examination question bank and simulation examination
- 代码覆盖率测试(一)
- Common deep learning optimizers
- 微信朋友圈测试点
- Laravel basic course routing and MVC - controller
- Viwi interface
- Postman接口测试之断言
- shell正则表达式
- leetcode 300. Longest Increasing Subsequence 最长递增子序列 (中等)
猜你喜欢

Postman断言对应脚本的解释

GUN make (2) 总述

biggan:large scale gan training for high fidelity natural image synthesis

阳光男孩陈颢天 受邀担任第六季完美童模全球总决赛代言人

"Hot post" Statistics

Interpretation of script corresponding to postman assertion

Reading notes on how to connect the network - hubs, routers and routers (III)

浅谈接口测试(一)

清甜女孩李斯霞 受邀担任第六季完美童模全球总决赛小主持人

What happens from entering a web address in the browser's input box to seeing the contents of the web page?
随机推荐
清甜女孩李斯霞 受邀担任第六季完美童模全球总决赛小主持人
浅谈接口测试(二)
元气少女王钰洁 受邀担任第六季完美童模全球总决赛代言人
MySQL book borrowing system project database creation TABLE statement (combined primary key and foreign key settings)
Web Testing
Oracle数据库开启备份准备工作
Common deep learning optimizers
Laravel basic course routing and MVC - routing
17.11 std::atomic续谈、std::async深入谈
完整复习(包含语法)--MYSQL正则表达式
RT thread project engineering construction and configuration - (Env kconfig)
JSON basic syntax
CityJSON
正则表达式
web测试
MySQL例题一 综合案例(多条件组合查询)
recvmsg & sendmsg
Code coverage test (I)
22. pixel remapping
Laravel basic course routing and MVC - controller