XS Japan 2008 Isolation Japanese
Upcoming SlideShare
Loading in...5
×
 

XS Japan 2008 Isolation Japanese

on

  • 888 views

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

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

Statistics

Views

Total Views
888
Views on SlideShare
888
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

XS Japan 2008 Isolation Japanese XS Japan 2008 Isolation Japanese Presentation Transcript

  • Xen Sumit Tokyo 2008 <simon@valinux.co.jp> <inakoshi.hiroya@jp.fujitsu.com>
  • Dom0 Dom0 Linux
  • NIC Dom0 CPU Dom0
  • NIC domU Dom0 CPU domU Dom0 Dom0
  • domU
  • domU NIC Dom0 CPU Dom0
  • Netback/Netfront Netfront NIC , dom0 CPU dom0 Dom0 DomU Netback Networking Core 物理NICのドライバ Netfront skb skb skb リングバッファ パケット 第1スロット フラグメント フラグメント フラグメント フラグメント 第2スロット メタデータ ... free list
  • Xen DomU Dom0 eth0 vif0.0 DomU eth0 vif1.0 xenbr0 peth0 network DomU vif2.0 eth0 3 domU
  • DomU : DomU Dom0 eth0 vif0.0 DomU eth0 vif1.0 xenbr0 peth0 network DomU vif2.0 eth0 xenbr0 domU
  • 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
  • Netback/Netfront DomU p≤s where: p: vifN.M dom0 n: netback ( = 256) dom0 dom0 dom0 domU
  • rate † rate: † ceil: † tc-htb(8)
  • 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
  • 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
  • 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
  • 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
  • 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
  • HTB
  • HZ
  • : Dom0
  • : DomU