
Task 8.2 Traffic Marking..
Here is my answer to the question 8.2. Is this correct? It says to mark all outgoing packet except VOIP and OSPF packets with DE-bit.
!
class-map match-all CRITICAL
match not packet length min 80 max 100
match not protocol ospf
match any
!
policy-map STRICT
class CRITICAL
set fr-de
!
I am not sure I agree with SG with the way it classified the traffic. Wouldn't class ANY set fr-de on all packet including the OSPF and VOIP because it is not excluded from the ANY class! Pls help.
class-map match-any CRITICAL
match packet length min 80 max 100
match protocol ospf
!
policy-map MARK
class CRITICAL
class ANY
set fr-de
Comments
Chriso,
In the policy-map traffic that matches CRITICAL would therefore be excluded from further criteria and therefore not marked with FR-DE. If the order were ANY then CRITICAL is would match ANY and not progress to CRITICAL as you suggest.
Hi Chriso,
You solution also correct:
Either you can create a separate CLASS ANY and match any or use class class-default under policy-map and enable the Discard Bit.
I did a quick test working fine.
R6#show policy-map interface s1/0.604
Serial1/0.604
Service-policy output: MARK
Class-map: CRITICAL (match-any)
129 packets, 11052 bytes
5 minute offered rate 0 bps
Match: packet length min 80 max 100
122 packets, 10484 bytes
5 minute rate 0 bps
Match: protocol ospf
7 packets, 568 bytes
5 minute rate 0 bps
Class-map: class-default (match-any)
12 packets, 3804 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
QoS Set
fr-de
Packets marked 12
R6#show frame-relay pvc 604
PVC Statistics for interface Serial1/0 (Frame Relay DTE)
DLCI = 604, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial1/0.604
input pkts 183 output pkts 174 in bytes 20464
out bytes 20046 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 13
out bcast pkts 159 out bcast bytes 18486
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
pvc create time 00:22:06, last time pvc status changed 00:19:31
Good Luck