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专业在读,热爱编程。
    专业之外,喜欢阅读,尤爱哲学、金庸、马尔克斯。
  • 相关阅读:
    html 中 #include file 的用法
    人人网FED CSS编码前端开发规范
    (转载)css垂直水平居中的整理
    CSS负边距自适应布局三例
    (转载)无缝滚动图片的js和jquery两种写法
    用css3实现鼠标移进去当前亮其他变灰
    应急响应
    扫描工具介绍
    入侵检测
    安全防护与加固
  • 原文地址:https://www.cnblogs.com/jmhwsrr/p/14014910.html
Copyright © 2011-2022 走看看