Yes, you are right. The show error counters.
vpp# show errors
Count Node Reason
Severity
34 dhcp-client-process DHCP discover packets sent
error
Count Node Reason
Severity
357 dhcp-client-process DHCP discover packets sent
error
Do you know how to read in detail about this errors?
Can I read something from these files?
ls l /var/run/vpp/
api.sock cli.sock memif.sock stats.sock
I captured fresh eventlogs and pcap trace again.
Best Regards,
Anagha
From: [email protected] <[email protected]> On Behalf Of Dave Barach via
lists.fd.io
Sent: Friday, March 3, 2023 1:58 AM
To: [email protected]
Subject: Re: [vpp-dev] FW: Bug: DHCP Client not sending DHCP REQUEST using VPP
v22.02
The dhcp client has a number of “show error” counters. Do you see any of the
error counters increasing?
The packet trace I’d like to see would be from “trace add <input-node> 1000” …
“show trace max 1000” or similar. The pcap trace implies that the dhcp offer
packets are dropped, but we need to work out why…
D.
From: [email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>> on behalf of hemant via
lists.fdio <[email protected]<mailto:[email protected]>>
Date: Thursday, March 2, 2023 at 7:13 PM
To: [email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>>
Subject: Re: [vpp-dev] FW: Bug: DHCP Client not sending DHCP REQUEST using VPP
v22.02
There is something in the DHCP OFFER the client does not like and moves back to
new DHCP session. Or the DHCP OFFER never made it to the client.
Hemant
From: [email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>> On Behalf Of Thakur, Anagha
Sent: Thursday, March 02, 2023 4:02 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: [vpp-dev] FW: Bug: DHCP Client not sending DHCP REQUEST using VPP
v22.02
I do see DHCP Offer in the packet tracer from the Server which I have set up on
the other side.
But VPP does not send any DHCP Request out, instead I always see that VPP
continuously keeps sending DHCP Discovery.
I have attached tx and rx pcap trace in my prevous email.
Best Regards,
Anagha
________________________________
From: [email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>> on behalf of Dave Barach via
lists.fd.io <[email protected]<mailto:[email protected]>>
Sent: Thursday, 2 March 2023, 19:15
To: [email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>>
Subject: Re: [vpp-dev] FW: Bug: DHCP Client not sending DHCP REQUEST using VPP
v22.02
Do you see a response to the DHCP Discover packets?
What does the vpp packet tracer show?
Thanks... Dave
On Mar 2, 2023, at 7:03 AM, Thakur, Anagha
<[email protected]<mailto:[email protected]>> wrote:
Hello,
I am testing DHCP client feature from VPP stack (v22.02) onto our system.
My setup is: I run k8s cluster on x86 system in which I have a pod which uses
VPP stack and it accesses physical NIC interface using DPDK and SR-IOV. There
are two physical interfaces which we use in VPP, one of them is with static IP
(eno2) and other one with as DHCP client (eno1).
I expect this interface shall act as a DHCP Client and we run a DHCP server on
the other end of the system. But unfortunately, the VPP does not send any DHCP
REQUEST. It keeps sending DHCP DISCOVERY every interval. It receives a DHCP
Offer.
But VPP does not send further DHCP REQUEST to the DHCP server. I do not expect
that it is a problem from lower layer and it should be an issue from VPP side.
Please let me know if I need to enable any extra plugin other than the ones in
the attached file.
I attached pcap file recorded vpp trace of tx and rx.
Our versions are currently as follows:
-> DPDK 22.03
-> VPP 22.02
-> VPP library 22.02
Version Information attached.
plugins
{
path /opt /vpp/lib/vpp_plugins
plugin default { disable }
plugin dpdk_plugin.so { enable }
plugin memif_plugin.so { enable }
plugin ping_plugin.so { enable }
plugin router_plugin.so { enable }
plugin upffp_plugin.so { enable }
plugin dhcp_plugin.so { enable }
}
Commands used:
set intfc VPP-N6-0 state up
set int mac address eno1 00:11:22:33:44:66
set dhcp client intfc eno1
sh dhcp client verbose
[0] VPP-N6-0 state DHCP_DISCOVER installed 0 no address
lease: lifetime:0 renewal-interval:0 expires:0.00 (now:2412.35)
retry-count:346, next-xmt:2416.87
broadcast adjacency:20
sh log
2023/02/27 16:11:03:986 notice dhcp/client sm active session 0
2023/02/27 16:11:03:986 notice dhcp/client send: type:discover bcast:1
[0] VPP-N6-0 state DHCP_DISCOVER installed 0 no address
lease: lifetime:0 renewal-interval:0 expires:0.00 (now:255827.12)
retry-count:439, next-xmt:255827.12
broadcast adjacency:11
2023/02/27 16:11:08:986 notice dhcp/client sm active session 0
2023/02/27 16:11:08:986 notice dhcp/client send: type:discover bcast:1
[0] VPP-N6-0 state DHCP_DISCOVER installed 0 no address
lease: lifetime:0 renewal-interval:0 expires:0.00 (now:255832.12)
retry-count:440, next-xmt:255832.12
broadcast adjacency:11
2023/02/27 16:11:13:986 notice dhcp/client sm active session 0
2023/02/27 16:11:13:986 notice dhcp/client send: type:discover bcast:1
[0] VPP-N6-0 state DHCP_DISCOVER installed 0 no address
lease: lifetime:0 renewal-interval:0 expires:0.00 (now:255837.12)
retry-count:441, next-xmt:255837.12
broadcast adjacency:11
2023/02/27 16:11:18:986 notice dhcp/client sm active session 0
2023/02/27 16:11:18:986 notice dhcp/client send: type:discover bcast:1
[0] VPP-N6-0 state DHCP_DISCOVER installed 0 no address
lease: lifetime:0 renewal-interval:0 expires:0.00 (now:255842.12)
retry-count:442, next-xmt:255842.12
broadcast adjacency:11
show interface address
eno2 (up):
L3 172.31.254.17/29
eno1 (up):
host-vpp1out (up):
L3 128.0.129.144/24
local0 (dn):
memif0/502 (up):
Thank you in advance.
Best Regards,
Anagha
<vpp_show_version.txt>
<trace_tx_rx.pcap>
]:path-remove [path:[26] pl-index:5 ip4 weight=1 pref=0 attached:
oper-flags:resolved, eno1]: destroy [path-list:[5] locks:2 flags:no-uRPF,
uPRF-list:10 len:2 itfs:[1, 2, ]
path:[5] pl-index:5 ip4 weight=1 pref=0 receive: oper-flags:resolved,
cfg-flags:local,
[@0]: dpo-receive
path:[16] pl-index:5 ip4 weight=1 pref=0 attached: oper-flags:resolved,
VPP-N3-0
path:[39] pl-index:5 ip4 weight=1 pref=0 attached: oper-flags:resolved,
host-vpp1out
]:paths-removed [path-list:[6] locks:2 flags:no-uRPF, uPRF-list:9 len:2
itfs:[1, 2, ]
path:[6] pl-index:6 ip4 weight=1 pref=0 receive: oper-flags:resolved,
cfg-flags:local,
[@0]: dpo-receive
path:[14] pl-index:6 ip4 weight=1 pref=0 attached: oper-flags:resolved,
VPP-N3-0
path:[27] pl-index:6 ip4 weight=1 pref=0 attached: oper-flags:resolved,
eno1
path:[40] pl-index:6 ip4 weight=1 pref=0 attached: oper-flags:resolved,
host-vpp1out
]:path-remove [path:[27] pl-index:6 ip4 weight=1 pref=0 attached:
oper-flags:resolved, eno1]: destroy adj:[7:0x7f9ad5e550c0]:last-lock-gone
[path-list:[6] locks:2 flags:no-uRPF, uPRF-list:9 len:2 itfs:[1, 2, ]
path:[6] pl-index:6 ip4 weight=1 pref=0 receive: oper-flags:resolved,
cfg-flags:local,
[@0]: dpo-receive
path:[14] pl-index:6 ip4 weight=1 pref=0 attached: oper-flags:resolved,
VPP-N3-0
path:[40] pl-index:6 ip4 weight=1 pref=0 attached: oper-flags:resolved,
host-vpp1out
]:paths-removed [@13:[172.29.0.1/32]:connected,local,:interface]: special
remove:interface [@14:[172.29.0.0/16]:connected,attached,:interface]:
cover-untrack @ 33 [@13:[172.29.0.1/32]:connected,local,:interface]:
deactivate: 29 [path-list:[29] locks:2 flags:local, uPRF-list:29 len:0 itfs:[]
path:[33] pl-index:29 ip4 weight=1 pref=0 receive: oper-flags:resolved,
cfg-flags:local,
[@0]: dpo-receive: 172.29.0.1 on eno1
]:loop-detect: eval:0 [path-list:[29] locks:0 flags:local, uPRF-list:29 len:0
itfs:[]
path:[33] pl-index:29 ip4 weight=1 pref=0 receive: oper-flags:resolved,
cfg-flags:local,
[@0]: dpo-receive: 172.29.0.1 on eno1
]:last-lock [path-list:[29] locks:0 flags:local, uPRF-list:29 len:0 itfs:[]
path:[33] pl-index:29 ip4 weight=1 pref=0 receive: oper-flags:resolved,
cfg-flags:local,
[@0]: dpo-receive: 172.29.0.1 on eno1
]:destroy [path:[33] pl-index:29 ip4 weight=1 pref=0 receive:
oper-flags:resolved, cfg-flags:local,[@0]: dpo-receive: 172.29.0.1 on eno1]:
destroy [path:[28] pl-index:24 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved, cfg-flags:attached,172.29.0.1 eno1[@0]: arp-ipv4: via
172.29.0.1 eno1]: recursive loop cleared [path-list:[24] locks:2 flags:shared,
uPRF-list:22 len:1 itfs:[1, ]
path:[28] pl-index:24 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved, cfg-flags:attached,
172.29.0.1 eno1
[@0]: arp-ipv4: via 172.29.0.1 eno1
]:loop-detect: eval:0 [@15:[172.29.0.0/32]:drop,uRPF-exempt,:interface]:
special remove:interface [@15:[172.29.0.0/32]:drop,uRPF-exempt,:interface]:
deactivate: 25 [path-list:[25] locks:2 flags:drop, uPRF-list:23 len:0 itfs:[]
path:[29] pl-index:25 ip4 weight=1 pref=0 special: cfg-flags:drop,
[@0]: dpo-drop ip4
]:loop-detect: eval:0 [path-list:[25] locks:0 flags:drop, uPRF-list:23 len:0
itfs:[]
path:[29] pl-index:25 ip4 weight=1 pref=0 special: cfg-flags:drop,
[@0]: dpo-drop ip4
]:last-lock [path-list:[25] locks:0 flags:drop, uPRF-list:23 len:0 itfs:[]
path:[29] pl-index:25 ip4 weight=1 pref=0 special: cfg-flags:drop,
[@0]: dpo-drop ip4
]:destroy [path:[29] pl-index:25 ip4 weight=1 pref=0 special:
cfg-flags:drop,[@0]: dpo-drop ip4]: destroy [path:[35] pl-index:31 ip4 weight=1
pref=0 attached-nexthop: oper-flags:resolved, cfg-flags:attached,172.29.0.0
eno1[@0]: arp-ipv4: via 172.29.0.0 eno1]: recursive loop cleared
[path-list:[31] locks:2 flags:drop, uPRF-list:31 len:1 itfs:[1, ]
path:[35] pl-index:31 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved, cfg-flags:attached,
172.29.0.0 eno1
[@0]: arp-ipv4: via 172.29.0.0 eno1
]:loop-detect: eval:0 [@15:[172.29.0.0/32]:attached,:API]: activate: 31
[@15:[172.29.0.0/32]:attached,:API]: install: 4
[@16:[172.29.255.255/32]:drop,uRPF-exempt,:interface]: special remove:interface
[@16:[172.29.255.255/32]:drop,uRPF-exempt,:interface]: deactivate: 27
[path-list:[27] locks:2 flags:drop, uPRF-list:26 len:0 itfs:[]
path:[31] pl-index:27 ip4 weight=1 pref=0 special: cfg-flags:drop,
[@0]: dpo-drop ip4
]:loop-detect: eval:0 [path-list:[27] locks:0 flags:drop, uPRF-list:26 len:0
itfs:[]
path:[31] pl-index:27 ip4 weight=1 pref=0 special: cfg-flags:drop,
[@0]: dpo-drop ip4
]:last-lock [path-list:[27] locks:0 flags:drop, uPRF-list:26 len:0 itfs:[]
path:[31] pl-index:27 ip4 weight=1 pref=0 special: cfg-flags:drop,
[@0]: dpo-drop ip4
]:destroy [path:[31] pl-index:27 ip4 weight=1 pref=0 special:
cfg-flags:drop,[@0]: dpo-drop ip4]: destroy [path:[32] pl-index:28 ip4 weight=1
pref=0 attached-nexthop: oper-flags:resolved,
cfg-flags:attached,172.29.255.255 eno1[@0]: arp-ipv4: via 172.29.255.255 eno1]:
recursive loop cleared [path-list:[28] locks:2 flags:drop, uPRF-list:24 len:1
itfs:[1, ]
path:[32] pl-index:28 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved, cfg-flags:attached,
172.29.255.255 eno1
[@0]: arp-ipv4: via 172.29.255.255 eno1
]:loop-detect: eval:0 [@16:[172.29.255.255/32]:attached,:API]: activate: 28
[@16:[172.29.255.255/32]:attached,:API]: install: 4
[@14:[172.29.0.0/16]:connected,attached,:interface]: special remove:interface
[@14:[172.29.0.0/16]:connected,attached,:interface]: deactivate: 26 [path:[30]
pl-index:26 ip4 weight=1 pref=0 attached: oper-flags:resolved,
cfg-flags:glean, eno1]: recursive loop cleared [path-list:[26] locks:2
uPRF-list:28 len:1 itfs:[1, ]
path:[30] pl-index:26 ip4 weight=1 pref=0 attached: oper-flags:resolved,
cfg-flags:glean,
eno1
]:loop-detect: eval:0 [path-list:[26] locks:0 uPRF-list:28 len:1 itfs:[1, ]
path:[30] pl-index:26 ip4 weight=1 pref=0 attached: oper-flags:resolved,
cfg-flags:glean,
eno1
]:last-lock [path-list:[26] locks:0 uPRF-list:28 len:1 itfs:[1, ]
path:[30] pl-index:26 ip4 weight=1 pref=0 attached: oper-flags:resolved,
cfg-flags:glean,
eno1
]:destroy [path:[30] pl-index:26 ip4 weight=1 pref=0 attached:
oper-flags:resolved, cfg-flags:glean, eno1]: destroy [path:[34] pl-index:30 ip4
weight=1 pref=0 attached: oper-flags:resolved, cfg-flags:glean, eno1]:
recursive loop cleared [path-list:[30] locks:2 flags:shared, uPRF-list:27 len:1
itfs:[1, ]
path:[34] pl-index:30 ip4 weight=1 pref=0 attached: oper-flags:resolved,
cfg-flags:glean,
eno1
]:loop-detect: eval:0 [@14:[172.29.0.0/16]:attached,:API]: activate: 30
[@14:[172.29.0.0/16]:attached,:API]: install: 4
[@22:[172.29.0.2/32]:attached,:adjacency]: adj-src-cover-updated
[@22:[172.29.0.2/32]:attached,:adjacency]: reactivate: 38 to 38
[@22:[172.29.0.2/32]:attached,:adjacency]: install: 4
[@22:[172.29.0.2/32]:attached,:adjacency]: cover-updated addr-323432929: eno1,
172.29.0.1/16 free: 54.3344 172.29.0.2 D
40:a6:b7:3c:27:14 eno1 [path:[46] pl-index:38 ip4 weight=1 pref=0
attached-nexthop: oper-flags:resolved,172.29.0.2 eno1[@0]: ipv4 via 172.29.0.2
eno1: mtu:9000 next:3 flags:[] 40a6b73c27149ea842a990bd0800]: bw:adj-down
[path-list:[38] locks:2 uPRF-list:28 len:1 itfs:[1, ]
path:[46] pl-index:38 ip4 weight=1 pref=0 attached-nexthop:
172.29.0.2 eno1
[@0]: ipv4 via 172.29.0.2 eno1: mtu:9000 next:3 flags:[]
40a6b73c27149ea842a990bd0800
]:bw:adj-down [@22:[172.29.0.2/32]:attached,:adjacency]: bw:evaluate [path:[25]
pl-index:23 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved,172.29.0.2 eno1[@0]: ipv4 via 172.29.0.2 eno1: mtu:9000
next:3 flags:[] 40a6b73c27149ea842a990bd0800]: bw:adj-down [path-list:[23]
locks:2 flags:shared, uPRF-list:21 len:1 itfs:[1, ]
path:[25] pl-index:23 ip4 weight=1 pref=0 attached-nexthop:
172.29.0.2 eno1
[@0]: ipv4 via 172.29.0.2 eno1: mtu:9000 next:3 flags:[]
40a6b73c27149ea842a990bd0800
]:bw:adj-down [@17:[172.30.0.0/16]::API]: reactivate: 23 to 23
[@17:[172.30.0.0/16]::API]: install: 4 [@17:[172.30.0.0/16]::API]: bw:evaluate
[path:[46] pl-index:38 ip4 weight=1 pref=0 attached-nexthop: 172.29.0.2
eno1[@0]: ipv4 via 172.29.0.2 eno1: mtu:9000 next:2 flags:[]
ffffffffffff9ea842a990bd0806]: bw:adj-update [path-list:[38] locks:2
uPRF-list:41 len:1 itfs:[1, ]
path:[46] pl-index:38 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved,
172.29.0.2 eno1
[@0]: arp-ipv4: via 172.29.0.2 eno1
]:bw:adj-update [path:[25] pl-index:23 ip4 weight=1 pref=0 attached-nexthop:
172.29.0.2 eno1[@0]: ipv4 via 172.29.0.2 eno1: mtu:9000 next:2 flags:[]
ffffffffffff9ea842a990bd0806]: bw:adj-update [path-list:[23] locks:2
flags:shared, uPRF-list:28 len:1 itfs:[1, ]
path:[25] pl-index:23 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved,
172.29.0.2 eno1
[@0]: arp-ipv4: via 172.29.0.2 eno1
]:bw:adj-update [[@1] parent:{path-list:23} visits:1 flags:5]:sync-stop:
adj-update [[@0] parent:{adj:14} visits:2 flags:5]:sync-stop: adj-update
[path-list:[26] locks:0 uRPF-list: None
]:alloc [path-list:[38] locks:2 uPRF-list:41 len:1 itfs:[1, ]
path:[46] pl-index:38 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved,
172.29.0.2 eno1
[@0]: arp-ipv4: via 172.29.0.2 eno1
]:copy-remove [path:[30] pl-index:38 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved,172.29.0.2 eno1[@0]: arp-ipv4: via 172.29.0.2 eno1]:
create-copy:46 [path:[31] pl-index:26 ip4 weight=1 pref=0 attached-nexthop:
172.29.0.2 eno1 unresolved]: create [path:[30] pl-index:26 ip4 weight=1 pref=0
attached-nexthop: 172.29.0.2 eno1 unresolved]: destroy [path:[31] pl-index:26
ip4 weight=1 pref=0 attached-nexthop: 172.29.0.2 eno1 unresolved]: destroy
[path-list:[26] locks:0 uRPF-list: None
]:last-path-removed [path-list:[26] locks:0 uRPF-list: None
]:destroy [@14:[172.29.0.0/16]:attached,:API]: cover-untrack @ 56
[@22:[172.29.0.2/32]:attached,:adjacency]: deactivate: 38 [path:[46]
pl-index:38 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved,172.29.0.2 eno1[@0]: arp-ipv4: via 172.29.0.2 eno1]:
recursive loop cleared [path-list:[38] locks:1 uPRF-list:41 len:1 itfs:[1, ]
path:[46] pl-index:38 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved,
172.29.0.2 eno1
[@0]: arp-ipv4: via 172.29.0.2 eno1
]:loop-detect: eval:0 [path-list:[38] locks:0 uPRF-list:41 len:1 itfs:[1, ]
path:[46] pl-index:38 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved,
172.29.0.2 eno1
[@0]: arp-ipv4: via 172.29.0.2 eno1
]:last-lock [path-list:[38] locks:0 uPRF-list:41 len:1 itfs:[1, ]
path:[46] pl-index:38 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved,
172.29.0.2 eno1
[@0]: arp-ipv4: via 172.29.0.2 eno1
]:destroy [path:[46] pl-index:38 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved,172.29.0.2 eno1[@0]: arp-ipv4: via 172.29.0.2 eno1]:
destroy [@22:[172.29.0.2/32]::invalid]: path remove:adjacency
[@22:[172.29.0.2/32]::invalid]: uninstall lb:[dpo-load-balance: [proto:ip4
index:23 buckets:1 uRPF:41 to:[0:0]]
[0] [@0]: unset]:destroy [@22:[172.29.0.2/32]::invalid]: last-lock
Ã<è©Aâ¹Ã dÃ
Ã@QAâ¹Ã dÃ
áuòAÅr dÃ
áx_AÅr
dÃ
<<attachment: pcaptrace_txrx1.zip>>
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#22662): https://lists.fd.io/g/vpp-dev/message/22662 Mute This Topic: https://lists.fd.io/mt/97336867/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
