From 15988280f7699e504e6154d5b44b2484dde9b676 Mon Sep 17 00:00:00 2001 From: testscript Date: Sun, 21 Nov 2021 09:20:34 +0000 Subject: [PATCH] update readmes --- README.md | 3 ++- README_zh.md | 3 ++- example_config/p2p_mode/README_zh.md | 1 - example_config/super_mode/n1.yaml | 4 ++-- example_config/super_mode/n2.yaml | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a9c3ca7..418c816 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,8 @@ Usage of ./etherguard-go: 7. `dynamicroute`: Log for dynamic route. 1. `sendpinginterval`: Send `Ping` interval 2. `dupchecktimeout`: Duplication chack timeout. - 3. `conntimeout`: Connection timeout. + 1. `peeralivetimeout`: Reset the timer while received a packet. Mark the peer offlline while exceed this time. + 3. `conntimeout`: The interval that check peer offline or not. If peer was marked offine, it will switch to next endpoint. 4. `savenewpeers`: Save peer info to local file. 5. `supernode`: See [Super Mode](example_config/super_mode/README.md) 6. `p2p` See [P2P Mode](example_config/p2p_mode/README.md) diff --git a/README_zh.md b/README_zh.md index 01269cb..da46364 100644 --- a/README_zh.md +++ b/README_zh.md @@ -107,7 +107,8 @@ Usage of ./etherguard-go-vpp: 7. `dynamicroute`: 動態路由相關的設定。時間類設定單位都是秒 1. `sendpinginterval`: 發送Ping訊息的間隔 2. `dupchecktimeout`: 重複封包檢查的timeout。完全相同的封包收第二次會被丟棄 - 3. `conntimeout`: 鄰居應該要發Ping過來,超過就視為鄰居掛了 + 1. `peeralivetimeout`: 每次收到封包就重置,超過時間沒收到就標記該peer離線 + 3. `conntimeout`: 檢查peer離線的間格,如果標記離線,就切換下一個endpoint(supernode可能傳了多個endpoint過來) 4. `savenewpeers`: 是否把下載來的鄰居資訊存到本地設定檔裡面 5. `supernode`: 參見[Super模式](example_config/super_mode/README_zh.md) 6. `p2p` 參見 [P2P模式](example_config/p2p_mode/README_zh.md) diff --git a/example_config/p2p_mode/README_zh.md b/example_config/p2p_mode/README_zh.md index 239ccf2..590234b 100644 --- a/example_config/p2p_mode/README_zh.md +++ b/example_config/p2p_mode/README_zh.md @@ -60,7 +60,6 @@ Pong封包是一種`ControlMsg`,使用**flood廣播**盡量讓每個節點都 P2P模式也有幾個參數 1. usep2p: 是否啟用P2P模式 1. sendpeerinterval: 廣播BoardcastPeer的間格 -1. peeralivetimeout: 每次收到封包就重置,超過時間沒收到就視為該peer離線 1. graphrecalculatesetting: 一些和[Floyd-Warshall演算法](https://zh.wikipedia.org/zh-tw/Floyd-Warshall算法)相關的參數 1. staticmode: 關閉Floyd-Warshall演算法,只使用一開始載入的nexthoptable。P2P單純用來打洞 1. jittertolerance: 抖動容許誤差,收到Pong以後,一個37ms,一個39ms,不會觸發重新計算 diff --git a/example_config/super_mode/n1.yaml b/example_config/super_mode/n1.yaml index 639dab9..4073104 100644 --- a/example_config/super_mode/n1.yaml +++ b/example_config/super_mode/n1.yaml @@ -9,8 +9,8 @@ interface: sendaddr: 127.0.0.1:5001 l2headermode: kbdbg nodeid: 1 -postscript: example_config/echo.sh test nodename: Node01 +postscript: example_config/echo.sh test defaultttl: 200 l2fibtimeout: 3600 privkey: 6GyDagZKhbm5WNqMiRHhkf43RlbMJ34IieTlIuvfJ1M= @@ -24,7 +24,7 @@ loglevel: logntp: true dynamicroute: sendpinginterval: 16 - peeralivetimeout: 30 + peeralivetimeout: 70 dupchecktimeout: 40 conntimeout: 30 connnexttry: 5 diff --git a/example_config/super_mode/n2.yaml b/example_config/super_mode/n2.yaml index f2f8542..ecdcd4b 100644 --- a/example_config/super_mode/n2.yaml +++ b/example_config/super_mode/n2.yaml @@ -24,7 +24,7 @@ loglevel: logntp: true dynamicroute: sendpinginterval: 16 - peeralivetimeout: 30 + peeralivetimeout: 70 dupchecktimeout: 40 conntimeout: 30 connnexttry: 5