Wednesday, October 5, 2016

What is Implicit-Null and Explicit-Null label

Implicit-Null vs. Explicit-Null label

The purpose of null label assignment on Egress PE is to avoid unnecessary MPLS encapsulation on the P LSR connected to the Egress PE, and also to avoid unnecessary MPLS decapsulation on the Egress PE.

Both implicit and explicit null labels are generated by last hop router to its neighbors.

Implicit null is by default which means penultimate router should only send IP packet thus it pops the label (popping the label known as PHP and this is done to reduce the load on last hop router). The one disadvantage in implicit null approach is if the network is configured for QoS based on MPLS EXP bits, then QoS is lost between penultimate router and last hop router.

In this case, we can make use of Explicit null which means penultimate hop router does not pop the label. It sends with label value of 0 but with other fileds including EXP bits intact. This way QoS treatment is preserved between penultimate router and last hop router. Explicit null should be configured manually in last hop router.

Configure "mpls ldp explicit-null" in the last hop router. Options of specifying to which FEC explicit null are generated and to which LDP neighbors it is advertised can be controlled with keywords "for" and "to".
PE7 (config)#mpls ldp explicit-null ?
  for  Access-list specifying controls on destination prefixes

  to   Access-list specifying controls on LDP peers

Why MPLS backbone uses ISIS or OSPF as an IGP protocol?

Service Provider backbones run Traffic Engineering for its benefits of redundancy, congestion avoidance etc in the core network.
You need a link state protocol if you want to run MPLS TE

MPLS TE requires an IGP capable of sending all the topology information to all routers in the area in which TE has been enabled. Only link state protocols can do this. MPLS TE uses the capabilities of IGP (LSA in case of OSPF and TLVs in case of ISIS).

Sunday, November 8, 2015

What are the types of L2VPN

L2VPN intelligence is limited to the provider edge (PE) routers. Therefore, L2VPN is an edge technology—like MPLS VPN—that uses an MPLS backbone.
L2VPN are categorized as
1)      VPWS ( Virtual Private Wan Services)
-          VPWS also known as AToM  or Xconnects
-          AToM is the Cisco name for the Layer 2 transport service over an MPLS backbone
-          VPWS  are Point-to-Point
-          We can connect two distant sites that use different Layer 2 technologies, for example one site uses frame relay and the other uses ATM.
-          Distant sites that can use any of these technologies: Frame-Relay, PPP, Ethernet, ATM, that's why xconnects are also called Any Transport over MPLS (AToM).

2)    VPLS ( Virtual Private Lan Services)
-          VPLS can be Point-to-Point (linking only 2 sites) and can be Multipoint (linking multiple sites together)
-          VPLS can only link Ethernet sites.


What if the Core of the Service Provider is IP based only.How can we transport L2 frames across this infrastructure? L2TPv3 is the Layer 2 transport service over an IP network. The Layer 2 frames are encapsulated with an L2TPv3 header and are transported across the IP network. Similar to AToM, L2TPv3 can carry ATM, Frame Relay, HDLC, PPP, Ethernet, ATM, and others.

Friday, November 6, 2015

What are advantages of MPLS?

Main Benefit of MPLS - BGP Free CORE


When the IP network of a service provider must forward traffic, each router must look up the destination IP address of the packet. If the packets are sent to destinations that are external to the service provider network, those external IP prefixes must be present in the routing table of each router. BGP carries external prefixes, such as the customer prefixes or the Internet prefixes. This means that all routers in the service provider network must run BGP.MPLS, however, enables the forwarding of packets based on a label lookup rather than a lookup of the IP addresses. MPLS enables a label to be associated with an egress router rather than with the destination IP address of the packet. The label is the information attached to the packet that tells every intermediate router to which egress edge router it must be forwarded. The core routers no longer need to have the information to forward the packets based on the destination IP address. Thus, the core routers in the service provider network no longer need to run BGP. The router at the edge of the MPLS network still needs to look at the destination IP address of the packet and hence still needs to run BGP. Each BGP prefix on the ingress MPLS routers has a BGP next-hop IP address associated with it. This BGP next-hop IP address is an IP address of an egress MPLS router. The label that is associated with an IP packet is the label that is associated with this BGP next-hop IP address. Because every core router forwards a packet based on the attached MPLS label that is associated with the BGP next-hop IP address, each BGP next-hop IP address of an egress MPLS router must be known to all core routers. Any interior gateway routing protocol, such as OSPF or ISIS, can accomplish this task . An Internet service provider (ISP) that has 200 routers in its core network needs to have BGP running on all 200 routers. If MPLS is implemented on the network, only the edge routers—which might be 50 or so routers—need to run BGP. All routers in the core of the network are now forwarding labeled packets, without doing an IP lookup, so they are now relieved from the burden of running BGP. Because the full Internet routing table is well above 150,000 routes, not having to run BGP on all routers is a serious consideration. Routers without the full Internet routing table need a lot less memory. You can run the core routers without the complexity of having to run BGP on them.

Wednesday, October 28, 2015

How does traceroute work

Here is a very good document which i found from cisco documents.
Have been asked many times in interview

The traceroute command is used to discover the routes that packets actually take when traveling to
their destination. The device (for example, a router or a PC) sends out a sequence of User Datagram
Protocol (UDP) datagrams to an invalid port address at the remote host.
Three datagrams are sent, each with a Time-To-Live (TTL) field value set to one. The TTL value of 1
causes the datagram to "timeout" as soon as it hits the first router in the path; this router then responds
with an ICMP Time Exceeded Message (TEM) indicating that the datagram has expired.
Another three UDP messages are now sent, each with the TTL value set to 2, which causes the second
router to return ICMP TEMs. This process continues until the packets actually reach the other
destination. Since these datagrams are trying to access an invalid port at the destination host, ICMP
Port Unreachable Messages are returned, indicating an unreachable port; this event signals the
Traceroute program that it is finished.
The purpose behind this is to record the source of each ICMP Time Exceeded Message to provide a
trace of the path the packet took to reach the destination.

Why is it required that iBGP peers always form full mesh?

eBGP uses the AS_PATH as loop avoidance mechanism since iBGP router doesn't change AS_PATH attribute while advertising routes to another iBGP peer we can't use it as loop avoidance in iBGP. To avoid loop iBGP peer doesn't advertised routes learned from another iBGP peer. So in order for an iBGP peers to receive all routes need to establish BGP session with all other peers hence full mesh.

How to Write Test Plans


Test Plans should be based on functionality and the feature to be tested. It can cover following things :

1) Configuration test cases

2) Functionality Test cases

3) Standard Based/ RFC based test cases

4)  Negative test cases

5) Performance related test cases

6) Stress Test cases

7) Logs related test case

8) Statistics Related test cases

9) User interface related test cases

10) Inter Feature test cases ( Lets say VLAN test plan is to be written and in this section we can add DHCP server related test cases, a combination of two or more  features)