LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Method for sending messages through alternate routes to same destination, help! (http://www.linuxquestions.org/questions/linux-networking-3/method-for-sending-messages-through-alternate-routes-to-same-destination-help-781493/)

I_love_Megatron 01-11-2010 11:12 AM

Method for sending messages through alternate routes to same destination, help!
 
I am doing a university course and am struggling to find a method of sending 1 message down route A and then the next message to the same destination via route B, alternating between the two with each new message sent.

I am going to use a Linux computer with two Ethernet cards connected to two different networks via a routers and then to the destination host via a switch.

janoszen 01-11-2010 11:27 AM

Source routing
 
You need to define a source route for each of your addresses and have your application bind to those addresses explicitly as far as I know.

I_love_Megatron 01-11-2010 11:35 AM

Quote:

Originally Posted by janoszen (Post 3822659)
You need to define a source route for each of your addresses and have your application bind to those addresses explicitly as far as I know.


Can i do this by using Linux alone, or do i have to use an application to do this? Further more do you kno of any protocols within linux i could use to perform this task, im so lost.

janoszen 01-12-2010 01:46 AM

What messages?
 
What messages are we talking about? I assume, you have some custom application using sockets to communicate. If this is the case, no, you can't do it with Linux alone. Mainly because how would Linux know, which packet belongs to which message?

I_love_Megatron 01-12-2010 09:56 AM

I wanted the network to operate by sending a message like a string of text from one computer to another. When the next message is sent i need a configuration that will automatically send the message through the other route and when another message after this is sent the message should go through the first route again.

If like you say there is no such configuration using Linux's routing capabilities can you recomend any programs that perform such a task?


All times are GMT -5. The time now is 10:11 AM.