Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-1834

VPP-LB does not work with multiple service ports

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None
    • None

      We have VPP-LB issue under the setting up multiple service ports per VIP.

      When we setup VIPs and multiple service ports with specific steps, one of the service ports doesn't work correctly.

      This issue is reproductive under some cases and I need help to solve that.

      > VPP version

      VPP 18.10 with 4 patches,

       

      reproductive case:1 

       

      # create VIP with multiple ports
      vppctl lb vip 192.168.1.1/32 protocol tcp port 80 encap l3dsr dscp 23 new_len 1024
      vppctl lb vip 192.168.1.1/32 protocol tcp port 443 encap l3dsr dscp 23 new_len 1024
       
      # create another VIP with multiple ports those are same as previous one
      vppctl lb vip 192.168.1.2/32 protocol tcp port 443 encap l3dsr dscp 23 new_len 1024
      vppctl lb vip 192.168.1.2/32 protocol tcp port 80 encap l3dsr dscp 23 new_len 1024
       
      # add AS to the first VIP, but port 443 of the first VIP doesn't work. port 80 of the first VIP works correctly.
      vppctl lb as 192.168.1.1/32 protocol tcp port 80 10.0.0.1
      vppctl lb as 192.168.1.1/32 protocol tcp port 443 10.0.0.1

      reproductive case:2 ( The issue does not depends on order of steps. )

       

      # create VIP with port 80 and 443. add AS to the VIP to the each port.
      vppctl lb vip 192.168.1.1/32 protocol tcp port 80 encap l3dsr dscp 23 new_len 1024
      vppctl lb vip 192.168.1.1/32 protocol tcp port 443 encap l3dsr dscp 23 new_len 1024
      vppctl lb as 192.168.1.1/32 protocol tcp port 80 10.0.0.1
      vppctl lb as 192.168.1.1/32 protocol tcp port 443 10.0.0.1
       
      # both of the ports works well.
       
      # create second VIP with port 443
      vppctl lb vip 192.168.1.2/32 protocol tcp port 443 encap l3dsr dscp 23 new_len 1024
      # the first VIP works correctly.
       
      # add port 80 to the second VIP, the first VIP with port 80 doesn't work with this timing.
      vppctl lb vip 192.168.1.2/32 protocol tcp port 80 encap l3dsr dscp 23 new_len 1024

      reproductive case:3 ( The port on first VIP doesn't work is same as secondary port of the Second VIP )

       

      # create first VIP as same steps as case:2
      vppctl lb vip 192.168.1.1/32 protocol tcp port 80 encap l3dsr dscp 23 new_len 1024
      vppctl lb vip 192.168.1.1/32 protocol tcp port 443 encap l3dsr dscp 23 new_len 1024
      vppctl lb as 192.168.1.1/32 protocol tcp port 80 10.0.0.1
      vppctl lb as 192.168.1.1/32 protocol tcp port 443 10.0.0.1
       
      # both of the ports works well.
       
      # differnt from case:2, create second VIP with port 80
      vppctl lb vip 192.168.1.2/32 protocol tcp port 80 encap l3dsr dscp 23 new_len 1024
      # the first VIP works correctly.
       
      # add port 443 to the second VIP, the first VIP with port 443 doesn't work with this timing.
      vppctl lb vip 192.168.1.2/32 protocol tcp port 443 encap l3dsr dscp 23 new_len 1024

            Henry_Ni Hongjun Ni
            yutkinos yuta kinoshita
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: