0
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

      ...
Xen

DomU

                                        Dom0
    eth0

              vif0.0
DomU


    eth0      vif1.0        ...
DomU      :

 DomU

                                      Dom0
   eth0

                 vif0.0
 DomU


   eth0          v...
DomU        : iptables



domU                                    ,fwmark

iptables -t mangle -A FORWARD -m physdev 
     ...
Netback/Netfront

DomU

                                p≤s

  where:    p:    vifN.M             dom0
            n:    n...
rate
                     †
     rate:
                         †
     ceil:




† tc-htb(8)
DomU         :

                                        1: htb




                                        1:1 htb
       ...
DomU        : HTB             : Root    Inner


Root
tc qdisc add dev peth0 root handle 1: htb default 130




Inner


tc ...
DomU           : HTB            : Leaf


Leaf




tc class add   dev peth0 parent 1:1   classid 1:100 htb 
        rate   ...
DomU               : FIFO


HTB Leaf                  FIFO
      HTB                 qdisc
                         PFIFO
...
DomU        :


iptables                    fwmark
     handle N   fwmark
     flowid X:Y flowid X:Y

tc filter add dev pet...
HTB
HZ
: Dom0
: DomU
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
×

XS Japan 2008 Isolation Japanese

395

Published on

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
395
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "XS Japan 2008 Isolation Japanese"

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

    Clipping is a handy way to collect important slides you want to go back to later.

×