Skip to content

TCP

3 posts with the tag “TCP”

Windows 10 uses WIFI and wired network card at the same timeWhen the wired network card and the wireless network card are connected to two different networks at the same time, Windows will automatically disconnect the wireless network by default and use the wired network connection.

Section titled “1. Set hop count- What are hops> - Metrics is a value assigned to an IP route for a particular network interface that identifies the cost associated with using that route. For example, hop count can be calculated based on link speed, hop count, or time delay. Automatic metric counting is a new feature in Windows that automatically configures the metric count for local routing based on link speed. Automatic metric counting is enabled by default, but can be manually configured to give it a specific metric number.> - The Automatic Hop Counting feature is useful when the routing table contains multiple routes for the same destination. For example, if your computer has a 10 megabit (Mb) network interface and a 100 Mb network interface, and the computer has a default gateway configured on both network interfaces, the Automatic Hop Counting feature assigns a higher hop count to the slower network interface. This feature forces all traffic to the Internet, for example, to use the fastest network interface available.”

For details, please refer to:Instructions on the “Automatic Hop Counting” feature in IPv4 routing

Section titled “2. Setup steps### 1. Select the appropriate hop value based on the link above:”

2. Open Control Panel\Network and Internet\Network Connections and set the two network interfaces in sequence.

Section titled “2. Open Control Panel\Network and Internet\Network Connections and set the two network interfaces in sequence.”

[2] https://support.microsoft.com/zh-cn/help/299540/an-explanation-of-the-automatic-metric-feature-for-ipv4-routes

Common `netstat` Parameters

netstat -ntlpa

  • -a: show all sockets. Listening sockets are not shown by default.
  • -t: show TCP sockets only.
  • -u: show UDP sockets only.
  • -n: do not resolve names. Show numeric addresses and ports.
  • -l: show listening services only.
  • -p: show the program name associated with each connection.
  • -r: show routing information and the routing table.
  • -e: show extended information, such as UID.
  • -s: show statistics for each protocol.
  • -c: rerun the command at a fixed interval.

[1]. https://blog.csdn.net/qq_42991025/article/details/83547525

[2]. OSI模型

[3]. Notes-on-Podman-Network

Common `tcpdump` Parameters

sudo tcpdump -n -t -S -i enp0s3 port 80
  • -i: specify the capture interface, such as enp0s3.
  • -n: do not resolve domain names.
  • -nn: do not resolve domain names or ports.
  • -t: do not print timestamps.
  • -S: use absolute sequence numbers. Without -S, relative sequence numbers are used.
  • -A: print packets as ASCII strings.
  • -X: print packets as both hexadecimal and ASCII strings.
  • -w: write packets to a file.
  • port: specify the listening port, such as 80.
  • host: specify the host to capture.

[1]. https://www.cnblogs.com/onesea/p/13053697.html

[2]. https://zhuanlan.zhihu.com/p/482617730

[3]. OSI模型