網路概論:
從底層到應用的觀念與實作


Denny Huang

Denny Huang

課程內容以 Linux 發行版本進行

Windows 使用者請使用 WSL

已有基礎者,推薦閱讀

Kenny Huang, Ph.D. 黃勝雄 博士

History of the Internet

OSI

7? 7?

IETF/RFC

RFC 2324

RFC 2468

Network Interface

Predictable Network Interface Names

Ask the man

man [command]

IP

Public IP / Private IP

ip addr / ip a

ARP

arp / ip neighbour / ip n

Gateway / Netmask

ip route / ip r / route / traceroute / mtr

Port

TCP / UDP

nc -lvp [port] / nc -v [hostname/ip] [port]

nc -lvup [port] / nc -vu [hostname/ip] [port]

Three-Way Handshake

Wireshark

tcpdump -X host [ip]

DNS

dig / nslookup

whois

HTTP

request method / status code / headers

IETF HTTP-WG Mailing List 〈Re: Referer: (sic)〉

Response a web page

Server

nc -lvp 8000

HTTP/1.1 200 OK[Enter]
[Enter]
Hello
^C

Clint

  • Browser
  • curl -v localhost:8000

Python 3 HTTP Server

Start Server

python3 -m http.server

Request with

  • nc -v 0 8000
    • GET / HTTP/1.1
  • curl -v localhost:8000
  • Browser

HTTPS

Cookie / Session

How Browsers Work?

API

Application Programming Interface

政府資料開放平台 / 台北市資料大平台

JSON

Example

jq / JSONVue

RESTful

Web crawler / bot

Q & A

延伸閱讀

Thanks for listening



本投影片採用

創用 CC「姓名標示-相同方式分享 4.0 國際」授權條款釋出
Marp 製作

Google tag (gtag.js)