SS7 adding sctp association

1,439 views
Skip to first unread message

Loay Mohammed

unread,
Jul 15, 2012, 11:40:04 AM7/15/12
to mobicent...@googlegroups.com
Dear All

hope you have a nice day I have problem with sctp association, 
the HLR have 2 IP(active standby) how to add the second IP of the standby for sctp association create command. 


BR
Loay

Amit Bhayani

unread,
Jul 16, 2012, 5:39:53 AM7/16/12
to mobicent...@googlegroups.com
Please read the SS7 documentation from 2.0.0.BETA1 http://code.google.com/p/jss7/wiki/Downloads?tm=2
The sctp create association specifies how you can pass additional IP's

Amit.  

Loay Mohammed

unread,
Jul 16, 2012, 6:12:28 AM7/16/12
to mobicent...@googlegroups.com
Hello Amit

i did it as the doc say by using comma (,)

sctp association create STPHLR2 CLIENT 10.1.3.66 2905 10.1.3.83 2905 ---> working fine 
sctp association create STPHLR3 CLIENT 10.1.3.27,10.1.3.155 2905 10.1.3.83 2906  --> not working
another Q why it say:- No AS found for routing message TransferMessage:


13:06:46,867 ERROR [AssociationImpl] Error while initiating a connection
java.nio.channels.UnresolvedAddressException
at sun.nio.ch.Net.checkAddress(Net.java:85)
at sun.nio.ch.SctpChannelImpl.connect(SctpChannelImpl.java:348)
at sun.nio.ch.SctpChannelImpl.connect(SctpChannelImpl.java:434)
at org.mobicents.protocols.sctp.AssociationImpl.doInitiateConnectionSctp(AssociationImpl.java:649)
at org.mobicents.protocols.sctp.AssociationImpl.initiateConnection(AssociationImpl.java:608)
at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:116)
at java.lang.Thread.run(Thread.java:722)
13:06:46,872 INFO  [SelectorThread] Asscoiation=STPHLR2 connected to=[/10.1.3.66:2905]
13:06:46,874 INFO  [AssociationHandler] New association setup for Association=STPHLR2 with 32 outbound streams, and 32 inbound streams.

13:06:55,715 ERROR [M3UAManagement] Tx : No AS found for routing message TransferMessage: {528=Protocol opc=979 dpc=645 si=3 ni=2 sls=1}
13:07:12,694 ERROR [M3UAManagement] Tx : No AS found for routing message TransferMessage: {528=Protocol opc=979 dpc=645 si=3 ni=2 sls=2}
13:07:17,193 ERROR [AssociationImpl] Error while initiating a connection
java.nio.channels.UnresolvedAddressException
at sun.nio.ch.Net.checkAddress(Net.java:85)
at sun.nio.ch.SctpChannelImpl.connect(SctpChannelImpl.java:348)
at sun.nio.ch.SctpChannelImpl.connect(SctpChannelImpl.java:434)
at org.mobicents.protocols.sctp.AssociationImpl.doInitiateConnectionSctp(AssociationImpl.java:649)
at org.mobicents.protocols.sctp.AssociationImpl.initiateConnection(AssociationImpl.java:608)
at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:116)
at java.lang.Thread.run(Thread.java:722)

Thanks
Loay

Sergey Vetyutnev

unread,
Jul 16, 2012, 9:12:32 AM7/16/12
to mobicent...@googlegroups.com
Hello!


>sctp association create STPHLR3 CLIENT 10.1.3.27,10.1.3.155 2905 10.1.3.83 2906
If 10.1.3.27,10.1.3.155 are two local addresses try this:
sctp association create STPHLR3 CLIENT 10.1.3.83 2906 10.1.3.27,10.1.3.155 2905

Loay Mohammed

unread,
Jul 16, 2012, 10:27:15 AM7/16/12
to mobicent...@googlegroups.com
Hello  Sergey 

they are not local addresses,
I have 4 HLR's :
HLR1 (1 IP), HLR2 (1 IP), HLR3 (2 IP's), HLR4 (2 IP's)

1st problem: Association  up only  if i connect to HLR which have 1 IP
second problem: HLR 3 and HLR 4 has 2 IP's when i try to multi-home it is notworking

I need the Association up to all HLR's

BR
Loay 
 

Sergey Vetyutnev

unread,
Jul 17, 2012, 12:30:14 PM7/17/12
to mobicent...@googlegroups.com
Hello!

Can you give me which ID addresses are local for Mobicents, which are remote and which "sctp association create" command do you use.


On Sunday, July 15, 2012 7:40:04 PM UTC+4, L0we wrote:

Loay Mohammed

unread,
Jul 17, 2012, 1:05:50 PM7/17/12
to mobicent...@googlegroups.com

Dear Sergey

 

 I have test environment with the following info

USSD node:

                                Global Title: 912020015

                                Point Code: 2-979

                                SIGTRAN :    10.1.3.83

HLR node2: 

                                Global Title: 912020077

        SIGTRAN :     10.1.3.66                                     

                                Point Code: 2-645 

HLR node3: 

                                Global Title: 912020078

        SIGTRAN :     10.1.3.27 and 10.1.3.155                                     

                                Point Code: 2-644 


sctp association create STPHLR2 CLIENT 10.1.3.66 2905 10.1.3.83 2905 

m3ua as create AS1 AS mode SE rc 400 traffic-mode loadshare 

m3ua asp create ASP1 STPHLR2 

m3ua as add AS1 ASP1 

m3ua route add AS1 645 979 -1 

m3ua asp start ASP1 


sctp association create STPHLR3 CLIENT 10.1.3.27,10.1.3.155 2905 10.1.3.83 2906 

m3ua as create AS2 AS mode SE rc 400 traffic-mode loadshare 

m3ua asp create ASP2 STPHLR1 

m3ua as add AS2 ASP2 

m3ua route add AS2 644 979 -1 

m3ua asp start ASP2 


sccp rsp create 1 645 0 0 

sccp rsp create 2 644 0 0 

sccp rss create 1 645 8 0 

sccp rss create 2 645 6 0 

sccp rss create 3 644 8 0 

sccp rss create 4 644 6 0 

 

sccp sap create 1 1 979 3 

sccp dest create 1 1 645 644 0 255 255 

sccp dest create 1 2 644 644 0 255 255 

 

//Rule for incoming message 

sccp primary_add create 1 19 979 0 0 1 4 912020015 

sccp rule create 1 K 18 0 0 0 1 4 912020015 solitary 1 

 

//Rule for outgoing message - load balanced between 645 & 644 

sccp primary_add create 2 19 645 0 0 1 4 - 

sccp backup_add create 1 19 644 0 0 1 4 - 

sccp rule create 2 K 18 0 0 0 1 4 * loadshared 2 1 bit3

                                

Best regards

Loay

Sergey Vetyutnev

unread,
Jul 19, 2012, 9:29:16 AM7/19/12
to mobicent...@googlegroups.com
Hello!


> sctp association create STPHLR3 CLIENT 10.1.3.27,10.1.3.155 2905 10.1.3.83 2906
AFAIK you can leave the one of two HLR's addresses, for example
sctp association create STPHLR3 CLIENT 10.1.3.27 2905 10.1.3.83 2906
or
sctp association create STPHLR3 CLIENT 10.1.3.155 2905 10.1.3.83 2906

HLR itself when configuring SCTP defines both local addresses (10.1.3.27 and 10.1.3.155) for usage by SCTP.

But if you have two IP addresses at Mobicents side you must define both of them (if there addresses for example 10.1.3.83 and 10.1.3.84):
sctp association create STPHLR3 CLIENT 10.1.3.27 2905 10.1.3.83,10.1.3.84 2906

cruc...@gmail.com

unread,
Jul 31, 2012, 10:32:27 AM7/31/12
to mobicent...@googlegroups.com
Hi all,

          I really don't get it :) , I have the same problem. My HLR has 2 IP addresses and when it falls back to the second one this happens:

16:49:55,745 WARN  [AssociationHandler] (Thread-17) Peer Address changed to=/10.100.63.19:46603 for Association=assoc1
...the primary being 10.100.63.3 which I have defined in the association.

an then :

 
16:50:33,266 ERROR [AssociationImpl] (Thread-17) IOException while trying to write to underlying socket for Association=assoc1 IOError count=1
java.net.BindException: Cannot assign requested address
        at sun.nio.ch.SctpChannelImpl.send0(Native Method)
        at sun.nio.ch.SctpChannelImpl.sendFromNativeBuffer(SctpChannelImpl.java:1027)
        at sun.nio.ch.SctpChannelImpl.send(SctpChannelImpl.java:987)
        at sun.nio.ch.SctpChannelImpl.send(SctpChannelImpl.java:967)
        at org.mobicents.protocols.sctp.AssociationImpl.doSendSctp(AssociationImpl.java:540)
        at org.mobicents.protocols.sctp.AssociationImpl.doSend(AssociationImpl.java:534)
        at org.mobicents.protocols.sctp.AssociationImpl.write(AssociationImpl.java:498)
        at org.mobicents.protocols.sctp.SelectorThread.write(SelectorThread.java:345)
        at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:151)
        at java.lang.Thread.run(Thread.java:722)


So how do I define the second IP: 10.100.63.19 in the association ? :) 

My association:
mobicents(10.117.1.246:3435)>sctp association show

ASSOCIATION SCTP name=assoc1 started=true peerIp=10.100.63.3 peerPort=2998 server=add type=SERVER

Sergey Vetyutnev

unread,
Aug 1, 2012, 11:35:35 AM8/1/12
to mobicent...@googlegroups.com
Hello!

> 16:49:55,745 WARN  [AssociationHandler] (Thread-17) Peer Address changed to=/10.100.63.19:46603 for Association=assoc1
>...the primary being 10.100.63.3 which I have defined in the association.
This says that multihoming is configured propely and Association tried to switch to the second address.


16:50:33,266 ERROR [AssociationImpl] (Thread-17) IOException while trying to write to underlying socket for Association=assoc1 IOError count=1
java.net.BindException: Cannot assign requested address
This was the bug that has been fixed:
http://code.google.com/p/jss7/issues/detail?id=53

Try to load the latest SCTP version from
https://code.google.com/p/sctp

cruc...@gmail.com

unread,
Aug 2, 2012, 3:21:33 AM8/2/12
to mobicent...@googlegroups.com
Hi, thank you for the answer.

The thing is that I haven't configured multihoming, I understood that I need to configure multihoming if I have 2 IP interfaces on my mobicents server. But I have 2 IP addresses on my HLR which conects to my mobicents server, and the HLR switches from 10.100.63.3 to 10.100.63.19. And when it does this, my mobicents server dosen't know about that second address. That's the issue. 

Sergey Vetyutnev

unread,
Aug 2, 2012, 9:34:11 AM8/2/12
to mobicent...@googlegroups.com
Hello!

For HLR multihoming (two IP addresses at HLR side): you should configure it at HLR side.
At Mobicents side you configure one of HLR addresses. AFAIK SCTP protocol itself gives info to the Mobicents Association that HLR has two IP addresses.
If Mobicents have two IP addresses you should specially configure this.

Lui Yeung

unread,
Jun 13, 2013, 3:14:25 PM6/13/13
to mobicent...@googlegroups.com
Hi Sergey,

I'm facing a similar problem.  

Let say if the network of the peer address (HLR's primary address) specified in the Mobicents Client Association is down, how could the HLR inform Mobicents about the other IP address?  The association has not been established yet.

Thanks.

Lui
Reply all
Reply to author
Forward
0 new messages