cFos with 2 internet connections

Post new topic   Reply to topic

View previous topic View next topic Go down

Re: cFos with 2 internet connections

Post by leonardo2 on Fri Sep 29, 2017 4:05 pm

So it's save to assume cFosSpeed does not support 2 full featured internet connections, but just 1 internet connection and 1 or more vpn connections to private networks?

leonardo2
Guest


Back to top Go down

Re: cFos with 2 internet connections

Post by leonardo2 on Wed Sep 20, 2017 1:19 pm

It is normal for every server to have 2 or more network cards. This is for reasons of throughput, load balancing, failover and/or administration.
Why is it so hard to imagine a non-server PC with more than 1 network card?

The "purpose" of the 2 routes is very simple and I already explained it at the very beginning: "I have 2 individual internet connections". For obvious reasons I want to be able to use both of them at the same time.

If I would connect both routers to a network switch and that network switch to my PC, I would have 2 default gateways on 1 network card and no real way to use more than 1 internet connection at the same time.
Using 2 network cards with only 1 default gateway each allows me to choose for every application and connection which network card (and therefore internet connection) it should use.

There are 2 different routes to the internet. One route uses "10.0.0.1" as gateway, the other one uses "10.0.0.2" as gateway.

The problem seems to be that cFos tries to connect to "ping_dest=10.0.0.1" with a low TTL value and waits for the "Time exceeded" message which gets never sent in the first place since the target is reached before TTL is 0 ("spd sethops" won't allow values lower than 3). Using "ping_dest=<some public internet ip>" won't work either because both gateways could reach that IP and Windows would always choose the connection with the lowest metric for this?

Do I understand the problem correctly?

leonardo2
Guest


Back to top Go down

Re: cFos with 2 internet connections

Post by martin on Wed Sep 20, 2017 8:19 am


who configured that routing?

the problem is, that all Internet traffic has two routes with only a difference in the metric. Since allways the lowest metric is used, all ping_dests will go the the route with lowest metric, hence only once cFosSpeed port is open.

you need 2 different routes to the Internet for both ports to open.

what is the purpose of these 2 routes?
avatar
martin
cFos Moderator
cFos Moderator

Anzahl der Beiträge : 15
Anmeldedatum : 2017-06-23

View user profile

Back to top Go down

Re: cFos with 2 internet connections

Post by leonardo2 on Mon Sep 18, 2017 6:41 pm

I tried "spd sethops x". If "x" is 1 or 2, it won't be accepted. If "x" is >= 3, it makes no difference, cFos will only detect one network connection.

If "global.ini" contains any "ping_dest=<local ip>" entries, using "spd ports" will show no network adapters. Using "spd sethops x" with no detected network adapters will instantly crash to BSOD instead of showing an error!

leonardo2
Guest


Back to top Go down

Re: cFos with 2 internet connections

Post by leonardo2 on Mon Sep 18, 2017 4:00 pm

Code:

Network Destination        Netmask    Gateway  Interface Metric
          0.0.0.0          0.0.0.0   10.0.0.2  10.0.0.20    258
          0.0.0.0          0.0.0.0   10.0.0.1  10.0.0.10      1
        127.0.0.0        255.0.0.0   On-link   127.0.0.1    331
        127.0.0.1  255.255.255.255   On-link   127.0.0.1    331
  127.255.255.255  255.255.255.255   On-link   127.0.0.1    331
         10.0.0.0    255.255.255.0   On-link   10.0.0.20    258
         10.0.0.0    255.255.255.0   On-link   10.0.0.10    257
        10.0.0.20  255.255.255.255   On-link   10.0.0.20    258
        10.0.0.10  255.255.255.255   On-link   10.0.0.10    257
       10.0.0.255  255.255.255.255   On-link   10.0.0.20    258
       10.0.0.255  255.255.255.255   On-link   10.0.0.10    257
        224.0.0.0        240.0.0.0   On-link   127.0.0.1    331
        224.0.0.0        240.0.0.0   On-link   10.0.0.10    257
        224.0.0.0        240.0.0.0   On-link   10.0.0.20    258
  255.255.255.255  255.255.255.255   On-link   127.0.0.1    331
  255.255.255.255  255.255.255.255   On-link   10.0.0.10    257
  255.255.255.255  255.255.255.255   On-link   10.0.0.20    258

leonardo2
Guest


Back to top Go down

Re: cFos with 2 internet connections

Post by martin on Mon Sep 18, 2017 7:31 am


cFosSpeed pings the ping_dest[2] addresses and uses the routing to determine if it should do traffic shaping. Therefore your routing must be set up so that they are reachable. on the comand line, enter
route print
and post the output so we can have a look
avatar
martin
cFos Moderator
cFos Moderator

Anzahl der Beiträge : 15
Anmeldedatum : 2017-06-23

View user profile

Back to top Go down

Re: cFos with 2 internet connections

Post by leonardo2 on Fri Sep 15, 2017 10:21 am

Both connections are fully working internet connections, there is no single public IP which only one network card could reach.

The only IP which is not reachable by one network card is the default gateway of the other card (since there is no physical connection and no routing involved).

That's why I tried

[param]
ping_dest=10.0.0.1
ping_dest2=10.0.0.2

in the first place. If the application binds itself to "10.0.0.10" it's impossible to access "10.0.0.2". However if an application does not bind itself to an IP, Windows will just use the other connection.

This can be tested from the command line:

"PING 10.0.0.1" - OK
"PING 10.0.0.2" - OK
"PING -S 10.0.0.10 10.0.0.1" - OK
"PING -S 10.0.0.10 10.0.0.2" - not reachable
"PING -S 10.0.0.20 10.0.0.2" - OK
"PING -S 10.0.0.20 10.0.0.1" - not reachable

Is it possible that cFos does not bind itself to one IP before trying to ping the "ping_dest" IP?

leonardo2
Guest


Back to top Go down

Re: cFos with 2 internet connections

Post by martin on Fri Sep 15, 2017 8:14 am

you need to specify a public destination address on the Internet for both ping_dest values. One routed via network card 1, and the other routed via networtk card 2.
avatar
martin
cFos Moderator
cFos Moderator

Anzahl der Beiträge : 15
Anmeldedatum : 2017-06-23

View user profile

Back to top Go down

cFos with 2 internet connections

Post by leonardo2 on Wed Sep 13, 2017 3:48 pm

I have 2 individual internet connections, both have their own router/modem, both are connected to the same PC using 2 ethernet network cards.
network_card1: IP 10.0.0.10, default gateway 10.0.0.1, metric 1
network_card2: IP 10.0.0.20, default gateway 10.0.0.2, metric 2

If an application doesn't specify which network card to use, Windows will use the one with the lowest metric.
If an application does specify a network card, it will use that card (and the default gateway and internet connection connected to that card).

I wanted to know if cFosSpeed would work in such a configuration, so I installed a test version.

If I disable one of the network cards, cFos will work fine with the remaining one. If both network cards are activated, cFos will only ever use the one card with the lowest metric.

I read the documentation which says I should put "ping_dest=a.b.c.d" and "ping_dest2=e.f.g.h" in my global.ini in order to use more than one connection at the same time, but as soon as I do that cFos will completely stop working.

I tried

[param]
ping_dest=10.0.0.1
ping_dest2=10.0.0.2

and

[param]
ping_dest=10.0.0.10
ping_dest2=10.0.0.20

but both possibilities failed. Using an IP address from the internet seems useless, since both network cards could connect to that IP.

How to set up cFos in such an environment?

leonardo2
Guest


Back to top Go down

Re: cFos with 2 internet connections

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You can reply to topics in this forum