dragonflow fip流量走向图示

外网网关请求fip arp流量

dd.png

1
2
3
4
5
6
7
8
9
cookie=0x0, duration=86.056s, table=0, n_packets=64, n_bytes=3228, idle_age=0, priority=50,in_port=1,vlan_tci=0x0000/0x1fff actions=load:0->OXM_OF_IN_PORT[],load:0x7->OXM_OF_METADATA[],load:0x64->NXM_NX_REG8[],resubmit(,2)

cookie=0x0, duration=185.592s, table=2, n_packets=163, n_bytes=9198, idle_age=0, priority=1 actions=resubmit(,55)

cookie=0x0, duration=195.967s, table=55, n_packets=174, n_bytes=9828, idle_age=0, priority=200,arp,metadata=0x7,arp_tpa=192.168.56.55,arp_op=1 actions=load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],mod_dl_src:fa:16:3e:d4:60:2d,load:0xfa163ed4602d->NXM_NX_ARP_SHA[],load:0xc0a83837->NXM_OF_ARP_SPA[],move:NXM_NX_REG6[]->NXM_NX_REG7[],load:0x84->NXM_NX_REG6[],resubmit(,75)

cookie=0x0, duration=213.471s, table=75, n_packets=191, n_bytes=10848, idle_age=0, priority=50,metadata=0x7 actions=resubmit(,80)

cookie=0x0, duration=222.636s, table=80, n_packets=200, n_bytes=11388, idle_age=1, priority=100,metadata=0x7 actions=output:1

在table55 反转ARP时候,把reg7 = 0 ,reg6 至标记fip接口标记,因为reg7是0,所以最终选择默认的路径,因为是外网网段将该数据包发给外网接口

vm1 ping self fip

dd.png

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cookie=0x0, duration=822.977s, table=0, n_packets=704, n_bytes=67984, idle_age=0, priority=100,in_port=24 actions=load:0x81->NXM_NX_REG6[],load:0x8->OXM_OF_METADATA[],load:0->OXM_OF_IN_PORT[],resubmit(,)

cookie=0x0, duration=840.564s, table=0, n_packets=723, n_bytes=70282, idle_age=0, priority=1 actions=resubmit(,5)

cookie=0x0, duration=849.699s, table=5, n_packets=712, n_bytes=69776, idle_age=1, priority=200,ip,reg6=0x81,dl_src=fa:16:3e:6c:c0:49,nw_src=1.1.1.5 actions=resubmit(,10)

cookie=0x0, duration=859.863s, table=10, n_packets=723, n_bytes=70854, idle_age=0, priority=100,ip,reg6=0x81 actions=ct(table=15,zone=OXM_OF_METADATA[0..15])

cookie=0x0, duration=859.980s, table=15, n_packets=723, n_bytes=70854, idle_age=0, priority=6,conj_id=4,ip actions=ct(commit,table=20,zone=NXM_NX_CT_ZONE[])

cookie=0x0, duration=877.145s, table=20, n_packets=737, n_bytes=72226, idle_age=0, priority=1 actions=resubmit(,55)

cookie=0x0, duration=959.737s, table=55, n_packets=813, n_bytes=79674, idle_age=1, priority=200,metadata=0x8,dl_dst=fa:16:3e:07:f8:41 actions=load:0x2->NXM_NX_REG5[],resubmit(,60)

cookie=0x0, duration=968.577s, table=60, n_packets=822, n_bytes=80556, idle_age=1, priority=70,ip,reg5=0x2,reg6=0x81,metadata=0x8,nw_src=1.1.1.5 actions=resubmit(,77)

cookie=0x0, duration=982.806s, table=77, n_packets=837, n_bytes=82026, idle_age=0, priority=100,ip,reg5=0x2,reg6=0x81,metadata=0x8,nw_src=1.1.1.5 actions=dec_ttl,mod_dl_src:fa:16:3e:d4:60:2d,mod_dl_dst:00:00:00:00:00:00,mod_nw_src:192.168.56.55,load:0x7->OXM_OF_METADATA[],load:0x84->NXM_NX_REG6[],resubmit(,55)

cookie=0x0, duration=1078.560s, table=55, n_packets=951, n_bytes=92506, idle_age=1, priority=70,metadata=0x7,dl_dst=00:00:00:00:00:00/01:00:00:00:00:00 actions=resubmit(,75)

cookie=0x0, duration=1175.212s, table=75, n_packets=1058, n_bytes=102060, idle_age=0, priority=50,metadata=0x7 actions=resubmit(,80)

cookie=0x0, duration=1182.328s, table=80, n_packets=1036, n_bytes=101528, idle_age=0, priority=200,metadata=0x7,dl_dst=00:00:00:00:00:00 actions=mod_dl_dst:08:00:27:12:3f:5b,output:1


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 cookie=0x0, duration=7436.637s, table=0, n_packets=5183, n_bytes=488891, idle_age=0, priority=50,in_port=1,vlan_tci=0x0000/0x1fff actions=load:0->OXM_OF_IN_PORT[],load:0x7->OXM_OF_METADATA[],load:0x64->NXM_NX_REG8[],resubmit(,2)

cookie=0x0, duration=7444.618s, table=2, n_packets=4693, n_bytes=459914, idle_age=0, priority=200,ip,reg6=0,nw_src=192.168.56.55 actions=load:0x81->NXM_NX_REG6[],resubmit(,55)

cookie=0x0, duration=7536.097s, table=55, n_packets=4882, n_bytes=481180, idle_age=0, priority=100,metadata=0x7,dl_dst=fa:16:3e:d4:60:2d actions=load:0x84->NXM_NX_REG7[],resubmit(,75)

cookie=0x0, duration=7586.900s, table=75, n_packets=5168, n_bytes=496241, idle_age=0, priority=200,reg7=0x84 actions=resubmit(,76)

cookie=0x0, duration=7607.216s, table=76, n_packets=4888, n_bytes=479909, idle_age=0, priority=100,ip,reg7=0x84 actions=dec_ttl,mod_dl_src:fa:16:3e:07:f8:41,mod_dl_dst:fa:16:3e:6c:c0:49,mod_nw_dst:1.1.1.5,load:0x81->NXM_NX_REG7[],load:0x8->OXM_OF_METADATA[],resubmit(,55)

cookie=0x0, duration=7664.254s, table=55, n_packets=4945, n_bytes=485495, idle_age=0, priority=100,metadata=0x8,dl_dst=fa:16:3e:6c:c0:49 actions=load:0x81->NXM_NX_REG7[],resubmit(,75)

cookie=0x0, duration=7693.739s, table=75, n_packets=4954, n_bytes=485244, idle_age=1, priority=200,reg6=0x81,reg7=0x81 actions=drop 需要将该流表去除,否则ping 自己的fip 不通

cookie=0x0, duration=121.067s, table=75, n_packets=133, n_bytes=13034, idle_age=0, priority=100,reg7=0x81 actions=resubmit(,105)

cookie=0x0, duration=147.545s, table=110, n_packets=177, n_bytes=17346, idle_age=0, priority=65534,ct_state=-new+est-rel-inv+trk actions=resubmit(,115)

cookie=0x0, duration=154.348s, table=115, n_packets=202, n_bytes=19572, idle_age=0, priority=100,reg7=0x81 actions=output:24

gw ping fip

dd.png

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cookie=0x0, duration=42.589s, table=0, n_packets=42, n_bytes=4116, idle_age=0, priority=50,in_port=1,vlan_tci=0x0000/0x1fff actions=load:0->OXM_OF_IN_PORT[],load:0x7->OXM_OF_METADATA[],load:0x64->NXM_NX_REG8[],resubmit(,2)

cookie=0x0, duration=52.497s, table=2, n_packets=51, n_bytes=4998, idle_age=0, priority=1 actions=resubmit(,55)

cookie=0x0, duration=84.105s, table=55, n_packets=83, n_bytes=8134, idle_age=0, priority=100,metadata=0x7,dl_dst=fa:16:3e:d4:60:2d actions=load:0x84->NXM_NX_REG7[],resubmit(,75)

cookie=0x0, duration=120.791s, table=75, n_packets=120, n_bytes=11760, idle_age=0, priority=200,reg7=0x84 actions=resubmit(,76)

cookie=0x0, duration=130.945s, table=76, n_packets=129, n_bytes=12642, idle_age=1, priority=100,ip,reg7=0x84 actions=dec_ttl,mod_dl_src:fa:16:3e:07:f8:41,mod_dl_dst:fa:16:3e:6c:c0:49,mod_nw_dst:1.1.1.5,load:0x81->NXM_NX_REG7[],load:0x8->OXM_OF_METADATA[],resubmit(,55)

cookie=0x0, duration=426.456s, table=55, n_packets=422, n_bytes=41356, idle_age=0, priority=100,metadata=0x8,dl_dst=fa:16:3e:6c:c0:49 actions=load:0x81->NXM_NX_REG7[],resubmit(,75)

cookie=0x0, duration=441.774s, table=75, n_packets=437, n_bytes=42826, idle_age=0, priority=100,reg7=0x81 actions=resubmit(,105)

cookie=0x0, duration=452.940s, table=105, n_packets=448, n_bytes=43904, idle_age=0, priority=100,ip,reg7=0x81 actions=ct(table=110,zone=OXM_OF_METADATA[0..15])

cookie=0x0, duration=462.916s, table=110, n_packets=457, n_bytes=44786, idle_age=0, priority=65534,ct_state=-new+est-rel-inv+trk actions=resubmit(,115)

cookie=0x0, duration=469.042s, table=115, n_packets=478, n_bytes=46060, idle_age=0, priority=100,reg7=0x81 actions=output:24

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 cookie=0x0, duration=491.468s, table=0, n_packets=501, n_bytes=48258, idle_age=0, priority=100,in_port=24 actions=load:0x81->NXM_NX_REG6[],load:0x8->OXM_OF_METADATA[],load:0->OXM_OF_IN_PORT[],resubmit(,)

cookie=0x0, duration=513.855s, table=0, n_packets=523, n_bytes=50414, idle_age=0, priority=1 actions=resubmit(,5)

cookie=0x0, duration=526.255s, table=5, n_packets=520, n_bytes=50960, idle_age=0, priority=200,ip,reg6=0x81,dl_src=fa:16:3e:6c:c0:49,nw_src=1.1.1.5 actions=resubmit(,10)

cookie=0x0, duration=539.468s, table=10, n_packets=533, n_bytes=52234, idle_age=0, priority=100,ip,reg6=0x81 actions=ct(table=15,zone=OXM_OF_METADATA[0..15])

cookie=0x0, duration=550.488s, table=15, n_packets=543, n_bytes=53214, idle_age=1, priority=65534,ct_state=-new+est-rel-inv+trk actions=resubmit(,20)

cookie=0x0, duration=561.685s, table=20, n_packets=555, n_bytes=54390, idle_age=0, priority=1 actions=resubmit(,55)

cookie=0x0, duration=622.180s, table=55, n_packets=615, n_bytes=60270, idle_age=0, priority=200,metadata=0x8,dl_dst=fa:16:3e:07:f8:41 actions=load:0x2->NXM_NX_REG5[],resubmit(,60)

cookie=0x0, duration=630.094s, table=60, n_packets=623, n_bytes=61054, idle_age=0, priority=70,ip,reg5=0x2,reg6=0x81,metadata=0x8,nw_src=1.1.1.5 actions=resubmit(,77)

cookie=0x0, duration=640.276s, table=77, n_packets=633, n_bytes=62034, idle_age=0, priority=100,ip,reg5=0x2,reg6=0x81,metadata=0x8,nw_src=1.1.1.5 actions=dec_ttl,mod_dl_src:fa:16:3e:d4:60:2d,mod_dl_dst:00:00:00:00:00:00,mod_nw_src:192.168.56.55,load:0x7->OXM_OF_METADATA[],load:0x84->NXM_NX_REG6[],resubmit(,55)

cookie=0x0, duration=675.033s, table=55, n_packets=756, n_bytes=70706, idle_age=0, priority=70,metadata=0x7,dl_dst=00:00:00:00:00:00/01:00:00:00:00:00 actions=resubmit(,75)

cookie=0x0, duration=701.542s, table=75, n_packets=694, n_bytes=68012, idle_age=0, priority=50,metadata=0x7 actions=resubmit(,80)

cookie=0x0, duration=709.685s, table=80, n_packets=701, n_bytes=68698, idle_age=1, priority=200,metadata=0x7,dl_dst=00:00:00:00:00:00 actions=mod_dl_dst:08:00:27:12:3f:5b,output:1