33
Chapter 3 The Basics of Networking Friday, October 18, 13

Ch. 3 FIT5, CIS 110 13F

  • Upload
    mh-108

  • View
    739

  • Download
    0

Embed Size (px)

DESCRIPTION

Ch. 5 slides from Fluency w/Info. Tech. 5ed (Pearson)

Citation preview

Page 1: Ch. 3 FIT5, CIS 110 13F

Chapter 3The Basics of Networking

Friday, October 18, 13

Page 2: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

General Communication

• Synchronous communication: – (eg) wired telephone network

=> circuit-switched network

• Asynchronous communication:– (eg) email; the internet

=> packet-switched network

Friday, October 18, 13

Page 3: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Internet’s Communication Properties

• point-to-point, asynchronous communication

• fast enough to mimic synchronous communication (e.g., VOIP)

• Multicasting is possible (chat rooms, radio, tv)

Friday, October 18, 13

Page 4: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Internet Schematic Diagram

Friday, October 18, 13

Page 5: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Client/Server Structure• Most Internet applications are client/server

interaction

– click a hyperlink: your computer connects to server

– page returned => connection ends

– Next connection is brand new => Stateless protocol

No memory of prior connection

Friday, October 18, 13

Page 6: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Basic Client/Server Interaction

Friday, October 18, 13

Page 7: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Many Brief Relationships

• server can handle many clients at a time

• server is busy only for as long as it takes to perform your request

• Google: 5,134,000,000 searches/day (2012)

Friday, October 18, 13

Page 8: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Client/Server Relationships

Friday, October 18, 13

Page 9: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Internet Protocol (IP) Address

• Each computer on the Internet has a unique IP address

– four numbers separated by dots:

128.223.223.85 => “dotted quad”

– each number is 0–255 (one byte / 8bits each) => “octet”

Friday, October 18, 13

Page 10: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

IP Addresses

Friday, October 18, 13

Page 11: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

IPv4 Address Exhaustion– each of the four numbers is

• in the range 0–255

• requires one byte (8 bits) of memory

=> “octet”

– IP address is 4x8= 32 bits long=> IP addresses in short supply. Why?

2^32 = 4.3 billion, a finite number (ask Google the exact value)

Friday, October 18, 13

Page 12: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

IPv6: 128 bit addresses– IPv6 addresses will have 16, 8-bit, fields

2^128 = 10^38

– 10^28 times as many addresses as IPv4

– new switching hardware/software is required to handle IPv6

Friday, October 18, 13

Page 13: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Domain Names

– symbolic names (human-readable)vs. IP addresses

– based on hierarchy of domains

– domain: related group of networked computers

– (eg) pages.uoregon.edu

Friday, October 18, 13

Page 14: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Domain Names

• Domain name hiearchy reads right-to-left

ix.cs.uoregon.edu

– top-level domain: edu– subdomain uoregon– next subdomain cs– server is ix

Friday, October 18, 13

Page 15: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

The .edu Domain

Friday, October 18, 13

Page 16: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

DNS Servers• Domain Name System (DNS):

translates domain names into IP address

• Every Internet host knows the IP address of its nearest DNS name server

• How the DNS Works (youtube, 00:02:25)http://bit.ly/ab4s50

Friday, October 18, 13

Page 17: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

DNS Servers• your computer asks a DNS name server to

translate a name to an IP address

• If the address is not stored on the DNS name server), the server asks an authoritative name server

• 13 root name servers keep the complete list of all authoritative name servers

Tagged A..M here: www.root-servers.org

Friday, October 18, 13

Page 18: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

DNS Root Servers• 13 root name servers (A..M) scattered around the

world

• Plus 243 mirror sites

=> DNS is the world’s largest distributed database

Friday, October 18, 13

Page 19: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

TCP/IP

• TCP/IP Postcard Analogy

– The Internet is like sending a novel to your publisher using postcards

– Packet Switching Flash Demo

– Packet Layer in OSI Network Model

Friday, October 18, 13

Page 20: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

TCP/IP

• packets routed around failed nodes– ensures delivery of entire message– large scale, built-in redundancy– crucial to reliability

• packet switching => rapid store-&-forward design

• node receives a packet, stores it• determines best route to destination• sends it to next node

Friday, October 18, 13

Page 21: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

TCP/IP:The Language of the Internet

– analogy: “postcards” = IP packets – travel different routes / arrive out of order– can be lost

IP: stamps packet w/address & packet numberTCP: re-arranges, requests retransmission

– network can optimize packet paths, but..– prone to chaos

Friday, October 18, 13

Page 22: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Ethernet

• Ethernet uses a physical channel – wire, cable, or optical fiber– media layer / physical layer

• Key point: Each packet seen by all computers on the local network

=> store-&-forward design

Friday, October 18, 13

Page 23: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Ethernet AnalogyParty Protocol

• How an Ethernet network works:– two people start speaking at same time

=> collision

• Collision Resolution policy– wait random amt of time– try again

Friday, October 18, 13

Page 24: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Ethernet Analogy• How an Ethernet network works:

– Party Protocol– two people start speaking at same time

=> collision

• Collision Resolution– wait random amt of time– try again

Friday, October 18, 13

Page 25: Ch. 3 FIT5, CIS 110 13F

Slide 3-

Figure 3.9. Media LayerRobert Metalfe’s original drawing of the Ethernet-- computers “tap” onto the wire labeled “The Ether”

Friday, October 18, 13

Page 26: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

The World Wide Web (http)

• client/server protocol• requests: URL (a.k.a. URI)• client & server both “speak” HTTP

Jeopardy Category: Application Layer

Q: The World Wide WebA: What is, an Internet Application?

Friday, October 18, 13

Page 27: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

File Systems: How to Organize your Folders

• Folders on the server are called Directories• Directory Hierarchy

– folders can contain folders as well as files=> the file system, or directory hierarchy

• Think of any hierarchy as a tree– folders are branches– files are the leaves– root directory is at the top of the hierachy

Friday, October 18, 13

Page 28: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-WesleyFriday, October 18, 13

Page 29: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

File System Pathnames

• Files are identified by the path from the root diretory to the file:

– (eg) /fluency/part1/chapter3/file-structure/directory-hierarchy/figure-3-13.pdf

• Note: do not use spaces or special characters in a Unix pathname

Friday, October 18, 13

Page 30: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Pathnames & URIs

• Part of a web page file’s pathname is used in the URI:

URL: pages.uoregon.edu/susanq/110/

Unix pathname on server: /home7/susanq/public_html/110/

URL: pages.uoregon.edu/susanq/110/p2/index.html

Unix pathname on server: /home7/susanq/public_html/110/p2/index.html

Friday, October 18, 13

Page 31: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Web Directories:The Default Document

• When a URL ends in a slash:

=> browser automatically looks in that folder for a file called index.html or default.html

=> default document

=> supresses directory listing inbrowser

Friday, October 18, 13

Page 32: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Organize your Folders

• Why have a hierarchy?

– organize your thinking & work– directories/folders cost nothing– work on the server and your computer

=> highly recommended

Friday, October 18, 13

Page 33: Ch. 3 FIT5, CIS 110 13F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Ch. 3: AssessmentLearning Outcomes - Know the following

Friday, October 18, 13