Gamepad & WSN

设置ARM网络环境带来的新问题

日期: 2012-07-29    作者: Gamepader    分类: ARM_Linux, Network, 碎碎念    标签: , , , ,     评论: 0    超过103人围观

上一篇文章中,我详细记录了使用有线网络通过无线路由器共享给ARM开发板和其他设备,并且配置虚拟机网络、使ARM开发板、电脑主机、虚拟机能够互相通信、并且都能够自由访问网络的操作流程,问题是解决了,但是带来了一个不致命的新问题:在linux系统ping网内主机时,可能会出现 (DUP!)回复:
在ARM开发板上ping虚拟机:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[[email protected] /]# ping 192.168.1.98
PING 192.168.1.98 (192.168.1.98): 56 data bytes
64 bytes from 192.168.1.98: seq=0 ttl=64 time=5.697 ms
64 bytes from 192.168.1.98: seq=0 ttl=64 time=6.436 ms (DUP!)
64 bytes from 192.168.1.98: seq=1 ttl=64 time=2.854 ms
64 bytes from 192.168.1.98: seq=1 ttl=64 time=3.349 ms (DUP!)
64 bytes from 192.168.1.98: seq=2 ttl=64 time=2.751 ms
64 bytes from 192.168.1.98: seq=2 ttl=64 time=3.338 ms (DUP!)
64 bytes from 192.168.1.98: seq=3 ttl=64 time=2.844 ms
64 bytes from 192.168.1.98: seq=3 ttl=64 time=3.433 ms (DUP!)
^C
--- 192.168.1.98 ping statistics ---
4 packets transmitted, 4 packets received, 4 duplicates, 0% packet loss
round-trip min/avg/max = 2.751/3.837/6.436 ms

在虚拟机上ping ARM开发板:

1
2
3
4
5
6
7
8
9
10
[email protected]:~$ ping 192.168.1.99
PING 192.168.1.99 (192.168.1.99) 56(84) bytes of data.
64 bytes from 192.168.1.99: icmp_seq=1 ttl=64 time=2.61 ms
64 bytes from 192.168.1.99: icmp_seq=1 ttl=63 time=2.68 ms (DUP!)
64 bytes from 192.168.1.99: icmp_seq=2 ttl=64 time=2.04 ms
64 bytes from 192.168.1.99: icmp_seq=2 ttl=63 time=2.08 ms (DUP!)
^C
--- 192.168.1.99 ping statistics ---
2 packets transmitted, 2 received, +2 duplicates, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 2.048/2.356/2.681/0.299 ms

猜测可能的原因是笔记本的无线网卡绑定了多个IP地址(网关192.168.1.126和虚拟机192.168.1.98),造成通往内网某个IP的路径超过一条,因此收到了多个ICMP回复包。
此问题不影响使用,但是作为不折腾不舒服斯基,还是一定要折腾个明白的。
以上猜测结果结果等待实验验证中。。。


使用sudo route del 192.168.1.64/26删除ARM和虚拟机系统的路由表条目

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
192.168.1.64/26[cci],问题依旧
[cc lang="bash"]
[[email protected] /]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.126   0.0.0.0         UG    0      0        0 eth0
[[email protected] /]# ping 192.168.1.98
PING 192.168.1.98 (192.168.1.98): 56 data bytes
64 bytes from 192.168.1.98: seq=0 ttl=63 time=4.677 ms
64 bytes from 192.168.1.98: seq=0 ttl=63 time=5.405 ms (DUP!)
64 bytes from 192.168.1.98: seq=1 ttl=63 time=5.274 ms
64 bytes from 192.168.1.98: seq=1 ttl=63 time=5.872 ms (DUP!)
^C
--- 192.168.1.98 ping statistics ---
2 packets transmitted, 2 packets received, 2 duplicates, 0% packet loss
round-trip min/avg/max = 4.677/5.307/5.872 ms
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[email protected]:~$ route -n        
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0         192.168.1.126   0.0.0.0         UG    100    0        0 eth0
[email protected]:~$ ping 192.168.1.99
PING 192.168.1.99 (192.168.1.99) 56(84) bytes of data.
64 bytes from 192.168.1.99: icmp_seq=1 ttl=64 time=2.69 ms
64 bytes from 192.168.1.99: icmp_seq=1 ttl=63 time=2.74 ms (DUP!)
64 bytes from 192.168.1.99: icmp_seq=2 ttl=64 time=2.21 ms
64 bytes from 192.168.1.99: icmp_seq=2 ttl=63 time=2.25 ms (DUP!)
^C
--- 192.168.1.99 ping statistics ---
2 packets transmitted, 2 received, +2 duplicates, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 2.218/2.479/2.749/0.252 ms


等待有时间继续验证…………

原创文章,欢迎转载。
转载请注明来自://www.gamepader.com/archives/2012/07/new-problem-in-arm-network.html

本文链接:https://www.gamepader.com/archives/2012/07/new-problem-in-arm-network.html
本文分类:
>>
>>
>>
除特别标注,本站所有文章均为原创、转载请注明出处。

-- EOF -- ,Leave a msg~~ ^_^

发表评论

loading...