29.01.2015 Views

Embedded Software for SoC - Grupo de Mecatrônica EESC/USP

Embedded Software for SoC - Grupo de Mecatrônica EESC/USP

Embedded Software for SoC - Grupo de Mecatrônica EESC/USP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

362 Chapter 27<br />

belong to The RB (Figure 27-1(a)) is updated by instructions that<br />

operate on the first four packets. When the contents of is processed (there<br />

is no hit in the RB), the LRU (Least Recently Used) entry (i.e. is evicted<br />

and overwritten with This causes processing of the next packet<br />

to also miss (since the contents were just evicted) in the RB. We have<br />

used an example in which has the same values as that of which is<br />

quite possible since they belong to the same flow. Assume that a flow<br />

aggregation scheme is used with multiple RB’s so that program instructions<br />

operating on packets belonging to query and those operating on<br />

query <strong>for</strong> exploiting reuse. Instructions operating on will be<br />

mapped to (which will be a miss) while instructions operating on<br />

mapped to will cause a hit and enable the result to be reused leading to<br />

an overall improvement in reuse (compared to Figure 27-1 (a)). The amount<br />

of IR that can be uncovered <strong>de</strong>pends of the nature of the traffic and data<br />

values, and it is quite possible that IR could <strong>de</strong>crease if smaller RB’s are used.<br />

One can relax the previous <strong>de</strong>finition and classify packets related in some<br />

other sense as belonging to a flow. For instance, the input port through which<br />

packets arrive at a router and the output port through which packets are<br />

<strong>for</strong>war<strong>de</strong>d could be used as possible alternatives. This is a natural way of flow<br />

classification since in most circumstances, packets of the same flow travel<br />

along the same path from the source to the <strong>de</strong>stination. Although a very<br />

accurate classification scheme is not required, consistency must be maintained<br />

<strong>for</strong> appreciable improvement in results. For every packet that arrives, the NPU<br />

must <strong>de</strong>termine the RB to be associated with instructions that operate on that<br />

packet. Routers that classify packets based on the IP addresses are required<br />

to parse the IP hea<strong>de</strong>r and maintain state in<strong>for</strong>mation <strong>for</strong> every flow. Flow<br />

classification based on the output port involves some computation to <strong>de</strong>termine<br />

the output port. The output port is <strong>de</strong>termined using the Longest Prefix

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!