On Jan 8, 2011, at 4:20 PM, Claudio Jeker wrote:
> Commited the diff. I guess there is a bit more needed so that we handle
> various unknown TLVs correctly in hello and initializaion. I hope I can
> provide a diff for this soon. Btw. I would be interested in the ldpd -dv
> output of the failures you get when the JUNOS has RFC 3479 enabled or when
> a different transport addr is used.
Thanks! Without 'set protocols ldp graceful-restart helper-disable' on junos,
I get the following output from ldpd -dv. Packet dump of the LDP
initialization message and openbsd's response further down:
# ldpd -dv
fast = "2"
startup
mpath route not found
if_fsm: event UP resulted in action START and changing state for interface em2
from DOWN to ACTIVE
if_fsm: interface lo1, event UP not expected in state LOOP
kernel add route 0.0.0.0/0
kernel add route 10.0.5.0/24
kernel add route 192.168.56.0/24
kernel add route 192.168.91.0/24
kernel add route 192.168.91.0/24
kernel add route 192.168.91.0/24
kernel add route 192.168.92.0/24
kernel add route 192.168.93.0/24
kernel add route 192.168.93.0/24
kernel add route 192.168.94.0/24
kernel add route 192.168.95.0/24
kernel add route 192.168.100.1/32
kernel add route 192.168.100.2/32
kernel add route 192.168.100.3/32
kernel add route 192.168.100.4/32
nbr_fsm: event HELLO RECEIVED resulted in action START INACTIVITY TIMER and
changing state for neighbor ID 192.168.100.3 from DOWN to PRESENT
nbr_fsm: event SESSION UP resulted in action START NEIGHBOR SESSION and
changing state for neighbor ID 192.168.100.3 from PRESENT to INITIALIZED
recv_init: neighbor ID 192.168.100.3
session_shutdown: nbr ID 192.168.100.3, status 80000007
session_close: closing session with nbr ID 192.168.100.3
nbr_fsm: event SESSION CLOSE resulted in action CLOSE SESSION and changing
state for neighbor ID 192.168.100.3 from INITIALIZED to PRESENT
nbr_fsm: event SESSION UP resulted in action START NEIGHBOR SESSION and
changing state for neighbor ID 192.168.100.3 from PRESENT to INITIALIZED
recv_init: neighbor ID 192.168.100.3
session_shutdown: nbr ID 192.168.100.3, status 80000007
session_close: closing session with nbr ID 192.168.100.3
nbr_fsm: event SESSION CLOSE resulted in action CLOSE SESSION and changing
state for neighbor ID 192.168.100.3 from INITIALIZED to PRESENT
nbr_fsm: event SESSION UP resulted in action START NEIGHBOR SESSION and
changing state for neighbor ID 192.168.100.3 from PRESENT to INITIALIZED
recv_init: neighbor ID 192.168.100.3
session_shutdown: nbr ID 192.168.100.3, status 80000007
session_close: closing session with nbr ID 192.168.100.3
nbr_fsm: event SESSION CLOSE resulted in action CLOSE SESSION and changing
state for neighbor ID 192.168.100.3 from INITIALIZED to PRESENT
nbr_fsm: event SESSION UP resulted in action START NEIGHBOR SESSION and
changing state for neighbor ID 192.168.100.3 from PRESENT to INITIALIZED
recv_init: neighbor ID 192.168.100.3
session_shutdown: nbr ID 192.168.100.3, status 80000007
session_close: closing session with nbr ID 192.168.100.3
nbr_fsm: event SESSION CLOSE resulted in action CLOSE SESSION and changing
state for neighbor ID 192.168.100.3 from INITIALIZED to PRESENT
nbr_fsm: event SESSION UP resulted in action START NEIGHBOR SESSION and
changing state for neighbor ID 192.168.100.3 from PRESENT to INITIALIZED
recv_init: neighbor ID 192.168.100.3
session_shutdown: nbr ID 192.168.100.3, status 80000007
session_close: closing session with nbr ID 192.168.100.3
nbr_fsm: event SESSION CLOSE resulted in action CLOSE SESSION and changing
state for neighbor ID 192.168.100.3 from INITIALIZED to PRESENT
^Clabel decision engine exiting
if_fsm: event DOWN resulted in action RESET and changing state for interface
em2 from ACTIVE to DOWN
if_fsm: event DOWN resulted in action NOTHING and changing state for interface
lo1 from LOOP to DOWN
ldp engine exiting
kernel routing table decoupled
terminating
#
-----------------------------------------------------------------------------
----------
No. Time Source Destination Protocol
Info
18 20:52:39.958729 192.168.93.3 192.168.93.1 LDP
Initialization Message
Frame 18 (118 bytes on wire, 118 bytes captured)
Ethernet II, Src: CadmusCo_8a:96:a1 (08:00:27:8a:96:a1), Dst:
CadmusCo_ab:97:62 (08:00:27:ab:97:62)
Internet Protocol, Src: 192.168.93.3 (192.168.93.3), Dst: 192.168.93.1
(192.168.93.1)
Transmission Control Protocol, Src Port: 57182 (57182), Dst Port: ldp (646),
Seq: 1, Ack: 1, Len: 52
Label Distribution Protocol
Version: 1
PDU Length: 48
LSR ID: 192.168.100.3 (192.168.100.3)
Label Space ID: 0
Initialization Message
0... .... = U bit: Unknown bit not set
Message Type: Initialization Message (0x200)
Message Length: 38
Message ID: 0x000001f3
Common Session Parameters TLV
00.. .... = TLV Unknown bits: Known TLV, do not Forward (0x00)
TLV Type: Common Session Parameters TLV (0x500)
TLV Length: 14
Parameters
Session Protocol Version: 1
Session KeepAlive Time: 30
0... .... = Session Label Advertisement Discipline: Downstream
Unsolicited proposed
.0.. .... = Session Loop Detection: Loop Detection Disabled
Session Path Vector Limit: 0
Session Max PDU Length: 4096
Session Receiver LSR Identifier: 192.168.100.1
(192.168.100.1)
Session Receiver Label Space Identifier: 0
FT Session TLV
10.. .... = TLV Unknown bits: Unknown TLV, do not Forward (0x02)
TLV Type: FT Session TLV (0x503)
TLV Length: 12
FT Session Parameters
Flags: 0x0001 (Using LDP Graceful Restart)
Reserved: 0x0000
Reconnect Timeout: 0
Recovery Time: 0
No. Time Source Destination Protocol
Info
19 20:52:39.961223 192.168.93.1 192.168.93.3 LDP
Notification Message
Frame 19 (98 bytes on wire, 98 bytes captured)
Ethernet II, Src: CadmusCo_ab:97:62 (08:00:27:ab:97:62), Dst:
CadmusCo_8a:96:a1 (08:00:27:8a:96:a1)
Internet Protocol, Src: 192.168.93.1 (192.168.93.1), Dst: 192.168.93.3
(192.168.93.3)
Transmission Control Protocol, Src Port: ldp (646), Dst Port: 57182 (57182),
Seq: 1, Ack: 53, Len: 32
Label Distribution Protocol
Version: 1
PDU Length: 28
LSR ID: 192.168.100.1 (192.168.100.1)
Label Space ID: 0
Notification Message
0... .... = U bit: Unknown bit not set
Message Type: Notification Message (0x1)
Message Length: 18
Message ID: 0x00000002
Status TLV
00.. .... = TLV Unknown bits: Known TLV, do not Forward (0x00)
TLV Type: Status TLV (0x300)
TLV Length: 10
Status
1... .... = E Bit: Fatal Error Notification
.0.. .... = F Bit: Notification should NOT be Forwarded
Status Data: Bad TLV Length (0x7)
Message ID: 0x000001f3
Message Type: Initialization Message (0x0200)