eBGP TTL-Security Hops: Cisco docs are wrong?

Sdílet
Vložit
  • čas přidán 16. 11. 2020
  • In this video I demonstrate BGP neighbor ttl-security hops and show how the Cisco documentation seems to be incorrect about it's function.
  • Věda a technologie

Komentáře • 10

  • @Douglas_Aguirre
    @Douglas_Aguirre Před 11 měsíci

    Dude... I lost the last 2 hours trying to understand this behavior and I was like "wtf am I missing?" lol
    glad to know that I'm not the only one
    thanks for the video

  • @purplemonkeydishwasher5269

    IF nothing else its a much better explanation of ttl-security than I was given elsewhere

  • @andrewohanian5132
    @andrewohanian5132 Před 10 měsíci

    Yep, this show output has always bothered me. I have to think "min TTL after decrementing". If I do ttl-security hops 1, the router should only accept a min incoming TTL of 255. It should be 256-hops, but a lot of people think it is 255-hops. As far as I know, decrementing doesn't happen upon ingress, it happens on egress, so considering it 255-hops because the router will decrement it by 1 doesn't seem correct anyways. Oh well.

  • @georgehewitt8041
    @georgehewitt8041 Před 3 lety

    The joys of trying to find your own materials on ccie :)

  • @PouriyaJamshidi
    @PouriyaJamshidi Před 2 lety

    I remember facing the same thing a few years ago and had the privilege to ask one of Cisco's software engineers about it. If I recall correctly, when a packet reaches a router, in this case R1, one of the first things that happen is the TTL decrement of the packet and then it gets passed on to other stacks. Even though we receive it with the TTL of 253, by the time BGP process gets it, it has become 252.
    To this day, it is still weird for me why it has to work like this.

    • @michael_obrien
      @michael_obrien  Před 2 lety +1

      Actually, the TTL decrement is one of the last things that happens. This CEF post actually has some good info about it:
      learningnetwork.cisco.com/s/blogs/a0D3i000002SKKGEA4/demystifying-cef

    • @PouriyaJamshidi
      @PouriyaJamshidi Před 2 lety

      @@michael_obrien Thanks for sharing the link

    • @Douglas_Aguirre
      @Douglas_Aguirre Před 11 měsíci +1

      Thanks for sharing.... but in that case, if the router receives a BGP packet with TTL=1... the router would decrement this TTL and drop it before send to BGP

  • @khaganiabbasov7243
    @khaganiabbasov7243 Před 2 lety

    Cisco doc isnt wrong. You are using loopback interface for neighborship. use disable connected check command and hops 2 from R4 neighborship will come up. But without disable connected check hops 3 must be. Because of loopback interface. if you use direct connected interface for neighborship hops 2 will be useful from R4 too.

    • @michael_obrien
      @michael_obrien  Před 2 lety

      The disable-disconnected-check doesn't apply here. That command only impacts neighbors a single-hop away:
      www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/command/irg-cr-book/bgp-m1.html#wp2556182590
      The neighbor relationship to R4 will only come up if you set the TTL-security to 3, regardless of if it's a loopback or not.