Multi-broadband networking (5) Only use Windows for multi-broadband overlay

  The bandwidth overlay described in the previous tutorial requires the use of OpenWrt routing, which is cumbersome to implement, requires more equipment, and requires multiple broadband. If there is only one computer with multiple network cards, such as a laptop with both a wireless network card and an Ethernet card, you can directly use the Windows system to complete bandwidth superposition. The core idea of ​​this tutorial is to configure Windows gateway hops .

  The gateway hop is used to represent the link cost. The higher the cost, the less likely it is to choose. It is determined by the speed and delay of the link. If the same hop count is set for different interfaces, the probability of being selected for each interface is the same, so bandwidth superposition can be realized. However, the stability of the bandwidth superposition achieved by the gateway hop method is not strong , and even if the gateway hops are the same, the egress bandwidth may not be evenly distributed at any time. Using OpenWrt's MWAN3 load balancing implementation is a better solution. Of course, from the perspective of portability, a virtual machine can also be installed in the computer to run OpenWrt to achieve various required functions.

Table of contents

1. Preparation

2. Windows system configuration

3. Realize the result


1. Preparation

1. A computer with multiple network cards (this tutorial uses a laptop with an Ethernet card + wireless network card )

2. Multiple broadband (wired or wireless) (this tutorial uses a 200Mbps broadband + 300Mbps mobile hotspot )


Note

  If multiple network cards are connected to the same router, the total egress bandwidth is still the broadband access bandwidth of the router. If the bandwidth of the router access is small, then such superposition is invalid, and the superimposed rate is the same as directly using a There is no difference in the rate of the network card, and the superimposed loss may even cause the total bandwidth after the superposition to be smaller than that of using a network card directly. Effective overlay needs to ensure that each network card can get independent bandwidth at the same time.

  For example: the total bandwidth of Gigabit router 1 is 500Mbps. If the device has two Gigabit network cards, and both network cards are connected to this router, since the total export bandwidth is only 500Mbps, the total bandwidth after superposition will be less than 500Mbps , such superposition is invalid .

  Another example: the total bandwidth of Gigabit router 1 is 500Mbps, and the rate of mobile phone 5G is 500Mbps. If network card 1 is connected to Gigabit router 1, network card 2 (wireless network card) is connected to the 5G network through the hotspot of the mobile phone. Then both network cards can obtain independent 500Mbps bandwidth, and the total bandwidth after superposition will be close to 1000Mbps, and such superposition is effective .


2. Windows system configuration

1. Complete the network access of each network card.

2. In Explorer, open the address: "Control Panel\Network and Internet\Network Connections".

3. Configure the IPv4 gateway hop properties of each network card to make the gateway hops of all network cards consistent, as shown in Figure 1.

  For example: Right-click on the "Ethernet" icon, click "Properties->Internet Protocol Version 4 (TCP/IPv4)->Properties->Advanced". Uncheck the "Automatic Metrics" option and enter a gateway hop such as 1. Save in sequence after configuration.

  Do the same again on the WLAN icon, configuring its gateway hop to 1 as well.

Figure 1 Gateway hop settings

4. Check whether the gateway hops are consistent: In cmd, enter the command route print to check whether the hops of each interface gateway are consistent. The interface gateway can be viewed in the corresponding network adapter properties.

Figure 2 Gateway hop check

3. Realize the result

1. Test the speed of the "Ethernet" interface (broadband access) separately, as shown in Figure 3.

Figure 3 Ethernet speed measurement

2. Test the speed of the "WLAN" interface (mobile phone 5G mobile data access) separately, as shown in Figure 4.

Figure 4 WLAN speed measurement

3. Test the superimposed speed, as shown in Figure 5.

Figure 5 Overlay speed measurement

4. Xunlei download speed, as shown in Figure 6.

Figure 6 Thunder download speed

Note

  The bandwidth superposition achieved by load balancing is only applicable to multi-threaded tasks, such as various p2p download services, etc. For single-threaded browser downloads, bandwidth superposition is also not available. In addition, for HTTPS applications such as online banking, multi-bandwidth load balancing can easily lead to the problem of different source IPs, making the server determine that it is a risky link and block it. These shortcomings are consistent with OpenWrt's use of the MWAN3 overlay.

Guess you like

Origin blog.csdn.net/Cx2008Lxl/article/details/127033433