cs244a-Introduction to Computer Networking-Unit1

Unit 1

学习目标:

  1. how an application use the Internet
  2. The structure of the Internet:The 4 layer model
  3. The Internet protocol(IP)
  4. Basic architectural ideas and principles:
    • Packet switching
    • Layering
    • Encapsulation

1.1 A Day in the life of an Application

  • Dominant model:

    • bidrectional
    • reliable byte stream connection
1. World Wide Web (HTTP)
  • C/S架构
  • 发送commands,接收responses
  • request:"GET / HTTP/1.1"
  • response: "HTTP/1.1 200 OK"
2. BitTorrent
  • P2P架构
  • break files into "pieces"
  • 所有存有pieces file的client被称为swarm,client join and leave swarms
  • tracker追踪swarm的成员,通过torrent file向一个tracker获取swarm中的client列表
  • request: "GET list of clients in swarm"
  • response: "200 OK list of clients"
3. Skype
  • mixed架构
  • 如果两个client能互联,就在client间建立连接--->P2P
  • 如果有一方存在NAT:Client A-----Internet-----NAT---ClientB
    • 由于NAT,B可以连接A,但A无法连接B
    • A cannot open connection to B
    • B在一个Rendezvous上注册,A向Rendezvous发送请求,Rendezvous转发请求给B,B主动和A建立连接
  • 双方均存在NAT
    • 通过一个Relay转发服务器作为中转,转发双方的消息

1.2 What the Internet is: The 4 Layer Internet Model

  1. Application:(http, bit-torrent)

    • application-specific semantics
  2. Transport:(tcp, udp)
    • guarantees correct, in-order delivery of data end-to-end
    • controls congestion
  3. Network:(IP)
    • must use the Internet Protocol(IP)
    • best-effort attempt to deliver datagrams, no promises
    • IP datagrams can get lost, out of order, and can be corrupted
  4. Link:(802.11, 3G, DSL, Ethernet)
    • one-hop control
    • delivers data over a single link between an end host and router, or between routers

two extra things need to know:

  1. IP is the "thin waist"
  2. the 7-layer OSI Model
    • Application------http--------Application----7
    • Application------ASCII-----Presentation--6
    • Transport--------TCP-------Session--------5
    • Transport--------TCP-------Transport------4
    • Network----------IP----------Network--------3
    • Link---------------Ethernet----Link------------2
    • Link---------------Ethernet----Physical------1

1.3 What the Internet is: The IP service model

  1. The Internet Protocol(IP)

    • Transport Segment
    • IP Datagram
    • Link Frame
  2. The IP service Model
    Property Behavior
    Datagram Hop by hop routing
    Unreliable Packets might be dropped because of full wait queue
    Best effort
    Connectionless No per-flow state. Might be mis-sequenced
  3. why simple?
    • faster, more streamlined and lower cost to build and maintain
    • The end-to-end principle: implement features in the end hosts if possible
    • Allows a variety of reliable(or not) services to be built on top
    • Works over any link layer: IP makes very few assumptions about the link layer below
  4. The IP service model
    1. Tries to prevent packets looping forever(TTL, time to live)
    2. Will fragment packets if they are too long
    3. Uses a header checksum to reduce chances of delivering datagram to wrong destination
    4. Allows for new versions of IP
      • IPv4: 32 bit
      • IPv6: 128 bit
    5. Allows for new options to be added to header

Quiz:
In an alternative to the Internet Protocol called "ATM" proposed in the 1990s, the source and destination address is replaced by a unique "flow" identifier that is dynamically created for each new end-to-end communication. Before the communication starts, the flow identifier is added to each router along the path, to indicate the next hop, and then removed when the communication is over. Which of the following statements are implications of this design? Check all that apply.

  1. (+)There is state in the network for every communication flow, rather than just for every destination.
  2. (-)If a link fails, there is no need to update any state in the network.
  3. (-)There must be a centralized controller to manage the insertion and removal of identifiers, as well as update them whenever a flow needs to be re-routed.
  4. (-)It means we no longer need a transport layer to reliably deliver correct, in-order data to applications.

原文地址:https://www.cnblogs.com/Willendless/p/11846158.html

时间: 2024-11-05 22:32:01

cs244a-Introduction to Computer Networking-Unit1的相关文章

MIT Introduction to Computer Science and Programming (Lesson one )

MIT Introduction to Computer Science and Programming (Lesson one ) 这篇文是记载 MIT 计算机科学及编程导论 第一集 的笔记 Lesson one : Goals of the course;what is computation;introduction to data types,operators,and variables 一 讲解课程的任务.课程目标 目标 像一个计算机科学家一样思考 都能够读写程序 tacking t

Note 2 for <Pratical Programming : An Introduction to Computer Science Using Python 3>

Book Imformation : <Pratical Programming : An Introduction to Computer Science Using Python 3> 2nd Edtion Author : Paul Gries,Jennifer Campbell,Jason Montojo Page : Chapter 2.3 to Chapter 2.5 1.A type consists of two things: (1).a set of values (2).

Computer Networking: A Top Down Approach

目录 {:toc} 这本书是计算机网络最好的入门书籍,与传统的计算机网络书籍不同,它采用了自顶而下的方式去讲解.感谢两位十分出色的作者:Jim Kurose和Keith Ross, 他们生动的叙述方式使我觉得计算机网络如此有趣.单单引用文献就有33页,我十分佩服这么严谨又有耐心的人. Keep those cards and letters coming! --谚语 Chapter 1: Computer Networks and the Internet 计算机网络的概览,描绘了这本书蓝图.b

MTH5001: Introduction to Computer Programming

projectMarch 14, 20191 MTH5001: Introduction to Computer Programming 2018/191.1 Final Report Project: "Networks"1.1.1 Instructions:First, please type your name and student number into the Markdown cell below:Name:Student number:You must write yo

Computer Networking | Personal Notes | Temp

快速吸收这些知识,然后进行思考整合记忆.然后学习更高阶的知识,不断升级. Basics of Computer Networking Open system: 也就是连接到网络中的系统.可以进行通信. Closed system: 没有连接到网络中的系统.不可以进行通信. network topology: 在中文中,topology意思是拓扑,也就是网络设备之间的排列方式.有星型的排列方式.P2P排列方式(也就是点对点的排列方式).环状排列方式等等,下图还列举了很多topology,可以将图中

[新书推荐]A Practical Introduction to Computer Vision with OpenCV

一本opencv好书,  在我上传的资源里 http://download.csdn.net/detail/qq_21970857/8504829 Computer Vision is a rapidly expanding area and it is becomingprogressively easier for developers to make use of this field dueto the ready availability of high quality librari

Computer Networking: Network layer

Forwarding and routing 2 important network-layer functions – forwarding and routing. Forwarding: The router-local action of transferring a packet from an input link interface to the appropriate output link interface (within a single router). Terms 'f

edX MITx: 6.00.1x Introduction to Computer Science and Programming Using Python 课程 Week 1: Python Basics Problem Set 1 Problem 3

Assume s is a string of lower case characters. Write a program that prints the longest substring of s in which the letters occur in alphabetical order. For example, if s = 'azcbobobegghakl', then your program should print Longest substring in alphabe

MITx: 6.00.1x Introduction to Computer Science and Programming Using Python Week 2: Simple Programs 4. Functions

ESTIMATED TIME TO COMPLETE: 18 minutes We can use the idea of bisection search to determine if a character is in a string, so long as the string is sorted in alphabetical order. First, test the middle character of a string against the character you'r

chapter 3 introduction to computer science

主机文件: <chapter3.docx>