rfc3290.txt
来自「RFC 的详细文档!」· 文本 代码 · 共 1,553 行 · 第 1/5 页
TXT
1,553 行
Meter4:
Type: TwoRateTokenBucket
ProfileA: Profile4
ConformanceTypeA: strict
ConformingOutputA: Queue1
ProfileB: Profile5
ConformanceTypeB: strict
ConformingOutputB: Marker1
NonConformingOutput: AbsoluteDropper1
Profile4:
Type: SimpleTokenBucket
AverageRate: 100 kbps
BurstSize: 20 kbytes
Profile5:
Type: SimpleTokenBucket
AverageRate: 100 kbps
BurstSize: 100 kbytes
5.1.5. Null Meter
A null meter has only one output: always conforming, and no
associated temporal profile. Such a meter is useful to define in the
event that the configuration or management interface does not have
the flexibility to omit a meter in a datapath segment.
Meter5:
Type: NullMeter
Output: Queue1
6. Action Elements
The classifiers and meters described up to this point are fan-out
elements which are generally used to determine the appropriate action
to apply to a packet. The set of possible actions that can then be
applied include:
- Marking
- Absolute Dropping
Bernet, et. al. Informational [Page 23]
RFC 3290 Diffserv Informal Management Model May 2002
- Multiplexing
- Counting
- Null action - do nothing
The corresponding action elements are described in the following
sections.
6.1. DSCP Marker
DSCP Markers are 1:1 elements which set a codepoint (e.g., the DSCP
in an IP header). DSCP Markers may also act on unmarked packets
(e.g., those submitted with DSCP of zero) or may re-mark previously
marked packets. In particular, the model supports the application of
marking based on a preceding classifier match. The mark set in a
packet will determine its subsequent PHB treatment in downstream
nodes of a network and possibly also in subsequent processing stages
within this router.
DSCP Markers for Diffserv are normally parameterized by a single
parameter: the 6-bit DSCP to be marked in the packet header.
Marker1:
Type: DSCPMarker
Mark: 010010
6.2. Absolute Dropper
Absolute Droppers simply discard packets. There are no parameters
for these droppers. Because this Absolute Dropper is a terminating
point of the datapath and has no outputs, it is probably desirable to
forward the packet through a Counter Action first for instrumentation
purposes.
AbsoluteDropper1:
Type: AbsoluteDropper
Absolute Droppers are not the only elements than can cause a packet
to be discarded: another element is an Algorithmic Dropper element
(see Section 7.1.3). However, since this element's behavior is
closely tied the state of one or more queues, we choose to
distinguish it as a separate functional datapath element.
Bernet, et. al. Informational [Page 24]
RFC 3290 Diffserv Informal Management Model May 2002
6.3. Multiplexor
It is occasionally necessary to multiplex traffic streams into a
functional datapath element with a single input. A M:1 (fan-in)
multiplexor is a simple logical device for merging traffic streams.
It is parameterized by its number of incoming ports.
Mux1:
Type: Multiplexor
Output: Queue2
6.4. Counter
One passive action is to account for the fact that a data packet was
processed. The statistics that result might be used later for
customer billing, service verification or network engineering
purposes. Counters are 1:1 functional datapath elements which update
a counter by L and a packet counter by 1 every time a L-byte sized
packet passes through them. Counters can be used to count packets
about to be dropped by an Absolute Dropper or to count packets
arriving at or departing from some other functional element.
Counter1:
Type: Counter
Output: Queue1
6.5. Null Action
A null action has one input and one output. The element performs no
action on the packet. Such an element is useful to define in the
event that the configuration or management interface does not have
the flexibility to omit an action element in a datapath segment.
Null1:
Type: Null
Output: Queue1
7. Queuing Elements
Queuing elements modulate the transmission of packets belonging to
the different traffic streams and determine their ordering, possibly
storing them temporarily or discarding them. Packets are usually
stored either because there is a resource constraint (e.g., available
bandwidth) which prevents immediate forwarding, or because the
queuing block is being used to alter the temporal properties of a
traffic stream (i.e., shaping). Packets are discarded for one of the
following reasons:
Bernet, et. al. Informational [Page 25]
RFC 3290 Diffserv Informal Management Model May 2002
- because of buffering limitations.
- because a buffer threshold is exceeded (including when shaping
is performed).
- as a feedback control signal to reactive control protocols such
as TCP.
- because a meter exceeds a configured profile (i.e., policing).
The queuing elements in this model represent a logical abstraction of
a queuing system which is used to configure PHB-related parameters.
The model can be used to represent a broad variety of possible
implementations. However, it need not necessarily map one-to-one
with physical queuing systems in a specific router implementation.
Implementors should map the configurable parameters of the
implementation's queuing systems to these queuing element parameters
as appropriate to achieve equivalent behaviors.
7.1. Queuing Model
Queuing is a function which lends itself to innovation. It must be
modeled to allow a broad range of possible implementations to be
represented using common structures and parameters. This model uses
functional decomposition as a tool to permit the needed latitude.
Queuing systems perform three distinct, but related, functions: they
store packets, they modulate the departure of packets belonging to
various traffic streams and they selectively discard packets. This
model decomposes queuing into the component elements that perform
each of these functions: Queues, Schedulers, and Algorithmic
Droppers, respectively. These elements may be connected together as
part of a TCB, as described in section 8.
The remainder of this section discusses FIFO Queues: typically, the
Queue element of this model will be implemented as a FIFO data
structure. However, this does not preclude implementations which are
not strictly FIFO, in that they also support operations that remove
or examine packets (e.g., for use by discarders) other than at the
head or tail. However, such operations must not have the effect of
reordering packets belonging to the same microflow.
Note that the term FIFO has multiple different common usages: it is
sometimes taken to mean, among other things, a data structure that
permits items to be removed only in the order in which they were
inserted or a service discipline which is non-reordering.
Bernet, et. al. Informational [Page 26]
RFC 3290 Diffserv Informal Management Model May 2002
7.1.1. FIFO Queue
In this model, a FIFO Queue element is a data structure which at any
time may contain zero or more packets. It may have one or more
thresholds associated with it. A FIFO has one or more inputs and
exactly one output. It must support an enqueue operation to add a
packet to the tail of the queue and a dequeue operation to remove a
packet from the head of the queue. Packets must be dequeued in the
order in which they were enqueued. A FIFO has a current depth, which
indicates the number of packets and/or bytes that it contains at a
particular time. FIFOs in this model are modeled without inherent
limits on their depth - obviously this does not reflect the reality
of implementations: FIFO size limits are modeled here by an
algorithmic dropper associated with the FIFO, typically at its input.
It is quite likely that every FIFO will be preceded by an algorithmic
dropper. One exception might be the case where the packet stream has
already been policed to a profile that can never exceed the scheduler
bandwidth available at the FIFO's output - this would not need an
algorithmic dropper at the input to the FIFO.
This representation of a FIFO allows for one common type of depth
limit, one that results from a FIFO supplied from a limited pool of
buffers, shared between multiple FIFOs.
In an implementation, packets are presumably stored in one or more
buffers. Buffers are allocated from one or more free buffer pools.
If there are multiple instances of a FIFO, their packet buffers may
or may not be allocated out of the same free buffer pool. Free
buffer pools may also have one or more thresholds associated with
them, which may affect discarding and/or scheduling. Other than
this, buffering mechanisms are implementation specific and not part
of this model.
A FIFO might be represented using the following parameters:
Queue1:
Type: FIFO
Output: Scheduler1
Note that a FIFO must provide triggers and/or current state
information to other elements upstream and downstream from it: in
particular, it is likely that the current depth will need to be used
by Algorithmic Dropper elements placed before or after the FIFO. It
will also likely need to provide an implicit "I have packets for you"
signal to downstream Scheduler elements.
Bernet, et. al. Informational [Page 27]
RFC 3290 Diffserv Informal Management Model May 2002
7.1.2. Scheduler
A scheduler is an element which gates the departure of each packet
that arrives at one of its inputs, based on a service discipline. It
has one or more inputs and exactly one output. Each input has an
upstream element to which it is connected, and a set of parameters
that affects the scheduling of packets received at that input.
The service discipline (also known as a scheduling algorithm) is an
algorithm which might take any of the following as its input(s):
a) static parameters such as relative priority associated with each
of the scheduler's inputs.
b) absolute token bucket parameters for maximum or minimum rates
associated with each of the scheduler's inputs.
c) parameters, such as packet length or DSCP, associated with the
packet currently present at its input.
d) absolute time and/or local state.
Possible service disciplines fall into a number of categories,
including (but not limited to) first come, first served (FCFS),
strict priority, weighted fair bandwidth sharing (e.g., WFQ), rate-
limited strict priority, and rate-based. Service disciplines can be
further distinguished by whether they are work-conserving or non-
work-conserving (see Glossary). Non-work-conserving schedulers can
be used to shape traffic streams to match some profile by delaying
packets that might be deemed non-conforming by some downstream node:
a packet is delayed until such time as it would conform to a
downstream meter using the same profile.
[DSARCH] defines PHBs without specifying required scheduling
algorithms. However, PHBs such as the class selecto
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?