tags:
- Network
Chapter 1: Computer Networks and the Internet
■ Get "feel", "big picture", introduction to terminology
■ What is the Internet? What is a protocol?
■ Network edge: hosts, access network, physical media
■ Network core: packet/circuit switching, internet structure
■ Performance: loss, delay, throughput
■ Protocol layers, service models
■ Security
■ History
Internet is a network of networks.
In the “Nuts and Bolts” description of the Internet, we consider several components that constitute the network.
如其名所示,这种Internet的描述从应用的角度将Internet分为两大部分:
A protocol defines the format and the order of messages exchanged between two or more communicating entities, as well as the actions taken on the transmission and/or receipt of a message or other event.
End systems are also referred to as hosts because they host (that is, run) application programs.
网络边缘(The network edge),即主机系统host/end systems,边缘系统上运行的网络应用是网络之所以存在的原因。有时也将hosts更细分为客户机(Clients)和服务器(Servers)。数以千计的服务器共同组成服务器农场(server farm) 也叫数据中心(Data center),用于content residence。
The network that physically connects an end system to the first router (also known as the “edge router”)
□ 数字用户线(Digital Subscriber Line)
居民通常从电信公司(Telephone company) 获得DSL的接入网服务,因此当用户使用DSL上网时,telco就是用户的ISP;
在下图中,Home PC使用数字用户线(Digital Subscriber Line)
居民通常从电信公司(Telephone company) 获得DSL的接入网服务,因此当用户使用DSL上网时,telco既是用户的ISP;
在下图中,Home PC使用DSL modem将数据在现有的DSL线路上进行交换,在线路上的数据会在电信公司本地CO中的 DSL(Digital Subscriber Line 数字用户线路)通常不是基于电路交换(circuit switching)的 DSLAM(Digital Subscriber Line Access Multiplexer) 频分复用对线路传输过来的信息进行分频处理;
在用户端,分路器(Splitter) 把电话信号发给Home phoen并将数据信号转发给DSL modem;
因为上载/下载的速率不同,所以这种接入是不对称的(Asymmetric) ,这和上载/下载所分配的频段有关。(ADSL)
Hundreds or even thousands of households connect to a single DSLAM,因而这种接入网方式是共享的。
□ Cable Internet Access(有线网络接入)
鉴于DSL network access是在电信公司telco已有电话线的基础上的network access,cable Internet access也做了类似的事情。Cable Internet access在电视公司已有电视线的基础上接入网络,由于光纤和同轴电缆同时存在于这个系统,因而又称这种网络为HFC(Hybrid Fiber Cable) 即混合光纤同轴网络。
在有线网络接入中,用户的住所需要有一个电缆调制解调器(cable modem),而有线运营商的设施(通常是有线电视的头端)则需要有一个电缆调制解调器终端系统(CMTS)。这两者通过同轴电缆连接到混合光纤同轴(HFC)网络。
电缆和光纤将每个家庭接入到ISP的路由器,各用户线缆头端的带宽共享。
使用标准:DOCSIS
□ FTTH(Fiber To The Home)
光纤到户有两种架构(Architechure)用于实现信号的分配:
□ 5G fixed wireless
□ 如下图,以太网用户使用 双绞线(Twisted-pair copper) 接入以太网交换机,随后接入Internet。以太网接入网可以为用户提供100 Mbps to tens of Gbps的带宽,鉴于服务器可能只有1 Gbps 到10 Gbps access。
□ 现在,几乎每个人都会使用无线的局域网(Wireless Local-Access-Network)来上网。现在的企业也通通使用WLAN来联网,但WLAN通常只有十多米的access范围,因此企业多使用以太网接入。
即使以太网和WiFi最开始是在企业中使用的,现在也是家庭接入网中不可分割的一部分。
将媒介按无线和有线可以将媒介分为两类:
When a source end system wants to send a packet to a destination end system, the source includes the destination’s IP address in the packet’s header. When a packet arrives at a router in the network, the router examines a portion of the packet’s destination address and forwards the packet to an adjacent router. More specifically, each router has a forwarding table that maps destination addresses (or portions of the destination addresses) to that router’s outbound links. When a packet arrives at a router, the router examines the address and searches its forwarding table, using this destination address, to find the appropriate outbound link. The router then directs the packet to this outbound link.
Dedicated and guaranteed, not shared.
对Internet有了这样一个宏观的视角后,我们现在需要考虑的问题是如何把这些"puzzles"拼起来!一个简单的方式是让每个ISP与其他ISPs相连。但这样做的开销会随着ISP的数量指数增长(Big O-notation of n²),因此我们需要另辟蹊径,以下介绍五种结构:
Delay和 Packet loss是计算机网络永恒的话题。人们想要瞬间传输任意大小的 packets,但由于物理法则的限制,我们只可能在尽量短的时间传输尽可能多的 packets并保证 packet尽可能少的出错,即减少 delay和 loss,增加 throughput。
下图展示了一个end-to-end传播路径的一部分。当host上传数据包packet时,数据包会首先到达路由器A的输出缓冲器中。
前面我们讨论了结点间的时延。有了这个基础,端到端的时延就是多个nodal dalay的加和。假设source和destination之间有N-1个路由器,假设网络不拥塞。即有:
在网络通信中,除了处理时延、传输时延和传播时延之外,端系统中还可能存在其他显著的时延。例如:
除去时延(delay)和数据包丢失/分组丢失(packet loss),另一个衡量计算机网络性能的因素就是端到端的吞吐率。
以主机A要向主机B发送一个大文件为假设,下面我们将介绍两个吞吐率的概念:
为更深入地理解吞吐率的概念,我们假设服务器端向客户端传输文件的一个场景如下图。在上面 a 图中,服务器通过链路吞吐率为
下图图b是另一个scenario system,它由两个end system和一堆路由器组成,这时的端到端吞吐率的大小为:
现在,我们可以轻松地想到从Server向Client传输一个大小为F bits的文件时,大概需要
我们观察如下图的情形。前面我们已经得知end-to-end throughput是由下面的公式:
在1.6节,我们需要了解一些网络领域的名词:
更多网络安全的相关内容将留在 Chapter 8 单独介绍。
1.7节作为了解型内容。