Introduction

This page is about how to build a router, a network interface, and
the TCP protocol

structure

4 Layer
Application / Transport / Network / Link

  1. Link(Ethernet / WIFI)

  2. Network Layer(IP)
    and it is the only Thin waist
    it is the logical smallest packets which internet break up data into
    and it is format is very easy Three parts: “To” “From” “Data”
    Use Internet Protocol, it makes a best effor to deliver datagrams,
    they can be delivered out of order and corrupted

  3. Transport Layer(TCP / UDP)
    transmission control protocol
    user datagram protocol

  4. Application
    HTTP
    ascii text / human readable

Lab1 Warm Up

Fetch a Web Page

script
1
2
3
4
5
telnet cs144.keithw.org http
GET /hello HTTP/1.1
Host: cs144.keithw.org
Connection: close
one more enter

Send yourself an email

pass, it requires standford network

Listening and connecting

script
1
2
netcat -v -l -p 9090
telnet localhost 9090

Lecture 03