Method for sending messages through alternate routes to same destination, help!
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
Last edited by I_love_Megatron; 01-11-2010 at 11:15 AM.
Reason: more detail added
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.
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143
Rep:
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 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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.