Tuesday, December 14, 2010

Basics of Storage and Memory

Basics of Storage and Memory

Disks and Memory 

We all have known the memory sizes of storage devices such as SDCARD, USB drive, HDD, SSD, RAM in terms of Mbps, Gbps very easily. But What is the smallest size and bigger size in case of memory, lets have a look below;

A computer uses a binary number system called a Bit. Its either 0 or 1. Means a single bit is 0 or 1.

So, 8 Bits = 1 Byte

Which means 8 binary digit is called 1 byte. A byte is a unit which is used to represent a character such as letter, number and symbol. It is a string of bits. 

Now so as,
  • 1 Kb (Kilobyte) = 1024 bytes (b)
  • 1Mb (Megabyte) = 1024 Kilobytes (Kb)
  • 1 Gb (Gigabyte) = 1024 Megabyte (Mb)
  • 1 TB (Terabyte) = 1024 Gigabyte (Gb)
  • 1 Pb (Petabyte) = 1024 Terabyte (Tb)
  • 1 Exabyte (Eb) = 1024 Petabyte (Pb)
  • 1 Zettabyte (Zb) = 1024 Exabyte (Eb)
  • 1 Yottabyte (Yb) = 1024 Zettabyte (Zb)
HDD: (Hard Disk Drive)

A hard disk is a electro-mechanical storage device used for storing data (image, audio, video, document etc.) in a magnetized medium. It comes with various sizes such as 40GB, 60GB, 500GB, 1TB and more. Used in computers and servers.
They have several interfaces such as PATA (Parallel ATA), SATA (Serial ATA).
Data being stored in the HDD in form of logical blocks on the rotating platters.

SSD: (Solid State Drive)

Here is uses electronics circuits integrated to store the data through non volatile flash memory (NAND Flash chip). This is significantly faster than the HDD.

Below is the comparison between the SSD and HDD for reference.


Buffer:

Buffer is a temporary memory that hold or reserves data for some time for access. 

Cache memory:

Similarly cache memory is one type of fast memory acts as buffer between RAM and CPU of a system. It enables the fast retrieval of data. They are differentiated in three levels such as L1, L2 and L3 and size ranging from 8KB to 64KB. The largest L3 ranges from 4MB to 50MB.

For Server end or Data Centre end, we basically use storage system to keep all the data stored as well as backed up. storage is a technology consisting of computer components and recording media that are used to store digital data. 

In case there we are using RAID configuration for the Storages.

RAID is known as Redundant Array of Inexpensive (or Independent) Disks and is combined of multiple physical disk drive components into one or more logical units for the purpose of data redundancy and performance improvement.
  • Array of multiple small, independent hard disk drives that yields performance exceeding that of a Single Large Expensive Disk (SLED).
  • A RAID disk subsystem improves I/O performance on a server using only a single drive.
  • The RAID array appears to the host server as a single storage unit.
  • I/O is expedited because several disks can be accessed simultaneously.
  • RAID can be managed in the software by the OS or in hardware by RAID controller.
The RAID architecture is based on configuration of RAID. Type of RAID is provided below;
  • RAID 0: Data Striping
  • RAID 1: Mirror / Duplex
  • RAID 5: Stripe set with distributed parity
  • RAID 6:     Double Parity.
  • RAID 10: Combination of RAID 1 & RAID 0
  • RAID 50: Combination of RAID 5 & RAID 0
RAID 0

RAID 0 is also known as stripping. It provides high data throughput and specially for large files. It does not provides fault tolerance or better redundancy. So in case of any drive fails, all data will be lost.

RAID 1

RAID 1 known as Mirroring, As data is to a drive, RAID 1 copies identical data to a second drive at the same time. Mirroring offers excellent data protection and delivers good performance when a mirrored drive fails. RAID 1 reduces the maximum drive capacity by half.

RAID 2

RAID 2 uses bit-level striping and each sequential bit is placed on a different hard drive with Hamming code Parity. However it is not so popular for using.

Parity Info:

Parity is a common way of detecting errors in a storage system. This is a way of adding checksums into data that can detect errors during data transmission. The way parity works is by adding a single bit of data to the end of a data block to ensure that the number of bits in the block is even or odd.


RAID 5

With RAID 5, each entire data block is written on a data disk and parity information is striped across all drives. It is most popular RAID level as it delivers data protection and good performance with a small overhead for parity. 

RAID 50

RAID 50 is combination of RAID 5 & RAID 0, Data is striped over RAID 5 sets.  It Can sustain loss of more than one disk as long as they are not in same configuration as of RAID 5. 


-DR

Basic networking definitions

Common Networking Definitions


1. Network Infrastructure

Set of physical and logical components that allow for among the features, security, management and connectivity.

2. Physical infrastructure 

Physical infrastructure is also known as network's topology, the physical layout of hardware components and the type of hardware as well as the technology used with hardware for data transmission.

3. Logical infrastructure 

Logical Infrastructure is the software that allows for communication over physical infrastructure, it includes services that run on the network like DNS.

4. Network connection  

Network Connection is a logical interface between software and hardware layers.

5. Network protocol  

Network Protocol is the language used for communication between networked computers.

6. Workgroup 

Workgroup is a simple grouping of resources which by default uses NetBIOS naming system. NetBIOS is used together with Common Internet File System (CIFS), an extension of Server Message Block (SMB) protocol, to provide file sharing. There is no centralized security in a workgroup environment. The default workgroup name is WORKGROUP. In the absence of a WINS server the NetBIOS names are resolved using broadcasts to local network segment.

7. Domain 

A Domain  is a collection of computers that share a common directory, security policies and relationships with other domains. The name 'domain' is used both by grouping of computers in AD [ Active Directory] and as names in DNS, they are different things.

8. AD 

Active directory is a distributed database that provides directory service.
9. Subnet mask 

A subnet mask is used in a network to determine whatever the packet is destined for the current network or not. It does that by masking the network part of the IP address. The PC proceeds by finding his own network address using his IP and subnet mask in a bitwise AND operation. Then the PC does a bitwise AND operation on the destination IP and his subnet mask to determine foreign network address. If the addresses match then the packet is to travel on the local network, if the don't then the packet is destined to a foreign address.

10. Default gateway 

Default Gateway is the IP address of a routing device [ i.e. a Router]  that accepts packets destined to other networks. Other networks are subnets that are not within the broadcast range of the PC that contacts default gateway (itself it is within broadcast range).

11. Encapsulation: 

The process of enclosing data in a packet is known as encapsulation.


-DR

Thursday, May 27, 2010

Basics of STM & SDH

STM

Basically refers as Synchronous Transport Module. Sometimes we hear it or tell it as STM card, used at Router end for connectivity with ISP.

STM-1: 

STM1 is a synchronous digital hierarchy (SDH) is standardized multiplexing protocols that transfer multiple digital bit streams over optical fiber using lasers or light emitting diodes (LEDs).

The STM -1 is the basic transmission format for SDH. Module level 1 is the SDH ITU-T fiber optic network transmission standard. It is one type of Electrical optical Converter [OC 3] . 

  • It has the transmission bit rate of 155.52 Mbits.
  • STM-1 operates in 1.31 micrometer lasers for 40km over single mode and 1.55 for longer.
first stm-1 generator












STM-1 card used for router
















The STM-1E card has three card-level LED indicators. 

The red FAIL LED indicates a hardware problem on the STM-1E card; the green ACTV LED indicates that the STM-1E card is active and ready to carry traffic. The yellow SF LED indicates a problem receiving incoming data (loss of signal [LOS], loss of frame [LOF], or high bit error rate [BER]) on one or more of the STM-1E ports on the card.

STM-1 Frame:

The basic STM-1 carrier frame is made of 8 overheads, 4 pointers and a space for the payload. The overheads are the Regeneration Section Overhead (RSOH), linked with the regenerators, and the Multiplex Section Overhead (MSOH), associated with the multiplexers.

Regenerator Section Overhead (RSOH):

The Regenerator Section Overhead uses the initial 3 rows and 9 columns of the STM-1 frame. It monitors the network sections that present on the fiber-optic cable network.

Multiplex Section Overhead (MSOH):

The Multiplex Section Overhead uses the rows 5 to 9 and the first 9 columns of the STM-1 frame. It contains the information that allows data packets to be transmitted on the same network related to other data packets.

Both overheads deliver information on the transmission system and its management function, such as failure detection, service channels and transmission quality monitoring.

Like wise STM 1 there are other variants of SDH transmission rates as STM-4, STM-16 and STM-64. Sometimes combinedly we call it as STM-1/4/16 SDH Multiplexer.

Below are the transmission bit rate,
STM-4 = 622.080 Mbit/s
STM-16 = 2,488.320 Mbit/s or approx. 2.5 Gbit/s
STM-64 = 9,953.280 Mbit/s or we can say approx. 10 Gbit/s

SDH 
Synchronous Digital Hierarchy

Synchronous Optical Networking [SONET] or Synchronous Digital Hierarchy are a standard for data transmission or we can say, it is a standardized multiplexing protocols that transfer multiple digital bit streams over optical fiber using lasers or Light Emitting Diodes.

  • It is a transport Protocol.
  • The STM-1 frame is basic transmission format for SDH. 

The STM-1 frame is transmitted in exactly 125ms therefore 8000 frames per second on Fiber Optic ckt.

PDH

Plesiochronous digital hierarchy or PDH was used earlier in network for data transmission through microwave or fibre optical cables. Later PDH has been replaced by SDH.

-DR

Network Scanning Tools

Network Scanning through Nmap and Nessus Network scanning is a process used to troubleshoot active devices on a network for vulnerabilities....