200 likes | 217 Views
Chapter 4 (Only 4.2 – 4.3) Digital Transmission. Advantages of Digital Transmission. Low cost technology Longer distances using repeaters Security & Privacy Encryption Noise can be easily removed
E N D
Chapter 4 (Only 4.2 – 4.3) Digital Transmission
Advantages of Digital Transmission • Low cost technology • Longer distances using repeaters • Security & Privacy • Encryption • Noise can be easily removed • Cheaper and easier digital Multiplexing (Combining data from different sources into one link) • Allows processing of both analog data (voice, video) and digital data by the computer
Digital Transmission of Digital Dat 1= 3V 0= 0V 1= +3V 0= -3V
4.3 Transmission Mode Parallel Transmission Serial Transmission
Figure 4.32Parallel transmission • Advantage: speed • Disadvantage: high cost (needs a wire for each bit) • limited to short distances
Timing problems require a mechanism to synchronize (coordinate) the Transmitter and receiver The receiver must know the rate at which bits are being received so that it can read the value of the line at appropriate intervals to determine the value of each received bit Two ways to handle the synchronization problem Asynchronous serial transmission Synchronous serial transmission Modem operates in these two modes. Serial Transmission Modes
Figure 4.4Lack of synchronization Receiver clock is faster than the sender clock
Data transmitted one character (byte) at a time without any clock line that synchronizes both the sender and the receiver clocks. Each character (byte) is treated independently Sender and receiver clocks do not have to be synchronized (same clock speed) all the times but only for the duration of the character (agreed-upon rate) For each character (byte) at least two bits are added : Start bit = 0 at the beginning (to alert the receiver that a new character is arriving) One or more Stop bits =1 Each byte may be followed by a gap which can be an idle line or additional stop bits Used widely between PC and Keyboard, PC and Modems, PC and Printers, or Fax machines Asynchronous Mode
Figure 4.34Asynchronous transmission Gap is either an idle channel or additional stop bits
Note In asynchronous transmission, we send 1 start bit (0) at the beginning and 1 or more stop bits (1s) at the end of each byte. There may be a gap between each byte.
Note Asynchronous here means “asynchronous at the byte level,” but the bits are still synchronized; their durations are the same.
Advantages Simple Cheap Disadvantages Not effective usage of channel bandwidth Overhead >= 2/(8-bit ASCII code + 2 ) = 20% Not suitable for long blocks of data because the receiver’s clock might drift out of synchronization with the transmitter’s clock. Used with slow transmissions (one character at a time ) Asynchronous Mode
Binary bits are combined into blocks of arbitrary length called frame No gaps between blocks and no start or stop bits Synchronization - two methods: Separate clock line between the sender and receiver (one send the clock and the other uses it as its clock) Works for only short distances – Noise will affect it for long distances Embed clock information in the data signal (encoding data into different form). This is called self-synchronizing digital signal Receiver has the responsibility of recognizing the frame boundaries How the receiver can detect the beginning/end of a block (frame)? Use bit pattern to mark start (preamble) and end (postamble) of data This is called Flag: 01111110 Data + control information is called frame Used in high-speed communications such as data transmission between computers Synchronous Mode
Note In synchronous transmission, we send bits one after another without start or stop bits or gaps. It is the responsibility of the receiver to group the bits.
Example on self-synchronizing signal - Manchester encoding In Manchester encoding, the transition at the middle of the bit provides clocking and data
Synchronous Mode – cont. • Frame example • Advantage • In total much less overhead per frame more efficient than asynchronous • Used for high speed transmissions, e.g., between computers, between modems, and routers