[NETVIRT-1430] Packet counters for ARP traffic in same DPN, are incremented for GARP in table 196 and 48. Created: 14/Sep/18  Updated: 26/Sep/18  Resolved: 18/Sep/18

Status: Verified
Project: netvirt
Component/s: elanmanager
Affects Version/s: None
Fix Version/s: Fluorine, Neon

Type: Bug Priority: Medium
Reporter: Srinivas Balajinaidu Assignee: Ravindra Thakur
Resolution: Done Votes: 0
Labels: netvirt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Both 192.1.1.6 and 192.1.1.100 are in same DPN

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
From tenent Vm
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

$ sudo arping -c 500 -I eth0 192.1.1.100
ARPING to 192.1.1.100 from 192.1.1.6 via eth0
Unicast reply from 192.1.1.100 [fa:16:3e:e9:2c:b8] 6.395ms
Unicast reply from 192.1.1.100 [fa:16:3e:e9:2c:b8] 2.012ms
Unicast reply from 192.1.1.100 [fa:16:3e:e9:2c:b8] 1.671ms
Unicast reply from 192.1.1.100 [fa:16:3e:e9:2c:b8] 2.082ms

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Packet increment in 195
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

stack@pike-controller:/opt/stack/devstack$ watch sudo ovs-ofctl dump-flows br-int -O Openflow13 table=195

Every 2.0s: sudo ovs-ofctl dump-flows br-int -O Openflow13 table=195

OFPST_FLOW reply (OF1.3) (xid=0x4):
cookie=0x88880000, duration=4.371s, table=195, n_packets=3, n_bytes=126, hard_timeout=10, priority=10,arp,metadata=0x138a000000/0xffff000000,arp_spa=192.1.1.6,arp_tpa=192.1.1.100 a
ctions=load:0x1->NXM_NX_REG4[0..7]
cookie=0x88880000, duration=4.371s, table=195, n_packets=3, n_bytes=126, hard_timeout=10, priority=10,arp,metadata=0x138a000000/0xffff000000,arp_spa=192.1.1.100,arp_tpa=192.1.1.6 a
ctions=load:0x1->NXM_NX_REG4[0..7]
cookie=0x88880000, duration=1377992.781s, table=195, n_packets=151, n_bytes=6342, priority=0,arp actions=CONTROLLER:65535,learn(table=195,hard_timeout=10,priority=10,cookie=0x88880
000,eth_type=0x806,NXM_OF_ARP_SPA[],NXM_OF_ARP_TPA[],OXM_OF_METADATA[24..39],load:0x1->NXM_NX_REG4[0..7]),learn(table=196,hard_timeout=10,priority=10,cookie=0x88880000,eth_type=0x80
6,NXM_OF_ARP_TPA[]=NXM_OF_ARP_SPA[],NXM_OF_ARP_SPA[]=NXM_OF_ARP_TPA[],OXM_OF_METADATA[24..39],load:0x1->NXM_NX_REG4[8..15])

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Packet increment in 196
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

stack@pike-controller:/opt/stack/devstack$ watch sudo ovs-ofctl dump-flows br-int -O Openflow13 table=196

Every 2.0s: sudo ovs-ofctl dump-flows br-int -O Openflow13 table=196

OFPST_FLOW reply (OF1.3) (xid=0x4):
cookie=0x88880000, duration=10.180s, table=196, n_packets=3, n_bytes=378, hard_timeout=10, priority=10,arp,metadata=0x138a000000/0xffff000000,arp_spa=192.1.1.100,arp_tpa=192.1.1.6
actions=load:0x1->NXM_NX_REG4[8..15]
cookie=0x88880000, duration=10.180s, table=196, n_packets=3, n_bytes=378, hard_timeout=10, priority=10,arp,metadata=0x138a000000/0xffff000000,arp_spa=192.1.1.6,arp_tpa=192.1.1.100
actions=load:0x1->NXM_NX_REG4[8..15]

Every 2.0s: sudo ovs-ofctl dump-flows br-int -O Openflow13 table=196

OFPST_FLOW reply (OF1.3) (xid=0x4):
cookie=0x88880000, duration=10.180s, table=196, n_packets=9, n_bytes=378, hard_timeout=10, priority=10,arp,metadata=0x138a000000/0xffff000000,arp_spa=192.1.1.100,arp_tpa=192.1.1.6
actions=load:0x1->NXM_NX_REG4[8..15]
cookie=0x88880000, duration=10.180s, table=196, n_packets=9, n_bytes=378, hard_timeout=10, priority=10,arp,metadata=0x138a000000/0xffff000000,arp_spa=192.1.1.6,arp_tpa=192.1.1.100
actions=load:0x1->NXM_NX_REG4[8..15]

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
packet increment in 48 for GARP reg
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

stack@pike-controller:/opt/stack/devstack$ watch sudo ovs-ofctl dump-flows br-int -O Openflow13 table=48

Every 2.0s: sudo ovs-ofctl dump-flows br-int -O Openflow13 table=48
OFPST_FLOW reply (OF1.3) (xid=0x4):
cookie=0x8500000, duration=1378106.850s, table=48, n_packets=496, n_bytes=20832, priority=100,arp,reg4=0x101/0xffff actions=load:0->NXM_NX_REG4[],CONTROLLER:65535,resubmit(,49),res
ubmit(,50)
cookie=0x8500000, duration=1378106.850s, table=48, n_packets=113, n_bytes=4746, priority=100,arp,reg4=0x1/0xffff actions=load:0->NXM_NX_REG4[],resubmit(,49),resubmit(,50)
cookie=0x8500000, duration=1378107.518s, table=48, n_packets=175, n_bytes=7470, priority=0 actions=resubmit(,49),resubmit(,50)

Every 2.0s: sudo ovs-ofctl dump-flows br-int -O Openflow13 table=48
OFPST_FLOW reply (OF1.3) (xid=0x4):
cookie=0x8500000, duration=1558419.306s, table=48, n_packets=512, n_bytes=21504, priority=100,arp,reg4=0x101/0xffff actions=load:0->NXM_NX_REG4[],CONTROLLER:65535,resubmit(,49),res
ubmit(,50)
cookie=0x8500000, duration=1558419.306s, table=48, n_packets=113, n_bytes=4746, priority=100,arp,reg4=0x1/0xffff actions=load:0->NXM_NX_REG4[],resubmit(,49),resubmit(,50)
cookie=0x8500000, duration=1558419.974s, table=48, n_packets=193, n_bytes=8226, priority=0 actions=resubmit(,49),resubmit(,50)


Attachments: Text File punt_path_bug_log.txt    

 Description   

(Both tenanted VMs192.1.1.6 and 192.1.1.100 are in same DPN), are incremented for GARP in table 196 and 48.



 Comments   
Comment by Srinivas Balajinaidu [ 26/Sep/18 ]

root@vm-ubuntu-1:~# arping -c 300 172.1.1.100
ARPING 172.1.1.100
42 bytes from fa:16:3e:a1:a0:7d (172.1.1.100): index=0 time=10.372 msec

stack@pike-controller:~$
stack@pike-controller:~$
stack@pike-controller:~$
stack@pike-controller:~$ flows table=195
cookie=0x88880000, duration=3.421s, table=195, n_packets=2, n_bytes=84, hard_timeout=5, priority=10,arp,metadata=0x138b000000/0xffff000000,arp_tpa=172.1.1.5,arp_op=2 actions=load:0
x1->NXM_NX_REG4[0..7]
cookie=0x88880000, duration=3.421s, table=195, n_packets=2, n_bytes=84, hard_timeout=5, priority=10,arp,metadata=0x138b000000/0xffff000000,arp_tpa=172.1.1.100,arp_op=1 actions=load
:0x1->NXM_NX_REG4[0..7]
cookie=0x88880000, duration=1356.189s, table=195, n_packets=15, n_bytes=630, priority=0,arp actions=CONTROLLER:65535,learn(table=195,hard_timeout=5,priority=10,cookie=0x88880000,et
h_type=0x806,NXM_OF_ARP_OP[],NXM_OF_ARP_TPA[],OXM_OF_METADATA[24..39],load:0x1->NXM_NX_REG4[0..7]),learn(table=196,hard_timeout=5,priority=10,cookie=0x88880000,eth_type=0x806,NXM_OF
_ARP_OP[],NXM_OF_ARP_SPA[]=NXM_OF_ARP_TPA[],OXM_OF_METADATA[24..39],load:0x1->NXM_NX_REG4[8..15])
stack@pike-controller:~$ flows table=196
cookie=0x88880000, duration=2.858s, table=196, n_packets=0, n_bytes=0, hard_timeout=5, priority=10,arp,metadata=0x138b000000/0xffff000000,arp_spa=172.1.1.5,arp_op=2 actions=load:0x
1->NXM_NX_REG4[8..15]
cookie=0x88880000, duration=2.858s, table=196, n_packets=0, n_bytes=0, hard_timeout=5, priority=10,arp,metadata=0x138b000000/0xffff000000,arp_spa=172.1.1.100,arp_op=1 actions=load:
0x1->NXM_NX_REG4[8..15]
stack@pike-controller:~$
stack@pike-controller:~$
stack@pike-controller:~$
stack@pike-controller:~$ flows table=196
cookie=0x88880000, duration=3.978s, table=196, n_packets=0, n_bytes=0, hard_timeout=5, priority=10,arp,metadata=0x138b000000/0xffff000000,arp_spa=172.1.1.5,arp_op=2 actions=load:0x
1->NXM_NX_REG4[8..15]
cookie=0x88880000, duration=3.978s, table=196, n_packets=0, n_bytes=0, hard_timeout=5, priority=10,arp,metadata=0x138b000000/0xffff000000,arp_spa=172.1.1.100,arp_op=1 actions=load:
0x1->NXM_NX_REG4[8..15]
stack@pike-controller:~$
stack@pike-controller:~$
stack@pike-controller:~$ flows table=196
stack@pike-controller:~$
stack@pike-controller:~$
stack@pike-controller:~$
stack@pike-controller:~$ flows table=196
cookie=0x88880000, duration=2.442s, table=196, n_packets=0, n_bytes=0, hard_timeout=5, priority=10,arp,metadata=0x138b000000/0xffff000000,arp_spa=172.1.1.5,arp_op=2 actions=load:0x
1->NXM_NX_REG4[8..15]
cookie=0x88880000, duration=2.442s, table=196, n_packets=0, n_bytes=0, hard_timeout=5, priority=10,arp,metadata=0x138b000000/0xffff000000,arp_spa=172.1.1.100,arp_op=1 actions=load:
0x1->NXM_NX_REG4[8..15]

stack@pike-controller:~$ flows table=48
cookie=0x8500000, duration=1380.242s, table=48, n_packets=0, n_bytes=0, priority=100,arp,reg4=0x101/0xffff actions=load:0->NXM_NX_REG4[],CONTROLLER:65535,resubmit(,49),resubmit(,50)
cookie=0x8500000, duration=1380.242s, table=48, n_packets=54, n_bytes=2268, priority=100,arp,reg4=0x1/0xffff actions=load:0->NXM_NX_REG4[],resubmit(,49),resubmit(,50)
cookie=0x8500000, duration=1380.535s, table=48, n_packets=39, n_bytes=2118, priority=0 actions=resubmit(,49),resubmit(,50)
stack@pike-controller:~$
stack@pike-controller:~$
stack@pike-controller:~$
stack@pike-controller:~$ flows table=48
cookie=0x8500000, duration=1389.290s, table=48, n_packets=0, n_bytes=0, priority=100,arp,reg4=0x101/0xffff actions=load:0->NXM_NX_REG4[],CONTROLLER:65535,resubmit(,49),resubmit(,50)
cookie=0x8500000, duration=1389.290s, table=48, n_packets=68, n_bytes=2856, priority=100,arp,reg4=0x1/0xffff actions=load:0->NXM_NX_REG4[],resubmit(,49),resubmit(,50)
cookie=0x8500000, duration=1389.583s, table=48, n_packets=43, n_bytes=2286, priority=0 actions=resubmit(,49),resubmit(,50)

Generated at Wed Feb 07 20:24:03 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.