Marking traffic to and from CUE

Posted: July 13, 2006 by sankar in Cisco Unity Express

How to mark traffic coming in and out of CUE ?

class-map match-all SipControl
 match protocol sip
!

policy-map SipMark
 class SipControl
  set ip dscp cs3
 class class-default

 interface Service-Engine0/0
 ip unnumbered FastEthernet0/0
 ip route-cache flow  ——————————This command was used solely for the purpose of Netflow. Nothing to do w/marking
 service-module ip address 10.1.11.5 255.255.255.0
 service-module ip default-gateway 10.1.11.4
 service-policy input SipMark ——————– This policy map marks packets from CUE to CME (thats why its applied inbound). Thanks to Ted for correcting this. I had applied this service policy outbound in my earlier post

 dial-peer voice 20000 voip
 destination-pattern 3600
 session protocol sipv2
 session target ipv4:10.1.11.5
 dtmf-relay sip-notify
 codec g711ulaw
 ip qos dscp cs3 signaling  — This marks SIP control packets going from CME to CUE.
 no vad

Netflow output:

Protocol         Total    Flows   Packets Bytes  Packets Active(Sec) Idle(Sec)
——–         Flows     /Sec     /Flow  /Pkt     /Sec     /Flow     /Flow
TCP-WWW            447      0.0        25   335      0.0       0.4       1.8
UDP-NTP            218      0.0         1    76      0.0       0.3      15.4
UDP-other           34      0.0       260   201      0.0       9.1      15.5
ICMP                25      0.0        16   217      0.0      21.8      15.5
Total:             724      0.0        28   273      0.0       1.6       7.0

SrcIf         SrcIPaddress    DstIf         DstIPaddress    Pr SrcP DstP  Pkts
Se0/0         10.1.11.5       Local         10.1.11.4       01 0000 0303     6
Se0/0         10.1.11.5       Local         10.1.11.4       01 0000 0303    27
Se0/0         10.1.11.5       Local         10.1.11.4       11 8003 42BC   901
Se0/0         10.1.11.5       Local         10.1.11.4       11 13C4 13C4     3

10.1.11.5 is CUE, 10.1.11.4 is CME. Port 13C4 in hex translates to 5060. THis is the port on which SIP protocol listens for control packets.

Output of show policy-map interface

PSTNSw#sh policy-map int
 Service-Engine0/0

  Service-policy input: SipMark

    Class-map: SipControl (match-all)
      7 packets, 2911 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: protocol sip
      QoS Set
        dscp cs3
          Packets marked 7

    Class-map: class-default (match-any)
      125 packets, 51142 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any
PSTNSw#
PSTNSw#

Comments
  1. Ted Nugent says:

    This should be INBOUND not outbound, treat the Int Service-Engine just like any other interface… and these commands are taken from the ROUTERs perpective, you want to mark packet from CUE towards CME then you’re coming INTO the router just as if you were coming in from a remote network.

    interface Service-Engine0/0
    ip unnumbered FastEthernet0/0
    ip route-cache flow ——————————This command was used solely for the purpose of Netflow. Nothing to do w/marking
    service-module ip address 10.1.11.5 255.255.255.0
    service-module ip default-gateway 10.1.11.4
    service-policy output SipMark ——————– This policy map marks packets from CUE to CME (thats why its applied outbound)

  2. cciev says:

    Ted you are right. I have verified this using Acls and debugs. Thank you!

  3. Senthil Natarajan says:

    I am not able to apply the policy map for input.

    P8-BR2-RTR(config-if)#service-policy input marksip
    CBWFQ : Can be enabled as an output feature only

    TIA
    Senthil

  4. Namita Joshi says:

    can you please tell me how to match outbound traffics which are coming from cue to cucm through switch. I need the lan qos configuration for that.

Leave a comment