cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Troubleshooting OTV

1319
Views
0
Helpful
0
Comments

Overlay Transport Virtualization

Troubleshooting OTV

Host 1:10.10.10.1 (site 1)
Host 2:10.10.10.2 (site 2)
OTV Control Group: 239.1.1.1
OTV Data Group: 232.1.1.1/16
Extended vlan: vlan 10
Site vlan: vlan 20






Basic config verification. Site1-OTV1 and  Site1-OTV2 are two OTV edge devices in site 1. Site1-OTV2 is the AED so  it does all the egress and ingress traffic forwarding in site 1.  Site2-OTV is the edge device in site 2.

site1-otv-1# sh run otv

!Command: show running-config otv
!Time: Sun Dec  5 13:27:19 2010

version 5.1(1)
feature otv

otv site-vlan 20


interface Overlay0
  otv join-interface Ethernet1/14
  otv control-group 239.1.1.1
  otv data-group 232.1.1.1/16
  otv extend-vlan 10

site1-otv-1#

site1-otv-2# sh run otv

!Command: show running-config otv
!Time: Sun Dec  5 13:27:52 2010

version 5.1(1)
feature otv

otv site-vlan 20


interface Overlay0
  otv join-interface Ethernet1/12
  otv control-group 239.1.1.1
  otv data-group 232.1.1.1/16
  otv extend-vlan 10

site1-otv-2#

site2-otv# sh run otv

!Command: show running-config otv
!Time: Sun Dec  5 21:02:35 2010

version 5.1(1)
feature otv

otv site-vlan 20


interface Overlay0
  otv join-interface Ethernet10/23
  otv control-group 239.1.1.1
  otv data-group 232.1.1.1/16
  otv extend-vlan 10

site2-otv#

Packet flow sequence from Host 1 in site 1 to Host 2 is site 2

1) Host 1 wants to send an ip packet to host 2. Host 1 does not have an arp entry for Host 2. Since Host 2 ip address is in the same subnet as Host 1 ip address, Host 1 sends an arp request for Host 2 ip address. This arp request reaches both OTV edge devices in site 1. Since Site1-OTV1 is the non AED for site 1 for vlan 10, it drops the broadcast packet. Site1-OTV2 is the AED for site 1 vlan 10. Hence its responsible for forwarding the arp broadcast packet. When the arp request arrives AED it learns the mac address for Host1 and adds it to its cam table. Also Site1-OTV2 (AED)advertise's Host1's mac address in IS-IS since it just learnt host 1's mac address

2) Site1-OTV2 (AED) encapsulates the arp request into control plane multicast group (239.1.1.1) and send it to the OTV cloud. Using the providers native multicast capability this arp request is replicated in the provider cloud and delivered to all the OTV edge devices connected to the provider cloud. The source ip for the encapsulated arp request leaving Site1-OTV2 (AED) is 10.1.1.1 (join interface of the AED) and the destination ip address is 239.1.1.1 (otv control group)

3) Site2-OTV, OTV edge device in site 2 receives the arp request from the otv cloud, decapsulates it and forwards it to Host 2. Now Host 2 responds to the arp request with a unicast arp reply. This arp rely hits OTV edge device in site 2. Now one of these two things could happen here
     
   a -  If the IS-IS update sent by Site1-OTV2 about Host 1's mac made it before the arp reply from Host 2 hits Site2-OTV1, then we forward this arp reply like a regular unicast packet. This is unlike the arp request since its a broadcast. Site2-OTV1 will know the mac of Host 1 via over lay interface.

site2-otv# sh mac add
Legend:
        * - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
        age - seconds since last seen,+ - primary entry using vPC Peer-Link
   VLAN     MAC Address      Type      age     Secure NTFY Ports/SWID.SSID.LID
---------+-----------------+--------+---------+------+----+------------------
G     -    0024.f71a.57c2    static       -       F    F  sup-eth1(R)
O 10       0024.986f.3b42    dynamic   0          F    F  Overlay0 Host 1 mac
* 10       0024.f71a.57c3    dynamic   0          F    F  Eth10/24

site2-otv#

Arp reply is now encapsulated with the source ip 2.2.2.2 (Site2-OTV join interface) and destination ip 10.1.1.1 (Site1-OTV2 join interface)

   b -  If the IS-IS update did not make it in time before OTV edge device in site 2 receives the arp reply from Host 2 then we drop the arp reply.

4) Site1-OTV2 receives the arp reply from the otv cloud. It decapsulates it and looks in its cam table for Host 1 mac address and sends it out e1/13.



Now Site 1 AED and Site 2 OTV edge device knew where Host 1 and Host 2 are located. Lets see how unicast packet forwarding works


Unicast Packet Flow: Host 1 sends a ping to Host 2. This icmp request packet has source/destination ip/mac of Host 1 and Host 2 respectively. We take this layer 2 packet, impose a mpls label, gre encap, insert source ip (AED join interface) and destination ip (OTV edge device join interface ip in site 2) and send it to the provider core (OTV cloud)

Pass 1: Insert MPLS label and perform EoMPLS encapsulation

MPLS label is VLAN_ID + 32 -- In my case Extended vlan is 10 so my mpls label will be 10 + 32 = 42 = 0x2a
Perform (BD - Bridge Domain, DMAC) lookup
LDB entry indexed using (ingress port index, vlan).
L2FT lookup is done using (BD, DMAC). It derives peer-id based as follows

Peer Id = 0 for local bridging. Packet needs to go over the internal interface
Peer Id = 0x3ff for flood to BD. Unicast DMAC lookup results in a miss. These packets are not forwarded to the OTV cloud. Only flood to all the internal ports in that vlan
Peer ID = 0x3fe for broadcast or multicast traffic
peer ID = Equal to and greater than 0x1 --> Set for OTV unicast forwarding

Lamira performs (BD, peer-id) lookup in the FIB. Rewrite instruction impose MPLS label and request recirculation to impose GRE header.
The Shim header DTI field carries adjacency pointer to be referenced during pass 2

Check LDB and ILM entry for incoming port/vlan

Use following command to get LDB and ILM entry and verify following fields in
–LDB: bd value matches VLAN, eompls_bd = 1
–ILM: eompls_en = 1, eompls_p2p = 0

module-1# sh hardware internal forwarding interface e 1/13 vlan 10
Software Tables:
Interface = Ethernet1/13 LTL Index = 0x42e LIF = 0x4087
  State(up) Layer(L2) Mode(Trunk) VDC(3) Local Port(yes)
  Number of Member Ports(0x0)
  LDB Sharing(yes) LDB Base(0x13400) LDB Port Features(no)

Hardware Tables:
Instance: 0x1
L2-LIF-MAP entry with index = 0x42e Source port LTL index
  ldb_base = 0x13400 add_vlan = 1

User given VLAN = 10 is up on this port

Instance: 0x1
L2-LIF entry with index = 0x1340a LDB Entry

  pt_cam_en = 1 ipv4_igmp_snoop = 1 ipv4_pim_snoop = 0 ipv6_mld_snoop = 0
  ipv6_pim_snoop = 0 bd = 0x23 l2v4 = 0 ingr_lif = 0x23
  hdr_gm_en = 0 dsm = 0 ipv4_en = 1 ipv6_en = 1
  l2l3_lkup_cfg = 1 mpls_en = 1 sm_en = 0 red_ids_chk_fail_en = 1
  ldb_rbh_en = 0 age_tmr_sel = 1 bndl_port = 0 dl_np = 0
  dl_p = 0 dnl = 0 eompls_bd = 1 nf_en = 0
  dff = 0 dmn = 1 multi_miss_cap1 = 0 uni_miss_cap1 = 0

Port-Map entry with index = 0x42e
  mac_ip_chk_en = 0 lif_sel = 1 lif_base = 0x0
  port_acos_id = 0 port_trust = 0

L3-INGRESS-LIF entry with index = 0x23 ILM Entry
  v6_rpf_mode = 0 ecc = 417 v6_vpn = 1 v6_rpfv3_en = 0
  ipv6_en = 0 v6_sgt_prio = 0 v6_dgt_prio = 0 expl_null_rpf_en = 0
  per_pkt_ls_en = 0 no_stats = 0 v4_sgt_prio = 3 v4_dgt_prio = 1
  diag = 0 trust_lif = 0 tunnel_lif = 0 df_mask = 0x0
  f_index = 0 non_ipv6_vpn = 1 mpls_vpn_sel = 0 mpls_vpn_acl_en = 0
  v4_rpfv3_en = 0 ipv4_en = 0 eompls_en = 1 mpls_en = 0
  ipv4_mcast_en = 0 v4_rpf_mode = 0 qppb_recirc_en = 0 qppb_dest_en = 0
  bd_lif = 1 eompls_p2p = 0 ipv6_mcast_en = 0 mac_ip_chk_ipv4 = 0
  mac_ip_chk_ipv6 = 0 cpp_en = 1 group_en = 0 acl_en = 3
  qos_en = 0 acct_en = 0 l2_acl_en = 0 l2_cos_sel = 0
  recirc_id = 0 lif_label_b = 2049 lif_label_a = 0 base_policer_id = 0
  mut_map_index = 0 ilm_trig = 0 base_acct_id = 0

L3-EGRESS-LIF entry with index = 0x23
  ecc = 414 v6_same_if_check = 0 entry_type = 0 egress_vlan = 10
  dest_index = 0x421 flood = 0 mtu_index = 0 v4_same_if_check = 0
  frr_link_down = 0 frr_node_down = 0 use_mpls_key_a = 0 use_mpls_key_b = 0
  cpp_lif = 0 group_en = 0 acl_en = 0 qos_en = 1
  acct_en = 0 l2_acl_en = 0 l2_cos_sel = 0 recirc_id = 0
  lif_label_b = 0 lif_label_a = 0 base_policer_id = 0 mut_map_index = 0
  elm_trig = 0 base_acct_id = 0
module-1#


Verify MAC database in Control plane and hardware

This step checks if the local MAC entries are known to control plane. Remote MAC entries are learned by control plane. The local and remote MAC entries should also be installed in hardware MAC table

Use following command to verify route is in the control plane database

site1-otv-2# sh otv route

OTV Unicast MAC Routing Table For Overlay0

VLAN MAC-Address     Metric  Uptime    Owner      Next-hop(s)
---- --------------  ------  --------  ---------  -----------
  10 0024.986f.3b42  1       1d22h     site       Ethernet1/13 Host1 mac address
  10 0024.f71a.57c3  42      02:25:13  overlay    site2-otv Host 2 mac address

site1-otv-2#

Check MAC are installed in hardware
This step verifies if L2 forwarding table is programmed correctly. Verifies (BD, DMAC) entry in L2FT. The L2 entry should drive correct peer-id (DI)


F340.11.05-7000-1# attach mod 1
Attaching to module 1 ...
To exit type 'exit', to abort type '$.'
module-1# vdc 3
module-1# show hardware mac address-table
FE | Valid| PI|  BD  |      MAC      |  Index| Stat| SW  | Modi| Age| Tmr| GM| Sec| TR| NT| RM| RMA| Cap| Fld|Always
   |      |   |      |               |       |  ic |     | fied|Byte| Sel|   | ure| AP| FY|   |    |TURE|    | Learn
---+------+---+------+---------------+-------+-----+-----+-----+----+----+---+----+---+---+---+----+----+----+------
0    1     1   37    0024.986f.3b43  0x00400   1   0x000   0    122   0    1    0   0   0   0    0    0    0    0  
0    1     0   33    0100.0cff.fffe  0x00421   1   0x001   0    123   0    0    0   0   0   0    0    0    0    0  
0    1     1   35    0024.986f.3b42  0x0042e   0   0x003   0    169   1    0    0   0   0   0    0    0    0    0---->BD, Host 1 mac and source port ltl index   
0    1     0   35    0024.f71a.57c3  0x02881   0   0x003   0    254   1    0    0   0   0   0    0    0    0    0---->BD, Host 2 mac and OTV ltl index   
0    1     1   35    0024.986f.3b43  0x00400   1   0x000   0    187   0    1    0   0   0   0    0    0    0    0  
0    1     0   35    0100.0cff.fffe  0x00421   1   0x001   0    123   0    0    0   0   0   0    0    0    0    0  
0    1     1   36    0024.986f.3b44  0x0042e   0   0x003   0    169   1    0    0   0   0   0    0    0    0    0  
0    1     0   36    0100.0cff.fffe  0x00421   1   0x001   0    123   0    0    0   0   0   0    0    0    0    0  

"sh hardware internal forwarding interface e 1/13 vlan 10" gives you BD in hex. 35 in the above command is equal to 0x23

Here is how you derive peer-id

peer-id = DI(Destination LTL index) - OTV ltl base index

From "show hardware mac address-table" we know DI is 0x02881. "Show sys int pixm info ltl-region" will give you the base OTV ltl index

F340.11.05-7000-1# Show sys int pixm info ltl-region

LTL POOL TYPE                          SIZE        RANGE             
=====================================================================
DCE/FC Pool                            1024       0x0000 to 0x03ff
SUP Inband LTL                           32       0x0400 to 0x041f
MD Flood LTL                              1       0x0420
Central R/W                               1       0x0421
UCAST Pool                             1536       0x0422 to 0x0a21
PC Pool                                1720       0x0a22 to 0x10d9
LC CPU Pool                              32       0x1152 to 0x1171
EARL Pool                                72       0x10da to 0x1121
SPAN Pool                                48       0x1122 to 0x1151
UCAST VDC Use Pool                       16       0x1172 to 0x1181
UCAST Generic Pool                       30       0x1182 to 0x119f
LISP Pool                                 4       0x1198 to 0x119b
Invalid SI                                1       0x119c to 0x119c
ESPAN SI                                  1       0x119d to 0x119d
Recirc SI                                 1       0x119e to 0x119e
Drop DI                                   2       0x119f to 0x11a0
UCAST (L3_SVI_SI) Region                 31       0x11a1 to 0x11bf
UCAST (Fex/GPC/SVI-ES)       3648       0x11c0 to 0x1fff
UCAST Reserved for Future Use Region   2048       0x2000 to 0x27ff
======================> UCAST MCAST BOUNDARY <======================
VDC OMF Pool                             32       0x2800 to 0x281f
MCAST Reserved Pool                      96       0x2820 to 0x287f
MCAST (OTV/MD/MCAST) region           22398       0x2880 to 0x7ffe
Octopus Ucast Flood/Bit Bucket            1       0x7fff
BD With FPOE                          16384       0x8000 to 0xbfff
BD Without FPOE                       16384       0xc000 to 0xffff


ON DEMAND POOLS:
================================================
Pool |Start |Size | Free |Key
------------------------------------------------
PIXM_ON_DEMAND_POOL_TYPE_OTV | 0x2880  |1024 | 1024 |0x18



peer-id = 0x2881 - 0x2800 = 0x1 --> This means unicast OTV forwarding is enable for Host 2.

Check FIB Entry exists for the peer-id

This step verfies if Lamira FIB has corresponding (BD, peer-id) route. Rewrite instruction impose MPLS label and request recirculation to imposeGRE header. The shim header DTI field carries adjacency pointer to be referenced during pass 2.


site1-otv-2# show system internal forwarding otv overlay 0 vlan 10

slot  1
=======


--------------+------------------------+----------------
    Dev No          MPLS TCAM Idx           MPLS ADJ Idx
--------------+------------------------+----------------
    0x1               0x1ffc5              0x43034

----------+------------+----------+----------+----------+----------+----------
  Dev No     TCAM Idx       BD       Peer Id    Adj Idx   Tunnel       Tunnel
                                                           Adj Idx      I/f  
----------+------------+----------+----------+----------+----------+----------
   0x1      0x1ff82        0x23        0x0      0x43014     N/A         N/A
   0x1      0x1ff85        0x23        0x3ff    0x43014     N/A         N/A
   0x1      0x1ff80        0x23        0x1      0x4303d   0x4303a    Tunnel16404
   0x1      0x1ff89        0x23        0x2      0x4303f   0x4303b    Tunnel16405

Verify the tunnel interface information is correct. Use following tunnel show command to display GRE tunnel information.

site1-otv-2# show tunnel internal implicit otv detail
Tunnel16404 is up
    MTU 9178 bytes, BW 9 Kbit
    Transport protocol is in VRF "default"
    Tunnel protocol/transport GRE/IP
    Tunnel source 10.1.1.1, destination 2.2.2.2
    Last clearing of "show interface" counters never
    Tx
    6777033 packets output, 1 minute output rate 85 packets/sec
    Rx
    6777453 packets input, 1 minute input rate 85 packets/sec

Check EoMPLS Adjacency/RIT information in Lamira. Check RIT programming. Verify packet counters for MPLS label imposition and GRE encap pass.


site1-otv-2# show system internal forwarding otv overlay 0 peer 1 detail

slot  1
=======


(BD: 35, Vlan Id: 10, Peer Id: 1)
            DevNo: 1   TCAM Idx: 0x1ff80
            Adj Idx: 0x4303d   Egress Lif: 0x8006  RDT: 1  Egress Lif Base: 5 
            ccc: 0   pv: 1   l2_fwd: 1   rc: 1  
            label hi: 0x0   label low: 0x2a0   Packets: 181   Bytes: 21720
            Tunnel adj index: 0x4303a   GRE: YES
            DIP: 2.2.2.2  SIP: 10.1.1.1  
            LIF: 0x408f   DI: 0x421   ccc: 6   L2_FWD: NO   RDT: YES
           Packets: 181   Bytes: 26064   zone enforce: 0

F340.11.05-7000-1# attach mod 1
Attaching to module 1 ...
To exit type 'exit', to abort type '$.'
module-1# vdc 3
module-1# csl lamira show rewrite-entry mpls instance 0x1 index 0x4303d
RIT MPLS entry for instance = 0x0
RIT MPLS entry for index = 0x4303d
trig = 0 D = 0 rmac = 0 eom = 1
cw = 0 p2mp_or_mc = 0 uttl_or_vc_ttl = 0utos = 0
pipe_ttl = 0 l2_fwd = 1 l2_chg = 0 1q_mode = 0
iptomac_or_1qtype = 0 rnl = 0 rll = 0 ccc = 6
pv = 1 rc = 1 recirc_data = 0x104303a
Label4 = 0x2a0 Label3 = 0x0  Label2 = 0x0 Label1 = 0x0
Label0 = 0x0 1q = 0 labelop = 0x1
module-1#

Elam capture for LM dbus and rbus pass 1

F340.11.05-7000-1# attach mod 1
Attaching to module 1 ...
To exit type 'exit', to abort type '$.'
module-1# vdc 3
module-1# elam asic lamira
module-1# elam slot 1 asic lamira instance 1
module-1(lamira-elam)# trigger dbus ipv4 if des
destination-ipv4-address   destination-mac-address   
module-1(lamira-elam)# trigger dbus ipv4 if destination-mac-address 0024.f71a.57c3
module-1(lamira-elam)# trigger rbus ofe ip if elam-match 1 ccc 0x6
module-1(lamira-elam)# start
module-1(lamira-elam)# status
Instance: 1

EU-DBUS: Configured
trigger dbus dbi ingress ipv4 if source-ipv4-address 10.10.10.1 destination-ipv4-address 10.10.10.2

EU-RBUS: Triggered
trigger rbus rbi pb1 ip if cap2 1

LM-DBUS: Triggered
trigger dbus ipv4 if destination-mac-address 0024.F71A.57C3

LM-RBUS: Triggered
trigger rbus ofe ip if elam-match 1 ccc 0x6

module-1(lamira-elam)# show elam slot 1 asic lamira instance 0x1 dbus
Slot 01 Asic Lamira Instance 01 - Capture Buffer On Dbus:

Status(0x1602), TriggerWord(0x0a0), SampleStored(0x2a1), CaptureBufferPointer(0x2a1)

[09c]: 05e7f611 23080024 7ac01980 046010b8 0281a933 00
[09d]: 05e7fc22 01420000 00000000 00000002 00000010 00
[09e]: 05e80433 00a4bd00 fb2bff00 0a0a0a01 0a0a0a02 00
[09f]: 05e80c44 00000000 00000000 00000000 00000000 00
[0a0]: 05e81550 0024f71a 57c30024 986f3b42 00006b02 00

cf = 0x1
l2v4 = 0x0
sg_tag = 0x0000
l2_encap_type = 0x0
peer_id = 0x001
l3_learning = 0x0 (FF=0, MN=0, RF=0, SC=0)
l3_disable = 0x0
l3_bypass = 0x0
l2_miss = 0x1
trig = 0x0
rc_type = 0x0
recirc = 0x0
cos_1q = 0x6
cfi = 0x0
status = 0x1
control = 0x0004
{
no_stats = 0
cntrl_rw = 0
trust = 0
dont_fwd = 0
bndl_bypass = 0
trust_inclass = 0
ib_fl_cr_de = 0
ignr_qoso = 0
ignr_qosi = 0
ignr_aclo = 0
ignr_acli = 0
port_qos = 0
cache_supt = 1
no_establish = 0
index_direct = 0
}       
pi = 0x1
dmac_type = 0x0
ls_hash = 0x3d
bndl_hash = 0x3
pkt_len = 0x0066
ingress_lif = 0x00023This is BD
src_index = 0x0042e
src_vlan = 10
frame_type = 0x0
ingress_intf = 0x0, (0:P1 intf, 1:P2 intf)
lcl_seq_num= 0xd4
glo_seq_num = 0x133
ipv4_l4_prot = 0x01
ipv4_ext_l4_vld = 0x0
ipv4_l4_hdr_vld = 0x1
ipv4_options  = 0x0
ipv4_df = 0x0
ipv4_mf = 0x0
ipv4_frag = 0x0
ipv4_ip_hdr_vld  = 0x1
ipv4_mpls_mcast = 0x0
ipv4_mpls_lable = 0x00000
ipv4_mpls_exp = 0x0
ipv4_mpls_pkt = 0x0
ipv4_mpls_ttl = 0x00
ipv4_expl_null_value = 0x0
ipv4_expl_null_exp = 0x0
ipv4_mpls_expl_null = 0x0
ipv4_expl_null_ttl = 0x00
ipv4_l4_info  = 0x0000a4bd00
ipv4_ttl = 0xff
ipv4_tos = 0x00
ipv4_sa  = 010.010.010.001
ipv4_da  = 010.010.010.002
ipv4_l2_frame_type = 0x0
ipv4_extnd_l4 = 0x000000000000000000000000
ipv4_l2_pad_len = 0x00
ipv4_dmac = 00.24.f7.1a.57.c3
ipv4_smac = 00.24.98.6f.3b.42
ipv4_ce_cos = 0x0
ipv4_ce_cfi = 0x0
ipv4_ce_vlan = 0
module-1(lamira-elam)# show elam slot 1 asic lamira instance 0x1 rbus
Slot 01 Asic Lamira Instance 01 - Capture Buffer On Rbus:

Status(0x1202), TriggerWord(0x060), SampleStored(0x161),CaptureBufferPointer(0x161)

[060]: 00 66600010 00000000 0035266c 02001800 06330042 1000111e
[061]: 00 e6600010 00000000 00001eca fecafeca fe0000bb bbccccf0
[062]: 01 66600010 00000000 00000004 600003c0 04303a88 470002a1
[063]: 01 e6600010 00000000 ff000000 00000000 00000000 00000000

ofe_seq_num = 0x133
ofe_drop = 0x0
ofe_acos = 0x00
ofe_mark_en = 0x0
ofe_elam_match = 0x1
ofe_except_flag = 0x000000000
rslt_type = 0x0
trig = 0x0
shim_svc_rm = 0x0
acos = 0x00
lcl_seq_num = 0xd4
glo_seq_num = 0x133
cop = 0x3 (1:IPv4, 2:IPv6, 3:MPLS, 4:802.1Q, 0: unknown)
mcast = 0x0
egress_if = 0x0 (0: PB1, 1: PB2)
eu_lif_stats_en = 0x0
mask_rp = 0x0
rbh_vld = 0x0
index_sel = 0x0
lm_rsvd1 = 0x0
egress_lif = 0x08006
ext_rslt_vld = 0x0
lm_rsvd2 = 0x0
lm_fcs = 0x00
seq = 0x00
ccc = 0x6
cap1 = 0x0
cap2 = 0x0
cos = 0x6
egress_l3 = 0x0
data_type = 0x1
type_length = 0x1
flood = 0x0
dest_index = 0x00421
vlan = 0
rbh = 0x0
rdt = 0x1
reserved = 0x0
extra_cycle = 0x0
fabric_priority = 0x0
l2_fwd = 0x1
tos_offset = 0x1e
tos = 0x00
ttl_offset = 0x00
ttl = 0x1e
csum_offset = 0xca
csum = 0xfeca
delta_len = 0xfe
start = 0xca
stop = 0xfe
m = 0x0
len = 0x00
dmac = 00.bb.bb.cc.cc.f0
smac = 00.00.00.04.60.00
data = 0x04303a88470002a1 0002a is the mpls label
module-1(lamira-elam)#



Pass 2: Impose outer IP and GRE header

Check Tunnel Adjacency

In pass 2 the Tunnel encap is performed. Verify Tunnel adjacency has OTV tunnel LIF.
Use the tunnel adjacency index from previous step to show adjacency entry information using following command


module-1# csl lamira show adjacency instance 0x1 index 0x4303a
Adjacency entry for instance = 0x0
Adjacency entry for index = 0x4303a
  dis_adj_stats = 0 dis_fwd_stats = 0 ad_trig = 0
  l3_enable = 1 adj_valid = 1 ad_age = 1
  adj_format = 0 rdt = 1 ignore_emut = 0
  vpn = 0x21 egress_lif = 0x408f egress_lif_base = 0x0
  ri = 0 top_sel = 0   zone_enforce = 0
  filter_en = 0 frr_te = 0 index_sel = 0
  tnl_encap = 2 rw_hint = 0x0 ttl_control = 4
module-1#


Verify Tunnel LIF entry in ILM table Use the tunnel LIF value from tunnel encap adjacency from previous step.


module-1# test hardware internal forwarding l3 show l3-ingress-lif instance 0x1 index 0x408f
L3-INGRESS-LIF entry with index = 0x408f
  v6_rpf_mode = 0 ecc = 82 v6_vpn = 33 v6_rpfv3_en = 0
  ipv6_en = 0 v6_sgt_prio = 0 v6_dgt_prio = 0 expl_null_rpf_en = 0
  per_pkt_ls_en = 0 no_stats = 0 v4_sgt_prio = 3 v4_dgt_prio = 1
  diag = 0 trust_lif = 0 tunnel_lif = 1 df_mask = 0x0
  f_index = 0 non_ipv6_vpn = 37 mpls_vpn_sel = 0 mpls_vpn_acl_en = 0
  v4_rpfv3_en = 0 ipv4_en = 1 eompls_en = 0 mpls_en = 1
  ipv4_mcast_en = 0 v4_rpf_mode = 0 qppb_recirc_en = 0 qppb_dest_en = 0
  bd_lif = 0 eompls_p2p = 0 ipv6_mcast_en = 0 mac_ip_chk_ipv4 = 0
  mac_ip_chk_ipv6 = 0 cpp_en = 1 group_en = 0 acl_en = 0
  qos_en = 0 acct_en = 0 l2_acl_en = 0 l2_cos_sel = 0
  recirc_id = 0 lif_label_b = 0 lif_label_a = 0 base_policer_id = 0
  mut_map_index = 0 ilm_trig = 0 base_acct_id = 0
module-1#

ELAM capture for LM dbus and rbus pass 2

module-1(lamira-elam)#
module-1(lamira-elam)# trigger dbus mpls if label_0 0x0002a
module-1(lamira-elam)# trigger rbus ofe ip if elam-match 1
module-1(lamira-elam)# start
module-1(lamira-elam)# status
Instance: 1

EU-DBUS: Configured
trigger dbus dbi ingress ipv4 if source-ipv4-address 10.10.10.1 destination-ipv4-address 10.10.10.2

EU-RBUS: Triggered
trigger rbus rbi pb1 ip if cap2 1

LM-DBUS: Triggered
trigger dbus mpls if label_0 0x2a

LM-RBUS: Triggered
trigger rbus ofe ip if elam-match 1


module-1(lamira-elam)# show elam slot 1 asic lamira instance 0x1 dbus
Slot 01 Asic Lamira Instance 01 - Capture Buffer On Dbus:

Status(0x1302), TriggerWord(0x06c), SampleStored(0x26d), CaptureBufferPointer(0x26d)

[06b]: 06a18e11 24020024 4f402100 000010b4 00050180 00
[06c]: 06a19422 00000002 a1fec000 00000000 00000002 00
[06d]: 06a19c33 08004500 0054e8db 00000000 00000000 00
[06e]: 06a1a444 00002498 6f3b4200 24f71a57 c3000000 00
[06f]: 06a1ac55 0024986f 3b430024 986f3b42 00000000 00
[070]: 06a1b560 100811e0 0003c020 408f0000 0421ad1f 00

l3_disable = 0x0
l3_bypass = 0x0
l2_miss = 0x1
trig = 0x0
rc_type = 0x0
recirc = 0x1
cos_1q = 0x0
cfi = 0x0
status = 0x0
control = 0x4004
{
no_stats = 0
cntrl_rw = 1
trust = 0
dont_fwd = 0
bndl_bypass = 0
trust_inclass = 0
ib_fl_cr_de = 0
ignr_qoso = 0
ignr_qosi = 0
ignr_aclo = 0
ignr_acli = 0
port_qos = 0
cache_supt = 1
no_establish = 0
index_direct = 0
}
pi = 0x1
dmac_type = 0x0
ls_hash = 0x27
bndl_hash = 0x5
pkt_len = 0x0084
ingress_lif = 0x00000
src_index = 0x0042d
src_vlan = 0
frame_type = 0x1
ingress_intf = 0x0, (0:P1 intf, 1:P2 intf)
lcl_seq_num = 0x80
glo_seq_num = 0x180
label0 = 0x0002a
exp0 = 0x0
s0 = 0x1
ttl0 = 0xfe
ext_l4_vld = 0x1
mpls_hdr_vld = 0x1
mcast = 0x0
expl_null_value = 0x0
expl_null_exp = 0x0
expl_null = 0x0
expl_null_ttl = 0x0
cf = 0x0
l2v4 = 0x0
sg_tag = 0x0000
l2_encap_type = 0x0
peer_id = 0x000
l3_learning = 0x002
extnd_l4_1_1 = 0x08004500
extnd_l4_1_0 = 0x0054e8db
label1 = 0x00000
exp1 = 0x0
s1 = 0x0
ttl1 = 0x0
l2_frame_type = 0x0
extnd_l4_2 = 0x0024986f
extnd_l4_1 = 0x3b420024
extnd_l4_0 = 0xf71a57c3
dmac = 0024.986f.3b43
smac = 0024.986f.3b42
ce_cos = 0x0
ce_cfi = 0x0
ce_vlan = 0
crc = 0x0000
module-1(lamira-elam)# show elam slot 1 asic lamira instance 0x1 rbus
Slot 01 Asic Lamira Instance 01 - Capture Buffer On Rbus:

Status(0x1202), TriggerWord(0x040), SampleStored(0x141),CaptureBufferPointer(0x141)

[040]: 00 70202010 00000000 00207024 80008d00 04000042 100a001b
[041]: 00 f0202010 00000000 0022ff24 aab6f40c 1a020800 00000000
[042]: 00 70402012 00000000 0020b044 07fe0400 07010040 0000100f

ofe_seq_num = 0x181
ofe_drop = 0x0
ofe_acos = 0x00
ofe_mark_en = 0x2
ofe_elam_match = 0x1
ofe_except_flag = 0x000000000
rslt_type = 0x0
trig = 0x0
shim_svc_rm = 0x0
acos = 0x00
lcl_seq_num = 0x81
glo_seq_num = 0x181
cop = 0x1 (1:IPv4, 2:IPv6, 3:MPLS, 4:802.1Q, 0: unknown)
mcast = 0x0
egress_if = 0x0 (0: PB1, 1: PB2)
eu_lif_stats_en = 0x1
mask_rp = 0x0
rbh_vld = 0x0
index_sel = 0x0
lm_rsvd1 = 0x0
egress_lif = 0x00023
ext_rslt_vld = 0x0
lm_rsvd2 = 0x1
lm_fcs = 0x00
seq = 0x00
ccc = 0x4
cap1 = 0x0
cap2 = 0x0
cos = 0x0
egress_l3 = 0x0
data_type = 0x0
type_length = 0x0
flood = 0x0
dest_index = 0x00421
vlan = 10
rbh = 0x0
rdt = 0x0
reserved = 0x0
extra_cycle = 0x0
fabric_priority = 0x0
l2_fwd = 0x0
tos_offset = 0x1b
tos = 0x00
ttl_offset = 0x22
ttl = 0xff
csum_offset = 0x24
csum = 0xaab6
delta_len = 0xf4
start = 0x0c
stop = 0x1a
m = 0x0
len = 0x02
dmac = 08.00.00.00.00.00
smac = 00.20.b0.44.07.fe
data = 0x070100400000100f
module-1(lamira-elam)#

Pass 3:Check for GRE destination IP

ELAM capture for LMdbus and rbus


module-1# elam slot 1 asic lamira instance 1
module-1(lamira-elam)# trigger dbus ipv4 if destination-ipv4-address 2.2.2.2
module-1(lamira-elam)# trigger rbus ofe ip if elam-match 1
module-1(lamira-elam)# start
module-1(lamira-elam)# status
Instance: 1

EU-DBUS: Configured
trigger dbus dbi ingress ipv4 if source-ipv4-address 10.10.10.1 destination-ipv4-address 10.10.10.2

EU-RBUS: Triggered
trigger rbus rbi pb1 ip if cap2 1

LM-DBUS: Triggered
trigger dbus ipv4 if destination-ipv4-address 2.2.2.2

LM-RBUS: Triggered
trigger rbus ofe ip if elam-match 1


module-1(lamira-elam)# show elam slot 1 asic lamira instance 0x1 dbus
Slot 01 Asic Lamira Instance 01 - Capture Buffer On Dbus:

Status(0x1402), TriggerWord(0x079), SampleStored(0x27a), CaptureBufferPointer(0x27a)

[077]: 07518611 240a0024 24402700 000010b8 0000efc9 00
[078]: 07518c22 2fd20000 00000000 00000000 00000002 00
[079]: 07519433 00884700 612cff00 0a010101 02020202 00
[07a]: 07519c44 000002a1 fe000000 00000000 00000000 00
[07b]: 0751a455 cafecafe cafe0000 bbbbcccc 00000000 00
[07c]: 0751ad60 100811e0 00038022 408f0000 04215469 00

cf = 0x0
l2v4 = 0x0
sg_tag = 0x0000
l2_encap_type = 0x0
peer_id = 0x000
l3_learning = 0x2 (FF=0, MN=0, RF=1, SC=0)
l3_disable = 0x0
l3_bypass = 0x0
l2_miss = 0x1
trig = 0x0
rc_type = 0x0
recirc = 0x1
cos_1q = 0x0
cfi = 0x0
status = 0x1
control = 0x4004
{
no_stats = 0
cntrl_rw = 1
trust = 0
dont_fwd = 0
bndl_bypass = 0
trust_inclass = 0
ib_fl_cr_de = 0
ignr_qoso = 0
ignr_qosi = 0
ignr_aclo = 0
ignr_acli = 0
port_qos = 0
cache_supt = 1
no_establish = 0
index_direct = 0
}
pi = 0x1
dmac_type = 0x0
ls_hash = 0x12
bndl_hash = 0x1
pkt_len = 0x009c
ingress_lif = 0x00000
src_index = 0x0042e
src_vlan = 0
frame_type = 0x0
ingress_intf = 0x0, (0:P1 intf, 1:P2 intf)
lcl_seq_num= 0x77
glo_seq_num = 0x1c9
ipv4_l4_prot = 0x2f
ipv4_ext_l4_vld = 0x1
ipv4_l4_hdr_vld = 0x1
ipv4_options  = 0x0
ipv4_df = 0x1
ipv4_mf = 0x0
ipv4_frag = 0x0
ipv4_ip_hdr_vld  = 0x1
ipv4_mpls_mcast = 0x0
ipv4_mpls_lable = 0x00000
ipv4_mpls_exp = 0x0
ipv4_mpls_pkt = 0x0
ipv4_mpls_ttl = 0x00
ipv4_expl_null_value = 0x0
ipv4_expl_null_exp = 0x0
ipv4_mpls_expl_null = 0x0
ipv4_expl_null_ttl = 0x00
ipv4_l4_info  = 0x0000884700
ipv4_ttl = 0xff
ipv4_tos = 0x00
ipv4_sa  = 010.001.001.001
ipv4_da  = 002.002.002.002
ipv4_l2_frame_type = 0x0
ipv4_extnd_l4 = 0x0002a1fe0000000000000000
ipv4_l2_pad_len = 0x00
ipv4_dmac = ca.fe.ca.fe.ca.fe
ipv4_smac = 00.00.bb.bb.cc.cc
ipv4_ce_cos = 0x0
ipv4_ce_cfi = 0x0
ipv4_ce_vlan = 0
recirc_version = 0x0
recirc_control = 0x40
{
repl_pkt = 0x0
router_mac = 0x1
acos_preserve = 0x0
mcast_bridge_disable = 0x0
fwd_only = 0x0
qppb_recirc = 0x0
ad_age = 0x0
}
recirc_lif = 0x0408f
recirc_mark_en = 0x0
recirc_f_index = 0x0
recirc_group_id = 0x00
recirc_acos = 0x00
recirc_ttl = 0xe
recirc_dest_table_index = 0x22408f
{
dti_type = 0x1
(0:adj ptr, 1:ilif, 3:peerID, 4: excpt cause, 5:copy cause, 2 & 6:rsvd, 7:invalid)
dti = 0x02408f
}
recirc_dest_index = 0x00421
module-1(lamira-elam)#  show elam slot 1 asic lamira instance 0x1 rbus
Slot 01 Asic Lamira Instance 01 - Capture Buffer On Rbus:

Status(0x1202), TriggerWord(0x045), SampleStored(0x146),CaptureBufferPointer(0x146)

[045]: 00 79202010 00000000 001df924 81004400 04000042 d000101b
[046]: 00 f9202010 00000000 00a2fea4 622cf400 180c0024 986f3b42
[047]: 01 79202010 00000000 0024986f 3b430000 00000000 00000000
[048]: 00 79402010 00000000 001e3944 81005800 04000043 5000100f

ofe_seq_num = 0x1c9
ofe_drop = 0x0
ofe_acos = 0x00
ofe_mark_en = 0x2
ofe_elam_match = 0x1
ofe_except_flag = 0x000000000
rslt_type = 0x0
trig = 0x0
shim_svc_rm = 0x0
acos = 0x00
lcl_seq_num = 0x77
glo_seq_num = 0x1c9
cop = 0x1 (1:IPv4, 2:IPv6, 3:MPLS, 4:802.1Q, 0: unknown)
mcast = 0x0
egress_if = 0x0 (0: PB1, 1: PB2)
eu_lif_stats_en = 0x1
mask_rp = 0x0
rbh_vld = 0x0
index_sel = 0x0
lm_rsvd1 = 0x0
egress_lif = 0x04011
ext_rslt_vld = 0x0
lm_rsvd2 = 0x0
lm_fcs = 0x00
seq = 0x00
ccc = 0x4
cap1 = 0x0
cap2 = 0x0
cos = 0x0
egress_l3 = 0x0
data_type = 0x0
type_length = 0x0
flood = 0x0
dest_index = 0x0042d -----> This is the ltl index of join interface e 1/12
vlan = 0
rbh = 0x0
rdt = 0x1
reserved = 0x0
extra_cycle = 0x0
fabric_priority = 0x0
l2_fwd = 0x0
tos_offset = 0x1b
tos = 0x00
ttl_offset = 0xa2
ttl = 0xfe
csum_offset = 0xa4
csum = 0x622c
delta_len = 0xf4
start = 0x00
stop = 0x18
m = 0x0
len = 0x0c
dmac = 00.24.98.6f.3b.42
smac = 00.24.98.6f.3b.43
data = 0x0000000000000000
module-1(lamira-elam)#


Click here for Decapsulation
                              
CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards