You are on page 1of 75

Basic Concepts of Data Communications

Chapter 2

TJ 2013 Data Communications

Objectives

At the end of this chapter, students should:


Be able to differentiate between host and terminal Be able to differentiate between bit and byte Be able to explain various types of character code Be able to explain the different types of transmission modes.
TJ 2013 Data Communications

Contents
Host vs. Terminal Bits vs. Byte Character Code Serial vs. Parallel Transmission Asynchronous vs. Synchronous Transmission Simplex, Half-Duplex & Full-Duplex Communications

TJ 2013 Data Communications

Host vs. Terminal

TJ 2013 Data 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.

TJ 2013 Data Communications

Host

Types of host: (revision of OSK topic)


Super Computer Mainframe Mini Computer Micro Computer

TJ 2013 Data Communications

Terminal

Some definitions of terminal:


A device that allows users to send commands to a computer somewhere else. A monitor and keyboard attached to a computer (usually a mainframe), used for data entry and display. Unlike a personal computer, a terminal does not have its own CPU or hard disk
TJ 2013 Data Communications

Terminal

Some definitions of terminal:


A computer Workstation linked to a Server or other computer over a network on which a user may display information Machine that allows you to send commands to a remote computer A device that works as a client of a central computer or host in a network
TJ 2013 Data Communications

Terminal

Types of terminal
Dumb Smart Intelligent

TJ 2013 Data Communications

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.

TJ 2013 Data Communications

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

Host vs. Terminal

TJ 2013 Data Communications

Bits vs. Bytes

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

TJ 2013 Data Communications

Bytes
Revision Hexadecimal

0100 = ? 1000 = ? 1010 = ?

TJ 2013 Data Communications

Bit vs. Byte

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)

* Note: k = kilobit K = Kilobyte

TJ 2013 Data Communications

Bit vs. Byte

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

TJ 2013 Data Communications

Character Code

TJ 2013 Data Communications

Data Representation

Information comes in different forms


Text, numbers, images ,audio, video, etc.

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.

TJ 2013 Data Communications

Data Representation

Groups of bits are referred to as bytes


In most systems, a byte consists of 8 bits Usually each byte represents a single character

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.

TJ 2013 Data Communications

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.

TJ 2013 Data Communications

Character Codes

Various character codes have been used in data communication including:


Morse, Baudot EBCDIC, ASCII Unicode

Regardless of the character code, both the terminal/ host or sender/receiver must recognize the same coding scheme

TJ 2013 Data Communications

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

TJ 2013 Data Communications

TJ 2013 Data Communications

Morse Code

Problems:
variable length character representation required pauses between letters no lower case, few punctuation or special characters no error detection mechanism

TJ 2013 Data Communications

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)

TJ 2013 Data Communications

Baudot Code

Fixed character length (5-bits)


32 different codes increased capacity by using two codes for shifting
11111 (32) 11011 (27) punctuation)

Shift to Lower (letters) Shift to Upper (digits,

4 special codes for SP, CR, LF & blank Total = 26 + 26 + 4 = 56 different characters
TJ 2013 Data Communications

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

TJ 2013 Data Communications

Badout Code

International Baudot
Added a 6th bit for parity Used to detect errors within a single character

TJ 2013 Data Communications

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.

TJ 2013 Data Communications

EBCDIC

Allows for 256 different character representations (28)


includes upper and lower case lots of special characters (non-printable) lots of blank (non-used codes)

assigned to international characters in various versions

used with/without parity (block transmissions)


TJ 2013 Data Communications

TJ 2013 Data Communications

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

Extended ASCII uses 8 data bits and no parity


Used for processing and storage of data Allows for international characters 8th bit stripped of for transmission of standard character set

TJ 2013 Data Communications

TJ 2013 Data Communications

TJ 2013 Data Communications

Designed to support international languages:


Latin; Greek; Cyrillic; Armenian; Hebrew; Arabic; Syriac; Thaana; Devanagari; Bengali; Gurmukhi; Oriya; Tamil; Telegu; Kannada; Malayalam; Sinhala; Thai; Lao; Tibetan; Myanmar; Georgian; Hangul; Ethiopic; Cherokee; Canadian-Aboriginal Syllabics; Ogham; Runic; Khmer; Mongolian; Han (Japanese, Chinese, Korean ideographs); Hiragana; Katakana; Bopomofo and Yi

UNICODE

TJ 2013 Data Communications

UNICODE

Uses a 16-bit code for total of 65,536 possible char.


Incorporates ASCII in first 128 codes Incorporates LATIN in first 256 codes

Support found in newer hardware & software, especially web technologies (e.g., JAVA, XML, HTML) For more see www.unicode.org

TJ 2013 Data Communications

Summary of Character Codes


Morse = Baudot = Int. Baudot ASCII = or = EBCDIC = or = UNICODE = .5 bit (no parity) = 6 bit (5 data + 1 parity) 8 bit (7 data + 1 parity)

8 bit (no parity) 9 bit (8 data + 1 parity) 8 bit (no parity) 16 bits (no parity)

TJ 2013 Data Communications

Summary of Character Codes


Normally terminals and hosts must use the same code However, code conversion hardware/software can be used to allow different machines to communicate Bits per character affect

storage requirements throughput of information


TJ 2013 Data Communications

Summary of Character Codes

Use of larger codes became feasible due to


higher transmission speeds denser storage mediums

Choice of character coding scheme is a trade off between


simplicity & brevity expressivity
TJ 2013 Data Communications

Serial vs. Parallel Transmission

TJ 2013 Data Communications

Data Transmissions

TJ 2013 Data Communications

Transmission Mode

TJ 2013 Data Communications

Parallel
Multiple bits travel down individual wires in a parallel mode Faster than serial Shorter distances than possible with serial

TJ 2013 Data Communications

Parallel Transmission

TJ 2013 Data Communications

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

TJ 2013 Data Communications

Serial

Serial transmission can be divided into two modes:


Synchronous Asynchronous

TJ 2013 Data Communications

Serial Transmission

TJ 2013 Data Communications

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

TJ 2013 Data Communications

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.

TJ 2013 Data Communications

TJ 2013 Data Communications

Note: Asynchronous here means asynchronous at the byte level, but the bits are still synchronized; their durations are the same.

TJ 2013 Data Communications

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

TJ 2013 Data Communications

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.

TJ 2013 Data Communications

TJ 2013 Data Communications

Transmissions Efficiency

Transmissions Efficiency

efficiency =data transmitted X 100 total bits sent

TJ 2013 Data Communications

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

efficiency = data transmitted X 100 total bits sent


= 80 X 100 100 = 80 %

TJ 2013 Data Communications

Transmissions Efficiency
Solution Synchronous Add 10 bytes (80 bits) for the complete 10K byte data packet.

80 kbits + 80 bits = total of transmitted


efficiency = data transmitted x 100 = 80 000 X 100 80 080 = 99.9%
TJ 2013 Data Communications

TJ 2013 Data Communications

Simplex, Half-Duplex & Full-Duplex Transmission Directions

TJ 2013 Data Communications

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

Flow of Transmission Path


Simplex Half duplex Full duplex

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

TJ 2013 Data Communications

Simplex

TJ 2013 Data Communications

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

TJ 2013 Data Communications

Half Duplex

TJ 2013 Data Communications

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.

TJ 2013 Data Communications

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.

TJ 2013 Data Communications

Full Duplex

TJ 2013 Data Communications

You might also like