This seems like a slightly different scenario than having only one interent connection going down for 5 minutes and then coming back online. In this case, Ninja Trader will reconnect just fine. But the IP address is the same.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Dual WAN Routers
Collapse
X
-
Dual WAN Routers
Will Ninja Trader be able to seamlessly reconnect using a Zen-Fire data feed, if I have a dual WAN router and the primary (eg. cable) goes down and the secondary (eg DSL) takes over? Taking into account that each connection, cable and DSL, have different IP addresses.
This seems like a slightly different scenario than having only one interent connection going down for 5 minutes and then coming back online. In this case, Ninja Trader will reconnect just fine. But the IP address is the same.Tags: None
-
I'm wanting to do the same thing Big D. Infact I just logged on to post this question. I did not think of it being an issue by changing IP addresses, thank you from bringing that to my attention. I currently have a DSL modem and it does occasionally require a reboot, so I'm thinking about getting a cable modem regardless. I would still like the DSL as a secondary.
A down connection could cost you a ton of money.
I think I'll post this question to my broker. BTW I use Zen-Fire as well. I will let you know what I find.
Comment
-
The issue has to do with a secure connection. A secure connection cannot handle a change in the IP address mid-connection. I assume ZenFire is a secure connection to the broker. It is possible, though not likely, that ZenFire can automatically deal with a different IP address. I have an outstanding question to Pat at Mirus/Dorman. Will let you know the answer when I get it.
Comment
-
I own a TP-Link dual WAN router.
What will happen is you will get disconnected and then it will automatically reconnect.
Ninja has no idea you have a dual WAN router. It just knows the connection dropped, it auto-retries to connect again since you didn't manually disconnect via File -> Disconnect, and it will succeed because your router will failover to the working port.
Mike
Comment
-
Basically what I am trying to say is Ninja doesn't care. I have Zen Fire (Amp), it doesn't care either about your IP address.
If you have a single-WAN router, pull the internet cable and ninja "works" after you plug the cable back in, the same thing will be true of a properly configured dual-WAN router.
Mike
Comment
-
ctrlbrk:
I've followed your other posts and appreciate your expertise on computer matters. Because of you, I now have VMWare virtual computers and multiple instances of Ninja on the same computer.
What were to happen if the failover occured so fast that Ninja didn't have time to disconnect? Meaning one moment it was connected to the primary and the next second it was connected to the secondary (on the dual-Wan). Ninja wouldn't know that the internet was down. It may not know to disconnect and then reconnect. Is this scenario possible? Or if the connection changes from primary to secondary, it will lose the ZenFire connection, because the secure ZenFire connection will have been broken, and disconnect and reconnect automatically? I can see Ninja and a dual-WAN working correctly as long as Ninja tries the reconnect logic, but failing and getting stuck if it can't somehow sense that it has been disconnected.
On the TP-Link dual-WAN. Does that unit handle load-balancing and failover at the same time? How fast does it failover when you lose the primary?
Comment
-
Yes, the TP-Link does load balancing and failover at the same time.
With regards to WAN 1 dropping and WAN 2 resuming "too fast" in which Ninja did not know it dropped, that cannot happen, at least not with a low-end router like mine (TP-Link TLR480-T+).
It is not because it can't be fast enough, it is because the TCP connection _will_ be forced closed, at which point Ninja will attempt to open a new one.
The failover times and load balancing is all configurable. You can also do QoS and priority filtering. For instance, I force my web server to prioritize over WAN 1. I force torrent traffic to prioritize over WAN 2. I have reasons for this. All other traffic, I allow it to load balance based on which WAN port is fastest at that moment (how much load it is under).
It constantly recalibrates. You can also have it actively perform a task to verify a WAN port is really alive. (ie, your Comcast cable-modem may still show a "link" to the WAN router, but your packets are being dropped on their network and not getting beyond your local hub ---- it can detect that, and take that WAN port off-line).
Here are some screens of the interface. English is definitely not their first language, but a lot of trial and error will get you were you need to be. For $100 bucks you can't go wrong, especially if you are a geek like me.
BTW, thanks for the kind words
Mike
Comment
-
Also should point out, that download a file from FTP will not load balance across two WAN ports. What you do is use something like DownThemAll, or open multiple FTP sessions (using this as an example) and TCP connection 1 will go over WAN 1 (or whatever is fastest), then TCP connection 2 will go over WAN 2 (or whatever is fastest).
So don't think a single TCP connection will load balance across both ports. Instead, it will take one TCP connection at a time and load balance them.
Mike
Comment
-
Originally posted by Big D View Postctrlbrk:
What were to happen if the failover occured so fast that Ninja didn't have time to disconnect? Meaning one moment it was connected to the primary and the next second it was connected to the secondary (on the dual-Wan). Ninja wouldn't know that the internet was down. It may not know to disconnect and then reconnect. ....
I've been a network engineer for many years in another life, so allow me to try and answer.
A TCP session requires the IP addresses to be the same.
The connection will fail and be 'torn down' at the TCP level if your IP address changes. This is beyond Ninja or Zen .. it's basic TCP/IP.
So in your quick flip scenario .. your existing connection will eventually timeout when the 'flip' happens, and Ninja would/should be notified of this by Windows.
When it restarts it's connection to Zen, it will be a brand new session..
How quickly the reconnect happens depends on a lot of things like the router, the TCP code in windows and at the broker servers .. etc.
Having said this.. there are commercial grade devices that can present a common single IP address when using two or more ISP's. But they aimed at enterprise or SMB IT departments, and have a price tag in the 1000's to match.
Comment
-
Originally posted by Big D View PostThanks for all the great answers. The Ninja community can now have confidence in using Ninja Trader with dual-Wan routers.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Rapine Heihei, Today, 08:25 PM
|
0 responses
3 views
0 likes
|
Last Post Today, 08:25 PM | ||
Started by Rapine Heihei, Today, 08:19 PM
|
0 responses
2 views
0 likes
|
Last Post Today, 08:19 PM | ||
Started by f.saeidi, Today, 08:01 PM
|
1 response
4 views
0 likes
|
Last Post Today, 08:17 PM | ||
Change colour of Stop market and limit orders to red and green via indicator script
by Rapine Heihei
Started by Rapine Heihei, Today, 07:51 PM
|
0 responses
5 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by frslvr, 04-11-2024, 07:26 AM
|
5 responses
96 views
1 like
|
Last Post
by caryc123
Today, 07:47 PM
|
Comment