1 / 11

PEDS: Parallel Error Detection Scheme for TCAM Devices

PEDS: Parallel Error Detection Scheme for TCAM Devices. David Hay, Politecnico di Torino Joint work with Anat Bremler Barr (IDC), Danny Hendler (BGU) and Ron Roth (Technion) Supported by a Cisco grant. deny. 0. 0. deny. 1. 1. 2. 2. accept. 3. 3. accept. 4. 4. deny. 5. 5. deny.

harlow
Download Presentation

PEDS: Parallel Error Detection Scheme for TCAM Devices

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PEDS: Parallel Error Detection Scheme for TCAM Devices David Hay, Politecnico di Torino Joint work with Anat Bremler Barr (IDC), Danny Hendler (BGU) and Ron Roth (Technion) Supported by a Cisco grant

  2. deny 0 0 deny 1 1 2 2 accept 3 3 accept 4 4 deny 5 5 deny 6 6 deny 7 7 deny 8 8 accept 9 9 Packet Classification w/ TCAM accept TCAM Array Each entry represents a rule and is a word in {0,1,*}W 2 Encoder Match lines Dimensions: 100K-200K of rules, each entry is 100-150 symbols Packet Header

  3. 1 1 0 * 1 * 1 *1 1 0 1 1 1 0 * 1 * 1 *1 1 0 1 Types of Errors 1 0 0 No Match 0 1 1 2 2 • False Miss, False Hit, Indirect False Hit • Very different than regular Error-Correction/Detection • In fact, harder: we prove that on-the-fly error correcting is impossible, and that hardware change is needed for error detection 1 1 0 0 1 1 0 0

  4. 1 1 0 * 1 * 1 *1 1 0 1 1 1 0 * 1 * 1 *1 1 0 1 Types of Errors 1 0 0 1 0 1 1 2 2 • False Miss, False Hit • Very different than regular Error-Correction/Detection • In fact, harder: we prove that on-the-fly error correcting is impossible, and that hardware change is needed for error detection 1 1 1 1 1 1 1 1

  5. 1 1 0 * 1 * 1 *1 1 0 1 1 1 0 * 1 * 1 *1 1 0 1 Types of Errors 1 0 0 0 2 1 1 2 2 • False Miss, False Hit, Indirect False Hit • Very different from regular Error-Correction/Detection • In fact, harder: we prove that on-the-fly error correcting is impossible, and that hardware change is needed for error detection 1 1 0 1 1 1 0 1

  6. PEDS • We add one or more check symbols to each entry as error detection code • In most TCAM configuration, extra-bits are available anyway • With the TCAM parallel lookup we provide a generic scheme with tradeoff points between: • Resilience • Number of extra-bits • Time till all errors are detected • Hardware changes • Most tradeoff points can be set after deployment Always Depends on the entry width and not number of entries

  7. Toy Example • For each entry, duplicate each symbol0*10  00**1100 • The entry is correct iff each pair has the equal symbols: 00, 11 or **. • Applying two lookups for the first pair:01******10****** • If 00, 11 – none of the lookups match. If **, both lookups match • If 01, 0*, *1 – only first lookup matches • If 10, 1*, *0 – only second lookup matches • Repeat for all other pairs. Even number of Matches Odd number of Matches

  8. Hardware Change Encoder One XOR gate + One single-bit register per match lines (+control lines) Each register will save the result of the previous match and XOR it withthe result of the current match. This will enable us to determine if we got even or oddnumber of matches .

  9. One Generalization • One check symbol for eachk symbols • Check symbol is the parity check • Can be extended to each linear code • Total Space: W/k extra bits. Resilience*: W/k • A set of lookup keys such that the even-correct/odd-wrong property holds • #keys for k symbols ~ 2k+2/3 • #lookups ~ W[2k+2/(3k)]

  10. Wrap-up • Detecting all errors using the built-in parallel lookup of the TCAM • The number of lookups is a function of W, the width of the TCAM word, and not the number of entries in the database. • Requires a hardware change, but only in the peripheral circuitryof the TCAM chip • More generalizations and constructions in the paper… 

  11. Thank You

More Related