Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
Scenario: I have two ADSL modem that are connected to to different ISPs. Each has 256KBps Speed.
Question:Is it possible to have 512KBps speed?(I have one PC that can be host any OS)
Is any special appliance essential for doing that?
Thanks in Advance,
Ashkan.
This is called multihoming or load-balancing.
The simplest way to do this would be to buy a router with two WAN ports that supports load balancing. These are generally expensive.
Alternatively you can set up a computer with 3 network interfaces to do the routing for you.
Windows
Using regedit navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NetBT\Parameters
Create 32-bit dword value "RandomAdapter" with a value of 1
You will need to set the "metric" value of the different adapters if you find traffic is still favouring one connection over the other.
From my answer on serverfault, the
"route" command is used to set this metric. The basic syntax is;
route ADD <destination> <subnet mask> <gateway (vpn dhcp server)> <metrix> IF <interface number> -p
There's some tutorials floating around here and there.
Linux
See the answers on serverfault
RJFalconer is right, but you should know that if you do this, no single TCP connection will be able to get more than 256kBps. It's much like SMP in that manner.
You may also run into trouble with (web) applications and protocols that assume every user has a single IP address at any one time. If you can replace the two connections with a single faster one, that would be vastly preferable.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have this scenario: an IP (eg. 192.168.0.109). It's possible to make some requests from the same IP but thru different ports ? More, each port to be from a different zone. Something like a proxy, but for ports.
So, I would like to achieve something like this:
192.168.0.109:20000 -> Paris
192.168.0.109:20457 -> Lyon
192.168.0.109:21341 -> Sydney
I read something about TCP Proxy but I am not sure if this is exactly what I am looking for.
Can anyone explain me if this is achievable and if so, describe me the entire process and what would the steps be in order to have something like this running ?
Each new TCP connection will automatically be assigned a local IP and random port number from the kernel's ephemeral ports pool by default. You can optionally bind(2) the socket to the desired local IP and/or port before connect-ing to the server. You can bind() to a desired IP and let the kernel choose the port for you.
Have the client create a socket and call connect with the details of the server IP:Port. In this case, the OS automatically provides the local IP:Port to which the client binds to. This is default behavior.
If you wish, you can have the client bind to a specific IP - call bind before connect. You can leave the bound Port set to 0 so the OS will still choose a random local Port for you.
Now, when you want to make another connection, simply do the same thing as above. Nothing more is required.
So, you keep creating as many sockets as you want and making connections for them. They will automatically be from the chosen "zones" that they are bound to.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Let's say somebody invented a new protocol I would put on top of IP. Would two computers from the other ends of the world be able to communicate with it, i.e. would routers forward the frames that aren't standard TCP/UDP/ICMP?
Yes, if it is build on top of IP then it would be routable over the internet. The IP protocol defines the header and payload. The header is used for routing. So you would be able to send custom IP-based protocol data from one computer to another over the internet.
However, both computers will need custom drivers to send, receive and understand the data.
I'm not sure why you'd bother though. If you're sending custom data, you're much better off writing an application level protocol on top of tcp or udp and take advantage of the networking layer built into all computers and operating systems already. It'll be easier to write, maintain, and debug.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm working on a project for my company. I'm using a DSL connection. My IP address changes every time I restart my router. Is there a faster way to request a new IP from my ISP programatically? I've seen that RDSL services can change the IP in a few seconds, but I'm looking for a more "legal" way to do this other than RDSL.
Thank you!
Does your router have firmware you can browse to? There may be a link to reboot your router (or even release/renew your IP lease) there. You can set up a cron job to call cURL to access that URL every so often. You might also have to authenticate in order to do that, but cURL should handle that.
If you're on a system that does not have cURL or cron, you may have equivalents, but they're pretty simple programs and you should be able to find them for any popular OS.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Say i'm communicating with a computer A in a remote network .
Is it possible to know what are the hops that he is going through?
In other word, is it possible to detect what is computer A route to my computer?
I know that A might have a various routes to my computer , it just want to find a route. My whole problem begins with that fact that some networks "hides" there inside computer ( like NAT ) and just give you the gateway ip.
(I'm not talking about my route to his computer that can be easly achived by traceroute)
thanks!
The IP option Record Route asks routers along the way to include their address in the datagram so the route can be tracked. The trick is, many routers and firewalls are not keen on giving out this information and DROP packets with this option set. And, you'd have to get the remote peer to set the flag, so it would only be useful if you're in control of the software on the remote peer too.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
So, this appears, on the surface, to be a network admin (serverfault) question, but I'm looking for a lower level answer from a network hacker type.
I was pretty much oblivious to how networks actually work in real life until I started my summer internship. Then, by way of having no other option (internship is at a pretty networking-centric place and I have to put together testbeds for testing [among other things] networks), I became familiar with them. For one thing, the fact that there's no "This goes out to the internet!" port on commercial switches was kind of surprising, until you reasoned about how it works (starts out like a hub til it 'learns' where ips are in terms of the physical port, i guess?).
And after this home-crafted self-discovery (or possibly, error in thinking), I'm back at the extended stay hotel and looking at my cheap little home switch, and it has an uplink port.
Now my question to you, Network hackers (in the good way), is why?
The "uplink" port on your SOHO switch is internally crossed over. It relieves you of having to use a crossover cable to connect two switches. That is the only difference.
BTW: There isn't a "this goes out to the internet" port on SOHO switches either. You're confusing switches and routers/gateways. This confusion may be encouraged by manufacturers putting the two logically separate devices in one piece of hardware, e.g., a router with a 4-port switch. While we're at it, a wireless router w/ 4 port switch is actually logically three separate devices (router, switch, and access point).
BTW #2: A switch (well, except for layer 3 switches, which arguably are only switches to the marketing department) actually learns where MAC addresses are. It neither knows about nor cares about IP.
Uplink ports can be thought of special ports for inter-switch connections. Sometimes they may have a higher speed (1G instead of 100M for example). Or they are interchangeable (laid out as modules).
Some have multiple uplink ports (I had one with two), so you may have redundancy or multiple switched connected this way with the same logic (where is the mac address (on wthich other switch)?).