[AI Generated] perf(ntttcp): run ntttcp/lagscope over internal IPv4 on dual-stack (use_ipv6)#4601
Open
LiliDeng wants to merge 1 commit into
Open
[AI Generated] perf(ntttcp): run ntttcp/lagscope over internal IPv4 on dual-stack (use_ipv6)#4601LiliDeng wants to merge 1 commit into
LiliDeng wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses consistent failures in perf_*_ntttcp_* runs on dual-stack (use_ipv6: true) environments by ensuring ntttcp/lagscope target an internal IPv4 address when server.internal_address is an IPv6 address.
Changes:
- Added an internal helper to resolve an IPv4 address for
ntttcp/lagscopewhen the node’sinternal_addressis IPv6. - Updated
perf_ntttcp()to use the resolved IPv4 address forlagscopeandntttcpclient/server targeting.
LiliDeng
force-pushed
the
feature/ntttcp-perf-ipv4-in-ipv6
branch
from
July 17, 2026 01:20
a25003e to
4ed2e25
Compare
ntttcp and lagscope bind/connect over IPv4 only. On use_ipv6 (dual-stack) environments server.internal_address is the IPv6 private address, so lagscope fails with 'no port opened for lagscope server' and every ntttcp perf attempt fails. Resolve the server's internal IPv4 from its primary NIC and use it as the ntttcp/lagscope target, so perf runs succeed even when the VMs are deployed with IPv6. IPv4-only deployments are unaffected (internal_address is already IPv4).
LiliDeng
force-pushed
the
feature/ntttcp-perf-ipv4-in-ipv6
branch
from
July 17, 2026 01:27
4ed2e25 to
d62b58e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
perf_tcp_ntttcp_sriov(and the otherperf_*_ntttcp_*cases) fail on everyattempt when the environment is deployed with IPv6 (
use_ipv6: true):Root cause:
ntttcpandlagscopebind/connect over IPv4 only. On a dual-stack(
use_ipv6) deploymentserver.internal_addressis the IPv6 private address, solagscope -r<ipv6>never opens its listening port and every ntttcp attemptfails. The nodes still have an internal IPv4 on the same (SRIOV) NIC.
Fix
Resolve the server's internal IPv4 from its primary NIC and use it as the
ntttcp/lagscope target when
internal_addressis IPv6. IPv4-only deployments areunaffected —
internal_addressis already IPv4, so the helper returns itunchanged and every call site behaves exactly as before.
Validation
perf_tcp_ntttcp_sriovon Azure (eastus2, Ubuntu 22.04,Standard_D2ads_v5,2 nodes, SRIOV):
use_ipv6: true): PASSED. Logs showlagscope -r10.0.0.4→TCP 10.0.0.4:6001 (LISTEN)andntttcp -s10.0.0.4;throughput collected (e.g. 3.77 Gbps @ 20480 connections). The VM is dual-stack
(
inet 10.0.0.5,inet6 2001:db8::5).use_ipv6: false): unchanged code path (server_comm_address == server.internal_address), no regression.Lint
black --check,flake8,pylint(10.00/10) clean on the changed file;mypyonly reports the pre-existing
retryimport-untyped and unrelatedtype: ignorenotes.