TCP/IP
Transmission Control Protocol / Internet Protocol

TCP/IP & OSI

But First ...

Ethernet - A Real Data-Link Layer

Ethernet

  • Multi-access (shared medium).
  • Every Ethernet interface has a unique 48 bit address (a.k.a. hardware address).
  • Example: C0:B3:44:17:21:17
  • The broadcast address is all 1's.
  • Addresses are assigned to vendors by a central authority.

    CSMA/CD

    Carrier Sense Multiple Access with Collision Detection

    An Ethernet Frame

    Ethernet Addressing

    Back to TCP/IP

    Internet Protocol - The IP in TCP/IP

    IP Datagrams

    IP Addresses

    IP Address includes network address

    IP Addresses

    The four formats of IP Addresses

    Network and Host IDs

    IP Address Representation

    Host and Network Addresses

    IP Broadcast and Network Addresses

    Subnet Addresses

    Subnetting

    Mapping IP Addresses to Hardware Addresses

    Reverse Address Resolution

    ARP

    ARP

    ARP

    RARP

    Services provided by IP

    IP Datagram

    IP Datagram Fragmentation

    IP Datagram Fragmentation

    ICMP - Internet Control Message Protocol

    ICMP Message Types

    Transport Layer & TCP/IP

    Q: We know that IP is the network layer - so TCP must be the transport layer, right ?

    A: No.

    TCP is only part of the TCP/IP transport layer - the other part is UDP (User Datagram Protocol).

    UDP

    Ports

    Ports

    UDP

    TCP - Transmission Control Protocol

    TCP Ports

    TCP Segments

    TCP Segment Format

    Addressing in TCP/IP

    TCP vs. UDP

    Q: Which protocol is better ?

    A: It depends on the application.

    TCP provides a connection-oriented, reliable byte stream service (lots of overhead).

    UDP offers minimal datagram delivery service (as little overhead as possible).

    TCP/IP Summary

    TCP or UDP ?