一、Week1
1. Establishing the Rules
1.1 Reading: About This Course
有几个这个课程提出的学习目标,等学完用来检测一下自己的学习情况。
At the end of this course, you will be able to:
- Explain how protocols and standards benefit a global internetwork.
解释协议和标准的作用方式??? - Describe how the Ethernet Protocol transmits data within a LAN.
描述局域网下以太网协议如何传输数据??? - Explain IPv4 addressing and the role of subnet masks.
解释IPv4寻址以及子网掩码的作用??? - Use Cisco Packet Tracer to connect hosts to a wireless router in a LAN.
使用软件在局域网环境下将主机连接到无线路由器 - Use a protocol analyzer or “packet sniffer” to open and examine a data packet that has been transmitted across a network.
使用协议分析器或者数据包分析器来打开并检查一个网络上的数据包 - Examine a Windows computer to locate the physical or MAC address used send and receive data.
检查Windows计算机,找到用于发送和接收数据的物理地址(或MAC地址)。
1.2 Reading: Cisco Packet Tracer 软件介绍
1.3 Reading: The Three Elements
自古至今 任何一种网络的主要目的都是给我们提供一种交流和分享信息的途径。而分享信息则会让人类进步。
所有通信都以一条消息开始,从一个个体或者设备发送到另一个。而随着科技进步,消息发送、接收、传递的方法都会改变。
所有通信方法都具有三个共同要素:
- Message source or Sender
- Destination or Receiver of the message
- Transmission medium or channel
Watch the animation below to see how messages are sent and received in human and computer communication.

1.4 Reading: Communication Protocols
日常生活中的通信具有不同形式,不同的应用场景具有不同规则。
在开始彼此沟通之前,我们建立规则或协议来管理对话,如图1至图3所示。为了成功地传递和理解消息,必须遵循这些规则或协议。成功的人类交流协议包括:
- An identified sender and receiver 已标志的发送方和接收方
- Agreed upon method of communicating (face-to-face, telephone, letter, photograph) 商定的沟通方式
- Common language and grammar 共同的语言和语法
- Speed and timing of delivery 交付的速度和时间
- Confirmation or acknowledgment requirements 确认需求
网络通信中使用的技术与人类间对话的基本原理类似。

Firgure1. Method

Firgure2. Language

Firgure1. Confirmation
1.5 Video: Network Protocols
1.6 Reading: Why Protocols Matter 为何协议很重要?
In both a wired and wireless environment, a local network is defined as an area where all hosts must “speak the same language” or in computer terms “share a common protocol”.
在有线和无线环境中,局域网均定义为所有主机必须“说同一语言”或用计算机术语“共享通用协议”的区域。
Networking protocols define many aspects of communication over the local network, including: message format, message size, timing, encoding, and message patterns.
Review the figure below for more information.

Timing
Many network communication functions are dependent on timing. Timing determines the speed at which the bits are transmitted across the network. It also affects when an individual host can send data and the total amount of data that can be sent in any one transmission.
时序
许多网络通信功能取决于时序。时序决定了比特在网络上传输的速度。它还会影响单个主机何时可以发送数据以及在任何一次传输中可以发送的数据总量。
Message Size Message可译为报文
The rules that govern the size of the pieces communicated across the network are very strict. They can also be different, depending on the channel used. When a long message is sent from one host to another over a network, it may be necessary to break the message into smaller pieces in order to ensure that the message can be delivered reliably.
Encapsulation 封装
Each message transmitted on a network must include a header that contains addressing information that identifies the source and destination hosts, otherwise it cannot be delivered. Encapsulation is the process of adding this information to the pieces of data that make up the message. In addition to addressing, there may be other information in the header that ensures that the message is delivered to the correct application on the destination host.
Message Format
When a message is sent from source to destination, it must use a specific format or structure. Message formats depend on the type of message and the channel that is used to deliver the message.
Encoding
Messages sent across the network are first converted into bits by the sending host. Each bit is encoded into a pattern of sounds, light waves, or electrical impulses depending on the network media over which the bits are transmitted. The destination host receives and decodes the signals in order to interpret the message.
Message Patterns
Some messages require an acknowledgment before the next message can be sent. This type of request/response pattern is a common aspect of many networking protocols. However, there are other types of messages that may be simply streamed across the network, without concern as to whether or not they reach their destination.
(暗示TCP UDP???)
2. So Who Makes the Rules
2.1 Reading: The Internet and Standards
标准是一组规则,用来决定必须如何做某事。网络和Internet标准确保所有连接到网络的设备以相同的方式实现相同的规则或协议集。使用标准,不同类型的设备可以通过互联网互相发送信息.

2.2 Reading: Network Standards Organizations
Internet标准是讨论,问题解决和测试的全面循环的最终结果。如图所示,这些不同的标准由各种组织开发,发布和维护。当提出新标准时,开发和批准过程的每个阶段都记录在编号为Request for Comments(RFC)的文档中,以便跟踪该标准的演变。Internet标准的RFC由Internet工程任务组(IETF)发布和管理。
Q: 没有统一的标准码?这段话是不是这个意思?“?You can check out the IETF website at http://ietf.org.

3. Visualizing How Protocols Work
3.1 Reading: Stacking Them up
主机之间的成功通信需要多种协议之间的交互。而这些协议通过安装在每个主机和网络设备上的软件和硬件来实现。
The interaction between the different protocols on a device can be shown as a protocol stack, as shown in the figure. A stack illustrates the protocols as a layered hierarchy, with each higher-level protocol depending on the services of the protocols shown in the lower levels.(协议栈分层)
The separation of functions enables each layer in the stack to operate independently of others. For example, you can use your laptop computer connected to a cable modem at home to access your favorite website, or view the same website on your laptop using wireless at the library. The function of the web browser is not affected by the change in the physical location nor the method of connectivity.
功能的分离使堆栈中的每一层都可以独立运行。例如,您可以在家里使用连接到电缆调制解调器的便携式计算机访问您喜欢的网站,或在图书馆使用无线方式在便携式计算机上查看同一网站。Web浏览器的功能不受物理位置的更改或连接方法的影响。
网上的精选摘要
TCP/IP(Transmission Control Protocol/Internet Protocol,传输控制协议/网际协议)是指能够在多个不同网络间实现信息传输的协议簇。3.2 Reading: Using a Layered Model
tcp/ip是事实标准,分4层。osi模型是国际标准,分7层。讲课的时候,一般把他们综合起来讲,就说是5层。他把网络接口层分开为数据链路层和物理层了。分层模型帮助我们可视化各种协议如何协同工作以支持网络通信。分层模型描述了在每一层中发生的协议的操作,以及与它上面和下面的层的交互。分层模型有很多好处:
- 协助协议设计,因为在特定层上运行的协议定义了它们所作用的信息,并定义了上下层的接口
- 促进竞争,因为来自不同供应商的产品可以一起工作
- 允许技术更改在一个层次发生,而不影响其他层次
- 提供描述网络功能和功能的通用语言
第一个网络通信的分层模型创建于20世纪70年代初,被称为Internet模型。它定义了通信成功所必须具备的四类功能。用于Internet通信的一套TCP/IP协议遵循这个模型的结构,如图所示。因此,Internet模型通常称为TCP/IP模型。

3.3 Video: Protocols-Stacking Them Up

** Q:(每个层次不只有这么多协议,这里只是个范例?)**- 1、The Ethernet protocol is used for NIC card, network interface card to network interface card communications in the same network.
- 2、IP协议(4或6) makes sure that the message gets from the original source to the final destination, whether or not that message is within the same network or has to go across multiple networks
- 3、 TCP makes sure that the information, the message gets there reliably
- 4、 This case HTTP. HTTP governs the exchange or transfer of HTML
3.4 Reading: Different Types of Network Models
两种基本类型的模型: 协议模型 & 参考模型
- 1、协议模型 —— 该模型与特定协议套件结构非常匹配。协议套件包括一组相关协议,这些协议通常提供与数据网络通信所需的所有功能。TCP/IP模型是一个协议模型,因为它描述了TCP/IP套件中每一层协议上发生的功能。
- 2、参考模型 —— 这种类型的模型描述了必须在特定层完成的功能,但没有确切说明应如何完成功能。参考模型并不打算提供足够的细节来精确定义每个协议在每个层上的工作方式。参考模型的主要目的是帮助更清晰地理解网络通信所需的功能和过程。
最广为人知的互联网络参考模型是由国际标准化组织(ISO)的开放系统互连项目创建的。它用于数据网络设计,操作规范和故障排除。该模型通常称为OSI模型。
下面是关于OSI模型的不同层的更多信息。
Application 应用层
The application layer provides the means for end-to-end connectivity between individuals in the human network using data networks.
Presentation 表示层
The presentation layer provides for common representation of the data transferred between application layer services.
Session 会话层
The session layer provides services to the presentation layer to organize its dialogue and to manage data exchange.
Transport 传输层
The transport layer defines services to segment, transfer, and reassemble the data for individual communications between the end devices.
Network 网络层
The network layer provides services to exchange the individual pieces of data over the network between identified end devices.
Data Link 数据链路层
The data link layer protocol describes methods for exchanging data frames between devices over a common medium.
Physical 物理层
The physical layer protocol describes the mechanical, electrical, functional, and procedural means to activate, maintain, and de-activate physical connections for bit transmission to and from a network device.4. Working with the OSI Model
4.1 Reading: Dividing the Tasks
OSI 模型将网络通信分解为多个过程。每个过程只是较大任务的一小部分。
类比汽车制造厂,装配一辆汽车的复杂任务可以分解为多个子任务让其变得更加简单。
类似的,OSI模型帮助我们在进行故障排除以识别和解决网络问题时关注于一个层。网络团队经常通过OSI模型层的数量来引用网络中发生的不同功能,OSI模型层指定了该功能。例如,为跨媒体传输而对数据位进行编码的过程发生在第1层,即物理层。数据的格式可以通过笔记本电脑或手机中的网络连接进行解释,该格式描述在第2层,即数据链路层。

4.2 Reading: Comparing the OSI and TCP Models
The OSI model was created in the early 1980’s as a conceptual reference model with seven layers that specify characteristics and standards for the end-to-end communication process. Its goal was the interoperability of different communications systems.OSI模型是在1980年代初期创建的,作为概念性参考模型,具有七个层,用于指定端到端通信过程的特征和标准。其目标是实现不同通信系统的互操作性。
The TCP/IP model is another model with only four layers that relate to the OSI layers. This reference model also provides characteristics and standards for end-to-end communications. The TCP/IP model is more of an implementation model and is currently more widely referenced than the OSI model.TCP / IP模型是另一个只有四个与OSI层相关的层的模型。该参考模型还提供了端到端通信的特性和标准。 TCP / IP模型更多地是一种 实现模型,并且与OSI模型相比,目前被更广泛地引用。
Because TCP/IP is the protocol suite in use for Internet communications, why do we need to learn the OSI model as well?因为TCP/IP是用于互联网通信的协议套件,为什么我们还需要学习OSI模型?
The TCP/IP model is a method of visualizing the interactions of the various protocols that make up the TCP/IP protocol suite. It does not describe general functions that are necessary for all networking communications. It describes the networking functions specific to those protocols in use in the TCP/IP protocol suite. For example: At the network access layer, the TCP/IP protocol suite does not specify which protocols to use when transmitting over a physical medium, nor the method of encoding the signals for transmission. OSI Layers 1 and 2 discuss the necessary procedures to access the media and the physical means to send data over a network.TCP/IP模型是一种可视化构成TCP/IP协议套件的各种协议的交互的方法。它没有描述所有网络通信所必需的一般功能。它描述了特定于TCP/IP协议套件中使用的那些协议的网络功能。例如:在网络访问层,TCP/IP协议套件没有指定在物理介质上传输时使用哪个协议,也没有指定传输信号的编码方法。OSI第1层和第2层讨论访问媒体的必要程序和通过网络发送数据的物理方法。
The protocols that make up the TCP/IP protocol suite can be described in terms of the OSI reference model. The functions that occur at the Internet layer in the TCP/IP model are contained in the network layer of the OSI Model, as shown in the figure. The transport layer functionality is the same between both models. However, the network access layer and the application layer of the TCP/IP model are further divided in the OSI model to describe discrete functions that must occur at these layers.
可以根据OSI参考模型来描述构成TCP / IP协议套件的协议。如图所示,在TCP / IP模型的Internet层发生的功能包含在OSI模型的网络层中。两种模型之间的传输层功能相同。但是,在OSI模型中进一步划分了TCP / IP模型的网络访问层和应用程序层,以描述必须在这些层上发生的离散功能。

5. Protocols for Wired Networks
5.1 Reading: Why Ethernet
在网络的早期,每个供应商都使用他们自己的专有方法来互连网络设备和网络协议。如果从不同的供应商购买设备,并不能保证这些设备可以协同工作。来自一个供应商的设备可能无法与来自另一个供应商的设备通信。
随着网络的日益普及,各种标准应运而生,这些标准定义了不同供应商的网络设备操作规则。标准在很多方面都有利于网络:
- 方便设计
- 简化产品开发
- 促进竞争
- 提供一致的互连
- 促进培训
- 为客户提供更多供应商选择
目前尚无官方的局域网标准协议,但随着时间的流逝,以太网技术已经变得比其他技术更为普遍。 以太网协议定义了如何格式化数据以及如何通过有线网络传输数据。以太网标准指定了在OSI模型的第1层和第2层运行的协议。如图所示,它已经成为事实上的标准,这意味着以太网是几乎所有有线局域网使用的技术。

5.2 Reading: Ethernet is Constantly Evolving
The Institute of Electrical and Electronic Engineers, or IEEE (pronounced eye-triple-e), maintains the networking standards, including Ethernet and wireless standards. IEEE committees are responsible for approving and maintaining the standards for connections, media requirements and communications protocols. Each technology standard is assigned a number that refers to the committee that is responsible for approving and maintaining the standard. The committee responsible for the Ethernet standards is 802.3.电气和电子工程师协会(IEEE,发音为eye-triple-e)维护网络标准,包括以太网和无线标准。IEEE委员会负责批准和维护连接,媒体要求和通信协议的标准。每个技术标准都分配有一个编号,该编号表示负责批准和维护该标准的委员会。负责以太网标准的委员会是802.3。
Since the creation of Ethernet in 1973, standards have evolved for specifying faster and more flexible versions of the technology. This ability for Ethernet to improve over time is one of the main reasons that it has become so popular. Each version of Ethernet has an associated standard. For example, 802.3 100BASE-T represents the 100 Megabit Ethernet using twisted-pair cable standards. The standard notation translates as:
• 100 is the speed in Mb/s
• BASE stands for baseband transmission
• T stands for the type of cable, in this case, twisted-pair.1973年以太网诞生, 标准不断演变,更快速度,更灵活的版本推出。以太网的这种随时间推移不断改进的能力是它变得如此受欢迎的主要原因之一。每个版本的以太网都有一个相关的标准。例如,802.3 100BASE-T表示使用双绞线标准的100兆以太网。标准符号翻译为:
- 100Mb/s 带宽
- BASE代表基带传输
- T代表电缆的类型,在这种情况下为双绞线。
5.3 Reading: Ethernet Addressing
所有通信都需要一种方法来标识源和目标。而人际交流中的来源和目的地由姓名表示。
(类比)当别人叫你的名字时,你会听到并作出回应,而听到消息的其他人则会忽略该消息,因为并不是叫他们。
在以太网中,有一种类似的方法来标识源主机和目标主机。为连接到以太网的每个主机分配一个物理地址,该地址用于标识网络上的主机。
观看下面的动画,了解如何在主机之间发送以太网帧。

5.4 Video: Ethernet Addressing
5.5 Lab-Determine the MAC Address of a Host
六个字节组成
前三个为 组织唯一标识符 OUI (Organizationally unique identifier); 我的是 94-57-A5 ,惠普生产
后三个为 接口唯一标识符