Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2128446

Summary: [Azure][RHEL-8] UDP data loss is big at packets larger than MTU even without vRSS hashing
Product: Red Hat Enterprise Linux 8 Reporter: Li Tian <litian>
Component: kernelAssignee: Maxim Levitsky <mlevitsk>
kernel sub component: Hyper-V QA Contact: Li Tian <litian>
Status: CLOSED MIGRATED Docs Contact:
Severity: medium    
Priority: high CC: bdas, eterrell, litian, vkuznets, xuli, xxiong, yacao, yuxisun
Version: 8.6Keywords: MigratedToJIRA, Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2128448 (view as bug list) Environment:
Last Closed: 2023-09-22 14:26:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1474300    
Bug Blocks: 2128448    

Description Li Tian 2022-09-20 14:54:29 UTC
Description of problem:
UDP data loss is supposed be less then 1% in the below situation.
1. vRSS hashing excludes the port where UDP data is through.
# ethtool -n eth0 rx-flow-hash udp4
UDP over IPV4 flows use these fields for computing Hash flow key:
IP SA
IP DA
2. Packets length is larger than MTU, e.g. 8k.

Tested with 2 Standard_D15_v2 VMs using the below commands on each respectively:
# iperf3 -s 4 -p 8001
# iperf3 -u -c 10.0.0.4 -p 8001 -4 -b 0 -l 8k -P 64 -t 60 --get-server-output -i 60

And the result is:
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-60.01  sec  1.09 MBytes   152 Kbits/sec  4.741 ms  31221/31360 (1e+02%)  receiver
[  6]   0.00-60.01  sec   944 KBytes   129 Kbits/sec  3.708 ms  30642/30760 (1e+02%)  receiver
...
[SUM]   0.00-60.01  sec  55.2 MBytes  7.71 Mbits/sec  5.510 ms  1646217/1653281 (1e+02%)  receiver

Version-Release number of selected component (if applicable):
4.18.0-372.29.1.el8_6.x86_64

How reproducible:
100% on Azure.

Steps to Reproduce:
1. Create 2 VMs and disable vRSS hashing by - 
# ethtool -N eth0 rx-flow-hash udp4 sd
2. run iperf3 commands in description individually.

Actual results:
Data loss is greater than 1%.

Expected results:
Data loss is less than 1%.

Additional info:
1. This issue presents from 8.6 through 9.1.
2. Related BZ - https://bugzilla.redhat.com/show_bug.cgi?id=1474300 (looks like a re-occurrence).
3. Issue does not present when packets are smaller than MTU.
4. Issue presents on other VM sizes, e.g. Standard_D16s_v5.

Comment 1 Eduardo Otubo 2022-09-29 10:03:46 UTC
(In reply to Li Tian from comment #0)
> Description of problem:
> UDP data loss is supposed be less then 1% in the below situation.
> 1. vRSS hashing excludes the port where UDP data is through.
> # ethtool -n eth0 rx-flow-hash udp4
> UDP over IPV4 flows use these fields for computing Hash flow key:
> IP SA
> IP DA
> 2. Packets length is larger than MTU, e.g. 8k.
> 
> Tested with 2 Standard_D15_v2 VMs using the below commands on each
> respectively:
> # iperf3 -s 4 -p 8001
> # iperf3 -u -c 10.0.0.4 -p 8001 -4 -b 0 -l 8k -P 64 -t 60
> --get-server-output -i 60
> 
> And the result is:
> [ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total
> Datagrams
> [  5]   0.00-60.01  sec  1.09 MBytes   152 Kbits/sec  4.741 ms  31221/31360
> (1e+02%)  receiver
> [  6]   0.00-60.01  sec   944 KBytes   129 Kbits/sec  3.708 ms  30642/30760
> (1e+02%)  receiver
> ...
> [SUM]   0.00-60.01  sec  55.2 MBytes  7.71 Mbits/sec  5.510 ms 
> 1646217/1653281 (1e+02%)  receiver
> 
> Version-Release number of selected component (if applicable):
> 4.18.0-372.29.1.el8_6.x86_64
> 
> How reproducible:
> 100% on Azure.
> 
> Steps to Reproduce:
> 1. Create 2 VMs and disable vRSS hashing by - 
> # ethtool -N eth0 rx-flow-hash udp4 sd
> 2. run iperf3 commands in description individually.
> 
> Actual results:
> Data loss is greater than 1%.
> 
> Expected results:
> Data loss is less than 1%.
> 
> Additional info:
> 1. This issue presents from 8.6 through 9.1.
> 2. Related BZ - https://bugzilla.redhat.com/show_bug.cgi?id=1474300 (looks
> like a re-occurrence).
> 3. Issue does not present when packets are smaller than MTU.
> 4. Issue presents on other VM sizes, e.g. Standard_D16s_v5.

Is it a realistic scenario in real world to have package size larger than the MTU setting?

@vkuznets perhaps you can shed a light on this matter?

Thanks!

Comment 2 Vitaly Kuznetsov 2022-10-03 07:40:49 UTC
(In reply to Eduardo Otubo from comment #1)
> 
> Is it a realistic scenario in real world to have package size larger than
> the MTU setting?
> 

Generally speaking it is. An application using UDP has no idea about the MTU
size of the underlying NIC, it can always try sending bigger packets. I'm not
sure how common it is though.

Comment 6 Li Tian 2023-02-27 03:26:00 UTC
Issue still presents on latest 8.8 (4.18.0-472.el8.x86_64):

[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-60.02  sec   584 KBytes  79.7 Kbits/sec  0.111 ms  69556/69629 (1e+02%)  receiver
[  6]   0.00-60.02  sec   600 KBytes  81.9 Kbits/sec  0.072 ms  69521/69596 (1e+02%)  receiver
...
[SUM]   0.00-60.02  sec  40.4 MBytes  5.65 Mbits/sec  0.135 ms  4450502/4455678 (1e+02%)  receiver

Comment 13 Yaju Cao 2023-08-16 11:25:06 UTC
'1. This issue presents from 8.6 through 9.1.'
--- What's the result for 8.5/9.0?

Comment 15 RHEL Program Management 2023-09-22 14:23:47 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 16 RHEL Program Management 2023-09-22 14:26:24 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.