All of lore.kernel.org
 help / color / mirror / Atom feed
* setup network priority then routing to multiple providers
@ 2015-12-16  9:43 SteamedFish
  2015-12-17  1:23 ` Horace
  2015-12-17  8:43 ` Marco Gaiarin
  0 siblings, 2 replies; 3+ messages in thread
From: SteamedFish @ 2015-12-16  9:43 UTC (permalink / raw)
  To: lartc

I have two providers similar to http://lartc.org/howto/lartc.rpdb.multiple-links.html

                                                                 ________
                                          +------------+        /
                                          |            |       |
                            +-------------+ Provider 1 +-------
        __                  |             |            |     /
    ___/  \_         +------+-------+     +------------+    |
  _/        \__      |     if1      |                      /
 /             \     |              |                      |
| Local network -----+ Linux router |                      |     Internet
 \_           __/    |              |                      |
   \__     __/       |     if2      |                      \
      \___/          +------+-------+     +------------+    |
                            |             |            |     \
                            +-------------+ Provider 2 +-------
                                          |            |       |
                                          +------------+        \________


The two providers provide different quality of network.

* Provider 1
    * low latency
    * low packet loss rate
    * small bandwidth (100Mbps)
    * s\x10ometimes go offline for a couple of minutes
* Provider 2
    * higher latency
    * higher packet loss rate
    * big bandwidth (1000Mbps)
    * never go offline


Our network usage is bigger than 100Mbps during the day and less than 100Mbps during the night.

My goal is the following:

* split the network flows into different priorities. ssh & telnet traffic most high, web traffic priority 2nd high, etc… BT traffic most low.
* put as much higher priority traffic as possible (up to 100Mbps) to provider 1 and the rest of the traffic to provider 2
* If provider 1 get unavailable, switch all the traffic to provider 2. When provider 1 gets back online, switch the traffic back.

I don’t have a clue how to set this up.

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setup network priority then routing to multiple providers
  2015-12-16  9:43 setup network priority then routing to multiple providers SteamedFish
@ 2015-12-17  1:23 ` Horace
  2015-12-17  8:43 ` Marco Gaiarin
  1 sibling, 0 replies; 3+ messages in thread
From: Horace @ 2015-12-17  1:23 UTC (permalink / raw)
  To: lartc

----- Original Message -----
From: "SteamedFish" <steamedfish@njuopen.com>
To: "lartc" <lartc@vger.kernel.org>
Sent: Wednesday, December 16, 2015 5:43:25 PM
Subject: setup network priority then routing to multiple providers

I have two providers similar to http://lartc.org/howto/lartc.rpdb.multiple-links.html

                                                                 ________
                                          +------------+        /
                                          |            |       |
                            +-------------+ Provider 1 +-------
        __                  |             |            |     /
    ___/  \_         +------+-------+     +------------+    |
  _/        \__      |     if1      |                      /
 /             \     |              |                      |
| Local network -----+ Linux router |                      |     Internet
 \_           __/    |              |                      |
   \__     __/       |     if2      |                      \
      \___/          +------+-------+     +------------+    |
                            |             |            |     \
                            +-------------+ Provider 2 +-------
                                          |            |       |
                                          +------------+        \________


The two providers provide different quality of network.

* Provider 1
    * low latency
    * low packet loss rate
    * small bandwidth (100Mbps)
    * sometimes go offline for a couple of minutes
* Provider 2
    * higher latency
    * higher packet loss rate
    * big bandwidth (1000Mbps)
    * never go offline


Our network usage is bigger than 100Mbps during the day and less than 100Mbps during the night.

My goal is the following:

* split the network flows into different priorities. ssh & telnet traffic most high, web traffic priority 2nd high, etc… BT traffic most low.
* put as much higher priority traffic as possible (up to 100Mbps) to provider 1 and the rest of the traffic to provider 2
* If provider 1 get unavailable, switch all the traffic to provider 2. When provider 1 gets back online, switch the traffic back.

I don’t have a clue how to set this up.

Thanks.--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


============================

What you need is a load sharing device that can do spill-over load sharing. I don't know any open standard protocols can satisfy your needs. To the best of my knowledge, you can use OSPF to do equal load sharing between two routers, but obviously this is not what you want to do. Many of the enterprise firewalls/routers does have the spill-over wan load balancing feature (dell sonicwall/watchguard) which should be able to do what you want to do.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setup network priority then routing to multiple providers
  2015-12-16  9:43 setup network priority then routing to multiple providers SteamedFish
  2015-12-17  1:23 ` Horace
@ 2015-12-17  8:43 ` Marco Gaiarin
  1 sibling, 0 replies; 3+ messages in thread
From: Marco Gaiarin @ 2015-12-17  8:43 UTC (permalink / raw)
  To: lartc

Mandi! SteamedFish
  In chel di` si favelave...

> I don’t have a clue how to set this up.

You have to mix two things (really, three):

1) http://lartc.org/howto/lartc.rpdb.multiple-links.html, as you
 correctly say.

2) connmark save/restore, eg the ability to ''save'' iptables marks
 between connection, and obviously build your rules of iptables to mark
packets. My hint: use a mask to distinguish marks used for routing from
other marks if you use just use that.

3) mark-based routing, eg using rules like:

	ip rule add fwmark $MARK/$MASK table $NAME

Note that this is a ''route based balancing'', not a real packet based
balancing, but works without needing the ISP/operator help.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                    http://www.sv.lnf.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
    http://www.lanostrafamiglia.it/25/index.php/component/k2/item/123
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-17  8:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-16  9:43 setup network priority then routing to multiple providers SteamedFish
2015-12-17  1:23 ` Horace
2015-12-17  8:43 ` Marco Gaiarin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.