MQC – Frame Relay policing and marking


In a previous post we have seen how to configure the Frame Relay cloud (service provider FR switch) to strictly enforce the committed contract with the customer by enabling policing on incoming interface and traffic shaping with congestion management on outgoing interface, nevertheless the customer can opt to specify to the service provider which packet should be dropped when a congestion is experienced in the FR cloud, which is the topic of this post.

Figure1: Lab topology

As depicted in figure1, shaping is configured on the Frame Relay switch outgoing interface with congestion management, in which all packets marked with “DE” bit will be discarded in case of s1/0 shaping queue congestion (DE threshold reached).

R2, the sender, will have the responsibility to mark for FRS all packets that it judge eligible for discard.

A traffic generator station connected to R2 will produce two different flows of traffic to the receiver station connected to R1, the first flow, traffic1, is supposed to represent a critical application traffic, the second, traffic2, is considered as junk traffic.

As shown below, in the first section different tests are performed without any policing and marking, then in the second section the same configurations are reproduced but with policing and marking:

1) Without policing and DE marking

1-a) Test1:

Critical application: traffic1 rate 32kbps – destination (192.168.201.10/udp 5001).

1-b) Test2:

Critical application: traffic1 – 32kbps – destination (192.168.201.10/udp 5001).

Junk traffic: traffic2 – 32kbps – destination (192.168.201.10/udp 5003).

1-c) Test3:

Critical application: traffic1 – 32kbps – destination (192.168.201.10/udp 5001).

Junk traffic: traffic2 – 64kbps – destination (192.168.201.10/udp 5003).

2) With policing and DE marking

2-a) Test4:

Critical application: traffic1 – 32kbps – destination (192.168.201.10/udp 5001).

Junk traffic: traffic2 – 32kbps – destination (192.168.201.10/udp 5003).

2-b) Test5:

Critical application: traffic1 – 32kbps – destination (192.168.201.10/udp 5001).

Junk traffic: traffic2 – 64kbps – destination (192.168.201.10/udp 5003).

 

1) Without policing and DE marking

1-a) Test1:

  • Critical application: traffic1 rate 32kbps – destination (192.168.201.10/udp 5001).
  • No policing at the sender R2.

FRS:

FRS_QOS#sh frame pvc 201

 

PVC Statistics for interface Serial1/0 (Frame Relay DCE)

 

DLCI = 201, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1/0

 

input pkts 77 output pkts 289 in bytes 26225

out bytes 379518 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

30 second input rate 0 bits/sec, 0 packets/sec


30 second output rate 32000 bits/sec, 2 packets/sec

switched pkts 77

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 0 pkt above DE 0 policing drop 0

pvc create time 01:34:11, last time pvc status changed 00:11:43


Congestion DE threshold 28

cir 64000 bc 8000 be 0 byte limit 1000 interval 125

mincir 32000 byte increment 1000 Adaptive Shaping none

pkts 292 bytes 384024 pkts delayed 2 bytes delayed 936


shaping inactive

traffic shaping drops 0

Queueing strategy: fifo


Output queue 0/40, 0 drop, 6 dequeued

FRS_QOS#

The FRS output queue is not congested, so very little queuing and no drops

Figure2 : Traffic1 at the destination station

Note the jitter for traffic1 is almost 0 (good performance)

1-b) Test2:

  • Critical application: traffic1 – 32kbps – destination (192.168.201.10/udp 5001).
  • Junk traffic: traffic2 – 32kbps – destination (192.168.201.10/udp 5003).
  • No policing at the sender R2.

R2:

R2(config-fr-dlci)#do sh frame pvc 102

 

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

 

DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.102

 

input pkts 120 output pkts 3754 in bytes 36944

out bytes 5535345 dropped pkts 0 in FECN pkts 0

in BECN pkts 0 out FECN pkts 0 out BECN pkts 0

in DE pkts 0 out DE pkts 0

out bcast pkts 36 out bcast bytes 11889

30 second input rate 0 bits/sec, 0 packets/sec


30 second output rate 64000 bits/sec, 5 packets/sec

pvc create time 00:33:26, last time pvc status changed 00:31:56

R2(config-fr-dlci)#

 

R2(config-fr-dlci)#do sh int s0/0

Serial0/0 is up, line protocol is up

Hardware is PowerQUICC Serial

MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,

reliability 255/255, txload 10/255, rxload 1/255

Encapsulation FRAME-RELAY, loopback not set

Keepalive set (10 sec)

LMI enq sent 207, LMI stat recvd 207, LMI upd recvd 0, DTE LMI up

LMI enq recvd 0, LMI stat sent 0, LMI upd sent 0

LMI DLCI 0 LMI type is ANSI Annex D frame relay DTE

Broadcast queue 0/64, broadcasts sent/dropped 37/0, interface broadcasts 0

Last input 00:00:04, output 00:00:00, output hang never

Last clearing of “show interface” counters 00:34:34

Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

Queueing strategy: fifo

Output queue :0/40 (size/max)

30 second input rate 0 bits/sec, 0 packets/sec


30 second output rate 64000 bits/sec, 5 packets/sec

328 packets input, 40351 bytes, 0 no buffer

Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

1 input errors, 0 CRC, 1 frame, 0 overrun, 0 ignored, 0 abort

4340 packets output, 6106331 bytes, 0 underruns

0 output errors, 0 collisions, 1 interface resets

0 output buffer failures, 0 output buffers swapped out

2 carrier transitions

DCD=up DSR=up DTR=up RTS=up CTS=up

 

R2(config-fr-dlci)#

64kbps represents the aggregated bandwidth of the two applications: traffic1 and traffic2.

FRS:

FRS_QOS#sh frame pvc 201

 

PVC Statistics for interface Serial1/0 (Frame Relay DCE)

 

DLCI = 201, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1/0

 

input pkts 2 output pkts 506 in bytes 658

out bytes 757672 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

30 second input rate 0 bits/sec, 0 packets/sec

30 second output rate 64000 bits/sec, 5 packets/sec

switched pkts 2

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 0 pkt above DE 0 policing drop 0

pvc create time 02:11:44, last time pvc status changed 00:49:17

Congestion DE threshold 28

cir 64000 bc 8000 be 0 byte limit 1000 interval 125

mincir 32000 byte increment 1000 Adaptive Shaping none

pkts 498 bytes 745656 pkts delayed 498 bytes delayed 745656

shaping active

traffic shaping drops 0

Queueing strategy: fifo

Output queue 23/40, 0 drop, 502 dequeued

FRS_QOS#

FRS output queue is congested but no dropping because DE threshold not reached.

Figure3 : Traffic1 at the destination station

Traffic1 received at the destination station at the same rate sending rate of 32kbps without losses but with a bigger delays and jitter (Figure3).

1-c) Test3:

  • Critical application: traffic1 – 32kbps – destination (192.168.201.10/udp 5001).
  • Junk traffic: traffic2 – 64kbps – destination (192.168.201.10/udp 5003).
  • No policing at the sender R2.

R2:

R2(config-fr-dlci)#do sh int s0/0

Serial0/0 is up, line protocol is up

Hardware is PowerQUICC Serial

MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,

reliability 255/255, txload 16/255, rxload 1/255

Encapsulation FRAME-RELAY, loopback not set

Keepalive set (10 sec)

LMI enq sent 255, LMI stat recvd 255, LMI upd recvd 0, DTE LMI up

LMI enq recvd 0, LMI stat sent 0, LMI upd sent 0

LMI DLCI 0 LMI type is ANSI Annex D frame relay DTE

Broadcast queue 0/64, broadcasts sent/dropped 45/0, interface broadcasts 0

Last input 00:00:03, output 00:00:00, output hang never

Last clearing of “show interface” counters 00:42:34

Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

Queueing strategy: fifo

Output queue :0/40 (size/max)

30 second input rate 0 bits/sec, 0 packets/sec


30 second output rate 97000 bits/sec, 8 packets/sec

406 packets input, 47591 bytes, 0 no buffer

Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

1 input errors, 0 CRC, 1 frame, 0 overrun, 0 ignored, 0 abort

7079 packets output, 10124289 bytes, 0 underruns

0 output errors, 0 collisions, 1 interface resets

0 output buffer failures, 0 output buffers swapped out

2 carrier transitions

DCD=up DSR=up DTR=up RTS=up CTS=up

 

R2(config-fr-dlci)#

Figure4: effect of junk traffic (64kbps) traffic on critical traffic

As you can note from the figure4, the critical traffic is experiencing bad performance with packets drops and high jitter.

FRS:

FRS_QOS#sh frame pvc 201

 

PVC Statistics for interface Serial1/0 (Frame Relay DCE)

 

DLCI = 201, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1/0

 

input pkts 2 output pkts 575 in bytes 658

out bytes 863650 dropped pkts 311 in pkts dropped 0

out pkts dropped 311 out bytes dropped 464782

late-dropped out pkts 311 late-dropped out bytes 464782

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

30 second input rate 0 bits/sec, 0 packets/sec

30 second output rate 63000 bits/sec, 5 packets/sec

switched pkts 2

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 311 pkt above DE 0 policing drop 0

pvc create time 02:07:04, last time pvc status changed 00:44:35

Congestion DE threshold 28

cir 64000 bc 8000 be 0 byte limit 1000 interval 125

mincir 32000 byte increment 1000 Adaptive Shaping none

pkts 581 bytes 872662 pkts delayed 581 bytes delayed 872662

shaping active

traffic shaping drops 0

Queueing strategy: fifo

Output queue 39/40, 318 drop, 587 dequeued

FRS_QOS# 

FRS output queue is heavily congested and DE threshold is reached, therefore packets marked with “DE” bit are dropped.

2) With policing and DE marking

2-a) Test4:

  • Critical application: traffic1 – 32kbps – destination (192.168.201.10/udp 5001).
  • Junk traffic: traffic2 – 32kbps – destination (192.168.201.10/udp 5003).
  • Policing configured on R2.

There is two ways of configuring MQC Frame Relay shaping:

The first is to use traditional MQC with “match class” and match “fr-dlci” in a class map to specify which traffic will be policed (figure 5).

The second is to make sure the policed traffic fall in the “class-default” class map and apply the policy directly to the PVC (figure 6).

In our example we use the second one.

Figure 5: Apply policy to the main interface

Figure 6: Apply policy directly to a specific PVC

Parameters 

FR End-device, sender 

FR switch 

FR End-device, receiver 

Shaping (outbound)

Policing (outbound)

Policing (inbound) 

Shaping (outbound) holdq=40

Shaping (inbound) 

CIR 

64000

16000 

64kbps 

Congestion management 

 

DE 

70% 

Bc=CIR*Tc 

64000

2000 

8000 

 

Tc 

125ms

125ms 

125ms 

 

Be 

0

0 

0 

 

 

R2 (sender) configuration:

ip access-list extended TRAFFIC1

permit udp host 192.168.102.10 host 192.168.201.10 eq 5001

This ACL match the critical application traffic.

class-map match-all TRAFFIC1_cmap

match access-group name TRAFFIC1

!

policy-map POLICY_R2

class TRAFFIC1_cmap

class class-default

police cir 16000 bc 2000

conform-action transmit

exceed-action set-frde-transmit

An empty class “TRAFFIC1_map” for the critical traffic is included in the policy-map to separate all that is not traffic1 into “class-default” class (traffic2 included) so we can apply a two color policing (figure7) that transmit conformed traffic and mark all that exceed with “DE” bit.

map-class frame-relay FR_mapc_R2

frame-relay traffic-rate 64000 64000

service-policy output POLICY_R2

The overall traffic through the PVC is shaped at 64kbps and a subset of that traffic is policed at 16kbps (through the policy applied in the output direction).

interface Serial0/0.102 point-to-point


frame-relay interface-dlci 102


class FR_mapc_R2

Then the map-class is applied directly to the PVC 102

Figure7: 2-color policing


FRS:

FRS_QOS#sh frame pvc 201

 

PVC Statistics for interface Serial1/0 (Frame Relay DCE)

 

DLCI = 201, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1/0

 

input pkts 18 output pkts 1064 in bytes 3921

out bytes 1584660 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 86

out bcast pkts 0 out bcast bytes 0

30 second input rate 0 bits/sec, 0 packets/sec


30 second output rate 63000 bits/sec, 5 packets/sec

switched pkts 18

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 0 pkt above DE 0 policing drop 0

pvc create time 01:39:33, last time pvc status changed 01:38:13


Congestion DE threshold 28

cir 64000 bc 8000 be 0 byte limit 1000 interval 125

mincir 32000 byte increment 1000 Adaptive Shaping none

pkts 1064 bytes 1584660 pkts delayed 563 bytes delayed 836566


shaping active

traffic shaping drops 0

Queueing strategy: fifo


Output queue 7/40, 0 drop, 570 dequeued

FRS_QOS#

Note that output packets are marked with “DE” bit but no dropping because the threshold of 70% (28 out of 40) is not reached, so both traffic1 and traffic2 are received by R1 at the sender rate as shown in figure 8 and figure 9.

Figure8: traffic1 at the receiver station

Figure9: traffic2 at the receiver station

R1:

R1#sh frame pvc 201

 

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

 

DLCI = 201, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.201

 

input pkts 22963 output pkts 3143 in bytes 34172308

out bytes 598859 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 2774 out DE pkts 0

out bcast pkts 122 out bcast bytes 40129

5 minute input rate 57000 bits/sec, 2 packets/sec

5 minute output rate 4000 bits/sec, 2 packets/sec

pvc create time 02:01:04, last time pvc status changed 02:01:04

cir 64000 bc 8000 be 0 byte limit 1000 interval 125

mincir 32000 byte increment 1000 Adaptive Shaping none

pkts 3144 bytes 599039 pkts delayed 24 bytes delayed 8574

shaping inactive

traffic shaping drops 0

Queueing strategy: fifo

Output queue 0/40, 0 drop, 24 dequeued

R1#

The above output show that traffic can be marked as DE along the path but still can reach the destination because there was no congestion in the FR cloud.

2-b) Test5:

  • Critical application: traffic1 – 32kbps – destination (192.168.201.10/udp 5001).
  • Junk traffic: traffic2 – 64kbps – destination (192.168.201.10/udp 5003).
  • Policing configured on R2.

FRS:

FRS_QOS#sh frame-relay pvc 201

 

PVC Statistics for interface Serial1/0 (Frame Relay DCE)

 

DLCI = 201, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1/0

 

input pkts 4 output pkts 547 in bytes 2184

out bytes 817932 dropped pkts 111 in pkts dropped 0

out pkts dropped 111 out bytes dropped 166722

late-dropped out pkts 111 late-dropped out bytes 166722

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 420

out bcast pkts 0 out bcast bytes 0

30 second input rate 0 bits/sec, 0 packets/sec


30 second output rate 62000 bits/sec, 5 packets/sec

switched pkts 4

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 111 pkt above DE 0 policing drop 0

pvc create time 01:46:49, last time pvc status changed 01:45:28


Congestion DE threshold 28

cir 64000 bc 8000 be 0 byte limit 1000 interval 125

mincir 32000 byte increment 1000 Adaptive Shaping none

pkts 553 bytes 826944 pkts delayed 553 bytes delayed 826944


shaping active

traffic shaping drops 0

Queueing strategy: fifo


Output queue 28/40, 111 drop, 553 dequeued

FRS_QOS#

Traffic2 higher that the police rate of 16kbps is marked as “DE” at R2 and because of traffic2 high rate of 64kbps, FRS output queue is congested and reach the “DE” threshold, therefore FRS start dropping traffic2 marked with “DE”.

According to figure10 and figure11 traffic 1 is still received at the sender rate but not traffic 2 because it is marked with “DE” therefore dropped by the FRS

Figure10: traffic1 at the receiver station

Figure11: policed traffic2 at the receiver station

CONCLUSION:

Discard Eligible marking and dropping mechanism certainly resolves the problem of application sensitivity to dropping but not the delay and jitter sensitivity caused by queuing, for this, a separated queuing mechanism is needed for delay/jitter sensitive applications.

Differences between STP and RSTP


The following table outlines the main differences between Rapid STP (802.1w) and the legacy STP(802.1d):

STP (802.1d)

Rapid STP (802.1w)

In stable topology only the root sends BPDU and relayed by others. In stable topology all
bridges generate BPDU every Hello (2 sec) : used as “keepalives” mechanism.
Port states
Disabled
Blocking
Listening
Learning
Forwarding
Discarding (replaces disabled, blocking and listening)
Learning
Forwarding
To avoid flapping, it takes 3 seconds for a port to migrate from one protocol to another (STP / RSTP) in a mixed segment.
Port roles
Root (Forwarding)
Designated
(Forwarding)
Non-Designated
(Blocking)
Root (Forwarding)
Designated
(Forwarding)
Alternate
(Discarding)Backup (Discarding)
Additional configuration to make an end node port a port fast (in case a BPDU is received). – An edge port (end node port) is an integrated Link type which depends on the duplex : Point-to-point for full duplex & shared for half duplex).
Topology changes and convergence
Use timers for convergence (advertised by the root):
Hello
(2 sec)
Max Age
(20 sec = 10 missed hellos)
Forward delay timer (15 sec)
– Introduce proposal and agreement process for synchronization (< 1 sec).- Hello, Max Age and Forward delay timer used only for backward compatibility with standard STP
Only RSTP port receiving STP (802.1d) messages will behaves as standard STP.
Slow transition (50sec):
Blocking (20s) =>Listening (15s) =>Learning (15s) =>Forwarding
Faster transition on point-to-point and edge ports only:Less states – No learning state, doesn’t wait to be informed by others, instead, actively looks for possible failure by RLQ (Request Link Query) a feedback mechanism.
Use only 2 bits from the flag octet:Bit 7 : Topology Change Acknowledgment.Bit 0 : Topology Change Use other 6 bits of the flag octet (BPDU type 2/version 2):
Bit 1 : ProposalBit 2, 3 : Port roleBit 4 : LearningBit 5 : ForwardingBit 6 : AgreementBit 0, 7 : TCA & TCN for backward compatibility
The bridge that discover a change in the network inform the root, that in turns informs all others by sending BPDU with TCA bit set and instruct them to clear their DB entries after “short timer” (~Forward delay) expire. TC is flooded through the network, every bridge generate TC (Topology change) and inform its neighbors when it is aware of a topology change and immediately delete old DB entries.
If a non-root bridge doesn’t receive Hello for 10*Hello (advertised from the root), start claiming the root role by generating its own Hello. Wait for 3*Hello on a root port (advertised from the root) before deciding to act.
Wait until TC reach the root + short timer (~Forward delay) expires, then flash all root DB entries Delete immediately local DB except MAC of the port receiving the topology changes (proposal)

Frame Relay Switching and Policing Lab


OVERVIEW

A large part of Frame Relay documentation is focused on the configuration of end devices more than the FR cloud, which can make practicing Frame Relay quality of service very confusing and frustrating without an organized approach, this begins by setting a FR lab for testing and deployment; this is the purpose of the current post .

R2 and R1, customer devices, connected to FRS the frame Relay switch through back-to-back serial cables, a traffic generator is connected to R2 will generate traffic, through the FR cloud at different rates, destined to the receiver station connected to R1 (figure1).

To understand the role and the impact of QoS concepts like shaping, policing, congestion management and related parameters, we will focus on each one of them separately.

Note: The mentioned topology can be deployed on dynamips and GNS3 with the exception that clock rate has no effect, and clocking is fixed to 2mbps for serial interface, so to simulate connection mismatch you can use multiple serial connections (n*2mbps) as spokes for example and aggregate them to one serial connection (2mbps).

Figure1: FR Lab topology

The lab is organized as follow:

1) Frame Relay connectivity

    1-a) FR End-device

    1-b) FR switch

2) Shaping queue and congestion on FR end device

    2-a) Traffic rate:

    2-b) Shaping queue size:

    2-c) Shaping parameters:

3) Shaping queue and congestion on FR Switch

4) FR Congestion management, FECN/BECN

5) FR Congestion management, Discard Eligible bit

CONCLUSION

 

1) Frame Relay Connectivity

1-a) FR End-devices

Both R1 and R2 are connected to the Frame Relay cloud using point-to-point sub-interfaces, where local dlci’s are assigned and inverse-arp doesn’t mind because there is only one PVC in the other side thereby it is disabled, as depicted in the mindmap (figure 2).

Figure2:Inverse-ARP configuration

R1 (receiver):

interface Serial0/0
no ip address
encapsulation frame-relay

load-interval 30

no fair-queue

frame-relay traffic-shaping

no frame-relay inverse-arp

frame-relay lmi-type ansi

!

interface Serial0/0.201 point-to-point

ip address 172.16.0.201 255.255.0.0

frame-relay interface-dlci 201

load-interval 30

R2 (sender):

interface Serial0/0
no ip address
encapsulation frame-relay

load-interval 30

no fair-queue

frame-relay traffic-shaping

no frame-relay inverse-arp

frame-relay lmi-type ansi

!

interface Serial0/0.102 point-to-point

ip address 172.16.0.102 255.255.0.0

frame-relay interface-dlci 102

load-interval 30

 

1-b) FR switch

As follow the commands used to establish connectivity in the FR switch

FRS(config)#frame-relay switching Enable frame relay switching globally on a router.
FRS(config)#connect <name> <interface> <dlci> <interface> <dlci> – Set connections between FR PVCs (similar to “frame-relay route” command).- With FR switching, FR traffic shaping is not applied to routed PVCs (using “frame-relay route” command).
FRS(config-if)#frame-relay interface-dlci <dlci> switched Needed to directly associate FR map to a specific switched PVC
clockrate <bps> Because it is a lab environment and routers are connected through back-to-back serial cables, connected interfaces on FR switch are required be set as DCE to supply clocking on the line to customer DTE devices

Here is the configuration of the FR switch

FRS:

interface Serial1/0encapsulation frame-relayclockrate 64000

frame-relay traffic-shaping

frame-relay interface-dlci 201 switched

frame-relay lmi-type ansi

frame-relay intf-type dce

!

interface Serial1/1

encapsulation frame-relay

clockrate 128000

frame-relay interface-dlci 102 switched

frame-relay lmi-type ansi

frame-relay intf-type dce

!

frame-relay switching

connect 102_201 Serial1/1 102 Serial1/0 201

 

1) Shaping queue and congestion on FR end device

Before moving on here a short explanation of the main commands used with FR traffic shaping and policing:

PVC-basis 

Interface-basis 

 
interface Serial <X/X>frame-relay [traffic-shaping | policing] Enable traffic shaping or policing on the physical interface
frame-relay interface-dlci <dlci> switchedclass <mapclassname> interface Serial <X/X>frame-relay class <mapclassname> Assign the map-class directly to the PVC
map-class frame-relay <mapclassname> Define the map-class
frame-relay cir <bps>frame-relay bc <bits>frame-relay be <bits> Define shaping parameters
frame-relay holdq <max_size> Hold-queue <max_size> [out|in] Set the size of the shaping queue, 40 by default. The router start filling it when the interface is experiencing congestion, the bigger, the more delay; the lower, the more congestion and deleted packets.
frame-relay congestion threshold ecn <%> frame-relay congestion-managementthreshold ecn [bc|be] <%> Set the congestion management threshold in the shaping queue, if reached the router will mark returning traffic to the sender with BECN and if no returning traffic, the router send FECN packets to the receiver that in turns will generate Q.922 packets towards the sender that will be marked with FECN.
frame-relay congestion threshold de <%> frame-relay congestion-managementthreshold de <%> Set the congestion management threshold in the shaping queue, if reached the router will start deleting packets marked with “DE”

With frame relay shaping enabled and map class assigned to a PVC, shaping queue congestion, packet dropping and delay depend on many factors like the traffic rate , shaping queue size (holdq) and shaping parameters

1-a) Traffic rate:

To observe the effect of traffic rate on shaping queue congestion on R2, we will fix the shaping parameters on R2 (sender) to the maximum of the interface clock rate 128 kbps with no excess burst to allow the shaping queue to function at its full capacity.

Parameters 

FR End-device, sender 

Shaping (outbound) 

CIR 

128kbps 

Bc=CIR*Tc

16000 

Tc 

125ms 

Be 

  • Traffic is generated at the rate of 64kbps —> the shaping queue is not congested:
R2#sh int s0/0 | i output rate

30 second output rate 64000 bits/sec, 5 packets/sec
R2#sh frame pvc 102

 

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

 

DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.102

 

input pkts 1178 output pkts 1368 in bytes 5164

out bytes 2048886 dropped pkts 0 in FECN pkts 0

in BECN pkts 1177 out FECN pkts 0 out BECN pkts 0

in DE pkts 0 out DE pkts 0

out bcast pkts 5 out bcast bytes 1660

5 minute input rate 0 bits/sec, 5 packets/sec

5 minute output rate 57000 bits/sec, 5 packets/sec

pvc create time 00:57:16, last time pvc status changed 00:55:46


cir 128000
bc 16000
be 0 byte limit 2000 interval 125

mincir 64000 byte increment 2000 Adaptive Shaping none

pkts 1368 bytes 2048886 pkts delayed 0 bytes delayed 0


shaping inactive

traffic shaping drops 0

Queueing strategy: fifo


Output queue 0/40, 0 drop, 0 dequeued

R2#

  • Traffic is generated at the rate of 128kbps —> shaping queue is congested and packets are queued, the queue can still support the traffic rate
R2#sh int s0/0 | i output rate

30 second output rate 124000 bits/sec, 10 packets/sec
R2#sh frame pvc 102

 

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

 

DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.102

 

input pkts 398 output pkts 814 in bytes 1846

out bytes 1219010 dropped pkts 0 in FECN pkts 0

in BECN pkts 398 out FECN pkts 0 out BECN pkts 0

in DE pkts 0 out DE pkts 0

out bcast pkts 1 out bcast bytes 332

5 minute input rate 0 bits/sec, 5 packets/sec

5 minute output rate 40000 bits/sec, 10 packets/sec

pvc create time 01:11:26, last time pvc status changed 01:09:57


cir 128000
bc 16000
be 0 byte limit 2000 interval 125

mincir 64000 byte increment 2000 Adaptive Shaping none

pkts 798 bytes 1194978 pkts delayed 798 bytes delayed 1194978


shaping active

traffic shaping drops 0

Queueing strategy: fifo


Output queue 20/40, 0 drop, 798 dequeued

R2#

  • Traffic is generated at the rate of 180kbps higher that the interface clock rate —> the shaping queue become congested and can no more support the traffic rate, therefore begin dropping packets:
R2#sh frame pvc 102
 PVC Statistics for interface Serial0/0 (Frame Relay DTE)

 

DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.102

 

input pkts 2940 output pkts 7786 in bytes 12080

out bytes 11673976 dropped pkts 1920 in FECN pkts 0

in BECN pkts 2939 out FECN pkts 0 out BECN pkts 0

in DE pkts 0 out DE pkts 0

out bcast pkts 9 out bcast bytes 2988

5 minute input rate 0 bits/sec, 5 packets/sec


5 minute output rate 180000 bits/sec, 15 packets/sec

pvc create time 01:19:34, last time pvc status changed 01:18:04


cir 128000
bc 16000
be 0 byte limit 2000 interval 125

mincir 64000 byte increment 2000 Adaptive Shaping none

pkts 5823 bytes 8725550 pkts delayed 5820 bytes delayed 8721044


shaping active

traffic shaping drops 0

Queueing strategy: fifo


Output queue 40/40, 1927 drop, 5820 dequeued

R2#

 

1-b) Shaping queue size:

Now let’s try to increase the shaping queue size (holdq) up to 100 —> this can resolve the problem of dropping but packet will take more and more time to be dequeued and the delay will blow up and this is inacceptable for delay sensitive traffic.

R2:

R2#sh frame pvc 102
 PVC Statistics for interface Serial0/0 (Frame Relay DTE)

 

DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.102

 

input pkts 5200 output pkts 14247 in bytes 21319

out bytes 21362590 dropped pkts 3801 in FECN pkts 0

in BECN pkts 5199 out FECN pkts 0 out BECN pkts 0

in DE pkts 0 out DE pkts 0

out bcast pkts 16 out bcast bytes 5312

5 minute input rate 0 bits/sec, 5 packets/sec

5 minute output rate 184000 bits/sec, 15 packets/sec

pvc create time 01:26:38, last time pvc status changed 01:25:08


cir 128000
bc 16000
be 0 byte limit 2000 interval 125

mincir 64000 byte increment 2000 Adaptive Shaping none

pkts 10345 bytes 15501786 pkts delayed 10342 bytes delayed 15497280


shaping active

traffic shaping drops 0

Queueing strategy: fifo


Output queue 55/100, 0 drop, 123 dequeued

R2#

 

1-c) Shaping parameters:

To observe the effect of FR shaping parameters on shaping queue congestion, we will fix the generated traffic rate to 64 kbps and the shaping queue size on R2 to the default value of 40.

  • These are the shaping parameters applied to PVC 102 on R2:
Parameters 

FR End-device, sender 

Shaping (outbound) 

CIR 

128kbps

Bc=CIR*Tc

8000

Tc 

125ms 

Be 

With traffic rate of 64 kbps and CIR set to the clock rate capacity, there is no congestion:

R2:

R2(config-map-class)#do sh int s0/0 | i output rate

30 second output rate 64000 bits/sec, 5 packets/sec
R2(config-map-class)#do sh frame pvc 102

 

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

 

DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.102

 

input pkts 2 output pkts 216 in bytes 509

out bytes 321984 dropped pkts 0 in FECN pkts 0

in BECN pkts 0 out FECN pkts 0 out BECN pkts 0

in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 15000 bits/sec, 5 packets/sec

pvc create time 03:16:46, last time pvc status changed 03:15:16


cir 128000
bc 16000
be 0 byte limit 2000 interval 125

mincir 64000 byte increment 2000 Adaptive Shaping none

pkts 216 bytes 321984 pkts delayed 0 bytes delayed 0


shaping inactive

traffic shaping drops 0

Queueing strategy: fifo


Output queue 0/40, 0 drop, 0 dequeued

R2(config-map-class)#

  • Now with a CIR equal to the traffic rate 64kbps, the shaping queue is experiencing congestion but still no dropping:
Parameters 

FR End-device, sender 

Shaping (outbound) 

CIR 

64kbps 

Bc=CIR*Tc 

8000 

Tc 

125ms 

Be 

R2:

R2(config-map-class)#do sh int s0/0 | i output rate

30 second output rate 64000 bits/sec, 5 packets/sec
R2(config-map-class)#do sh frame pvc 102

 

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

 

DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.102

 

input pkts 2 output pkts 367 in bytes 658

out bytes 550064 dropped pkts 0 in FECN pkts 0

in BECN pkts 0 out FECN pkts 0 out BECN pkts 0

in DE pkts 0 out DE pkts 0

out bcast pkts 1 out bcast bytes 332

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 21000 bits/sec, 5 packets/sec

pvc create time 03:26:19, last time pvc status changed 03:24:50


cir 64000
bc 8000
be 0 byte limit 1000 interval 125

mincir 32000 byte increment 1000 Adaptive Shaping none

pkts 358 bytes 536546 pkts delayed 358 bytes delayed 536546


shaping active

traffic shaping drops 0

Queueing strategy: fifo


Output queue 13/40, 0 drop, 358 dequeued

R2(config-map-class)#

  • Now with a shaping rate capacity less that the traffic rate the shaping is queue is congested to the maximum and start dropping packets that can’t handle:
Parameters 

FR End-device, sender

Shaping (outbound) 

CIR 

32kbps 

Bc=CIR*Tc 

4000 

Tc 

125ms 

Be 

R2:

R2(config-map-class)#do sh frame pvc 102
 PVC Statistics for interface Serial0/0 (Frame Relay DTE)

 

DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.102

 

input pkts 26 output pkts 3893 in bytes 6340

out bytes 5818010 dropped pkts 203 in FECN pkts 0

in BECN pkts 0 out FECN pkts 0 out BECN pkts 0

in DE pkts 0 out DE pkts 0

out bcast pkts 12 out bcast bytes 3984

5 minute input rate 0 bits/sec, 0 packets/sec


5 minute output rate 65000 bits/sec, 5 packets/sec

pvc create time 03:37:08, last time pvc status changed 03:35:39


cir 32000
bc 4000 be 0 byte limit 500 interval 125

mincir 16000 byte increment 500 Adaptive Shaping none

pkts 3652 bytes 5457198 pkts delayed 3652 bytes delayed 5457198


shaping active

traffic shaping drops 0

Queueing strategy: fifo


Output queue 40/40, 205 drop, 3652 dequeued

R2(config-map-class)#

 

2) Shaping queue and congestion on FR Switch

Exactly the same concepts and observation as in an FR end-device, with the exception that the FR switch can manage the congestion, which will be treated in the next point.

3) FR Congestion management, FECN/BECN

The congestion management ecn threshold of 10% means that if the queue is filled up to 10 % the FR switch mark any returning traffic to the sender with BECN (Backward Explicit Congestion Notification) to notify the sender that its shaping rate is too high and it should be throttled back, each time the sender receive a BECN it decrease the CIR by 25%, but will never go below mincir (figure3 – first case).

If there is no traffic back to the sender from the receiver, the FR switch mark sender traffic with FECN (Forward Explicit Congestion Notification) to trigger the receiver to send back special q.922 packet toward the sender with BECN bit set (figure3 – second case).

Figure 3: FR FECN/BECN concept

Here is the summary of shaping parameters set in the network to test ECN:

Parameters 

FR End-device, sender 

FR switch 

FR End-device, receiver 

Shaping (outbound) 

Policing (inbound) 

Shaping (outbound) 

Shaping (inbound) 

CIR 

128kbps

(mincir=48kbps)

– 

64kbps

Congestion management

– 

ENC 

10%

Bc=CIR*Tc

16000 

– 

8000

– 

Tc 

125ms 

– 

125ms

– 

Be 

– 

0

– 

R2(sender):

interface Serial0/0.102 point-to-pointclass ADAPT_R2!

map-class frame-relay ADAPT_R2

frame-relay adaptive-shaping becn

frame-relay cir 128000

frame-relay mincir 48000

FRS:

map-class frame-relay SHAPE_R1frame-relay cir 64000frame-relay bc 8000

frame-relay be 0

frame-relay holdq 40

frame-relay congestion threshold ecn 10

!

interface Serial1/0

frame-relay interface-dlci 201 switched

class SHAPE_R1 

R1(receiver):

interface Serial0/0.201 point-to-pointframe-relay interface-dlci 201class FECN_REACT

!

map-class frame-relay FECN_REACT

frame-relay fecn-adapt

frame-relay cir 64000

frame-relay bc 8000

frame-relay be 0 

In our example, the ECN (Explicit Congestion Notification) is set to 10%, consequently if the FR switch PVC 102 shaping queue is filled up to 10% (4 out of 40) traffic is marked with FECN/BECN.

  • With a traffic rate of 48 kbps, the FR switch output interface queue size doesn’t reach the ECN threshold so the congestion mechanism is not triggered:

FRS:

FRS_QOS(config-if)#do sh frame pvc 201
 PVC Statistics for interface Serial1/0 (Frame Relay DCE)

 

DLCI = 201, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1/0

 

input pkts 98 output pkts 488 in bytes 6802

out bytes 593758 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0


in FECN pkts 0
in BECN pkts 0
out FECN pkts 0


out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

30 second input rate 0 bits/sec, 1 packets/sec

30 second output rate 48000 bits/sec, 5 packets/sec

switched pkts 98

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 0 pkt above DE 0 policing drop 0

pvc create time 00:19:46, last time pvc status changed 00:18:27


Congestion ECN threshold 4, not congested

cir 64000 bc 8000 be 0 byte limit 1000 interval 125

mincir 32000 byte increment 1000 Adaptive Shaping none

pkts 493 bytes 599830 pkts delayed 51 bytes delayed 3264


shaping inactive

traffic shaping drops 0

Queueing strategy: fifo


Output queue 0/40, 0 drop, 53 dequeued

FRS_QOS(config-if)#

  • With a traffic rate of 64 kbps, the FRS output queue already experiencing congestion and reach the ECN threshold triggering the congestion management mechanism:

FRS:

FRS_QOS(config-if)#do sh frame pvc 201
 PVC Statistics for interface Serial1/0 (Frame Relay DCE)

 

DLCI = 201, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1/0

 

input pkts 43 output pkts 144 in bytes 1675

out bytes 186358 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 22
out FECN pkts 22

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

30 second input rate 2000 bits/sec, 1 packets/sec

30 second output rate 64000 bits/sec, 5 packets/sec

switched pkts 43

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 0 pkt above DE 0 policing drop 0

pvc create time 00:26:22, last time pvc status changed 00:25:04


Congestion ECN threshold 4, congested

cir 64000 bc 8000 be 0 byte limit 1000 interval 125

mincir 32000 byte increment 1000 Adaptive Shaping none

pkts 152 bytes 198374 pkts delayed 130 bytes delayed 166768


shaping active

traffic shaping drops 0

Queueing strategy: fifo


Output queue 5/40, 0 drop, 137 dequeued

FRS_QOS#

The FRS output interface shaping queue has reached ECN threshold and marked 22 packets with FECN bit toward the receiver and consequently has received from it 22 packets marked with BECN toward the sender.

R1 (receiver):

R1#sh frame pvc 201
 PVC Statistics for interface Serial0/0 (Frame Relay DTE)

 

DLCI = 201, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.201

 

input pkts 4061 output pkts 1076 in bytes 4702782

out bytes 76079 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0


in FECN pkts 78 in BECN pkts 0 out FECN pkts 0


out BECN pkts 78 in DE pkts 0 out DE pkts 0

out bcast pkts 26 out bcast bytes 8545

5 minute input rate 59000 bits/sec, 5 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

pvc create time 00:25:34, last time pvc status changed 00:25:34

cir 64000 bc 8000 be 0 byte limit 1000 interval 125


mincir 32000 byte increment 1000 Adaptive Shaping none

pkts 1076 bytes 76079 pkts delayed 0 bytes delayed 0

shaping inactive

traffic shaping drops 0

Queueing strategy: fifo

Output queue 0/40, 0 drop, 0 dequeued

R1#

The receiver receive FECN marked packets and respond with q.922 packets with BECN bit set.

R2 (sender):

R2#sh frame pvc 102
 PVC Statistics for interface Serial0/0 (Frame Relay DTE)

 

DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.102

 

input pkts 1109 output pkts 4140 in bytes 76758

out bytes 4808531 dropped pkts 0 in FECN pkts 0


in BECN pkts 109 out FECN pkts 0 out BECN pkts 0

in DE pkts 0 out DE pkts 0

out bcast pkts 29 out bcast bytes 9619

5 minute input rate 0 bits/sec, 1 packets/sec

5 minute output rate 64000 bits/sec, 5 packets/sec


Shaping adapts to BECN

pvc create time 00:26:58, last time pvc status changed 00:25:29

cir 128000 bc 128000 be 0 byte limit 2000 interval 125

mincir 48000 byte increment 750 Adaptive Shaping BECN

pkts 4137 bytes 4804025 pkts delayed 292 bytes delayed 399128


shaping active

traffic shaping drops 0

Queueing strategy: fifo

Output queue 3/40, 0 drop, 292 dequeued

R2#

With adaptive shaping activated, the sender has received BECN marked packets.

 

4) FR Congestion management, Discard Eligible bit

Another concept of the FR congestion management is Frame Relay policing applied inbound (shaping is applied outbound).

Policing doesn’t perform any queuing and prevent network congestion by either marking traffic “DE” bit (Discard Eligible) or discard traffic exceeding FR traffic policing parameters

Inbound interface policing:

  • If (traffic < Bc) then traffic is transmitted to the outbound interface
  • If (Bc< traffic < Be) then traffic is market with “DE” bit and transmitted to the outbound interface
  • If (traffic > Be) then traffic is dropped

outbound interface shaping and congestion management:

  • If (packets in the shaping queue < DE threshold) packets are transmitted
  • If (packets in the shaping queue > DE threshold) packets with “DE” bit marked are dropped

Here is the summary of congestion management parameters for DE testing:

Parameters 

FR End-device, sender 

FR switch 

FR End-device, receiver 

Shaping (outbound) 

Policing (inbound) 

Shaping (outbound) 

Shaping (inbound) 

CIR 

48kbps

64kbps

Congestion management 

– 

DE

70%

Bc=CIR*Tc

6000

8000

– 

Tc 

125ms

125ms

– 

Be 

8000

0

– 

Configuration on FR switch:

map-class frame-relay SHAPE_R1
frame-relay cir 64000
frame-relay bc 8000

frame-relay be 0

frame-relay holdq 40


frame-relay congestion threshold de 70

!

map-class frame-relay POLICE_R1

frame-relay cir 48000

frame-relay bc 6000

frame-relay be 8000

!

interface Serial1/0

frame-relay traffic-shaping

frame-relay interface-dlci 201 switched

class SHAPE_R1

!

interface Serial1/1

frame-relay interface-dlci 102 switched


class POLICE_R1

frame-relay policing

  • Traffic is generated at the rate of 64 kbps

FRS (inbound PVC, policing):

FRS_QOS(config-map-class)#do sh frame pvc 102
 PVC Statistics for interface Serial1/1 (Frame Relay DCE)

 

DLCI = 102, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1/1

 

input pkts 352 output pkts 12 in bytes 511716

out bytes 1033 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

30 second input rate 60000 bits/sec, 5 packets/sec

30 second output rate 0 bits/sec, 0 packets/sec

switched pkts 352

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 0 pkt above DE 0 policing drop 0

pvc create time 05:14:01, last time pvc status changed 05:12:32

policing enabled, 347 pkts marked DE

policing Bc 6000
policing Be 8000 policing Tc 125 (msec)

in Bc pkts 12
in Be pkts 347
in xs pkts 0

in Bc bytes 1036
in Be bytes 521194
in xs bytes 0

FRS_QOS(config-map-class)#

The FR switch outbound PVC queue is experiencing congestion and the queue threshold is reached (> 28 out of 40) so the output interface drops all packets marked with “DE” as show in the following output:

FRS (outbound PVC, shaping):

FRS_QOS(config-map-class)#do sh frame pvc 201

 

PVC Statistics for interface Serial1/0 (Frame Relay DCE)

 

DLCI = 201, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1/0

 

input pkts 16 output pkts 442 in bytes 1554

out bytes 641412 dropped pkts 5 in pkts dropped 0

out pkts dropped 5 out bytes dropped 7510

late-dropped out pkts 5 late-dropped out bytes 7510

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 431

out bcast pkts 0 out bcast bytes 0

30 second input rate 0 bits/sec, 0 packets/sec

30 second output rate 61000 bits/sec, 5 packets/sec

switched pkts 16

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 5 pkt above DE 0 policing drop 0

pvc create time 05:14:19, last time pvc status changed 05:12:59

Congestion DE threshold 28

cir 64000 bc 8000 be 0 byte limit 1000 interval 125

mincir 32000 byte increment 1000 Adaptive Shaping none

pkts 442 bytes 641412 pkts delayed 442 bytes delayed 641412

shaping active

traffic shaping drops 0

Queueing strategy: fifo

Output queue 28/40, 5 drop, 446 dequeued

FRS_QOS(config-map-class)# 

Note: Policing with “DE” marking can be deployed on the customer FR end-device using class-based QoS.

I resumed all previously mentioned concepts in the following figure4:

Figure 4: Shaping and congestion mechanism

CONCLUSION

  • Use “connect” command on the FR switch to set the connection between switched FR PVCs so you can apply FR shaping and policing.
  • Pay attention to where you apply your shaping or policing policy, applied at PVC level will take precedence over the one applied at the sub-interface level, which in turns take precedence over the one applied at the main interface level. This is crucial when your are deploying multipoint sub-interfaces with several PVC’s on customer devices.
  • The FR switch is able to detect “DE” marked traffic and discard it in case of congestion of the output queue, “DE” traffic can be marked by policing at the FR switch inbound interface (if traffic is higher than Bc and lower than Be), this enable the service provider to reinforce the customer service contract; and by the sender FR customer device as well, by marking low priority traffic to be discarded first when congestion is experienced on the FR switch.
  • Traffic congestion, delay and dropping in the FR switch depend on the traffic rate, the shaping queue size and the shaping parameters.
%d bloggers like this: