Upload
chao-chen
View
345
Download
0
Embed Size (px)
Citation preview
王道佳. (2013). 基于旁路模式的HTTP内容缓存系统的设计与实现[D]. 北京邮电大学. Chanda, A., & Westphal, C. (2013). Contentflow: Mapping content to flows in software defined networks. arXiv preprint arXiv:1302.1493.
Chanda, A., & Westphal, C. (2012). Content as a network primitive. arXiv preprint arXiv:1212.3341.
Chanda, A., & Westphal, C. (2013, August). A content management layer for software-defined information centric networks. In Proceedings of the 3rd ACM SIGCOMM workshop on Information-centric networking (pp. 47-48). ACM.
User group
WAN
Cache server
Boundary switch
The user request Internet resources for the first time
Cache server downloads file from the Internet
Follow-up request from user
First Request
Follow-up request
8
Controller
— HTTP Request
— FlowTable Configuration
— File Data
Switch A
Switch BSwitch C
User
Proxy Cache
①
②
③
④
⑤
⑥
⑦
⑧
①②
③
④
⑤
⑥
⑦
⑧
9
Controller
— HTTP Request
— FlowTable Configuration
— File Data
Switch A
Switch BSwitch C
User
Proxy Cache
①
②
③
④
⑤
⑥
⑦
⑧
①②
③
④⑤
⑥
⑦
⑧
10
From…import……def topology():
net = Mininet( controller=RemoteController, link=TCLink, switch=OVSKernelSwitch )
c1 = net.addController( 'controller', controller=RemoteController, ip='192.168.56.1', port=6633 )h2 = net.addHost( 'cache', mac='14:44:44:44:44:44', ip='10.10.10.2/24' )s1 = net.addSwitch( 'switchA', listenPort=6634, dpid='000000000000aaaa' ) s2 = net.addSwitch( 'switchB', listenPort=6635, dpid='000000000000bbbb' )s3 = net.addSwitch( 'switchC', listenPort=6636, dpid='000000000000cccc' )
net.addLink(s1, s3, 1, 1)net.addLink(s1, h2, 2, 0)net.addLink(s1, s2, 3, 1)net.build()
s1.start( [c1] )s2.start( [c1] ) s3.start( [c1] )c1.start
CLI( net )net.stop()
if __name__ == '__main__':setLogLevel( 'info' )topology()
22
Mininet> xterm cache switchA switchB switchC
sudo route add default gw 10.10.10.3sudo nginx
sudo ifconfig switch 10.10.10.3 hw ether 166666666666sudo suecho 1 > /proc/sys/net/ipv4/ip_forwardiptables –t nat –A POSTROUTING –s 10.10.10.0/24 –j MASQUERADE
ovs-vsctl add-port switchC eth2
23