pengwk / blog

用 Issue 的方式写博客
0 stars 0 forks source link

网络 #6

Open pengwk opened 5 years ago

pengwk commented 5 years ago

DNS

查询域名的 DNS 记录

dig www.pengwk.com

指定 resolver 查询:

dig @219.235.127.1 www.pengwk.com

https://www.dnsperf.com/#!dns-resolvers

pengwk commented 5 years ago

Chrome

http://fex.baidu.com/blog/2015/01/chrome-stalled-problem-resolving-process/

pengwk commented 5 years ago

BGP 边界网关协议

什么时候需要 BGP,解决了什么问题?那些设备支持?怎样配置?如何查看基本情况?

https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13753-25.html https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/26634-bgp-toc.html

查资料前:

路由器与路由器之间的协议,用来收集和判断哪个路由最好,让对应的数据表从那里出去。

判断的标准是怎样的?强制指定可以吗?

pengwk commented 5 years ago
pengwk commented 5 years ago
pengwk commented 5 years ago

抓包

手机
电脑
pengwk commented 5 years ago

代理

pengwk commented 5 years ago

Linux 网络

pengwk commented 5 years ago

Chrome

https://developers.google.com/web/tools/chrome-devtools/network/reference#timing-explanation

image

Resource Scheduling

Queueing

Connection Start

Stalled

DNS Lookup

Proxy negotiation

Initial connection

SSL

Request/Response

Request sent

Waiting(TTFB)

Time to First Byte

Content Download

pengwk commented 5 years ago

TCP

pengwk commented 5 years ago

UDP

pengwk commented 5 years ago

• BGP • VRF • Anycast • Virtual IP • VLAN (802.1Q VLAN) • IPSec • 什么是交换什么是路由什么是交换机什么是路由器 • Cisco NXOS 命令行的简单使用 https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus3000/sw/fundamentals/7x/b_Cisco_Nexus_3000_Series_NX-OS_Fundamentals_Configuration_Guide_7x.html • HAProxy 是干什么的 • Ceph 是干什么的 (以及最基本的 Ceph 概念

pengwk commented 5 years ago

nc

使用 nc 可以做到的事。

监听一个端口,一个 Unix socket。 直接回复,还可以做代理。

pengwk commented 5 years ago

Linux namespace net

pengwk commented 5 years ago

Measurement

gethostlatency

https://github.com/iovisor/bcc/blob/master/tools/gethostlatency.py

Show latency for getaddrinfo/gethostbyname[2] calls. For Linux, uses BCC, eBPF. Embedded C.

pengwk commented 4 years ago

Wireshark

流 协议 会话 组