Computer Networks and the Internet
1.1.2 第二种讲法—–服务讲法
as an infrustructure that provides services to applications .
互联 应用运行于终端上,而不是运行于互联 中心的包交换机。尽管包交换机促进了终端间的数据交换。
那么一个终端上的程序是怎么指示互联 把数据传输到指定的另一台终端上正在运行的程序那里呢连接于互联 的终端提供API来详细说明这个问题。
API(Application Programming Interface)是发送端程序必须遵循的一系列规矩,这样互联 才能把数据传输到指定的目标程序。
For now, let’s draw upon a simple analogy, one that we will frequently use in this book. Suppose Alice wants to send a letter to Bob using the postal service. Alice, of course, can’t just write the letter (the data) and drop the letter out her window. Instead, the postal service requires that Alice put the letter in an envelope; write Bob’s full name, address, and zip code in the center of the envelope; seal the envelope; put a stamp in the upper-right-hand corner of the envelope; and finally, drop the envelope into an official postal service mailbox. Thus, the postal service has its own “postal service API,” or set of rules, that Alice must follow to have the postal service deliver her letter to Bob. In a similar manner, the Internet has an API that the program sending data must follow to have the Internet deliver the data to the program that will receive the data.
1.1.3 What is a Protocol
A Human Analogy
1.2.1 Access Networks
FTTH : fiber to the home ,provide an optical fiber path from the CO directly to the home .
FTTH’s PON distribution architecture
1.3.1 Packet Switching
从源头终端发送message到目标终端,源头终端会把message分成许多小的packets,从source到destination,每个packet都要穿过通信链路和包交换机(包括两种:路由器和链路层交换机),包在通信链路中传输都是full transmission rate 。
Store-and-Forward Transmission
这种方法要求在输出数据之前包交换机必须接收到整个packet。
Forwarding Tables and Routing Protocols
互联 中 ,每个终端都有一个IP地址 ,当发送方想要发送包到目的地时 ,发送方会在包的header包含目的地的IP地址 。当包到达路由器 ,路由器会看IP地址的一部分 ,并且把包发送到相邻路由器 。 更准确的说 ,每一个路由器都有转发地址表来指示目的地地址或者目的地地址的部分 ,当包到达路由器 ,路由器查看包头的地址并查找转发地址表 ,找到合适的导出链路之后就把它发送出去 。
我们已经知道路由器利用包中的地址来查找转发表来决定合适的导出链路 ,但是这又产生另外一个问题 ,这张表是怎么被设置的呢 个在第四章讲 ,但是告诉你互联 有一些路由协议用来自动的生成转发表 。
文章知识点与官方知识档案匹配,可进一步学习相关知识 络技能树认识身边的计算机 络常见的 络设备22469 人正在系统学习中
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!