
25
The rewriter elements preformed the packet classification for the packets input into the gateway
routers. For a description of how the rewriter elements were configured, please see Section 5.1.
The simplified digraph of the elements used to do this can be seen in Figure 5-4.
Figure 5-4: Directed Graph Showing the Rewriter Block
In the network implemented, packets passed through the IPRewriter twice. The first pass
redirected packets if a reverse mapping existed. Theses packets follow the to_world or to_server
edges, depending on the mapping matched. Packets not redirected were classified by destination,
and packets destined for the host router were sent to the Router Output Processing block. The
remaining packets went back to the IPRewriter, this time to perform NAT. The packets were then
sent to the Output Processing block for either the Mesh Wireless Device, or Gateway Device. For
example, a TCP packet arriving from the mesh wireless device and destined for the host router
would have arrived to the IPRewriter at input 3. If a previous mapping existed, it would be sent to
output 1 of the rewriter, otherwise it would be passed to output 2. There it would be forwarded to
the Router Output Processing block.
Comentarios a estos manuales