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

    Byte order

    1. Endianness

    2. Network Byte Order
    • Different processors have different endianness
      • Little endian: x86
      • Big endian: ARM
    • To interoperate, they need to agree how to represent multi-byte fields.
    • Network byte order is big endian.

    IPv4

    1. Goal of Internet Protocol Addresses
    • Stitch many different networks together.
    • Need network-independent, unique address.
    2. IPv4

    3. Address Structure

    Historical:

    Today:

    • CIDR(无分类域间路由选择)
    4. IPv4 Address Assignment

    Longest Prefix Match

    1. Inside the Stream

    2. Inside Each Hop
    • Each router maintains a routing table.

    ARP(Address Resolutioin Protocol)

    ARP is used to transform the IP address to Hardware address.

    Problems:如何通过IP地址找到使用该IP地址的设备的硬件地址?

    1. IP地址与硬件地址之间并不存在一个简单的映射关系。
    2. 在局域网中,经常地会有新主机加入,旧主机撤走。

    ARP解决该问题的方法
    在主机的ARP高速缓存中维护一张从IP地址到硬件地址的动态更新的表。

    CS专业在读,热爱编程。
    专业之外,喜欢阅读,尤爱哲学、金庸、马尔克斯。
  • 相关阅读:
    ZJU 1610
    zju1484
    字符串赋值与初始化
    内核线程、内核级线程(轻量级进程)和用户级线程
    Mysql基础
    结构体的sizeof
    对象属性值读取问题
    返回引用类型
    操作符重载为成员函数、非成员函数与友元函数的区别
    运算符优先级
  • 原文地址:https://www.cnblogs.com/jmhwsrr/p/14014937.html
Copyright © 2011-2022 走看看