Uploaded image for project: 'csit'
  1. csit
  2. CSIT-1019

In some situations the receive timeout of PacketVerifier.RxQueue is not working

XMLWordPrintable

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

      The recv timeout is not working at all if the first packet received is in the ignore list.
      The RX timeout is applied just for first packet.

      This issue can affects the negative tests based on RX timeout like this:
      https://nexus.fd.io/content/sites/site/io/fd/csit/rls1710/doc/tests.vpp.func.crypto.html#tc13-vpp-process-esp-packet-in-tunnel-mode-with-aes-cbc-128-encryption-and-sha1-96-integrity-different-encryption-alogrithms-used

      (env) [root@fedora26-tg openvpp-testing]# resources/traffic_scripts/ipsec.py --rx_if enp8s0 --tx_if enp8s0 --src_mac 52:54:00:0f:44:14 --dst_mac 52:54:00:0f:44:22 --src_ip 192.168.3.3 --dst_ip 192.168.4.4 --crypto_alg AES-CBC --crypto_key Y9wVf9Gbt6R3YjG5 --integ_alg HMAC-SHA1-96 --integ_key yIQPoGh9Mwz67IMO0Ywj --l_spi 1000 --r_spi 1001 --src_tun 192.168.100.2 --dst_tun 192.168.100.3
      Sending packet out of enp8s0 of len 102
      ###[ Ethernet ]###
      dst = 52:54:00:0f:44:22
      src = 52:54:00:0f:44:14
      type = IPv4
      ###[ IP ]###
      version = 4L
      ihl = 5L
      tos = 0x0
      len = 88
      id = 1
      flags =
      frag = 0L
      ttl = 64
      proto = ipv6_crypt
      chksum = 0x311d
      src = 192.168.100.2
      dst = 192.168.100.3
      \options \
      ###[ ESP ]###
      spi = 0x3e8
      seq = 1
      data = "\xf5\xa0-Q\xbd\xa4\x19\xc0`C\xb5\x85\xa7'kV\xd9z_)\x8e,\xc2q\x84\xac\xfe\x02\xcd\x8a\xa7\x13\x8d<\xd6\xe1\xbeq\x9a\xf3\xc4\x17\x03\xf6\xc5\xdbd\x8aR\xfa\x86\xc92Q0y.\xaaM2"

      Received packet on enp8s0 of len 102
      ###[ Ethernet ]###
      dst = 52:54:00:0f:44:22
      src = 52:54:00:0f:44:14
      type = IPv4
      ###[ IP ]###
      version = 4L
      ihl = 5L
      tos = 0x0
      len = 88
      id = 1
      flags =
      frag = 0L
      ttl = 64
      proto = ipv6_crypt
      chksum = 0x311d
      src = 192.168.100.2
      dst = 192.168.100.3
      \options \
      ###[ ESP ]###
      spi = 0x3e8
      seq = 1
      data = "\xf5\xa0-Q\xbd\xa4\x19\xc0`C\xb5\x85\xa7'kV\xd9z_)\x8e,\xc2q\x84\xac\xfe\x02\xcd\x8a\xa7\x13\x8d<\xd6\xe1\xbeq\x9a\xf3\xc4\x17\x03\xf6\xc5\xdbd\x8aR\xfa\x86\xc92Q0y.\xaaM2"

      Received packet ignored.

      <From now the timeout is not expiring anymore>

            khemendra khemendra kumar
            banulucian Lucian Banu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: