<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Graygift@ye &#187; network</title>
	<atom:link href="http://www.graygift.com/tag/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.graygift.com</link>
	<description>我是孤独的根号5      </description>
	<lastBuildDate>Sun, 08 Nov 2009 02:13:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>循环冗余编码（CRC）原理</title>
		<link>http://www.graygift.com/network/crc/</link>
		<comments>http://www.graygift.com/network/crc/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 11:55:37 +0000</pubDate>
		<dc:creator>Graygift</dc:creator>
				<category><![CDATA[knowledge]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[CRC]]></category>

		<guid isPermaLink="false">http://www.graygift.com/?p=77</guid>
		<description><![CDATA[循环冗余编码CRC ,循环冗余编码工作原理和计算... ]]></description>
			<content:encoded><![CDATA[<p>今天学了CRC，也就是循环冗余编码。感觉很难懂，就去上网去看，把自己搞得差不多懂了，不它写下了，方便以后忘了可以回忆一下。<br />
循环冗余编码工作原理<br />
G(X)=生成多项式<br />
f(X)=信息位==&gt;（注：就是要发送的信息）<br />
R(X)= f(X) · x^k ∕ G(X)的余式==&gt;（注：就是校验码）<br />
T (X)= f(X) · x^k + R(X)<br />
T (X)=实际发送的信息位== &gt;（注：就是实际发送的信息）<br />
k=G(X)中X的最高指数<br />
Q(X)=f(X) · x^k ∕ G(X)的商<br />
<span id="more-77"></span>验证结果<br />
f(X) · xk ∕ G(X)能除尽则接收正确。<br />
否则则接收出错，要求发送方重发。<br />
例如：信息字段代码为: 1011001；对应m(x)=x^6+x^4+x^3+1<br />
      假设生成多项式为：g(x)=x^4+x^3+1；则对应g(x)的代码为: 11001<br />
      x^4*m(x)=x^10+x^8+x^7+x^4 对应的代码记为：10110010000；<br />
采用多项式除法: 得余数为: 1010     (即校验字段为：1010）<br />
发送方：发出的传输字段为: 1 0 1 1 0 0 1 1 0 10<br />
                                        信息字段       校验字段<br />
接收方：使用相同的生成码进行校验:接收到的字段/生成码（二进制除法）如果能够除尽，则正确，</p>
<p>其中我们还要了解的是<br />
多项式与二进制数码<br />
多项式和二进制数有直接对应关系：x的最高幂次对应二进制数的最高位，以下各位对应多项式的各幂次，有此幂次项对应1，无此幂次项对应0。可以看出：x的最高幂次为R，转换成对应的二进制数有R+1位。<br />
多项式包括生成多项式G(x)和信息多项式C(x)。<br />
如生成多项式为G(x)=x ^4 +x^ 3 +x+1， 可转换为二进制数码11011。<br />
而发送信息位 1111，可转换为数据多项式为C(x)=x^ 3 +x ^2 +x+1。如我们老师的示意图：</p>
<p> </p>
<div id="attachment_76" class="wp-caption alignnone" style="width: 583px"><a href="http://www.graygift.com/wordpress/wp-content/uploads/2009/03/crc.jpg" class="highslide-image" onclick="return hs.expand(this);"><img class="size-full wp-image-76" title="crc" src="http://www.graygift.com/wordpress/wp-content/uploads/2009/03/crc.jpg" alt="crc原理" width="573" height="478" /></a><p class="wp-caption-text">crc原理</p></div>
<ul class="related_post"><li> 哎呀，怎么没有相关的日志呢？</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.graygift.com/network/crc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
