<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AOIP - Anything Over IP &#187; Networking 101</title>
	<atom:link href="http://www.anythingoverip.co.za/category/networking-101/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anythingoverip.co.za</link>
	<description>Anything Over IP</description>
	<lastBuildDate>Wed, 27 Jul 2011 05:24:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Introduction to ACLs (Access Control List)</title>
		<link>http://www.anythingoverip.co.za/networking-101/introduction-to-acls-access-control-list/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/introduction-to-acls-access-control-list/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 12:31:13 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Access-Lists]]></category>
		<category><![CDATA[CCNA (ICND2)]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Access Lists]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=371</guid>
		<description><![CDATA[Before looking into the configuration of ACL (Access Control Lists), it’s important to get some of the concepts and understanding of how they work and what they are used for. Firstly, most people believe that ACL’s are used purely for denying or allowing traffic, although this is certainly one of the functions of a ACL [...]]]></description>
			<content:encoded><![CDATA[<p>Before looking into the configuration of ACL (Access Control Lists), it’s important to get some of the concepts and understanding of how they work and what they are used for.</p>
<p>Firstly, most people believe that ACL’s are used purely for denying or allowing traffic, although this is certainly one of the functions of a ACL it certainly not the only function. ACL’s can be used for</p>
<p> </p>
<p>1/ Permitting or denying packets moving THROUGH the router.</p>
<p>2/ Permitting or denying packet TO or FROM the router.</p>
<p>3/ QOS (Quality of Service)</p>
<p>4/ DDR (Dial-on Demand Routing)</p>
<p>5/ Route filtering</p>
<p> </p>
<p>So let’s break down each of the above to see its use.</p>
<p> </p>
<p>1/ When you want to restrict traffic from flowing THROUGH a router, you can attach a ACL to an interface of the router. This can be done on a INBOUND or OUTBOUND direction. The direction of the traffic is vitally important and how the router processes the information differs depending on direction of the ACL. If the ACL is bound to an interface INBOUND the ACL will take effect before any processing is done by the router. If the ACL is bound to an interface in a OUTBOUND direction, the router would have already processed the packet entirely before possibly dropping it. This could increase the processing on the router unnecessarily.</p>
<p> </p>
<p>2/ Attaching an ACL to an interface however does NOT stop traffic that is going TO or FROM the router. This means that if I’m trying to telnet to the router, the ACL on the interface will NOT APPLY. In order to restrict traffic TO or FROM the router we need to attach the ACL to the Virtual Interfaces of the router (<a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/restricting-access-to-vty-virtual-terminal-lines/">VTY</a> lines).</p>
<p> </p>
<p>3/ QOS uses ACL to define traffic that you wish to prioritise. The ACL are not bound to interfaces but are used in modular QOS</p>
<p> </p>
<p>4/ When using dial-up interfaces such as modems or <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-basic-isdn-with-interesting-traffic/">ISDN</a> you don’t want to allow any traffic to cause the interfaces to dial. If all traffic was allowed to cause the lines to dial then every time a broadcast message took place the lines would dial. This would result in the lines constantly been connected and result in a large phone bill. With ACL for DDR we define what traffic is allowed to make the modem or ISDN lines dial and create a connection. It is important to understand that when the line is active ALL traffic is allowed to flow through the line. These ACL do not restrict traffic from flowing, they restrict traffic from causing the lines to dial!</p>
<p> </p>
<p>5/ Route filtering is used when we wish to re-distribute routes learnt from one routing protocol into another one. This is most commonly seen when you have an EGP (Exterior Gateway Protocol) like BGP and you wish to insert some of the routes learnt from BGP into your IGP (Interior Gateway Protocol) such as <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-ospf-on-a-cisco-router/">OSPF</a>. You cannot re-distribute the entire BGP routing table into OSPF as OSPF cannot handle a routing table of that size, so we can restrict which entries that will be re-distributed using an ACL.</p>
<p> </p>
<p>Now that we understand the different uses of Access Control List we now need to see the 3 different types of ACL’s. STANDARD, EXTENDED and NAMED</p>
<p> </p>
<p><strong>Standard ACL</strong> only check the source address of the packet and can either permit or deny the entire protocol suite. It will have a number between 1-99 and 1300-1999</p>
<p><strong>Extended ACL</strong> can check the source and destination addresses, the source and destination port numbers, and specific protocols. It will have a number between 100-199 and 2000-2699</p>
<p><strong>Named ACL</strong> can be either standard or extended ACL, however we can associate a name to the ACL instead of using numbers.</p>
<p> </p>
<p><strong>Guidelines:</strong></p>
<p>- One ACL per interface, per protocol, per direction</p>
<p>- The order of ACL statements is important. Once  match has been made no further testing is done.</p>
<p>- The most restrictive statements go at the top of the list</p>
<p>- The last statement in an ACL is ALWAYS an implicit deny any, so every ACL needs at least one permit statement</p>
<p>- ACL must be configured before applying them to interfaces</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/restricting-access-to-vty-virtual-terminal-lines/' rel='bookmark' title='Permanent Link: Restricting access to VTY (Virtual Terminal Lines)'>Restricting access to VTY (Virtual Terminal Lines)</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-smurf-dos-attacks/' rel='bookmark' title='Permanent Link: Mitigating Smurf DoS Attacks'>Mitigating Smurf DoS Attacks</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-vty-access/' rel='bookmark' title='Permanent Link: Configuring VTY Access'>Configuring VTY Access</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/introduction-to-acls-access-control-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CIDR &#8211; Classless Inter Domain Routing</title>
		<link>http://www.anythingoverip.co.za/networking-101/cidr-classless-inter-domain-routing/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/cidr-classless-inter-domain-routing/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 06:00:52 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CCNA (ICND2)]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Routing]]></category>
		<category><![CDATA[CIDR]]></category>
		<category><![CDATA[IP Addresses]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=87</guid>
		<description><![CDATA[CIDR was invented in 1990, and was the change that allowed routers to use classless addresses to route traffic instead of class-full addresses. This helped a huge amount as before its invention, routers could only route traffic based on full classes. If we look at Class A address for example, there are only 126 of [...]]]></description>
			<content:encoded><![CDATA[<p>CIDR was invented in 1990, and was the change that allowed routers to use <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/classless-ip-addresses/">classless</a> addresses to route traffic instead of <a href="http://www.anythingoverip.co.za/networking-101/class-full-ip-addresses/">class-full </a>addresses. This helped a huge amount as before its invention, routers could only route traffic based on full classes. If we look at Class A address for example, there are only 126 of them (1-126 in the first octet), so before CIDR only 126 companies could have a Class A address. It also posed a problem, since a single Class A address gave over 1.6 million <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP addresses</a>, so when companies registered a full Class A, there was a lot IP addresses that went unused. By allowing us to &#8216;slice and dice&#8217; a Class A into smaller networks, we were able to save a huge amount of IP addresses, and of course give us much finer granularity.</p>
<p>The CIDR value is a value that indicates how many <a href="http://www.anythingoverip.co.za/networking-101/how-to-count-in-binary/">bits</a> does the <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">Subnet mask </a>have turned &#8220;on&#8221;</p>
<p> For example, if I have the IP address 10.1.2.3 with a Subnet mask of 255.0.0.0, and we convert the subnet mask into binary we get 11111111.00000000.00000000.00000000 &#8211; we can see clearly that there are 8 bits turned &#8216;on&#8217; in the subnet mask.</p>
<p> Therefore we could write the short version of our IP address as 10.1.2.3/8</p>
<p> The &#8216;/8&#8242; tells us there are 8 bits used in the subnet mask.</p>
<p> </p>
<p>So if we had an IP address of 172.16.1.2 with a subnet mask of 255.255.0.0 (In <a href="http://www.anythingoverip.co.za/networking-101/how-to-count-in-binary/">binary</a> 11111111.11111111.00000000.00000000), there are 16 bits turned &#8216;on&#8217; so the short version would be 172.16.1.2/16</p>
<p> </p>
<p>And 192.168.1.10 255.255.255.0 could be written as 192.168.1.10/24</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/' rel='bookmark' title='Permanent Link: What is an IP address'>What is an IP address</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/classless-ip-addresses/' rel='bookmark' title='Permanent Link: Classless IP Addresses'>Classless IP Addresses</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/wildcard-mask/' rel='bookmark' title='Permanent Link: Wildcard Mask'>Wildcard Mask</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/cidr-classless-inter-domain-routing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hashing, What is it and how does it work?</title>
		<link>http://www.anythingoverip.co.za/networking-101/hashing-what-is-it-and-how-does-it-work/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/hashing-what-is-it-and-how-does-it-work/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 06:00:24 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CCNA (ICND2)]]></category>
		<category><![CDATA[CSVPN]]></category>
		<category><![CDATA[IINS]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Encyption]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=83</guid>
		<description><![CDATA[Hashing is very different from encryption even though so many people believe it is an encryption protocol. Yes it does scramble the data, so from that aspect it is an encryption program, but the big difference between hashing and encryption, is that Hashing is mathematically impossible to reverse. Now I&#8217;m not the kind of person [...]]]></description>
			<content:encoded><![CDATA[<p>Hashing is very different from <a href="http://www.anythingoverip.co.za/networking-101/how-encryption-works/">encryption</a> even though so many people believe it is an encryption protocol. Yes it does scramble the data, so from that aspect it is an encryption program, but the big difference between hashing and encryption, is that Hashing is mathematically impossible to reverse. Now I&#8217;m not the kind of person that believes that something is impossible, but I&#8217;ve had to surrender myself to this concept. This is not to say that it cannot be broken&#8230;. because it can&#8230; it just cannot be reversed.</p>
<p> </p>
<p>If we look at a hashing algorithm such as MD5, which is 128-bits, it&#8217;s role and purpose is to take any data you wish, and turn it INTO 128-bits. Now if you imagine I have a manual of 800 pages and I was to run it through the MD5 algorithm, the output would be 128-bits&#8230;. that&#8217;s 128 1&#8242;s and 0&#8242;s&#8230; how is it possible to turn 128 1&#8242;s and 0&#8242;s back into a 800 page manual? 128-bits might be big enough to indicate to us what language the book was written in, but what font type? Font size? Where is the page numbering? Are there pictures? Etc&#8230;</p>
<p> </p>
<p>So if it&#8217;s impossible to reverse something that has been hashed, what is it used for? The simple answer is Integrity. Integrity is there for us to prove that the data has not been tampered with, or changed in any way, and to proof it came from the correct person.</p>
<p> </p>
<p>As an example, If I was to send you an e-mail that said, &#8220;please pay John Doe $100&#8243;, and John Doe was to intercept that e-mail and changed it to say &#8220;please pay John Doe $1000&#8243; I would not be too happy when my account was debited with the wrong amount. So what if instead of just sending you a clear message, I was to take the original data &#8220;please pay John Doe $100&#8243; and then I was to take a secret word that only you and I knew about like &#8220;secretpassword&#8221; and hashed both values together. This would result in a 128-bit hash value (Result1), that I would then attach to the original message &#8220;please pay John Doe $100&#8243;</p>
<p> </p>
<p>When you receive the e-mail it will have the original message &#8220;please pay John Doe $100&#8243; and it will have &#8216;Result1&#8242;. You will take the original message, and take the password that only you and I know about &#8220;secretpassword&#8221; and hash them together. You would end up with a result (Result2). If &#8216;Result1&#8242; is equal to &#8216;Result2&#8242; then the message is correct and has not been tampered with. If the two input fields &#8220;please pay John Doe $100&#8243; and &#8220;secretpassword&#8221; are used on both sides, the result has to be the same&#8230;. If the result is not the same, the two inputs used on my side are not the same as the two input fields on your side. Assuming we both have used the same password, then the only that could have changed is the message, proving the message has been tampered with, and we can throw it away.</p>
<p> </p>
<p>Hashing is also used extensively in passwords for authentication. When I log onto my computer in the morning, I type my username &#8220;user&#8221; and I type my password &#8220;password&#8221;. My computer sends my username to my Domain Controller in clear text (no encryption or hashing), and sends the HASH of my password not the actual password! My Domain Controller knows what my password is supposed to be, so it checks my user account in its database, retrieves what my password should be, then it hashes my password that it retrieved from its database and compares that with what I sent it. If the two results are the same, I typed my password in correctly, if they are different, I got my password wrong. This is really good from a security point of view, as if someone was to &#8216;listen in&#8217; on my conversation to try receive my password as it&#8217;s sent to the Domain Controller, all they would get is the Hash value, and not my password.</p>
<p> </p>
<p>Note: When computers hash passwords they also include extra information in the equation such as the session number, which prevents the Hash from been re-played by someone else.</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/networking-101/how-encryption-works/' rel='bookmark' title='Permanent Link: How encryption works'>How encryption works</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/snd/decrypting-type-7-passwords-enable-password/' rel='bookmark' title='Permanent Link: Decrypting Type 7 Passwords (enable password)'>Decrypting Type 7 Passwords (enable password)</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/snd/configuring-ssh-secure-shell-on-a-cisco-device/' rel='bookmark' title='Permanent Link: Configuring SSH (Secure Shell) on a Cisco device'>Configuring SSH (Secure Shell) on a Cisco device</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/hashing-what-is-it-and-how-does-it-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ports and their use.</title>
		<link>http://www.anythingoverip.co.za/networking-101/ports-and-their-use/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/ports-and-their-use/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 06:00:14 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[IINS]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[IP Addresses]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=78</guid>
		<description><![CDATA[Ports are logical channels that devices use to identify a type of traffic. If you can imagine that you and I have a 10 meter cable, that has 10,000 wires running through it, and I take 2 of the wires and attach them into the ends of a battery, and you choose 2 wires on [...]]]></description>
			<content:encoded><![CDATA[<p>Ports are logical channels that devices use to identify a type of traffic.</p>
<p>If you can imagine that you and I have a 10 meter cable, that has 10,000 wires running through it, and I take 2 of the wires and attach them into the ends of a battery, and you choose 2 wires on your end and attach them to a small light bulb. What chance have we got that my battery causes your light to glow?</p>
<p>However, what if I told you that I was using the green wire for the positive and the blue wire for the negative. If you took the same wires and attached them to your light bulb now we would have success.</p>
<p> </p>
<p>In the same way, devices on our networks also select ports for different types of connections and different types of applications. The difference with port selection, is that these ports are logical and do not represent a physical wire at all.</p>
<p> </p>
<p>If we look at surfing the web for example, when you open up your browser and type in an address of a website like <a href="http://www.aoip.org/">www.aoip.org</a> , your browser tries to make a connection to our website using a protocol called HTTP. HTTP uses port 80 to communicate, and if our server is not listening to port 80, the webpage&#8217;s would not open.</p>
<p>If you were to download a file off the internet using the FTP (File Transfer Protocol), you would be using port 20 and 21.</p>
<p> </p>
<p>Below are a list of ports that are worthwhile knowing by memory, not to say these are the only ports you need to know, but it&#8217;s certainly a good start.</p>
<p> </p>
<p>20 &#8211; FTP Data</p>
<p>21 &#8211; FTP Authentication</p>
<p>23 &#8211; Telnet</p>
<p>25 &#8211; SMTP (Simple Message Transport Protocol)</p>
<p>53 &#8211; DNS (Domain Name Service)</p>
<p>80 &#8211; HTTP (Hyper Text Transport Protocol)</p>
<p>110 &#8211; POP3 (Post Office Protocol)</p>
<p>443 &#8211; SSL / HTTPS (Security Socket Layer)</p>
<p> </p>
<p>If you are running a Microsoft Windows computer, you can have a look at file that your computer uses when it boots to learn the port numbers needed for certain protocols and applications. You can find this file in the &#8216;Windows root folder &#8211; System32 &#8211; Drivers &#8211; etc&#8217; the file is called &#8216;Services&#8217; You can open this with Notepad or WordPad and have a look at what your machine is learning about during the boot-up phase.</p>
<p> </p>
<p>It&#8217;s also worth noting, that as a general rule of thumb, any port numbers below 1024 are for International Specifications, and the products are not owned by anyone. Any port numbers from 1024 up to 65,535 are Vendor based, and the owner of the product has registered his product with the IANA for its use. There is of course exceptions to this rule&#8230; if you open the services file on your computer, have a look at port 666. It&#8217;s owned by the company ID Software, and used by the Game DOOM.</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/networking-101/how-encryption-works/' rel='bookmark' title='Permanent Link: How encryption works'>How encryption works</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/what-is-binary/' rel='bookmark' title='Permanent Link: What is Binary?'>What is Binary?</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/useable-ip-addresses-in-private-networks/' rel='bookmark' title='Permanent Link: Useable IP addresses in private networks'>Useable IP addresses in private networks</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/ports-and-their-use/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Useable IP addresses in private networks</title>
		<link>http://www.anythingoverip.co.za/networking-101/useable-ip-addresses-in-private-networks/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/useable-ip-addresses-in-private-networks/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 06:00:37 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CCENT (ICND1)]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[IP Addresses]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=74</guid>
		<description><![CDATA[I&#8217;m sure you can imagine that trying to administer an IP address for every single person on the internet would be near impossible. Added to the fact that companies don&#8217;t want every computer in their network to be accessible on the internet for security reasons. The Internic and IANA (the two governing bodies for IP [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure you can imagine that trying to administer an <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP address </a>for every single person on the internet would be near impossible. Added to the fact that companies don&#8217;t want every computer in their network to be accessible on the internet for security reasons. The Internic and IANA (the two governing bodies for <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP addresses </a>and <a href="http://www.anythingoverip.co.za/networking-101/ports-and-their-use/">Port numbers</a>), had to come up with a way for everyone to be able to choose their own IP address for private use. The IP addresses we are going to be discussing here fall part of RFC 1918 (The Request For Comment that resulted in the industry standard).</p>
<p> </p>
<p>Class A</p>
<p>10.0.0.1 &#8211; 10.255.255.254</p>
<p> </p>
<p>Class B</p>
<p>172.16.0.1 &#8211; 172.31.255.254</p>
<p> </p>
<p>Class C</p>
<p>192.168.0.1 &#8211; 192.168.255.254</p>
<p> </p>
<p>The <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP addresses </a>above are allowed to be used inside your private networks, whether this for home use or company use, may NOT appear on the internet. Since everyone on the planet uses the above guidelines, you can imagine that more than one person has the IP address 10.0.0.1, and if this was to &#8216;appear&#8217; on the internet, there would be multiple conflicts.</p>
<p> </p>
<p>For example, at my house I am using the <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP address</a> range of 10.0.0.1 &#8211; 10.0.0.254 for all my computers and networking devices. However in order for me to surf the web from my house, something has to translate my internal IP addresses, to a single Public IP address (that my Internet Service Provider gives me). This process is known as NAT (Network Address Translation) and is usually performed by a Router, in my case it&#8217;s my ADSL router that connects to my phone line. The other major advantage of running this system, is that my house only uses one public <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP address</a>, even though I may have hundreds or thousands of devices that use internal IP addresses. If you think about this from a company perspective, which might have tens of thousands of devices with internal IP addresses, they only need one IP address for internet access, and hence the ISP&#8217;s only have to issue and administer a single IP address for a large organisation.</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/nat-network-address-translation/' rel='bookmark' title='Permanent Link: NAT (Network Address Translation)'>NAT (Network Address Translation)</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/class-full-ip-addresses/' rel='bookmark' title='Permanent Link: Class-full IP Addresses'>Class-full IP Addresses</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/' rel='bookmark' title='Permanent Link: What is an IP address'>What is an IP address</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/useable-ip-addresses-in-private-networks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Class-full IP Addresses</title>
		<link>http://www.anythingoverip.co.za/networking-101/class-full-ip-addresses/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/class-full-ip-addresses/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 06:00:36 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CCENT (ICND1)]]></category>
		<category><![CDATA[CCNA (ICND2)]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Binary]]></category>
		<category><![CDATA[IP Addresses]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=66</guid>
		<description><![CDATA[The way that IP addresses have been used and allocated over the years has changed somewhat, however the principles have not changed. In order to better manage IP addresses they were put into classes and each class followed certain rules. In this post we are going to focus on the Class-full address structures, and understand [...]]]></description>
			<content:encoded><![CDATA[<p>The way that <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP addresses </a>have been used and allocated over the years has changed somewhat, however the principles have not changed. In order to better manage <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP addresses </a>they were put into classes and each class followed certain rules. In this post we are going to focus on the Class-full address structures, and understand where they come from.</p>
<p> </p>
<p>Class-full addresses are broken down into 5 different classes, A &#8211; E. In order to find out what class an <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP address</a> belongs to, all we need to do is look at the first octet and look at the below table.</p>
<p> </p>
<p>Class A</p>
<p>Number in the first octet:            1 &#8211; 126</p>
<p>Subnet mask:                            255.0.0.0</p>
<p> </p>
<p>Class B</p>
<p>Number in the first octet:            128 &#8211; 191</p>
<p>Subnet mask:                            255.255.0.0</p>
<p> </p>
<p>Class C</p>
<p>Number in the first octet:            192 &#8211; 223</p>
<p>Subnet mask:                            255.255.255.0</p>
<p> </p>
<p>Class D</p>
<p>Number in the first octet:            224 &#8211; 239</p>
<p> </p>
<p>Class E</p>
<p>Number in the first octet:            240 &#8211; 255</p>
<p> </p>
<p>You will notice in the above I have not mentioned the subnet mask values for class D and E. At this point I&#8217;m only concerned with the Unicast Traffic (one-to-one) which are Classes A,B and C. Class D is used for Multicast traffic (one-to-many), and class E is used for Broadcast (one-to-all).</p>
<p>You will also notice that I have left out a start IP address of 127, this is deliberate as any <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP address </a>that starts with 127 is reserved for local loopback testing. The local loopback exists on every machine in the world, and you will be able to ping the IP address 127.0.0.1 from the machine you are reading this on. The purpose of this loopback, is to test that your network card is working and functional, assuming you cannot ping 127.0.0.1 there is a good chance you have a fault with your network card.</p>
<p> </p>
<p>NOTE: Although 127 is not allowed in the first octet&#8230; it IS ALLOWED EVERYWHERE ELSE!!!</p>
<p> </p>
<p>The next question I have been asked many times while teaching the concept, is &#8220;Why the funny numbers, why not something easy to remember?&#8221; And the answer goes back to binary&#8230;</p>
<p>If we look at the below table, you will notice a distinctive pattern. And if we look closer you will see the first line is for Class A, if we were to change the first <a href="http://www.anythingoverip.co.za/networking-101/how-to-count-in-binary/">bit</a> our number would now be 128, which is what line 2 for Class B is. So based on the below pattern we can see where the &#8216;funny numbers&#8217; come from. The below table, shows us not only a pattern which was used to create the numbers for each class, but also shows us what the first bits MUST be in order to fall under each class. In other words, Classs A has to have a first bit of &#8217;0&#8242;, Class B has to have  &#8217;10&#8242; in its first bits, Class C = &#8217;110&#8242; Class D = &#8217;1110&#8242; and Class E = &#8217;11110&#8242;</p>
<p> </p>
<p>128         64            32            16              8              4              2              1</p>
<p>0</p>
<p>1              0</p>
<p>1              1              0</p>
<p>1              1              1              0</p>
<p>1              1              1              1              0</p>
<p> </p>
<p> </p>
<p>So in conclusion, if I had an <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP address </a>of 10.2.3.5 I would be able to tell that it&#8217;s a Class A address as the first octet is between 1-126, similarly if I had the IP address 172.16.2.3 if would be a class B since its first octet is between 128 &#8211; 191, and the IP address 192.168.1.2 would be a class C since its first octet is between 192-223.</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/classless-ip-addresses/' rel='bookmark' title='Permanent Link: Classless IP Addresses'>Classless IP Addresses</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/cidr-classless-inter-domain-routing/' rel='bookmark' title='Permanent Link: CIDR &#8211; Classless Inter Domain Routing'>CIDR &#8211; Classless Inter Domain Routing</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/useable-ip-addresses-in-private-networks/' rel='bookmark' title='Permanent Link: Useable IP addresses in private networks'>Useable IP addresses in private networks</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/class-full-ip-addresses/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What is an IP address</title>
		<link>http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 06:00:25 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CCENT (ICND1)]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Routing]]></category>
		<category><![CDATA[Binary]]></category>
		<category><![CDATA[IP Addresses]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=58</guid>
		<description><![CDATA[As the name indicates, and IP address is an address that computer equipment uses to be able to communicate with each other. It is made up of 4 octets (separated by a &#8216;.&#8217;), each of which is 8 bits in size (32 bits in total). If we look at our binary table for 8 bits, [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">As the name indicates, and IP address is an address that computer equipment uses to be able to communicate with each other.</div>
<p>It is made up of 4 octets (separated by a &#8216;.&#8217;), each of which is 8 <a href="http://www.anythingoverip.co.za/networking-101/what-is-binary/">bits</a> in size (32 bits in total).</p>
<p>If we look at our binary table for 8 bits, we can see that the very first number that we can create in 8 bits, by turning on all the switches to &#8220;off&#8221; is &#8217;0&#8242;</p>
<p> <img class="size-full wp-image-55" title="ip_address_0" src="http://www.anythingoverip.co.za/wp-content/uploads/2009/06/ip_address_0.gif" alt="IP address 0 in Binary" width="320" height="43" /></p>
<p>The maximum value we can have in an 8 bit value, by turning all the switches &#8216;on&#8217; is &#8217;255&#8242;</p>
<p><img class="alignnone size-full wp-image-57" title="ip_address_255" src="http://www.anythingoverip.co.za/wp-content/uploads/2009/06/ip_address_255.gif" alt="ip_address_255" width="320" height="43" /> </p>
<p> Thus, the lowest value that can be in a single octet of an IP address is &#8217;0&#8242;, and the highest number that can exist is &#8217;255&#8242; giving us 256 possibilities (Don&#8217;t forget &#8217;0&#8242; is a number as well).</p>
<p> </p>
<p>An IP address contains 2 pieces of information that we require to be able to route traffic to the correct device. It has a <em>network</em> value, and a <em>host</em> value.</p>
<p>We can identify which portion of the IP address is network and host based on the subnet mask (SnM).</p>
<p>If you can imagine a building that has 20 floors on it, and each floor has 100 people. If I wanted to find a person called Bob, the first thing I would need to find out, is which floor does Bob work on? Once I have found the correct floor, then I can find Bob. Similarly the network portion of the IP address would be the floor of the building, and the host would be Bob.</p>
<p> </p>
<p>If we take an IP address such as 10.1.2.3 that has a SnM of 255.0.0.0 what can we discover?</p>
<p>The subnet mask tells us which portions of the IP address is the network, and which is the Host portion. If a bit in the subnet mask has been turned on, it tells us that the equivalent bit in the IP address is part of network portion.</p>
<p>So looking at the table below, we can see that the first 8 bits of the subnet mask have been turned on (set to &#8217;1&#8242;). This tells us that the first 8 bits of the IP address is the network portion. Anywhere there is a &#8217;0&#8242; in the SnM represents the host portion.</p>
<p>00001010.00000001.00000010.00000011 (The IP address 10.1.2.3 in Binary)</p>
<p>11111111.00000000.00000000.00000000 (The SnM 255.0.0.0 in Binary)</p>
<p> Based on the above, &#8217;10&#8242; is the name of our network, since the first 8 bits of the octet have been turned &#8216;on&#8217; in the subnet mask, and the value of the first 8 bits in the IP address is equal to 10.  &#8217;1.2.3&#8242; is the name of our host since the last 3 octets of the subnet mask are set to &#8216;off&#8217; which indicated the last 3 octets are the host portion.</p>
<p> </p>
<p>As another example, if we look at the IP address 172.16.2.3 with a SnM of 255.255.0.0</p>
<p>10101100. 00010000.00000010.00000011 (172.16.2.3 in Binary)</p>
<p>11111111.11111111.00000000.00000000 (255.255.0.0 in Binary)</p>
<p> We would be able to see that the network value is now &#8217;172.16&#8242; and the host is &#8217;2.3&#8242;</p>
<p> </p>
<p>For a third example, let&#8217;s look at the IP address 192.168.1.1 with a SnM of 255.255.255.0</p>
<p>11000000.10101000.00000001.00000001 (192.168.1.1 in Binary)</p>
<p>11111111.11111111.11111111.00000000 (255.255.255.0 in Binary)</p>
<p> &#8217;192.168.1&#8242; is now our network, and &#8217;1&#8242; is the host</p>
<p> </p>
<p>What you will also notice between each of the above, is that in the first example we had a total of 24 bits (3 octets of 8 bits each) that belong to the host portion of the IP address. This means that we could have a total of 16,777,216 (2 to the power of 24) hosts in our network called &#8217;10&#8242;.</p>
<p>In the second example we have 16 bits that belong to the host portion of the IP address which gives us 65,536 (2 to the power of 16) hosts in our network called &#8217;172.16&#8242;</p>
<p>The third example has 8 bits belonging to the host portion which gives us 256 (2 to the power of 8 ) hosts in our network called &#8217;192.168.1&#8242;</p>
<p> </p>
<p>There is a rule that you must remember however&#8230; The very FIRST and LAST values in the host portion, are not allowed to be given to a computer device to use as their address.</p>
<p>In our first example we had a network of &#8217;10&#8242; and the total IP range could have been 10.0.0.0 &#8211; 10.255.255.255 (16.7 Million values). This means the first value 10.0.0.0 is not allowed, and the last value 10.255.255.255 is not allowed. So the values that can be used and can be allocated to devices are 10.0.0.1 &#8211; 10.255.255.254.</p>
<p> The reason for this is&#8230; the very first address (10.0.0.0) is the name of our network. This would be the equivalent of talking about floor 10 of a building, we are not talking about anyone on floor 10, we are talking ABOUT the whole floor. The very last address (10.255.255.255) is our broadcast address. This would be the same as having a PA system on floor 10 and sending a message to everyone on floor 10, we are talking TO the whole floor. It&#8217;s impossible for someone to be a floor, and it&#8217;s impossible for someone to be everyone, the same applies to IP address, it&#8217;s not possible for a computer device to be a network, and it&#8217;s impossible for a device to be everything.</p>
<p> The biggest mistake I&#8217;ve seen people making regarding the rule, is that somewhere, someone told them that &#8217;0&#8242; and &#8217;255&#8242; are not allowed in the last octet. This is completely false!!!</p>
<p>In our first example, we CAN have an IP address of 10.0.1.0 as this is not the very FIRST IP address,10.0.0.0 is. Similarly, we CAN have an IP address of 10.0.0.255 as this is not the first or the last, 10.255.255.255 is the last.</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/networking-101/cidr-classless-inter-domain-routing/' rel='bookmark' title='Permanent Link: CIDR &#8211; Classless Inter Domain Routing'>CIDR &#8211; Classless Inter Domain Routing</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/wildcard-mask/' rel='bookmark' title='Permanent Link: Wildcard Mask'>Wildcard Mask</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/class-full-ip-addresses/' rel='bookmark' title='Permanent Link: Class-full IP Addresses'>Class-full IP Addresses</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to convert Hexadecimal into Decimal</title>
		<link>http://www.anythingoverip.co.za/networking-101/how-to-convert-hexadecimal-into-decimal/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/how-to-convert-hexadecimal-into-decimal/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 06:00:18 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CCENT (ICND1)]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Binary]]></category>
		<category><![CDATA[Hexadecimal]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=32</guid>
		<description><![CDATA[Hex or Hexadecimal, is a 16-base number system with values from 0-9 as well as ABCDEF where A=10, B=11, C=12, D=13, E=14, F=15. Hex is used in many things in IT, most commonly seen in Mac addresses (A unique identity number on every Network Card). It is also seen in certain features such as HSRP [...]]]></description>
			<content:encoded><![CDATA[<p>Hex or Hexadecimal, is a 16-base number system with values from 0-9 as well as ABCDEF where A=10, B=11, C=12, D=13, E=14, F=15.</p>
<p>Hex is used in many things in IT, most commonly seen in Mac addresses (A unique identity number on every Network Card).</p>
<p>It is also seen in certain features such as HSRP (Hot Standby Routing Protocol) group numbers.</p>
<p> </p>
<p>This section is here to help understand how to convert Hex into <a href="http://www.anythingoverip.co.za/networking-101/what-is-binary/">Binary</a>, and Binary into Decimal and of course the reverse.</p>
<p> </p>
<p>Let&#8217;s begin with the easy one, the reverse&#8230; If I have the number 47 and wanted to convert that into Hexadecimal, the easiest way is to first put it into Binary.</p>
<p> </p>
<p>Using our binary table (as described in the post <a href="http://www.anythingoverip.co.za/?p=9">&#8220;How to count in Binary&#8221;</a> ) we see the binary value is 00101111</p>
<p> </p>
<p>128         64            32           16           8              4              2              1</p>
<p>0              0              1            0            1              1              1              1</p>
<p> </p>
<p> </p>
<p>Hex is not that much harder to get to from here, but what we need to do is break up the byte (8 bits) into 2 halves of 4 bits each. And draw a new table above each of the 4 bits (as seen below)</p>
<p> </p>
<p>8              4              2              1                                   8              4              2              1</p>
<p>0              0              1              0                                   1              1              1              1</p>
<p> </p>
<p> </p>
<p>You will notice that the above Binary is the same as it was in the first table, however I&#8217;ve split the 8 bits in half and created 2 new groups of 4 bits each.</p>
<p>If we look at the first group we see that only the 2 has been turned on which results in the value been equal to &#8217;2&#8242;</p>
<p>In the second group, the 8 and 4 and 2 and 1 have all been turned on which results in the value been equal to &#8217;15&#8242; (8+4+2+1)</p>
<p> </p>
<p>So we currently have 2 (from the first group) and 15 (from the second group). 2 is a valid number in Hex so it remains exactly the same however 15 is represented in Hex as &#8216;F&#8217;</p>
<p>Therefore 47 in Decimal is equal to 2F in Hexadecimal.</p>
<p> </p>
<p> </p>
<p>So what if we had the Hex value and wanted to get it back to Decimal, let&#8217;s look at the value 4C.</p>
<p>We know that &#8217;4&#8242; is a valid Hex value, and we now know that &#8216;C&#8217; is a representation of &#8217;12&#8242; in Hex.</p>
<p>Working backwards we need to create 2 tables of 4 bits each, and fill &#8217;4&#8242; into the first table, and &#8217;12&#8242; into the second</p>
<p> </p>
<p>8              4              2              1                                8              4              2              1</p>
<p>0              1              0              0                                1              1              0              0</p>
<p> </p>
<p>After we have done this, we now need to re-join the 2 halves back into a single 8 bit structure</p>
<p> </p>
<p>128         64            32           16           8              4              2              1</p>
<p>0              1              0            0            1              1              0              0</p>
<p> </p>
<p>And if we add up all our &#8220;On&#8221; bits, we have (64+8+4=76)</p>
<p>Therefore 4C in Hexadecimal is equal to 76 in decimal</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/networking-101/what-is-binary/' rel='bookmark' title='Permanent Link: What is Binary?'>What is Binary?</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/' rel='bookmark' title='Permanent Link: What is an IP address'>What is an IP address</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/how-to-count-in-binary/' rel='bookmark' title='Permanent Link: How to count in Binary'>How to count in Binary</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/how-to-convert-hexadecimal-into-decimal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How encryption works</title>
		<link>http://www.anythingoverip.co.za/networking-101/how-encryption-works/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/how-encryption-works/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 06:00:46 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CSVPN]]></category>
		<category><![CDATA[IINS]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Binary]]></category>
		<category><![CDATA[Encyption]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=30</guid>
		<description><![CDATA[The concept of encryption can be quite daunting when you first look at it, however the basic concept of encryption is not that hard to understand   When I moved into my house, my bathroom door didn&#8217;t have a key. The previous owners of the house didn&#8217;t know what key was needed for that door [...]]]></description>
			<content:encoded><![CDATA[<p>The concept of encryption can be quite daunting when you first look at it, however the basic concept of encryption is not that hard to understand</p>
<p> </p>
<p>When I moved into my house, my bathroom door didn&#8217;t have a key. The previous owners of the house didn&#8217;t know what key was needed for that door as they never had one either.</p>
<p>I went down to my local hardware store and spoke to them about my problem, and after paying a deposit for a whole set of keys, I was on my way back home.</p>
<p> </p>
<p>The key set they gave me was for the Y-standard (each key starts with Y, i.e. Y1, Y2, Y3 etc), and there were just over a hundred of these keys. So there I was, in my bathroom trying every key in the bunch starting at Y1 all the way through to the end. Now if it had been my lucky day, I would have tried Y1 and had success. Worst case scenario it would have been the very last key, which I think was Y115. Now with only about 115 keys to try, it really isn&#8217;t the end of the world, and I did manage to find the right one after some time.</p>
<p> </p>
<p>The point to my scenario, is that no-one had to explain to me how to use a key, or how to unlock a door. That&#8217;s not a big secret to anyone. The big secret is, which key opens the door.</p>
<p>Similarly with encryption, the algorithm that is used to encrypt and decrypt data is freely available on the internet, if you were to do a couple searches you will find the equation used in particular formula &#8211; much like different doors have different types of locks.</p>
<p> </p>
<p>The big difference between my bathroom door, and computer encryption, is the amount of keys in the bunch.</p>
<p>If we were to assume that there was such a thing as 3-bit encryption, then the possible keys would be</p>
<p>000</p>
<p>001</p>
<p>010</p>
<p>011</p>
<p>100</p>
<p>101</p>
<p>110</p>
<p>111</p>
<p> </p>
<p>Giving us 8 possible keys to try (2 to the power of 3). Needless to say, with only 8 keys this would take no time at all to find the right one to &#8220;open our door&#8221;</p>
<p> </p>
<p>Encryption technologies therefore use a much larger structure, and hence have a lot more keys that one would have to try to break into an encrypted document.</p>
<p>40-bit encryption (2 to the power of 40) gives us a total of 1,099,511,627,776 &#8211; That&#8217;s over a TRILLION possibilities, and it&#8217;s a good thing that my bathroom door didn&#8217;t have that many keys I had to try! But just how good is that? Considering that in human terms a trillion of anything is amazing. Computers however are able to do millions and billions of things per second. My computer for example, is able to test just over 10 million keys per second, which makes a trillion not that far out of reach. Based on that, it would take my machine 1.2 Days to crack a 40-bit encryption standard.</p>
<p> </p>
<p>So how good is 56-bit encryption then?</p>
<p>56-bit will give us a total of 72,057,594,037,927,936 (72 Quadrillion keys!!!) I can&#8217;t even comprehend that amount of anything. But yet again, just how good is that really. Well based on my computer been able to do just over 10 million keys per second, it would take my computer 228 YEARS!!!! The beautiful thing about <a href="http://www.anythingoverip.co.za/networking-101/how-to-count-in-binary/">binary</a>, is that for every <a href="http://www.anythingoverip.co.za/networking-101/what-is-binary/">bit</a> larger the encryption key is, the amount of keys DOUBLES in size. So 57-bit would take me 456 Years, 58-bit would take me 912 Years etc.</p>
<p> </p>
<p>The good news is, that encryption standards today usually work on</p>
<p>56-bit                             72,057,594,037,927,936         (228 years for my computer to decrypt)</p>
<p>64-bit                    18,446,744,073,709,551,616         (58,494 Years)</p>
<p>128-bit                  ???</p>
<p>1024-bit                ???</p>
<p>2048-bit                ???</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/networking-101/hashing-what-is-it-and-how-does-it-work/' rel='bookmark' title='Permanent Link: Hashing, What is it and how does it work?'>Hashing, What is it and how does it work?</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/snd/configuring-ssh-secure-shell-on-a-cisco-device/' rel='bookmark' title='Permanent Link: Configuring SSH (Secure Shell) on a Cisco device'>Configuring SSH (Secure Shell) on a Cisco device</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/snd/decrypting-type-7-passwords-enable-password/' rel='bookmark' title='Permanent Link: Decrypting Type 7 Passwords (enable password)'>Decrypting Type 7 Passwords (enable password)</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/how-encryption-works/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to count in Binary</title>
		<link>http://www.anythingoverip.co.za/networking-101/how-to-count-in-binary/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/how-to-count-in-binary/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 06:00:07 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CCENT (ICND1)]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Binary]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=9</guid>
		<description><![CDATA[The first and most important thing to understand when it comes to networking is binary. Without the fundamental understanding of binary and how it works, it would be very difficult to understand IP addresses, and without an understanding of IP addresses, it’s impossible to understand networking. So what is binary? Binary is a number system [...]]]></description>
			<content:encoded><![CDATA[<p>The first and most important thing to understand when it comes to networking is binary. Without the fundamental understanding of binary and how it works, it would be very difficult to understand <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP addresses</a>, and without an understanding of <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP addresses</a>, it’s impossible to understand networking.</p>
<p>So what is binary?<br />
Binary is a number system based on a Base 2 system. If you remember your school days when you were taught how to count, more than likely your teacher explained how the Base 10 number systems worked. The 10 base number system allows numbers 0 – 9 to be placed under the correct column to be able to represent any possible number. In the table below, we can see the base 10 up to the power of 3 (1000).</p>
<p> <img class="alignnone size-full wp-image-17" title="10base" src="http://www.anythingoverip.co.za/wp-content/uploads/2009/06/10base.gif" alt="10base" width="185" height="62" /></p>
<p> </p>
<p>So if we wanted to represent the number ‘3062’ we would have to place each number under the correct column</p>
<p> <img class="alignnone size-full wp-image-21" title="10baseexample" src="http://www.anythingoverip.co.za/wp-content/uploads/2009/06/10baseexample.gif" alt="10baseexample" width="186" height="83" /></p>
<p>In the above diagram, we had to represent the number ‘3062’ or more precisely, 3 x 1000’s, 0 x 100’s, 6 x 10’s, 2 X 1’s (3000+0+60+2 = 3062)</p>
<p>Binary on the other hand, is not based on a base 10 number system, it’s based on a base 2. This means 2 things to us. Firstly, the ‘numbers’ we can place under each column can only be 0 or 1 (also known as “Off” and “On”). Secondly, our columns look much different.</p>
<p> <img class="alignnone size-full wp-image-23" title="2base" src="http://www.anythingoverip.co.za/wp-content/uploads/2009/06/2base.gif" alt="2base" width="371" height="63" /></p>
<p>So let’s say we wanted to represent the number ‘56’ in binary.</p>
<p><img class="alignnone size-full wp-image-20" title="2baseexample" src="http://www.anythingoverip.co.za/wp-content/uploads/2009/06/2baseexample.gif" alt="2baseexample" width="371" height="81" /></p>
<p>Since we can only place a &#8217;0&#8242; or &#8217;1&#8242; into our column, it really becomes a question of, do I need one of these values to make my number?</p>
<p>If I select yes &#8217;1&#8242; under column 128, the number would obviously be larger than 56. This means, I don&#8217;t need a &#8217;128&#8242; and also don&#8217;t need a &#8217;64&#8242; so I place a &#8217;0&#8242; under each of those columns. I do however need a &#8217;32&#8242; so I place a &#8217;1&#8242; under that column. I also need a &#8217;16&#8242; and a &#8217;8&#8242; and I don&#8217;t need any of the other numbers. IMPORTANT NOTE : You MUST place zero&#8217;s under the last columns as they are place holders!.</p>
<p>What I now have is a yes &#8217;1&#8242; under the columns 32, 16, 8 (1x 32, 1&#215;16, 1&#215;8,0&#215;4,0&#215;2,0&#215;1 = 32+16+8+0+0+0 = 56)</p>
<p>The first zero&#8217;s in our column can be removed, so 56 can also be written in binary as 111000</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/networking-101/how-to-convert-hexadecimal-into-decimal/' rel='bookmark' title='Permanent Link: How to convert Hexadecimal into Decimal'>How to convert Hexadecimal into Decimal</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/what-is-binary/' rel='bookmark' title='Permanent Link: What is Binary?'>What is Binary?</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/' rel='bookmark' title='Permanent Link: What is an IP address'>What is an IP address</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/how-to-count-in-binary/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

