Aaron's Worthless Words

It's possible that someone somewhere needs to see this.

Archive for the ‘port’ tag

DHCP ACK Error on Avaya Phones

with 11 comments

We're an Avaya voice shop (for now if I have my way) and have Avaya systems of various sizes and shapes all around the Enterprise.  I was at one of our remote locations a few weeks back and helped the guys there replace a non-PoE switch so they could get the old power injector panel out of their rack.  When we moved stuff around, the phones didn't come back and had the dreaded DHCP Ack Error. Read the rest of this entry »

Aaron Conaway

I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.

More Posts - Website

Written by Aaron Conaway

December 27th, 2010 at 11:05 am

Posted in voice

Tagged with , , , , ,

IIUC Notes – Voice Ports and Dial Peers

with 5 comments

 

More of my IIUC study notes.  As always, feel free to correct.  I really need to have a real post, don't I?

show voice port summary

  • Shows the voice ports available for use
R1#show voice port summary
                                          IN       OUT
PORT           CH   SIG-TYPE   ADMIN OPER STATUS   STATUS   EC
============== == ============ ===== ==== ======== ======== ==
50/0/1         1      efxs     up    up   on-hook  idle     y
50/0/1         2      efxs     up    up   on-hook  idle     y
50/0/2         1      efxs     up    up   on-hook  idle     y
50/0/2         2      efxs     up    up   on-hook  idle     y
50/0/3         1      efxs     up    up   on-hook  idle     y
50/0/4         1      efxs     up    up   on-hook  idle     y
50/0/5         1      efxs     up    up   on-hook  idle     y
  • An ephone-dn shows up as efxs, so all these are ephone-dns.
  • Channels are numbered 0-23; timeslots are numbered 1-24

FXS Ports

  • Connect to end stations like analog phones and fax machines
  • Signaling
    • Ground start: New connections started by grounding wires
      • Typically used when tied to PBXes
    • Loop start:  New connections started by sending DC voltage
      • Default
      • Typically used when connecting to analog devices
  • Call progress tones
    • Audible tones to let the user know the status of a call
      • Dial tone, busy, call waiting, etc.
      • Different in each geographical area
  • Caller ID
    • Identifies the name and number that calls on this line should appear

R1(config)#voice-port 0/0/0
R1(config-voiceport)#signal loopStart <- Use loopstart signaling
R1(config-voiceport)#cptone PE <- Uses CP tones from Peru
R1(config-voiceport)#station-id name Corporate Fax
R1(config-voiceport)#station-id number 5551212

FXO Ports

  • Connects to CO or PBX
  • A lot of the same configurations as FXS ports
  • Two additional to discuss
    • dialt-type:  DTMF or pulse dialing
    • ring:  The number of rings to wait before answering; usually 1
      • Think of allowing a home user to answer the phone before the fax machine picks up

R1(config)#voice-port 0/0/1
R1(config-voiceport)#dial-type dtmf <- touch tone
R1(config-voiceport)#ring 3 <- wait 3 rings before answering

Digital Voice Ports

  • Unlike analog voice ports, digital voice ports must be configured to function with the network to which they are attached.
  • Voice and WAN interface cards (VWICs) provide digital voice port
  • show controllers t1
  • Framing:  defines how to format the frames
    • SF or ESF
  • Line coding:  encodes the signal in a way to maintain sychronization
    • AMI or B8ZS
  • Clock source:  defines who dictates the clocking
  • Signaling:  channel signaling
    • CAS:  use ds0-group
      • Ports show up as 0/0:1, where 0/0 is the physical port and 1 is the ds0 group
    • CCS:  use pri-group
      • Ports shows up as 0/0:23, where 0/0 is the physical port and 23 is the signaling channel (16 in E1)

R1(config)#isdn switch-type primary-5ess <- If using CCS
R1(config)#controller t1 0/0
R1(config-controller)#framing esf
R1(config-controller)#linecode b8zs
R1(config-controller)#clock source line <- get clocking from provider
For CAS:
R1(config-controller)#ds0-group 1 timeslots 1-24 type fxo-loop-start <- Using FXO loopstart signaling
-or-
For CCS:
R1(config-controller)#pri-group 1 timeslots 1-24 <- assumes signaling from CCS and ISDN switch-type

Dial Peers

  • "Routing" for phone numbers
  • Tells a voice gateway where to send calls based on dialed number
  • Two types dial peers
    • POTS:  Traditional connections like T1 and analog phone lines
    • VOIP:  Connections to an IP address
  • show dial-peer voice summary

R1(config)#dial-peer voice 1101 pots
R1(config-dial-peer)#destination-pattern 1101  <- This number…
R1(config-dial-peer)#port 0/0/0  <-  …is on this FXS port.

R1(config)#dial-peer voice 1102 pots
R1(config-dial-peer)#destination-pattern 1102  <- This number…
R1(config-dial-peer)#port 1/0:23  <-  …is on this T1 PRI port.

R1(config)#dial-peer voice 1103 voip
R1(config-dial-peer)#destination-pattern 1103  <- This number…
R1(config-dial-peer)#session target ipv4:10.10.10.1  <- …is at this IP address…
R1(config-dial-peer)#codec g711ulaw  <- …and use this codec when you get there.

Aaron Conaway

I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.

More Posts - Website

Written by Aaron Conaway

October 3rd, 2010 at 8:55 pm

SWITCH – STP Exercise #1 Solution

with 5 comments

Did you guys have any trouble with the solution to the STP exercise?  Let’s work through it and see what happens.  I got a few responses to the solution, and everyone seems to get the same answer, so I assume we’re all right.

Before we get started, I wanted to mention the tie breakers since there can be ties in STP.  If there is a tie in any calculation, the same tie breakers are used, so I’ll list them here to use as we move through the calculations.

  1. Lowest root bridge ID (which I hope we’ll never have to use)
  2. Lowest root path cost
  3. Lowest bridge ID
  4. Lowest port ID

In our exercise, we only have to go to the tie breakers once, but, in the wild, you may run into more.  I would guess that this is a requirement to know for the SWITCH test.

Before we get started, you can assume that a bridge is a switch since, technically, a switch is a many-ported bridge.  Let’s get started.  There are only 5 steps to take, so it shouldn’t take long.

1.  Find the path costs of each segment

This is done with a table lookup.  Each segment (link between switches) gets a cost based on the technology that it is using.  For example, GigabitEthernet has a cost of 4 while FastEthernet has a cost of 19.  There are other values, but these are the only ones that are used in the network here.  I did find a good table on STP path costs at HowStuffWorks.com if you want to take a look at more of them.  Let’s put the path costs on the diagram.

2.  Find the root bridge

After we find the path costs, we find the root bridge.  The root bridge is the switch that has the lowest bridge ID, which is the switch priority and the MAC address concatenated together.  Since all the bridges have the same priority, we can just look at the MACs to figure out which one has the lowest bridge ID.  Switch E has the lowest MAC (0000.0000.0003), so that’s the root bridge.

3.  Find the root ports of each bridge

The root port is a port on a switch that has the lowest total path cost back to the root bridge; every switch has a one and only one root port except for the root bridge itself which has none (it’s the root; it already knows where it is).  The root bridge sends out BPDUs that are passed to each switch.  When a switch receives it (not sends it), it increments the root path cost field and passes that along,  The port on which the lowest root path costs is received is the root port, and the value in the root path cost field is the root path cost for that switch.  The finger trace method works for us humans for now; there’s not that many switches involved.  Let’s add the root ports along with the root path costs to the diagram.

4.  Find the designated ports

Each segment of the network has a designated port.  This is a port on the bridge with the lowest root path cost.  Since the root bridge always has the shortest path to itself, all of its ports are designated ports.  Root ports can’t be designated ports, too, so it’s pretty easy to find the designated ports on segments with root ports.  There are two segments (A-B and B-C) that we need to calculate, though.  Let’s go to the tie breakers!

All the bridges have the same root bridge ID, so that’s a wash.  C has a lower root path cost than B, so it wins that segment.  A and B both have the same root path cost, though, so we move down the list to bridge ID.  Since A has a lower bridge ID, it wins that segment.

Let’s put all the designated ports on the diagram so you can see them.

5.  Find the blocked ports

There aren’t many ports left, are there?  There are three actually, and all those go into a blocked state.  To get rid of the loops, any port that’s not a root port or a designated port is blocked.  Here’s the network with the blocked ports marked.

And we’re done.  That wasn’t so hard.

Send me any summer home rentals questions.

Audio commentary:

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Aaron Conaway

I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.

More Posts - Website

Written by Aaron Conaway

April 24th, 2010 at 3:36 pm

Ideas That Seems Good At the Time

without comments

When I started in IT, I tried to get my gear as standardized as possible to impress everyone. I worked at it and worked at it until I realized that there were a handful of things that sound good but just won’t work. If you’re just getting started in the field, you may not agree, but come back in 5 years and see how right I am. Heh.

  • Assigning switchports to VLANs in chunks just doesn’t work. This seems like a great idea. You can put client A on port 1 through 12 and client B on ports 13 through 24. Then client A winds up with 13 servers, and B only has 3, so your whole scheme is in pieces on the floor. It’s just easier to plug servers into the next available port and forget physically organizing the ports. The switches don’t care if the ports are in order by VLAN. Just keep it simple.
  • Color-coding cables only works for a while. Let’s cable web servers with green cables and application boxes with blue cables and the database servers with pink and the mail servers with aubergine. I promise you, though, that you will run out of cables of one color or another and wind up having a database server in green. Then you’ll have something else wrong. It won’t be long before the color standard only applies on paper.
  • Labeling switchports by name only works if you buy servers all the time. If you’re in an environment where servers change roles and names, I guarantee you that your ports are mislabeled. The only time that labeling really works is if you’re lucky enough to work for a company with enough money to buy new stuff for every project. I’ve actually resorted to labeling ports with serial numbers instead of names since those won’t change.
  • Complicated naming schemes don’t work. They may sound cool, but simpler names are almost always better. Name your router “r1″ or something.  Don’t try “rtr001prod1″ or something as ludicrous. I once made up this awesome naming scheme, and it worked until the business took on other projects that didn’t fall into the standard, so I was screwed. Save yourself some problems and keep it simple.

Aaron Conaway

I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.

More Posts - Website

Written by Aaron Conaway

September 11th, 2007 at 7:33 pm

Posted in Uncategorized

Tagged with , ,