




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、深入理解Neutron巨楓 大綱部署環(huán)境中的網絡Neutron框架介紹Neutron概念介紹Neutron中數據流分析Neutron與OpenvSwitchNeutron中的DVRNeutron代碼簡介Neutron運維部署環(huán)境中的網絡OpenStack架構圖neutron架構圖OpenStack里的網絡neutron-server提供neutron API,使用plugin的方式處理API并讀寫數據庫,icehouse版的默認plugin是ml2 plugin。使用消息隊列與其他agent交互。L3-agent負責浮動IP的和router的具體實現。實現浮動IP到虛機私有IP的映射。負責ro
2、uter的具體實現,創(chuàng)建router對應的私有網絡的網關,創(chuàng)建router對應的公網的網絡設備。neutron-metadata-agent負責虛機里訪問metadata數據。dhcp-agent負責私有網絡中虛機的IP分配為不同的子網創(chuàng)建不同的dnsmasq實例,負責給虛機分配IP。創(chuàng)建虛機時,IP和mac地址會在dnsmasq里設置好,虛機啟動時獲取指定的IP。plugin-agent: neutron-openvswitch-agent負責不同類型網絡的具體實現根據網絡的類型和屬性建立規(guī)則連通網絡。neutron-openvswitch-agent使用openvswtich網絡虛擬化技術
3、,實現neutron里定義的網絡。Neutron概念介紹net 網絡subnet 子網router 路由floating-ip 浮動IPport 網絡portsecurity-group 防火墻組Neutron數據庫模型網絡拓撲網絡neutron help net-create外部網絡neutron net-create public_network -router:external True共享網絡neutron net-create share_network -shared私有網絡neutron net-create private_network子網neutron help subne
4、t-createneutron subnet-create -h -f html,json,shell,table,yaml -c COLUMN -variable VARIABLE -prefix PREFIX -request-format json,xml -tenant-id TENANT_ID -name NAME -ip-version 4,6 -gateway GATEWAY_IP -no-gateway -allocation-pool start=IP_ADDR,end=IP_ADDR -host-route destination=CIDR,nexthop=IP_ADDR
5、-dns-nameserver DNS_NAMESERVER -disable-dhcp NETWORK CIDRneutron subnet-create private_network /24路由連接不同的網絡創(chuàng)建routerneutron router-create test_router連接外部網路neutron router-gateway-set router-id external-network-id連接內部網絡neutron router-interface-add router-id INTERFACE浮動IP創(chuàng)建浮動IPneutron floatin
6、gip-create FLOATING_NETWORK關聯浮動IP到主機neutron floatingip-associate FLOATINGIP_ID PORT網絡Port網絡設備比如虛機的網卡、路由連接兩端網絡的網卡neutron port-list虛機防火墻使用iptables實現到虛機的防火墻管理openstack安裝好后,默認有一個default防火墻。查看防火墻組neutron security-group-list查看防火墻規(guī)則neutron security-group-rule-list部署虛機時neutron數據流Neutron中虛機數據流典型分析1. 虛機如何獲取IP
7、2. 虛機ping外部網絡時數據包的流向控制節(jié)點網絡設備計算節(jié)點網絡設備OpenvSwitch介紹openvswitch概念Neutron中如何使用openvswichOpenvSwitch主要組件OpenvSwitch命令ovs-vsctl ovsdb-server ovs-ofctl - ovs-vswitchdovs-dpctl kernel datapathovs-appctl OVS daemonsNeutron中如何使用openvswichneutron-openvswtich-agent負責與openvswtich交互根據不同的網絡類型和設置創(chuàng)建不同的ovs port和openf
8、low流規(guī)則local網絡br-inttapXXX(vm)tapXXX(dhcp)eth0dnsmasqVM0flat網絡br-inttapXXX(vm)tapXXX(dhcp)eth0dnsmasqVM0br-eth1phy-br-eth1phy-br-intTag is converted with flow tablestrip_vlan = mod_vlan_vid:1Tag is converted with flow tabledl_vlan=1 = strip_vlaneth1patch pairvlan網絡br-inttapXXX(vm)tapXXX(dhcp)eth0dnsm
9、asqVM0br-eth1phy-br-eth1phy-br-intVLAN ID is converted with flow tabledl_vlan=101 = mod_vlan_vid:1dl_vlan=102 = mod_vlan_vid:2VLAN ID is converted with flow tabledl_vlan=1 = mod_vlan_vid:101dl_vlan=2 = mod_vlan_vid:102eth1patch pairgre網絡br-inttapXXX(vm)tapXXX(dhcp)eth0dnsmasqVM0br-tunpatch-intpatch-
10、tuntunnel_id is set by flow tabledl_vlan=3 actions=strip_vlan,set_tunnel:0 x1eth1gre-tunnel_id is removed by flow tabletun_id=0 x1 actions=mod_vlan_vid:3patch pairvxlan網絡br-inttapXXX(vm)tapXXX(dhcp)eth0dnsmasqVM0br-tunpatch-intpatch-tuntunnel_id is set by flow tabledl_vlan=3 actions=strip
11、_vlan,set_tunnel:0 x1eth1vxlan-tunnel_id is removed by flow tabletun_id=0 x1 actions=mod_vlan_vid:3patch pairNeutron DVR沒有DVR時,所有路由,Floatingip都在網絡節(jié)點。容易造成網絡節(jié)點單點問題,負載問題,性能問題。DVR可以適度的解決這些問題,將路由,Floatingip放到對應的計算節(jié)點。DVR不能解決集中SNAT,分布式DHCP。DVR對FWaas,LBaas,VPNaas支持程度在不同OpenStack版本里不同。Neutron DVRN
12、etwork Node 2 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration BridgeFlowTunnel BrCase 1 Same network, Same Compute Node Neutron DVRNetwork Node 1 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration BridgeFlowTunnel BrCompute Node 1 (KVM)T1VM1T1VM2T1VM3T2VM1ARPInt R1FW1ARPInt R2FW2FlowIntegration BridgeFlo
13、wTunnel BrFloat IPExt BrCompute Node 2 (KVM)T1VM4T1VM5T1VM6T2VM2ARPInt R1FW1ARPInt R2FW2FlowIntegration BridgeFlowTunnel BrFloat IPExt BrInternetVNET 1VNET 2VNET 3External NetworkNetwork Node 2 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration BridgeFlowTunnel BrCase 2 Same Network, Different Compute N
14、odeNeutron DVRNetwork Node 1 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration BridgeFlowTunnel BrCompute Node 1 (KVM)T1VM1T1VM2T1VM3T2VM1ARPInt R1FW1ARPInt R2FW2FlowIntegration BridgeFlowTunnel BrFloat IPExt BrCompute Node 2 (KVM)T1VM4T1VM5T1VM6T2VM2ARPInt R1FW1ARPInt R2FW2FlowIntegration BridgeFlowTu
15、nnel BrFloat IPExt BrInternetVNET 1VNET 2VNET 3External NetworkNetwork Node 2 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration BridgeFlowTunnel BrCase 3 Same Tenant, different Networks, same Compute nodeBefore DVR Enhancement (East/West)Network Node 1 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration Bri
16、dgeFlowTunnel BrCompute Node 1 (KVM)T1VM1T1VM2T1VM3T2VM1ARPInt R1FW1ARPInt R2FW2FlowIntegration BridgeFlowTunnel BrFloat IPExt BrCompute Node 2 (KVM)T1VM4T1VM5T1VM6T2VM2ARPInt R1FW1ARPInt R2FW2FlowIntegration BridgeFlowTunnel BrFloat IPExt BrInternetVNET 1VNET 2VNET 3External NetworkBefore DVR, this
17、 traffic would need to go to the Network Node to be routed.L3NamespaceNetwork Node 2 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration BridgeFlowTunnel BrCase 3 Same Tenant, different Networks, same Compute nodeDVR Enhancement (East/West)Network Node 1 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration Bri
18、dgeFlowTunnel BrCompute Node 1 (KVM)T1VM1T1VM2T1VM3T2VM1ARPInt R1FW1ARPInt R2FW2FlowIntegration BridgeFlowTunnel BrFloat IPExt BrCompute Node 2 (KVM)T1VM4T1VM5T1VM6T2VM2ARPInt R1FW1ARPInt R2FW2FlowIntegration BridgeFlowTunnel BrFloat IPExt BrInternetVNET 1VNET 2VNET 3External NetworkBefore DVR, this
19、 traffic would need to go to the Network Node to be routed.Network Node 2 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration BridgeFlowTunnel BrCase 4 Same Tenant, different Networks, different Compute nodeDVR Enhancement (East/West)Network Node 1 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration BridgeFlo
20、wTunnel BrCompute Node 1 (KVM)T1VM1T1VM2T1VM3T2VM1ARPInt R1FW1ARPInt R2FW2FlowIntegration BridgeFlowTunnel BrFloat IPExt BrCompute Node 2 (KVM)T1VM4T1VM5T1VM6T2VM2ARPInt R1FW1ARPInt R2FW2FlowIntegration BridgeFlowTunnel BrFloat IPExt BrInternetVNET 1VNET 2VNET 3External NetworkBefore DVR, this traff
21、ic would need to go to the Network Node to be routed.Network Node 2 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration BridgeFlowTunnel BrCase 5 Floating IPDVR Enhancement (North/South)Network Node 1 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration BridgeFlowTunnel BrCompute Node 1 (KVM)T1VM1T1VM2T1VM3T2V
22、M1ARPInt R1FW1ARPInt R2FW2FlowIntegration BridgeFlowTunnel BrFloat IPExt BrCompute Node 2 (KVM)T1VM4T1VM5T1VM6T2VM2ARPInt R1FW1ARPInt R2FW2FlowIntegration BridgeFlowTunnel BrFloat IPExt BrInternetVNET 1VNET 2VNET 3External NetworkNetwork Node 2 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration BridgeFlowTunnel BrCase 6 Default SNATDVR Enhancement (North/South)Network Node 1 (KVM)Ext BrARPNAT1FW1ARPNAT2FW2FlowIntegration BridgeFlowTunnel BrCompute Node 1 (KVM)T1VM1T1VM2T1VM3T2VM1ARPInt R1FW1ARPInt R2FW2FlowInteg
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度車輛事故環(huán)境損害賠償協議
- 二零二五年度退租協議書及舊房裝修拆除工程合同
- 2025年度期刊發(fā)行權轉讓認刊書審核及執(zhí)行合同
- 二零二五年度房屋租賃合同租賃房屋租賃合同解除程序
- 二零二五年度品牌形象維護營銷人員保密及合作協議
- 2025年度科技研發(fā)領域自愿出資入股協議
- 2025年度貴金屬首飾典當借款服務協議
- 二零二五年度互聯網企業(yè)職工勞動合同優(yōu)化方案
- 二零二五年度電子行業(yè)經典實習期勞動合同模板
- 《物流系統分析》課件 項目七任務四 了解物流系統仿真實踐
- 一年級下冊地方課程教案
- 第二章 航空飛行常見疾病
- 牛羊定點屠宰廠項目可行性研究報告-甲乙丙資信
- 03SG520-1實腹式鋼吊車梁(中輕級工作制A1~A5_Q235鋼_跨度6.0m、7.5m、9.0m)
- 妊娠糖尿病-楊慧霞.ppt
- (完整word版)消化系統知識點整理
- 煤礦綜采工作面配套設備選型設計
- 全國防返貧監(jiān)測信息系統業(yè)務管理子系統操作手冊
- 工程施工項目明細表-改(5)
- 出差行程計劃表(模版)
- 《Lou's Flu》RAZ分級閱讀繪本pdf資源
評論
0/150
提交評論