TCP/IP Notes
CPSC 330 - Spring 2004

Internet

TCP/IP

actually a suite of protocols - best known:

how TCP/IP corresponds to OSI model (see textbook, Figure 10.9, p. 465)

      |  request/reply using
      |    symbolic names
    +------------------------+
    | 7 / application layer  | >- mail, ftp, telnet, dns, ...
    +------------------------+
      |  UDP messages or
      |    TCP streams
    +------------------------+
    | 6 / presentation layer | \
    | 5 / session layer      |  - TCP - sessions, packets (in-order, error-free)
    | 4 / transport layer    | /
    +------------------------+
      |  packets
    +------------------------+
    |   (internetworking)    | >- IP - formatting header
    | - - - - - - - - - - - -|
    | 3 / network layer      |    (separate network layer may be absent)
    +------------------------+
      |  datagrams
    +------------------------+
    | 2 / data-link layer    | \- host to network, e.g., Ethernet
    | 1 / physical layer     | /
    +------------------------+

IPv4 addresses

each host has a 32-bit unique address (Internet wide)

typically fixed internet connections (e.g., cable modems) have fixed IP addresses, whereas dial-up providers dynamically assign IP addresses from a pool each time a user dials up. however, a proxy server will have a single IP address and the traffic wrt the internet appears to come and go from that one machine.

(web sites will often assign cookies to give each user a unique identity)

see also Chris Lewis, "All about IP addresses"

IP (internet protocol)

IP routing

TCP (transmission control protocol)

UDP (unreliable data protocol / user datagram protocol)

Some of the other protocols in TCP/IP family

    +------+------+------+------+
    |      | ICMP | UDP  | TCP  |
    | ARP  +------+------+------+
    |      |         IP         |
    +------+--------------------+
    |    local area network     |
    +---------------------------+

routing protocols

network access protocols (TCP/IP over serial lines, such as dial-up phone lines)

sockets interface


[CPSC 330 homepage]

mark@cs.clemson.edu