Tuesday, April 27, 2010

IP Address

Every machine on the Internet­ has a unique identifying number, called an IP Address. A typical IP address looks like this:
  • 216.27.61.137

­To make it easier for us humans to remember, IP addresses are normally expressed in decimal format as a "dotted decimal number" like the one above. But computers communicate in binary form. Look at the same IP address in binary:

  • 11011000.00011011.00111101.10001001

­­The four numbers in an IP address are called octets, because they each have eight positions when viewed in binary form. If you add all the positions together, you get 32, which is why IP addresses are considered 32-bit numbers. Since each of the eight positions can have two different states (1 or 0) the total number of possible combinations per octet is 28 or 256. So each octet can contain any value between 0 and 255. Combine the four octets and you get 232 or a possible 4,294,967,296 unique values!

Out of the almost 4.3 billion possible combinations, certain values are restricted from use as typical IP addresses. For example, the IP address 0.0.0.0 is reserved for the default network and the address 255.255.255.255 is used for broadcasts.

The octets serve a purpose other than simply separating the numbers. They are used to create classes of IP addresses that can be assigned to a particular business, government or other entity based on size and need. The octets are split into two sections: Net and Host. The Net section always contains the first octet. It is used to identify the network that a computer belongs to. Host (sometimes referred to as Node) identifies the actual computer on the network. The Host section always contains the last octet. There are five IP classes plus certain special addresses:

  • Default Network - The IP address of 0.0.0.0 is used for the default network
  • Class A - This class is for very large networks, such as a major international company might have. IP addresses with a first octet from 1 to 126 are part of this class. The other three octets are used to identify each host. This means that there are 126 Class A networks each with 16,777,214 (224 -2) possible hosts for a total of 2,147,483,648 (231) unique IP addresses. Class A networks account for half of the total available IP addresses. In Class A networks, the high order bit value (the very first binary number) in the first octet is always 0.


Net 115.
Host or Node 24.53.107

  • Loopback - The IP address 127.0.0.1 is used as the loopback address. This means that it is used by the host computer to send a message back to itself. It is commonly used for troubleshooting and network testing.

Colour Code Cable

This document I have inherited and do not know the author but it is useful information and silly to re-draw, but if this is your document please contact us!

Nov 2004 - It looks like this document originally came from bluemax.net, see their Techtips page where you can find more similar useful documents too.

The TX (transmitter) pins are connected to corresponding RX (receiver) pins, with plus to plus and minus to minus. A cross-over cable must be used to connect units with identical interfaces.When straight-through cables are used to connect Ethernet devices, one of the two units must, in effect, perform the cross-over function. This is the reason that straight through cables work directly between hubs or switches and NIC cards.... the Hub or Switch is designed so that their RJ45 Jacks are pre-wired with the transmit and receive pairs already reversed.

There are two colour-code standards in common use: EIA/TIA 568A and EIA/TIA 568B. These standards derive from TELCO usage and the pairs shown correspond to four phone lines, each with its own line pair. This same wiring was adopted for LAN standard Ethernet RJ45 wiring as well.

RJ45 receptacle wiring for both standards are shown below:






EIA/TIA 568AWIRING STANDARD PIN WIRE COLOUR

1 . White w/Green Stripe

2 . Green w/White Stripe

3 . White w/Orange Stripe

4 . Blue w/White Stripe

5 . White w/Blue Stripe

6 . Orange w/White Stripe

7 . White w/Brown Stripe

8 . Brown w/White Stripe


EIA/TIA 568BWIRING STANDARD PIN WIRE COLOUR

1 . White w/Orange Stripe

2 . Orange w/White Stripe

3 . White w/Green Stripe

4 . Blue w/White Stripe

5 . White w/Blue Stripe

6 . Green w/White Stripe

7 . White w/Brown Stripe

8 . Brown w/White Stripe


Note: Only pairs 2 and 3 are used for Standard Ethernet wiring. Pairs 1 and 4 can be used for other purposes such as telephones or even a second separate, complete Ethernet connection.


Straight-Through Wiring Using The 568A Standard



The flat wiring diagram, above, shows the 568A colour code standard as the wiring for the PC side of the cable and the same 568A standard for the Hub, Switch or Router side of things (assuming that the Hubs, Switches or Routers are wired internally to perform the cross-over function). The illustration depicts the wiring arrangement before insertion into an RJ45 connector prior to crimping.


Cross-Over Wiring Using The 568A to 568B Standards


The flat wiring illustration, above, shows cross-over cable wiring using the 568A colour code standard as the wiring for the PC side of things and the 568B standard for wiring to the other PC. Note that in both cases, all eight wires are shown but only four are actually needed.

Pins 4, 5, 7, and 8 and the blue and brown pairs are not used in either standard. Contrary to common tech-lore and what you may have read elsewhere, these pins and wires are not used or required to implement 100BASE-TX duplexing. In fact, they can be used for other purposes such as a single line phones or even operating two separate Ethernet channels, provided care is taken to assure that these wire pairs are isolated from the other wires.

In practice, making actual RJ45 Patch cables is not physically that simple. The connections of the pairs to the pins in the RJ45 jack isn't wire pair by wire pair. Instead, the orange pair of wires are not adjacent and the blue pair is upside-down. If fact...flattening out the cables in the correct order for insertion into the RJ45 jack before crimping is by far the most complex part of the job of making twisted pair Ethernet patch cables.

One cannot use flat-untwisted telephone cable for a network cable that runs any appreciable distance. One must use a pair of twisted wires to connect a set of transmitter pins to their corresponding receiver pins. One cannot use a wire from one pair and another wire from a different pair.

Straight Cable

There are two types of network cables commonly used in PC networks - Straight-through and cross-over.

Cross-over: A cross-over cable is used to connect two computers via their NICs, without using a hub or switch. (Note: You can only connect two computers at one time, connecting three or more will require a hub or switch of some sort).
Straight-through: A straight-through network cable is just what the name implies, a cable that passes data straight through from one end to another. Straight-through cables are used for a variety of connections. (e.g. connecting a computer to a hub or switch, connecting a computer to a cable/ISDN/DSL modem, and linking switches and hubs together.)


Let's start with a straight-through cable and then we'll get fancy with a cross-over cable.



Cutting, Stripping, And Sorting The Wires

Cut a piece of Cat 5 as long as you need. When you cut, remember the old saying: Measure twice, cut once. Make sure the cut on each end is clean and straight.


Strip about an inch of the insulation off the cable. Cut it back nice and square. Some crimping tools such as the one used in this article come with a built-in wire stripper. You put the cable in to a stop on one side of the cutter. It will cut the jacket the right length to make a perfect crimp. It is extremely important that you only cut the plastic insulation/jacket and not the wire. Damaging one of the 8 wires, even if you just nick it or partially cut it, will ruin your cable.

Untwist the wires. You'll notice that there are 4 pairs of multi-colored wires inside. Sort the pairs by color. You should end up with wires color coded as follows: blue/blue-white, orange/orange-white, green/green-white, brown/brown-white.

Note: Some Cat 5 cable skimps on the color-coding and you will have to keep the track of which wire was wrapped around which. If at all possible, check the cable before you buy and make sure the color-coding is easy to recognize. If not, you'll be cursing up a storm later and wish you would have spent the extra 5 bucks on the better cable.


Now align the wires in the following order from left to right. The order is important since there is a wiring standard defined by the Telecommunications Industry Association (TIA) http://www.tiaonline.org. It's called the EIA/TIA-568 Commercial Building Telecommunications Wiring Standard, and you can find more information on it here: http://www.digital-delivery.com/Standards.htm#s5


Get the wires lined up and nice and straight. Then clip off the top millimeter so that they are all the same length and stick out about half an inch from the insulated part.





Tuesday, April 20, 2010

Cross Cable

Introduction
This document shows how to properly construct a Crossover network cable. This cable can be used to directly connect two computers to each other without the use of a hub or switch. The ends on a crossover cable are different from each other, whereas a normal 'straight through' cable has identical ends. Their uses are shown in the following diagrams.



Crossover cable use



'Straight Through' cable use


Typically the ports on a hub are MDIX ports. This allows the machine at the other end to utilize its MDI Port (which is what typically a NIC card uses) without the need for a crossover cable. When I say that the ports on the hub are MDIX ports, what I mean is that one of the functions of the hub is to automatically perform the crossover functions, which are required to properly align the cables with each other. When no hub or switch is used, your cable itself must physically
perform these crossover functions.

To expand on this a little, when using a hub or switch, the Transmit wires on the workstation need to be connected to the Receive wires on the hub; likewise, the Receive wires on the hub need to be connected to the Transmit wires on the workstation. But if you remember what we stated earlier - cables which are run from PC to Hub are 'straight through' type cables. This is because the hub is providing the required crossover functions internally for you. Thus, when you connect two machines together without the use of a hub or switch, a crossover cable is required - because both 'ends' are essentially the same - a NIC Card. The crossover function must take place somewhere, and since there is no hub or switch to do it for you, the cable must.


Now that we know what a crossover cable is for, let's talk for a few about types of cabling. The two most common unshielded twisted-pair (UTP) network standards are the 10 Mbit (10BASE-T Ethernet) and the 100Mbit (100BASE-TX Fast Ethernet). In order for a cable to properly support 100 Mbit transfers, it must be rated Category 5 (or CAT 5). This type of low loss extended frequency cable will support 10 Base T, 100 Base-T and the newer 100VG-AnyLAN applications. Other types of cabling include Category 3 which supports data rates up to 16 Mbps, and Category 1 which only supports speeds up to 1Mbps. The cable we are about to make is considered Category 5, and will work on both 10 Mbit and 100 Mbit systems, assuming all components used (cables and jacks) are rated for Category 5.

What you need


Cable - Be sure the cable(s) you are using is properly rated for CAT 5. It should state clearly on the jacket of the cable, what it is rated at. One option that you have when selecting your cable is to use a pre-made normal 'straight through' cable, and simply whack off one of the ends, and replace with a new "Crossed Over" end. For the purpose of this article, though, we aren't going to go that route. We are going to make the whole thing from scratch - using bulk CAT 5 cable



Keep everything within hands reach of you...


Connectors - Crossover cables are terminated with CAT 5 RJ-45 (RJ stands for "Registered Jack") modular plugs. RJ-45 plugs are similar to those you'll see on the end of your telephone cable except they have eight versus four contacts on the end of the plug. Also, make sure the ends you select are rated for CAT 5 wiring. There are also different types of jacks which are used for different types of cabling (such as Solid Core wire). Make sure you buy the correct jacks for your cabling.


Crimper - You will need a modular crimping tool. My advice on what brand to get? Well, I really don't have a preference at this point, but make sure you buy a good one. If you spend about 40 to 50 bucks, you should have one that will last ya a lifetime. Spend 10 to 20 bucks, and you might be able to make a few cables with it if you're lucky. You definitely get what you pay for when it comes to crimpers!


Stripper - No I'm not talking about what Spot had at his bachelor party, I am talking about a tool to strip the ends off the wires you pervert! There are several specialized tools, which can be used to strip the jackets off of cabling. If you do not have access to one of these tools, cautious use of a razor blade or knife should work just fine - but keep in mind if you go the razor blade / knife route, extra special care must be used as to not damage the wires inside the jacket.


Cutters - You need a pair of cutters that will allow you to cut a group of cables in a straight line. It is very important that all the wires are the same lengths, and without proper cutters, this can be a difficult task.

Doing the deed
You now know what crossover cables are used for. You know why you need one. You also know what you need to make one, so I guess we're ready... First thing you will want to do it cut off the appropriate length of cable that you will need. Be sure that it is plenty long enough. If you screw up, and don't cut it long enough, you will have to start all over, and you will not only waste you time, but cable and the RJ-45 ends as well. If you are pulling this cable through a wall, or ceiling, make sure the pulling is completed first. It is much more difficult to pull a cable with the ends already on it. So you have all the parts, you understand the concepts, and you have your cable, lets get started!

Baby steps...

1) - Start by stripping off about 2 inches of the plastic jacket off the end of the cable. Be very careful at this point, as to not nick or cut into the wires, which are inside. Doing so could alter the characteristics of your cable, or even worse render is useless. Check the wires, one more time for nicks or cuts. If there are any, just whack the whole end off, and start over.


2) - Spread the wires apart, but be sure to hold onto the base of the jacket with your other hand. You do not want the wires to become untwisted down inside the jacket. Category 5 cable must only have 1/2 of an inch of 'untwisted' wire at the end; otherwise it will be 'out of spec'. At this point, you obviously have ALOT more than 1/2 of an inch of un-twisted wire, but don't worry - well take care of that soon enough.




3) - Up to this point, things have been pretty easy. Things will get a little bit tricky here, but don't worry, we'll get through this together. We are at a point in this article where a decision needs to be made. You need to decide which end of the cable you are making at this point in time. If you are making your cable from scratch like I am doing while writing this article, you have 2 end jacks, which must be installed on your cable. If you are using a pre-made cable, with one of the ends whacked off, you only have one end to install - the crossed over end. Below are two diagrams, which show how you need to arrange the cables for each type of cable end. Decide at this point which end you are making and examine the associated picture below.












568a - standard end(you will need one

of the ends onyour cable to look like this)




Crossed over end wire pattern


(you will want the other end to looklike this)






Begin to untwist the twisted exposed wires on your cable. Use caution so that you do not untwist them down inside the jacket. Once you have all the wires untwisted begin to arrange them in the proper order based on the pictures above. This stage can be a pain in the ass, especially some of the middle wires. Once you get all the wired arranged in the proper order, make sure your wire cutters are within reach then grasp them right at the point where they enter the jacket. Make sure you keep them in the proper order! Grab your cutters now. Line them up along your prepared wires about 1/2 inch above the jacket. Be sure at this point that you are both 1/2 inch above the jacket, and that your cutters are aligned straight across the wires. You want to make a clean cut here - also make sure you don't let go of that jacket / wires!



4) - Don't worry. From this point forward things get a lot easier. Grab your jack, and begin to slide the wires into the jack. Once you get to the point where the jacket begins to enter the jack things might get a little tough, but just have some patience and hold onto those wires. It will fit in there just fine. Once it is in as far as it will go the wires should extend almost to the front of the jack, and about 3/8 of an inch of the jacket will be inside the jack. Like the pictures below.


5) - Grab those crimpers - because not all crimpers are exactly the same your pictures may not match exactly what you see below. Be sure to keep a good grip on that jack and the cable. Insert the jack into the crimper. It should only go in one way, so you don't have a whole lot to worry about inserting it. Begin to compress those crimpers. You will more than likely hear a clicking sound. Keep squeezing. If you try to let go to early, nothing will happen. They will not release. Keep going until they stop clicking / stop moving all together. At this point, you should be able to let go of the jack, and the crimpers. The crimpers should release now leaving you with a crimped jack. If the crimpers do not release, you probably are a wimp and didn't press hard enough. Go ask your mom to help you at this point. She can probably finish what you started.


Insert the jack into the crimper

Crimp it! Crimp it good!

6) - It's time to examine what we have done. If you look at the end of the jack (distal), you should see that the copper connectors should not be pressed down into the wires. Toward the back of the jack (where the jacket meets the jack) it should be crimped securely holding the jacket / cable in the jack. If something has gone wrong, don't worry, its not the end of the world. Grab those cutters, and just whack the whole jack off and start back at step 1 (a pain in the ass I know, but its better to have a cable that works, than to spend hours trouble shooting your PC trying to figure out why you can't see the other machine). If everything is cool, all you have to do now is make the other end of the cable (unless you are using a pre-fab cable and have whacked one of the ends off), so go back to step one, and make the other end now.



In closing

You should now have a fully functional CAT 5 Crossover cable. It's a good idea to label it as such, especially if you have a lot of other cables lying around. So what are ya waiting for... install the cable and test it out. If it doesn't work, double-check the ends. There is always a possibility that you have overlooked something. If so just whack the bad end and make new one. Remember the more jacks you install, and the more cables you make, the easier it gets. It's really not that hard to do, the first time is definitely the most difficult.

Here are a few other things to keep in mind...

  • Maximum Cable length for including connectors is 100 meters (or about 328 feet)
  • Do not allow the cable to be sharply bent, or kinked, at any time. This can cause permanent damage to the cables' interior
  • Do not overtighten cable ties
  • Do not use excessive force when pulling cable through floors, walls or ceilings
  • Do not use staples to secure category-5 cable, use the proper hangers, which can be found at most hardware stores