Sunday, June 23, 2019

Osi model


If you are a networking student and planning to start ccna or else networking course, you need to learn some basic fundamental by your self. Here is my android application of OSI model. Later on ill upload more. Thanks. Download the App from here.

OSI Model

Wednesday, June 12, 2019

Hard disk drive



 


Hard Disk Drive

A hard disk drive, also known as hard drive or HDD, is a secondary data storage device used to store and retrieve data or information. The primary characteristic of hard drives are the amount of data it can store called capacity, and performance. The capacity is measured in gigabytes or terabytes. Hard drives performance can refer to read speeds, write speeds, latency and the seek time.

Internal Structure of Hard Disk Drive

The Platter: The media is the hard metallic disk made of Aluminum and coated with iron oxide which gives a typical rust brown look. Unlike the floppy disk drive, the media in the hard disk drive is permanently fixed to the drive mechanism; hence it is also called fixed disk drive. Depending on the capacity of storing data there could be more than one platter (disk). Usually 2, 3, 4, etc. since both the sides of the disk platter are coated with the magnetic material, it provides additional storage space.

Read/Write Heads: The heads are an interface between the magnetic media where the data is stored and electronic components in the hard disk. The heads convert the information, which is in the form of bits to magnetic pulses when it is to be stored on the platter and reverses the process while reading.

Each platter has two read/write heads, one mounted on the top and the other one at the bottom. These heads are mounted on head sliders, which are suspended at the ends of heads arms. The head arms are all fused into a singular structure called actuator, which is responsible for their movement.

Voice coil actuator: Voice coil method of actuation is done usually in large capacity drives with high reliability. The voice coil mechanism moves he head carriage assembly by pure electro-magnetic force. The construction of this is analogous to an audio speaker which uses a stationary magnet surrounded construction of this is analogous to an audio speaker which uses a stationary magnet surrounded by a voice-coil (hence the name ) that is connected to the paper cone.

Hard Disk Spindle Motor: The spindle motor, also sometimes called the spindle shaft, is responsible for turning the hard disk platter, allowing the hard drive to operate. It provide stable, reliable and consistent turning power for thousands of hours of continuous use, to allow the hard disk to function properly. Many drive failures are actually failures with the spindle motor, not the data storage systems.

Wednesday, June 5, 2019

Ports and Interface


Ports and Interface: The various port on the computer allow it to communicate with the many different devices and peripherals attached. The connectors on the back of your computer may also be called as input / output ports ( i/o ports ) or communication ports.
The first thing to know is the different between a male and female connector. The male connector fits inside the female connector. If the connector has pins protruding from it, it’s a male connector. If the connector has holes for the pins to fit into, then it’s a female connector.
The second thing you should remember is that when you join a connector to a port, they must have the same shape and the same number of pins or holes.
The various I/O ports are Serial, Parallel, PS/2, USB & firewire port. Out of the I/O ports mentioned except the USB and firewire ports, the other ports are not hot swappable. USB and Firewire ports are the only ports that should be considered hot-swappable ( this means they can be plugged in or unplugged while the machine is on ).
External ports ( which are linked to the motherboard ) allow users to connect devices such as scanner, printers, mice and keyboards.

Serial: A serial port can be used to connect many types of devices. Data is transferred to and from the device one bit at a time.

Parallel: A parallel port usually has a 25-pin connector and is most often used to connect local printers. Devices attached to a parallel port are capable of receiving more than one bit of data at a time.

PS/2: PS/2 ports are used to connect the mouse and the keyboard.
Serial and parallel ports are currently considered to be “legacy ports” since they use old technology for data transfer. Never technology includes the following.
Serial and parallel ports are currently considered to be “legacy ports”. Since they use old technology for data transfer. Newer technology includes the following:


USB  1.1 – USB Basic Speed: USB (Universal Serial Bus )is an external bus standard that supports data transfer rates of 12 Mbps (12 million bits per seconds). A single USB port can be used to connect up to 127 peripheral devices, such as mice, modems, and keyboard. USB also supports plug and play installation and “hot plugging”, meaning you do not have to shut down the computer in order to attach or detach a device from the machine.

USB 2.0 – USB Hi-Speed: USB 2.0 is a new version of the USB specification. This new port is backwards-compatible, allowing older USB 1.1 devices to connect and update without trouble. However, the new USB Hi-Speed ports support data transfer rates of 480 Mbps, even faster than FireWire ports.

USB 3.0 – USB SuperSpeed: USB 3.0 defines a new SuperSpeed transfer mode, with associated new backwards-compatible plugs, receptacles, and cables.
The new SuperSpeed mode provides a data signaling rate of 5 Gbit/s and the specification considers it reasonable to achieve only around 3.2 Gbit/s (0.4 GB/s or 400 MB/s)

FireWire: FireWire is a very fast external bus standard that supports data transfer rates of up to 400 Mbps. FireWire is also known as IEEE 1394. A single 1394 port can be used to connect up to 63 external devices and is much faster than USB 1.1. it supports both plug and play and hot plugging and also provides power to peripheral devices.

COM and LPT Assignments
Port
I/O Address
IRQ
COM 1
3F8
4
COM 2
2F8
3
LPT1
378
7
LPT2
278
5

Asynchronous and Synchronous communication
There are two schemes of transmitting data to be ports.
Asynchronous                     Synchronous
In the asynchronous scheme, each character is transmitted with the start bit and the stop bit as the synchronization bits.
In the synchronous scheme, a bit pattern called sync is transmitted after a fixed number of data bytes.
Asynchronous communication is generally used with slow peripherals, whereas very high speed transmission is possible with the synchronous communication scheme.

Serial Interface: PC support two serial interfaces Each is an RS-232 standard interface. The PC supports asynchronous and synchronous communication. Synchronous communication is rarely used, it is used only for high speed communication between PC’s. Asynchronous communication is widely used in PCs.

The RS232 Serial Interface: The RS-232 interface is a standard interface specified by the Electronic Industries Association ( EIA ) and is followed by the manufacturers of computers and data communication products ( RS stands for Recommended Standard ). RS-232 was basically designed to allow computing devices called equipment (DTE) to talk to communications devices called data circuit-terminatting equipment (DCE). So there is a DTE-type RS-232 interface and a DCE-type RS-232 interface. RS-232 is designed to allow DTEs to talk only to DCEs. Rs-232 used DB25 and DB9 connectors. Male connectors go on the DTEs; female connectors go on the DCEs.
Parallel ( Centronics ) Interfaces/IEEE 1284
The most common method of attaching a printer to a computer is through a simple interface called the Centronics interface. The original parallel ports had eight outputs, five input and four bidirectional lines. A  parallel ports transfer multiple bits at once, while a serial ports transfer a bit at a time. Pc can support up to three parallel ports. They are named LPT1 ,LPT2 and LPT3; the name refers to Line Printer 1 2 and 3.
PS/2 port: This port was designed by IBM for their Personal System /2 computers. The PS/2 port has lived on in other computers as the standard for keyboard and mice. Most computers come with two PS/2 ports.
USB ( Universal Serial Bus ): USB s peripheral bus standard developed by PC and telecom industry leaders – Compaq,  DEC, IBM etc that brings plug and play of computer slots and reconfigure the system. Personal computer  equipped with USB allows computer peripherals to be automatically configured as soon as they are physically attached – without the need to reboot or run setup. USB also allow multiple devices – up to 127 – to run simultaneously on a computer, with peripheral such as monitors and keyboards acting as additional plug – in sites, or hubs.

Digital Visual Interface: Digital Visual Interface ( DVI ) is  a video display interface developed by the Digital Display Working Group ( DDWG ). The digital interface is used to connect to a video source, such as a video display controller to a display device, such as a computer monitor.

Display Port: Display Port is a digital display interface developed by the Video Electronics Standards Association ( VESA ) the interface is primarily used to connect a video source to a display device such as a computer monitor, though it can also be used to carry audio, USB, and other forms of data.

Video Graphics Array: A Video Graphics Array ( VGA ) connector is a three-row 15-pin DE-15 connector. The 15-pin VGA connector was provided on many video cars, computer monitors, laptop computers, projectors, and high definition television sets. On laptop computers or other small devices, a mini-VGA port was sometimes used in place of the full-sized VGA connector.

SCSI ( Small Computer System Interface ) Basics: SCSI is a set of ANSI standard electronic interfaces that allow personal computers to communicate with peripheral hardware such as disk drives, tape drives, CD – ROM drives, printers and scanners faster and more flexibly than previous interface.














Memory


Primary Storage
Primary Storage is also referred as primary memory, internal memory or main memory. A primary storage device is a medium that holds memory for short periods of time while a computer is running although it has much lower access time and faster performance, it is generally costlier than secondary storage.
Both RAM and ROM are examples of primary storage devices. Key characteristic of primary storage devices are:
·        Directly accessible by the CPU
·        Volatile
·        Non-removable

Secondary Storage
Secondary Storage is also referred as external memory, secondary memory, or auxiliary storage. Secondary storage device is a non-volatile device that holds data until it is deleted or overwritten. Example of secondary storage devices are Floppy disk, Hard disk, Zip disk, etc.
For most computer and users secondary storage is required because of the need to permanently store some data to a computer. Without primary storage if your were working on a document and the power is turned OFF everything would be lost because primary storage is temporary. However, a computer with secondary storage that saved the file before the power turned OFF would be able to recover the last saved version of the file.

Primary Storage Devices

ROM ( Read Only Memory )
ROM is where data is stored permanently. Hence it is also called as Non-Volatile Memory. BIOS is stored on ROM because the user shouldn’t disrupt the information.

Types of ROM

PROM ( Programmable Read Only Memory )
This is basically a blank ROM chip that can be written to, but only once. They are more fragile than ROMs.

EPROM ( Erasable Programmable Read Only Memory )
This is just like PROM, except that you can erase the ROM by shining a special ultra-violet light into a sensor on top of the ROM chip for a certain amount of time. Doing this wipes the data out, allowing it to be rewritten. An EPROM eraser is not selective, it will erase the entire EPROM.

EEPROM ( Electrically Erasable Programmable Read Only Memory )
EEPROM chips remove the drawbacks of EPROMs. In EEPROMs the chip does not have to removed to be rewritten. In EEPROMs the entire chip does not have to be completely erased to change a specific portion of it. In EEPROMs changing the contents does not require additional dedicated equipment.
Instead of using UV light, you can return the electrons in the cells of an EEPROM to normal with the localized application of an electric field to each cell. This erases the targeted cells of the EEPROM, which can then be rewritten. Any byte within an EEPROM may be erased and rewritten.

Flash Memory
Flash Memory is actually a variation of electrically erasable programmable read-only memory ( EEPROM ). EEPROM chips are too slow to use in many products that make quick changes to the data stored on the chip. Flash memory devices are high density, low cost, nonvolatile, fast ( to read, but not write ), and electrically reprogrammable. From a software viewpoint, flash and EEPROM technologies are very similar.
The big difference between the two is that EEPROM can be erased and rewritten at the byte level; flash memory can erase or reprogram blocks of bytes, not individual bytes, hence it is faster. Example of flash memory devices are BIOS chip, Smart Media, Memory Stick, Flash USB Drive etc.

RAM ( Random Access Memory )
RAM is the best known form of computer memory. RAM is considered “random access” because one can access any memory cell, which is the basic unit of data storage, in the same amount of the. The opposite of RAM is serial access memory (SAM). SAM stores data as a series of memory cells that can only be accessed sequentially. If the data is not in the current location, each memory cell is checked until the needed data is found.
RAM is a volatile memory, meaning all data is lost when power is turned OFF. RAM is used for temporary storage of program data.

Types of RAM
There are two basic types of RAM
1.     Dynamic RAM
2.     Static RAM

Dynamic RAM (DRAM)
Dynamic RAM is a type of RAM that only holds its data if it is continuously access by special logic called a refresh circuit. Many hundreds of times each second, this circuity reads the content of each memory cell whether the memory cell is being used at that time by the computer or not. Due to the way in which the cells are constructed, the reading action itself refreshes the content of memory. If this is not done regularly, then the DRAM will lose its content, even if it continues to have power supplied to it. This refreshing action is why the memory is called dynamic.

Static RAM ( SRAM )
Static RAM is a type of RAM that holds it data without external refresh, for as long as power is supplied to the circuit. This is contrast to dynamic RAM ( DRAM ), which must be refreshed many times per second in order to hold its data contents. SRAM’s are used for specific applications within the PC, where their strengths outweigh their weaknesses compared to DRAM.

SRAM
DRAM
Made up of Transistors
Made up of Capacitors
Refreshing is not required
Periodic refreshing is required
Faster
Slower
More power consumption and Heat Dissipation
Less power consumption and head dissipation
Low data storage density
High data storage density
Costlier
Cheaper
Example – Used in cache memory
Example – used for main memory
Cache Memory
In general, a processor is much more likely to need information again it has recently used, compared to a random piece of information in memory. This is the principle behind caching. It’s a small amount of fast memory ( Static RAM ) placed between the processor and the slower main memory. Nowadays it is integrated within the CPU. Cache are used in various forms to reduce the effective time required by a processor to access addressed, instructions or data that are normally stored in main memory.

Working of Cache Memory
The processor request a piece of information. The first place it looks in the level 1 cache, since it is the fastest. If it finds it there ( called a hit on the cache ), great ; it uses it with no performance delay. If not, it’s a miss and the level 2 cache is searched. If it finds it there ( level 2 “hit” ). It is able to carry on with relatively little delay.
Otherwise, it must issue a request to read it from the system RAM. The system RAM may in turn either have the information available or have to get it from the still slower hard disk or CD-ROM. It is important to realize just how slow some of these devices are compared to the processor. Even the fastest hard disks have an access time measuring around 10 milliseconds. If it has to wait 10 milliseconds, a 200 MHz processor will waste 2 million clock cycles! And CD-ROMs are generally at least 10 times slower. This is why using caches to avoid accesses to these slow devices is so crucial.

Virtual Memory
Virtual Memory combines your computer’s RAM with temporary space n your hard disk. When RAM memory runs low, virtual memory moves data from RAM memory to a space called a paging file. Moving data to and from the paging file frees up RAM memory to complete its work. If your computer lacks the RAM memory needed to run a program or operation, windows uses virtual memory to compensate.
The more RAM memory your computer has, the faster your programs will generally run. If a lack of RAM memory is slowing your computer, you might be tempted to increase virtual memory to compensate. However, your computer can read data from RAM memory much more quickly than from a hard disk, so adding RAM memory is a better solution.

Changing the virtual Memory size.
1.     Right click on the start button and select Control Panel.
2.     Now go to System and Security.
3.     Click on System.
4.     Now tap on Advance System setting from the right panel.
5.     Click the Advance tab, and then, under performance, click Setting.
6.     Under the option Advance check the Virtual memory option and click change.
7.     Uncheck the option Automatically manage paging file size for all drives.
8.     Under Drive [ volume label ], click the drive that contains the paging file you want to change.
9.     Click Custom size, type a new size in megabytes in the Initial size ( MB ) or maximum size ( MB ) box, click Set, and then click ok.



Different types of DRAM

FPM ( Fast Page Mode ) RAM: A type of Ram that allows faster access if the data being called in the same row as the data previously requested, also called page mode memory.

EDO ( Extended Data Out ) RAM: EDO RAM was nothing more than a moderate improvement on old-style FPM DRAM. EDO needed to be refreshed much less often, thereby providing an extended period where data could be taken out of RAM. EDO DRAM enabled a system to access data more quickly than FPM RAM.

SDRAM ( synchronous Dynamic RAM ): SDRAM is still DRAM, but it is synchronous-tied to the system clock. As mentioned earlier, regular DRAM (EDO or FPM ) was not tied to any clock. If the CPU wanted some data from RAM, the chipset sent the necessary signals to the DRAM, waited a certain number of clock ticks and then accessed the RAM again to get the data.
SDRAM is tied to the system clock, just like the CPU and chipset, so the chipset knows when data is ready to be grabbed from SDRAM, resulting in little wasted time. SDRAM is quite a bit faster than DRAM.


DDR ( Double Data Rate ) RAM: DDR utilizes both the rising and falling edge of the system clock, potentially doubling the speed of the memory. Today, DDR technology is found on high-end video cards and computer memory such as DDR RAM. DDR memory belongs to the dual in – line memory module ( DIMM ) architecture family and is a faster form of SDRAM.
There are presently four generation of DDR memories:
DDR1, DDR2, DDR3 and DDR4.

ECC ( Error Correction Code ) RAM: many higher-end systems use a special type of RAM called error correction code (ECC) DRAM, ECC is a major advance in error checking on DRAM.

SGRAM ( Synchronous Graphic RAM ): It operates in similar fashion to SD RAM but it is streamlined to work with graphic cards. This RAM enables fast read and write operation for the graphics processor when working with the information in the video frame buffer.

VRAM ( Video RAM ): It is memory that is optimized for video cards where each memory cell Is dual ported Therefore video data can be written to the RAM while the graphics adapter simultaneously read from it to refresh the display.

RDRAM ( RAMBUS DRAM ): Inter wanted faster RAM not just for higher-end performance machines including servers, but standard desktops. Its choice was a new type of DRAM called Rambus DRAM ( RDRAM ).
The three version of it are intended PC 600 ( clock speed: 300MHz, PC70 ( actually 711 or 3 5 6MHz ), and PC800 (400MHz).




ppt