2022-04-29-btt网络相关 Block Chain BTFS btt/btfs 网络相关 btfs 项目是一个带宽/存储类项目,对于网络的需求是很大的,下面会列举几个关于网络的问题。
先明确一些概念:
内网:指的是机房内网 外网:指的是中国广域网,也就是最常接触到的网络 境外网:指的是海外网络 公网映射:指的是在核心路由上的配置,可以实现从外网到内网的访问 btfs 需要公网映射吗? 问题可以参考 [2022-04-27-btfs 的公网映射](./2022-04-27-btfs 的公网映射)..最新的测试结果显示,节点不需要配置公网映射,可以在链上交互数据,也持有合理的主机得分。
btfs 需要境外网络出口吗? 推荐要上,官方目前给的三个主网 rpc 都是美国加州的地址,因为国内网络环境复杂,可能存在DNS污染、GFW封锁等原因,心跳信息无法传递,使节点无法正常的运行。(出现此问题后,web面板会显示:网络不稳定,无法连接到 btfs 网络)。下面是这三个 rpc 地址和基础信息。
# https://bttc.trongrid.io/ $ ping bttc.trongrid.io PING bttc-trongrid-134413502.us-east-1.elb.amazonaws.com (3.217.237.146): 56 data bytes Request timeout for icmp_seq 0 ^C --- bttc-trongrid-134413502.us-east-1.elb.amazonaws.com ping statistics --- 2 packets transmitted, 0 packets received, 100.0% packet loss $ curl cip.cc/3.217.237.146 IP : 3.217.237.146 地址 : 美国 美国 数据二 : 美国 | 弗吉尼亚州阿什本Amazon数据中心 数据三 : 美国弗吉尼亚阿什本 | 亚马逊 URL : http://www.cip.cc/3.217.237.146 # https://rpc.bt.io/ $ ping rpc.bt.io PING rpc.bt.io (52.7.235.42): 56 data bytes Request timeout for icmp_seq 0 Request timeout for icmp_seq 1 ^C --- rpc.bt.io ping statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss $ curl cip.cc/52.7.235.42 IP : 52.7.235.42 地址 : 美国 弗吉尼亚州 阿什本 运营商 : amazon.com 数据二 : 美国 | 弗吉尼亚州阿什本Amazon数据中心 数据三 : 美国弗吉尼亚阿什本 | 亚马逊 URL : http://www.cip.cc/52.7.235.42 # https://rpc.bittorrentchain.io/ $ ping rpc.bittorrentchain.io PING rpc.bittorrentchain.io (52.7.235.42): 56 data bytes Request timeout for icmp_seq 0 Request timeout for icmp_seq 1 ^C --- rpc.bittorrentchain.io ping statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss $ curl cip.cc/52.7.235.42 IP : 52.7.235.42 地址 : 美国 弗吉尼亚州 阿什本 运营商 : amazon.com 数据二 : 美国 | 弗吉尼亚州阿什本Amazon数据中心 数据三 : 美国弗吉尼亚阿什本 | 亚马逊 URL : http://www.cip.cc/52.7.235.42 arp 异常问题 # tail -10 /var/log/syslog Apr 28 19:16:57 nl-5288-V5 kernel: [365687.050754] neighbour: arp_cache: neighbor table overflow! Apr 28 19:16:57 nl-5288-V5 kernel: [365687.051954] neighbour: arp_cache: neighbor table overflow! Apr 28 19:16:57 nl-5288-V5 kernel: [365687.052283] neighbour: arp_cache: neighbor table overflow! Apr 28 19:16:57 nl-5288-V5 kernel: [365687.074320] neighbour: arp_cache: neighbor table overflow! Apr 28 19:16:57 nl-5288-V5 kernel: [365687.074871] neighbour: arp_cache: neighbor table overflow! Apr 28 19:16:57 nl-5288-V5 kernel: [365687.139645] neighbour: arp_cache: neighbor table overflow! Apr 28 19:16:57 nl-5288-V5 kernel: [365687.146649] neighbour: arp_cache: neighbor table overflow! Apr 28 19:16:57 nl-5288-V5 kernel: [365687.146961] neighbour: arp_cache: neighbor table overflow! Apr 28 19:16:57 nl-5288-V5 kernel: [365687.147239] neighbour: arp_cache: neighbor table overflow! Apr 28 19:16:57 nl-5288-V5 kernel: [365687.147509] neighbour: arp_cache: neighbor table overflow! arp 是地址解析协定,一般只在内网有效,系统内维护一张 arp 表,对应了ip和mac地址,这样内网的数据传输会很快。在我们的机器内,arp 的数量在 101 个,这是合理的,他包括了 100 个 docker 容器的虚拟地址mac映射和网关的mac映射,按理说不会出现上述问题。这个问题影响范围不好确认。
...