Hi Florin, Thanks for the clarification. Thanks, -Raj
On Wed, Feb 26, 2020 at 5:14 PM Florin Coras <fcoras.li...@gmail.com> wrote: > Hi Raj, > > Now that’s interesting. VPP detects when an application dies (binary api > mechanism) and forces through the session layer a de-attach which in turn > leads to an unbind. > > In case of udp, not tcp, we have a shim layer that redirects udp packets > to whomever registered for a certain port. In your case, udp-input was > registered twice but because currently we don’t have a reference count, the > unbind removes the registration for both binds. > > Will add it to my todo list if nobody beats me to it. > > Regards, > Florin > > On Feb 26, 2020, at 1:28 PM, Raj Kumar <raj.gauta...@gmail.com> wrote: > > Hi, > When 2 or more UDP rx applications ( using VCL) receiving on the same port > ( bind on the same port but different ip address) then on stopping either > one of the application , all other application stopped receiving the > traffic. As soon as , I restart the application all other applications also > start receiving the traffic. > > vpp# sh ip6 int > > vppnet1.2001 is admin up > > Local unicast address(es): > > fd0d:edc4:ffff:2001::213/64 > > fd0d:edc4:ffff:2001::223/64 > > Link-local address(es): > > fe80::ba83:3ff:fe79:af8c > When both applications are running : - > vpp# sh session verbose 1 > Connection State Rx-f > Tx-f > [#0][U] fd0d:edc4:ffff:2001::213:9915->:::0 - 0 > 0 > [#0][U] fd0d:edc4:ffff:2001::223:9915->:::0 - 0 > 0 > Thread 0: active sessions 2 > Thread 1: no sessions > Thread 2: no sessions > Thread 3: no sessions > Thread 4: no sessions > > Connection State Rx-f > Tx-f > [#5][U] fd0d:edc4:ffff:2001::213:9915->fd0d:edc4:f- 15226 > 0 > Thread 5: active sessions 1 > > Connection State Rx-f > Tx-f > [#6][U] fd0d:edc4:ffff:2001::223:9915->fd0d:edc4:f- 0 > 0 > Thread 6: active sessions 1 > > > On stopping first application : - > > vpp# sh session verbose 1 > > Connection State Rx-f > Tx-f > > [#0][U] fd0d:edc4:ffff:2001::223:9915->:::0 - 0 > 0 > > Thread 0: active sessions 1 > > Thread 1: no sessions > > Thread 2: no sessions > > Thread 3: no sessions > > Thread 4: no sessions > > Thread 5: no sessions > > > Connection State Rx-f > Tx-f > > [#6][U] fd0d:edc4:ffff:2001::223:9915->fd0d:edc4:f- 0 > 0 > > > Thread 6: active sessions 1 > One active session is there but in 'sh err' "no listener punt" error > increments and application is not receiving the data. > > 310150540 ip6-udp-lookup no listener punt > > packet trace :- > > ------------------- Start of thread 6 vpp_wk_5 ------------------- > Packet 1 > > 01:12:04:676114: dpdk-input > vppnet1 rx queue 2 > buffer 0x10b18f: current data 0, length 7634, buffer-pool 0, ref-count > 1, totlen-nifb 0, trace handle 0x6000000 > ext-hdr-valid > PKT MBUF: port 0, nb_segs 1, pkt_len 7634 > buf_len 9344, data_len 7634, ol_flags 0x182, data_off 128, phys_addr > 0x744c6440 > packet_type 0x2e1 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0 > rss 0x678c0829 fdir.hi 0x0 fdir.lo 0x678c0829 > Packet Offload Flags > PKT_RX_RSS_HASH (0x0002) RX packet with RSS hash result > PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid > PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid > Packet Types > RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet > RTE_PTYPE_L3_IPV6_EXT_UNKNOWN (0x00e0) IPv6 packet with or without > extension headers > RTE_PTYPE_L4_UDP (0x0200) UDP packet > IP6: b8:83:03:79:9f:e8 -> b8:83:03:79:af:8c 802.1q vlan 2001 > UDP: fd0d:edc4:ffff:2001::104 -> fd0d:edc4:ffff:2001::223 > tos 0x00, flow label 0x0, hop limit 64, payload length 7576 > UDP: 23456 -> 9915 > length 7576, checksum 0x225d > 01:12:04:676154: ethernet-input > frame: flags 0x3, hw-if-index 2, sw-if-index 2 > IP6: b8:83:03:79:9f:e8 -> b8:83:03:79:af:8c 802.1q vlan 2001 > 01:12:04:676156: ip6-input > UDP: fd0d:edc4:ffff:2001::104 -> fd0d:edc4:ffff:2001::223 > tos 0x00, flow label 0x0, hop limit 64, payload length 7576 > UDP: 23456 -> 9915 > length 7576, checksum 0x225d > 01:12:04:676164: ip6-lookup > fib 0 dpo-idx 20 flow hash: 0x00000000 > UDP: fd0d:edc4:ffff:2001::104 -> fd0d:edc4:ffff:2001::223 > tos 0x00, flow label 0x0, hop limit 64, payload length 7576 > UDP: 23456 -> 9915 > length 7576, checksum 0x225d > 01:12:04:676166: ip6-local > UDP: fd0d:edc4:ffff:2001::104 -> fd0d:edc4:ffff:2001::223 > tos 0x00, flow label 0x0, hop limit 64, payload length 7576 > UDP: 23456 -> 9915 > length 7576, checksum 0x225d > 01:12:04:676169: ip6-udp-lookup > UDP: src-port 23456 dst-port 9915 > 01:12:04:676169: ip6-punt > UDP: fd0d:edc4:ffff:2001::104 -> fd0d:edc4:ffff:2001::223 > tos 0x00, flow label 0x0, hop limit 64, payload length 7576 > UDP: 23456 -> 9915 > length 7576, checksum 0x225d > 01:12:04:676169: error-punt > rx:vppnet1.2001 > 01:12:04:676170: punt > ip6-udp-lookup: no listener punt > > > thanks, > -Raj > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15574): https://lists.fd.io/g/vpp-dev/message/15574 Mute This Topic: https://lists.fd.io/mt/71574152/21656 Mute #vpp-hoststack: https://lists.fd.io/mk?hashtag=vpp-hoststack&subid=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-