33

TCP connection management in SDN

Embed Size (px)

Citation preview

— HTTP Request

— FlowTable Configuration

— File Data

2

3

4

5

OpenFlow switch

sw

hw

hw

….

6

7

王道佳. (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

11

12

13

14

15

16

17

18

19

20

21

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

24

25

26

27

28

29

30

31

32

33