Your SlideShare is downloading. ×
0
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

XS Japan 2008 Isolation Japanese

383

Published on

Hirokazu Takahashi and Simon Horman: Block Device & Networking Bandwidth Isolation

Hirokazu Takahashi and Simon Horman: Block Device & Networking Bandwidth Isolation

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
383
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Xen Sumit Tokyo 2008 <simon@valinux.co.jp> <inakoshi.hiroya@jp.fujitsu.com>
  • 2. Dom0 Dom0 Linux
  • 3. NIC Dom0 CPU Dom0
  • 4. NIC domU Dom0 CPU domU Dom0 Dom0
  • 5. domU
  • 6. domU NIC Dom0 CPU Dom0
  • 7. Netback/Netfront Netfront NIC , dom0 CPU dom0 Dom0 DomU Netback Networking Core 物理NICのドライバ Netfront skb skb skb リングバッファ パケット 第1スロット フラグメント フラグメント フラグメント フラグメント 第2スロット メタデータ ... free list
  • 8. Xen DomU Dom0 eth0 vif0.0 DomU eth0 vif1.0 xenbr0 peth0 network DomU vif2.0 eth0 3 domU
  • 9. DomU : DomU Dom0 eth0 vif0.0 DomU eth0 vif1.0 xenbr0 peth0 network DomU vif2.0 eth0 xenbr0 domU
  • 10. DomU : iptables domU ,fwmark iptables -t mangle -A FORWARD -m physdev --physdev-in vif2.0 -j MARK --set-mark 100 iptables -t mangle -A FORWARD -m physdev --physdev-in vif3.0 -j MARK --set-mark 110 iptables -t mangle -A FORWARD -m physdev --physdev-in vif5.0 -j MARK --set-mark 120
  • 11. Netback/Netfront DomU p≤s where: p: vifN.M dom0 n: netback ( = 256) dom0 dom0 dom0 domU
  • 12. rate † rate: † ceil: † tc-htb(8)
  • 13. DomU : 1: htb 1:1 htb rate 900Mbit ceil 900Mbit 1:100 htb 1:110 htb 1:120 htb 1:130 htb rate 500Mbit rate 100Mbit rate 100Mbit rate 100Mbit ceil 900Mbit ceil 900Mbit ceil 900Mbit ceil 900Mbit 1100: pfifo 1110: pfifo 1120: pfifo 1130: pfifo limit 1000p limit 1000p limit 1000p limit 1000p
  • 14. DomU : HTB : Root Inner Root tc qdisc add dev peth0 root handle 1: htb default 130 Inner tc class add dev peth0 parent 1: classid 1:1 htb rate 900Mbit ceil 900Mbit
  • 15. DomU : HTB : Leaf Leaf tc class add dev peth0 parent 1:1 classid 1:100 htb rate 500Mbit ceil 900Mbit tc class add dev peth0 parent 1:1 classid 1:110 htb rate 100Mbit ceil 900Mbit tc class add dev peth0 parent 1:1 classid 1:120 htb rate 100Mbit ceil 900Mbit tc class add dev peth0 parent 1:1 classid 1:130 htb rate 100Mbit ceil 900Mbit
  • 16. DomU : FIFO HTB Leaf FIFO HTB qdisc PFIFO tc qdisc add dev peth0 parent 1:100 handle 1100: pfifo limit 1000 tc qdisc add dev peth0 parent 1:110 handle 1110: pfifo limit 1000 tc qdisc add dev peth0 parent 1:120 handle 1120: pfifo limit 1000 tc qdisc add dev peth0 parent 1:130 handle 1130: pfifo limit 1000
  • 17. DomU : iptables fwmark handle N fwmark flowid X:Y flowid X:Y tc filter add dev peth0 protocol ip parent 1: handle 100 flowid 1:100 tc filter add dev peth0 protocol ip parent 1: handle 110 flowid 1:110 tc filter add dev peth0 protocol ip parent 1: handle 120 flowid 1:120
  • 18. HTB
  • 19. HZ
  • 20. : Dom0
  • 21. : DomU

×