Saturday, March 3, 2012

Cisco Frame Relay Switching Lab: Partially Meshed PVCs

This post is somewhat a continuation of my previous post that provided an introduction to frame relay switching and acts as an alternate post to my lab that shows switching for fully meshed PVCs. This post will aim to show the logic around configuring partially meshed permanent virtual circuits (PVCs) for 3 customer sites using a single provider Frame Relay switch. This frame relay lab is configured in Dynamips/GNS3 with 4 Cisco c3725 routers utilizing WIC-2T cards.


Configuration of the Frame-Relay Switch

The configuration for this scenario is fairly straightforward on the frame relay switch. The main detail is to remember that DLCIs are only significant on the link between a frame relay endpoint and the first hop in the frame relay cloud. To illustrate this, CE2 and CE3 both reference their PVCs to CE1 with a DLCI value of 100. Here are the important pieces of the configuration for the frame relay switch (in the provider's cloud):

!    Frame Relay Switch Configuration
!    Note that lines not directly related to frame relay switching
!    or interface configuration have been removed.
frame-relay switching
!
interface Serial0/0
 no ip address
 encapsulation frame-relay
 clock rate 2000000
 frame-relay intf-type dce
 frame-relay route 102 interface Serial0/1 100
 frame-relay route 103 interface Serial0/2 100
!
interface Serial0/1
 no ip address
 encapsulation frame-relay
 clock rate 2000000
 frame-relay intf-type dce
 frame-relay route 100 interface Serial0/0 102
!
interface Serial0/2
 no ip address
 encapsulation frame-relay
 clock rate 2000000
 frame-relay intf-type dce
 frame-relay route 100 interface Serial0/0 103

Remember that the frame-relay route command specifies how the DLCI is rewritten for frames received on that interface. This command specifies what the DLCI should be rewritten for the next frame relay hop and also specifies the outgoing interface (or Tunnel pseudo-interface or frame relay multilink bundle).

Customer Edge Device Configuration

The customer's networking team has a couple of decisions to make around how to configure CE1. The main decision is whether to use point-to-point or multipoint subinterfaces. If the team wants to maintain full connectivity between sites and use point-to-point subinterfaces, they will need a unique layer 3 network for each pair of subinterfaces involved in sending data over a PVC. Since this is a connection between 2 IP systems, it is possible to use IPv4 networks with the 255.255.255.252 (/30) subnet mask. If the team wants all of the connections over the frame relay cloud to use a single layer 3 network, then a multipoint subinterface is required for the CE1 router. For CE2 and CE3, there is only need for point-to-point subinterfaces because each router connects with only 1 router using PVCs across the connected serial interface. I will show both configurations.

Point-to-Point Subinterfaces

For the first example, I will show the scenario where the customer's team decided to use point-to-point subinterfaces. I will use the 10.0.0.0/30 network for the subinterfaces mapped to the PVC between CE1 and CE2 and I will use the 10.0.0.4/30 network for the subinterfaces mapped to the PVC between CE1 and CE3. In addition to creating and configuring the subinterfaces, I will need to add a static route on CE2 and CE3 to ensure full connectivity.

Here is the relevant configuration for CE1:
interface Serial0/0
 no ip address
 encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
 ip address 10.0.0.1 255.255.255.252
frame-relay interface-dlci 102
!
interface Serial0/0.2 point-to-point
 ip address 10.0.0.5 255.255.255.252
frame-relay interface-dlci 103
!


CE2 is also fairly straightforward. The main item to note is the static route to ensure connectivity to 10.0.0.4/30:

interface Serial0/0
 no ip address
 encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
 ip address 10.0.0.2 255.255.255.252
 frame-relay interface-dlci 100
!
ip route 10.0.0.4 255.255.255.252 10.0.0.1


CE3 follows similar lines to CE2:

interface Serial0/0
 no ip address
 encapsulation frame-relay
 clock rate 2000000
!
interface Serial0/0.1 point-to-point
 ip address 10.0.0.6 255.255.255.252
 snmp trap link-status
 frame-relay interface-dlci 100
!
ip route 10.0.0.0 255.255.255.252 10.0.0.5

Verification of connectivity between CE1 and it's connected routers is straightforward using the techniques presented in my previous post. The main items to check in this configuration are end-to-end connectivity between CE2 and CE3 and verify the routing tables on CE2 and CE3:

CE2#ping 10.0.0.6

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/21/60 ms

CE2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/30 is subnetted, 2 subnets
C       10.0.0.0 is directly connected, Serial0/0.1
S       10.0.0.4 [1/0] via 10.0.0.1

From CE3:

CE3#ping 10.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/25/76 ms
CE3#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/30 is subnetted, 2 subnets
S       10.0.0.0 [1/0] via 10.0.0.5
C       10.0.0.4 is directly connected, Serial0/0.1


Multipoint Subinterfaces

With multipoint subinterfaces, we can keep all of the interfaces connected to the frame-relay topology assigned to the same layer IP network. For this example, I will use 10.0.0.0/24 (specifically .1 for CE1, .2 for CE2, and .3 for CE3). In this case we need to map next-hop IP addresses to DLCIs on CE1 so that we can achieve full connectivity. Unlike the point-to-point subinterface example above, static routes are not needed. BElow are the relevant configuration sections for CE1, CE2 and CE3.

On CE1:
interface Serial0/0
 no ip address
 encapsulation frame-relay
!
interface Serial0/0.1 multipoint
 ip address 10.0.0.1 255.255.255.0
 frame-relay map ip 10.0.0.3 103
 frame-relay map ip 10.0.0.2 102
 frame-relay interface-dlci 102
 frame-relay interface-dlci 103
!


On CE2:
interface Serial0/0
 no ip address
 encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
  ip address 10.0.0.2 255.255.255.0
  frame-relay interface-dlci 100


On CE3:
interface Serial0/0
 no ip address
 encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
  ip address 10.0.0.3 255.255.255.0
  frame-relay interface-dlci 100
!


Verification should be performed to ensure that CE2 and CE3 can successfully communicate:

CE2#ping 10.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/27/92 ms

CE3#ping 10.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/25/104 ms


It is also possible to verify the next hop IP addresses mapped to DLCIs using the show frame-relay map command and also determine if they are statically defined or discovered dynamically using inverse ARP:

CE1#show frame-relay map
Serial0/0.1 (up): ip 10.0.0.2 dlci 102(0x66,0x1860), static,
              CISCO, status defined, active
Serial0/0.1 (up): ip 10.0.0.3 dlci 103(0x67,0x1870), static,
              CISCO, status defined, active



See Also:
The Road to the CCIE
Introduction to Frame Relay Switching

Introduction to Frame Relay Switching

Introduction

Frame Relay is an important exam topic in the CCNA (mostly ICND2 exam), CCNP, and CCIE certifications for the routing and switching track. Frame Relay is not as popular for WAN connectivity strategy because of the rise in newer technologies like Multiprotocol Label Switching (MPLS) and other VPN strategies that create a private communication link over a public network (like IPSec tunneling). Many organizations continue to use traditional point to point dedicated lines (T1, T3, etc).

Frame Relay switching is a possible way for a service provider to switch frames between a customer's site. Frame Relay is considered a Layer 2 technology (compare with other layer 2 technologies like Ethernet and Asynchronous Transfer Mode [ATM]). Frame Relay operates differently from other protocols in that the destination is addressed from the sender's perspective instead of the recipients perspective. To clarify this, consider how Ethernet switching works:  A station sends a frame to the destination MAC address of another system. The MAC address uniquely identifies the system within the layer 2 switching topology (which can traverse multiple switches).

For Frame Relay, the switch on the service provider's network notifies a router of the permanent virtual circuits (PVCs) that are available to be switched and the data link connection identifiers (DLCIs) that need to be used to transmit on each PVC. This notification happens using the Local Management Interface (LMI) messages that are passed from the frame relay switch to the routers. In this case, the DLCIs only need to be unique between the router and the frame-relay switch. In the example below, R1 and R2 could both use DLCI 100 and have a functional data path between them because the DLCI only needs to be unique between the router and the first hop switch on the service provider portion of the network.

Below I use different DLCIs for clarity (and in practice some customers use the globally unique DLCI addressing practice instead of relying on the local significance property of DLCIs). When I write DLCI 101, this really means "the PVC that connects R2 and R1 that is addressed from R2's perspective."

In this Cisco frame relay lab, I show the easiest topology that can be created with three routers (2 acting as customer edge devices and one acting as a Frame Relay switch). I built the lab in GNS3/Dynamips using 3 Cisco c3725 routers with WIC-2T cards. A single PVC is created between routers R1 and R2 and basic IP connectivity is established. Understanding this is the first step to understanding how to configure a frame relay cloud.



Configuration of the Frame Relay Switch

Configuration of the frame relay switch is fairly straightforward. In global configuration mode, the frame-relay switching command is needed.

FRS(config)#frame-relay switching


For the serial interfaces, a couple of pieces need to be done. The encapsulation type needs to be set to frame-relay and the frame-relay interface types need to be set to DCE. The frame-relay route command needs to be used to identify how to switch DLCIs on the interfaces that they are received on. The format of the command is:

frame-relay route <received_dlci> interface <outgoing_interface> <outgoing_dlci>

Options also exist to route frames across Frame-Relay Multilink and tunnel interfaces. The configurations for Serial 0/0 (connecting to R1) and Serial 0/1 (Connecting to R2) are shown below:

interface Serial0/0
 no ip address
 encapsulation frame-relay
 clock rate 2000000
 frame-relay intf-type dce
 frame-relay route 100 interface Serial0/1 101


interface Serial0/1
 no ip address
 encapsulation frame-relay
 clock rate 2000000
 frame-relay intf-type dce
 frame-relay route 101 interface Serial0/0 100

From the configurations, any frames received on Serial 0/0 with a DLCI of 100 are sent out Serial 0/1 with a new DLCI of 101. Frames received on Serial 0/1 with DLCI 101 are sent out Serial 0/0 with DLCI 100. The main command that is useful for verification on the frame-relay switch is the show frame-relay route command:

FRS#show frame-relay route
Input Intf      Input Dlci      Output Intf     Output Dlci     Status
Serial0/0       100             Serial0/1       101             inactive
Serial0/1       101             Serial0/0       100             inactive

Since our customer edge routers are not configured yet, the switching status shows as inactive. It should be noted that no IP configuration is necessary on the frame-relay switch (since Frame Relay is a layer 2 protocol).

Configuration of the Customer Edge Devices

Configuration of the customer edge devices is fairly straightforward. Since we only have a single PVC between R1 and R2, a point-to-point subinterface on each router (for the respective output DLCI) is all that is required. IP addresses need to be configured to achieve layer 3 connectivity. The relevant configurations for R1 and R2 are shown below:

On Customer Router R1:
interface Serial0/0
 no ip address
 encapsulation frame-relay
!
interface Serial0/0.100 point-to-point
 ip address 10.0.0.100 255.255.255.0
 frame-relay interface-dlci 100


On Customer Router R2:
interface Serial0/1
 no ip address
 encapsulation frame-relay
!
interface Serial0/1.101 point-to-point
 ip address 10.0.0.101 255.255.255.0
 frame-relay interface-dlci 101


On subinterfaces, the frame-relay interface-dlci command is necessary because the subinterface configuration is not known by the frame relay switch and the subinterface configuration is not part of the LMI messages exchanged between the service provider and customer edge devices. The network engineers for the customer are responsible for determining higher layer configuration (such as IP connectivity) and depending on the PVC layout, it may make more sense to use point-to-multipoint subinterfaces (these will be demonstrated in the next post on Frame Relay that shows provider and customer configurations for three sites).

Verification of the Solution

Verification is fairly straightforward, for this example I will demonstrate a top-down approach (layer 3 -> layer 2 -> layer 1).

Layer 3 (IP Connectivity)

Can R1 ping R2's S0/1.101 interface?
R1#ping 10.0.0.101

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.101, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/20/44 ms

Can R2 ping R1's S0/0.100 interface?
R2#ping 10.0.0.100

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/20/52 ms


We should also only see a single hop in a traceroute (since there is no IP configuration on the frame-relay switch and it is not a routed connection from the provider's perspective)...

R1#traceroute 10.0.0.101

Type escape sequence to abort.
Tracing the route to 10.0.0.101

  1 10.0.0.101 44 msec *  44 msec

R2#traceroute 10.0.0.100

Type escape sequence to abort.
Tracing the route to 10.0.0.100

  1 10.0.0.100 40 msec *  44 msec

Layer 2 Verification (Frame Relay)

From the frame relay switch, the most useful command is show frame-relay route. This shows which switching paths are actually active.

FRS#show frame-relay route
Input Intf      Input Dlci      Output Intf     Output Dlci     Status
Serial0/0       100             Serial0/1       101             active
Serial0/1       101             Serial0/0       100             active

Running a show frame-relay pvc command from the switch also shows some useful information. :

FRS#show frame-relay pvc

PVC Statistics for interface Serial0/0 (Frame Relay DCE)

              Active     Inactive      Deleted       Static
  Local          0            0            0            0
  Switched       1            0            0            0
  Unused         0            0            0            0

DLCI = 100, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0/0

  input pkts 45            output pkts 43           in bytes 10976
  out bytes 10328          dropped pkts 0           in pkts dropped 0
  out pkts dropped 0                out bytes dropped 0
  in FECN pkts 0           in BECN pkts 0           out FECN pkts 0
  out BECN pkts 0          in DE pkts 0             out DE pkts 0
  out bcast pkts 0         out bcast bytes 0
  30 second input rate 0 bits/sec, 0 packets/sec
  30 second output rate 0 bits/sec, 0 packets/sec
  switched pkts 45
  Detailed packet drop counters:
  no out intf 0            out intf down 0          no out PVC 0
  in PVC down 0            out PVC down 0           pkt too big 0
  shaping Q full 0         pkt above DE 0           policing drop 0
  pvc create time 01:29:17, last time pvc status changed 00:28:25

PVC Statistics for interface Serial0/1 (Frame Relay DCE)

              Active     Inactive      Deleted       Static
  Local          0            0            0            0
  Switched       1            0            0            0
  Unused         0            0            0            0

DLCI = 101, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0/1

  input pkts 43            output pkts 46           in bytes 10328
  out bytes 11300          dropped pkts 0           in pkts dropped 0
  out pkts dropped 0                out bytes dropped 0
  in FECN pkts 0           in BECN pkts 0           out FECN pkts 0
  out BECN pkts 0          in DE pkts 0             out DE pkts 0
  out bcast pkts 0         out bcast bytes 0
  30 second input rate 0 bits/sec, 0 packets/sec
  30 second output rate 0 bits/sec, 0 packets/sec
  switched pkts 43
  Detailed packet drop counters:
  no out intf 0            out intf down 0          no out PVC 0
  in PVC down 0            out PVC down 0           pkt too big 0
  shaping Q full 0         pkt above DE 0           policing drop 0
  pvc create time 01:28:13, last time pvc status changed 00:29:01


Items that can quickly be seen from this command are misconfigured interface types, excessive dropped frames, attempts to switch on nonexistent/down PVCs, and PVCs marked inactive or deleted (that should be active or should exist).

On the customer side, the show-frame-relay route command is not applicable and the show frame-relay pvc command shows PVC information gathered from the LMI messages passed between the provider switch and the customer edge device. For brevity, I will only show the output from R1,

Nothing here because we are not switching on R1:
R1#show frame-relay route
Input Intf      Input Dlci      Output Intf     Output Dlci     Status

This shows that we only have 1 PVC defined on the switch for this interface (specifically the PVC with DLCI 100 that goes to R2). This also shows that we configured S0/0.100 for the communication on the PVC.:
R1#show frame-relay pvc

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

              Active     Inactive      Deleted       Static
  Local          1            0            0            0
  Switched       0            0            0            0
  Unused         0            0            0            0

DLCI = 100, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.100

  input pkts 52            output pkts 55           in bytes 13244
  out bytes 14216          dropped pkts 0           in pkts dropped 0
  out pkts dropped 0                out bytes dropped 0
  in FECN pkts 0           in BECN pkts 0           out FECN pkts 0
  out BECN pkts 0          in DE pkts 0             out DE pkts 0
  out bcast pkts 40        out bcast bytes 12960
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
  pvc create time 00:39:20, last time pvc status changed 00:37:30


Also worth noting is that Cisco Discovery Protocol (CDP) does not show the provider switch, it only shows the router on the other end of the PVC:

R1#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               Ser 0/0.1          152         R S I     3725      Ser 0/1.1



R2#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
R1               Ser 0/1.1          140         R S I     3725      Ser 0/0.1



Layer 1 Verification

Verification of layer 1 (and layer 2) is possible by examining the output from the show interface command. I will show the output from R1 for the Serial 0/0 and Serial 0/0.100 interfaces:

R1#show int s0/0
Serial0/0 is up, line protocol is up
  Hardware is GT96K Serial
  MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation FRAME-RELAY, loopback not set
  Keepalive set (10 sec)
  CRC checking enabled
  LMI enq sent  271, LMI stat recvd 272, LMI upd recvd 0, DTE LMI up
  LMI enq recvd 0, LMI stat sent  0, LMI upd sent  0
  LMI DLCI 1023  LMI type is CISCO  frame relay DTE
  FR SVC disabled, LAPF state down
  Broadcast queue 0/64, broadcasts sent/dropped 46/0, interface broadcasts 0
  Last input 00:00:08, output 00:00:09, output hang never
  Last clearing of "show interface" counters 00:45:28
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: weighted fair
  Output queue: 0/1000/64/0 (size/max total/threshold/drops)
     Conversations  0/1/256 (active/max active/max total)
     Reserved Conversations 0/0 (allocated/max allocated)
     Available Bandwidth 1158 kilobits/sec
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     331 packets input, 19121 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     336 packets output, 19736 bytes, 0 underruns
     0 output errors, 0 collisions, 2 interface resets
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

R1#show int s0/0.100
Serial0/0.100 is up, line protocol is up
  Hardware is GT96K Serial
  Internet address is 10.0.0.100/24
  MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation FRAME-RELAY
  CRC checking enabled
  Last clearing of "show interface" counters never


Here we clearly see that the interface is in an up/up status. We also see other useful information such as statistics regarding LMI messages, LMI type, and general interface statistics.

This post mainly detailed basic switching between two customer sites. Future posts will go into more complex customer/provider scenarios and will eventually get into the QoS and routing protocol complexities associated with frame relay.

See Also:
The Road to the CCIE
Cisco Frame Relay Switching Lab: Partially Meshed PVCs
Cisco Frame Relay Switching Lab: Fully Meshed PVCs

The Road to the CCIE

The Cisco Certified Internetwork Expert (CCIE) designation is considered by many to be one of the most difficult IT certifications to achieve. The certification consists of two parts, a written multiple choice exam and a practical exam.  By all indications, the written exam is not difficult compared to the practical exam. Many book sections and anecdotes on the Internet indicate that the practical exam is almost always required to be taken twice (or more). A lot of people even say that the available IT certification training courses for the CCIE are not sufficient training to pass the exam.

Based on what I've observed so far, candidates really need to have the equivalent knowledge of a Cisco Certified Network Professional to really begin studying for the CCIE exams. Individuals with the Cisco Certified Network Associate (CCNA) certification likely do not have the required background knowledge in routing and switching to meaningfully dig into the exam certification guide (and some of the recommended references for the CCIE).

I have not taken the exam yet, but I am planning to take both parts over the next 6-12 months and this series of posts will chronicle the progress with studying. My chosen method of study consists of trying to build a strong theoretical background using Cisco books and configuration guides and building virtual topologies in Dynamips/GNS3 that demonstrate working configurations with all of the stated exam topics and the related topics that are not specifically listed with the exam objectives on the Cisco Learning site. A check on myself that I have developed sufficient knowledge is that I will be able to clearly and coherently teach others about the technologies and explain them in detail, and that is my aim with this series of posts. A caution to the reader is important here because I explain the topics in an order that is different than most of the books on the subject. I start with WAN technologies (such as Frame Relay, ATM, and MPLS), then move to Ethernet switching topics, and then provide a discussion routing. Afterwards I look at how everything works together in different security, Quality of Service (QoS), and routing scenarios (IPv4, IPv6, Multicast).

The full list of posts is below. Note that many of the posts have working GNS3 labs and/or instructions available for download.

Sunday, February 26, 2012

High Availability, Business Continuity Planning, and Disaster Recovery

High Availability, Business Continuity Planning, and Disaster Recovery Planning have become hot keywords in the Information Technology industry as information systems have impacted nearly all aspects of modern business. High availability is fairly isolated to Information Technology, but Business Continuity Planning and Disaster Recovery Planning transcend far beyond just the Information Technology function in modern businesses, governments, and non-profit organizations. This post will give a high level overview of these approaches and subsequent posts in the series will give more expansive coverage of the approaches, examples, ideas, and scenarios that are not strictly limited to the IT function.

Business Continuity Planning (BCP)

Many professionals, managers, and executives don't understand Business Continuity Planning  and often mistake the term for disaster recovery. Business Continuity Planning deals with events that adversely affect an organization, but not to the extent where a disaster is declared and the organizational focus shifts to rebuilding. These events can be specific to the IT function, such as the outage of a corporate phone system or e-mail system, or they can deal with other parts of the organization, such as the sudden loss of a top performing manager or exceptionally skilled employee. The business response to these events may or may not involve multiple business units and the recovery effort is not typically an organization wide initiative. The focus is typically on working around the issue and providing the same services/functionality with different resources (ex. relying more on web, e-mail, and social networking communication methods during a PBX outage).

The main focuses from an IT standpoint for BCP are the continuation of critical functions, providing interim solutions for a wide range of small-scale failure scenarios, and providing a recovery plan for critical IT services in the event of a failure. Since the expected IT impact is limited, focus is placed on identifying service dependencies and working to make systems resilient to failures using traditional fault tolerance methods or implementing highly available systems.

Disaster Recovery Planning (DRP)

Disaster Recovery addresses events that are far more serious in scope than those addressed by BCP. These events are typically serious enough to require an organization wide response to restore normal operation. These events typically affect the organization in a way that it cannot continue normal operation without taking corrective action. These can be related to the IT function, such as a major datacenter fire, or not related to the IT function, such as a flu pandemic that affects more than 50% of the organization's workforce. Other events like hurricanes, earthquakes, and floods can also trigger an organization to implement its disaster recovery plan.

From an IT standpoint, a DR event is any event where a system cannot be returned to a normal operational state without rebuilding the system and recovering data from backup. DR events typically lead to a loss of data and a total loss of an IT service (vs. a degradation during a BCP event). Let's take a moment to consider the difference in the case of a datacenter fire where a traditional water fire suppression system is used instead of a dry release fire suppression system. In this scenario, a fire triggers the water release that shorts out all of the electronic circuitry and renders most of the data unrecoverable from the equipment in the datacenter. In the PBX failure scenario mentioned above, alternative communication methods exist, but in this case it is likely that the PBX, Internet, and all other forms of internal communication have been disabled. The organization has to switch to using cell phones or physical runners to communicate and the focus changes to restoring the entire datacenter's services or failing over to a secondary site.

Since DR events deal with loss of data, the focus of the organization from an IT perspective is on limiting the loss of information and minimizing the time required to restore critical services. At a minimum, creation and verification of off-site backups (to tape or to disk) using an enterprise backup software solution is required. Other activities, such as establishing a DR site and implementing highly available services are more or less optional depending on the organization's dependence on IT services.   

High Availability

High Availability is the gold standard for proactively managing the impact of a routine operational outage, major system failure, or total destruction of an IT infrastructure and its related services. High Availability is a different concept from Business Continuity Planning and Disaster Recovery Planning. High Availability is an IT strategy that helps to simplify, reduce, and sometimes eliminate the business impacts from a BCP or DR event as far as IT services are concerned. When systems are highly available, service interruptions happen rarely and services are managed more from a performance management or capacity management viewpoint than an availability management standpoint.

HA systems are not always easy or cheap to design, implement, and maintain. Since the systems typically have a higher level of complexity, they require better hardware, software, facilities, and IT staff to maintain. They provide a higher benefit because organizational stakeholders receive a higher level of availability and the IT department gains flexibility in replacing failed components and performing routine maintenance activities such as patching and upgrading.

The Difference Between Fault Tolerance and Highly Available  

Fault Tolerance and High Availability are often confused because they both indicate a state of service resiliency. High Availability is a superset of fault tolerance, meaning that high availability implies fault tolerance, but fault tolerance does not necessarily provide high availability. High availability requires that a service be resilient to most failures (at the component, system, and site levels) and be load balanced in a way that the services are the same regardless of the user's location.  Fault tolerance often indicates a state where a single component (disk, server, storage controller, NIC, etc.) can fail without impacting the service or the organization's stakeholders.

Some Lessons For Organizations

Implementing High Availability IT services is no longer optional.

The major stakeholders: customers, the organization's staff, and the individuals managing IT services are all demanding higher service uptime and better quality systems. Customers want to  access services 24/7/365 and will typically pick a competitor that allows them to do this. Customers aren't forgiving to outages and issues involving a loss of data or a loss of security. Don't believe me? Consider your response to receiving a letter from your bank that they lost control of your private information (SSN, account number(s), etc) or had an outage that lost your paycheck deposit. For me, this typically leads to a loss of business for the organization.

IT staff don't want to be woken up  before/after hours and the best potential employees typically survey the current state of an organization's IT systems and the on-call structure before agreeing to a new position. High level individuals typically accept or reject an organization based on whether they think the IT function is given the appropriate resources. As a result, if your organization isn't trying to get it right, then it will lose its best IT staff and will never be able to recruit high quality IT staff. There are a few stories of this that I will detail from my personal experience in future posts.

Organizational staff are seeking a borderless office and the ability to do their work from any system at any location at any time of the day. This is especially true for global organizations where  meetings can happen from multiple points around the globe at any time of the day. The typical 9-5 workday and "business hours" are 20th century concepts. In the 21st century, successful organizations are much more flexible and work towards a mutually beneficial relationship with employees.

The most effective organizations will be able to leverage highly available services both on premises and in the cloud to improve service uptime, improve the organizational climate for IT staff, and better serve the organization's stakeholders.

See Also:

Thursday, February 16, 2012

Addressing Low AdSense Revenue

Google Adsense is a tricky tool to try to make money with because there are potentially many ways to optimize content and it can be extremely difficult to attract both the right audience and the highest cost per click (CPC) ads. Often it feels like trying to make money with a blog is a waste of time, but there are individuals who are able to make many thousands of dollars per month in passive income from blogging. The question is often "how do they do it?" The answer is very easy to explain, but extremely difficult to implement because there are many factors relating to the popularity of your site and/or your blog that are outside of your control. In a lot of ways it is like running a presidential campaign without having control over any advertising channels.

Search Engine Optimization (SEO)

There are many books and websites devoted to Search Engine Optimization (SEO) and a number of them I have read myself. They all essentially say the same thing in slightly different ways. A few of the key principles that are communicated are:
  1. Optimize your keywords to your content and your content to your keywords
  2. Generate incoming links to your content
  3. Generate more traffic to your site
  4. Create good content
These are written in order of decreasing importance. Don't believe me?... Dig around for about 5 minutes with different keywords and you will find many sites with useless content that manage to beat legitimate useful sites on search engines (one example is "windows drivers," you get a large number of useless driver "update utilities" and very few PC manufacturer's sites in the top results) .

Search engines and crawlers don't have a good heuristic approach to determining if a site is actually good content, instead they pick up on measurable metrics involving keywords, incoming links, and content freshness. Not to be unduly hard on search engines, most people can't really come up with a definition for 'good' content (the definition often involves synonyms of 'good' and 'content' leading to a definition of a term that is in it's own definition...). Unfortunately, since people can't do it well, we can't really expect a machine (or large network of machines) to do any better. This gets even more complex with some of the different black hat SEO strategies that are employed, such as providing different content to users and crawlers.

The real key to search engine optimization and generating traffic goes back to some of the fundamental ideas in marketing. Since I did an undergraduate degree with three minors (focusing on economics, applied math, and Russian studies) and an MBA in business and accounting, I had to take a couple of classes in marketing (though they weren't my best grades). At the time I didn't think they were particularly useful and I had a rather strong distaste for marketers and advertising, but when I look back the concepts are fundamental to building a successful ad supported blog or ad supported website. Website optimization falls into the 4 Ps (I touch on them now, but I'll explore them more in a later post):
  1. Product - This is the content that you are providing.
  2. Price - This is the price that advertisers are willing to pay to target the keywords in your site.
  3. Place - Your website.
  4. Promotion - Your effectiveness with generating incoming traffic through incoming links and good search engine optimization.
Let's take an example of an unsuccessful AdSense post below that I created on adding Hyperterminal from a Windows XP/Server 2003 system to a more modern version of Windows (Vista/Server 2008 R2). It is a fairly successful post that brings in over 100 hits per day, but initially even though the click through rate (CTR) was high, the revenue generated was unacceptably low (averaging 1-2 cents per click, averaging around 14$ per year). Google Analytics reported how the page was doing on a typical day:



So I took a little bit of my accounting knowledge and decided to follow the money. Advertisers pay Google a certain amount based on ad clicks and costs per 1000 impressions (CPM). Advertisers bid for specific keywords and the highest bidders get the best placement and the largest number of impressions while lower bidders get worse placement and fewer numbers of impressions. Advertising through publishers and through its search engine and other online portfolio (Google Voice, Google Docs, GMail, etc) is the primary way that Google makes its money.  Advertisers pay a higher cost for more targeted and more competitive keywords. Google in turn pays publishers (bloggers, website owners, etc) a certain percentage of the per-click amount for clicks and the per-CPM amount for hosting the ads. The end amount that publishers receive for clicks and impressions is directly proportional to the amount that advertisers pay. Currently publishers have no visibility into what content will generate the highest revenue, but it is possible to take a reasonably good guess with the AdWords keyword tool. This tool provides Adwords advertisers approximate per-click costs for specific keywords and closely related keywords (known in the Google world as keyword ideas).  

Going back to my poorly performing HyperTerminal post, I decided to look at the highest CPC keywords around the HyperTerminal keyword and retrieved the list below.



I rewrote the post with some of the original content and incorporated content around the top 7-10 CPC keywords reported by the AdWords keyword tool. Within a couple of weeks I noticed a difference that each click was generating a little less than 50 cents per click (around 25 times more than each click before the revision). In this case, the CTR went down, but I'd estimate that this post will make a little over $200 per year for the time that people are still interested in HyperTerminal. This is a  roughly 1400% increase from the previous projected amount. Looking back at Google Analytics, the increase is reflected in the Adsense Pages report.



There are a lot of factors that affect AdSense revenue for a publisher and many of them I am still exploring myself. Improving the keyword targeting of your site/blog/article can have a profound effect on the CPC for AdSense ads served on your site and can increase your revenue significantly.


Wednesday, February 8, 2012

Deploying a Kerberos KDC in Ubuntu 11.10 or Fedora 15

What is Kerberos?


Kerberos is an authentication and authorization protocol that allows authenticated (and sometimes encrypted) communication between two systems. Authentication is performed by a third system that is known as a key distribution center (KDC) that stores passwords for all of the principals (typically users and systems) known within it's realm. A unique feature of Kerberos is that the password is never sent over any type of connection (encrypted or plain text) during authentication or authorization. Instead the KDC generates a token (called a ticket granting ticket) that is encrypted using the password as the key and sends it to the requesting client. If the client has the correct password and decrypts the ticket granting ticket, the client can now use this token to request access to different services (anything from logon capability, file transfer, or shell access to authenticating web applications, services, and clients across domains).

Kerberos is a protocol that can be implemented by anyone, but the two main implementations known in the IT industry are MIT Kerberos V (currently in a 1.10 release) and Microsoft Active Directory (stable with Windows Server 2008 R2, unstable in the Windows 8 Server Developer Preview). MIT Kerberos is often used in IT environments dominated by UNIX and Linux systems while Active Directory is predominantly used in Microsoft environments. Mechanisms exist to allow MIT Kerberos and Active Directory to communicate successfully in certain mixed environments. A key thing to note is that in addition to a Kerberos infrastructure, Active Directory also provides an integrated LDAP V3 compliant directory. MIT Kerberos V would need to be integrated with another LDAP implementation (such as OpenLDAP) to provide similar functionality. Kerberos is simply a piece that fits into a larger identity management (IdM) or authentication, authorization, and accounting (AAA) strategy.

To demonstrate the functionality of the protocol and the mechanics of setting up a realm that can be used as an authentication source I will show how to set up a KDC in a RedHat based distribution (RH) and a Debian based distribution (D). Although I am demonstrating with Fedora Core 15 (RH) and Ubuntu 11.10 (D), a similar application of these steps could easily be carried out in RedHat Enterprise Linux (RH), CentOS (RH), Mandriva (RH), Yellow Dog Linux (RH), Knoppix (D), etc.

Security in a Kerberos Environment


Security is a paramount concern in a Kerberos environment for deploying a KDC. All of the passwords for every user and system in the realm are stored on the KDC and an intruder can reasonably decrypt passwords and gain dozens to thousands points of potential entry to the network. Security for a KDC is a large topic and I will cover some of the practices that I have seen/considered in a separate post.

For simplicity, I demonstrate a setup that might be reasonable for a development/testing non-production Kerberos environment (this involves a less strict system setup with regard to allowing a build environment on a KDC in addition to allowing remote logon capability utilizing SSH). For a production environment, the potential attack footprint should be minimized to a level that is considered suitable based on the available legal/regulatory/business requirements and policies.

Options For Setting Up The Servers


It is possible to obtain pre-built packages for Kerberos 5, but depending on the needs of the organization or security requirements, it is probably more desirable to build from source.

For the die hard package users, in Fedora the command to install a kdc is:

yum install krb5-server

For Ubuntu users,

apt-get install krb5-kdc

Since I want to have direct control over patching and the options that are compiled in, I will compile krb5-1.10 from source.

Prerequisite Setup


The initial installation process for Fedora 15 and Ubuntu Server is well documented all over the Internet (so I'm not going to cover it here). Since I am using Hyper-V on Windows Server 2008 R2 as a virtualization host, I had to make a couple of minor changes to get networking to function properly. This involved using Legacy Network Adapters for the VMs and uninstalling the irqbalance package (yum erase irqbalance in  Fedora and dpkg -r irqbalance in Ubuntu). Fedora Core ran fine after the change, but networking was still shaky with Ubuntu.

Next I ensured that the GNU C compiler (gcc) was installed and working. 

Configuring and Building


Configuring and building is relatively straightforward, I used a prefix of /usr/local/krb5 and I did not use OpenLDAP for the backend database storage. First, download the latest release:

burrm@ubuntu-kdc:~$ wget http://web.mit.edu/kerberos/dist/krb5/1.10/krb5-1.10-signed.tar
--2012-02-06 23:10:30--  http://web.mit.edu/kerberos/dist/krb5/1.10/krb5-1.10-signed.tar
Resolving web.mit.edu... 18.9.22.69
Connecting to web.mit.edu|18.9.22.69|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10649600 (10M) [application/x-tar]
Saving to: `krb5-1.10-signed.tar'

100%[======================================>] 10,649,600  21.7K/s   in 8m 27s 

2012-02-06 23:19:05 (20.5 KB/s) - `krb5-1.10-signed.tar' saved [10649600/10649600]


Then extract the  source code:

burrm@ubuntu-kdc:~$ tar -xvf krb5-1.10-signed.tar
krb5-1.10.tar.gz
krb5-1.10.tar.gz.asc
burrm@ubuntu-kdc:~$ tar -xzf krb5-1.10.tar.gz
burrm@ubuntu-kdc:~$ cd krb5-1.10/


You can use multiple build directories (if you are building on different platforms), this is what I do:

burrm@ubuntu-kdc:~/krb5-1.10$ mkdir Ubuntu-11.10-Server
burrm@ubuntu-kdc:~/krb5-1.10$ cd Ubuntu-11.10-Server/
burrm@ubuntu-kdc:~/krb5-1.10/Ubuntu-11.10-Server$ ../src/configure --help
burrm@ubuntu-kdc:~/krb5-1.10/Ubuntu-11.10-Server$ ../src/configure --prefix=/usr/local/krb5
burrm@ubuntu-kdc:~/krb5-1.10/Ubuntu-11.10-Server$ make


After everything configures and builds correctly, it needs to be installed:

burrm@ubuntu-kdc:~/krb5-1.10/Ubuntu-11.10-Server$ su -
Password:
root@ubuntu-kdc:~# cd /home/burrm/krb5-1.10/Ubuntu-11.10-Server/
root@ubuntu-kdc:/home/burrm/krb5-1.10/Ubuntu-11.10-Server# make install


Next I do a step that allows versions to be switched quickly (if needed)

root@ubuntu-kdc:/home/burrm/krb5-1.10/Ubuntu-11.10-Server# cd /usr/local/
root@ubuntu-kdc:/usr/local# mv krb5 krb5-1.10
root@ubuntu-kdc:/usr/local# ln -s krb5-1.10 /usr/local/krb5

Now, we are ready to configure the KDC with a basic configuration.

Configuring the KDC

These steps are somewhat platform independent because they involve configuring the application. The main difference between platforms/builds/packages is the default location of the kdc.conf and krb5.conf files. These can be determined on a platform by locating the man pages for the Kerberos installation and then looking at the man pages for krb5.conf and kdc.conf.  Samples may even be available depending on the build (for me this path is /usr/local/krb5/share/examples/krb5/).

First the kdc.conf and krb5.conf files need to be built. For my build, the correct paths are /usr/local/krb5/var/krb5kdc/kdc.conf and /etc/krb5.conf.

My kdc.conf:

[kdcdefaults]
kdc_ports = 750,88

[realms]
MIKESBLOG.LAN = {
        database_name = /usr/local/krb5/var/krb5kdc/principal
        admin_keytab = FILE:/usr/local/krb5/var/krb5kdc/kadm5.keytab
        acl_file = /usr/local/krb5/var/krb5kdc/kadm5.acl
        key_stash_file = /usr/local/krb5/var/krb5kdc/.k5.MIKESBLOG.LAN
        kdc_ports = 750,88
        max_life = 10h 0m 0s
        max_renewable_life = 7d 0h 0m 0s
        }
 
 
My krb5.conf

[logging]
 default = FILE:/var/log/krb5libs.log
 kdc = FILE:/var/log/krb5kdc.log
 admin_server = FILE:/var/log/kadmind.log

[libdefaults]
 default_realm = MIKESBLOG.LAN
 dns_lookup_realm = false
 dns_lookup_kdc = false
 ticket_lifetime = 24h
 renew_lifetime = 7d
 forwardable = true

[realms]
 MIKESBLOG.LAN = {
  kdc = ubuntu-kdc.mikesblog.lan
  admin_server = ubuntu-kdc.mikesblog.lan
 }

[domain_realm]
 .mikesblog.lan = MIKESBLOG.LAN
 mikesblog.lan = MIKESBLOG.LAN
 
Then the database needs to be initialized, the ACL file needs to be built, and principals can be created. For my ACL file, I allow anyone defined in the database with a /admin instance to perform all Kerberos-related actions on the KDC. This file is moderately customizable (see MIT's installation guide site) based on permissions that need to be granted to other people/service accounts.

root@ubuntu-kdc:/usr/local# /usr/local/krb5/sbin/kdb5_util create -r MIKESBLOG.LAN -s
Loading random data
Initializing database '/usr/local/krb5/var/krb5kdc/principal' for realm 'MIKESBLOG.LAN',
master key name 'K/M@MIKESBLOG.LAN'
You will be prompted for the database Master Password.
It is important that you NOT FORGET this password.
Enter KDC database master key:
Re-enter KDC database master key to verify:

root@ubuntu-kdc:/usr/local# vi /usr/local/krb5/var/krb5kdc/kadm5.acl
root@ubuntu-kdc:/usr/local# cat /usr/local/krb5/var/krb5kdc/kadm5.acl
*/admin@MIKESBLOG.LAN x


From there, a couple of principals can be created with kadmin.local:

root@ubuntu-kdc:/usr/local# /usr/local/krb5/sbin/kadmin.local
Authenticating as principal root/admin@MIKESBLOG.LAN with password.
kadmin.local:  addprinc burrm/admin
WARNING: no policy specified for burrm/admin@MIKESBLOG.LAN; defaulting to no policy
Enter password for principal "burrm/admin@MIKESBLOG.LAN":
Re-enter password for principal "burrm/admin@MIKESBLOG.LAN":
Principal "burrm/admin@MIKESBLOG.LAN" created.
kadmin.local:  q


Finally the KDC and admin server can be started:

root@ubuntu-kdc:/usr/local# /usr/local/krb5/sbin/krb5kdc
root@ubuntu-kdc:/usr/local# /usr/local/krb5/sbin/kadmind


It may be desirable to create init scripts to start these on boot, but another option is to have an administrator manually start/stop them when needed. Additionally the firewall (typically iptables) needs to be adjusted to allow ports 750 and 88 (or others defined in the kdc.conf file).

See Also,
Kerberos Password Policies Made Easy


Sunday, February 5, 2012

Identifying System Cooling Issues

Even the best of us have computer problems from time to time. In my case, I had a problem that resulted from the combination of a lazy system setup (I put a few too few fans in my case) and a dead fan. Since I write a lot of posts on a number of different topics, I build new virtual machines on a weekly basis to demonstrate different features and application configurations in Windows and Linux. In this case, I was working on building a couple of MIT Kerberos servers to demonstrate how to easily apply password policies using MIT Kerberos 5 and how to build an older version and newer version of Kerberos 5 on a newer Fedora build (Fedora 15) and on Ubuntu 11.10.

I had a peculiar problem while I was working on this, I would start two Linux virtual machines that I built on Hyper-V, do some work, then go to bed. When I woke up in the morning, my custom built server would be shut down. The first few times I wrote it off as issues potentially caused by the weather (various wind storms and snow storms here in Boulder) or by the low quality of our power infrastructure (since we have Xcel Energy, our power is about as reliable as my Comcast Internet connection [in the industry we call this 1.5 nines of uptime]). After the first couple of times, I started to wonder because none of our other household appliances (microwave, stove, etc) were showing signs of a power failure. Since it was happening more frequently than normal, I started to wonder if I had a problem with my server... so I started troubleshooting...

Nothing really obvious jumped out from the logs, simply the kernel power message with event ID 41 (in this case no BugCheck information and no dump files, so probably not a blue screen). This really only indicates that the system turned off in an unsupported way (possibly due to a failing power supply, overheating system, or other power fluctuation/issue).

Log Name:      System
Source:        Microsoft-Windows-Kernel-Power
Date:          2/1/2012 6:44:49 AM
Event ID:      41
Task Category: (63)
Level:         Critical
Keywords:      (2)
User:          SYSTEM
Computer:      WIN-BB9Q000LTK1
Description:
The system has rebooted without cleanly shutting down first. 
This error could be caused if the system stopped responding, crashed, or 
lost power unexpectedly.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Kernel-Power" 
        Guid="{331C3B3A-2005-44C2-AC5E-77220C37D6B4}" />
    <EventID>41</EventID>
    <Version>2</Version>
    <Level>1</Level>
    <Task>63</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000002</Keywords>
    <TimeCreated SystemTime="2012-02-01T13:44:49.171875000Z" />
    <EventRecordID>77389</EventRecordID>
    <Correlation />
    <Execution ProcessID="4" ThreadID="8" />
    <Channel>System</Channel>
    <Computer>WIN-BB9Q000LTK1</Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <EventData>
    <Data Name="BugcheckCode">0</Data>
    <Data Name="BugcheckParameter1">0x0</Data>
    <Data Name="BugcheckParameter2">0x0</Data>
    <Data Name="BugcheckParameter3">0x0</Data>
    <Data Name="BugcheckParameter4">0x0</Data>
    <Data Name="SleepInProgress">false</Data>
    <Data Name="PowerButtonTimestamp">0</Data>
  </EventData>
</Event>  

I remembered back to a time when I had a really crappy laptop built     by a company called IBuyPower (I wrote this company a BBB complaint,     FTC complaint, and nearly filed a lawsuit due to their crappy     system). This laptop would constantly overheat and shut itself off     and literally spent more time in transit and in RMA than I had it...     but that's in the past now...

I had never had a thermal issue with the custom-built server before, so I thought it was a long shot. I downloaded the Open Hardware Monitor and was shocked to see some of the numbers that came off when I was running the virtualization load. I had one of the processors hot enough to boil water (100 degrees Celsius):



I immediately killed the virtualization load and shut the server down until I could investigate the cause of the issue since I was close to damaging the system. That night I identified that one of the CPU fans had died and needed to be replaced. Since I hadn't done a good job with cooling the case before, I decided to replace all of the fans in the case (and get a few additional ones that had spaces in the case, but no fans at the time). Since I was somewhat concerned about cooling (more than noise), I went for the fans on NewEgg that had the highest air displacement (3x 80 mm, 1x 120 mm, and 2x 92 mm). I also bought a fan controller since most of the reviews for the fans that I bought stated that they were too loud for a household environment.

After waiting for the next day shipping, I tackled an adventure of splicing 3 pin fan connectors to the wires on the fans that connected to a 4 pin molex connector (since I couldn't find the right adapter on the Internet and the fan controller only had 3 pin connections). Under moderate virtualization load, I was able to reduce the maximum temperature by 40 degrees into a far more acceptable range (and no further failures yet).



The moral of the story is that thermal issues can easily sneak up on you and are often overlooked as a potential cause of issues involving unexpected shutdowns and blue screens of death. When troubleshooting these issues, be sure to investigate thermal issues before blindly replacing components. Examine the manufacturer's documentation for recommended temperature ranges.

Ensure that the changes that you make have a measurable impact on the temperature of the system (as they did in my case... no pun intended).

See Also,
Windows Crash Dump Analysis

Monday, January 23, 2012

How to Determine Current DirectX Version

To check the DirectX version, the most straightforward way is to use the dxdiag.exe utility from the search box or the "run" prompt in Windows (this is known to work for Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2).




After launching the DirectX Diagnostic utility, the version will be listed.




See Also,
Windows Crash Dump Analysis
Troubleshooting 0x116 VIDEO_TDR_ERROR

Wednesday, January 18, 2012

SOPA and PIPA - A Step Backward for Net Neutrality


We're not saying that we want to pirate copyrighted material; we just think there is a better way of handling copyright infringement.

After reading the Stop Online Piracy Act and the PROTECT Intellectual Property Act in their current forms, I'm fairly convinced that these two pieces of legislation could virtually stop the Internet as we currently know it. Some of the requirements include having Internet Service Providers (ISPs) block any networks that serve content that is suspected of being copyright infringement. Search engines would also be required to wholesale block entire domains from the language included in the drafts. This poses a tremendous risk for cloud computing and multi-tenant systems because an attempt to block one set of content could wind up taking down a content delivery network for everyone else who is hosting legitimate content. This is effectively a government initiated denial of service attack against the companies that may or may not be perpetuating the infringement.

It is clear that the movie and music industries (who have yelled the loudest since piracy took off in the 1990s) lobbied to create these two extremely misguided pieces of legislation, but let's get to the heart of the issue. The music, movie, and cable TV industries are failing to adapt their business models to the changes in the business environment from the late 20th century and early 21st century. Additionally, these industries are feeling too lazy to police their own intellectual property, so they are trying to make it a taxpayer issue to bring criminal charges against infringement on private property. For the rest of the world, this is handled in civil (lawsuit) case law. If you thought the bailout of the banks in 2008 was a waste of taxpayer money, The bills threaten to increase the amount of federal spending on copyright infringement related enforcement..

We've heard a lot of arguments that piracy is hurting jobs and piracy is hurting incomes for different businesses, but this is not the real cause of the issue. The loss of jobs is't from piracy, it is from a natural evolution of these markets as they are revolutionized by technology.

Let's take the music industry for example, in the 1990s there was not an alternative to buying a full CD for $10-$20. What this typically meant was that the average individual would end up paying $10-$20 for a single good song on the CD. An artist gets a hit and the record company (not the artist) sells 100,000 records and makes $2 Million. Now with MP3 services like iTunes and Amazon, the single good song can be purchased for $1, and the other 19$ worth of crap on the CD doesn't need to be bought (because it won't be listened to anyway). Now assume the same hit occurs and now the record company only makes $100,000. Most people would call this progress because the average consumer pays less and is able to get a product/service that is tailored to their wants and needs. From an economic standpoint, this is more economically efficient and serves to motivate intellectual property creators to produce more high-quality content to make the same revenue. Fewer jobs are needed because artists are only producing their best work since they know that people won’t buy the junk any more...

Let's take it a step further, numerous services like Youtube, Grooveshark, and internet radio services like iHeartRadio and Pandora are now used to listen to full songs/albums before a consumer buys them and to discover new music. In most cases the consumer is going to buy the songs that he/she really likes (to put onto their iPod, Zune, or whatever), but this means only a few dollars in revenue for a record company instead of dozens or hundreds. In an economic study on music piracy, researchers from MIT found out that the average person who pirates a song doesn't like the song enough to actually buy it, and the real net effect is that someone has a song that they didn't buy that is taking up space on a hard drive, but not being listened to... Nowadays, people don't even pirate music, they simply look to stream it.

The Cable TV industry is now suffering a similar fate because of the evolution of streaming services like Hulu and Netflix. More and more people are asking the obvious questions, "Why should I watch commercial supported broadcasts when I can have on-demand, commercial free access to my movies and TV shows?" I myself dropped my Comcast Cable TV earlier this week so that I could save 60$ a month on something that I never watch anymore (I watch Netflix mainly now...). The reaction isn't to embrace the times and change with the business environment; instead Comcast implemented a 250 GB cap on monthly data traffic with a stern threat of cancelling service for users that go over the limit. This is an implied attack on net neutrality because it biases customers to use Comcast's cable TV service instead of using bandwidth consuming streaming services. This is especially effective if someone is using their Internet connection for voice, data, and TV-ng services and is using a lot of bandwidth. The bottom line is that the FCC should probably prohibit this policy under network neutrality rules.

It's time for the music, movie, and Cable TV industries to join the 21st century and adapt their business models to the changing times. Write/call your congressional leaders and get involved in stopping this train wreck of new legislation that threatens the continuation and evolution of the Internet...