COSCUP
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 從 Ping值 到圖表,打造專屬於你的網路品質監測系統! {%hackmd @coscup/announcement-2025 %} ## 延遲 v.s 網速 * 延遲 != 網速,兩個是不同的概念 ### 延遲 * 延遲:打排球,球在空中的時間 * `ping` ``` > ping 1.1.1.1 Ping 1.1.1.1 (使用 32 位元組的資料): 回覆自 1.1.1.1: 位元組=32 時間=48ms TTL=48 ``` * 其中的時間(time)就是所謂的延遲 * `mtr`/`tracert`(`traceroute`): * 紀錄host到host之間的節點 ``` > tracert 1.1.1.1 在上限 30 個躍點上 追蹤 one.one.one.one [1.1.1.1] 的路由: 1 120 ms 7 ms 7 ms 10.186.214.25 2 * * * 要求等候逾時。 3 * * * 要求等候逾時。 4 * * * 要求等候逾時。 5 * * * 要求等候逾時。 6 * * * 要求等候逾時。 7 * * * 要求等候逾時。 8 * * * 要求等候逾時。 9 * * * 要求等候逾時。 10 61 ms 29 ms 21 ms h114-192-72-124.seed.net.tw [192.72.124.114] 11 23 ms 17 ms 19 ms r58-210.seed.net.tw [139.175.58.210] 12 190 ms * 158 ms h107-192-72-124.seed.net.tw [192.72.124.107] 13 54 ms 60 ms 49 ms one.one.one.one [1.1.1.1] ``` * https://smc.peering.tw * 台灣的海纜狀態 * 往哪個方向的纜線去世了 ## smokeping * https://github.com/linuxserver/docker-smokeping * 開源的東東,免費使用 * 使用RRDtool顯示介面 * 實驗環境:Debian + Docker * 優點: * 支援Arm64 / x86 * 定時清除log * Docker,容器複製貼上就可以clone。 * 官網提供的docker,按照指令就可以直接架起來 ### 設定 #### Database * 可以改ping的頻率,得到更精細的頻率 #### General #### Targets * 類似資料夾結構的設定 * 第一層設定 ``` + Dns menu = DNS 伺服器 title = FNS連線品質監測 host = /Dns/Google ``` * 使用google來做為測試目標 ``` ++ Google title = Google=DNS menu= Google host = 8.8.8.8 ``` * 設定完,就可以在UI介面看到Google選單 * 設定的細節: * ~~時間來不及了沒看到~~ * 設定完,再等一下,就可以看到圖表了(讓子彈飛一回兒) ### 雲段設定 * smokeping_secrets:設置對端密碼 * 可以打隨便的名稱 * 設定名稱/密碼 * Slaves:調整對端顏色、名稱 ``` secrets=/etc/smokeping/ ``` * Targets:一定要設定的新增連線(新增節點) 多加一行 ``` slave:simple ``` * Docker RUN ``` docker run -d \ --name=smokeping \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Etc/UTC \ -e MASTER_URL=http://<master-host-ip>:80/smokeping/ `#optional` \ -e SHARED_SECRET=password `#optional` \ -e CACHE_DIR=/tmp `#optional` \ -p 80:80 \ -v /path/to/smokeping/config:/config \ -v /path/to/smokeping/data:/data \ --restart unless-stopped \ lscr.io/linuxserver/smokeping:latest ``` * `hostname`拿掉 * Master的IP記得填 * `SHARED_SCRET`要與Master一致 * 沒有UI介面 * `dokcer logs mokeping`:看log ## FYI ### 公開的smokeping架設 * 講者的:https://smokeping.zhuyuan.tw/smokeping/ * 速度相對慢一點 * 可能是docker的鍋(?) * [台灣速連](https://www.fast-line.tw/):https://smokeping.fast-line.tw/ ### Looking Glass * https://lg.zhuyuan.tw/ ## QA * 窩看到爛掉了,某個target開始掉包了,那怎麼辦? * 就只知道有東西壞掉了。 * 透過`mtr`/`traceroute`:去看看中間的那一個host壞了 * ~~被咖掉了~~ ## 工商服務時間 [台灣數位串流](https://www.twds.com.tw/):歡迎贊助! > 請從這裡開始 > https://s.dwave.cc/DQpgp6k ###### tags: `COSCUP2025`, `zhtw`, `elementary`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully