02.12.2014 Views

Redes de Computadoras

Redes de Computadoras

Redes de Computadoras

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24.4. CRC (Cyclic Redundancy Check)<br />

<strong>Re<strong>de</strong>s</strong> <strong>de</strong> <strong>Computadoras</strong>, 2007/08<br />

Un mensaje <strong>de</strong> n+1 bits pue<strong>de</strong> ser consi<strong>de</strong>rado como un polinomio <strong>de</strong><br />

grado n don<strong>de</strong> los coeficientes son 0 o 1 [32]. Por ejemplo, el mensaje<br />

00100011 equivaldría al polinomio x 5 + x + 1.<br />

Sea M n (x) el mensaje (polinomio <strong>de</strong> grado n) <strong>de</strong> n + 1 bits que el<br />

emisor quiere enviar al receptor, y sea G k (x) el polinomio generador<br />

usado para crear el CRC. El CRC se calcula realizando<br />

R k−1 (x) ← (M n (x) × x k ) mod G k (x).<br />

El emisor concatena a M n (x) los k bits <strong>de</strong>l CRC y los envía.<br />

Matemáticamente:<br />

T n+k (x) = (M n (x) × x k ) + R k−1 (x).<br />

Nótese que por la forma en que T n+k (x) es construído, T n+k (x) <strong>de</strong>be<br />

ser divisible, necesariamente, entre G k (x).<br />

24.4 CRC (Cyclic Redundancy Check) 458

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

Saved successfully!

Ooh no, something went wrong!