Configuring Ethernet Virtual Connections

Ethernet Virtual Connection (EVC) as an association between two or more user network interfaces that identifies a point-to-point or multipoint-to-multipoint path within the service provider network. An EVC is a conceptual service pipe within the service provider network. A bridge domain is a local broadcast domain that is VLAN-ID-agnostic. An ethernet flow point (EFP) service instance is a logical interface that connects a bridge domain to a physical port or to an EtherChannel group in a router.

The Cisco ME 1200 NID supports the application software control modules and interfaces related to EVC.

How to Configure Ethernet Virtual Circuit

Configuring Ethernet Virtual Circuit

     Command or ActionPurpose
    Step 1Configure NID


    Example:
    UCS# Configure NID 1
     

    Opens a new session for NID 1.

     
    Step 2ProvisionEVC


    Example:
    UCS# ProvisionEVC
     

    Enters the ProvisionEVC mode.

     
    Step 3addEVC evcConfiguration {instanceevc_instance_id | learning {enable | disable} |nni_ports | nni_vid nni_vid_outer_tag | policer_idpolicer_id}


    Example:
    UCS(ProvisionEVC)# addEVC evcConfiguration nni_vid 101
    UCS(ProvisionEVC)# addEVC evcConfiguration learning enable
    UCS(ProvisionEVC)# addEVC evcConfiguration nni_ports GigabitEthernet_6_NNI enable
    UCS(ProvisionEVC)# addEVC evcConfiguration policer_id 1
     
    Adds the EVE configuration.  
    Step 4addEVC review


    Example:
    UCS(ProvisionEVC)# addEVC review
     
    Reviews the addEVC configuration.  
    Step 5addEVC commit


    Example:
    UCS(ProvisionEVC)# addEVC commit
     
    Sends the addEVC configuration to the NID.  
    Step 6exit


    Example:
    UCS(ProvisionEVC)# exit
     
    Exits the ProvisionEVC mode.  

    Example

    UCS# ProvisionEVC
    UCS(ProvisionEVC)# addEVC evcConfiguration instance 7
    UCS(ProvisionEVC)# addEVC evcConfiguration nni_vid 101
    UCS(ProvisionEVC)# addEVC evcConfiguration learning enable
    UCS(ProvisionEVC)# addEVC evcConfiguration nni_ports GigabitEthernet_6_NNI enable 
    UCS(ProvisionEVC)# addEVC evcConfiguration policer_id 1
    UCS(ProvisionEVC)# addEVC review
    UCS(ProvisionEVC)# addEVC commit
    
      AddEVC Commit Success!!!

    Creating a Policer

       Command or ActionPurpose
      Step 1Configure NID


      Example:
      UCS# Configure NID 1
       

      Opens a new session for NID 1.

       
      Step 2ProvisionEVC


      Example:
      UCS# ProvisionEVC
       

      Enters the ProvisionEVC mode.

       
      Step 3addPolicerEVC evc_policer {cbscbs_id | cir committed_information_rate | ebs excess_burst_size | eir excess_information_rate |policer_id policer_id | policer mode {color_aware | coupled} |policer_type {mef | single} | rate_type {data | line} | state {enabled | disabled}}


      Example:
      UCS(ProvisionEVC)# addPolicerEVC evc_policer cir 20000 
      UCS(ProvisionEVC)# addPolicerEVC evc_policer ebs 30000 
      UCS(ProvisionEVC)# addPolicerEVC evc_policer eir 40000 
      UCS(ProvisionEVC)# addPolicerEVC evc_policer policer_id 1 
      UCS(ProvisionEVC)# addPolicerEVC evc_policer state enabled
       
      Adds the EVC Policer.
      • cbs—Specifies the committed burst size in bytes.
      • cir—Specifies the committed information rate. Multiply by 1000 to get rate in BPS.
      • ebs—Specifies the excess burst size in bytes.
      • eir—Specifies the excess information rate.
      • policer_id—Specifies the Policer ID. The valid values are from 1 to 1022.
      • policer_mode—Specifies the Policer mode—whether color-aware or coupled.
      • policer_type—Specifies the Policer mode—whether mef or single.
      • rate_type—Specifies the rate type policing—whether data or line.
      • state—Specifies the policer state—whether enabled or disabled.
       
      Step 4addPolicerEVC review


      Example:
      UCS(ProvisionEVC)# addPolicerEVC review
       
      Displays the addPolicerEVC configuration.  
      Step 5addPolicerEVC commit


      Example:
      UCS(ProvisionEVC)# addPolicerEVC commit
         AddPolicerEVC Commit Success!!!
       
      Sends the configuration to the NID.  
      Step 6exit


      Example:
      UCS(ProvisionEVC)# exit
       
      Exits from the ProvisionEVC mode.  

      Number of policers allowed are 1022. Use the following scale numbers for the ECE or EVC configuration with or without configuring QoS with tag pop 0, 1, or 2:
      • Maximum 510 ECEs can be configured with or without configuring QoS (0-7 COS) with one NNI port to one UNI port.

      • Maximum of 340 ECEs can be configured with or without configuring QoS (0-7 COS)  with two NNI ports to one UNI or one NNI port to two UNI ports.

      • Maximum of 255 ECEs can be configured with or without configuring QoS (0-7 COS)  with three NNI ports to one UNI port or one NNI port to three UNI ports.

      • Maximum of 170 ECEs can be configured with or without configuring QoS (0-7 COS)  with four NNI ports to one UNI port or one NNI port to four UNI ports.

      • Maximum of 128 ECEs can be configured with or without configuring QoS (0-7 COS)  with five NNI ports to one UNI port or one NNI port to five UNI ports.

      If OAM, HQoS, or EFP is configured on the Cisco ME 1200 NID, you can configure the following maximum service instances on every UNI interface:
      • 64 ECE or EVC   with eight COS classes.

      • 104 ECE or EVC with four COS classes.

      • 104 ECE or EVC  with two COS classes.

      EVC Control Entry (ECE) Configuration

      ECE rules are used to divide the UNI traffic into two service classes.

      This division of UNI traffic is achieved through:

      • Simple NNI: All EVCs on the NNI port use the same QoS mapping and statistics.

        Note


        This method requires fewer resources.
      • Advanced NNI: Each EVC on the NNI port has separate QoS mapping and statistics.

      In the following example, multiple ECE rules are created:

      Configuring ECE Sample Rule 1

      For rule 1, frames received on the UNI port with PCP 4-7 values are mapped to class 4 and sent with PCP 4 in the outer tag on the NNI port.

         Command or ActionPurpose
        Step 1Configure NID


        Example:
        UCS# Configure NID 1
         

        Opens a new session for NID 1.

         
        Step 2ProvisionEVC


        Example:
        UCS# ProvisionEVC
         

        Enters the ProvisionEVC mode.

         
        Step 3addECE ece_configuration ece_id ece_id


        Example:
        UCS(ProvisionEVC)# addECE ece_configuration ece_id 2
         
        Adds ECE configuration.  
        Step 4addECE ece_configuration control actions {class {disabled | specific specific_id} | direction {bothnni_to_uni |uni_to_nni} | drop_precedence {disabled | one | zero} | evc_id {none | specific specific_eve_id} | policer_id {discard | evc | none | specific specific_id} | policy_id acl_policy_id | tag_pop_count tag_pop_count}


        Example:
        UCS(ProvisionEVC)# addECE ece_configuration control actions evc_id specific 7 
        UCS(ProvisionEVC)# addECE ece_configuration control actions tag_pop_count 1  
        UCS(ProvisionEVC)# addECE ece_configuration control actions policer_id specific 1
        UCS(ProvisionEVC)# addECE ece_configuration control actions class specific 4
         
        Adds the ECE control action configuration.
        • class—Specifies the ECE class.
        • direction—Specifies the direction of flow of traffic.
        • drop_precedence—Specifies the drop precedence (higher value means more dropping).
        • evc_id—Specifies the EVC ID. The valid specific values are from 1 to 1024.
        • policer_id—Specifies the policer ID. The valid specific values are from 1 to 1022.
        • policy_id—Specifies the ACL policy ID. The valid values are from 0 to 63.
        • tag_pop_count—Specifies the tagged VLAN count to be removed (either one or two outermost tags).
         
        Step 5addECE ece_configuration control egress-inner-tagaddECE ece_configuration control egress_inner_tag {dei-modedei_mode {classified | drop_prec | fixed} | dei_value dei | pcp_mode {classified | fixed | mapped} | pcp_value pcp_value | type type | vlan_id vlan_id}


        Example:
        UCS(ProvisionEVC)# addECE ece_configuration control egress_inner_tag dei_mode classified 
        UCS(ProvisionEVC)# addECE ece_configuration control egress_inner_tag type none 
        UCS(ProvisionEVC)# addECE ece_configuration control egress_inner_tag vlan_id 3
         
        Adds the ECE control egress inner tag rewrite configuration.
        • dei_mode—Specifies the DEI mode—whether classified, drop precedence, or fixed.
        • dei_value—Specifies the DEI value. The valid values are 0 and 1.
        • pcp_mode—Specifies the PCP mode—whether classified, fixed, or mapped.
        • pcp_value—Specifies the PCP value. The valid values are from 1 to 7.
        • type—Specifies the type—whether c-tagged, none, s-custom, or s-tagged.
        • vlan_id—Specifies the VLAN ID. The valid values are from 1 to 4095.
         
        Step 6addECE ece_configuration control egress_outer_tag {dei_mode {classified | drop_prec | fixed} | dei_value dei_value | mode {enabled | disabled} | pcp_mode {classified | fixed | mapped} | pcp_value pcp_value | vlan_id vlan_id


        Example:
        UCS(ProvisionEVC)# addECE ece_configuration control egress_outer_tag pcp_mode fixed
        UCS(ProvisionEVC)# addECE ece_configuration control egress_outer_tag pcp_value 4
         
        Adds the ECE control egress outer tag rewrite configuration.
        • dei_mode—Specifies the DEI mode—whether classified, drop precedence, or fixed.
        • dei_value—Specifies the DEI value. The valid values are 0 and 1.
        • mode—Specifies the mode—whether enabled or disabled.
        • pcp_mode—Specifies the PCP mode—whether classified, fixed, or mapped.
        • pcp_value—Specifies the PCP value. The valid values are from 1 to 7.
        • vlan_id—Specifies the VLAN ID. The valid values are from 1 to 4095.
         
        Step 7addECE ece_configuration control ingress_match {frame_type {any | ipv4 {dest_ip_filter | source_ip_filter} | ipv6 {dest_ip_filter | source_ip_filter}} | inner_tag_match {match_fields | match_type} | mac_params {dmac_filer | smac_filter} | outer_tag_match {match_fields | match_type} | uni_ports {GigabitEthernet_1_UNI | GigabitEthernet_2_UNI | GigabitEthernet_3_UNI | GigabitEthernet_4_UNI | GigabitEthernet_5_UNI | GigabitEthernet_6_UNI}}


        Example:
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match uni_ports GigabitEthernet_2_UNI enable
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_type c_tagged
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_fields vlan_id_filter specific 100
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_fields inner_pcp val_4-7
         
        Adds the ECE control ingress inner tag rewrite configuration.
        • frame_type—Specifies the type of frame relay.
        • inner_tag_match—Specifies the inner tag match value.
        • mac_params—Specifies the DMAC and SMAC default values.
        • outer_tag_match—Specifies the outer tag match value.
        • uni_ports—Specifies the GigabitEthernet UNI ports.
         
        Step 8addECE review


        Example:
        UCS(ProvisionEVC)# addECE review
         
        Reviews the addECE configuration.  
        Step 9addECE commit


        Example:
        UCS(ProvisionEVC)# addECE commit
         
        Sends the configuration to the NID.  
        Step 10exit


        Example:
        UCS(ProvisionEVC)# exit
         
        Exits the ProvisionEVC mode.  

        Example

        UCS# ProvisionEVC
        UCS(ProvisionEVC)# addECE ece_configuration ece_id 1
        UCS(ProvisionEVC)# addECE ece_configuration ece_id 1
        UCS(ProvisionEVC)# addECE ece_configuration control actions evc_id specific 777
        UCS(ProvisionEVC)# addECE ece_configuration control actions tag_pop_count 1
        UCS(ProvisionEVC)# addECE ece_configuration control actions policer_id none
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match uni_ports GigabitEthernet_2_UNI enable
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_type c_tagged
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_fields vlan_id_filter specific 100
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_fields inner_dei any
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_fields inner_pcp val_any
        UCS(ProvisionEVC)# addECE review
        Commands in queue:
        	addECE ece_configuration ece_id 1 
        	addECE ece_configuration ece_id 1 
        	addECE ece_configuration control actions evc_id specific 777 
        	addECE ece_configuration control actions tag_pop_count 1 
        	addECE ece_configuration control actions policer_id none 
        	addECE ece_configuration control ingress_match uni_ports GigabitEthernet_2_UNI enable 
        	addECE ece_configuration control ingress_match outer_tag_match match_type c_tagged 
        	addECE ece_configuration control ingress_match outer_tag_match match_fields vlan_id_filter specific 100 
        	addECE ece_configuration control ingress_match outer_tag_match match_fields inner_dei any 
        	addECE ece_configuration control ingress_match outer_tag_match match_fields inner_pcp val_any 
        
        UCS(ProvisionEVC)# addECE commit
        
        Clearing Socket 4 Clearing Socket 4 
         AddECE Commit Success!!!

        Configuring the ECE Sample Rule 2

        For rule 2, other frames received on the UNI port are mapped to class 0 and sent with PCP 0 in the outer tag on the NNI port.


        Note


        The configuration steps are similar to the ones mentioned in the Configuring ECE Rule 1 section.

        Example

        UCS# ProvisionEVC
        UCS(ProvisionEVC)# addECE ece_configuration control actions evc_id specific 7               
        UCS(ProvisionEVC)# addECE ece_configuration control actions tag_pop_count 1                   
        UCS(ProvisionEVC)# addECE ece_configuration control actions policer_id specific 1
        UCS(ProvisionEVC)# addECE ece_configuration control actions class specific 0
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match uni_ports GigabitEthernet_2_UNI enable
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_type c_tagged
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_fields vlan_id_filter specific 99
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_fields inner_pcp val_0-3
        UCS(ProvisionEVC)# addECE ece_configuration control egress_outer_tag pcp_mode fixed
        UCS(ProvisionEVC)# addECE ece_configuration control egress_outer_tag pcp_value 0
        UCS(ProvisionEVC)# addECE commit

        Configuring ECE Sample Rule 3

        For rule 3, frames received on the NNI port 6 with S-tag 101 and C-tag 100 with any PCP values can be mapped to class 4 and sent with PCP 4 on the UNI port.


        Note


        The configuration steps are similar to the ones mentioned in the Configuring ECE Rule 1 section.

        Example

        UCS# ProvisionEVC
        UCS(ProvisionEVC)# addECE ece_configuration ece_id 3
        UCS(ProvisionEVC)# addECE ece_configuration control actions evc_id specific 7        
        UCS(ProvisionEVC)# addECE ece_configuration control actions class specific 4
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match uni_ports GigabitEthernet_2_UNI enable
        UCS(ProvisionEVC)# addECE ece_configuration control egress_inner_tag pcp_mode fixed
        UCS(ProvisionEVC)# addECE ece_configuration control egress_inner_tag pcp_value 4
        UCS(ProvisionEVC)# addECE commit

        Configuring ECE Sample Rule 4

        For rule 4, insert a new c-tag in frames forwarding to the NNI port.


        Note


        The configuration steps are similar to the ones mentioned in the Configuring ECE Rule 1 section.

        Example

        UCS# ProvisionEVC
        UCS(ProvisionEVC)# addECE ece_configuration ece_id 4
        UCS(ProvisionEVC)# addECE ece_configuration control actions evc_id specific 7 
        UCS(ProvisionEVC)# addECE ece_configuration control actions tag_pop_count 1
        UCS(ProvisionEVC)# addECE ece_configuration control actions policer_id specific 1
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match uni_ports GigabitEthernet_2_UNI enable
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_type c_tagged
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_fields vlan_id_filter specific 99
        UCS(ProvisionEVC)# addECE ece_configuration control egress_inner_tag type c_tagged
        UCS(ProvisionEVC)# addECE ece_configuration control egress_inner_tag vlan_id 77
        UCS(ProvisionEVC)# addECE commit

        Configuring ECE Sample Rule 5

        For rule 5, insert a new tag in frames forwarding to the UNI port, the outer tag for NNI - UNI direction for the ECE.


        Note


        The configuration steps are similar to the ones mentioned in the Configuring ECE Rule 1 section.

        Example

        UCS# ProvisionEVC
        UCS(ProvisionEVC)# addECE ece_configuration ece_id 5
        UCS(ProvisionEVC)# addECE ece_configuration control actions direction nni_to_uni                                                      ---> This field is mandatory to pass
        UCS(ProvisionEVC)# addECE ece_configuration control actions evc_id specific 7                                                          ---> Map this ECE rule to an EVC configured above. 
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match uni_ports GigabitEthernet_2_UNI enable
        UCS(ProvisionEVC)# addECE ece_configuration control egress_outer_tag enabled
        UCS(ProvisionEVC)# addECE ece_configuration control egress_outer_tag vlan_id 78
        UCS(ProvisionEVC)# addECE commit

        Ethernet Private Line or E-LAN

        Ethernet Private Line (EPL) or E-LAN and Ethernet Virtual Private Line (EVPL) are Carrier Ethernet data services defined by the Metro Ethernet Forum. E-LAN provides a point-to-point Ethernet virtual connection (EVC) between a pair of dedicated user–network interfaces (UNIs), with a high degree of transparency.

        The following diagrams show a Provider Network offering various types of E-LAN between two UNIs.

        Figure 1. An Unprotected Ethernet-LAN



        The following diagram shows an ethernet private (EP) line with 1-to-1 port protection on the network-network interface (NNI) side. This setup requires more resources compared to the unprotected EP-Line, because rules must be added for both NNI ports.

        Figure 2. Port Protected E-LAN



        The following diagram shows an ethernet LAN with ring protection on the network-network interface (NNI) side. The resource consumption is similar to the port protection scenario, because rules are added for each NNI port.

        Figure 3. Ring-Protected E-LAN



        The following sections describe how to configure the Edge Bridges.

        Configuring EVC for E-LAN Between Two UNI and NNI Ports With Double Tag on the NNI Port

        For more information on configuring EVC, see the Configuring Ethernet Virtual Circuit section.

        Example

        UCS# ProvisionEVC
        UCS(ProvisionEVC)# addEVC evcConfiguration instance 9 
        UCS(ProvisionEVC)# addEVC evcConfiguration internal_vid 400
        UCS(ProvisionEVC)# addEVC evcConfiguration nni_vid 400
        UCS(ProvisionEVC)# addEVC evcConfiguration learning enable
        UCS(ProvisionEVC)# addEVC evcConfiguration nni_ports GigabitEthernet_6_NNI enable 
        UCS(ProvisionEVC)# addEVC evcConfiguration policer_id 1  
        UCS(ProvisionEVC)# addEVC review
        UCS(ProvisionEVC)# addEVC commit

        Configuring EVC for E-LAN

        For more information on configuring EVC, see the Configuring Ethernet Virtual Circuit section.

        Example

        UCS# ProvisionEVC
        UCS(ProvisionEVC)# addEVC evcConfiguration instance 9 
        UCS(ProvisionEVC)# addEVC evcConfiguration internal_vid 400
        UCS(ProvisionEVC)# addEVC evcConfiguration nni_vid 400
        UCS(ProvisionEVC)# addEVC evcConfiguration learning enable
        UCS(ProvisionEVC)# addEVC evcConfiguration nni_ports GigabitEthernet_6_NNI enable 
        UCS(ProvisionEVC)# addEVC evcConfiguration policer_id 1
        UCS(ProvisionEVC)# addEVC review
        UCS(ProvisionEVC)# addEVC commit

        Ethernet Virtual Private Line

        The following diagram shows an unprotected ethernet virtual private line (EVP-Line) forwarding frames with C-VID = 17 between the user-network interface (UNI) ports.

        Figure 4. Unprotected EVP-Line



        Thie following section describes the configuration of the EVPL service between the UNI and NNI ports.

        Configuring ECE For EVPL Service

        For more information on configuring ECE, see the Configuring EVC Control Entry section.

        Example

        UCS# ProvisionEVC
        UCS(ProvisionEVC)# addECE ece_configuration ece_id 6
        UCS(ProvisionEVC)# addECE ece_configuration control actions evc_id specific 8                       
        UCS(ProvisionEVC)# addECE ece_configuration control actions policer_id specific 1
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match uni_ports GigabitEthernet_3_UNI enable
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_type c_tagged
        UCS(ProvisionEVC)# addECE ece_configuration control ingress_match outer_tag_match match_fields vlan_id_filter range 300-350
        UCS(ProvisionEVC)# addECE review
        UCS(ProvisionEVC)# addECE commit

        Note


        The above ECE rule allows all VLANs ranging from 300 to 350. However, if you need to filter specific VLANs then you must create individual ECE rules. For more information, see Configuring ECE Rule 1.

        Configuring EVC For EVPL Service

        For more information on configuring EVC, see the Configuring Ethernet Virtual Circuit section.

        Example

        UCS# ProvisionEVC
        UCS(ProvisionEVC)# addEVC evcConfiguration instance 8 
        UCS(ProvisionEVC)# addEVC evcConfiguration internal_vid 200
        UCS(ProvisionEVC)# addEVC evcConfiguration nni_vid 200
        UCS(ProvisionEVC)# addEVC evcConfiguration learning enable
        UCS(ProvisionEVC)# addEVC evcConfiguration nni_ports GigabitEthernet_5_NNI enable 
        UCS(ProvisionEVC)# addEVC evcConfiguration policer_id 1  
        UCS(ProvisionEVC)# addEVC review
        UCS(ProvisionEVC)# addEVC commit

        Other Commands For EVC Configuration

        Clearing EVC Statistics

        {all | ece | | }

        Using the Default Configuration

        default
        Switch(ProvisionEVC)# default

        Note


        This command resets all configuration to default values.

        Deleting Configuration

        Use this command to delete the ECE configuration.

        Use this command to delete the EVC configuration.

        deleteEVC deleteEVCrequest

        Use this command to delete the EVC Policer request.

        Editing Configuration

        Use this command to edit the ECE configuration.

        { | update {class | direction | | | | | | }}

        Use this command to edit the EVC configuration.

        editEVCConfiguration evcupdateConfiguration {instance instance_id | update { | learning | | | }}

        Enabling/Disabling/Modifying EVC Policer

        Use this command to enable the EVC Policer.

        Use this command to disable the EVC Policer.

        Use this command to modify the EVC Policer.

        Fetching EVC and ECE Configuration

        Use the following commands to fetch the ECE configuration:
        • getECEBlankForm getECEForm
        • getECEConfiguration getECEconfig
        Use the following commands to fetch the EVC configuration:
        • getEVCBlankForm getEVCForm
        • getEVCConfiguration getEVCconfig