zoukankan      html  css  js  c++  java
  • Stanford CS144笔记(二)

    Packet Switching Principle

    1. What is packet switching?

    Packet switching is the ideal that we break our data into discrete, self-contained chunks of data, each chunks called a packet, carries sufficient information that a network can deliver packet to it's destination.

    Packet: A self-contained unit of data that carries information necessary for it to reach its destinatioin.

    Packet switching: Independently for each arriving packet, pick its outgoing link. If the link is free, send it. Else hold the packet for later.

    Packet only need to carry the destination address, packet will be transfered to the next switch according to a table.

    2. Two consequences
    1. Simple packet forwarding.
    2. Efficient sharing of links.
    3. No per-flow state required

    Flow: A collection of datagrams belonging to the same end-to-end communication, e.g.a TCP connection.

    Packet switches don't need state for each flow - each packet is self-contained.

    Just forward packets quickly and efficiently.

    • No per-flow state to be added/removed.
    • No per-flow state to be stored.
    • No per-flow state to be changed upon failure.

    Data traffic is bursty:

    • Packet switching allows flows to use all available link capacity.
    • Packet switching allows flows to share link capacity.

    This is called Statistical Multiplexing.

    4. Summary
    • Pakcet switches are simple: they forward packets independently, and dong't need to know about flows.
    • Packet switching is efficient: It lets us efficiently share the capacity among many flows sharing a link.

    Layering Principle

    1. What is Layering?

    2. Layering in a Computer System

    3. Reasons for layering
    1. Modularity
    2. Well defined service
    3. Reuse
    4. Separation of concerns
    5. Continuous improvement

    Encapsulation Principle

    Encapsulation is the result of what happens when you combine layers and packet switching.

    Each protocol layer has some headers.

    A special example: VPN(Virtual Private Network)
    VPN工作原理

    CS专业在读,热爱编程。
    专业之外,喜欢阅读,尤爱哲学、金庸、马尔克斯。
  • 相关阅读:
    shell编程之 ()[] {}
    mysql环境搭建
    CSS布局基础——BFC
    Java线程
    chrome developer tool—— 断点调试篇
    JavaScript技巧[转载]
    如何在github中创建演示demo
    rem在响应式布局中的应用
    javascript模块化
    浏览器客户端的数据存储
  • 原文地址:https://www.cnblogs.com/jmhwsrr/p/14014910.html
Copyright © 2011-2022 走看看