a confuse that half flow/bandwidth has been wasted by unknow reason #293

Closed
opened 2025-12-29 01:26:16 +01:00 by adam · 1 comment
Owner

Originally created by @yockrain on GitHub (Jul 16, 2022).

Issue description
I found some confused situation when I copy a file from one node to another node with "relay" mode. let us show the situation of my headscale/tailscale config.
when I copy a big file from "nb-route"(there is a window server in same LAN) to "mklaptop", we just only can get a half flow of DERP Server bandwidth.
it is a sketchy description
[mklaptop] 15-25Mbit/s <--> 40-60Mbit/s [DERP Server] 40-60Mbit/s <--> 20-30Mbit/s [nb-router] 15-25Mbit/s <--> 15-25Mbit/s [Windows Server]
I am sure only one user(it is me) use DERP qkc at this moment.
Snipaste_2022-07-16_15-48-10

I want to confirm that it is a normal situation or some mistake cause by a wrong config.
thanks.

PS: I hide some privacy with ** --hide-- **

To Reproduce
Headscale Server

root@VM-12-11-ubuntu:~# headscale version
v0.16.0-beta6
root@VM-12-11-ubuntu:~# headscale nodes list -t
ID | Name         | NodeKey | Namespace | IP addresses | Ephemeral | Last seen           | Online  | Expired | ForcedTags         | InvalidTags | ValidTags
13 | M**--hide--**er   | [Ik5aC] | mca       | 10.10.0.5,   | false     | 2022-07-16 06:43:49 | online  | no      | tag:t**--hide--**a-core      |             |
14 | m**--hide--**y    | [gC59W] | mca       | 10.10.0.7,   | false     | 2022-07-15 06:42:56 | offline | no      | tag:t**--hide--**a-node      |             |
15 | mklaptop     | [5vkaI] | admin     | 10.10.0.3,   | false     | 2022-07-16 06:43:50 | online  | no      | tag:tadmin         |             |
16 | mkhome       | [XJYjk] | admin     | 10.10.0.1,   | false     | 2022-07-16 06:43:19 | online  | no      | tag:tadmin         |             |
17 | nb-router     | [mNVdP] | newbeeit  | 10.10.0.2,   | false     | 2022-07-16 06:43:43 | online  | no      | tag:tn**--hide--**t-core |             |
18 | n**--hide--**ng | [Y0ss4] | newbeeit  | 10.10.0.6,   | false     | 2022-07-14 07:58:38 | offline | no      | tag:t**--hide--**t-node |             |
root@VM-12-11-ubuntu:~#

DERP Server named "qkc"

[root@www ~]# docker ps
CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS                                                                                           NAMES
ee**--hide--**7ee        y**--hide--**derper   "/bin/sh -c 'bash ..."   36 hours ago        Up 28 hours         0.0.0.0:**--hide--**0->80/tcp, 0.0.0.0:**--hide--**70->443/tcp, 0.0.0.0:**--hide--**78->**--hide--**78/udp   derper
[root@www ~]#

Node named "mklatop"

PS C:\Windows\system32> tailscale version
1.26.0
  tailscale commit: e635c1a0**--hide--**e775
  other commit: 63b4**--hide--**88d4
  go version: go1.18.3-ts04d67b90d8
PS C:\Windows\system32> tailscale netcheck

Report:
        * UDP: false
        * IPv4: (no addr found)
        * IPv6: no
        * MappingVariesByDestIP:
        * HairPinning:
        * PortMapping:
        * Nearest DERP: QKCloud
        * DERP latency:
                - qkc: 13.9ms  (QKCloud)
                - iplc: 20ms    (IPLC)
                - sucloud: 21.6ms  (SCL)
PS C:\Windows\system32> tailscale status
# Health check:
#     - not in map poll

10.10.0.3       mklaptop             admin        windows offline
                m**--hide--**er           mca          linux   active; relay "iplc", tx 5532 rx 5324
                m**--hide--**y            mca          windows offline
                mkhome               admin        linux   active; direct 192.168.201.237:41641, tx 112652 rx 125368
                n**--hide--**ng-fobqu7lf newbeeit     windows offline
                nb-router            newbeeit     linux   active; relay "qkc", tx 18405244 rx 539783272
PS C:\Windows\system32> tailscale ping 10.10.0.2
pong from nb-router (10.10.0.2) via DERP(qkc) in 26ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 30ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 25ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 28ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 26ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 28ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 28ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 27ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 27ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 28ms
direct connection not established
PS C:\Windows\system32> tailscale ping 192.168.202.252
pong from nb-router (10.10.0.2) via DERP(qkc) in 29ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 26ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 24ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 25ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 28ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 26ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 25ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 27ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 25ms
pong from nb-router (10.10.0.2) via DERP(qkc) in 33ms
direct connection not established
PS C:\Windows\system32> tracert -d 192.168.202.252

通过最多 30 个跃点跟踪到 192.168.202.252 的路由

  1    25 ms    25 ms    25 ms  10.10.0.2
  2    26 ms    25 ms    25 ms  192.168.202.252

跟踪完成。
PS C:\Windows\system32>

Node named "nb-router"

root@nbwan:~# tailscale version
1.22.2
  tailscale commit: 60b67**--hide--**4e
  other commit: ecc5**--hide--**ef994
  go version: go1.17.8-tsdce70b6d32
root@nbwan:~# tailscale netcheck

Report:
        * UDP: true
        * IPv4: yes, 114.91.16.60:33376
        * IPv6: no
        * MappingVariesByDestIP: false
        * HairPinning: false
        * PortMapping:
        * Nearest DERP: QKCloud
        * DERP latency:
                - qkc: 9.5ms   (QKCloud)
                - iplc: 16.2ms  (IPLC)
                - sucloud: 19.6ms  (SCL)
root@nbwan:~# tailscale status
10.10.0.2       nb-router            newbeeit     linux   -
                m**--hide--**er           mca          linux   active; relay "qkc", tx 350156 rx 496236
                m**--hide--**y            mca          windows offline
                mkhome               admin        linux   active; relay "qkc", tx 346813504 rx 344839064
                mklaptop             admin        windows active; relay "qkc", tx 738465124 rx 25201428
                nb**--hide--**ng-fobqu7lf newbeeit     windows offline
root@nbwan:~# tailscale ping 10.10.0.3
pong from mklaptop (10.10.0.3) via DERP(qkc) in 24ms
pong from mklaptop (10.10.0.3) via DERP(qkc) in 24ms
pong from mklaptop (10.10.0.3) via DERP(qkc) in 24ms
pong from mklaptop (10.10.0.3) via DERP(qkc) in 25ms
pong from mklaptop (10.10.0.3) via DERP(qkc) in 26ms
pong from mklaptop (10.10.0.3) via DERP(qkc) in 25ms
pong from mklaptop (10.10.0.3) via DERP(qkc) in 25ms
pong from mklaptop (10.10.0.3) via DERP(qkc) in 26ms
pong from mklaptop (10.10.0.3) via DERP(qkc) in 25ms
pong from mklaptop (10.10.0.3) via DERP(qkc) in 25ms
direct connection not established
root@nbwan:~#

the bandwidth of mklaptop
Snipaste_2022-07-16_15-03-18

the bandwidth of DERP Server "qkc"
Snipaste_2022-07-16_15-01-57

the bandwidth of node named "nb-route"
Snipaste_2022-07-16_15-16-54

the bandwidth of File Server 192.168.202.252
Snipaste_2022-07-16_15-19-02

Context info

Originally created by @yockrain on GitHub (Jul 16, 2022). <!-- Headscale is a multinational community across the globe. Our common language is English. Please consider raising the issue in this language. --> <!-- If you have a question, please consider using our Discord for asking questions --> **Issue description** I found some confused situation when I copy a file from one node to another node with "relay" mode. let us show the situation of my headscale/tailscale config. when I copy a big file from "nb-route"(there is a window server in same LAN) to "mklaptop", we just only can get a half flow of DERP Server bandwidth. it is a sketchy description [**mklaptop**] 15-25Mbit/s <--> 40-60Mbit/s [**DERP Server**] 40-60Mbit/s <--> 20-30Mbit/s [**nb-router**] 15-25Mbit/s <--> 15-25Mbit/s [Windows Server] I am sure only one user(it is me) use DERP qkc at this moment. ![Snipaste_2022-07-16_15-48-10](https://user-images.githubusercontent.com/12717008/179345704-81201a27-33ee-40be-b401-83cb725a934c.png) I want to confirm that it is a normal situation or some mistake cause by a wrong config. thanks. PS: I hide some privacy with ** **--hide--** ** <!-- Please add your issue description. --> **To Reproduce** **Headscale Server** ``` root@VM-12-11-ubuntu:~# headscale version v0.16.0-beta6 root@VM-12-11-ubuntu:~# headscale nodes list -t ID | Name | NodeKey | Namespace | IP addresses | Ephemeral | Last seen | Online | Expired | ForcedTags | InvalidTags | ValidTags 13 | M**--hide--**er | [Ik5aC] | mca | 10.10.0.5, | false | 2022-07-16 06:43:49 | online | no | tag:t**--hide--**a-core | | 14 | m**--hide--**y | [gC59W] | mca | 10.10.0.7, | false | 2022-07-15 06:42:56 | offline | no | tag:t**--hide--**a-node | | 15 | mklaptop | [5vkaI] | admin | 10.10.0.3, | false | 2022-07-16 06:43:50 | online | no | tag:tadmin | | 16 | mkhome | [XJYjk] | admin | 10.10.0.1, | false | 2022-07-16 06:43:19 | online | no | tag:tadmin | | 17 | nb-router | [mNVdP] | newbeeit | 10.10.0.2, | false | 2022-07-16 06:43:43 | online | no | tag:tn**--hide--**t-core | | 18 | n**--hide--**ng | [Y0ss4] | newbeeit | 10.10.0.6, | false | 2022-07-14 07:58:38 | offline | no | tag:t**--hide--**t-node | | root@VM-12-11-ubuntu:~# ``` **DERP Server named "qkc"** ``` [root@www ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ee**--hide--**7ee y**--hide--**derper "/bin/sh -c 'bash ..." 36 hours ago Up 28 hours 0.0.0.0:**--hide--**0->80/tcp, 0.0.0.0:**--hide--**70->443/tcp, 0.0.0.0:**--hide--**78->**--hide--**78/udp derper [root@www ~]# ``` **Node named "mklatop"** ``` PS C:\Windows\system32> tailscale version 1.26.0 tailscale commit: e635c1a0**--hide--**e775 other commit: 63b4**--hide--**88d4 go version: go1.18.3-ts04d67b90d8 PS C:\Windows\system32> tailscale netcheck Report: * UDP: false * IPv4: (no addr found) * IPv6: no * MappingVariesByDestIP: * HairPinning: * PortMapping: * Nearest DERP: QKCloud * DERP latency: - qkc: 13.9ms (QKCloud) - iplc: 20ms (IPLC) - sucloud: 21.6ms (SCL) PS C:\Windows\system32> tailscale status # Health check: # - not in map poll 10.10.0.3 mklaptop admin windows offline m**--hide--**er mca linux active; relay "iplc", tx 5532 rx 5324 m**--hide--**y mca windows offline mkhome admin linux active; direct 192.168.201.237:41641, tx 112652 rx 125368 n**--hide--**ng-fobqu7lf newbeeit windows offline nb-router newbeeit linux active; relay "qkc", tx 18405244 rx 539783272 PS C:\Windows\system32> tailscale ping 10.10.0.2 pong from nb-router (10.10.0.2) via DERP(qkc) in 26ms pong from nb-router (10.10.0.2) via DERP(qkc) in 30ms pong from nb-router (10.10.0.2) via DERP(qkc) in 25ms pong from nb-router (10.10.0.2) via DERP(qkc) in 28ms pong from nb-router (10.10.0.2) via DERP(qkc) in 26ms pong from nb-router (10.10.0.2) via DERP(qkc) in 28ms pong from nb-router (10.10.0.2) via DERP(qkc) in 28ms pong from nb-router (10.10.0.2) via DERP(qkc) in 27ms pong from nb-router (10.10.0.2) via DERP(qkc) in 27ms pong from nb-router (10.10.0.2) via DERP(qkc) in 28ms direct connection not established PS C:\Windows\system32> tailscale ping 192.168.202.252 pong from nb-router (10.10.0.2) via DERP(qkc) in 29ms pong from nb-router (10.10.0.2) via DERP(qkc) in 26ms pong from nb-router (10.10.0.2) via DERP(qkc) in 24ms pong from nb-router (10.10.0.2) via DERP(qkc) in 25ms pong from nb-router (10.10.0.2) via DERP(qkc) in 28ms pong from nb-router (10.10.0.2) via DERP(qkc) in 26ms pong from nb-router (10.10.0.2) via DERP(qkc) in 25ms pong from nb-router (10.10.0.2) via DERP(qkc) in 27ms pong from nb-router (10.10.0.2) via DERP(qkc) in 25ms pong from nb-router (10.10.0.2) via DERP(qkc) in 33ms direct connection not established PS C:\Windows\system32> tracert -d 192.168.202.252 通过最多 30 个跃点跟踪到 192.168.202.252 的路由 1 25 ms 25 ms 25 ms 10.10.0.2 2 26 ms 25 ms 25 ms 192.168.202.252 跟踪完成。 PS C:\Windows\system32> ``` **Node named "nb-router"** ``` root@nbwan:~# tailscale version 1.22.2 tailscale commit: 60b67**--hide--**4e other commit: ecc5**--hide--**ef994 go version: go1.17.8-tsdce70b6d32 root@nbwan:~# tailscale netcheck Report: * UDP: true * IPv4: yes, 114.91.16.60:33376 * IPv6: no * MappingVariesByDestIP: false * HairPinning: false * PortMapping: * Nearest DERP: QKCloud * DERP latency: - qkc: 9.5ms (QKCloud) - iplc: 16.2ms (IPLC) - sucloud: 19.6ms (SCL) root@nbwan:~# tailscale status 10.10.0.2 nb-router newbeeit linux - m**--hide--**er mca linux active; relay "qkc", tx 350156 rx 496236 m**--hide--**y mca windows offline mkhome admin linux active; relay "qkc", tx 346813504 rx 344839064 mklaptop admin windows active; relay "qkc", tx 738465124 rx 25201428 nb**--hide--**ng-fobqu7lf newbeeit windows offline root@nbwan:~# tailscale ping 10.10.0.3 pong from mklaptop (10.10.0.3) via DERP(qkc) in 24ms pong from mklaptop (10.10.0.3) via DERP(qkc) in 24ms pong from mklaptop (10.10.0.3) via DERP(qkc) in 24ms pong from mklaptop (10.10.0.3) via DERP(qkc) in 25ms pong from mklaptop (10.10.0.3) via DERP(qkc) in 26ms pong from mklaptop (10.10.0.3) via DERP(qkc) in 25ms pong from mklaptop (10.10.0.3) via DERP(qkc) in 25ms pong from mklaptop (10.10.0.3) via DERP(qkc) in 26ms pong from mklaptop (10.10.0.3) via DERP(qkc) in 25ms pong from mklaptop (10.10.0.3) via DERP(qkc) in 25ms direct connection not established root@nbwan:~# ``` **the bandwidth of mklaptop** ![Snipaste_2022-07-16_15-03-18](https://user-images.githubusercontent.com/12717008/179344723-d4c1e529-6d8a-4135-bd86-18697efd1ed4.png) **the bandwidth of DERP Server "qkc"** ![Snipaste_2022-07-16_15-01-57](https://user-images.githubusercontent.com/12717008/179344754-02045cb8-f19b-469f-b461-c93bc712f6f5.png) **the bandwidth of node named "nb-route"** ![Snipaste_2022-07-16_15-16-54](https://user-images.githubusercontent.com/12717008/179344783-79193f3d-b95d-48f0-a76c-2ebd75365483.png) **the bandwidth of File Server 192.168.202.252** ![Snipaste_2022-07-16_15-19-02](https://user-images.githubusercontent.com/12717008/179344797-6c695e63-1e6e-40a0-8b35-f13294092321.png) <!-- Steps to reproduce the behavior. --> **Context info** <!-- Please add relevant information about your system. For example: - Version of headscale used - Version of tailscale client - OS (e.g. Linux, Mac, Cygwin, WSL, etc.) and version - Kernel version - The relevant config parameters you used - Log output -->
adam added the bug label 2025-12-29 01:26:16 +01:00
adam closed this issue 2025-12-29 01:26:17 +01:00
Author
Owner

@kradalby commented on GitHub (Sep 8, 2022):

Hi, I am struggling a bit to understand what is being asked, are you wondering why your DERP server cannot utilise the full bandwidth?

@kradalby commented on GitHub (Sep 8, 2022): Hi, I am struggling a bit to understand what is being asked, are you wondering why your DERP server cannot utilise the full bandwidth?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#293