I'm trying to build an SS7 network entity that uses sctp, my question is how should I design the routing table used to route to each association in both route on GT or route on PC.
So for example let's say that this entity is connected to 2 STPs, 2 associations to each STP
node1 (thread 1) ----association 1---->STP1
node1 (thread 2) ----association 2---->STP1
node1 (thread 3) ----association 1---->STP2
node1 (thread 4) ----association 2---->STP2
As shown above each thread has one association, so I was thinking of sharing the file descriptor of each association with all threads, then I can send the traffic to any association(of course with a lock mechanism),as the association is treated here as link-set, again based on the point code or the GT.
Or create all association in one process and just send to each association based on it's descriptor with no multi-threading of course.
The environment is Linux and language is C And please note I can use any other idea other than the above 2.