openstack ovs-gre 网速慢解决方案
2013-12-13 15:05
274 查看
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:
Create and edit file /etc/neutron/dnsmasq-neutron.conf and put this inside:
Restart DHCP:
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/
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/
相关文章推荐
- openstack ovs-gre 网速慢解决方案
- 网速慢的原因和解决方案
- 局域网网速变慢 5种可行解决方案
- thinkpad S3笔记本无线网速慢的解决方案
- 企业网络网速慢完美解决方案
- OSPF骨干区域不连续的两种解决方案―虚链路(Virtual-link)和GRE Tunnel
- Win8系统网速变慢的解决方案
- Linux下的JFreeChart和 汉子验证码 中文乱码问题解决方案
- 全文检索中近义词、关联词的解决方案
- 【转帖】SharePoint 2010中的沙盒解决方案(Sandboxed Solution)
- Silverlight Gantt甘特图项目管理解决方案
- "返回"按钮的解决方案摸索
- fusioncharts 中 图表flash置顶 解决方案
- GRE词汇整理(magoosh版本)
- qt5.3.0 vs打包完美解决方案
- Analyzing dependencies 解决方案
- myeclipse 10 在mac中字体模糊问题解决方案
- 关于安装wordpress出现500 Internal Server Error的解决方案
- Tomcat内存溢出报java.lang.OutOfMemoryError: PermGen space错误的解决方案