RFC-2283 question

"Rijsman, Bruno" <brijsman@unisphere.cc> Mon, 08 November 1999 22:16 UTC

Received: from segue.merit.edu (segue.merit.edu [198.108.1.41]) by nic.merit.edu (8.9.1a/8.9.1) with ESMTP id RAA25090 for <idr-archive@nic.merit.edu>; Mon, 8 Nov 1999 17:16:45 -0500 (EST)
Received: by segue.merit.edu (Postfix) id 4F0FD5DDA9; Mon, 8 Nov 1999 17:16:25 -0500 (EST)
Delivered-To: idr-outgoing@merit.edu
Received: by segue.merit.edu (Postfix, from userid 56) id DEB675DDAD; Mon, 8 Nov 1999 17:16:10 -0500 (EST)
Received: from mail.nyp.ans.net (mail.nyp.ans.net [147.225.190.25]) by segue.merit.edu (Postfix) with ESMTP id CC7515DDDE for <bgp@merit.edu>; Mon, 8 Nov 1999 17:15:15 -0500 (EST)
Received: from ntserver1.redstonecom.com (ntserver1.redstonecom.com [199.105.223.130]) by mail.nyp.ans.net (8.9.3/8.9.3) with ESMTP id RAA05366 for <bgp@ans.net>; Mon, 8 Nov 1999 17:15:14 -0500 (EST)
Received: by NTSERVER1 with Internet Mail Service (5.0.1460.8) id <45HQQZ7Z>; Mon, 8 Nov 1999 17:14:53 -0500
Message-ID: <90ABC30C744ED311B16E00500464BEFC22FCD1@NTSERVER1>
From: "Rijsman, Bruno" <brijsman@unisphere.cc>
To: BGP exploder <bgp@ans.net>
Subject: RFC-2283 question
Date: Mon, 08 Nov 1999 17:14:52 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Content-Type: text/plain
Sender: owner-idr@merit.edu
Precedence: bulk

RFC-2283 contains the following paragraph (which was not present in
draft-ietf-idr-bgp4-multiprotocol-v2-03.txt) at the bottom of page 2: 

The [MP_REACH_NLRI] attribute contains ONE OR MORE triples <Address Family
Information, Next Hop Information, Network Layer Reachability Information>,
..."

The encoding of the MP_REACH_NLRI attribute contains fields for 
* length of the next hop network address, 
* the number of SNPAs
* the length of each SNPA
* the length of each prefix

However, the encoding of the MP_REACH_NLRI attribute does NOT contain a
field for the number of prefixes (i.e. the number of prefixes and hence the
total length of the NLRI field is implicit).

My question is: if the MP_REACH_NLRI contains MORE THAN ONE triple <Address
Family Information, Next Hop Information, Network Layer Reachability
Information>, how do I know where one triple ends and the next begins? In
other words, how can I find out what the number of prefixes is in a given
triple?

It seems to me that in the absence of a "number of prefixes" field, we can
only have ONE triple per MP_REACH_NLRI attribute and therefor only ONE type
of NLRI (i.e. address family) per UPDATE message (since dupplicate
attributes are not allowed). Either that or we must include a "number of
prefixes" field in the MP_REACH_NLRI attribute...

Bruno Rijsman
Unisphere Solutions