计算机网络和协议分析课件.ppt
- 【下载声明】
1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
3. 本页资料《计算机网络和协议分析课件.ppt》由用户(晟晟文业)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机网络 协议 分析 课件
- 资源描述:
-
1、Weihong ChenDepartment of Computer ScienceHunan City UniversitySep 2010Advanced Computer Networks计算机网络Sep10 CNReview Data link layer design issuesService Provided to the network layerFramingError-Correcting CodesError-Detecting CodesSep10 CNThe Data Link LayerChapter 3 Sep10 CNTopicsError detection
2、and correction Hamming code CRC(Cyclic Redundancy Check)Sep10 CN2.1 Error-Correcting Codes2.Error Detection and Correction1010110101011110000100101010110010101111100010100100010100Even check?A single parity bit appended to the data,the parity bit is chosen so that the number of 1 bits in the codewor
3、d is even(or odd)E.g.,1011010 10110100 2D parity check code:Form the data to be transmitted into a matrix.Add a parity bit to each row and each column of the matrix.Sep10 CNHamming distance Rule:To determine how many bits differ,just exclusive OR the two codewords and count the number of 1 bits in t
4、he result,for example:Definition:The number of bit positions in which two codewords differ is called the Hamming distance.Significance:if two codewords are a Hamming distance d apart,it will require d single-bit errors to convert one into the other.Sep10 CN The bits that are powers of 2(1,2,4,8,16,e
5、tc.)are check bits.The rest(3,5,6,7,9,etc.)are filled up with the m data bits.Each check bit forces the parity of some collection of bits,including itself,to be even(or odd).Hamming codeCorrect single errors!Sep10 CNExercise 1.An 8-bit byte with binary value 10101111 is to be encoded using an even-p
6、arity Hamming code.What is the binary value after encoding?2.A 12-bit Hamming code whose hexadecimal value is 0 xE4F arrives at a receiver.What was the original value in hexadecimal?Assume that not more than 1 bit is in error.101001001111The original 8-bit data value was 0 xAF.Sep10 CNGoal:detect“er
7、rors”(e.g.,flipped bits)in transmitted frame(note:used at transport layer only)SenderReceive2.2 Error-Detecting CodesSep10 CNModulo 2 arithmetic No carries for addition or borrows for subtraction Both addition and subtraction are identical to exclusive OR Long division is carried out the same way as
8、 it is in binary except that the subtraction is done modulo 2,as above.Sep10 CNGenerator Polynomial-G(x)The sender and receiver must agree upon a generator polynomial in advance Both the high-and low-order bits of G(x)must be 1 To compute the checksum for some frame with m bits,corresponding to the
9、polynomial M(x),the frame must be longer than G(x)Sep10 CNThe idea of CRC The idea is to append a checksum to the end of the frame in such a way that the polynomial represented by the checksummed frame is divisible by G(x).When the receiver gets the checksummed frame,it tries dividing it by G(x).If
10、there is a remainder,there has been a transmission error.Sep10 CNview data bits,D,as a binary numberchoose r+1 bit pattern(generator),G goal:choose r CRC bits,R,such that exactly divisible by G(modulo 2)receiver knows G,divides by G.If non-zero remainder:error detected!can detect all burst errors le
展开阅读全文