ARPANET 1969-1989d Original backbone of Internet d Wide area network around which TCP/IP was developed d Funding from Advanced Research Project Agency d Initial speed 50 Kbps... Internet
Trang 1 Copyright 2005 All rights reserved This document may not
be reproduced by any means without written consent of the author.
Trang 2PART I
COURSE OVERVIEW
AND INTRODUCTION
Trang 3Topic And Scope
Internetworking: an overview of concepts, terminology, and
technology underlying the TCP/IP Internet protocol suite andthe architecture of an internet
Trang 4You Will Learn
d Terminology (including acronyms)
d Concepts and principles
d Naming and addressing
d Functions of protocols including ARP, IP, TCP, UDP,
SMTP, FTP, DHCP, and more
d Layering model
Trang 5You Will Learn
Trang 6What You Will NOT Learn
d A list of vendors, hardware products, software products,
services, comparisons, or prices
d Alternative internetworking technologies (they have all
disappeared!)
Trang 7d Internet model and concept
d Internet (IP) addresses
d Higher-level protocols and the layering principle
d Examples of internet architecture
Trang 9Why Study TCP/IP?
d The Internet is everywhere
d Most applications are distributed
Trang 10Remainder Of This Section
d History of Internet protocols (TCP/IP)
d Organizations
d Documents
Trang 11Vendor Independence
d Before TCP/IP and the Internet
Trang 12Who Built TCP/IP?
d Internet Architecture Board (IAB)
d Originally known as Internet Activities Board
d Evolved from Internet Research Group
d Forum for exchange among researchers
d About a dozen members
d Reorganized in 1989 and 1993
d Merged into the Internet Society in 1992
Trang 13Components Of The IAB Organization
d IAB (Internet Architecture Board)
http://www.iab.org/iab
d IRTF (Internet Research Task Force)
Trang 14Components Of The IAB Organization
(continued)
d IETF (Internet Engineering Task Force)
http://www.ietf.org
Trang 15d Internet Corporation for Assigned Names and Numbers
http://www.icann.org
d Formed in 1998 to subsume IANA contract
d Not-for-profit managed by international board
d Now sets policies for addresses and domain names
d Support organizations
Trang 16d Internet Corporation for Assigned Names and Numbers
http://www.icann.org
d Formed in 1998 to subsume IANA contract
d Not-for-profit managed by international board
d Now sets policies for addresses and domain names
d Support organizations
d For fun see http://www.icannwatch.org
Trang 17World Wide Web Consortium
d Organization to develop common protocols for World Wide
Trang 19Protocol Specifications
And Documents
d Protocols documented in series of reports
d Documents known as Request For Comments (RFCs)
Trang 22(continued)
d Numbered in chronological order
d Revised document reissued under new number
d Numbers ending in 99 reserved for summary of previous
100 RFCs
d Index and all RFCs available on-line
Trang 23Requirements RFCs
d Host Requirements Documents
Trang 24Special Subsets Of RFCs
d For Your Information (FYI)
d Best Current Practices (BCP)
Trang 25A Note About RFCs
d RFCs span two extremes
d Question: how does one know which are standards?
Trang 26TCP/IP Standards (STD)
d Set by vote of IETF
d Documented in subset of RFCs
d Found in Internet Official Protocol Standards RFC and on
IETF web site
Trang 27Internet Drafts
d Preliminary RFC documents
d Often used by IETF working groups
d Available on-line from several repositories
d Either become RFCs within six months or disappear
Trang 29d TCP/IP is vendor-independent
d Standards set by IETF
d Protocol standards found in document series known as
Request For Comments (RFCs)
d Standards found in subset of RFCs labeled STD
Trang 30Questions?
Trang 31PART II
REVIEW OF NETWORK HARDWARE AND PHYSICAL ADDRESSING
Trang 32The TCP/IP Concept
d Use existing network hardware
d Interconnect networks
d Add abstractions to hide heterogeneity
Trang 33The Challenge
d Accommodate all possible network hardware
d Question: what kinds of hardware exist?
Trang 34Network Hardware Review
d We will
Trang 35Two Basic Categories
Trang 36Connection Oriented (Circuit Switched Technology)
d Paradigm
d Can guarantee bandwidth
d Proponents argue that it works well with real-time
applications
d Example: ATM network
Trang 37Connectionless (Packet Switched Technology)
d Paradigm
d Each packet travels independently
d Packet includes identification of the destination
d Each packet can be a different size
d The maximum packet size is fixed (some technologies limit
packet sizes to 1,500 octets or less)
Trang 38Broad Characterizations Of Packet Switching Networks
d Local Area Network (LAN)
d Wide Area Network (WAN)
d Categories are informal and qualitative
Trang 39Local Area Networks
Trang 40Wide Area Networks (Long Haul Networks)
d Engineered for
d Higher cost
d Lower capacity (usually)
Trang 41Examples Of Packet Switched Networks
d Wide Area Nets
d Leased line services
Trang 42ARPANET (1969-1989)
d Original backbone of Internet
d Wide area network around which TCP/IP was developed
d Funding from Advanced Research Project Agency
d Initial speed 50 Kbps
Trang 43NSFNET (1987-1992)
d Funded by National Science Foundation
d Motivation: Internet backbone to connect all scientists and
engineers
d Introduced Internet hierarchy
Trang 44ANSNET (1992-1995)
End-User Site MCI Point of Presence
d Backbone of Internet before commercial ISPs
d Typical topology
Trang 45Wide Area Networks Available
From Common Carriers
d Point-to-point digital circuits
d Packet switching services also available
Trang 46Example Local Area Network: Ethernet
d Extremely popular
d Can run over
d Three generations
d IEEE standard is 802.3
Trang 47Ethernet Frame Format
8 octets 6 octets 6 octets 2 octets 46–1500 octets 4 octets
Preamble
Destination Address
Source Address
Frame
d Header format fixed (Destination, Source, Type fields)
d Frame data size can vary from packet to packet
d Preamble and CRC removed by framer hardware before
frame stored in computer’s memory
Trang 48Example Ethernet Frame In Memory
d Frame type is 08.00 (IP)
Trang 49d Link-level protocol required for framing
d TCP/IP views as an independent network
Note: some pundits argue the terminology is incorrect because aconnection limited to two endpoints is not technically a
‘‘network’’
Trang 50Hardware Address
d Unique number assigned to each machine on a network
d Used to identify destination for a packet
Trang 51Hardware Address Terminology
d Known as
d Hardware engineers assign fine distinctions to the above
terms
d We will treat all terms equally
Trang 52Use Of Hardware Address
d Sender supplies
d Network hardware
d Important note: each technology defines its own addressing
scheme
Trang 53Three Types Of Hardware
Trang 54Examples Of Hardware Address Types
d Configurable: proNET-10 (Proteon)
d Dynamic MAC addressing: LocalTalk (Apple)
Trang 55Examples Of Hardware Address Types
(continued)
d Static MAC addressing: Ethernet
form of broadcast)
d Ethernet’s static addressing is now most common form
Trang 56d Hardware device that connects multiple LANs and makes
them appear to be a single LAN
d Repeats all packets from one LAN to the other and vice
versa
d Introduces delay of 1 packet-time
d Does not forward collisions or noise
d Called Layer 2 Interconnect or Layer 2 forwarder
d Makes multiple LANs appear to be a single, large LAN
d Often embedded in other equipment (e.g., DSL modem)
Trang 57(continued)
d Watches packets to learn which computers are on which
side of the bridge
d Uses hardware addresses to filter
Trang 58Layer 2 Switch
d Electronic device
d Computers connect directly
d Applies bridging algorithm
d Can separate computers onto virtual networks (VLAN
switch)
Trang 59Physical Networks As Viewed By TCP/IP
d TCP/IP protocols accommodate
Trang 60The Motivation For Heterogeneity
d Each network technology has advantages for some
Trang 61Heterogeneity And Addressing
d Recall: each technology can define its own addressing
scheme
d Heterogeneous networks imply potential for heterogeneous
addressing
d Conclusion: cannot rely on hardware addressing
Trang 62d TCP/IP is designed to use all types of networks
Trang 63(continued)
d Each technology defines an addressing scheme
d TCP/IP must accommodate heterogeneous addressing
schemes
Trang 64Questions?
Trang 65PART III
INTERNETWORKING CONCEPT AND ARCHITECTURAL MODEL
Trang 66Accommodating Heterogeneity
d Approach 1
d Approach 2
d Discussion question: which is better?
Trang 68Agreement Needed To Achieve Desired Properties
d Broad concepts: naming and addressing
Trang 69The TCP/IP Internet Concept
d Use available networks
d Interconnect physical networks
d Devise abstractions that hide
Trang 70Network Interconnection
d Uses active system
d Each network sees an additional computer attached
d Device is IP router (originally called IP gateway)
Trang 71Illustration Of Network Interconnection
d Network technologies can differ
Trang 72Building An Internet
d Use multiple IP routers
d Ensure that each network is reachable
d Do not need router between each pair of networks
Trang 73Example Of Multiple Networks
d Networks can be heterogeneous
d No direct connection from network 1 to network 3
Trang 75Packet Transmission Paradigm
Trang 76An Important Point About Forwarding
Routers use the destination network, not the destination computer, when forwarding packets.
Trang 77Equal Treatment
The TCP/IP internet protocols treat all networks equally A Local Area Network such as an Ethernet, a Wide Area Network used as a backbone, or a point-to-point link between two computers each count as one network.
Trang 78User’s View Of Internet
d Single large (global) network
d User’s computers all attach directly
d No other structure visible
Trang 79Illustration Of User’s View Of
A TCP/IP Internet
user’s view
Trang 80Actual Internet Architecture
d Multiple physical networks interconnected
d Each host attaches to one network
d Single virtual network achieved through software that
implements abstractions
Trang 81The Two Views Of
A TCP/IP Internet
Trang 82Architectural Terminology
d End-user system is called host computer
d Dedicated systems called IP gateways or IP routers
interconnect networks
Trang 83Many Unanswered Questions
d Addressing model and relationship to hardware addresses
d Format of packet as it travels through Internet
d How a host handles concurrent communication with several
other hosts
Trang 84d Internet is set of interconnected (possibly heterogeneous)
networks
d Routers provide interconnection
d End-user systems are called host computers
d Internetworking introduces abstractions that hide details of
underlying networks
Trang 85Questions?
Trang 86PART IV CLASSFUL INTERNET ADDRESSES
Trang 87d Name
d Address
Trang 88Internet Protocol Address
(IP Address)
d Analogous to hardware address
d Unique value assigned as unicast address to each host on
Internet
d Used by Internet applications
Trang 89IP Address Details
d 32-bit binary value
d Unique value assigned to each host in Internet
d Values chosen to make routing efficient
Trang 90IP Address Division
d Address divided into two parts
attaches
Trang 91Classful Addressing
d Original IP scheme
d Explains many design decisions
d New schemes are backward compatible
Trang 92Desirable Properties Of An Internet Addressing Scheme
d Compact (as small as possible)
d Universal (big enough)
d Works with all network hardware
d Supports efficient decision making
Trang 93Division Of Internet Address
Into Prefix And Suffix
d How should division be made?
networks, but each is limited in size
large, but there can only be a few networks
d Original Internet address scheme designed to accommodate
both possibilities
Trang 94Original IPv4 Address Classes
Three Principle Classes
Other (seldom used) Classes
Trang 95Important Property
d Classful addresses are self-identifying
d Consequences
the address itself
Trang 96Endpoint Identification
Because IP addresses encode both a network and a host on that network, they do not specify an individual computer, but a connection to a network.
Trang 97IP Address Conventions
d When used to refer to a network
– Host field contains all 0 bits
d Broadcast on the local wire
d Directed broadcast: broadcast on specific (possibly remote)
network
– Host field contains all 1 bits
Trang 98Assignment Of IP Addresses
d All hosts on same network assigned same address prefix
d Each host on a network has a unique suffix
Trang 99Advantages Of Classful Addressing
d Computationally efficient
– First bits specify size of prefix / suffix
d Allows mixtures of large and small networks
Trang 100Directed Broadcast
IP addresses can be used to specify a directed broadcast in which a packet is sent to all computers on a network; such
convention, a directed broadcast address has a valid netid and has a hostid with all bits set to 1.
Trang 101Limited Broadcast
d All 1’s
d Broadcast limited to local network only (no forwarding)
d Useful for bootstrapping
Trang 102All Zeros IP Address
d Can only appear as source address
d Used during bootstrap before computer knows its address
d Means ‘‘this’’ computer
Trang 103Internet Multicast
d IP allows Internet multicast, but no Internet-wide multicast
delivery system currently in place
d Class D addresses reserved for multicast
d Each address corresponds to group of participating
computers
d IP multicast uses hardware multicast when available
d More later in the course
Trang 104Consequences Of IP Addressing
d If a host computer moves from one network to another, its
IP address must change
d For a multi-homed host (with two or more addresses), the
path taken by packets depends on the address used
Trang 105Multi-Homed Hosts And Reliability
d Knowing that B is multi-homed increases reliability
Trang 106Dotted Decimal Notation
d Syntactic form for expressing 32-bit address
d Used throughout the Internet and associated literature
d Represents each octet in decimal separated by periods (dots)
Trang 107Example Of Dotted Decimal
Trang 108Loopback Address
d Used for testing
d Refers to local computer (never sent to Internet)
d Address is 127.0.0.1
Trang 109Classful Address Ranges
Class Lowest Address Highest Address
Trang 110Summary Of Address Conventions
1 Allowed only at system startup and is never a valid destination address.
2 Never a valid source address.
3 Should never appear on a network.
Notes:
Trang 111An Example Of IP Addresses
ISP 9.0.0.0
ETHERNET 128.10.0.0 WI-FI
NETWORK 128.210.0.0
routers
Trang 112Example Host Addresses
ETHERNET 128.10.0.0
MERLIN (multi-homed host)
GUENEVERE (Ethernet host)
LANCELOT (Ethernet host)
WI-FI NETWORK 128.210.0.0
ARTHUR (Wi-Fi host)
128.10.2.3 128.10.2.8 128.10.2.26
128.210.0.1
128.210.0.3
128.10.0.6 128.210.50
128.10.2.70
TALIESYN (router)
GLATISANT (router)
To ISP
Trang 113Another Addressing Example
d Assume an organization has three networks
d Organization obtains three prefixes, one per network
d Host address must begin with network prefix
Trang 115d IP address
d Classful addressing uses first few bits of address to
determine boundary between prefix and suffix
Trang 117Questions?
Trang 119d Must use hardware (physical) addresses to communicate
over network
d Applications only use Internet addresses
Trang 120d Computers A and B on same network
d Application on A generates packet for application on B
d Protocol software on A must use B’s hardware address
when sending a packet
Trang 121d Protocol software needs a mechanism that maps an IP
address to equivalent hardware address
d Known as address resolution problem
Trang 122Address Resolution
d Performed at each step along path through Internet
d Two basic algorithms
d Choice depends on type of hardware
Trang 123Direct Mapping
d Easy to understand
d Efficient
d Only works when hardware address is small
d Technique: assign computer an IP address that encodes the
hardware address
Trang 124Example Of Direct Mapping
d Hardware: proNet ring network
d Hardware address: 8 bits
d Assume IP address 192.5.48.0 (24-bit prefix)
d Assign computer with hardware address K an IP address
192.5.48.K
d Resolving an IP address means extracting the hardware
address from low-order 8 bits
Trang 125Dynamic Binding
d Needed when hardware addresses are large (e.g., Ethernet)
d Allows computer A to find computer B’s hardware address
d Technique: broadcast query and obtain response
d Note: dynamic binding only used across one network at a
time