Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學...

51
Chapter 7: Computer Networks, the Internet, and the World Wide Web 國國國國國國國國 國國國國國國國 國國國 (Chuan-Yu Chang ) 國國 Office: ES 709 TEL: 05-5342601 ext. 4337 E-mail: [email protected]

Transcript of Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學...

Page 1: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

Chapter 7: Computer Networks, the Internet, and the World Wide Web

Chapter 7: Computer Networks, the Internet, and the World Wide Web

國立雲林科技大學 資訊工程研究所張傳育 (Chuan-Yu Chang ) 博士Office: ES 709TEL: 05-5342601 ext. 4337E-mail: [email protected]

國立雲林科技大學 資訊工程研究所張傳育 (Chuan-Yu Chang ) 博士Office: ES 709TEL: 05-5342601 ext. 4337E-mail: [email protected]

Page 2: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

2

ObjectivesObjectives

In this chapter, you will learn about:

Basic networking concepts

Communication protocols

Network services and benefits

A brief history of the Internet and the World Wide Web

Page 3: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

3

IntroductionIntroduction

Computer network

Computers connected together

Purpose: exchanging resources and information

Just about any kind of information can be sent

Examples: television and radio signals, voice, graphics, handwriting, photographs, movies

Page 4: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

4

Basic Networking ConceptsBasic Networking Concepts

Computer network

Set of independent computer systems connected by telecommunication links

Purpose: sharing information and resources

Nodes, hosts, or end systems

Individual computers on a network

Page 5: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

5

Communication LinksCommunication Links

Switched, dial-up telephone line

A circuit is temporarily established between the caller and callee

Analog medium

Requires modem at both ends to transmit information produced by a computer

Computer produces digital information

Page 6: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

6

Figure 7.1 Two Forms of Information Representation

Page 7: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

7

Figure 7.2Modulation of a Carrier to Encode Binary Information

Page 8: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

8

Communication Links (continued)

Communication Links (continued)

Dial-up phone links

Transmission rate: 56,000 bps (56 Kbps)

Broadband

Transmission rate: exceeding 128,000 bps (128 Kbps)

Page 9: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

9

Communication Links (continued)

Communication Links (continued)

Options for broadband communications

Home use

Digital subscriber line (DSL)

Cable modem

Commercial and office environment

Ethernet

Fast Ethernet

Gigabit Ethernet

Page 10: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

10

Figure 7.3Transmission Time of an Image at Different Transmission Speeds

Page 11: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

11

Communication Links (continued)

Communication Links (continued)

Wireless data communication

Uses radio, microwave, and infrared signals

Enables “mobile computing”

Types of wireless data communication

Wireless local access network

Wireless wide-area access network

Page 12: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

12

Local Area NetworksLocal Area Networks

Local area network (LAN)Connects hardware devices that are in close proximity

The owner of the devices is also the owner of the means of communications

Common wired LAN topologiesBus

Ring

Star

Page 13: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

13

Figure 7.4Some Common LAN Topologies

Page 14: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

14

Local Area Networks(continued)

Local Area Networks(continued)

Ethernet

Most widely used LAN technology

Uses the bus topology

Two ways to construct an Ethernet LAN

Shared cable

Transceiver, repeater, bridge/switch

Hubs: the most widely used technology

Page 15: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

15

Figure 7.5: An Ethernet LAN ImplementedUsing Shared Cables

Page 16: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

16

Figure 7.6An Ethernet LAN Implemented Using a Hub

Page 17: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

17

Wide Area NetworksWide Area Networks

Wide area networks (WANs)

Connect devices that are across town, across the country, or across the ocean

Users must purchase telecommunications services from an external provider

Dedicated point-to-point lines

Most use a store-and-forward, packet-switched technology to deliver messages

Page 18: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

18

Figure 7.7Typical Structure of a Wide Area Network

Page 19: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

19

Overall Structure of the InternetOverall Structure of the Internet

All real-world networks, including the Internet, are a mix of LANs and WANs

Example: a company or a college

One or more LANs connecting its local computers

Individual LANs interconnected into a wide-area “company network”

Page 20: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

20

Figure 7.8(a)Structure of a Typical Company Network

Page 21: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

21

Overall Structure of the Internet (continued)

Overall Structure of the Internet (continued)

Internet Service Provider (ISP)A wide-area network

Provides a pathway from a specific network to other networks, or from an individual to other networks

ISPs are hierarchicalInterconnect to each other in multiple layers to provide greater geographical coverage

Page 22: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

22

Figure 7.8(b)Structure of a Network Using an ISP

Page 23: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

23

Figure 7.8(c)Hierarchy of Internet Service Providers

Page 24: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

24

InternetA huge interconnected “network of networks”

Includes nodes, LANs, WANs, bridges, routers, and multiple levels of ISPs

Early 2003170 million nodes (hosts)

Hundreds of thousands of separate networks located in over 225 countries

Overall Structure of the Internet (continued)

Overall Structure of the Internet (continued)

Page 25: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

25

Communication ProtocolsCommunication Protocols

A protocol

A mutually agreed upon set of rules, conventions, and agreements for the efficient and orderly exchange of information

TCP/IP

The Internet protocol hierarchy

Governs the operation of the Internet

Five layers

Page 26: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

26

Figure 7.10The Five-Layer TCP/IP Internet Protocol Hierarchy

Page 27: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

27

Physical LayerPhysical Layer

Protocols govern the exchange of binary digits across a physical communication channel.

Goal: create a “bit pipe” between two computersBits put into the pipe at one end can be read and understood by the computer located at the other end.

Page 28: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

28

Data Link LayerData Link Layer

Protocols carry out

Error handling

Framing

Creates an error-free “message pipe”

Messages go in one end and always come out the other end correct and in the proper order.

Composed of two services

Layer 2a: medium access control

Layer 2b: logical link control

Page 29: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

29

Data Link Layer (continued)Data Link Layer (continued)

Medium access control protocols

Determine how to arbitrate ownership of a shared line when multiple nodes want to send at the same time

Carrier Sense Multiple Access/ Collision Detection

Logical link control protocols

Ensure that a message traveling across a channel from source to destination arrives correctly

Automatic Repeat Request, ARQ algorithm

Page 30: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

30

CSMA/CDCSMA/CD

Page 31: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

31

ARQ algorithmARQ algorithm

PacketStart of packet, SOPEnd of packet, EOP

SOP sequence-number message error-check EOP

Packet M

Node A Node B

Page 32: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

32

Network LayerNetwork Layer

Delivers a message from the site where it was created to its ultimate destination

Critical responsibilities

Creating a universal addressing scheme for all network nodes

Delivering messages between any two nodes in the network

Page 33: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

33

Network Layer (continued)Network Layer (continued)

Provides a true “network delivery service”

Messages are delivered between any two nodes in the network, regardless of where they are located

IP (Internet Protocol) layer

host name

IP address

Domain Name Service, DNS

To convert from a symbolic host name to its 32 bit IP address.

Page 34: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

34

Network Layer (continued)Network Layer (continued)

RoutingSelecting one specific pathRouting algorithm

To determine the optimal route, shortest pathDijkstra’s shortest path algorithm

Routing 的困難網路結構的改變 (topological change)網路失敗 (network failure)

Page 35: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

35

Transport LayerTransport Layer

Provides a high-quality, error-free, order preserving end-to-end delivery service

Assigning port numbers to programs and remembering which program goes with which port.

All important applications on the Internet use well-known port numbers (RFC 1700)

When you are developing a new application, you need to get a new port number.

W

X

Y

Z

Host A Host BInternet

Port 12

Port 567

Port 44

Port 709

(1.2.3.4)

(5.6.7.8)

Page 36: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

36

Transport Layer (cont.)Transport Layer (cont.)

TCP (Transport Control Protocol)

Primary transport protocol on the Internet

Requires the source and destination programs to initially establish a connection

TCP uses ARQ algorithm.

TCP connection always delivers messages in the proper order.

Page 37: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

37

Figure 7.15Logical View of a TCP Connection

Page 38: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

38

Application LayerApplication Layer

Implements the end-user services provided by a network

There are many application protocols, including:HTTP

SMTP

POP3

IMAP

FTP

Page 39: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

39

Figure 7.16Some Popular Application Protocols on the Internet

Page 40: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

40

Application Layer (continued)Application Layer (continued)

Uniform Resource Locator (URL)

A symbolic string that identifies a Web page

Form

protocol://host address/page

The most common Web page format is hypertext information

Accessed using the HTTP protocol

Request message

Response message

Page 41: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

41

Page 42: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

42

Network Services and BenefitsNetwork Services and Benefits

Services offered by computer networksElectronic mail (email)

Bulletin boards

News groups

Chat rooms

Resource sharingPhysical resources

Logical resources

Page 43: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

43

Network Services and Benefits (continued)Network Services and Benefits (continued)

Services offered by computer networks

Client-server computing

Information sharing

Information utility

Electronic commerce (e-commerce)

Page 44: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

44

A Brief History of the Internet and the World Wide Web: The InternetA Brief History of the Internet and the World Wide Web: The Internet

August 1962: first proposal for building a computer network

Made by J. C. R. Licklider of MIT

ARPANETBuilt by the Advanced Research Projects Agency (ARPA) in the 1960s

Grew quickly during the early 1970s

Page 45: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

45

The Internet (continued)The Internet (continued)

NSFNet: A national network built by the National Science Foundation (NSF)

October 24, 1995: Formal acceptance of the term “Internet”

Internet service providers start offering Internet access once provided by the ARPANET and NSFNet

Page 46: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

46

Figure 7.20State of Networking in the Late 1980s

Page 47: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

47

The World Wide WebThe World Wide Web

Development completed in May 1991

Designed and built by Tim Berners-Lee

ComponentsHypertext

A collection of documents interconnected by pointers called links

URL (Uniform Resource Locator)The worldwide identification of a Web page located on a specific host computer

Page 48: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

48

Figure 7.21Hypertext Documents

Page 49: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

49

Summary of Level 3Summary of Level 3

Virtual environmentCreated by system softwareEasy to use and easy to understandProvides services such as:

Resource managementSecurityAccess controlEfficient resource use

Operating systems continue to evolve

Page 50: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

50

SummarySummary

Computer network: a set of independent computer systems connected by telecommunication links

Options for transmitting data on a network: dial-up telephone lines, DSL, cable modem, Ethernet, Fast Ethernet

Types of networks: local area network (LAN) and wide area network (WAN)

Page 51: Chapter 7: Computer Networks, the Internet, and the World Wide Web 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: 05-5342601

51

SummarySummary

The Internet is a huge interconnected "network of networks"

TCP/IP is the Internet protocol hierarchy, composed of five layers: physical, data link, network, transport, and application

The World Wide Web is an information system based on the concept of hypertext