15.10.1网络问题
Tofloor
poster avatar
ubuntuwbw
deepin
2019-07-05 17:23
Author
有台Ubuntu18.04的服务器,上面有个Apache2.4的HTTP服务,可以从上面下载文件,还有SVN的版本管理,这台服务器通过NAT映射到外网,可以从外面访问,用Window10的机器可以正常从服务器上通过svn客户端和Chrome浏览器访问web页面进行下载文件,但用Deepin的就不行,大文件通过Chrome下载几M就没流量了,通过SCP从服务器上下载,也是一样,下载几M就没流量了,状态从ETA变为stalled,通过svn的客户端也是一样的现象,过了一段时间就timeout了,下载多个小文件,能成功一部分,后面的就停了,没流量了
Reply Favorite View the author
All Replies
avatar
Home1104
deepin
2019-07-05 19:29
#1
你先试试用deepin进行ping命令看看返回值里面有没有丢包。
Reply View the author
avatar
ubuntuwbw
deepin
2019-07-06 04:22
#2
https://bbs.deepin.org/post/180235
你先试试用deepin进行ping命令看看返回值里面有没有丢包。

那个服务器的路由器是个3wan口的路由器,而且好像不让ping
Reply View the author
avatar
Feng Yu
deepin
2019-07-06 04:38
#3
判断一下是不是错误的MTU设置。

在服务器本地用curl或wget下载一下文件看看,分别从三个地方网络连接测试: localhost, 服务器的内网ip,服务器的外网ip,看看是否会重现这个问题?
Reply View the author
avatar
走钢丝
deepin
2019-07-06 04:40
#4
可以 ping 一下其他可用的网站看看质量。
另外,有线还是无线,有没有测过网速?
Reply View the author
avatar
ubuntuwbw
deepin
2019-07-06 04:50
#5
之前mtu是1500,windows的客户端也不正常,改为1492后,windows的客户端正常了
我从windows客户端ping服务器是不通的,我的路由上有rule 0 permit ip source <服务器IP> 0这个策略路由,后来我加上rule 0 permit ip destination <服务器IP> 0后,可以ping通,但丢包50%
在服务器上用wget是可以下载文件的,我在路由上有策略路由
Reply View the author
avatar
ubuntuwbw
deepin
2019-07-06 04:51
#6
https://bbs.deepin.org/post/180235
可以 ping 一下其他可用的网站看看质量。
另外,有线还是无线,有没有测过网速? ...

从服务器ping百度没问题
Reply View the author
avatar
走钢丝
deepin
2019-07-06 04:54
#7
https://bbs.deepin.org/post/180235
从服务器ping百度没问题


我是说 deepin 的网络情况。。你上面所说的不就是这个问题吗?服务器没动,应该不是服务器的问题。

Reply View the author
avatar
ubuntuwbw
deepin
2019-07-06 04:56
#8
哦,deepin访问其他网站都没问题,用speedtest.net测试网络速度都没问题
Reply View the author
avatar
走钢丝
deepin
2019-07-06 04:59
#9
https://bbs.deepin.org/post/180235
哦,deepin访问其他网站都没问题,用speedtest.net测试网络速度都没问题

那就不知道了,没碰到过这种问题。
Reply View the author
avatar
ubuntuwbw
deepin
2019-07-06 05:12
#10
https://bbs.deepin.org/post/180235
那就不知道了,没碰到过这种问题。

我还用过手机的热点,也是一样的,排除了客户机这边网络的问题
Reply View the author
avatar
走钢丝
deepin
2019-07-06 05:18
#11
本帖最后由 lidanger 于 2019-7-5 21:22 编辑
https://bbs.deepin.org/post/180235
之前mtu是1500,windows的客户端也不正常,改为1492后,windows的客户端正常了
我从windows客户端ping服务 ...

那你没试试修改下 deepin 网卡的 mtu 值?我这边无线就是 1500.
Reply View the author
avatar
ubuntuwbw
deepin
2019-07-06 05:21
#12
https://bbs.deepin.org/post/180235
那你没试试修改下 deepin 的 mtu 值?

试过,改过1492,和服务器那边一样,现象是一样的
Reply View the author
avatar
走钢丝
deepin
2019-07-06 05:34
#13
ubuntu 上的网卡你看过参数没?看看到底是多少啊。是不是多网卡,或者路由设置有问题。或者在 deepin 上尽量设小点试试。
Reply View the author
avatar
ubuntuwbw
deepin
2019-07-06 05:43
#14
https://bbs.deepin.org/post/180235
ubuntu 上的网卡你看过参数没?看看到底是多少啊。是不是多网卡,或者路由设置有问题。或者在 deepin 上尽 ...

ubuntu上确定是1492,直接了一条lan,不过路由器上有3个外线
Reply View the author
avatar
ubuntuwbw
deepin
2019-07-06 16:09
#15
问题解决了
根据在deepin上安装wireshark抓包软件,对deepin上的网卡数据抓包,发现在出问题前有部分包的window大小超过64k的大小,在deepin的sysctl参数中net.ipv4.tcp_window_scaling=1是不支持超过64k的窗口,通过修改/etc/sysctl.conf,加入net.ipv4.tcp_window_scaling=0后sysctl -p使修改生效后,目前下载上G的文件都是没问题的
Reply View the author
avatar
走钢丝
deepin
2019-07-06 16:29
#16
https://bbs.deepin.org/post/180235
问题解决了
根据在deepin上安装wireshark抓包软件,对deepin上的网卡数据抓包,发现在出问题前有部分包的wi ...

哎呀,厉害,收藏,收藏。
Reply View the author
avatar
走钢丝
deepin
2019-07-06 16:43
#17
不过看网上的介绍,似乎不是你说的这个意思。
Reply View the author