28 Matching Annotations
  1. Dec 2022
    1. 回想 1.3 节中的图 1-4,由于 TCP、UDP、ICMP 和 IGMP 都要向 IP 传送数据,因此 IP 必须在生成的 IP 首部中加入某种标识,以表明数据属于哪一层。为此,IP 在首部中存入一个长度为 8bit 的数值,称作协议域。1 表示为 ICMP 协议,2 表示为 IGMP 协议,6 表示为 TCP 协议,17 表示为 UDP 协议。 类似地,许多应用程序都可以使用 TCP 或 UDP 来传送数据。运输层协议在生成报文首部时要存入一个应用程序的标识符。TCP 和 UDP 都用一个 16bit 的端口号来表示不同的应用程序。TCP 和 UDP 把源端口号和目的端口号分别存入报文首部中。

      IP 需要头中需要标识传输层 协议 数据属于哪一层 TCP UDP 只需要端口号来表示,具体有应用层的代码来实现

  2. Oct 2022
  3. Sep 2022
    1. In general, iterative functions must maintain some local state that changes throughout the course of computation

      迭代通常需要维护一些局部状态

    2. The base cases are then followed by one or more recursive calls. Recursive calls always have a certain character: they simplify the original problem.

      base case + 加上递归调用简化问题

    1. Fundamentally, the qualities of good functions all reinforce the idea that functions are abstractions.

      函数就是抽象,好的函数设计。 为了抽象: domain: 输入 range:输出 intent:意图 输入输出之间的关系 (是否有side effect)

  4. Apr 2022
    1. Each node needs to know if other nodes successfully stored the data or they failed.

      需要知道其他节点是不是都成功了还是存在失败的情况

  5. Mar 2022
    1. 采用 site_id 的分桶方式对于短查询十分有利,能够减少节点之间的数据交换,提供集群整体性能;采用 site_id、city_code 组合做分桶键的模式对于长查询有利,能够利用分布式集群的整体并发性能,提高吞吐。

      对于短查询 我们确定了分桶键,指定分桶键可以裁减大量的数据。对于长查询,则尽可能用到所有的机器资源来提供并发性能。

  6. Feb 2022
    1. Capabilities are associated with named C++ objects which declare specific methods to acquire and release the capability

      能够获取或释放能力的命名对象