CH02 Basic Concepts of Data Communications
CH02 Basic Concepts of Data Communications
CH02 Basic Concepts of Data Communications
Chapter 2
Objectives
Contents
Host vs. Terminal Bits vs. Byte Character Code Serial vs. Parallel Transmission Asynchronous vs. Synchronous Transmission Simplex, Half-Duplex & Full-Duplex Communications
Host
A computer on a network that provides services to other computers on the network Accessed by a user working at a remote location. System that contains data is called the host, while the computer at which the user sits is called the terminal.
Host
Terminal
Terminal
Terminal
Types of terminal
Dumb Smart Intelligent
Terminal
Dumb Terminal
A computer terminal with no processing or programming capabilities, generally used for simple data entry or retrieval tasks. Consist of a keyboard and display monitor Keyboard is used to sent data to the CPU Display monitor acts as output device that accepts data from the CPU.
TJ 2013 Data Communications
Terminal
Smart Terminal
A terminal that can do some processing, usually to edit data it receives Consist of keyboard, display monitor and memory Has the capability of sending additional information to host such as terminal address, error control etc.
Terminal
Intelligent
A terminal that has both memory and data processing capabilities Contains not only a keyboard and screen, but also has built-in processing capabilities and storage devices Programmable terminal to perform new tasks such as, write data to the storage devices.
TJ 2013 Data Communications
Bits
A bit is the smallest unit of information that can be stored or manipulated on a computer It consists of either zero or one. Depending on meaning, implication, or even style it could instead be described as false/true, off/on, no/yes, and so on. We can also call a bit a binary digit, especially when working with the 0 or 1 values
TJ 2013 Data Communications
Bytes
A byte also happens to be how many bits are needed to represent letters of the alphabet and other characters. For example, the letter "A" would be 0100 0001
Bytes
Revision Hexadecimal
The Basic Data Transfer kilo (k)* = 10 ^ 3 = 1,000 mega (M) = 10 ^ 6 = 1,000,000 giga (G) = 10 ^ 9 = 1,000,000,000 tera (T) = 10 ^ 12 = 1,000,000,000,000 (thousand) (million) (billion) (trillion)
Data Storage / Memory Math 1 byte (B) = 8 bits (b) 1 Kilobyte (K / KB) = 2^10 bytes = 1,024 bytes 1 Megabyte (M / MB) = 2^20 bytes = 1,048,576 bytes 1 Gigabyte (G / GB) = 2^30 bytes = 1,073,741,824 bytes 1 Terabyte (T / TB) = 2^40 bytes = 1,099,511,627,776 bytes
Character Code
Data Representation
With few exceptions, digital computers communicate through a series of 1s and 0s known as bits. This binary representation can also be thought of as being on and off.
Data Representation
A-Z, a-z, 0-9 punctuation characters (e.g., @, #, %) special characters (LF, CR, ESC)
Bits and bytes are closely related to the binary number system.
Character Codes
The relationship of bytes to characters is determined by a character code Each time a user presses a key on a terminal/PC, a binary code is generated for the corresponding character.
Character Codes
Regardless of the character code, both the terminal/ host or sender/receiver must recognize the same coding scheme
Morse Code
First character code developed For transmitting data over telegraph wires
telegrams
Used dots (short beep) and dashes (long beeps) instead of 1s and 0s More frequent the character, the fewer the beeps
Morse Code
Problems:
variable length character representation required pauses between letters no lower case, few punctuation or special characters no error detection mechanism
Baudot Code
One of first codes developed for machine to machine communication Uses 1s and 0s instead of dots and dashes For transmitting telex messages (punch tape)
Baudot Code
4 special codes for SP, CR, LF & blank Total = 26 + 26 + 4 = 56 different characters
TJ 2013 Data Communications
Badout Code
Problems:
required shift code to switch between character sets no lower case, few special characters no error detection mechanism characters not ordered by binary value designed for transmitting data, not for data processing
Badout Code
International Baudot
Added a 6th bit for parity Used to detect errors within a single character
EBCDIC
Extended Binary Coded Decimal Interchange Code 8-bit character code developed by IBM
used for data communication, processing and storage extended earlier proprietary 6-bit BCD code designed for backward compatibility or marketing? still in use today on some mainframes and legacy systems.
EBCDIC
ASCII Code
American Standard Code for Information Interchange 7-bit code developed by the American National Standards Institute (ANSI) Allows for 128 different character representations (27)
most popular data communication character code today
includes upper and lower case lots of special characters (non-printable) generally used with an added parity bit better binary ordering of characters than EBCDIC
TJ 2013 Data Communications
ASCII Code
UNICODE
UNICODE
Support found in newer hardware & software, especially web technologies (e.g., JAVA, XML, HTML) For more see www.unicode.org
8 bit (no parity) 9 bit (8 data + 1 parity) 8 bit (no parity) 16 bits (no parity)
Data Transmissions
Transmission Mode
Parallel
Multiple bits travel down individual wires in a parallel mode Faster than serial Shorter distances than possible with serial
Parallel Transmission
Serial
Bits travel along a single wire, one at a time Slower than parallel Longer distances possible than with parallel Examples
USB (universal serial bus) - high-speed, multipoint serial connection standard IEEE-1394 (Firewire) - higher speed (than USB), multipoint serial connection standard
Serial
Serial Transmission
Asynchronous
Timing of devices independently established Start and stop bits are used to establish timing for each character transmitted Character-at-a-time transmission Overhead includes start bit and one or more stop bits per character transmitted
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.
Synchronous
Timing is established by the exchange of a clocking signal supplied by a device or embedded in the carrier Block-at-a-time transmission Synchronization characters precede and follow the data block Overhead includes bits in synchronization characters
Note: In synchronous transmission, we send bits one after another without start/stop bits or gaps. It is the responsibility of the receiver to group the bits.
Transmissions Efficiency
Transmissions Efficiency
Transmissions Efficiency
Example Compare a 10K Byte data transmission using i. Asynchronous (1 start & 1 stop bit) ii. Synchronous (10 bytes for whole transmission) Determine the efficiency (10 kBytes = 80 kbits).
TJ 2013 Data Communications
Transmissions Efficiency
Solution
Asynchronous: Add 2 bits (1 Start and 1 Stop bits) for every byte transmitted. 80 kbits + 20 kbits = total of 100 kbits transmitted
Transmissions Efficiency
Solution Synchronous Add 10 bytes (80 bits) for the complete 10K byte data packet.
Transmission Characteristics
A character code determines what bits we will send between a terminal and host But how will those bits be sent: Direction of Transmission Path Parallel vs. Serial Transmission Serial Transmission Timing Line Topology Others which well look at later speed organization of data (protocol) transmission media
TJ 2013 Data Communications
Simplex
Data in a simplex channel is always one way. Simplex channels are not often used because it is not possible to send back error or control signals to the transmit end. It's like a one way street. An example of simplex is Television, or Radio
Simplex
Half-Duplex
A half-duplex channel can send and receive, but not at the same time. It's like a one-lane bridge where two way traffic must give way in order to cross. Only one end transmits at a time, the other end receives. In addition, it is possible to perform error detection and request the sender to retransmit information that arrived corrupted.
TJ 2013 Data Communications
Half-Duplex
In some aspects, you can think of Internet surfing as being half-duplex, as a user issues a request for a web document, then that document is downloaded and displayed before the user issues another request. Another example of half-duplex is talk-back radio
Half Duplex
Full-Duplex
Data can travel in both directions simultaneously. There is no need to switch from transmit to receive mode like in half duplex. Its like a two lane bridge on a twolane highway.
Full-Duplex
An example can be a consumer which uses a cable connection to not only receive TV channels, but also the same cable to support their phone and Internet surfing. All these activities can occur simultaneously.
Full Duplex