Skip to content

Instantly share code, notes, and snippets.

@fanfeilong
Last active August 29, 2015 14:00
Show Gist options
  • Save fanfeilong/73dd0556c724c7a1a202 to your computer and use it in GitHub Desktop.
Save fanfeilong/73dd0556c724c7a1a202 to your computer and use it in GitHub Desktop.
network笔记

network notes

经典协议


P2P Network


杂项


  • Wireshark 表达式过滤

    • 与:ip.src==180.97.33.108 and ip.dst==10.10.0.2, 其中and可以用&&替换
    • 或:ip.src==180.97.33.108 or ip.dst==180.97.33.108, 其中or可以用||替换
    • 非:not udp.port==53, 其中not可以用带括号的!()替换
  • 网络原子:操作+计时器; 网络层通信中,很经常用到的一个模式是

    • 提交一个操作
    • 开始一个计时器,用以检查是否超时或者用以重试操作。
  • Windows network command lines

    • getmac − Displays the MAC0 addresses for your network cards.
    • hostname – Prints the hostname or computer name.
    • ipconfig − Display and change your TCP/IP configuration settings, or to flush DNS or renew DHCP leases.
    • nbtstat − Displays protocol statistics and current TCP/IP connections using NetBIOS over TCP/IP.
    • net − A set of commands for interacting with Windows network functions.
    • netsh − Powerful utility that can adjust many network and interface settings.
    • netstat − Displays immediate networks stats, such as open ports and routing table information.
    • nslookup − For testing and troubleshooting DNS servers
    • pathping − Used for network troubleshooting.
    • ping − Used for simple network troubleshooting.
    • route − Manipulates network routing tables.
    • tracert − Helps identify connectivity problems between the local computer and a network address.
    • tracert – Helps troubleshoot network connections by tracing the route to a server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment