OSPF part 2

LSA Types

There are 6 common used (by Cisco) LSA types:

LSA type 1 updates describe the router itself: interfaces (in the area), list of neighbor routers and the router ID (RID). The RID is transmited by a linkstate-ID in this hello packet. The linkstate-ID is equal to the RID.

LSA type 2 updates represent a transit subnet for which a DR is elected. The LSID are the RID of the DR IP’s address on that particular subnet. I’ts only active on subnets with a active DR. For subnets without a DR (like a point-to-point), type 1 packets are enough for creating the topology database. Inside one area, only LSA types 1 and 2 are send out. All the routers can create a topology table with only these type 1 and 2 LSA’s. A “show ip ospf database” lists all the received LSA types.



OSPF is a link-state routing protoocol which uses factors such as speed or the link’s shortest path to decide which route is the best.

Link state protocol routers maintain a common picture of the network and exchange link informantion during discovery and/or network changes.

OSPF is designed for large and scalable networks, becauses of the following advantages:

  • Convergence speed
    • OSPF sends only routing changes instead of the entire routing table. Because of the small routing changes, updates are flooded rapidly across the network
  • Support for VLSM
  • Network size
  • Use of bandwidth
    • OSPF uses multicast to advertertise the updates: LSU’s (link state updates) are small in packetsize
  • path selection
    • OSPF selects optimal routes using cost instead of hopcount (RIP)
  • Member groupings
    • OSPF uses areas: every network segment is cut into smaller areas of routers: less LSU’s are sent out and more efficient routing takes place. eh Every router in a area does have the same topology table.



RIPv2, isn’t that hard at all.

There are a few enhancements from RIPv1:

  • Authentication: clear text (by default) or MD5
  • Subnet masks: RIPv2 is classless
  • Next-Hop IP address: to avoid routing loops (used in networks with multiple routing protocols)
  • Updates are send by multicast, to IP¬†


Frame-Relay Traffic Shaping

Frame-Relay Traffic Shaping (FRTS) can be hard to understand.

Traffic shaping vs policing

The most important difference between these two is the fact that shaping is designed to delay excess traffic, whereas policing drops the excess traffic.
Shaping uses credits. Before a packet can be sent, the amount of credits equaling the packet size in bits have to be available. Policing is not designed to guarantee bandwidth, it’s designed to limit bandwidth.



Private VLANs

Private VLAN configuration could be tricky:

A Private VLAN environment consist of a few VLANs:

  • Primary VLAN
  • Secondary VLAN
    • Community VLAN
    • Isolated VLAN

Every Secondary VLAN will be associated to a primary VLAN. Every primary VLAN can exist of multiple community VLANs but only 1 isolated VLAN.