Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dual WAN Routers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    Hi Big D,

    Thank you for your post.

    As best I can tell, this should work. However, I do not have the ability to test this scenario on my end.
    KyleNinjaTrader Customer Service

    Comment


      #3
      Does anyone else out there know the answer to this? Ray? Dierk?

      Has anyone tried a dual WAN router with Ninja?

      Anyone know if having a different IP address is important or not from the broker's perspective? ie ZenFire.

      Comment


        #4
        Hi Big D,

        Thank you for your reply..

        Not sure if the IP change would prevent you from reconnecting from the broker's side. You would need to check with your broker.
        KyleNinjaTrader Customer Service

        Comment


          #5
          I found this post:



          It's been 2.5 years since this post. Surely, someone at Ninja can get a dual-WAN and test this.

          Any users out there have any experience?

          Comment


            #6
            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


              #7
              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


                #8
                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


                  #9
                  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


                    #10
                    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


                      #11
                      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


                        #12
                        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


                          #13
                          Originally posted by Big D View Post
                          ctrlbrk:

                          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. ....
                          Big D..
                          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


                            #14
                            Thanks for all the great answers. The Ninja community can now have confidence in using Ninja Trader with dual-Wan routers.

                            Comment


                              #15
                              Originally posted by Big D View Post
                              Thanks for all the great answers. The Ninja community can now have confidence in using Ninja Trader with dual-Wan routers.
                              I appreciate the input from the network experts in this thread, but has anyone here actually experienced an event where your dual-wan router failed over during a live trade, and then had that trade finish executing as expected without any problems (e.g. not having to resubmit stop and profit targets)? I'm especially interested about OCO orders, since they seem more vulnerable to disruption. Thnx.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Rapine Heihei, Today, 08:25 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post Rapine Heihei  
                              Started by Rapine Heihei, Today, 08:19 PM
                              0 responses
                              2 views
                              0 likes
                              Last Post Rapine Heihei  
                              Started by f.saeidi, Today, 08:01 PM
                              1 response
                              4 views
                              0 likes
                              Last Post NinjaTrader_Manfred  
                              Started by Rapine Heihei, Today, 07:51 PM
                              0 responses
                              5 views
                              0 likes
                              Last Post Rapine Heihei  
                              Started by frslvr, 04-11-2024, 07:26 AM
                              5 responses
                              96 views
                              1 like
                              Last Post caryc123  
                              Working...
                              X