计算机网络与互联网英语chap7.ppt
《计算机网络与互联网英语chap7.ppt》由会员分享,可在线阅读,更多相关《计算机网络与互联网英语chap7.ppt(30页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Chapter 7Packets,Frames,And Error Detection(Parity,Checksums,and CRCs)Part III Packet TransmissionSmallest piece of information lWhen you send a message between two hosts,the smallest piece of information may be:lBitlCharacter(e.g.RS232)Switching lWhen should this piece of information be sent?lAs so
2、on as it is available-circuit switchinglWhen the entire message is ready-message switchinglAfter X number of bits/characters-packet switchingSwitching content Circuit sw.Message sw.Packet sw.P1P2P3P4P1P2P3P4P3P4报文报文报文A B C D A B C DA B C Dt连接建立数据传送报文P2P1连接释放Connecting to the Network The ProblemlCann
3、ot afford individual network connection per pair of computerslReasonslInstalling wires consumes time and moneylMaintaining wires consumes money(esp.long-distance connections)SolutionlNetwork has lShared central corelMany attached stationsThe Concept of PacketslMost computers do not transfer data as
4、an arbitrary string of continuous bits.l Instead the network system divides data into small bocks called packets send individuallylAlso referred called packet networks or packet switching networksThe Problem With SharinglDemand highlSome applications have large transferslSome applications cannot wai
5、tlNeed mechanism for fairnessPacket Switching PrinciplelSolution for fairnesslDivide data into small units called packetslAllow each station opportunity to send a packet before any station sends anotherlForm of time-division multiplexingIllustration of Packet SwitchinglAcquire shared mediumlSend one
6、 packetIllustration of Packet SwitchinglDividing data into small packets allows time-division multiplexing lEach packet leaves the source and is switched onto the shared communication channel through a multiplexor lAt the destination,the packet is switched through a demultiplexor to the destination
7、Packet DetailslDepend on underlying networklMinimum/maximum sizelFormatlHardware packet called a framelEach hardware technology uses different packet format lFrame or hardware frame denotes a packet of a specific format on a specific hardware technologyExample Frame Format Used with RS-232lRS-232 is
8、 character-orientedlNeed to define a standard format for data to indicate the beginning and end of the framelSpecial characterslStart of header(soh)lEnd of text(eot)Defining the Framing StandardlCan choose two unused data values for framing le.g.,if data is limited to printable ASCII,can use l start
9、 of header(soh)l end of text(eot)lSending computer sends soh first,then data,finally eot lReceiving computer interprets and discards soh,stores data in buffer and interprets and discards eot Framing in PracticelIncurs extra overhead-soh and eot take time to transmit,but carry no data lAccommodates t
10、ransmission problems:lMissing eot indicates sending computer crashed lMissing soh indicates receiving computer missed beginning of message lBad frame is discarded Transmitting Arbitrary DatalSuppose system cant afford to reserve two special characters for framing le.g.,transmitting arbitrary 8-bit b
11、inary data soh and eot as part of data will be misinterpreted as framing data lSender and receiver must agree to encode special characters for unambiguous(明确的明确的)transmissionData Stuffing:When Data Contains Special CharacterslTranslate to alternative formlCalled byte stuffinglBit stuffing and byte s
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机网络 互联网 英语 chap7
限制150内