免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6077 | 回复: 3
打印 上一主题 下一主题

[系统管理] ping网关输出信息中icmp_seq有跳号的情况 [复制链接]

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-04-14 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-08-24 10:14 |只看该作者 |倒序浏览
本帖最后由 running_life 于 2016-08-24 10:57 编辑

环境:
1、用centos6.7或者ubuntu等ping网关发现icmp_seq有跳号的现象,跳号时会卡顿在那,就像丢包一样,但是没有报出丢包错误。最后终止ping时,看到有丢包信息输出,例如:
2262 packets transmitted, 2219 received, 1% packet loss, time 2264329ms
rtt min/avg/max/mdev = 11.293/12.013/19.907/0.739 ms

65515 bytes from 192.168.0.1: icmp_seq=941 ttl=255 time=165 ms
65515 bytes from 192.168.0.1: icmp_seq=942 ttl=255 time=123 ms
65515 bytes from 192.168.0.1: icmp_seq=943 ttl=255 time=129 ms
65515 bytes from 192.168.0.1: icmp_seq=944 ttl=255 time=120 ms
65515 bytes from 192.168.0.1: icmp_seq=945 ttl=255 time=122 ms
65515 bytes from 192.168.0.1: icmp_seq=946 ttl=255 time=117 ms
65515 bytes from 192.168.0.1: icmp_seq=947 ttl=255 time=118 ms
65515 bytes from 192.168.0.1: icmp_seq=948 ttl=255 time=120 ms
65515 bytes from 192.168.0.1: icmp_seq=949 ttl=255 time=118 ms
65515 bytes from 192.168.0.1: icmp_seq=950 ttl=255 time=118 ms
65515 bytes from 192.168.0.1: icmp_seq=951 ttl=255 time=118 ms
65515 bytes from 192.168.0.1: icmp_seq=952 ttl=255 time=127 ms
65515 bytes from 192.168.0.1: icmp_seq=953 ttl=255 time=125 ms
65515 bytes from 192.168.0.1: icmp_seq=954 ttl=255 time=115 ms
65515 bytes from 192.168.0.1: icmp_seq=955 ttl=255 time=168 ms
65515 bytes from 192.168.0.1: icmp_seq=956 ttl=255 time=117 ms
65515 bytes from 192.168.0.1: icmp_seq=957 ttl=255 time=122 ms
65515 bytes from 192.168.0.1: icmp_seq=958 ttl=255 time=115 ms
65515 bytes from 192.168.0.1: icmp_seq=959 ttl=255 time=126 ms
65515 bytes from 192.168.0.1: icmp_seq=964 ttl=255 time=126 ms


用strace跟踪发现,掉包数正好跟下面这个信息数吻合,网上查了下,有说tcp发送接收缓冲参数设置问题的。
recvmsg(3, 0x7ffe371089c0, 0)           = -1 EAGAIN (Resource temporarily unavailable)
我已经设置了这些参数,但是还是掉包
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.tcp_rmem = 4096 87380 4194304
net.ipv4.tcp_wmem = 4096 16384 4194304


2、用windows环境ping这个网关就没有掉包现象。

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-08-07 06:20:00
2 [报告]
发表于 2016-08-24 17:55 |只看该作者
ping -s 56 192.168.0.1

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-04-14 06:20:00
3 [报告]
发表于 2016-08-24 18:03 |只看该作者
56是不是就是64byte的包,这个试过了,小包也掉;我们准备重启或者更换交换机试试,用一个小的交换机试过了,直接ping不掉回复 2# MrQing


论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-08-07 06:20:00
4 [报告]
发表于 2016-08-24 19:57 |只看该作者
回复 3# running_life


关注一下丢包时,交换机背板带宽/包转发率 呢? 是不是包转发率到上限了?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP