Sunday, May 29, 2016

CN - Hybrid Topologies, Backbone networks, Switching

Hybrid topology
A hybrid topology is a type of network topology that uses two or more other network topologies, including bus topology, mesh topology, ring topology, star topology, and tree topology.
For example, if there exists a ring topology in one office department while a bus topology in another department, connecting these two will result in Hybrid topology. Remember connecting two similar topologies cannot be termed as Hybrid topology. Star-Ring and Star-Bus networks are most common examples of hybrid network. 

Advantages of Hybrid Network Topology:

Reliable: Unlike other networks, fault detection and troubleshooting is easy in this type of topology. The part in which fault is detected can be isolated from the rest of network and required corrective measures can be taken, WITHOUT affecting the functioning of rest of the network. 

Scalable: Its easy to increase the size of network by adding new components, without disturbing existing architecture. 

Flexible: Hybrid Network can be designed according to the requirements of the organization and by optimizing the available resources. Special care can be given to nodes where traffic is high as well as where chances of fault are high. 

Effective: Hybrid topology is the combination of two or more topologies, so we can design it in such a way that strengths of constituent topologies are maximized while there weaknesses are neutralized. For example we saw Ring Topology has good data reliability (achieved by use of tokens) and Star topology has high tolerance capability (as each node is not directly connected to other but through central device), so these two can be used effectively in hybrid star-ring topology. 

Disadvantages of Hybrid Topology


Complexity of Design: One of the biggest drawback of hybrid topology is its design. Its not easy to design this type of architecture and its a tough job for designers. Configuration and installation process needs to be very efficient.

Costly Hub: The hubs used to connect two distinct networks, are very expensive. These hubs are different from usual hubs as they need to be intelligent enough to work with different architectures and should be function even if a part of network is down.


Costly Infrastructure: As hybrid architectures are usually larger in scale, they require a lot of cables, cooling systems, sophisticate network devices, etc.


 Hybrid Network Topology
Hybrid Network Topology




Backbone networks

A backbone network is a larger transmission line that carries data gathered from smaller lines that interconnect with it.
Backbone part of the network is a core of the network with its high throughput capability and significant bandwidth. It is made for the ability of network to communicate with external networks (like Internet). It is a root of the network tree, that has rest of the network growing from it.

     At the local level, a backbone is a line or set of lines that local area networks connect to for a wide area network connection or within a local area network to span distances efficiently (for example, between buildings).  
    
    On the Internet or other wide area network, a backbone is a set of paths that local or regional networks connect to for long-distance interconnection. The connection points are known as network nodes or telecommunication data switching exchanges (DSEs).

Serial Backbone

Serial backbone is formed of two or more devices that are connected in a daisy chain (linked series). It is a simplest kind of backbone. As the one can see from Figure 1, serial backbone can be made not only from switches, but also from gateways and routers.
While designing the backbone, the one should consider the limit of the devices that can be connected to the backbone in the repeating fashion. Exceeding the limit would result in the unexpected errors and data loss in the network. Serial backbone networks are not very fault tolerant and not very scalable, that make them less commonly used that the distributed backbone.
Serial backbone type network

Figure 1. Serial backbone.



Distributed Backbone

Distributed backbone uses hierarchical design of the network, where number of intermediate devices are connected to single or multiple connectivity devices. These central connectivity devices could be switches or routers and shown with purple color in Figure 2.

Simple distributed backbone type network

Figure 2. Simple distributed backbone.

This type of backbone is easily scalable since new layers of devices can be added with no troubles. Distributed backbone allows simple administration and management of the network due to its segregation. This type of network can have daisy chain linked devices for the backbone, however, designer should consider the same limitations as for the serial backbone.
Figure 3 provides a view of more complicated distributed backbone that connects multiple LANs together. LANs are interconnected with routers that form the backbone.

Multiple LAN distributed backbone network
Figure 3. Distributed backbone that connects multiple LANs.

Overall, it is cheap, easy, and quick to implement the distributed backbone network.

Collapsed backbone

This type of backbone uses single, powerful router as the central connection point for multiple subnetworks. As Figure 4 shows, the central device is the highest level of the backbone. It should have powerful computational power in order to manage big traffic coming in. This is highly risky, since if the central device fails, the whole network would be down. However, this type of backbone is useful for the one who wants to interconnect two types of subnetworks, with ability to manage and troubleshoot them. 
Collapsed backbone network

Figure 4. Collapsed backbone.

Parallel backbone
Parallel backbone is a variation of the collapsed backbone, where devices are having more than one connection between them. As Figure 5 shows, there are multiple connections between the high level routers and the network segments. Duplicate connections ensure networks availability at anytime, higher speeds, and high fault tolerance. Logical drawback of this solutions is the increased price, since amount of required cabling is highly increased. It is not obligatory to have duplicate connections between all the devices, selective implementation of parallel structure would significantly lower the overall price and make additional ports of the devices available.

Parallel backbone network

Figure 5. Parallel backbone




http://www.tcpipguide.com/index.htm

Switching

a switch determines from the physical device (Media Access Control or MAC) address in each incoming message frame which output port to forward it to and out of. In a wide area packet-switched network such as the Internet, a switch determines from the IP address in each packet which output port to use for the next part of its trip to the intended destination.

Circuit Switching
In this networking method, a connection called a circuit is set up between two devices, which is used for the whole communication. Information about the nature of the circuit is maintained by the network. The circuit may either be a fixed one that is always present, or it may be a circuit that is created on an as-needed basis. Even if many potential paths through intermediate devices may exist between the two devices communicating, only one will be used for any given dialog. This is illustrated in  Figure 1.
Figure 1: Circuit Switching
In a circuit-switched network, before communication can occur between two devices, acircuit is established between them. This is shown as a thick blue line for the conduit of data from Device A to Device B, and a matching purple line from B back to A. Once set up, all communication between these devices takes place over this circuit, even though there are other possible ways that data could conceivably be passed over the network of devices between them. Contrast this diagram to Figure 2.



Packet Switching
In this network type, no specific path is used for data transfer. Instead, the data is chopped up into small pieces called packets and sent over the network. The packets can be routed, combined or fragmented, as required to get them to their eventual destination. On the receiving end, the process is reversed—the data is read from the packets and re-assembled into the form of the original data. A packet-switched network is more analogous to the postal system than it is to the telephone system (though the comparison isn't perfect.) An example is shown in Figure 2.
Figure 2: Packet Switching
In a packet-switched network, no circuit is set up prior to sending data between devices. Blocks of data, even from the same file or communication, may take any number of paths as it journeys from one device to another.

Comparing Circuit Switching and Packet Switching

A common temptation when considering alternatives such as these is to ask which is “better”—and as usually is the case, the answer is “neither”. There are places where one is more suited than the other, but if one were clearly superior, both methods wouldn't be used.
One important issue in selecting a switching method is whether the network medium is shared or dedicated. Your phone line can be used for establishing a circuit because you are the only one who can use it—assuming you can keep that pesky wife/husband/child/sister/brother/father/mother off the phone.

However, this doesn't work well in LANs, which typically use a single shared medium and baseband signaling. If two devices were to establish a connection, they would “lock out” all the other devices for a long period of time. It makes more sense to chop the data into small pieces and send them one at a time. Then, if two other devices want to communicate, their packets can be interspersed and everyone can share the network.
The ability to have many devices communicate simultaneously without dedicated data paths is one reason why packet switching is becoming predominant today.

However, there are some disadvantages of packet switching compared to circuit switching. One is that since all data does not take the same, predictable path between devices, it is possible that some pieces of data may get lost in transit, or show up in the incorrect order. In some situations this does not matter, while in others it is very important indeed.
While the theoretical difference between circuit and packet switching is pretty clear-cut, understanding how they are used is a bit more complicated. One of the major issues is that in modern networks, they are often combined. For example, suppose you connect to the Internet using a dial-up modem. You will be using IP datagrams (packets) to carry higher-layer data, but it will be over the circuit-switched telephone network. Yet the data may be sent over the telephone system in digital packetized form. So in some ways, both circuit switching and packet switching are being used concurrently.

Another issue is the relationship between circuit and packet switching, and whether a technology is connection-oriented or connectionless. The two concepts are related but not the same; the next topic discusses this in much more detail.



Wednesday, May 18, 2016

VLSM Exercise

We want to divide 192.168.10.0 which is a class c network into four networks, each with unequal nmber of IP address requirements as shown below.
Subnet A = 32 hosts
Subnet B = 8 hosts
Subnet C = 22 hosts
Subnet D = 60 hosts

Answers:

60 hosts (Subnet D)
32 hosts (Subnet A)
22 hosts (Subnet C)
8 hosts (Subnet B)

H = 2 ^6 = 64 - 2 = 62       S = 2^2
H = 2^6 = 64 - 2 = 62        S = 2^2
H = 2^5 = 32 -2 = 30         S = 2^3
H = 2 ^4 = 16 - 2 = 14       S = 2^4

Network Name
Network Address
Host Range
Broadcast Address
Submask  Net
Host D
192.168.1.0
192.168.1.1 – 192.168.1.62
192.168.1.63
255.255.255.192
Host A
192.168.1.64
192.168.1.65 – 192.168.1.126
192.168.1.127
255.255.255.192
Host C
192.168.1.128
192.168.1.129 – 192.168.1.158
192.168.1.159
255.255.255.224
Host B
192.168.1.160
192.168.1.161 – 192.168.1.174
192.168.1.175
255.255.255.240












Given a network of 201.4.3.0/24 subnet, the network in order to create the sub network with the following requirement.

Office 1 – 14 hosts
Office 2 – 60 hosts
Office 3 – 32 hosts
Office 4 – 7 hosts
Office 5 – 15 hosts

Answers:

60 hosts (office 2)
32 hosts (office 3)
15 hosts (office 5)
14 hosts (office 1)
7 hosts (office 4)

H = 2 ^6 = 64 - 2 = 62       S = 2^2
H = 2^6 = 64 - 2 = 62        S = 2^2
H = 2^5 = 32 -2 = 30         S = 2^3
H = 2^4 = 16 - 2 = 14        S = 2^4
H = 2^4 = 16 – 2 = 14       S = 2^4

Network Name
Network Address
Host Range
Broadcast Address
Submask  Net
Office 2
201.4.3.0
201.4.3.1 – 201.4.3.62
201.4.3.63
255.255.255.192
Office 3
201.4.3.64
201.4.3.65 – 201.4.3.126
201.4.3.127
255.255.255.192
Office 3
201.4.3.128
201.4.3.129 – 201.4.3.158
201.4.3.159
255.255.255.224
Office 1
201.4.3.160
201.4.3.159 – 201.4.3.174
201.4.3.175
255.255.255.240
Office 4
201.4.3.176
201.4.3.177 – 201.4.3.190
201.4.3.191
255.255.255.240

VLSM

VLSM
-Explain
-Purpose
-Find one example with working solution

http://computernetworkingnotes.com/ccna-study-guide/vlsm-tutorial-with-examples.html

Variable-lenght subnet mask (VLSM) is a process of dividing an IP network into the subnets of different sizes without wasting IP addresses. When we perform Subnetting, all subnets have the same number of hosts, this is known as FLSM ( Fixed length subnet mask). In FLSM all subnets use same subnet mask, this lead to inefficiencies.


Basic of Network Addressing

This tutorial is the first part of this article. In this introductory part I explained how computers find each other in network with basic terminology of network addressing.

Subnetting Tutorial - Subnetting Explained with Examples

This tutorial is second part of this article. In this part I explained IP addressing and Subnetting in detail with examples. Later I will present an easy and unique method of Subnetting that will make it easier to understand.
In real life scenario, some subnets may require large number of host addresses while other may require only few addresses.
For example, assume that you are a network administrator at Laxmisoftwares. Company has three departments connected with wan links.

  • Development department has 74 computers.
  • Production department has 52 computers.
  • Administrative department has 28 computers.
  • All departments are connected with each other via wan link. (total of 3 departments)
  • Each wan link requires two IP addresses.


First choice (purchase a class B IP address)
172.168.1.0/23
Subnetting of this address would give us 128 subnets and 510 hosts in each subnet. Our network requires only 6 subnets and 160 addresses. We would have to pay for 65356 addresses while you need only 160 addresses. Every IP address adds more dollars in company bill. Would you consider this address space for company?
Second choice (purchase at least two Class C IP addresses)
  • 192.168.1.0/25
  • 192.168.2.0/26
Subnetting of first address 192.168.1.0/25 would give us 2 subnets and 126 hosts in each subnet.
Subnetting of second address 192.168.2.0/26 would give us 4 subnets and 62 hosts in each subnet.
Collectively we are getting 6 subnets and 500 hosts from these two address spaces. We are still wasting more than 300 IP address, and we would have to purchase two address spaces.

Variable Length Subnet Mask (VLSM) extends classic Subnetting. VLSM is a process of breaking down subnets into the smaller subnets, according to the need of individual networks. In above example company has requirement of 6 subnets and 160 host addresses. With VSLM you can fulfill this requirement with single class C address space.


VLSM Subnetting

In VLSM Subnetting, we do Subnetting of subnets according the network requirement.
Steps for VLSM Subnetting:
  • Find the largest segment. Segment which need largest number of hosts address.
  • Do Subnetting to fulfill the requirement of largest segment.
  • Assign the appropriate subnet mask for the largest segment.
  • For second largest segments, take one of these newly created subnets and apply a different, more appropriate, subnet mask to it.
  • Assign the appropriate subnet mask for the second largest segment.
  • Repeat this process until the last network.

VLSM Example

Now you know the steps of VLSM Subnetting. Let's understand it with above example. Our company requires 6 subnets and 160 hosts.
Step 1 :- Oder all segments according the hosts requirement (Largest to smallest).
SubnetSegmentHosts
1Development74
2Production52
3Administrative28
4Wan link 12
5Wan link 22
6Wan link 32

Step 2 :- Do subnetting for largest segment. Our largest segment needs 74 host addresses. /25 provide us two subnets with 126 hosts in each subnet.
192.168.1.0/25
SubnetSubnet 1Subnet 2
Network ID192.168.1.0192.168.1.128
First host address192.168.1.1192.168.1.129
Last host address192.168.1.126192.168.1.254
Broadcast ID192.168.1.127192.168.1.255

Step 3 :- Assign subnet mask to the largest segment. As you can see in above table, subnet 1 fulfill our largest segment requirement. Assign it to our segment.
SegmentDevelopment
Requirement74
CIDR/25
Subnet mask255.255.255.128
Network ID192.168.1.0
First hosts192.168.1.1
Last hosts192.168.1.126
Broadcast ID192.168.1.127

Step 4 :- Do subnetting for second largest segment from next available subnet. Next segment requires 52 host addresses. Subnetting of /25 has given us two subnets with 126 hosts in each, from that we have assigned first subnet to development segment. Second segment is available, we would do subnetting of this.
/26 provide us 4 subnets with 62 hosts in each subnet.
192.168.1.0/26
SubnetSubnet 1Subnet 2Subnet 3Subnet 4
Network ID064128192
First address165129193
Last address62126190254
Broadcast ID63127191255

We cannot use subnet 1 and subnet 2 ( address from 0 to 127 ) as they are already assigned to development department. We can assign subnet 3 to our production department.
SegmentProduction
Requirement52
CIDR/26
Subnet mask255.255.255.192
Network ID192.168.1.128
First hosts192.168.1.129
Last hosts192.168.1.190
Broadcast ID192.168.1.191

Step 5 :- Our next segment requires 28 hosts. From above subnetting we have subnet 3 and subnet 4 available. Do subnetting for the requirement of 28 hosts.
192.168.1.0/27
SubnetSub 1Sub 2Sub 3Sub 4Sub 5Sub 6Sub 7Sub 8
Net ID0326496128160192224
First Host1336595129161193225
LastHost306294126158190222254
Broadcast ID316395127159191223255
Subnets 1 to 6 [ address from 0 to 191] are already occupied by previous segments. We can assign subnet 7 to this segment.
SegmentAdministrative
Requirement28
CIDR/27
Subnet mask255.255.255.224
Network ID192.168.1.192
First hosts192.168.1.193
Last hosts192.168.1.222
Broadcast ID192.168.1.223

Step 6 :- Our last three segments require 2 hosts per subnet. Do subnetting for these.
192.168.1.0/30
Valid subnets are:-
0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256
From these subnets, subnet 1 to subnet 56 ( Address from 0 - 220) are already assigned to previous segments. We can use 224,228, and 232 for wan links.
SubnetSubnet 57Subnet 58Subnet 59
Network ID224228232
First host225229233
Last host226230234
Broadcast ID227231235
Assign these subnets to wan links.
Wan Link 1
SegmentsWan Link 1
Requirement2
CIDR/30
Subnet mask255.255.255.252
Network ID192.168.1.224
First hosts192.168.1.225
Last hosts192.168.1.226
Broadcast ID192.168.1.227
Wan Link 2
SegmentsWan Link 2
Requirement2
CIDR/30
Subnet mask255.255.255.252
Network ID192.168.1.228
First hosts192.168.1.229
Last hosts192.168.1.230
Broadcast ID192.168.1.231
Wan link 3
SegmentsWan Link 3
Requirement2
CIDR/30
Subnet mask255.255.255.252
Network ID192.168.1.232
First hosts192.168.1.233
Last hosts192.168.1.234
Broadcast ID192.168.1.235
We have assigned IP addresses to all segments, still we have 20 addresses available. This is the magic of VLSM.