UDP fragmented packets getting dropped

Gagandeep Singh Bajaj 0 Reputation points
2024-09-23T21:17:19.3966667+00:00

I am running a simple iperf test between 2 Linux VMs (RedHat) sending UDP packets. The MTU size is configured as 1500 (as recommended) on both the machines.

I see when I send packets of length greater than 1472, the receiving side does not get anything.

Anything 1472 or smaller, there is no issue. Looks like any kind of UDP fragmentation is causing packet drops.

FYI. VNET encryption is enabled. Can this be the cause and how can we correct this situation?

'''

./iperf3 --udp --client 172.18.22.89 -l 1473 -n 10000 --bitrate 10
'''

'''
Connecting to host 172.18.22.89, port 5201

[ 5] local 172.18.22.87 port 59846 connected to 172.18.22.89 port 5201

[ ID] Interval Transfer Bitrate Total Datagrams

[ 5] 0.00-1.00 sec 1.44 KBytes 11.8 Kbits/sec 1

[ 5] 1.00-2.00 sec 1.44 KBytes 11.8 Kbits/sec 1

[ 5] 2.00-3.00 sec 1.44 KBytes 11.8 Kbits/sec 1

[ 5] 3.00-4.00 sec 1.44 KBytes 11.8 Kbits/sec 1

[ 5] 4.00-5.00 sec 1.44 KBytes 11.8 Kbits/sec 1

[ 5] 5.00-6.00 sec 1.44 KBytes 11.8 Kbits/sec 1

[ 5] 6.00-7.00 sec 0.00 Bytes 0.00 bits/sec 0

[ 5] 7.00-7.07 sec 1.44 KBytes 166 Kbits/sec 1


[ ID] Interval Transfer Bitrate Jitter Lost/Total Datagrams

[ 5] 0.00-7.07 sec 10.1 KBytes 11.7 Kbits/sec 0.000 ms 0/7 (0%) sender

[ 5] 0.00-7.11 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%) receive

'''

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,472 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ganesh Patapati 810 Reputation points Microsoft Vendor
    2024-09-24T19:05:40.3133333+00:00

    Hello Gagandeep Singh Bajaj,

    Good day!

    Welcome to the Q&A Platform for Microsoft! We appreciate you posing your query here.

    • Since both the VM's are in the same VNET you can configure MTU by following the below document here:

    Refer: https://learn.microsoft.com/en-us/azure/virtual-network/how-to-virtual-machine-mtu?tabs=windows

    Also, read this document explaining why we do not recommend fragmentation.

    Refer: https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-tcpip-performance-tuning#azure-and-fragmentation

    If you want to enable out of order fragmentation, then it can be enabled for some cases as there are limitations in the backend. This will require a support ticket.


    If the preceding response helps to solve your concern, please remember to "Accept Answer" and "Upvote it" so that others in the community with similar problems can easily find a solution.

    Your contribution is greatly appreciated.

    Regards,

    Ganesh


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.