openstack ovs-gre 网速慢解决方案

Hint: if you want to check if this answer will solve your issue, execute ifconfig eth0 mtu 1400 on the instance and check the speed.

Edit the file: /etc/quantum/dhcp_agent.ini and set:

dnsmasq_config_file=/etc/neutron/dnsmasq-neutron.conf

Create and edit file /etc/neutron/dnsmasq-neutron.conf and put this inside:

dhcp-option-force=26,1400

Restart DHCP:

service neutron-dhcp-agent restart

And reboot your instance. Verify that your MTU is 1400:

root@web:~# ifconfig eth0 Link encap:Ethernet HWaddr fa:16:3e:f0:6a:9f
inet addr:10.1.0.2 Bcast:10.1.0.255 Mask:255.255.255.0 inet6 addr: fe80::f816:3eff:fef0:6a9f/64 Scope:Link UP BROADCAST RUNNING MULTICASTMTU:1400 Metric:1 RX packets:934855 errors:0 dropped:0 overruns:0 frame:0 TX packets:207741 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1210256390 (1.2 GB) TX bytes:226172592 (226.1 MB)

Test upload speed again. It should be back to normal.


亲测可行。


MTU&GRE

新的数据报头长度为20字节,GRE最小封闭字节为4字节,1500-20-4=1476,而我们的实例默认是1480,必然每个包都自动分片,导致性能下降。

ref:https://ask.openstack.org/en/question/6140/quantum-neutron-gre-slow-performance/

 

转载于:https://www.cnblogs.com/riasky/p/3473113.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值