NexusFi: Find Your Edge


Home Menu

 





Modify windows routing table for two network interfaces


Discussion in Tech Support

Updated
      Top Posters
    1. looks_one josh with 4 posts (0 thanks)
    2. looks_two sam028 with 2 posts (2 thanks)
    3. looks_3 Big Mike with 2 posts (1 thanks)
    4. looks_4 Shentoo with 1 posts (0 thanks)
      Best Posters
    1. looks_one init77 with 3 thanks per post
    2. looks_two sam028 with 1 thanks per post
    3. looks_3 MXASJ with 1 thanks per post
    4. looks_4 Big Mike with 0.5 thanks per post
    1. trending_up 6,162 views
    2. thumb_up 7 thanks given
    3. group 4 followers
    1. forum 9 posts
    2. attach_file 0 attachments




 
Search this Thread

Modify windows routing table for two network interfaces

  #1 (permalink)
 
josh's Avatar
 josh 
Georgia, US
Legendary Market Wizard
 
Experience: None
Platform: SC
Broker: Denali+Rithmic
Trading: ES, NQ, YM
Posts: 6,245 since Jan 2011
Thanks Given: 6,781
Thanks Received: 18,250

After enough attempts at getting my cable internet service to be usable (it degraded over the last week to anywhere from 5% to 25% packets dropping), multiple visits from technicians, and finally giving up, I decided to test Verizon's 4G LTE network using a USB modem. While it has not been stress tested yet (hopefully will get a small burst or two this afternoon in this low holiday traffic), it is not dropping packets, and while the pings are not quite what I'd like them to be (about 120ms to IQFeed's server), the latency is still much better than when multiple packets are dropped, so I am optimistic about this as an actual usable solution for day-to-day operations. I also plan to purchase an external antenna to see if I can get a stronger signal.

My question is this: due to my 10GB data limit per month on the LTE network, I would like to route all IQFeed traffic through this network, as this is where the latency is really visible. Possibly also the TT data stream from my broker too. But ALL other network traffic should go through the cable modem connection. So, how do I modify the windows routing table to reflect this?

Say I have an IP address for IQFeed (66.112.148.111) .. would it be something like this:

route ADD 66.112.148.111 MASK 255.255.255.0 **GATEWAY??** IF 22

Should this add a route to all 66.112.148.ZZZ through interface number 22 (my verizon card) ? .. I'm not sure what the gateway should be though. And I'm not sure if the above is correct, it's a little fuzzy because it's been a few years since I attempted anything like this. Am I close?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
Quant vue
Trading Reviews and Vendors
 
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,460 since Jun 2009
Thanks Given: 33,234
Thanks Received: 101,655

Does the USB modem show up in Networking Connections section? If so, right click on it and hit status, then details.



It will show you the gateway.

I have a similar setup to you, only I have unlimited data with Verizon 4G LTE. I use the D-Link connection you see above as my backup, so if my cable goes out I can just use my phone to get back on. But for me, it is only a backup, and I don't have to worry about routing tables since it is unlimited.

If the cable techs came out and found no SnR issues, then you should check between your PC and the cable modem. Change the ethernet port it is plugged into on your desktop (assuming you have two), and use a different cable. If there is any switch between you and the cable modem, bypass it, and see if the packet loss still happens. Last, don't use your computer at all. Turn it off, in fact. Make sure all computers are turned off in the household, and then use a notebook and test your cable modem connection. The packet loss could be happening if someone in the household (kid) is using a file sharing service and uploading @ your max capped upload speed, the ISP will then throttle you and they sometimes accomplish this through packet loss.

One more thing, do you get packet loss everywhere? Or only to certain destinations? You might leave the modem off for whatever the DHCP lease time is from your provider (probably no longer than 24 hours), and it will get a new IP and new subnet, new gateway from your ISP and that might be enough to solve the packet loss problem if all else fails.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


@ josh, the:
route ADD 66.112.148.111 MASK 255.255.255.0 **GATEWAY??** IF 22
is maybe correct, but we usually add a network, not a single host (so it has to be 66.112.148.0).
You will find your 4G default router if you disable your cable connection, with a simple "ipconfig" in a CMD window.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

You are pretty much there. ROUTE ADD <HOST> <SUBNET MASK> <GATEWAY> -p is the command to add a static route. The -p switch makes it persistant i.e. if you reboot your computer it will still be there. ROUTE PRINT will show you all temporary and persistant routes, ROUTE DELETE <HOST> <SUBNET MASK> <GATEWAY> will delete it.

Google "add static route windows" and you will find a lot of material.

Reply With Quote
Thanked by:
  #5 (permalink)
 
josh's Avatar
 josh 
Georgia, US
Legendary Market Wizard
 
Experience: None
Platform: SC
Broker: Denali+Rithmic
Trading: ES, NQ, YM
Posts: 6,245 since Jan 2011
Thanks Given: 6,781
Thanks Received: 18,250


Big Mike View Post
I have a similar setup to you, only I have unlimited data with Verizon 4G LTE.

Grandfathered in, or are you just a VIP? 10GB per month is going to cost me $80.



Big Mike View Post
If the cable techs came out and found no SnR issues, then you should check between your PC and the cable modem. Change the ethernet port it is plugged into on your desktop (assuming you have two), and use a different cable. If there is any switch between you and the cable modem, bypass it, and see if the packet loss still happens. Last, don't use your computer at all. Turn it off, in fact. Make sure all computers are turned off in the household, and then use a notebook and test your cable modem connection. The packet loss could be happening if someone in the household (kid) is using a file sharing service and uploading @ your max capped upload speed, the ISP will then throttle you and they sometimes accomplish this through packet loss.

One more thing, do you get packet loss everywhere? Or only to certain destinations? You might leave the modem off for whatever the DHCP lease time is from your provider (probably no longer than 24 hours), and it will get a new IP and new subnet, new gateway from your ISP and that might be enough to solve the packet loss problem if all else fails.

Mike

Mike, thanks very much for the very helpful tips. I have tried a different computer (notebook), with a different ethernet cable, plugged into a brand new modem (bought one), no router involved, using a different coax cable, plugged into a different coax port. I redid all this just now to verify. Same problem as before. 12-20% packets dropped. I'm pinging many different hosts, from google to IQFeed. I have verified that the problem does not lie within my walls. I just called customer support again and she said she was going to send a "senior tech" to help with the problem. Tomorrow I will be more aggressive to insist that the problem be isolated. She pinged my modem from her end and 40% of packets dropped. Also, I have verified that on multiple pings I have a different IP, and considering these types of issues have been going on for months, I doubt that it's a simple routing issue, at least one that can be fixed by waiting for a new lease on IP or the like.

I did not think about throttling, but the kids here have really no internet usage, and I do monitor network traffic--I don't download anything really, just the daily trading feed. I monitor my wireless clients and do not even broadcast my SSID, so I know that no one is hijacking my router. Based on some simple usage statistics, the daily downstream is probably less than a gig, and same for up. Considering the stuff people download, I'd guess I'm near the middle of the road for usage. I do more than surf and email (trading), but I don't really do much else that is bandwidth-intensive. I'd guess I'm using less than 30GB a month, hardly grounds for throttling, considering this is cable internet and not a wireless or satellite service.

Hopefully tomorrow by noon I will have more concrete answers... thanks for the good tips. And after reaching the point of apathy with getting this handled, thank you for lighting a fire under my butt with your suggestions and reminding me that I pay for the service and should get what I pay for.

Started this thread Reply With Quote
  #6 (permalink)
 
josh's Avatar
 josh 
Georgia, US
Legendary Market Wizard
 
Experience: None
Platform: SC
Broker: Denali+Rithmic
Trading: ES, NQ, YM
Posts: 6,245 since Jan 2011
Thanks Given: 6,781
Thanks Received: 18,250

Thanks sam and MXASJ -- since the LTE device is assigned a dynamic IP each time, won't the gateway also be dynamic and thus change each time I connect? I looked at several times I have connected it, and each time the gateway is different. Could it be that I have to add the rule each time I connect? That would be a major headache...

Started this thread Reply With Quote
  #7 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


josh View Post
Thanks sam and MXASJ -- since the LTE device is assigned a dynamic IP each time, won't the gateway also be dynamic and thus change each time I connect? I looked at several times I have connected it, and each time the gateway is different. Could it be that I have to add the rule each time I connect? That would be a major headache...

You could create a small script, .bat or in Perl (easier) which is checking is the IP/router of your LTE, and then remove the previous statuc route, and add a new one.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #8 (permalink)
init77
Switzerland
 
Posts: 12 since Dec 2011
Thanks Given: 5
Thanks Received: 7

The most comfortable and probably the easiest solution would be to make a batch script that uses ForceBindIP. You can find that tool by googling for "ForceBindIP - Bind any Windows application to a specific interface" -> the tool can be found under the r1ch.net domain (since I'm not yet able to post urls ). You probably have to run the tool also as Administrator or diasable UAC...

My advice is to create a batch file to run it:
store a text file as something like bind-interface-nt7.bat and write something like
@echo off
ForceBindIP.exe {4FA65F75-7A5F-4BCA-A3A2-59824B2F5CA0} c:\path\to\ninja-trader.exe

the GUID of the network card {4FA65F75-7A5F-4BCA-A3A2-59824B2F5CA0} can be found trough regedit under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces -> just compare the ip assigned to your usb wan interface to find the right GUID, by using the GUID, you do not have to care about the dynamic IP assigned. Then start the batch with right click -> run as administrator. (btw. if you do not install the tool to the system32 folder, you have to specify the absolute path to ForceBindIP.exe -> like c:\tools\ForceBindIP.exe and not only ForceBindIP.exe)

hope that solves your problem further details about the tool are on its homepage...

Reply With Quote
Thanked by:
  #9 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,460 since Jun 2009
Thanks Given: 33,234
Thanks Received: 101,655

@init77, nice find.

Site:
ForceBindIP - Bind any Windows application to a specific interface

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #10 (permalink)
 
josh's Avatar
 josh 
Georgia, US
Legendary Market Wizard
 
Experience: None
Platform: SC
Broker: Denali+Rithmic
Trading: ES, NQ, YM
Posts: 6,245 since Jan 2011
Thanks Given: 6,781
Thanks Received: 18,250


Thanks sam and init!

Started this thread Reply With Quote




Last Updated on December 28, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts