Wednesday, June 16, 2010

TWISTED PAIR CABLES

Twisted pair cabling is a type of wiring in which two conductors (the forward and return conductors of a single circuit) are twisted together for the purposes of canceling out electromagnetic interference (EMI) from external sources; for instance, electromagnetic radiation from unshielded twisted pair (UTP) cables, and crosstalk between neighboring pairs




UTP


Most common type of transmission media for voice and data communications, connecting telephone company subscribers to the telephone central office (exchange) and computers in a local area network (LAN) such as Ethernet and Token Ring.

It consists of two 19 to 26 American wire gauge (AWG) thickness copper wires encased in color-coded plastic insulation, twisted around each other to minimize electromagnetic and radio-frequency interference induced from one wire to the other.

TP wires are categorized according to their thickness (thicker the better) such as CAT-3 for voice, CAT-4 for voice and 10-base-T, and CAT-5 for 100-base-T. Also called twisted pair (TP).

UTP cable is the most common cable used in computer networking. Modern Ethernet, the most common data networking standard, utilizes UTP cables. Twisted pair cabling is often used in data networks for short and medium length connections because of its relatively lower costs compared to optical fiber and coaxial cable.

UTP is normally used for LAN purpose only...

http://www.consultants-online.co.za/pub/itap_101/images/utpcable.png

STP

Transmission media used often where the cable must pass near sources of electromagnetic interference (noise), such as high-voltage power lines, motors, television, transformers, x-ray machines. It consists of several pairs of unshielded twisted wire enclosed in an outer shield of metal or metal-braid. This shield conducts ambient noise safely to the ground, and thus provides high quality signal transmission. See also coaxial cable.

http://networking.jobstown.net/images/utp%20and%20stp.jpg

CABLING


STRAIGHT CABLING

Different devices - Straight Cabling [Eg. Switch <-> PC]

color coding combination
white orange
orange
white green
blue
white blue
green
white brown
brown

CROSS CABLING

Cross cabling : Same device [Eg. PC <-> PC]

white orange - white green
orange -
green
white green - white orange
blue -
white brown
white blue - brown
green -
orange
white brown - blue
brown - white blue




OSI Reference Model

The O.S.I. model (O.S.I. - Open System Interconnection) is a way of sub-dividing a System into smaller parts (called layers) from the point of view of communications. A layer is a collection of conceptually similar functions that provide services to the layer above it and receives services from the layer below it. On each layer an instance [ Process] provides services to the instances at the layer above and requests service from the layer below. For example, a layer that provides error-free communications, across a network provides the path needed by applications above it, while it calls the next lower layer to send and receive packets that make up the contents of the path. Conceptually two instances at one layer are connected by a horizontal protocol connection on that layer.

HISTORY:

In 1978, work on a layered model of network architecture was started and the International Organization for Standardization (ISO) began to develop its OSI framework architecture. OSI has two major components: an abstract model of networking, called the Basic Reference Model or seven-layer model, and a set of specific protocols.


The concept of a 7 layer model was provided by the work of Charles Bachman, then of Honeywell. Various aspects of OSI design evolved from experiences with the ARPANET, the fledgling Internet, NPLNET, EIN, CYCLADES network and the work in IFIP WG6.1. The new design was documented in ISO 7498 and its various addenda. In this model, a networking system is divided into layers. Within each layer, one or more entities implement its functionality. Each entity interacts directly only with the layer immediately beneath it, and provides facilities for use by the layer above it.

Protocols enable an entity in one host to interact with a corresponding entity at the same layer in another host. Service definitions abstractly describe the functionality provided to an (N)-layer by an (N-1) layer, where N is one of the seven layers of protocols operating in the local host.

Description of OSI layers

 

 
OSI / REFERENCE  MODEL


The OSI reference model is an arbitrary hierarchical stratification (layering) of computer networking functions.  The stratification consists of  seven  layers.
There are various ways of implementing the protocols at any given layer. OSI is a CONCEPTUAL model.
 Protocols are prescriptive methods which delineate the communication that is to take place at a given layer.
Several other well known and widely used reference models have NOT been recognized as standards, e.g., IBM’s SNA (also a layered approach),  and the DoD developed protocols (which include TCP/IP – Transmission Control Protocol/Internet Protocol, SMTP – Simple Mail Transfer Protocol, FTP – File Transfer Protocol) are often used in UNIX and other environments.
The OSI Reference Model
The OSI reference model consists of seven layers, not including layer 8, the end user’s application, and layer 0 the physical transmission media
8.  O/S or User Application
       7.    Application Layer
  1.   Presentation Layer
  1.   Session Layer
  1.   Transport Layer
  1.   Network Layer
  1.   Data Link Layer
  1.   Physical Layer
Physical Transmission Media   
The OSI Reference Model
LAYER 7 – The APPLICATION Layer
                The top layer of the OSI model
                Provides a set of interfaces for sending and receiving applications to  gain access to and use network services, such as:  networked file transfer, message handling and database query processing
LAYER 6 – The PRESENTATION Layer
                Manages data-format information for networked communications (the network’s translator)
                For outgoing messages, it converts data into a generic format for network transmission; for incoming messages, it converts data from the generic network format to a format that the receiving application can understand
                This layer is also responsible for certain protocol conversions, data encryption/decryption, or data compression/decompression
                A special software facility called a “redirector” operates at this layer to determine if a request is network related on not and forward network-related requests to an appropriate network resource
LAYER 5 – The SESSION Layer
                Enables two networked resources to hold ongoing communications (called a session)  across a network
                Applications on either end of the session are able to ex hange data for the duration of the session
                This layer is:
                Responsible for initiating, maintaining and terminating sessions
                Responsible for security and access control to session information (via session participant identification)
                Responsible for synchronization services, and for checkpoint services
LAYER 4 – The TRANSPORT  Layer
                Manages the transmission of data across a network
                Manages the flow of data between parties by segmenting long data streams into smaller data chunks (based on allowed “packet” size for a given transmission medium)
                Reassembles chunks into their original sequence at the receiving end
                Provides acknowledgements of successful transmissions and requests resends for packets which arrive with errors
LAYER 3 – The NETWORK Layer
                Handles addressing messages for delivery, as well as translating logical network addresses and names into their physical counterparts
                Responsible for deciding how to route transmissions between computers
                This layer also handles the decisions needed to get data from one point to the next point along a network path
                This layer also handles packet switching and network congestion control
LAYER 2 – The DATA LINK Layer
                Handles special data frames (packets) between the Network layer and the Physical layer
                At the receiving end, this layer packages raw data from the physical layer into data frames for delivery to the Network layer
                At the sending end this layer handles conversion of data into raw formats that can be handled by the Physical Layer
LAYER 1 – The PHYSICAL Layer
                Converts bits into electronic signals for outgoing messages
                Converts electronic signals into bits for incoming messages
                This layer manages the interface between the the computer and the network medium (coax, twisted pair, etc.)
                This layer tells the driver software for the MAU (media attachment unit, ex. network interface cards (NICs, modems, etc.)) what needs to be sent across the medium
                The bottom layer of the OSI model
The OSI Reference Model
     
TCP/IP
Transmission Control Protocol/Internet Protocol  (TCP/IP) is a DoD developed, widely accepted and used communications protocol.  TCP/IP has only four layers, which roughly correspond to groups of the OSI model.  The Internet, many internal business networks and some home networks used TCP/IP.
The four layers in TCI/IP are:
                Application Layer
                Transport Layer
                Internet Layer
                Network Interface Layer
TCP (Transmission Control Protocol) is the portion of TCP/IP that is responsible for reliable delivery of data
TCP is a TRANSPORT protocol in the OSI and TCP/IP models
IP (Internet Protocol) is the portion of TCP/IP that provides addressing and routing information
IP is a NETWORK protocol in the OSI model and an INTERNET protocol in the TCP/IP model
                     Tcp                      vs              OSI
Application                                                        7 Application
Transport                                                            6 Presentation
Internet                                                               5 Session
Network Interface                                          4 Transport
7 Application                                                     3 Network
6 Presentation                                                  2 Data Link
                                                                                1 Physical



More information on the OSI layers are to be posted in future posts...

Tuesday, June 15, 2010

Dynamic Random Access Memory

#  Variations in DRAM

    *  Asynchronous DRAM
    *  Video DRAM (VRAM)
    *  Window DRAM (WRAM)
    *  Fast page mode (FPM) DRAM or FPRAM
    *  CAS before RAS refresh
          o Hidden refresh
    *  Extended data out (EDO) DRAM
    *  Burst EDO (BEDO) DRAM
    *  Multibank DRAM (MDRAM)
    *  Synchronous graphics RAM (SGRAM)
    *  Synchronous dynamic RAM (SDRAM)
          o  Single data rate (SDR)
          o  Double data rate (DDR)
    *  Direct Rambus DRAM (DRDRAM)
    *  Pseudostatic RAM (PSRAM)
    *  1T DRAM
    *  RLDRAM

Asynchronous DRAM

This is the basic form, from which all others derive. An asynchronous DRAM chip has power connections, some number of address inputs (typically 12), and a few (typically one or four) bidirectional data lines. There are four active low control signals:
  • /RAS, the Row Address Strobe. The address inputs are captured on the falling edge of /RAS, and select a row to open. The row is held open as long as /RAS is low.
  • /CAS, the Column Address Strobe. The address inputs are captured on the falling edge of /CAS, and select a column from the currently open row to read or write.
  • /WE, Write Enable. This signal determines whether a given falling edge of /CAS is a read (if high) or write (if low). If low, the data inputs are also captured on the falling edge of /CAS.
  • /OE, Output Enable. This is an additional signal that controls output to the data I/O pins. The data pins are driven by the DRAM chip if /RAS and /CAS are low, /WE is high, and /OE is low. In many applications, /OE can be permanently connected low (output always enabled), but it can be useful when connecting multiple memory chips in parallel.
This interface provides direct control of internal timing. When /RAS is driven low, a /CAS cycle must not be attempted until the sense amplifiers have sensed the memory state, and /RAS must not be returned high until the storage cells have been refreshed. When /RAS is driven high, it must be held high long enough for precharging to complete.
Although the RAM is asynchronous, the signals are typically generated by a clocked memory controller, which limits their timing to multiples of the controller's clock cycle.

Video DRAM (VRAM)

VRAM is a dual-ported variant of DRAM that was once commonly used to store the frame-buffer in some graphics adaptors.

Window DRAM (WRAM)

WRAM is a variant VRAM that was once used in graphics adaptors such as the Matrox Millenium and ATI 3D Rage Pro. WRAM was designed to perform better and cost less than VRAM. WRAM offered up to 25% greater bandwidth than VRAM and accelerated commonly used graphical operations such as text drawing and block fills.

Fast page mode (FPM) DRAM or FPRAM

A 256 k x 4 bit DRAM on an early PC memory card. k = 1024 in this case.
Fast page mode DRAM is also called FPM DRAM, Page mode DRAM, Fast page mode memory, or Page mode memory.
In page mode, a row of the DRAM can be kept "open" by holding /RAS low while performing multiple reads or writes with separate pulses of /CAS so that successive reads or writes within the row do not suffer the delay of precharge and accessing the row. This increases the performance of the system when reading or writing bursts of data.
Static column is a variant of page mode in which the column address does not need to be strobed in, but rather, the address inputs may be changed with /CAS held low, and the data output will be updated accordingly a few nanoseconds later.
Nibble mode is another variant in which four sequential locations within the row can be accessed with four consecutive pulses of /CAS. The difference from normal page mode is that the address inputs are not used for the second through fourth /CAS edges; they are generated internally starting with the address supplied for the first /CAS edge.

CAS before RAS refresh

Classic asynchronous DRAM is refreshed by opening each row in turn. This can be done by supplying a row address and pulsing /RAS low; it is not necessary to perform any /CAS cycles. An external counter is needed to iterate over the row addresses in turn.
For convenience, the counter was quickly incorporated into RAM chips themselves. If the /CAS line is driven low before /RAS (normally an illegal operation), then the DRAM ignores the address inputs and uses an internal counter to select the row to open. This is known as /CAS-before-/RAS (CBR) refresh.
This became the standard form of refresh for asynchronous DRAM, and is the only form generally used with SDRAM.

Hidden refresh

Given support of CAS-before-RAS refresh, it is possible to deassert /RAS while holding /CAS low to maintain data output. If /RAS is then asserted again, this performs a CBR refresh cycle while the DRAM outputs remain valid. Because data output is not interrupted, this is known as "hidden refresh".

Extended data out (EDO) DRAM

A pair of 32 MB EDO DRAM modules.
EDO DRAM, sometimes referred to as Hyper Page Mode enabled DRAM, is similar to Fast Page Mode DRAM with the additional feature that a new access cycle can be started while keeping the data output of the previous cycle active. This allows a certain amount of overlap in operation (pipelining), allowing somewhat improved performance. It was 5% faster than Fast Page Mode DRAM, which it began to replace in 1995, when Intel introduced the 430FX chipset that supported EDO DRAM.
To be precise, EDO DRAM begins data output on the falling edge of /CAS, but does not stop the output when /CAS rises again. It holds the output valid (thus extending the data output time) until either /RAS is deasserted, or a new /CAS falling edge selects a different column address.
Single-cycle EDO has the ability to carry out a complete memory transaction in one clock cycle. Otherwise, each sequential RAM access within the same page takes two clock cycles instead of three, once the page has been selected. EDO's performance and capabilities allowed it to somewhat replace the then-slow L2 caches of PCs. It created an opportunity to reduce the immense performance loss associated with a lack of L2 cache, while making systems cheaper to build. This was also good for notebooks due to difficulties with their limited form factor, and battery life limitations. An EDO system with L2 cache was tangibly faster than the older FPM/L2 combination.
Single-cycle EDO DRAM became very popular on video cards towards the end of the 1990s. It was very low cost, yet nearly as efficient for performance as the far more costly VRAM.
Much equipment taking 72-pin SIMMs could use either FPM or EDO. Problems were possible, particularly when mixing FPM and EDO. Early Hewlett-Packard printers had FPM RAM built in; some, but not all, models worked if additional EDO SIMMs were added.

Burst EDO (BEDO) DRAM

An evolution of the former, Burst EDO DRAM, could process four memory addresses in one burst, for a maximum of 5‐1‐1‐1, saving an additional three clocks over optimally designed EDO memory. It was done by adding an address counter on the chip to keep track of the next address. BEDO also added a pipelined stage allowing page-access cycle to be divided into two components. During a memory-read operation, the first component accessed the data from the memory array to the output stage (second latch). The second component drove the data bus from this latch at the appropriate logic level. Since the data is already in the output buffer, quicker access time is achieved (up to 50% for large blocks of data) than with traditional EDO.
Although BEDO DRAM showed additional optimization over EDO, by the time it was available the market had made a significant investment towards synchronous DRAM, or SDRAM . Even though BEDO RAM was superior to SDRAM in some ways, the latter technology quickly displaced BEDO.

Multibank DRAM (MDRAM)

Multibank RAM applies the interleaving technique for main memory to second level cache memory to provide a cheaper and faster alternative to SRAM. The chip splits its memory capacity into small blocks of 256 kB and allows operations to two different banks in a single clock cycle.
This memory was primarily used in graphic cards with Tseng Labs ET6x00 chipsets, and was made by MoSys. Boards based upon this chipset often used the unusual RAM size configuration of 2.25 MB, owing to MDRAM's ability to be implemented in various sizes more easily. This size of 2.25 MB allowed 24-bit color at a resolution of 1024×768, a very popular display setting in the card's time.

Synchronous graphics RAM (SGRAM)

SGRAM is a specialized form of SDRAM for graphics adaptors. It adds functions such as bit masking (writing to a specified bit plane without affecting the others) and block write (filling a block of memory with a single colour). Unlike VRAM and WRAM, SGRAM is single-ported. However, it can open two memory pages at once, which simulates the dual-port nature of other video RAM technologies.

Synchronous dynamic random access memory

Synchronous dynamic random access memory (SDRAM) is dynamic random access memory (DRAM) that has a synchronous interface. Traditionally, dynamic random access memory (DRAM) has an asynchronous interface, which means that it responds as quickly as possible to changes in control inputs. SDRAM has a synchronous interface, meaning that it waits for a clock signal before responding to control inputs and is therefore synchronized with the computer's system bus. The clock is used to drive an internal finite state machine that pipelines incoming instructions. This allows the chip to have a more complex pattern of operation than an asynchronous DRAM, which does not have a synchronized interface.
Pipelining means that the chip can accept a new instruction before it has finished processing the previous one. In a pipelined write, the write command can be immediately followed by another instruction without waiting for the data to be written to the memory array. In a pipelined read, the requested data appears after a fixed number of clock pulses after the read instruction, cycles during which additional instructions can be sent. (This delay is called the latency and is an important parameter to consider when purchasing SDRAM for a computer.)


SDR SDRAM

64 MB sound memory of Sound Blaster X-Fi Fatal1ty Pro uses two Micron 48LC32M8A2-75 C SDRAM chips working at 133 MHz (7.5 ns) 8-bit wide 
Originally simply known as SDRAM, single data rate SDRAM can accept one command and transfer one word of data per clock cycle. Typical clock frequencies are 100 and 133 MHz. Chips are made with a variety of data bus sizes (most commonly 4, 8 or 16 bits), but chips are generally assembled into 168-pin DIMMs that read or write 64 (non-ECC) or 72 (ECC) bits at a time.
Use of the data bus is intricate and thus requires a complex DRAM controller circuit. This is because data written to the DRAM must be presented in the same cycle as the write command, but reads produce output 2 or 3 cycles after the read command. The DRAM controller must ensure that the data bus is never required for a read and a write at the same time.
Typical SDR SDRAM clock rates are 66, 100, and 133 MHz (periods of 15, 10, and 7.5 ns). Clock rates up to 150 MHz were available for performance enthusiasts.

Double data rate (DDR)

Computer Memory

Memory is something we use in a computer to store data, programs that are required to execute an instruction given by the user to be processed by the computer.

To start with there are basically two types of memory for a computer: storage space (hard drive) and active memory (RAM).

This post concentrates on RAM. Details about ROM/HARD DRIVE will be posted later.


What is RAM?
  1. (electronics) Computer memory that dynamically stores program and data values during operation and in which each byte of memory may be directly accessed.
  2. (computing) The main memory of a computer available for program execution or data storage.
RAM is for computer data storage.
Today it is in the form of integrated electronic chips
The files stored in its memory are accessed in a random manner. Hence the name – Random access memory.
Note that RAM is a Volatile memory. Volatile memories are memories in which the memory is lost once the power is switched off.
HISTORY:
Earlier, RAM was in the form of magnetic core memory (1949 to 1952)
Static and Dynamic ram was developed during late 1960 and early 1970.
Before this, relays, delay lines, delay memories, vacuum tubes were used.
They were replaced by latches, triodes and semiconductor diodes.

Types of RAM :
Basically, we can classify RAM as Static RAM and Dynamic RAM.
STATIC RAM : Flip-flops are used. The memory is retained for a long time. [More on http://en.wikipedia.org/wiki/Static_random_access_memory]
Characteristics of SRAM are:

Characteristics

SRAM is more expensive, but faster and significantly less power hungry (especially idle) than DRAM. It is therefore used where either bandwidth or low power, or both, are principal considerations. SRAM is also easier to control (interface to) and generally more truly random access than modern types of DRAM. Due to a more complex internal structure, SRAM is less dense than DRAM and is therefore not used for high-capacity, low-cost applications such as the main memory in computers.

DYNAMIC RAM : Transistors and Capacitors are used. The memory is periodically refreshed. [More on http://en.wikipedia.org/wiki/Dynamic_random_access_memory]
More variations and notes on DRAM are given below:

DRAM packaging

For economic reasons, the large (main) memories found in personal computers, workstations, and non-handheld game-consoles (such as Playstation and Xbox) normally consists of dynamic RAM (DRAM). Other parts of the computer, such as cache memories and data buffers in hard disks, normally use static RAM (SRAM).

General DRAM packaging formats


Common DRAM packages. From top to bottom: DIP, SIPP, SIMM (30-pin), SIMM (72-pin), DIMM (168-pin), DDR DIMM (184-pin).

EDO DRAM memory module
Dynamic random access memory is produced as integrated circuits (ICs) bonded and mounted into plastic packages with metal pins for connection to control signals and buses. Today, these DRAM packages are in turn often assembled into plug-in modules for easier handling. Some standard module types are:
  • DRAM chip (Integrated Circuit or IC)
    • Dual in-line Package (DIP)
  • DRAM (memory) modules
    • Single In-line Pin Package (SIPP)
    • Single In-line Memory Module (SIMM)
    • Dual In-line Memory Module (DIMM)
    • Rambus In-line Memory Module (RIMM), technically DIMMs but called RIMMs due to their proprietary slot.
    • Small outline DIMM (SO-DIMM), about half the size of regular DIMMs, are mostly used in notebooks, small footprint PCs (such as Mini-ITX motherboards), upgradable office printers and networking hardware like routers. Comes in versions with:
      • 72-pin (32-bit)
      • 144-pin (64-bit) used for PC100/PC133 SDRAM
      • 200-pin (72-bit) used for DDR and DDR2
      • 240-pin (72-bit) used for DDR3
    • Small outline RIMM (SO-RIMM). Smaller version of the RIMM, used in laptops. Technically SO-DIMMs but called SO-RIMMs due to their proprietary slot.
  • Stacked vs. non-stacked RAM modules
    • Stacked RAM modules contain two or more RAM chips stacked on top of each other. This allows large modules (like 512 MB or 1 GB SO-DIMM) to be manufactured using cheaper low density wafers. Stacked chip modules draw more power.

Common DRAM modules

Common DRAM packages as illustrated to the right, from top to bottom:
  1. DIP 16-pin (DRAM chip, usually pre-FPRAM)
  2. SIPP (usually FPRAM)
  3. SIMM 30-pin (usually FPRAM)
  4. SIMM 72-pin (often EDO RAM but FPM is not uncommon)
  5. DIMM 168-pin (SDRAM)
  6. DIMM 184-pin (DDR SDRAM)
  7. RIMM 184-pin (RDRAM)
  8. DIMM 240-pin (DDR2 SDRAM/DDR3 SDRAM)

#  Variations in DRAM

    *  Asynchronous DRAM
    *  Video DRAM (VRAM)
    *  Window DRAM (WRAM)
    *  Fast page mode (FPM) DRAM or FPRAM
    *  CAS before RAS refresh
          o Hidden refresh
    *  Extended data out (EDO) DRAM
    *  Burst EDO (BEDO) DRAM
    *  Multibank DRAM (MDRAM)
    *  Synchronous graphics RAM (SGRAM)
    *  Synchronous dynamic RAM (SDRAM)
          o  Single data rate (SDR)
          o  Double data rate (DDR)
    *  Direct Rambus DRAM (DRDRAM)
    *  Pseudostatic RAM (PSRAM)
    *  1T DRAM
    *  RLDRAM