免费注册 查看新帖 |

Chinaunix

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

mac上本地网络传输问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-02-09 10:27 |只看该作者 |倒序浏览
本帖最后由 deletex 于 2015-02-09 10:28 编辑

  1. 在我的Mac电脑中,以太网网卡的ip为:10.3.48.82
  2. 使用iperf -s 启动服务器
  3. 使用iperf -c 10.3.48.82 -n 131072 进行测试,不到1秒就传完,131072 = 128K
  4. 使用iperf -c 10.3.48.82 -n 131073 进行测试,需要34秒传完,131073 = 128K + 1

  5. 以下是相关指令的执行结果,所有操作均在该Mac电脑上,请问为什么会这样

  6. =================================================================================
  7. 执行命令:ifconfig
  8. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 1500
  9. options=3<RXCSUM,TXCSUM>        
  10. inet 127.0.0.1 netmask 0xff000000
  11. nd6 options=1<PERFORMNUD>
  12. gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
  13. stf0: flags=0<> mtu 1280
  14. en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
  15. options=10b<RXCSUM,TXCSUM,VLAN_HWTAGGING,AV>
  16. ether xx:xx:xx:xx:xx:xx
  17. inet 10.3.48.82 netmask 0xffffff00 broadcast 10.3.48.255
  18. nd6 options=1<PERFORMNUD>
  19. media: autoselect (100baseTX <full-duplex>)
  20. status: active
  21. en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
  22. ether xx:xx:xx:xx:xx:xx
  23. nd6 options=1<PERFORMNUD>
  24. media: autoselect
  25. status: active
  26. bridge100: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
  27. options=3<RXCSUM,TXCSUM>
  28. ether xx:xx:xx:xx:xx:xx
  29. inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
  30. Configuration:
  31. id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
  32. maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
  33. root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
  34. ipfilter disabled flags 0x2
  35. member: en1 flags=3<LEARNING,DISCOVER>
  36. ifmaxaddr 0 port 5 priority 0 path cost 0
  37. media: autoselect
  38. status: active



  39. =================================================================================
  40. 执行命令:iperf -s
  41. ------------------------------------------------------------
  42. Server listening on TCP port 5001
  43. TCP window size:  128 KByte (default)
  44. ------------------------------------------------------------
  45. [  4] local 10.3.48.82 port 5001 connected with 10.3.48.82 port 52100
  46. [  5] local 10.3.48.82 port 5001 connected with 10.3.48.82 port 52101
  47. [ ID] Interval       Transfer     Bandwidth
  48. [  4]  0.0-41.2 sec   128 KBytes  25.5 Kbits/sec



  49. =================================================================================
  50. 第一次执行命令:iperf -c 10.3.48.82 -n 131072
  51. ------------------------------------------------------------
  52. Client connecting to 10.3.48.82, TCP port 5001
  53. TCP window size:  129 KByte (default)
  54. ------------------------------------------------------------
  55. [  4] local 10.3.48.82 port 52100 connected with 10.3.48.82 port 5001
  56. [ ID] Interval       Transfer     Bandwidth
  57. [  4]  0.0- 0.0 sec   128 KBytes  30.0 Gbits/sec



  58. =================================================================================
  59. 第二次执行命令:iperf -c 10.3.48.82 -n 131073
  60. ------------------------------------------------------------
  61. Client connecting to 10.3.48.82, TCP port 5001
  62. TCP window size:  129 KByte (default)
  63. ------------------------------------------------------------
  64. [  4] local 10.3.48.82 port 52101 connected with 10.3.48.82 port 5001
  65. [ ID] Interval       Transfer     Bandwidth
  66. [  4]  0.0-34.3 sec   256 KBytes  61.1 Kbits/sec



  67. =================================================================================
  68. 内核参数:
  69. net.inet.ip.fw.enable: 0
  70. net.local.stream.sendspace: 65535
  71. net.local.stream.recvspace: 65535
  72. net.local.dgram.recvspace: 4096
  73. net.inet.tcp.sendspace: 131072
  74. net.inet.tcp.recvspace: 131072
  75. net.inet.udp.recvspace: 196724
  76. net.inet.raw.recvspace: 8192
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP