全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Forwarding table, longest-prefix match?

又称: forwarding table · longest-prefix match

Definition 18.4 University Computer Science — Year 2 · 第 18 章 — The Network Layer: IP and Routing

A forwarding table is a list of prefixes, each with a next hop. A packet for address xx goes to the next hop of the longest prefix of the table that contains xx (longest-prefix match). The prefix 0.0.0.0/0, which contains every address, is the default route.

The trie of the table 0, 01 3, 1 1, 101 2 (shaded nodes carry a next hop). A lookup walks down the bits of the address and remembers the last mark it met.
The trie of the table ∗→0\ast \to 0, 01∗→301\ast \to 3, 1∗→11\ast \to 1, 101∗→2101\ast \to 2 (shaded nodes carry a next hop). A lookup walks down the bits of the address and remembers the last mark it met.
在原文中阅读 →