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专业在读,热爱编程。
    专业之外,喜欢阅读,尤爱哲学、金庸、马尔克斯。
  • 相关阅读:
    ubuntu 安装chrome浏览器
    ubuntu下Xmodmap映射Esc和Ctrl_L
    ubuntu 设置主屏和副屏
    maven 第一次运行报错
    Intellij Idea 配置并发布tomcat项目
    Nginx跨域设置
    Inotify+rsync实现实时数据同步
    Ubuntu-18.04设置开机启动脚本
    CentOS开机自启动/etc/rc.local不执行的解决办法
    ELK之使用kafka作为消息队列收集日志
  • 原文地址:https://www.cnblogs.com/jmhwsrr/p/14014910.html
Copyright © 2011-2022 走看看