Thursday, January 29, 2009

How to Cabling Your Network


There are two main ways of connecting PCs together to form a network. There are others, but for now, we will consider only the Ethernet alternatives:

  • Coaxial Ethernet

Coaxial ethernet is really a fading concept. Two types are available, Thick-wire and Thin-wire. Thick-wire is very unlikely to be found on modern networking equipment but thin-wire is fairly common. Thin-wire ethernet consists of lengths of 50ohm coax cable that are terminated in BNC bayonet connectors. Thin-wire compatible equipment sport a round barrel that the coax is plugged into. Unfortunately, connecting thin-wire is not always so simple. It is important that a thin-wire cable is correctly terminated and not all thin-net NICs are able to automatically terminate a cable. In this case, it is necessary to use a t-piece c/w a terminator so that a cable impedance of 50ohm is maintained. Failure to observe this will result in communication problems between the network devices.

Note: Thin-wire ethernet is also known by it's technical notation of 10base2.

  • TP Ethernet

TP, or Twisted Pair Ethernet is the modern equivalent of 10base2 cable systems. Far more flexible, neater and less prone to network faults, TP appears on a myriad of networking and communications equipment. If you have your single PC already connected to your CM then you are already using RJ45 TP cabling and it will almost probably feature in your network. CAT5 cable consists of 4 pairs of wires, with each pair being two insulated copper wires twisted together. These 'twisted-pairs' are then sheathed in a plastic outer sleeve that come in a variety of colours, although 'computer' beige is probably the most common;-). The standards for ethernet over Cat5 cabling define a maximum length of 100 metres for operation at 10MBps, but in practice it is perfectly possible to extend this maximum by 20 or 30 metres without detriment to network communication.

RJ45 refers to the connector that is crimped onto the end of the CAT 5 cable. The connector is rectangular in shape and has a tab at the top. The cable is inserted so that the tab latches onto a small recess in the socket, rather like the side latch on the ubiquitos BT telephone plug.

Almost all of the network set-ups featured on this site use RJ45 cabling exclusively, with each cable being of the 'straight' type. Where necessary, x-over cables are also employed. The following diagrams show how the two types of ethernet detailed above can be used in a network, with straight RJ45 cables depicted by BLUE lines and cross-overs in RED. Thinwire Co-ax cable is shown in grey.

Connecting a Single PC to a CM connected PC

  • With Thinwire


For this set-up a single piece of thinwire co-ax is used to connect two PCs, with each end of the cable physically connected to a T-piece, with the 'spare' connector capped with a terminator to maintain the cable impedance.

It is important to use the correct cable type for thinwire so that the impedance is correct. The official designation is RG58.

  • With RJ45


Where two PCs are connected using an RJ45 cable, a cross-over cable needs to be used. An RJ45 cross-over cable actually crosses the transmit and receive pairs in the cable so that one NICs transmit connects to the other NICs receive, and vice versa.

Connecting Multiple PCs to a CM connected PC

  • With Thinwire


To add additional clients to the network, remove one of the t-pieces and connect another thinwire coax cable to the vacant connector and replace the terminator at the t-piece of the last device.

Note that some network cards have an on-board termination setting.

  • With RJ45


In an RJ45 cabled network, adding additonal clients requires the use of an intermediary device such as a hub or a switch. PCs connect to the hub/switch using straight cables and these are, in turn, connected internally within the hub or switch.

In this environment, there is no requirement for RJ45 cross-over cables.

Straight v. X-over Cables

The requirement for RJ45 cross-over, or x-over, cables is dictated by the type of devices that are being connected. There are two interface types associated with networking equipment, DTE (Data Terminating Equipment) and DCE (Data Communications Equipment). DTE devices mainly consist of PC NICs and Routers. When connecting a DTE device to a DCE device, e.g., a PC to a Hub, a straight cable is required. When the two connecting devices have the same interface type, i.e., both DCE or both DTE, then a x-over cable is necessary.

Device

I/F Type

Device

I/F Type

Cable Type

PC

DTE

Hub Port

DCE

Straight

PC

DTE

Cable Modem

DCE

Straight

PC

DTE

PC

DTE

X-Over

Hub Port

DCE

Hub Port

DCE

X-over

Unfortunately, these examples do not constitute hard and fast rules. Some Cable Modems, especially those integrated in Set-Top Boxes, have DTE interfaces, so any PC or Router that connects to it will need a x-over cable. Also, when connecting two hubs together a x-over cable may not be necessary if one of the hubs has an uplink port. An uplink port will have a DTE type interface, so a straight cable can be used to connect to another DCE port, such as a hub port. On many hubs, one of the ports may have a port that is switchable between DCE and DTE. This function can be manual, so a switch has to be activated, or an interface can auto-detect what type of interface it needs to be.

The following diagram shows the necessary cabling required for both straight and x-over CAT5 cables. Each of the four pairs in a cable are colour coded for easy identification, although the colours may vary between different cables.


The Tx and Rx refer to Transmit and Receive respectively, with the + and - symbols refering to the polarity of the signals. A DTE device will transmit data using cables 1 and 2, whilst a DCE device will transmit on Pins 3 and 6. The transmit cables at one end must be connected to the receive cables at the other end for the connection to work. When constructing cables, it is important that the polarities are maintained so that the cable is not affected by interference.

Wednesday, January 28, 2009

Desktop Icons Transparent

How to make your Desktop Icons Transparent
Go to control Panel > System, > Advanced > Performance area > Settings button Visual Effects tab "Use drop shadows for icon labels on the Desktop

Math Coprocessor

Math Coprocessor
The Math Coprocessor is a second processor in your computer that does nothing but number crunching for the system. Addition, subtraction, multiplication, and division of simple numbers is not the coprocessors job. It does all the calculations involving floating point (decimal) numbers, such as scientific calculations and algebraic functions.
These functions and calculations are used in much of the computer's routines and just about every software available. Spreadsheets contain statistical calculations, word processors deal with line spacing, font size and justification, and of course, any graphics or animation software is relying heavily on number crunching. The Central Processing Unit (CPU) is perfectly capable of doing these functions and calculations. As a matter of fact, that used to be part of its job. Most of the older computers (pre-486) were sold without coprocessors. So the CPU had to process all the computer's hardware and software functions, handle all interrupt requests (we'll talk later), and direct all information and data, as well as performing all floating point calculations. This required a lot of the processor's time.
By having a second processor, or 'coprocessor', to take over the number crunching, it can free up a lot of the CPU's precious time. This would allow the Central Processing Unit to focus all of its resources on the other functions it has to perform, thus increasing the overall speed and performance of the entire system. It's not like this was a great revelation that came over the scientific community in the midst of home computer development. The absence of a math coprocessor in early home computer systems was a matter of keeping production costs down. The advantage was recognized right from the beginning, and most of these motherboards had an empty slot for the aftermarket addition of a coprocessor. The number (or name) of the math coprocessor followed the CPU's numbering sequence, only the last digit would be a '7', not a '6'. If you had an 8086 CPU then you could add an 8087 coprocessor. For an 80286 you would install an 80287.

Virtual Memory

Virtual memory is an addressing scheme implemented in hardware and software that allows non-contiguous memory to be addressed as if it is contiguous. The technique used by all current implementations provides two major capabilities to the system:
Memory can be addressed that does not currently reside in main memory and the hardware and operating system will load the required memory from auxiliary storage automatically, without any knowledge of the program addressing the memory, thus allowing a program to reference more (RAM) memory than actually exists in the computer.
In multi tasking systems, total memory isolation, otherwise referred to as a discrete address space, can be provided to every task except the lowest level operating system. This greatly increases reliability by isolating program problems within a specific task and allowing unrelated tasks to continue to process
Background
Hardware must have two methods of addressing RAM, real and virtual. In real mode, the memory address register will contain the integer that addresses a word or byte of RAM. The memory is addressed sequentially and by adding to the address register, the location of the memory being addressed moves forward by the number being added to the address register. In virtual mode, memory is divided into pages usually 4096 bytes long (see page size). These pages may reside in any available ram location that can be addressed in virtual mode. The high order bits in the memory address register are indexes into tables in RAM at specific starting locations low in memory and the tables are indexed using real addresses. The low order bits in the address register are an offset of 0 up to 4,095 (0 to the page size - 1) into the page ultimately referenced by resolving all the table references of page locations.
The size of the tables is governed by the computer design and the size of RAM purchased by the user. All virtual addressing schemes require the page tables to start at a fixed location low in memory that can be indexed by a single byte and have a maximum length determined by the hardware design. In a typical computer, the first table will be an array of addresses of the start of the next array; the first byte of the memory address register will be the index into the first array. Depending on the design goal of the computer, each array entry can be any size the computer can address. The second byte will be an index into the array resolved by the first index. This set of arrays of arrays can be repeated for as many bytes that can be contained in the memory address register. The number of tables and the size of the tables will vary by manufacturer, but the end goal is to take the high order bytes of the virtual address in the memory address register and resolve them to an entry in the page table that points to either the location of the page in real memory or a flag to say the page is not available.
If a program references a memory location that resolves within a page not available, the computer will generate a page fault. The hardware will pass control to the operating system at a place that can load the required page from auxiliary storage and turn on the flag to say the page is available. The hardware will then take the start location of the page, add in the offset of the low order bits in the address register and access the memory location desired.
All the work required to access the correct memory address is invisible to the application addressing the memory. If the page is in memory, the hardware resolves the address. If a page fault is generated, software in the operating system resolves the problem and passes control back to the application trying to access the memory location. This scheme is called paging.
To minimize the performance penalty of address translation, most modern CPUs include an on-chip MMU, and maintain a table of recently used virtual-to-physical translations, called a Translation Lookaside Buffer, or TLB. Addresses with entries in the TLB require no additional memory references (and therefore time) to translate, However, the TLB can only maintain a fixed number of mappings between virtual and physical addresses; when the needed translation is not resident in the TLB, action will have to be taken to load it in.
On some processors, this is performed entirely in hardware; the MMU has to do additional memory references to load the required translations from the translation tables, but no other action is needed. In other processors, assistance from the operating system is needed; an exception is raised, and the operating system handles this exception by replacing one of the entries in the TLB with an entry from the primary translation table, and the instruction which made the original memory reference is restarted.
Hardware that supports virtual memory almost always supports memory protection mechanisms as well. The MMU may have the ability to vary its operation according to the type of memory reference (for read, write or execution), as well as the privilege mode of the CPU at the time the memory reference was made. This allows the operating system to protect its own code and data (such as the translation tables used for virtual memory) from corruption by an erroneous application program and to protect application programs from each other and (to some extent) from themselves (e.g. by preventing writes to areas of memory that contain code).