[SXP-6] Sxp connection to v4 as both doesn't work. Created: 30/Mar/15  Updated: 16/Apr/15  Resolved: 16/Apr/15

Status: Resolved
Project: sxp
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: bhargav krishnamurthy Assignee: Maros Marsalek
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: All


External issue ID: 2917

 Description   

Issue:SXP for version 4 as both speaker and listener doesn't work.
Setup: NGWC :
cts sxp connection peer 192.168.20.119 password none mode local both

Peer IP : 192.168.20.119
Source IP : 192.168.113.3
Conn status : On (Speaker) :: Off (Listener)
Conn version : 4
Conn capability : IPv4-IPv6-Subnet
Speaker Conn hold time : 120 seconds
Listener Conn hold time : 0 seconds
Local mode : Both
Connection inst# : 1
TCP conn fd : 1(Speaker) -1(Listener)
TCP conn password: none
Keepalive timer is running
Duration since last state change: 0:00:00:25 (dd:hr:mm:sec) :: 0:00:01:47 (dd:hr:mm:sec)

netstat -an | grep 64999
tcp 0 0 ::ffff:192.168.20.119:64999 :::* LISTEN
tcp 0 0 ::ffff:192.168.20.119:17785 ::ffff:192.168.113.3:64999 ESTABLISHED

Conditions/Trigger/How to reproduce ? ISE is supposed to start 2 thread 1 as listener and one as speaker. its starting only 1 connection and router is waiting for other connection.
Impact:
Workaround :None



 Comments   
Comment by Maros Marsalek [ 09/Apr/15 ]

Found one minor issue with BOTH mode in the SXP ODL code:
Keepalives were sent over the wrong connection (the one where ODL acted as listener).

https://git.opendaylight.org/gerrit/#/c/18035/

Apart from that, the problem seems to be just in the configuration since I was able to connect ODL and ISR-G2 successfully using BOTH at the end:

Peer IP : 10.24.81.81
Source IP : 172.20.161.178
Conn status : On (Speaker) :: On (Listener)
Conn version : 4
Conn capability : IPv4-IPv6-Subnet
Speaker Conn hold time : 120 seconds
Listener Conn hold time : 90 seconds
Local mode : Both
Connection inst# : 1
TCP conn fd : 2(Speaker) 3(Listener)
TCP conn password: none
Keepalive timer is running
Duration since last state change: 0:00:00:39 (dd:hr:mm:sec) :: 0:00:00:28 (dd:hr:mm:sec)

Heres what I did:

At the beginning, I could not get 2 connections established, only the one ISR-G2 -> ODL. The other one kept timing out and the problem was that ISR-G2 expected the messages to contain MD5 digest even though the connection was set with none password. Heres what I found in the log when ODL attempted to connect ISR-G2:

No MD5 digest from 10.24.81.81(43381) to 172.20.161.178(64999) tableid - 0

So I checked the default password setting and I found out that the default password was set. I removed the default password and the connection ODL -> ISR-G2 was successfully established. It seems that even if a connection in ISR-G2 is configured with none password, the incomming connections from the peer have to contain the MD5 digests as long as default password is set.

Setting status to waiting for review until the fix is merged into SXP in ODL.

Comment by Martin Sunal [ 09/Apr/15 ]

Regarding to password - there is a bug https://bugs.opendaylight.org/show_bug.cgi?id=2919

Generated at Wed Feb 07 20:39:42 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.