博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
路由器DSCP target
阅读量:2347 次
发布时间:2019-05-10

本文共 2511 字,大约阅读时间需要 8 分钟。

This is a target that changes the DSCP (Differentiated Services Field) marks inside a packet. The DSCP target is able to set any DSCP value inside a TCP packet, which is a way of telling routers the priority of the packet in question. For more information about DSCP, look at the RFC document.

这个target用于改变数据包里面DSCP(不同服务域)标记。DSCP target用来设置IP数据包里面的DSCP标记值,通过这种方式来告知路由器未决包的优先级。

Basically, DSCP is a way of differentiating different services into separate categories, and based on this, give them different priority through the routers. This way, you can give interactive TCP sessions (such as telnet, SSH, POP3) a very high fast connection, that may not be very suitable for large bulk transfers. If on the other hand the connection is one of low importance (SMTP, or whatever you classify as low priority), you could send it over a large bulky network with worse latency than the other network, that is cheaper to utilize than the faster and lower latency connections.

基本上,DSCP将不同的网络服务划分成不同的类别,在此基础之上,通过路由器给服务设置不同的优先级。最终,诸如telnet,SSH,POP3等交互性强的TCP会话将会得到高度快速的连接,这些服务是不适合传输大量数据负荷的;另外一方面,诸如SMTP等不重要的服务,这些服务可以传输大量数据,并且有大的延迟 。对于这些服务,设置更低的DSCP优先级。

Table 11-3. DSCP target options

DSCP目标参数选项

Option

--set-dscp

Example

iptables -t mangle -A FORWARD -p tcp --dport 80 -j DSCP --set-dscp 1

Explanation

This sets the DSCP value to the specified value. The values can be set either via class, see below, or with the --set-dscp, which takes either an integer value, or a hex value.

Option

--set-dscp-class

Example

iptables -t mangle -A FORWARD -p tcp --dport 80 -j DSCP --set-dscp-class EF

Explanation

This sets the DSCP field according to a predefined DiffServ class. Some of the possible values are EF, BE and the CSxx and AFxx values available. You can find more information at site. Do note that the --set-dscp-class and --set-dscp commands are mutually exclusive, which means you can not use both of them in the same command!

 

差分服务代码点 (DSCP) 概述

差分服务代码点 (DSCP) IP 数据包中的一个字段,它能将不同级别的服务指派到网络通讯中。这是通过用 DSCP 代码对网络上的每个数据包作标记并向其分配相应级别的服务来实现的。

DSCP “IP 优先服务类型字段的组合。为了利用只支持“IP 优先的旧路由器,会使用 DSCP 值,因为 DSCP 值与“IP 优先字段兼容。详细信息,请参阅 上的 RFC 2474

DSCP 工作原理

已启用服务质量 (QoS) 的程序会通过常规 QoS (GQoS) 应用程序编程接口 (API) 为通讯流请求特定的服务类型。可用的服务类型有:

  • 有保证的服务
    有保证的服务提供具有有限(保证最短的)延迟的高质量、可定量保证。
  • 受控加载服务
    受控加载服务提供没有有限延迟的高质量、可定量保证。

DSCP 是一个六位字段,包含有一些默认值,如下表所示。相同的“IP 优先 IEEE 802.1p 值在不同的列中显示。

 

服务类型

DSCP

IP 优先

IEEE 802.1p

网络控制

30

6

7

保证

28

5

5

受控加载

18

3

3

所有其他通讯

0

0

0

注意

  • 不能通过 GQoS API 请求网络控制服务。但可通过使用通讯控制 (TC) API 的网络管理应用程序请求该服务。
  • 默认 DSCP 值可以使用组策略进行远程编辑。

转载地址:http://cexvb.baihongyu.com/

你可能感兴趣的文章
一看就懂的设计模式--设计模式分类
查看>>
一看就懂的设计模式--模板方法
查看>>
一看就懂的设计模式--享元模式
查看>>
一看就懂的设计模式--策略模式
查看>>
spring Cloud 组建图
查看>>
腾讯云
查看>>
什么服务器比较好?
查看>>
阿里云+腾讯云采购季优惠攻略
查看>>
PCB设计容易出错的地方都有哪些?
查看>>
挠性电路板和刚性电路板的区别,以及柔性电路板焊接方法操作步骤
查看>>
如何做好一块PCB板,大神从以下几个方面做了论述
查看>>
学习笔记1之static
查看>>
学习笔记2之继承
查看>>
循环链表实现增、删、改、查等功能
查看>>
Android实现超链接和跑马灯
查看>>
实现二叉树先序、中序、后序遍历
查看>>
Socket客户端服务器连接
查看>>
简单字符设备驱动程序的操作步骤
查看>>
视频压缩:I帧、P帧、B帧
查看>>
视频编解码基础一
查看>>