Bug 1931 - 使用tracepath追踪报文到达目的主机的路由,当设置正常范围的数据包长度为2147483647时,报send failed
Summary: 使用tracepath追踪报文到达目的主机的路由,当设置正常范围的数据包长度为2147483647时,报send failed
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact: xuchunmei
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-19 17:04 UTC by zhixin01
Modified: 2023-05-04 10:49 UTC (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhixin01 alibaba_cloud_group 2022-08-19 17:04:23 UTC
Description of problem:
使用tracepath追踪报文到达目的主机的路由,当设置正常范围数据包长度为2147483647时,报send failed

Version-Release number of selected component (if applicable):
[root@iZbp12nj7zzd2hcr70xlidZ ~]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

How reproducible:


Steps to Reproduce:
1.执行命令`tracepath -l 8 127.0.0.1`,报pktlen must be within: 28 < value <= 2147483647,提示数据包范围28 < value <= 2147483647
2.执行命令`tracepath -l 2147483647 127.0.0.1`,数据包长度设置为正常范围的最大值


Actual results:
send failed

Expected results:
显示报文到达目的主机所经过的路由信息

Additional info:
Comment 1 xuchunmei alibaba_cloud_group 2022-08-22 17:05:56 UTC
tracepath 指令可以追踪数据到达目标主机的路由信息,同时还能够发现MTU值.
tracepath使用的是udp协议,如果-l设置的报文长度大于udp的最大长度65535,则会发生sendto失败。
tracepath的提示信息也有些误导,提示信息中报文长度最大为INT_MAX,远大于UDP max size。
但是实际使用过程中,用户应该很少会这么使用。
可以给社区提个issue来改进tracepath -l参数不合理时的提示信息。
Comment 2 扣肉 2023-01-26 21:57:08 UTC
iputils 软件包现已更新到最新版本,请再测试。
Comment 3 zhixin01 alibaba_cloud_group 2023-05-04 10:49:15 UTC
(In reply to 扣肉 from comment #2)
> iputils 软件包现已更新到最新版本,请再测试。

使用最新的iputils包复测,上述问题依然存在
# yum list iputils --showduplicates
Last metadata expiration check: 1:33:42 ago on Thu 04 May 2023 09:12:19 AM CST.
Installed Packages
iputils.x86_64                                        20221126-1.an23                                         @BaseOS
Available Packages
iputils.src                                           20211215-1.an23                                         BaseOS-source
iputils.x86_64                                        20211215-1.an23                                         BaseOS
iputils.src                                           20221126-1.an23                                         BaseOS-source
iputils.x86_64                                        20221126-1.an23                                         BaseOS
iputils.x86_64                                        20221126-1.an23                                         build