Uploaded image for project: 'vpnservice'
  1. vpnservice
  2. VPNSERVICE-15

Entry missing in table 20 due to same label id for routes in different vpns

    XMLWordPrintable

Details

    • Bug
    • Status: Verified
    • Resolution: Done
    • unspecified
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • normal
    • 3644

    Description

      Topology:
      ========
      ->Connect s1 to h1(10.0.0.1),h2(10.0.0.2) and h3(10.0.0.1).
      ->Connect s2 to h4(10.0.0.3),h5(10.0.0.4) and h6(10.0.0.3).
      ->GRE tunnel between s1 and s2.

      configuration:
      =============
      h1,h2,h4 and h5 in testVpn1 and h3,h6 in testVpn2

      Issue:
      =====
      Table 20 has missing entry in both the dpns due to duplicate label.

      {
      "fibEntries": {
      "vrfTables": [
      {
      "routeDistinguisher": "100:1",
      "vrfEntry": [

      { "destPrefix": "10.0.0.3", "nextHopAddress": "192.168.56.104", "label": 4 ------> Duplicate id }

      ,

      { "destPrefix": "10.0.0.1", "nextHopAddress": "192.168.56.103", "label": 3 }

      ]
      },
      {
      "routeDistinguisher": "1000:1",
      "vrfEntry": [

      { "destPrefix": "10.0.0.4", "nextHopAddress": "192.168.56.104", "label": 5 }

      ,

      { "destPrefix": "10.0.0.3", "nextHopAddress": "192.168.56.104", "label": 4 ------------>Duplicate id }

      ,

      { "destPrefix": "10.0.0.2", "nextHopAddress": "192.168.56.103", "label": 6 }

      ,

      { "destPrefix": "10.0.0.1", "nextHopAddress": "192.168.56.103", "label": 3 }

      ]
      }
      ]
      }
      }

      Entries in the switch:
      ======================

      s1:
      ==
      mininet> dpctl dump-flows -O OpenFlow13

          • s1 ------------------------------------------------------------------------
            OFPST_FLOW reply (OF1.3) (xid=0x2):
            cookie=0x0, duration=2176.186s, table=0, n_packets=61, n_bytes=2562, arp actions=FLOOD
            cookie=0x8000001, duration=1975.709s, table=0, n_packets=652, n_bytes=59789, priority=10,in_port=5 actions=goto_table:20
            cookie=0x8000001, duration=1903.680s, table=0, n_packets=140, n_bytes=13720, priority=10,in_port=1 actions=write_metadata:0x2/0xffffffff,goto_table:21
            cookie=0x8000001, duration=1903.590s, table=0, n_packets=119, n_bytes=11662, priority=10,in_port=3 actions=write_metadata:0x1/0xffffffff,goto_table:21
            cookie=0x8000001, duration=1903.587s, table=0, n_packets=23, n_bytes=2254, priority=10,in_port=2 actions=write_metadata:0x2/0xffffffff,goto_table:21
            cookie=0x8000002, duration=1903.384s, table=20, n_packets=244, n_bytes=24888, priority=10,mpls,mpls_label=3 actions=write_actions(group:7)
            cookie=0x8000002, duration=1902.861s, table=20, n_packets=13, n_bytes=1326, priority=10,mpls,mpls_label=6 actions=write_actions(group:8)

      --->Missing entry for label 4
      cookie=0x8000003, duration=1903.386s, table=21, n_packets=6, n_bytes=588, priority=42,ip,metadata=0x2/0xffffffff,nw_dst=10.0.0.1 actions=write_actions(push_mp ls:0x8847,set_field:3->mpls_label,group:3)
      cookie=0x8000003, duration=1903.380s, table=21, n_packets=80, n_bytes=7840, priority=42,ip,metadata=0x2/0xffffffff,nw_dst=10.0.0.3 actions=write_actions(push_ mpls:0x8847,set_field:4->mpls_label,group:1)
      cookie=0x8000003, duration=1903.248s, table=21, n_packets=71, n_bytes=6958, priority=42,ip,metadata=0x2/0xffffffff,nw_dst=10.0.0.4 actions=write_actions(push_ mpls:0x8847,set_field:5->mpls_label,group:1)
      cookie=0x8000003, duration=1903.168s, table=21, n_packets=115, n_bytes=11270, priority=42,ip,metadata=0x1/0xffffffff,nw_dst=10.0.0.3 actions=write_actions(pus h_mpls:0x8847,set_field:4->mpls_label,group:1)
      cookie=0x8000003, duration=1902.969s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x1/0xffffffff,nw_dst=10.0.0.1 actions=write_actions(push_mpls :0x8847,set_field:3->mpls_label,group:7)
      cookie=0x8000003, duration=1902.864s, table=21, n_packets=6, n_bytes=588, priority=42,ip,metadata=0x2/0xffffffff,nw_dst=10.0.0.2 actions=write_actions(push_mp ls:0x8847,set_field:6->mpls_label,group:8)
      mininet> dpctl dump-groups -O OpenFlow13

          • s1 ------------------------------------------------------------------------
            OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
            group_id=8,type=indirect,bucket=weight:0,actions=pop_mpls:0x0800,set_field:00:00:00:00:00:02->eth_dst,output:2
            group_id=7,type=indirect,bucket=weight:0,actions=pop_mpls:0x0800,set_field:00:00:00:00:00:03->eth_dst,output:3
            group_id=1,type=indirect,bucket=weight:0,actions=output:5
            group_id=3,type=indirect,bucket=weight:0,actions=pop_mpls:0x0800,set_field:00:00:00:00:00:01->eth_dst,output:1
            mininet>

      s2:
      ==
      mininet> dpctl dump-flows -O OpenFlow13

          • s2 ------------------------------------------------------------------------
            OFPST_FLOW reply (OF1.3) (xid=0x2):
            cookie=0x0, duration=2222.899s, table=0, n_packets=61, n_bytes=2562, arp actions=FLOOD
            cookie=0x8000001, duration=2031.519s, table=0, n_packets=676, n_bytes=62050, priority=10,in_port=5 actions=goto_table:20
            cookie=0x8000001, duration=1959.430s, table=0, n_packets=0, n_bytes=0, priority=10,in_port=1 actions=write_metadata:0x2/0xffffffff,goto_table:21
            cookie=0x8000001, duration=1959.423s, table=0, n_packets=68, n_bytes=6664, priority=10,in_port=2 actions=write_metadata:0x2/0xffffffff,goto_table:21
            cookie=0x8000001, duration=1959.415s, table=0, n_packets=195, n_bytes=19110, priority=10,in_port=3 actions=write_metadata:0x1/0xffffffff,goto_table:21
            cookie=0x8000002, duration=1959.074s, table=20, n_packets=199, n_bytes=20298, priority=10,mpls,mpls_label=4 actions=write_actions(group:6)
            cookie=0x8000002, duration=1958.995s, table=20, n_packets=71, n_bytes=7242, priority=10,mpls,mpls_label=5 actions=write_actions(group:5)

      ----->Missing entry for label 4
      cookie=0x8000003, duration=1959.201s, table=21, n_packets=55, n_bytes=5390, priority=42,ip,metadata=0x2/0xffffffff,nw_dst=10.0.0.1 actions=write_actions(push_ mpls:0x8847,set_field:3->mpls_label,group:2)
      cookie=0x8000003, duration=1959.079s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x2/0xffffffff,nw_dst=10.0.0.3 actions=write_actions(push_mpls :0x8847,set_field:4->mpls_label,group:4)
      cookie=0x8000003, duration=1959.002s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x2/0xffffffff,nw_dst=10.0.0.4 actions=write_actions(push_mpls :0x8847,set_field:5->mpls_label,group:5)
      cookie=0x8000003, duration=1958.894s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x1/0xffffffff,nw_dst=10.0.0.3 actions=write_actions(push_mpls :0x8847,set_field:4->mpls_label,group:6)
      cookie=0x8000003, duration=1958.781s, table=21, n_packets=193, n_bytes=18914, priority=42,ip,metadata=0x1/0xffffffff,nw_dst=10.0.0.1 actions=write_actions(pus h_mpls:0x8847,set_field:3->mpls_label,group:2)
      cookie=0x8000003, duration=1958.674s, table=21, n_packets=13, n_bytes=1274, priority=42,ip,metadata=0x2/0xffffffff,nw_dst=10.0.0.2 actions=write_actions(push_ mpls:0x8847,set_field:6->mpls_label,group:2)
      mininet> dpctl dump-groups -O OpenFlow13

          • s2 ------------------------------------------------------------------------
            OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
            group_id=6,type=indirect,bucket=weight:0,actions=pop_mpls:0x0800,set_field:00:00:00:00:00:07->eth_dst,output:3
            group_id=4,type=indirect,bucket=weight:0,actions=pop_mpls:0x0800,set_field:00:00:00:00:00:05->eth_dst,output:1
            group_id=5,type=indirect,bucket=weight:0,actions=pop_mpls:0x0800,set_field:00:00:00:00:00:06->eth_dst,output:2
            group_id=2,type=indirect,bucket=weight:0,actions=output:5
            mininet>

      Attaching logs.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            abhinav.gupta Abhinav Gupta
            sindhuri.b@ericsson.com Sindhuri B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: