Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Modify windows routing table for two network interfaces
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?
Can you help answer these questions from other members on NexusFi?
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.
@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.
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.
Grandfathered in, or are you just a VIP? 10GB per month is going to cost me $80.
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.
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.
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...