Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

How to enable TCP BBR2 network congestion control on Windows 11

 Generally, when we use the Linux series operating system, we will install Google's BBR network congestion control software. BBR v2 version can now be enabled on Windows 11.

BBRv2 is a model-based congestion control algorithm designed for reduced queuing, low loss, and (bounded) Reno/CUBIC coexistence. Maintains a model network path using measurements of bandwidth and RTT, and (if occurring) packet loss and/or DCTCP/L4S style ECN signaling.

BBR2 is more "fair" than BBR. In the case of delay and packet loss, its speed will be much slower than BBR, and sometimes slower than the default CUBIC, so you have to test it according to your own link. It can only be regarded as something that is better than nothing.

Windows Server now uses the CUBIC congestion control algorithm by default, which is currently the most commonly used congestion control algorithm.

This article directory

  • 1. Related Links
  • 2. Operation steps
    • 2.1. Windows 11
    • 2.2. Linux
  • 3. Restore settings

Related Links

Google BBR GitHub: https://github.com/google/bbr

Introduction to TCP BBR v2 Alpha/Preview

Steps

Windows 11

The requirement Windows 11is 22h2version and above.

1. Open powershell and right-click to run with administrator privileges

netsh int tcp set supplemental Template=Internet CongestionProvider=bbr2
netsh int tcp set supplemental Template=Datacenter CongestionProvider=bbr2
netsh int tcp set supplemental Template=Compat CongestionProvider=bbr2
netsh int tcp set supplemental Template=DatacenterCustom CongestionProvider=bbr2
netsh int tcp set supplemental Template=InternetCustom CongestionProvider=bbr2

2. Verify whether it is successfully opened

Get-NetTCPSetting | Select SettingName, CongestionProvider
Picture[1]-How to enable TCP BBR2 network congestion control on Windows 11-Ritz Miscellaneous

Linux

View the current congestion control algorithm

sysctl net.ipv4.tcp_congestion_control

If the output is sysctl net.ipv4.tcp_congestion_controlsomething like that, it means our current algorithm is CUBIC and we edited /etc/sysctl.confto change it to BBR.

net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr

save and apply

sysctl -p

Checking again we will see

net.ipv4.tcp_congestion_control = bbr

The above shows that net.ipv4.tcpit can actually be used in IPv6.

restore settings

Sometimes unexpected problems may occur after opening.

We can enter the following command in powershell to restore.

netsh int tcp set supplemental template=internet congestionprovider=CUBIC
netsh int tcp set supplemental template=internetcustom congestionprovider=CUBIC
netsh int tcp set supplemental template=Datacenter congestionprovider=CUBIC
netsh int tcp set supplemental template=Datacentercustom congestionprovider=CUBIC

Close the tutorial on weather, news and information on the task bar in the lower right corner of windows

 How to turn off the weather in the lower right corner of windows? I believe that many users who use Windows have a problem, that is, the weather information in the lower right corner of the desktop. I don’t know how to turn it off. Let’s take a look below

  Some users who frequently update the windows system find that after a certain update, there will be an additional weather icon in the lower right corner of the taskbar. But some users don't want to show this weather icon. Recently, many friends have installed the latest windows system, and many friends have updated the system after installation, and found that there is an extra weather in the lower right corner of their computer, so how to turn off this weather? This function is the latest function that Microsoft currently pushes for users. Currently, the version of Win10 21H1/20H2/2004 has received this update. Please refer to the figure below for the specific closing method.

Method 1: Close through settings

  1. First, we right-click on the blank space of the taskbar to open the menu of the taskbar.

Picture [1] - Windows lower right corner task bar weather, news, information close tutorial - Rich Miscellaneous

2. In the menu of the taskbar, we can find the column [Information and Interests], which is the weather in the lower right corner of my computer.

Picture [2]-Windows lower right corner task bar weather, news, information close tutorial-Rich Miscellaneous

 3. Hover the mouse over the [Information and Interest] column, and the setting options will appear. If the user needs to close it, just click [Close] with the left mouse button.

Picture [3]-Windows lower right corner task bar weather, news, information close tutorial-Rich Miscellaneous

Method 2: Completely close by making a bat file.

  1. First, we need to create a blank document file by right-clicking on the blank space on the desktop.

Picture [4]-Windows lower right corner task bar weather, news, information close tutorial-Rich Miscellaneous

2. Enter the following code:

@Echo Off::Win10_21H1 turn off the weather and news in the lower right corner ( default 0 , turn off 2 ) reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Feeds" "ShellFeedsTaskbarViewMode" /t REG_DWORD /d "2" /f > nul 2 > nultaskkill /im "StartMenuExperienceHost.exe" /f > nul 2 > nul
Picture [5]-Windows lower right corner task bar weather, news, information close tutorial-Rich Miscellaneous

 3. Save the document file, and change the file extension to 【.bat】.

Picture [6]-Windows lower right corner task bar weather, news, information close tutorial-Rich Miscellaneous

 4. After double-clicking to run the bat file, restart the system, and you will find that the [Information and Interest] function has completely disappeared.

Picture [7]-Windows lower right corner task bar weather, news, information close tutorial-Rich Miscellaneous

Method 3: Uninstall the update patch

  1. Open our menu and find Settings.

Picture [8] - Windows lower right corner task bar weather, news, information close tutorial - Rich Miscellaneous

2. In Settings, find [Update and Security] and click to enter.

Picture [9] - Windows lower right corner task bar weather, news, information close tutorial - Rich Miscellaneous

3. Find our [View update history] in [Windows Update] in the settings, and click to enter.

4. After entering [View Update History], click our [Uninstall Update].

5. Then, just uninstall the recently installed update patch!


Customize the display of system status and content in the Windows taskbar

Perfmonbar  is adisplay the system status on the Windows taskbar . It can fully customize all display contents, formats, and colors. It supports Windows 7 to 10 systems , but does not support Windows 11. It is not an out-of-the-box software.

Picture[1]-Customized display of system status and content in the Windows taskbar-Rich Magazine

Perfmonbar

This is a non-out-of-the-box software. Different systems require different configurations. Just edit  %APPDATA%\PerfmonBar the files in the directory  config.xml .

First, you need to get the system status parameters, open a command prompt, and enter:

typeperf -q > counters.txt

Then you get a  counters.txt  file with all the customizable content:

Picture [2]-Customize the display of system status and content in the Windows taskbar-Rich Magazine

Just   add each line in  the counters.txtconfig.xml file to the  file:

Picture [3]-Customize the display of system status and content in the Windows taskbar-Rich Magazine

For such a highly customizable tool, it really needs a certain tossing ability, after all, it can't be used out of the box?

Then, you can open the Performance Monitor Toolbar in the toolbar of the taskbar  :

Picture [4]-Customize the display of system status and content in the Windows taskbar-Rich Magazine

Finally, for this practical and slightly troublesome tool, classmates who like it must love it, and classmates who find it troublesome must scoff at it.

Obtain