Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-317

UPDATE message sent by controller to BGP peer has incorrect Total path attribute length (should not cover the NLRI bytes)

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • Bugzilla Migration
    • Bugzilla Migration
    • BGP
    • None
    • Operating System: All
      Platform: All

    • 4681

    Description

      UPDATE message sent by controller to BGP peer intended for the 8.0.1.32/28 prefix introduction has incorrect Total path attribute length (it should not cover the NLRI bytes)

      bgp peer log (play.py)

      2015-11-26 11:27:48,888 DEBUG: UPDATE message received: 0xffffffffffffffffffffffffffffffff004b020000003440010100400200800404000000004005040000006480090429292929800a0428282828800e0e00010104c0000201001c08000120
      2015-11-26 11:27:48,888 DEBUG: Decoding update message:
      2015-11-26 11:27:48,888 DEBUG: Message header marker: 0xffffffffffffffffffffffffffffffff
      2015-11-26 11:27:48,888 DEBUG: Message lenght: 0x004b (75)
      2015-11-26 11:27:48,888 DEBUG: Message type: 0x02 (update)
      2015-11-26 11:27:48,888 DEBUG: Withdrawn routes lenght: 0x0000 (0)
      2015-11-26 11:27:48,888 DEBUG: Withdrawn routes: 0x
      2015-11-26 11:27:48,889 DEBUG: Withdrawn routes prefix list: []
      2015-11-26 11:27:48,889 DEBUG: Total path attribute lenght: 0x0034 (52)
      2015-11-26 11:27:48,889 DEBUG: Path attributes: 0x40010100400200800404000000004005040000006480090429292929800a0428282828800e0e00010104c0000201001c08000120
      2015-11-26 11:27:48,889 DEBUG: Calculated NLRI length: 0
      2015-11-26 11:27:48,889 DEBUG: NLRI: 0x
      2015-11-26 11:27:48,889 DEBUG: NLRI prefix list: []

      karaf log for distribution-karaf-0.3.2-Lithium-SR2 temporary at https://jenkins.opendaylight.org/sandbox/job/bgpcep-csit-1node-userfeatures-only-stable-lithium/19/artifact/karaf.log

      from https://tools.ietf.org/html/rfc4271#page-15

      -----------------------------------------------------

      Withdrawn Routes Length (2 octets)

      -----------------------------------------------------

      Withdrawn Routes (variable)

      -----------------------------------------------------

      Total Path Attribute Length (2 octets)

      -----------------------------------------------------

      Path Attributes (variable)

      -----------------------------------------------------

      Network Layer Reachability Information (variable)

      -----------------------------------------------------

      ...

      Total Path Attribute Length:

      This 2-octet unsigned integer indicates the total length of the
      Path Attributes field in octets. Its value allows the length
      of the Network Layer Reachability field to be determined as
      specified below.

      ...

      Network Layer Reachability Information:

      This variable length field contains a list of IP address
      prefixes. The length, in octets, of the Network Layer
      Reachability Information is not encoded explicitly, but can be
      calculated as:

      UPDATE message Length - 23 - Total Path Attributes Length

      • Withdrawn Routes Length

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            rsajben@cisco.com Radovan Sajben
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: