码迷,mamicode.com
首页 > Web开发 > 详细

Computer Network学习笔记_1

时间:2016-02-13 23:10:54      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:

  1_1

  开始学习David Weatherall讲的Computer Networks,第一节课主要讲Goals and Motivation,Focus of the course是Networking,讨论packets and internet,会讲底层的Communications和上层的Distributed systems,就是Network如何建立,上层apps能做什么。The main point是学习Internet如何运行,TCP/IP,DNS,HTTP,NAT,VPNs,802.11etc等acronym是什么,学习computer networks的基本原理。虽然网络发展日新月异,但是学习基本原理不变,能够帮助理解最新的技术。感受是David的slides做的很好,讲课很生动,举例很多。知道为什么建立Networks,要做成什么,能帮助我们将来建立更有效率的Networks。

  1_2

  有一个重要概念,Statical Multiplexing。同样带宽下如何能够有更多用户。另外介绍一个重要概念,The Value of Connectivity。1980年Metcalfe提出,网络越大,价值越大,N个结点的网络价值最大接近N的平方。

  1_3

  介绍Parts of a Network的一些acronym,host,router,link,app。App是使用Network的。Host是网络终端,比如笔记本电脑。Router给links间传输信息的,比如cable/DSL modem。Link连接结点的,比如有线、无线。Types of Links有三种:Full-duplex双双工,两边可同时通信;Half-duplex半双工,两边非同时通信;Simplex单工,单向通信。依据scale命名的网络:PAN、LAN、MAN、WAN、The Internet。Network Boundaries:Router和link表示ISP,host、router、link表示network。Key Interfaces:Network-application interfaces define how apps use the network:Sockets;Network-network interfaces define how nodes work together:Traceroute can peek in the network;

  1_4

  学习how to write an application and use the network。对Network-Application Interface做些了解。Apps通过Socket API和Network通讯。Sockets是一种数据结构Sockets let apps attach to the local network at different ports。Ports是地址。Socket API函数有SOCKET、BIND、LISTEN、ACCEPT、CONNECT、SEND、RECEIVE、CLOSE。用Socket API函数来完成Client和Server Program(outline)。一应一答,像打电话。不过是一边先accept或recv另一边再connect或send。另外有一个getaddrinfo()意思是翻译,比如将www.haha.com翻译为数字地址。

Computer Network学习笔记_1

标签:

原文地址:http://www.cnblogs.com/lxabc/p/5188382.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!