A standard Procedure for regulating Data transmission between computers. That's just what a routing protocols is. It is an agreement between networking devices as to how they're going to transmit and receive data.
Monday, May 16, 2011
Sunday, May 15, 2011
Routing Basics
Once you create an internetwork by connecting your WANs and LANs to a router, you'll need to configure logical network addresses, such as IP addresses, to all hosts on the internetwork so that they can communicate across that internetwork.
The Term routing is used for taking a packet from one device and sending it through the network to another device on a different network. Routers don't really care about hosts-they only care about networs and the best path to each network. The logical network address of the destination host is used to get packets to a network through a routed network, and then the hardware address of the host is used to deliver the packet from a router to the correct destination host.
If the network has no routers, then it should be apparent that you are not routing. Routers route traffic to all the networks in your internetwork. To be able to route packets, a router must know, at a minimum, the followings:
- Destination Address
- Neighbor routers from which it can learn about remote networks
- Possible routes to all remote networks
- The best route to each remote network
- How to main and verify routing information
The router learns about remote networks from neighbor routers or from an administrator. The router then builds a routing table (a map of the internetwork) that describes how to find the remote networks. If a network is directly connected, then the router already knows how to get it.
If a network isn't directly connected to the router, the router must use one of two ways to learn how to get to the remote network: Static Routing, meaning that someone must hand-type all network locations into the routing table, or something called Dynamic routing.
In dynamic routing, a protocol on one router communicates with the same protocol running on neighbor routers. The routers then update each other about all the networks they know about and place this information into the routing table. If a change occurs in the network, the dynamic routing protocols automatically inform all routers about the event. If static routing is used, the administrator is reponsible for updating all changes by hand into all routers. Typically, in a large network, a combination of both dynamic and static routing is used.
Before we jump into the IP routing process, let's take a look at a simple example that demonstrates how a router used the routing table to route packets out of an interface. We'll be going into a more tetailed study of the process in the next section.
Figure shows a simple two-router network. Lab_A has one serial interface and three LAN interfaces.
Looking at Figure, can you see hich interface Lab_A will use to forward an IP datagram to a host with an IP address of 10.10.10.10?
By using the command show ip route, we can see the routing table (map of the internetwork) that Lab_A uses to make forwarding decisions:
The C in the routing table output means that the network listed are "Directly connected," and until we add a routing protocol--something like RIP, EIGRP, etc.--to the routers in our internetwork (or use static routes), we'll have only directly connected networks in our routing table.
So let's get back to the original question: By looking at the figure and the output of the routing table, can you tell what IP will do with a received packet that has a destination IP address of 10.10.10.10? The router will packet-switch the packet to interface FastEthernet 0/0, and this interface will frame the packet and then send it out on the network segment.
Because we can, let's do another example: Based on the output of the next routing table, which interface will a packet with a destination address of 10.10.10.14 be forwarded from?
First, you can see that the network is subnetted and each interface has a different mask. And I have to tell you--you just can't answer this question if you can't subnet! 10.10.10.14 would be a host in the network 10.10.10.8/29 subnet connected to the FastEthernet0/1 interface.
Saturday, May 14, 2011
Using Telnet
Telnet, part of the TCP/IP protocol suite, is a virtual terminal protocol that allows you to make connections to remote devices, gather information, and run programs. After your router and switches are configured, you can use the Telnet program to reconfigure and/or check up on your routers and switches without using a console cable. You run the Telnet program by typing telnet from any command prompt (DOS or Cisco). You need to have VTY password set on the routers for this to work.
Remember, you can't use CDP to gather information about routers and switches that aren't directly connected to your device. But you can use the Telnet application to connect to your neighbor devices and then run CDP on those remote devices to get information on them. You can issue the telnet command from any router prompt like this:
Corp#telnet 10.2.2.2
Trying 10.2.2.2 ... Open
Password required, but none set
[Connection to 10.2.2.2 closed by foreign host]
Corp#
As you can see, I didn't set my passwords--how embarrassing! Remember that the VTY ports on a router are configured as login, meaning that we have to either set the VTY passwords or use the no login command.
On a Cisco router, you don't need to use the telnet command; you can just type in an IP address from a command prompt and the router will assume that you want to telnet to the device. Here's how that looks using just the IP address:
Corp#10.2.2.2
Trying 10.2.2.2 ... Open
Password required, but none set
[Connection to 10.2.2.2 closed by foreign host]
Corp#
At this point, it would be a great idea to set those VTY passwords on the router I want to telnet into. Here's what I did on the remote router named R1:
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#line vty 0 ?
<1-807> Last Line number
R1(config)#line vty 0 807
R1(config-line)#password telnet
R1(config-line)#login
R1(config-line)#^Z
Now let's try this again. Here I'm connecting to the router from the Corp ISR console:
Corp#10.2.2.2
Trying 10.2.2.2 ... Open
User Access Verification
Password:
R1>
Remember that the VTY password is the user-mode password, not the enable-mode password. Watch what happens when I try to go into privileged mode after telnetting into router R1:
R1>en
% No password set
R1>
It is basically saying, "No way!" This is a really good security feature because you don't want anyone telnetting into your device and being able to just type the enable command to get into privileged mode. You've got to set your enable-mode password r enable secret pass-word to use Telnet to configure remote devices!
Source:: Cisco Certified Network Associate Study Guide
Thursday, May 12, 2011
Documenting a Network Topology Using CDP
As the title of this section implies, I'm now going to show you how to document a sample network by using CDP. You'll learn to determine the appropriate router types, interface types, and IP addresses of various interfaces using only CDP commands and the show running-config command. And you can only console into the Lab_A router to document the network. You'll have to assign any remote routers the next IP address in each range. Given figure is what you'll use to complete the document.
In this output, you can see that you have a router with four interfaces: Two FastEthernet and two Serial. First, determine the IP addresses of each interface by using the show running-config command.
Lab_A#sh running-config
Building configuration...
Current configuration : 960 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Lab_A
!
ip subnet-zero
!
!
interface FastEthernet0/0
ip address 192.168.21.1 255.255.255.0
duplex auto
!
interface FastEthernet0/1
ip address 192.168.18.1 255.255.255.0
duplex auto
!
interface Serial0/0
ip address 192.168.23.1 255.255.255.0
!
interface Serial0/1
ip address 192.168.28.1 255.255.255.0
!
ip classless
!
line con 0
line aux 0
line vty 0 4
!
end
With this step completed, you can now write down the IP address of the Lab_A router's four interfaces. Next, You need to determine the type of devices on the other end of each of these interfaces. It's easy to do this--Just use the show cdp neighbors command:
You've got a good deal of information now! By using both the show running-config and show cdp neighbors commands, you know about all the IP addresses of the Lab_A router plus the types of routers connected to each of the Lab_A router's links and all the interfaces of the remote routers.
And by using all the information gathered from show running-config and show cdp neighbors, we can now create the topology figure.
If we needed to, we could've also used the show cdp neighbors detail command to view the neighbor's IPaddresses. But since we know the IP addresses of each link on the Lab_A router we already know that the next available IP address is going to be.
Wednesday, May 11, 2011
Gathering Port and Interface Information in CDP
The show cdp interface command gives you the CDP status on router interfaces or switch ports. As i said earlier, you can turn off CDP completely on a router by using no cdp run command. But remember that you can also turn off CDP on a per-interface basis with the no cdp enable command. You enable a port with the cdp enable command. All ports and interfaces default to cdp enable.
On a router, the show cdp interface command displays information about each interface using CDP, including the encapsulation on the line, the timer, and the holdtime for each interface. Here's an example of this command's output on the R1 Router.
R1#show cdp interface
FastEthernet0/0 is administratively down, line protocol is down
Encapsulation ARPA
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial1/0 is up, line protocol is up
Encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial1/1 is up, line protocol is up
Encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial1/2 is administratively down, line protocol is down
Encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial1/3 is administratively down, line protocol is down
Encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
The above output is nice because it always tells you the interface's status. To turn off CDP on one interface on a router, use the no cdp enable command from interface configuration mode:
R1#config terminal
R1(config)#int serial 1/0
R1(config-if)#no cdp enable
R1#show cdp interface
FastEthernet0/0 is administratively down, line protocol is down
Encapsulation ARPA
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial1/1 is up, line protocol is up
Encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial1/2 is administratively down, line protocol is down
Encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial1/3 is administratively down, line protocol is down
Encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Notice that serial 1/0 isn't listed in the router output. To get that output, you'd have to perform a cdp enable on serial 1/0. It would show up in the output:
R1#config terminal
R1(config)#int serial 1/0
R1(config-if)#cdp enable
Gathering Interface Traffic Information Through CDP
The show cdp traffic command displays information about interface traffic, including the number of CDP packets sent and received and the errors with CDP. The following output shows the show cdp traffic command used on the R1 Router.
R1#show cdp traffic
CDP counters :
Total packets output: 78, Input: 73
Hdr syntax: 0, Chksum error: 0, Encaps failed: 0
No memory: 0, Invalid packet: 0, Fragmented: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 78, Input: 73
This is not really the most important information you can gather from a router, but it does show how many cdp packets are sent and received on a device.
Gathering Neighbor Information Through CDP
The show cdp neighbor command delivers information about directly connected devices. It's important to remember that CDP packets aren't passed through a Cisco Switch and that you only see what's directly attached. So this means that if your router is connected to a switch, you won't see any of the devices hooked up to that switch.
The following output shows the show cdp neighbor command used on my R1 router.
R1#show cdp neighbor
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
R2 Ser 1/0 158 R 7206VXR Ser 1/0
R3 Ser 1/1 150 R 7206VXR Ser 1/0
Okay, we are directly connected with a console cable to the R1 Router. and the router is directly connect to two devices. We have one connection to the Router R2 and one connection to the router R3. The device ID shows the configured hostname of the connected devices, the local interface is our interface, and the port ID is the remote devices' directly connected interface. All you get to review are directly connected devices.
Given table summarizes the information displayed by the show cdp neighbor command for each device.
Device ID | the hostname of the device directly connected.
Local Interface | The port or interface on which you are receiving the CDP packet.
Holdtime | The amount of time the router will hold the information before discarding it if no more CDP packet are received.
Capability | The capability of the neighbor, such as the router, switch, or repeater. the capability codes are listed at the top of the command output.
Platform | The type of Cisco device directly connected. In the privious coutput, A Cisco 7200 router is attached directly to the 7200 router.
Port ID | The neighbor device's port or interface on which the CDP packets are multicast.
Another command that'll deliver the goods on neighbor information is the show cdp neighbors detail command. this command can be run on both routers and switches, and it displays detailed information about each device connected to the device you're running the command on. Check out this router output for an example:
R1#show cdp neighbors detail
-------------------------
Device ID: R2
Entry address(es):
IP address: 12.1.1.2
Platform: Cisco 7206VXR, Capabilities: Router
Interface: Serial1/0, Port ID (outgoing port): Serial1/0
Holdtime : 123 sec
Version :
Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(20)T, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 11-Jul-08 04:22 by prod_rel_team
advertisement version: 2
-------------------------
Device ID: R3
Entry address(es):
IP address: 13.1.1.3
Platform: Cisco 7206VXR, Capabilities: Router
Interface: Serial1/1, Port ID (outgoing port): Serial1/0
Holdtime : 175 sec
Version :
Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(20)T, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 11-Jul-08 04:22 by prod_rel_team
advertisement version: 2
What are we being shown here? First, we're given the hostname and IP address of all directly connected devices. In addition to the same information displayed by the show cdp neighbor command, the show cdp neighbor detail command gives us the IOS version of the neighbor device.
The show cdp entry * command displays the same information as the show cdp neighbors detail command. Here's an example of the router output using the show cdp entry * command:
R1#show cdp entry *
-------------------------
Device ID: R2
Entry address(es):
IP address: 12.1.1.2
Platform: Cisco 7206VXR, Capabilities: Router
Interface: Serial1/0, Port ID (outgoing port): Serial1/0
Holdtime : 171 sec
Version :
Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(20)T, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 11-Jul-08 04:22 by prod_rel_team
advertisement version: 2
-------------------------
Device ID: R3
Entry address(es):
IP address: 13.1.1.3
Platform: Cisco 7206VXR, Capabilities: Router
Interface: Serial1/1, Port ID (outgoing port): Serial1/0
Holdtime : 163 sec
Version :
Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(20)T, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 11-Jul-08 04:22 by prod_rel_team
advertisement version: 2
There isn't any difference between the show cdp neighbors detail and show cdp entry * commands. However, the show cdp entry * command has two options that the show cdp neighbors detail command does not:
R1#show cdp entry * ?
protocol Protocol information
version Version information
| Output modifiers
R1#show cdp entry * protocol
Protocol information for R2 :
IP address: 12.1.1.2
Protocol information for R3 :
IP address: 13.1.1.3
The preceding output of the show cdp entry * protocols command can show you just the IP addresses of each directly connected neighbor. The show cdp entry * version will show you only the IOS version of your directly connected neighbors:
R1#show cdp entry * version
Version information for R2 :
Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(20)T, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 11-Jul-08 04:22 by prod_rel_team
Version information for R3 :
Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(20)T, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 11-Jul-08 04:22 by prod_rel_team
Although the show cdp neighbors detail and show cdp entry commands are very similar, the show cdp entry command allows you to display only one line of output for each directly connected neighbor, whereas the show cdp neighbor detail command does not.
Source: CCNA: Cisco Certified Network Associate Study Guide, 6th Edition
Tuesday, May 10, 2011
Getting CDP Timers and Holdtime Information
The show cdp command gives you information about two CDP global parameters that can be configured on Cisco devices:
- CDP Timer is how often CDP packets are transmitted out all active interfaces.
- CDP holdtime is the amount of time that the device will hold packets received from neighbor devices.
Both Cisco routers and Cisco switches use the same parameters.
Corp#show cdp
Global CDP information:
Sending CDP packets every 60 seconds
Sending a holdtime value of 180 seconds
Sending CDPv2 advertisements is enabled
Use the global commands cdp holdtime and cdp timers to configre the CDP holdtime and timers on the router:
advertise-v2 CDP sends version-2 advertisements
holdtime Specify the holdtime (in sec) to be sent in packets
log Log messages generated by CDP
run Enable CDP
source-interface Insert the interface's IP in all CDP packets
timer Specify rate (in sec) at which CDP packets are sent run
You can turn off CDP completely with the no cdp run command from the global configuration mode of a router. To turn CDP off or on for an interface, use the no cdp enable and cdp enable commands.
Source: Cisco Certified Network Associate Study Guide, 6th Edition
Configuring Cisco Discovery Protocol on Cisco Routers and Switches Running Cisco IOS
Introduction
This document explains how to configure Cisco Discovery Protocol (CDP) on Cisco routers and switches that run Cisco IOS®. Specifically, the document covers how to enable, verify, and disable CDP on Cisco devices and some know issues related to CDP.CDP is a Cisco proprietary Layer 2 protocol that is media- and protocol-independent, and runs on all Cisco-manufactured equipment that includes:
- routers
- bridges
- access servers
- switches
Prerequisites
Requirements
There are no specific requirements for this document.Components Used
This document is not restricted to specific software and hardware versions. This document applies to all Cisco routers and switches running Cisco IOS as well as router modules such as WS-X4232-L3, RSM, and MSFC.The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Conventions
Refer to Cisco Technical Tips Conventions for more information on document conventions.Configure Cisco Discovery Protocol
Enable/Disable CDP on a Cisco IOS Device
CDP is enabled on Cisco routers by default. If you prefer not to use the CDP capability, disable it with the no cdp run command. In order to reenable CDP, use the cdp run command in global configuration mode.You can verify whether CDP is enabled or disabled on your Cisco device using the show cdp neighbors command.
Router#show cdp neighbors
% CDP is not enabled
!--- This message indicates that CDP is disabled on this device.
Router#This command output indicates that CDP is enabled on the device, but no neighbor devices are discovered or connected to this device.Router#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
Router#
Router#show cdp
Global CDP information:
Sending CDP packets every 60 seconds
Sending a holdtime value of 180 seconds
Sending CDPv2 advertisements is enabled
Router#This command output shows that CDP is enabled and some neighbor devices are discovered by CDP protocol.Router#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
R2-AGS Ser 1 129 R 2500 Ser 0
R6-2500 Eth 0 144 R 4000 Eth 0
Router#The show cdp neighbors command displays this information:- type of device that is discovered
- name of the device
- number and type of the local interface (port)
- number of seconds the CDP advertisement is valid for the port
- device type
- device product number
- port ID
router#show cdp neighbors detail
-------------------------
Device ID: lab-7206
Entry address(es):
IP address: 172.19.169.83
Platform: cisco 7206VXR, Capabilities: Router
Interface: Ethernet0, Port ID (outgoing port): FastEthernet0/0/0
Holdtime : 123 sec
Version :
Cisco Internetwork Operating System Software
IOS (tm) 5800 Software (C5800-P4-M), Version 12.1(2)
Copyright (c) 1986-2002 by Cisco Systems, Inc.
advertisement version: 2
Duplex: half
-------------------------
Device ID: lab-as5300-1
Entry address(es):
IP address: 172.19.169.87
Platform: cisco AS5300, Capabilities: Router
--More--
!--- Output is suppressed.
router#show cdp entry lab-7206 ------------------------- Device ID: lab-7206 Entry address(es): IP address: 172.19.169.83 Platform: cisco 7206VXR, Capabilities: Router Interface: Ethernet0, Port ID (outgoing port): FastEthernet0/0/0 Holdtime : 123 sec Version : Cisco Internetwork Operating System Software IOS (tm) 5800 Software (C5800-P4-M), Version 12.1(2) Copyright (c) 1986-2002 by Cisco Systems, Inc. advertisement version: 2 Duplex: half
Enable/Disable CDP on an Interface
When CDP is enabled globally using the cdp run command, it is enabled by default on all supported interfaces (except for Frame Relay multipoint subinterfaces) to send and receive CDP information. You can disable CDP on an interface that supports CDP with the no cdp enable command.Router#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
R2-AGS Ser 1 129 R 2500 Ser 0
R6-2500 Eth 0 144 R 4000 Eth 0
Router#On this router, CDP is enabled on Serial 1 and Ethernet 0 interfaces. Disable CDP on the Serial 1 interface and verify if the neighbor device is discovered on the serial 1 interface, as this output shows:The router does not remove the entry for the neighbor on CDP disabled interface unless the hold time expires. This output shows that the router discovered neighbor only on Ethernet 0 interface.Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface s1 Router(config-if)#no cdp enable Router(config-if)#^Z Router#4w5d: %SYS-5-CONFIG_I: Configured from console by console
Router#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
R6-2500 Eth 0 149 R 4000 Eth 0
Router#Use the show running-config command in order to find whether CDP is enabled/disabled on a particular interface on your device.Router#show running-config int s1
Building configuration...
Current configuration : 94 bytes
!
interface Serial1 ip address 40.40.40.1 255.255.255.0
ip router isis
no cdp enable
!--- This command indicates that CDP is disabled on the Serial 1 interface.
end
Router#Note: You cannot enable/disable CDP on an interface unless it is enabled globally using the cdp run command.Sourece:: Cisco Website
Monday, May 9, 2011
Hubs
In the beginning of Ethernet, 10Base-5 used a very thick cable that was hard to work with (it was nicknamed thicknet). 10Base-2, which latter replaced 10Base-5, used a much smaller cable, similar to that used for cable TV. 10Base-2 was nickname thin-net. These cable technologies required large metal couplers called N connectors (10Base-5) and BNC connectors (10Base-2). These Networks also required special terminators to be installed at the end of cable runs. When these couplers or terminators were removed. the entire network would stop working. These cables formed the physical backbones for Ethernet networks.
With the introduction of Ethernet running over unshielded twisted pair (UTP) cables terminated with RJ45 connectors, hubs became the new backbones in most installations. Many companies attached hubs to their existing thin-net networks to allow greater flexibility as well. Hubs were made to support UTP and BNC 10Base-2 installations but UTP was so much easier to work with that it became the de factor standard.
A Hub is simple a means of connecting Ethernet cables together so that their signals can be repeated to every other connected cable on the hub. Hubs may also be called repeaters for this reason, but it is important to understand that while a hub is a repeater, a repeater is not necessarily a hub.
A repeater repeats a signal. Repeaters are usually used to extend a connection to a remote host, or to connect a group of users who exceed the distance limitation of 10Base-T. In other words, if a usable distance of a 10Base-T cable is exceeded, a repeater can be placed in line to increase the usable distance.
Segments are divided by repeaters or hubs. Figure 2-1 shows a repeater extending the distance between a server and a personal computer.
A hub is like a repeater, except that while a repeater may have only two connectors, a hub can have many more; that is, it repeats a signal over many cables as opposed to just one. Figure 2-2 shows a hub connecting several computers to a network.
When designing Ethernet networks, repeater and hubs get treated the same way. The 5-4-3 Rule of Ethernet design states that between any two nodes on an Ethernet network, there can be only five segments, connected via four repeaters, and only three of the segments can be populated. This rule, which seems odd in the context of today's networks, was the source of much pain for those who didn't understand it.
A hubs became less expensive, extra hubs were often used as repeaters in more complex networks. Figure 2-3 shows an example of how two remote groups of users could be connected using hubs on each end and a repeater in the middle.
Hubs are very simple devices. Any signal received on any port is repeated out every other port. Hubs are purely physical and electrical devices, and do not have a presence on the network (Except possibly for management purposes). They do not alter frames or make decisions based on them in any way.
Figure 2-4 illustrates how hubs operate. As you might imagine, this model can become problematic in larger networks. The traffic can become so intensive that the network becomes saturated--if someone prints a large file, everyone on the network will suffer while the file is transferred to the printer over the network.
If another device is already using the wire, the sending device will wait a bit, and then try to transmit again. When two stations transmit at the same time, a collision occurs. Each station records the collision, backs off again, and then retransmits. On every busy networks, a lot of collisions will occur.
With a hub, more stations are capable of using the network at any given time. Should all of the stations be active, the network will appear to be slow because of the excessive collisions.
Collisions are limited to network segments. An Ethernet network segment is a section of network where devices can communicate using layer-2MAC addresses. To communicate outside of an Ethernet segment, an additional device, such as a router, is required. Collisions are also limited to collision domains. A collision domain is an area of an Ethernet network where collisions can occur. If one station can prevent another from sending because it has the network in use, these stations are in the same collision domain.
A broadcast domain is the area of an Ethernet network where a broadcast will be propagated. Broadcasts stay within a layer-3 network (unless forwarded), which is usually bordered by a layer-3 device such as a router. Broadcasts are sent through switches (layer-2 devices), but stop at router.
Figure 2-5 shows a network of hubs connected via a central hub. when a frame enters the hub on the bottom left on port 1, the frame is repeated out every other port on that hub, which includes a connection to the central hub. The central hub is turn repeats the frame out every port, propagating it to the remaining hubs in the network. This design replicates the backbone idea, in that every device on the network will receive every frame sent to the network.
In large networks of this type, new problems can arise. Late Collisions occur when two stations successfully test for a clear network, and then transmit, only to then encounter a collision. This condition can occur when the network is so large that the propagation of a transmitted frame from one end of the network to the other takes longer than the test used to detect whether the network is clear.
One of the major problems when using hubs is the possibility of broadcast storms. Figure 2-6 shows the situation.
The only way to resolve a broadcast storm is to break the loop. Shutting down and restarting the network devices will just start the cycle again. Because hubs are not generally manageable, it can be quite a challenge to find a layer-2 loop in a crisis.
Hubs have a lot of drawbacks, and modern networks rarely employ them. Hubs have long since been replaced by switches, which offer greater speed, automatic loop detection, and a host of additional features.
Source:: O'Reilly-Network Warrior
Subscribe to:
Posts (Atom)











