Re: [vpp-dev] BFD sends old remote discriminator in its control packet after session goes to DOWN state #vpp
Hi Klement, Thanks for the patch file. The fix works. Now I could see that once BFD session goes DOWN due to inactivity timer, remote discriminator is set 0 in BFD control packet. On Fri, Jan 17, 2020 at 3:37 PM Klement Sekera -X (ksekera - PANTHEON TECH SRO at Cisco) wrote: > Hi, > > thank you for your report. > > Can you please apply this fix and verify that the behaviour is now correct? > > https://gerrit.fd.io/r/c/vpp/+/24388 > > Thanks, > Klement > > > On 17 Jan 2020, at 07:04, sont...@gmail.com wrote: > > > > Hi, > > > > I have observed an incorrect behavior in BFD code of VPP. > > I have brought BFD session UP between VPP and peer router. > > Due to interface shutdown on peer router BFD session on VPP goes to DOWN > state. > > Once it goes to DOWN state, it is continuously sending control packets > using its old remote discriminator in its control packet's "Your > Discriminator" field. > > This is a wrong behavior. Below RFC section tells that once BFD goes > DOWN due to non-receipt of BFD control packet, "Your Discriminator" field > should be set to zero. > > > > RFC 5880 6.8.1. State Variables > > > > > >bfd.RemoteDiscr > > > > The remote discriminator for this BFD session. This is the > > discriminator chosen by the remote system, and is totally opaque > > to the local system. This MUST be initialized to zero. If a > > period of a Detection Time passes without the receipt of a valid, > > authenticated BFD packet from the remote system, this variable > > MUST be set to zero. > > > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15201): https://lists.fd.io/g/vpp-dev/message/15201 Mute This Topic: https://lists.fd.io/mt/69820780/21656 Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] BFD sends old remote discriminator in its control packet after session goes to DOWN state #vpp
Hi, thank you for your report. Can you please apply this fix and verify that the behaviour is now correct? https://gerrit.fd.io/r/c/vpp/+/24388 Thanks, Klement > On 17 Jan 2020, at 07:04, sont...@gmail.com wrote: > > Hi, > > I have observed an incorrect behavior in BFD code of VPP. > I have brought BFD session UP between VPP and peer router. > Due to interface shutdown on peer router BFD session on VPP goes to DOWN > state. > Once it goes to DOWN state, it is continuously sending control packets using > its old remote discriminator in its control packet's "Your Discriminator" > field. > This is a wrong behavior. Below RFC section tells that once BFD goes DOWN due > to non-receipt of BFD control packet, "Your Discriminator" field should be > set to zero. > > RFC 5880 6.8.1. State Variables > > >bfd.RemoteDiscr > > The remote discriminator for this BFD session. This is the > discriminator chosen by the remote system, and is totally opaque > to the local system. This MUST be initialized to zero. If a > period of a Detection Time passes without the receipt of a valid, > authenticated BFD packet from the remote system, this variable > MUST be set to zero. > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15194): https://lists.fd.io/g/vpp-dev/message/15194 Mute This Topic: https://lists.fd.io/mt/69820780/21656 Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] BFD sends old remote discriminator in its control packet after session goes to DOWN state #vpp
Hi, I have observed an incorrect behavior in BFD code of VPP. I have brought BFD session UP between VPP and peer router. Due to interface shutdown on peer router BFD session on VPP goes to DOWN state. Once it goes to DOWN state, it is continuously sending control packets using its old remote discriminator in its control packet's "Your Discriminator" field. This is a wrong behavior. Below RFC section tells that once BFD goes DOWN due to non-receipt of BFD control packet, "Your Discriminator" field should be set to zero. RFC 5880 6.8.1 ( https://tools.ietf.org/html/rfc5880#section-6.8.1 ). State Variables bfd.RemoteDiscr The remote discriminator for this BFD session. This is the discriminator chosen by the remote system, and is totally opaque to the local system. This MUST be initialized to zero. If a period of a Detection Time passes without the receipt of a valid, authenticated BFD packet from the remote system, this variable MUST be set to zero. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15193): https://lists.fd.io/g/vpp-dev/message/15193 Mute This Topic: https://lists.fd.io/mt/69820780/21656 Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-