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

DHCP processes NAK incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • None
    • None
    • DHCP
    • None

      If two vpp instances send a DHCP request almost at the same time they very often end up with the same IP. Despite the fact, that one of them receives DHCP NAK and it should re-request the IP address.

      DHCP server log:

      Mar 21 05:21:09 localhost dhcpd[3691]: DHCPDISCOVER from 00:50:56:af:a0:a7 via ens224
      Mar 21 05:21:10 localhost dhcpd[3691]: DHCPOFFER on 192.168.1.44 to 00:50:56:af:a0:a7 (GigabitEthernet1b/0/0) via ens224
      Mar 21 05:21:10 localhost dhcpd[3691]: DHCPREQUEST for 192.168.1.44 (192.168.1.1) from 00:50:56:af:a0:a7 (GigabitEthernet1b/0/0) via ens224
      Mar 21 05:21:10 localhost dhcpd[3691]: DHCPACK on 192.168.1.44 to 00:50:56:af:a0:a7 (GigabitEthernet1b/0/0) via ens224
      Mar 21 05:22:45 localhost dhcpd[3691]: DHCPDISCOVER from 00:50:56:af:79:1c via ens224
      Mar 21 05:22:45 localhost dhcpd[3691]: DHCPDISCOVER from 00:50:56:af:da:1b via ens224
      Mar 21 05:22:46 localhost dhcpd[3691]: DHCPOFFER on 192.168.1.45 to 00:50:56:af:79:1c (GigabitEthernet1b/0/0) via ens224
      Mar 21 05:22:46 localhost dhcpd[3691]: DHCPREQUEST for 192.168.1.45 (192.168.1.1) from 00:50:56:af:79:1c (GigabitEthernet1b/0/0) via ens224
      Mar 21 05:22:46 localhost dhcpd[3691]: DHCPACK on 192.168.1.45 to 00:50:56:af:79:1c (GigabitEthernet1b/0/0) via ens224
      Mar 21 05:22:46 localhost dhcpd[3691]: DHCPREQUEST for 192.168.1.45 (192.168.1.1) from 00:50:56:af:da:1b via ens224: lease 192.168.1.45 unavailable.
      Mar 21 05:22:46 localhost dhcpd[3691]: DHCPNAK on 192.168.1.45 to 00:50:56:af:da:1b via ens224
      Mar 21 05:22:46 localhost dhcpd[3691]: DHCPOFFER on 192.168.1.46 to 00:50:56:af:da:1b (GigabitEthernet1b/0/0) via ens224

      VPP1:

          _______    _        _   _____  ___ 
       __/ __/ _ \  (_)__    | | / / _ \/ _ \
       _/ _// // / / / _ \   | |/ / ___/ ___/
       /_/ /____(_)_/\___/   |___/_/  /_/    vpp# sh int addr
      GigabitEthernet1b/0/0 (up):
        192.168.1.45/24
      local0 (dn):
      loop0 (up):
        l2 bridge bd_id 1 bvi shg 0
        10.4.1.2/24
      tapcli-0 (up):
        10.3.2.1/24
      vxlan_tunnel0 (up):
        l2 bridge bd_id 1 shg 1
      vpp# sh hardware-interfaces 
                    Name                Idx   Link  Hardware
      GigabitEthernet1b/0/0              1     up   GigabitEthernet1b/0/0
        Ethernet address 00:50:56:af:79:1c
        VMware VMXNET3
          carrier up full duplex speed 10000 mtu 9216 
          rx queues 1, rx desc 1024, tx queues 1, tx desc 1024
          cpu socket 0    tx frames ok                                           9
          tx bytes ok                                         1439
          rx frames ok                                          16
          rx bytes ok                                         2184
          extended stats:
            rx good packets                                     16
            tx good packets                                      9
            rx good bytes                                     2184
            tx good bytes                                     1439
            rx q0packets                                        16
            rx q0bytes                                        2184
            tx q0packets                                         9
            tx q0bytes                                        1439
      local0                             0    down  local0
        local
      loop0                              3     up   loop0
        Ethernet address 1a:2b:3c:4d:5e:02
      tapcli-0                           2     up   tapcli-0
        Ethernet address 01:23:45:67:89:42
      vxlan_tunnel0                      4     up   vxlan_tunnel0
        VXLAN

      VPP2

         _______    _        _   _____  ___ 
       __/ __/ _ \  (_)__    | | / / _ \/ _ \
       _/ _// // / / / _ \   | |/ / ___/ ___/
       /_/ /____(_)_/\___/   |___/_/  /_/    vpp# sh int addr
      GigabitEthernet1b/0/0 (up):
        192.168.1.45/24
      local0 (dn):
      loop0 (up):
        l2 bridge bd_id 1 bvi shg 0
        10.4.1.3/24
      tapcli-0 (up):
        10.3.3.1/24
      tapcli-1 (up):
        10.2.1.2/32
      vxlan_tunnel0 (up):
        l2 bridge bd_id 1 shg 1
      vpp# sh hardware
                    Name                Idx   Link  Hardware
      GigabitEthernet1b/0/0              1     up   GigabitEthernet1b/0/0
        Ethernet address 00:50:56:af:da:1b
        VMware VMXNET3
          carrier up full duplex speed 10000 mtu 9216 
          rx queues 1, rx desc 1024, tx queues 1, tx desc 1024
          cpu socket 0    tx frames ok                                          68
          tx bytes ok                                         6584
          rx frames ok                                          26
          rx bytes ok                                         2690
          extended stats:
            rx good packets                                     26
            tx good packets                                     68
            rx good bytes                                     2690
            tx good bytes                                     6584
            rx q0packets                                        26
            rx q0bytes                                        2690
            tx q0packets                                        68
            tx q0bytes                                        6584
      local0                             0    down  local0
        local
      loop0                              3     up   loop0
        Ethernet address 1a:2b:3c:4d:5e:03
      tapcli-0                           2     up   tapcli-0
        Ethernet address 01:23:45:67:89:42
      tapcli-1                           5     up   tapcli-1
        Ethernet address 02:fe:fc:07:21:82
      vxlan_tunnel0                      4     up   vxlan_tunnel0

       

            dbarach Dave Barach
            lmck Lukas Macko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: