1. Trang chủ
  2. » Công Nghệ Thông Tin

Internetworking With TCP/IP vol 1 -- Part 1

858 548 1
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Internetworking With Tcp/Ip Vol 1 -- Part 1
Tác giả Douglas E. Comer
Người hướng dẫn Distinguished Professor of Computer Science Douglas E. Comer
Trường học Purdue University
Chuyên ngành Computer Science
Thể loại Bài viết
Năm xuất bản 2005
Thành phố West Lafayette
Định dạng
Số trang 858
Dung lượng 883,03 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

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 2

PART I

COURSE OVERVIEW

AND INTRODUCTION

Trang 3

Topic And Scope

Internetworking: an overview of concepts, terminology, and

technology underlying the TCP/IP Internet protocol suite andthe architecture of an internet

Trang 4

You 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 5

You Will Learn

Trang 6

What 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 7

d Internet model and concept

d Internet (IP) addresses

d Higher-level protocols and the layering principle

d Examples of internet architecture

Trang 9

Why Study TCP/IP?

d The Internet is everywhere

d Most applications are distributed

Trang 10

Remainder Of This Section

d History of Internet protocols (TCP/IP)

d Organizations

d Documents

Trang 11

Vendor Independence

d Before TCP/IP and the Internet

Trang 12

Who 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 13

Components Of The IAB Organization

d IAB (Internet Architecture Board)

http://www.iab.org/iab

d IRTF (Internet Research Task Force)

Trang 14

Components Of The IAB Organization

(continued)

d IETF (Internet Engineering Task Force)

http://www.ietf.org

Trang 15

d 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 16

d 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 17

World Wide Web Consortium

d Organization to develop common protocols for World Wide

Trang 19

Protocol 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 23

Requirements RFCs

d Host Requirements Documents

Trang 24

Special Subsets Of RFCs

d For Your Information (FYI)

d Best Current Practices (BCP)

Trang 25

A Note About RFCs

d RFCs span two extremes

d Question: how does one know which are standards?

Trang 26

TCP/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 27

Internet 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 29

d 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 30

Questions?

Trang 31

PART II

REVIEW OF NETWORK HARDWARE AND PHYSICAL ADDRESSING

Trang 32

The TCP/IP Concept

d Use existing network hardware

d Interconnect networks

d Add abstractions to hide heterogeneity

Trang 33

The Challenge

d Accommodate all possible network hardware

d Question: what kinds of hardware exist?

Trang 34

Network Hardware Review

d We will

Trang 35

Two Basic Categories

Trang 36

Connection 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 37

Connectionless (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 38

Broad Characterizations Of Packet Switching Networks

d Local Area Network (LAN)

d Wide Area Network (WAN)

d Categories are informal and qualitative

Trang 39

Local Area Networks

Trang 40

Wide Area Networks (Long Haul Networks)

d Engineered for

d Higher cost

d Lower capacity (usually)

Trang 41

Examples Of Packet Switched Networks

d Wide Area Nets

d Leased line services

Trang 42

ARPANET (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 43

NSFNET (1987-1992)

d Funded by National Science Foundation

d Motivation: Internet backbone to connect all scientists and

engineers

d Introduced Internet hierarchy

Trang 44

ANSNET (1992-1995)

End-User Site MCI Point of Presence

d Backbone of Internet before commercial ISPs

d Typical topology

Trang 45

Wide Area Networks Available

From Common Carriers

d Point-to-point digital circuits

d Packet switching services also available

Trang 46

Example Local Area Network: Ethernet

d Extremely popular

d Can run over

d Three generations

d IEEE standard is 802.3

Trang 47

Ethernet 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 48

Example Ethernet Frame In Memory

d Frame type is 08.00 (IP)

Trang 49

d 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 50

Hardware Address

d Unique number assigned to each machine on a network

d Used to identify destination for a packet

Trang 51

Hardware Address Terminology

d Known as

d Hardware engineers assign fine distinctions to the above

terms

d We will treat all terms equally

Trang 52

Use Of Hardware Address

d Sender supplies

d Network hardware

d Important note: each technology defines its own addressing

scheme

Trang 53

Three Types Of Hardware

Trang 54

Examples Of Hardware Address Types

d Configurable: proNET-10 (Proteon)

d Dynamic MAC addressing: LocalTalk (Apple)

Trang 55

Examples Of Hardware Address Types

(continued)

d Static MAC addressing: Ethernet

form of broadcast)

d Ethernet’s static addressing is now most common form

Trang 56

d 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 58

Layer 2 Switch

d Electronic device

d Computers connect directly

d Applies bridging algorithm

d Can separate computers onto virtual networks (VLAN

switch)

Trang 59

Physical Networks As Viewed By TCP/IP

d TCP/IP protocols accommodate

Trang 60

The Motivation For Heterogeneity

d Each network technology has advantages for some

Trang 61

Heterogeneity 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 62

d 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 64

Questions?

Trang 65

PART III

INTERNETWORKING CONCEPT AND ARCHITECTURAL MODEL

Trang 66

Accommodating Heterogeneity

d Approach 1

d Approach 2

d Discussion question: which is better?

Trang 68

Agreement Needed To Achieve Desired Properties

d Broad concepts: naming and addressing

Trang 69

The TCP/IP Internet Concept

d Use available networks

d Interconnect physical networks

d Devise abstractions that hide

Trang 70

Network Interconnection

d Uses active system

d Each network sees an additional computer attached

d Device is IP router (originally called IP gateway)

Trang 71

Illustration Of Network Interconnection

d Network technologies can differ

Trang 72

Building 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 73

Example Of Multiple Networks

d Networks can be heterogeneous

d No direct connection from network 1 to network 3

Trang 75

Packet Transmission Paradigm

Trang 76

An Important Point About Forwarding

Routers use the destination network, not the destination computer, when forwarding packets.

Trang 77

Equal 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 78

User’s View Of Internet

d Single large (global) network

d User’s computers all attach directly

d No other structure visible

Trang 79

Illustration Of User’s View Of

A TCP/IP Internet

user’s view

Trang 80

Actual 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 81

The Two Views Of

A TCP/IP Internet

Trang 82

Architectural Terminology

d End-user system is called host computer

d Dedicated systems called IP gateways or IP routers

interconnect networks

Trang 83

Many 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 84

d 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 85

Questions?

Trang 86

PART IV CLASSFUL INTERNET ADDRESSES

Trang 87

d Name

d Address

Trang 88

Internet 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 89

IP Address Details

d 32-bit binary value

d Unique value assigned to each host in Internet

d Values chosen to make routing efficient

Trang 90

IP Address Division

d Address divided into two parts

attaches

Trang 91

Classful Addressing

d Original IP scheme

d Explains many design decisions

d New schemes are backward compatible

Trang 92

Desirable 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 93

Division 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 94

Original IPv4 Address Classes

Three Principle Classes

Other (seldom used) Classes

Trang 95

Important Property

d Classful addresses are self-identifying

d Consequences

the address itself

Trang 96

Endpoint 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 97

IP 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 98

Assignment Of IP Addresses

d All hosts on same network assigned same address prefix

d Each host on a network has a unique suffix

Trang 99

Advantages Of Classful Addressing

d Computationally efficient

– First bits specify size of prefix / suffix

d Allows mixtures of large and small networks

Trang 100

Directed 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 101

Limited Broadcast

d All 1’s

d Broadcast limited to local network only (no forwarding)

d Useful for bootstrapping

Trang 102

All Zeros IP Address

d Can only appear as source address

d Used during bootstrap before computer knows its address

d Means ‘‘this’’ computer

Trang 103

Internet 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 104

Consequences 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 105

Multi-Homed Hosts And Reliability

d Knowing that B is multi-homed increases reliability

Trang 106

Dotted 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 107

Example Of Dotted Decimal

Trang 108

Loopback Address

d Used for testing

d Refers to local computer (never sent to Internet)

d Address is 127.0.0.1

Trang 109

Classful Address Ranges

Class Lowest Address Highest Address

Trang 110

Summary 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 111

An Example Of IP Addresses

ISP 9.0.0.0

ETHERNET 128.10.0.0 WI-FI

NETWORK 128.210.0.0

routers

Trang 112

Example 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 113

Another 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 115

d IP address

d Classful addressing uses first few bits of address to

determine boundary between prefix and suffix

Trang 117

Questions?

Trang 119

d Must use hardware (physical) addresses to communicate

over network

d Applications only use Internet addresses

Trang 120

d 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 121

d Protocol software needs a mechanism that maps an IP

address to equivalent hardware address

d Known as address resolution problem

Trang 122

Address Resolution

d Performed at each step along path through Internet

d Two basic algorithms

d Choice depends on type of hardware

Trang 123

Direct 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 124

Example 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 125

Dynamic 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

Ngày đăng: 19/10/2013, 23:15

TỪ KHÓA LIÊN QUAN

w