Bilingual course Network Communications 网络通信 (For Master Students in the Department of Electronic Engineering) Chapter 6 The Data Communications Interface nstructor: Dr. Tianshuang Qiu School of the Electronic and Information Engineering Fall of 2004
Bilingual Course Network Communications 网络通信 (For Master Students in the Department of Electronic Engineering) Chapter 6 The Data Communications Interface Instructor: Dr. Tianshuang Qiu School of the Electronic and Information Engineering Fall of 2004
86-1 Asynchronous and Synchronous Transmission 说明 本节主要讨论信号的串行传输 假定每个信号元素表示一个bit ·两个主要问题 噪声等传输损伤对接收数据的影响,可能导致出错; 时序问题,若发/收不精确一致,也可能出错,且这种时间上 的不一致会积累 网络通信
网络通信 2 §6-1 Asynchronous and Synchronous Transmission • 说明 – 本节主要讨论信号的串行传输 – 假定每个信号元素表示一个bit • 两个主要问题 – 噪声等传输损伤对接收数据的影响,可能导致出错; – 时序问题,若发/收不精确一致,也可能出错,且这种时间上 的不一致会积累
1.异步和同步传输 (1)异步传输 1)概念 In asynchronous transmission, each character of data is treated independently. Each character begins with a start bit that alerts the receiver that a character is arriving. The receiver samples each bit in the character and then looks for the beginning of the next character 2)方法 The strategy with this scheme is to avoid the timing problem by not sending long, uninterrupted streams of bits. Instead, data are transmitted one character at a time where each character is five to eight bits in length. Timing or synchronization must only be maintained within each character; the receiver has the opportunity to resynchronize at the beginning of each new character 3)工作过程 (Please see Figure 6. 1 in Page 176, E6, Next slide) 4)优缺点 优点:仅需一条信道,且传输距离较远 缺点:额外开销较大(约20侧络通信
网络通信 3 1. 异步和同步传输 (1)异步传输 1) 概念 In asynchronous transmission, each character of data is treated independently. Each character begins with a start bit that alerts the receiver that a character is arriving. The receiver samples each bit in the character and then looks for the beginning of the next character. 2) 方法 The strategy with this scheme is to avoid the timing problem by not sending long, uninterrupted streams of bits. Instead, data are transmitted one character at a time, where each character is five to eight bits in length. Timing or synchronization must only be maintained within each character; the receiver has the opportunity to resynchronize at the beginning of each new character. 3)工作过程 (Please see Figure 6.1 in Page 176, E6, Next slide) 4) 优缺点 优点:仅需一条信道,且传输距离较远; 缺点:额外开销较大(约20%)
Idle state色色 Dr knees. Odd or even w o Remain idle o lAn of line b ig ac parity or unused ai next start bit 5 to 8 data bits I to 2 bit time Start I Stop bit element bit (a) Character format Unpredicatable time interval 界积 between characters Stop Stop Start element Start bit s element ↓ 11010001 01101。10 to nL-luartib simd s a s(b)8-bit asynchronous character stream vins ni won 120m 1 50(150250350450550650750850 Transmitter timing(s) 应 ↓-↓↓↓-↓↓↓↓ Fs。 ↑↑个个↑↑↑↑↑ 471412353294235176117057 Receiver timing (us) Der: (e) Effect of timing error s006 Figure 6.1 Aynchronous Transmission
网络通信 4
Description on Figure 6.1 不传送字符时,发收之间的线路处于“空闲”状态 字符的传送从“起始位( start bit)”开始(二进制0),其后跟 着组成字符的5-8bit数据 数据字符的传送从最低位开始 在数据bit之后,通常跟有一个奇偶校验位( odd or even parity bit),校验位的值由发送器设置。其作用是使整个字符(包括 校验位本身)的二进制1的总数为偶数(称为偶校验)或奇数 (称为奇校验) 最后一个元素是“停止位( stopelement) 发送器不停地发送停止位,直到出现下一个起始位 网络通信
网络通信 5 Description on Figure 6.1 • 不传送字符时,发/收之间的线路处于“空闲”状态; • 字符的传送从“起始位(start bit)”开始(二进制0),其后跟 着组成字符的5—8bit数据; • 数据字符的传送从最低位开始; • 在数据bit之后,通常跟有一个奇偶校验位(odd or even parity bit),校验位的值由发送器设置。其作用是使整个字符(包括 校验位本身)的二进制1的总数为偶数(称为偶校验)或奇数 (称为奇校验); • 最后一个元素是“停止位(stop element)”。 • 发送器不停地发送停止位,直到出现下一个起始位