【问题标题】:What does the term POLICED in Linux network scheduler (tc qdisc) named after?Linux 网络调度程序 (tc qdisc) 中的 POLICED 一词以什么命名?
【发布时间】:2012-03-06 00:16:49
【问题描述】:

POLICED 表示限制进入包的速度,超过的包将被丢弃。

我在 include/linux/netdevice.h 中看到一条评论“skb 被警察枪杀”。

当然是一样的,但是这个名字背后有什么故事吗?

【问题讨论】:

    标签: linux-kernel trafficshaping


    【解决方案1】:

    是的-

    http://lxr.linux.no/#linux+v3.2.9/net/sched/Kconfig

    menuconfig NET_SCHED
            bool "QoS and/or fair queueing"
            select NET_SCH_FIFO
            ---help---
              When the kernel has several packets to send out over a network
              device, it has to decide which ones to send first, which ones to
              delay, and which ones to drop. This is the job of the queueing
              disciplines, several different algorithms for how to do this
              "fairly" have been proposed.
    ...
    config NET_ACT_POLICE
            tristate "Traffic Policing"
            depends on NET_CLS_ACT 
            ---help---
              Say Y here if you want to do traffic policing, i.e. strict
              bandwidth limiting. This action replaces the existing policing
              module.
    
              To compile this code as a module, choose M here: the
              module will be called act_police.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-08-06
      • 2014-12-26
      • 1970-01-01
      • 1970-01-01
      • 2011-04-14
      • 1970-01-01
      • 2018-07-17
      • 1970-01-01
      相关资源
      最近更新 更多