Computer Network 笔记 1

#计算机网络 #coursera

Week One


1.1 Goals and Motivation

The Main Point

1. To learn how the Internet works
2. To learn the fundamentals of computer networks

The development of Internet


Internet–Societal Impact

An engine of economic growth
- Advertising-sponsored search
- "Long tail" online stores
- Online marketplaces
- Crowdsourcing(众筹)

The reason to learn the fundamentals is that all we learn could apply to all computer networks.


Key problem


Example of upheavals in the past 1-2 decades

1.2 Uses of Networks

Example Uses of Networks

- Work
- Home
- Mobile

For User Communication

- VoIP(voice-over-IP)
- Video conferencing
- Instant messaging
- Social networking

For Resource Sharing

- Many user may access the same underlying resource
- More cost effective than dedicated resources per user.

Statistical Multiplexing

+ Sharing of network bandwidth between users according to the statistics of their demand
  - Multiplexing just means sharing
  - Useful because users are mostly idle and their traffic is bursty.

Content Delivery

  • Same content is deliverd to many users(web pages)
  • Use replicas in the network


Metcalfe’s Law

+ The value of a network of N nodes is proportional to N^2. ---

1.3 Network Components

Parts of a Network   host是可以挂app的node,router是单纯转发信息的node.


Components Names


Types of Links

+ Full-duplex(全双工)
  可以两边同时传信息
+ Half-duplex(半双工)
  两边都可以传信息,但不能同时传
+ Simplex(单工)
  只有一边能传信息

Wireless Links use broadcast. Received by all nodes in range.


Example Networks

  • WiFi(802.11)
  • Ethernet(以太网)
  • ISP(Internet Service Provider)
  • Cable/DSL
  • Mobile phone / cellular(2G, 3G, 4G)
  • Bluetooth
  • Telephone
  • Satellite

Network names by scale


Internetworks(网络)

+ An internetwork or internet 就是把一堆网络联合在一起的网络
+ The Internet是最大的,最常用的internet.

Network Boundaries


Key Interfaces


1.4 Sockets

  • Simple abstraction to use the network
  • Support two kinds of network services:streams(流), datagrams(数据报)


1.5 Traceroute

  通过探测连续的结点传递消息的方式来找出网络的路径。


1.6 Protocols and Layers

  协议和分层让网络的使用结构化和模块化。协议实体水平对话,且只用到下一层的服务。

Encapsulation

Done with demultiplexing keys in the headers.

Advantages of layering information hiding and reuse.

Disadvantages of layering Adds overhead and hides information which causes some apps could not get what they want.

1.7 Reference Models

OSI Reference Model

  国际标准,功能划分好,但没有在实际中使用。

Internet Reference Model

  网络层使用IP协议,这样传输层、Link层的协议就可以变化很大,只要符合IP协议的接口要求。


制定标准的组织


一些名词


1.8 History of the Internet

  • ARPANET(packet switching and decentralized control)
  • NSFNET(TCP/IP, DNS, Berkeley sockets, BGP):因PC和以太局域网的出现而大量增长
  • Modern Internet:大量的ISPs出现

Modern Internet Architecture