计算机网络

60
计计计计计 主主 主主主 Email [email protected]

Upload: sierra-mcdowell

Post on 01-Jan-2016

48 views

Category:

Documents


10 download

DESCRIPTION

计算机网络. 主讲:肖来胜 Email : [email protected]. 第 1 章 计算机网络与网络协议. 主要内容. 计算机网络的概念与网络协议体系结构 ISO / OSI 开放系统互连参考模型 物理层 数据链路层 网络层 传输层 会话层 表示层 应用层. 计算机网络的概念与网络协议体系结构. 计算机网络的空前发展. 计算机网络的产生和发展特别是 Internet 的发展在现代科技史上具有重大的意义和深远的影响。 - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: 计算机网络

计算机网络主讲:肖来胜

Email : [email protected]

Page 2: 计算机网络

第 1 章 计算机网络与网络协议

Page 3: 计算机网络

主要内容• 计算机网络的概念与网络协议体系结构• ISO / OSI 开放系统互连参考模型• 物理层• 数据链路层• 网络层• 传输层• 会话层• 表示层• 应用层

Page 4: 计算机网络

计算机网络的概念与网络协议体系结构

Page 5: 计算机网络

计算机网络的空前发展

• 计算机网络的产生和发展特别是 Internet 的发展在现代科技史上具有重大的意义和深远的影响。

• 到 2002 年底,全球 Internet 用户达 6.55 亿,比2001 年同期增长 30% ,其中中国用户达 5560 万(联合国贸易发展会议报告 2002 )

Page 6: 计算机网络

上网计算机数

• 我国上网计算机数由 1997.1 的 29.9 万台增加到 2003.1 的 2083 万台。 ------CNNIC 2003.1

Page 7: 计算机网络

上网用户数

• 我国上网用户数由 1997.1 的 62 万增加到 2003.1 的 5910 万。 ------CNNIC 2003.1

Page 8: 计算机网络

网络数据传输速率

• 以太网数据传输速率的提高( Mb/s )

2.94 10 1001000

10000

0

2000

4000

6000

8000

10000

12000

1975年 1983年 1995年 1998年 2002年

Page 9: 计算机网络

集成电路和计算机技术的发展

第一台电子计算机 ENIAC420,000,000

2,300

晶体管数目

4004 奔腾 45000 次加法 / 秒 , 体重 28 吨 , 占地 170m2 , 18800 只电子管

Page 10: 计算机网络

摩尔定律

• 摩尔定律:每 18 个月芯片能力翻一翻

Page 11: 计算机网络

什么是计算机网络?

• An interconnected collection of autonomous computers. ----Professor Andrew S. Tanenbaum

• A collection of computers and other devices that are interconnected. Provide ubiquitous access to shared resources, allow remote users to commu-nicate, perform transactions. ---- “Introduction to Computer Networks” ,

CS Dept. Stanford Uni. USA

Page 12: 计算机网络

计算机网络示意图

Page 13: 计算机网络

计算机网络的产生

50 年代中期 早期的计算机网络是计算机和电话通信系

统相结合的产物 , 是以单台计算机为中心的远程联机系统。

美国地面防空系统 SAGE

美国航空公司飞机票预定系统 SABER-I

Page 14: 计算机网络

远程联机系统

Page 15: 计算机网络

分组交换网的出现

60 年代后期 多台有自主处理能力的计算机用通信线

路连接 , 通信使用分组交换方式。 ARPANET

存储转发( store and forward ) 分组交换( packet switching )

Page 16: 计算机网络

存储转发的计算机网络

Page 17: 计算机网络

计算机网络体系结构的形成

计算机网络体系结构 : 功能层次、协议、服务 * SNA, DNA 等 70-80 年代,封闭 * ISO/OSI 标准 83 年,开放系统互连基本参考

模型 OSI/RM (Open System Interconnection Basic Reference Model) , OSI 国际标准

* TCP/IP 体系结构 80 年代初, ARPANET 使用 TCP/IP, 支持网络互联,发展成为 Internet

Page 18: 计算机网络

局域网的产生和发展

计算机局域网 LAN ( Local Area Network ):一个重要而又活跃的领域 .

PC-LAN

70 年代 兴起 Ethernet, Cambridge Ring

80 年代 发展 Ethernet, Z-net, Omninet, C-net

90 年代 成熟 Windows NT, NetWare

Page 19: 计算机网络

局域网的产生和发展

LAN 特点: 1. 地理范围有限, 0.1km ~ 10km ; 2. 带宽高,数据传输率 1Mbps ~ 100 Mbps ; 3. 传输可靠,误码率 10-7 ~ 10-12 ; 4. 结构简单 , 总线、环型及星型拓扑结构; 5. 单一组织所拥有和使用。

Page 20: 计算机网络

Internet 时代

* 1996 美国国家科学基金会, NGI , vBNS 。美国 大学 Internet2 协会 , Abilene , 速率 2.5Gb/s 。 * 中国高速互联研究实验网 NSFCNet ,国家 863

中 国高速信息示范网 CAINONet, 中科院中国先进 互联网 CAINet 。 * IPv6 , 128 位; IP over DWDM ,光互联网。

Page 21: 计算机网络

Internet 时代

内联网 Intranet

因特网技术和工具 (TCP/IP 协议 , WWW技术等)构造企业内部网。

Page 22: 计算机网络

计算机网络技术国际标准化组织

1. 国际标准界标准化组织 国际标准化组织 ISO 电气电子工程师协会 IEEE2. 因特网标准界组织 因特网协会 (Internet society) 因特网体系结构委员会 IAB 因特网研究特别任务组 IRTF 因特网工程特别任务组 IETF Internet编号管理局 IANA Internet 标准: RFC(Request For Comments)文档3. 电信界标准化组织 国际电信联盟 ITU ( 原 CCITT )

Page 23: 计算机网络

计算机网络体系结构ISO/OSI体系结构概述

开放系统互联参考模型 OSI/RM OSI/RM 的 7 个层次

层号 中文名称 英文名称 英文缩写7 应用层 Application Layer A

6 表示层 Presentation Layer

P

5 会话层 Session Layer S

4 传输层 Transport Layer T

3 网络层 Network Layer N

2 数据链路层 Data Link Layer DL

1 物理层 Physical Layer PH

Page 24: 计算机网络

OSI 环境中的数据流

Page 25: 计算机网络

ISO/OSI 的一些基本概念

1. 实体( entity ) 对等实体( peer entities )

2. 协议( protocol ) 三要素: 语法、语义、同步 3. 协议数据单元 PDU (Protocol Data Unit)

4. 服务( service ) 5. 服务访问点 SAP ( Service Access Point ) 6. 服务原语 (service primitive)

Page 26: 计算机网络

网络层对等实体通信的例子

Page 27: 计算机网络

ISO/OSI 各层基本功能

1. 物理层 无结构的比特流( bit stream )。编码解码,机械、 电气、功能和过程的特性 。2. 数据链路层 帧( frame) 。链路建立与释放,帧的封装与解封 , 传输透明性,差错与流量控制 。 3. 网络层 分组( packet) 。虚电路和数据报两种传输服务, 路由选择与更新,拥塞控制。

Page 28: 计算机网络

ISO/OSI 各层基本功能

4. 传输层 报文( message )。传输连接建立与拆除, 流 量与拥塞控制, 差错控制, 网络服务质量 . 5. 会话层 控制、协调应用进程间的对话,同步。 6. 表示层 信息经传输意义不变 , 局部语法和传输语法。 7. 应用层 面向用户, VTP, FTAM, J TM, RDA, MHS.

Page 29: 计算机网络

The Physical Layer

• Magnetic Media

• Twisted Pair

• Coaxial Cable

• Fiber Optics

Page 30: 计算机网络

Twisted Pair

(a) Category 3 UTP.(b) Category 5 UTP.

Page 31: 计算机网络

Coaxial Cable

A coaxial cable.

Page 32: 计算机网络

Fiber Optics

(a) Three examples of a light ray from inside a silica fiber impinging on the air/silica boundary at different angles.

(b) Light trapped by total internal reflection.

Page 33: 计算机网络

Fiber Cables

(a) Side view of a single fiber.(b) End view of a sheath with three

fibers.

Page 34: 计算机网络

Fiber Cables

A comparison of semiconductor diodes and LEDs as light sources.

Page 35: 计算机网络

Radio Transmission

(a) In the VLF, LF, and MF bands, radio waves follow the curvature of the earth.

(b) In the HF band, they bounce off the ionosphere.

Page 36: 计算机网络

Communication Satellites

VSATs using a hub.

Page 37: 计算机网络

Public Switched Telephone System

• Structure of the Telephone System

• The Politics of Telephones

• The Local Loop: Modems, ADSL and Wireless

• Trunks and Multiplexing

• Switching

Page 38: 计算机网络

Structure of the Telephone System

A typical circuit route for a medium-distance call.

Page 39: 计算机网络

Major Components of the Telephone System

• Local loops Analog twisted pairs going to houses and

businesses• Trunks

Digital fiber optics connecting the switching offices

• Switching offices Where calls are moved from one trunk to

another

Page 40: 计算机网络

The Local Loop: Modems, ADSL, and Wireless

The use of both analog and digital transmissions for a computer to computer call. Conversion is done by the modems and codecs.

Page 41: 计算机网络

Circuit Switching

(a) Circuit switching.

(b) Packet switching.

Page 42: 计算机网络

Message Switching

(a) Circuit switching (b) Message switching (c) Packet switching

Page 43: 计算机网络

The Data Link Layer

• Services Provided to the Network Layer

• Framing

• Error Control

• Flow Control

Page 44: 计算机网络

Functions of the Data Link Layer

• Provide service interface to the network layer

• Dealing with transmission errors

• Regulating data flow

• Slow receivers not swamped by fast senders

Page 45: 计算机网络

Functions of the Data Link Layer

Relationship between packets and frames.

Page 46: 计算机网络

Services Provided to Network Layer

(a) Virtual communication.(b) Actual communication.

Page 47: 计算机网络

Services Provided to Network Layer

Placement of the data link protocol.

Page 48: 计算机网络

Framing

A character stream. (a) Without errors. (b) With one error.

Page 49: 计算机网络

Framing (2)

(a) A frame delimited by flag bytes.(b) Four examples of byte sequences before

and after stuffing.

Page 50: 计算机网络

Framing (3)

Bit stuffing

(a) The original data.

(b) The data as they appear on the line.

(c) The data as they are stored in receiver’s memory after destuffing.

Page 51: 计算机网络

Error Detection and Correction

• Error-Correcting Codes

• Error-Detecting Codes

Page 52: 计算机网络

Error-Correcting Codes

Use of a Hamming code to correct burst errors.

Page 53: 计算机网络

Error-Detecting Codes

Calculation of the polynomial code checksum.

Page 54: 计算机网络

The Network Layer

• Store-and-Forward Packet Switching• Services Provided to the Transport Layer• Implementation of Connectionless Service• Implementation of Connection-Oriented Service• Comparison of Virtual-Circuit and Datagram

Subnets

Page 55: 计算机网络

Store-and-Forward Packet Switching

The environment of the network layer protocols.

fig 5-1

Page 56: 计算机网络

Implementation of Connectionless Service

Routing within a diagram subnet.

Page 57: 计算机网络

Implementation of Connection-Oriented Service

Routing within a virtual-circuit subnet.

Page 58: 计算机网络

The Transport Layer

• Services Provided to the Upper Layers• Transport Service Primitives• Berkeley Sockets• An Example of Socket Programming:

– An Internet File Server

Page 59: 计算机网络

Services Provided to the Upper Layers

The network, transport, and application layers.

Page 60: 计算机网络

The Application Layer

• DNS – The Domain Name System

• Electronic Mail

• The World Wide Web

• The Wireless Web

• Multimedia