Friday, May 15, 2015

What is DWDM?

OK well, it’s been a long time since I’ve blogged anything.  Someone be sure and tell @networkstatic about this.  He’ll be proud.  Here goes…

I wanted to talk about the wonders of DWDM and how it works.

Let’s start by stating the meaning of the acronym.  DWDM – Dense Wave Division Multiplexing.  Dense is a relative term in this context.  The other type of WDM is CWDM, which is Course Wave Division Multiplexing.  Course wave is great for smaller scale because the gear is cheap and you can get away with “dirty” fiber.  Dense wave has higher density multiplexers.  The latest one I’ve heard of for 10gb channels give you 96 channels of 10gb.  The last one I heard of for 100gb, gives you 44 channels of 100gb.

So - what does it do?  How does it work?  Why would you use it?

What does it do?  It allows companies and service providers to leverage just one pair of fiber to carry multiple “channels” of data.  Each channel acts like a different physical connection within the same fiber cable.  Sometimes when explaining it at a high level, I describe it like this: “Think of each channel as a 60 mile long patch cable.”


How does it work?  To me, this is the cool part.  Inside of one of the module of the DWDM gear is a prism.  Everyone is probably familiar with the Pink Floyd’s Dark Side of the Moon album cover that looks like this:

So, why does this happen?  Why does the light scatter like that?  According to Joseph Von Fraunhofer, when light travels through air, all of the colors in the spectrum travel at the same speed.  However, when that same light passes through a prism, the light slows down and changes direction.  Since the light is passing through glass at an angle and the different colors of light vibrate at different frequencies, the different colors of light begin to travel at different speeds.  This speed difference between the colors causes them to break apart as they pass through the prism.  Maybe I’m just a total geek, but I find that very cool.

Why would you use it?  There are several use cases for this technology.  Probably the most widely used, but taken for granted, is transcontinental communication.  There are thousands of miles of fiber optic cable laying on the floor of the world’s oceans.  Check out this website to see all of this cable and who owns it.  This is one of my favorite websites: http://www.submarinecablemap.com/.  DWDM technology is used at the landing points to maximize the use of the fiber strands.

Another use case would be for companies that needs to move large amounts of data between data centers in very short spans of time.  For instance, storage replication is a common reason for implementing DWDM.  I’ve seen cases where companies need a layer two adjacency between data centers.  Using DWDM over dark fiber is a great option over VPLS or pseudowire, depending on the needed scale and distance.

One of the more compelling cases is to replace more expensive, slow managed services with much faster, cheaper equipment that is far more scalable.  When trying to price large bandwidth connections between data centers, some companies will lease wavelength services from a carrier.  This can be a good interim option.  However, I have found that you can actually buy the fiber gear and have multiple strands of dark fiber run between your data centers more cheaply than wavelength services. 

Some companies could even build a DWDM ring to replace the function of the Local Exchange Carrier for remote office connectivity.  This particular option requires colocation of your DWDM gear in a carrier hotel.  Taking over the LEC function provides a far more flexible, manageable and more cost effective solution than traditional carriers can provide. 

The flexibility gained by the use of DWDM is simply unmatched.  One of the sites I visit for news on DWDM is: http://www.lightwaveonline.com/network-design/dwdm-roadm.html
I hope this gives you information you didn’t already have.  Happy Computing!

Monday, January 2, 2012

IPv4 Subnetting

IP subnetting is one of the core skills that good network engineers should master.  However, being able to subnet the Internet Protocol isn’t a skill exclusively reserved for network engineers.  Many different types of technologists could benefit from understanding how IP addressing and subnetting works.
Before we get into subnetting IP networks, let’s first discuss what IP addressing is, how it works and its architecture.

The Address

An Internet Protocol (IP) address is a logical address of a host that must be unique on the network.  Many technical writers liken the IP address to a street address.  Each house on the street must have a unique address.  Otherwise, the mail could possibly (and likely) be consistently delivered to the wrong house.  The same does indeed hold true for an IP address.  It must be unique, otherwise, the router(s) will not know to which host to deliver the packet of information.
An IP address is a 32 bit number represented in a dotted decimal format.  The 32 bits are divided into four separate octets.  The eight positions in each octet are given a number value based on a power of two.  It is very similar to the traditional numbering system that is based on 10.  In Table 1 below, the traditional numbering system and the place values are shown.
Table 1
107
106
105
104
103
102
101
100
10,000,000's
1,000,000's
100,000's
10,000's
1,000's
100's
10's
1's

So, the number 1275 would have one instance of 103, two instances of 102, seven instances of 101 and 5 instances of 100.
The binary system, shown below in Table 2, works in the same way.  It is simply based on two rather than 10.
Table 2
27
26
25
24
23
22
21
20
128
64
32
16
8
4
2
1

As you can see from the number positions and their values, the highest numerical value within each octet is 255.  Therefore, you have 256 possible values.  Don’t forget about zero!  0-255 gives you 256 numbers.  The number in each octet is derived from the placement of a 1 or 0 in each of the binary positions.  The typical descriptions I have read describe 1 as the “I care” bit and the 0 as the “I don’t care” bit.  So, the 1 indicates an instance of that value and a 0 indicates no instance of that value.  To get the number displayed, you simply add the values with a 1 in their position and the sum is the value.
Let’s take a look at a binary representation of a number.  Table 3 below represents the number 153:
Table 3
128
64
32
16
8
4
2
1
1
0
0
1
1
0
0
1

If take a look at the value positions with a 1 and add them, you get:
128+16+8+1 = 153
Each octet work in the exact same way when arriving at the IP address.

The Classes

IP addresses are divided into five classes.  The classes are A, B, C, D and E.  The classes are defined by the placement of 1’s and 0’s in the first few bits of the address.
Class A has a “0” in the first bit of the first octet.  So, Class A addresses range from 0-126 in the first octet.  Note: 127.0.0.0 – 127.255.255.255 is reserved for loopback addresses.
Class B has a “10” in the first two bits of the first octet.  This would put class B’s range from 128-191 in the first octet.
Class C has “110” in the first three bits of the first octet.  This makes the range of class C addresses 192-223 in the first octet.
Class D has “1110” in the first four bits of the first octet.  The range of class D addresses would be 224.0.0.0 – 239.255.255.255.  Class D addresses are used for multicast traffic.  There are many applications and protocols that effectively utilize multicast.  Many routing protocols use it for forming adjacencies and sending updates. 
Class E has “11110” in the first five bits of the first octet.  Class E addresses are not in IP networks.  The term typically used for the use of class E addressing is “experimental.” 

The Network

Subnetting IP networks is very similar, but it is just different enough that the result is often confusion.  Within an IP address are two different parts.  There is a network portion and a host portion.  The subnet mask will have a number of contiguous 1’s that represent the network portion of the address.  The mask must be contiguous 1’s.  If mask was not contiguous, it could be ambiguous (Too many …uous words?) and the “/” notation wouldn’t work.  With IP, the more subnets you have, the fewer hosts you will have per network.  The inverse is also true.  The fewer networks you have, the more hosts you have per network.  You will often see an IP address coupled with a subnet mask.
1)      192.168.100.10   255.255.255.0
2)      192.168.100.10   /24
The first line is the traditional representation of the IP address with the subnet mask represented in dotted decimal notation.  The second line has the subnet mask represented as the number of bits in the mask.  This would make the network portion of the address the first 24 bits and host portion the last eight bits.  The network portion of the address is: 192.168.100.  The host portion is .10.  So, this network would be 192.168.100.0.  The broadcast address, being all ones in the host portion, would be 192.168.100.255.
In an IP subnet, the formula for the number of hosts in the subnet is 2n-2, where “n” is the number of hosts bits.  You subtract the two because you typically do not use the network address as a host address and you can’t use the broadcast address.  So, if you have a /24 network there are eight hosts bits.  Using the formula, 28-2, you get 254 possible host addresses.
Now, to make it a little tricky.  What happens if you take away a bit from the network portion and give it to the host portion?  The IP address doesn’t change, but the subnet mask does.  It turns into 192.168.100.10  255.255.254.0.  That is a /23 subnet mask.  How many hosts do you think would be in each subnet?  Let’s use our formula and see what we get.  29-2=510. Let’s move that subnet mask bit in the other direction and see what happens.  Let’s take away a host bit and give it to the network.  That would make our IP address and mask 192.168.100.10  255.255.255.128.  This is a /25 subnet mask.  Using our formula, 27-2, we get 126 possible hosts per subnet. 

RFC 1918

There are some networks that are not allowed to be routed on the Internet.  These network address ranges are defined in RFC 1918.  These are, by far, the most utilized IP addresses on private IP networks.  These networks are as follows:
1)      10.0.0.0 /8
2)      172.16.0.0 /12
3)      192.168.0.0 /16
Since these addresses are not allowed on the Internet and most companies use them, you must perform a function called Network Address Translation (NAT) in order to translate those addresses into something the Internet will route.  NAT may be a little out of the scope of this instance of the blog, but I wanted to plant the seed.

That is pretty much the meat of IPv4 subnetting.  If there are questions, please leave a comment and I would be happy to field them as best I can.

Happy Computing!!

Monday, November 7, 2011

How DNS Works...

I was asked the other day, “How does DNS work?”  The context of this question was a conversation about that new .XXX top level domain (TLD) and why someone would want to pre-register a trademarked name.  Some examples of other common TLD’s would be “.com”, “.net” and “.org.”
Let’s start with purchasing the domain name.  You will choose from a number of Internet name registrars.  A couple of commonly known registrars are GoDaddy and NetworkSolutions.  Once you have created an account, you will be able to search for available names and make your purchase.  If the name you desire is not available, most registrars will suggest names to you that appear to be similar.  Most of these registrars will give you check boxes or radio buttons to choose the TLD in which you wish your name to reside.  Individuals will typically pick one and buy it while companies will buy the domain in all three most common TLD’s to prevent any confusion and to protect their brand.

 

Ok, so you’ve bought example.com from NetworkSolutions.  The registrar will register the name with the central Internet Registry.  (Historically, this is managed an organization called INTERNIC.)   Now you want to edit that domain name and tell the registrar what DNS servers it is to use as authoritative when a DNS query is issued for your name.  You should be prompted for a primary and a secondary resource.  This is where you will enter the IP addresses of the DNS servers that you wish to resolve these names. 

 

Now you have ownership of a domain name and have assigned an authoritative name source for that domain.  Now you must define that domain name on your DNS server.  Fortunately, DNS is very mature and most DNS servers will walk you through the process of domain creation in an intuitive fashion.  Once your domain is created, now you will need to put your web server host in that domain.  The most common host name for an Internet web server is WWW.  So, WWW is the host portion of the name, EXAMPLE is the domain and COM is the TLD.  So, the name looks like www.example.com.  You are certainly not limited to WWW as the host name.  It just seems to be the most commonly used host name and is therefore intuitive to most users in the Internet community.  During this host creation process, you must assign the WWW host an IP address.  This address will be given to you by an administrator or by your ISP depending on your circumstances.

So, you have purchased a name, assigned DNS servers to it, made it reachable to others on the Internet.  But how does the user find you?  How does their DNS server know where to look in order to find you? 
In Figure1 below, you will notice there are several steps in order for a name to be properly resolved.
Figure 1

The steps follow the order in which standard network computing rules specify name resolution should occur.  The first step is for the requesting computer to consult its local “hosts” file to see if it has the name defined.  If it does not have the name defined, the next step will be to consult the local DNS servers that have been assigned to this computer via DHCP.  These DNS servers could be corporate DNS servers managed by an in-house IT staff or DNS servers owned and maintained by your ISP, depending on your computing environment.  If the local DNS servers are authoritative for the domain, meaning the DNS server has the domain locally defined, it will return an answer to the query.  If the DNS server is not authoritative, the next step will be to issue a recursive query for the authoritative source for the domain.  This recursive query will begin with the root name servers for the Internet.  All DNS software that is currently shipping has all 13 root name servers pre-defined.  The root name servers are not authoritative for any domain, they are merely aware of the name servers for all of the (240+) TLD’s.  So they will return the address of a name server for the TLD in which the domain you are requesting lives.  For instance, it will return the address of a name server for the .COM domain.  The local DNS server, having received that information, will then query that name server for the authoritative source for the EXAMPLE.COM subdomain.  The .COM name server will consult the Internet Registry for this information and return it to the requesting name server.  Now the local DNS server has the address of the authoritative name server.  It will now query that DNS server for the name WWW.EXAMPLE.COM.  The authoritative name source will reply with the address of the host.  The local DNS server will then give that information to the requestor and name resolution is complete.
Once a query is complete, the requesting host and the local DNS server will maintain a cache of this information for a specified amount of time.  If this same query is issued before the cache is cleared, the resolution of the name will take place much more quickly and without having to issue a recursive query.
That is DNS in a nutshell.  Happy computing J

Monday, October 24, 2011

How this blog got its name

Welcome to my new blog about various networking topics.  The topics will range from the elementary to (what I consider) very complex.

Somewhat funny story of how I named this blog.

Several years ago I was talking to my manager at the time.  He was already aware that he wasn't going to be my manager much longer as we were talking about my future.  At the time, I was an aspiring network engineer with very little experience.  I was having some trouble wrapping my brain around the vastness that is networking.  I was struggling with Internet routing using BGP at the time.  I was expressing my frustration with the options and scalability of BGP.  I then expressed my desire and plan to pursue CCIE certification.

I began to explain how difficult that certification can be to obtain and how much demand there is for people with that skill set.  His response?  You guessed it..."I don't see what the big deal is.  It's just routing."  There were several people within ear-shot listening to the conversation.  Fast forward 10 years and this seemingly ridiculous statement lives on.  It is repeated back to me in various situations at least once every couple of weeks.

I said "seemingly" because surprisingly, I sometimes use the statement as a teaching tool.  There is some wisdom in removing the fear of infrastructure configuration for more junior engineers.

I will make an effort to post on this blog weekly.  Again, the topics will likely be related to networking technology.  Thanks for stopping by.

Matt :)