Henning Brauer wrote:
* Graeme Lee <[EMAIL PROTECTED]> [2008-08-21 01:51]:
I've had to connect to a new upstream peer which is advertising an IPv4 safi of 128 (MPLS-labelled VPN address)
see http://www.iana.org/assignments/safi-namespace

I've modified the source to temporarily ignore this (actually anything over 127) as it currently only accepts 1 thru 3. Once the session is established, everything works well. What I really need to know is if this is potentially A Huge Mistake, or should bgpd be able to ignore unsupported capabilities being advertised to it?

the standards are pretty unclear about it, but the most logical
interpretation is that we have to send back a notification telling the
peer that we don't support this so capability negotiation actually works.

what is the peer? first time i hear sth doens't work w/ capa negitiation...

The peer is NexGen networks.  I gather they're using an Alcatel OS/R.

All I've done to work around this at present is extended the test in session.c to ignore mp_safi < 128 after the first test fails. Otherwise I just get this in the log every 30 seconds:

Aug 19 11:01:30 gw-nexgen bgpd[22795]: neighbor 121.200.227.93 (NexGen): state change Idle -> Active, reason: Start Aug 19 11:01:30 gw-nexgen bgpd[22795]: neighbor 121.200.227.93 (NexGen): state change Active -> OpenSent, reason: Connection opened Aug 19 11:01:30 gw-nexgen bgpd[22795]: neighbor 121.200.227.93 (NexGen): parse_capabilities: AFI IPv4, mp_safi 128 illegal Aug 19 11:01:30 gw-nexgen bgpd[22795]: neighbor 121.200.227.93 (NexGen): state change OpenSent -> Idle, reason: OPEN message received


Changing the test allows bgpd to continue, and I can get the following at least:

# bgpctl show neigh
BGP neighbor is x, remote AS 38809
Description: NexGen
 BGP version 4, remote router-id
 BGP state = Established, up for 1d01h50m
 Last read 00:00:04, holdtime 90s, keepalive interval 30s
 Neighbor capabilities:
   Multiprotocol extensions: IPv4 unknown (128)
   Route Refresh

 Message statistics:
                 Sent       Received
 Opens                    1          1
 Notifications            0          0
 Updates                  4      92476
 Keepalives            2522       3107
 Route Refresh            0          0
 Total                 2527      95584

 Update statistics:
                 Sent       Received
 Updates                  4     351083
 Withdraws                3      17886

 Local host:        121.200.227.94, Local port:  41277
 Remote host:       121.200.227.93, Remote port:   179

Reply via email to