Monday, May 3, 2010

Interview Questions

I act as proctor today for interview someone who want to join our team. There are couple CCIE holder, CCNP, CCIE candidat. I can't identify how they know each protocol and how deep. So there is the question for them! It's all question I faced while troubleshoot. (It's all IOS not Junos)

Q1, One junior engineer report that he can saw LSA in the LSDB, but he can't find out the route in routing table via sh ip route ! The question is "How make this happen" and How did you fix it ?

Q2, In MPLS VPN network, One junior engineer report that he can saw remote site routing update in local site CE router, but ping from local to remote isn't work. The question is "How make this happen" and How did you fix it ?

Q3, One junior engineer report that he saw one L2 port in cisco Layer 2 switch in forwarding status, but no traffic is transmit. The question is "How make this happen" and How did you fix it ?

Those question are very wide, the answer could be different from you. For Q1, it's not a IOS bug. Leave your answer. I will put my answer if someone interesting!

Wednesday, April 14, 2010

LISP Data Plane Suggestion.

The data plane in LISP will add (encap) 36 bytes before the ipv4 packet. This is a traditional GRE tunnel mechanism. There are 3 portions , Outer header, UDP, LISP header. For doing this, router need more resource to accomplish it. For JNPR, I think the Tunnel PIC will be a mandatory to put more header in original packet. But how about 2GB per second traffic into the Tunnel PIC or into RP ? There should be some way to do the this like MPLS label. I would like to put my words on LISP Data Plane.

After control plane, the ITR know how the IP address of the ETR. The ITR will encap new header before original packet. But How about change a new way ?

New Header for LISP

[Dst-ipv6] + [Src-ipv6] + [exp bit] + [S bit]

The Dst-ipv6 is combination format like
"2010:dst-ipv4 of destination locator: dst-ipv4 of original packet"

The Src-ipv6 is combination format like
"2010:src-ipv4 of source locator: src-ipv4 of original packet"

This format also can be aggregate like ipv4 does. Because each PI can only adv one ipv6 CIDR which will covery all. For example ASN 100 adv 2010:210:210:16::/64, Like ipv4, no one will care the dst-ipv4 of original packet. The router only need to know where the next hop of this CIDR is point to.

In this format, all internet Tier1, Tier2 router must running ipv6 routing which is smaller then today's BGP table.

PHP

Like MPLS, this new format also can save performance issue as PHP do in MPLS. So this new format can put the information to upstream which indicate your are the last hop router to reach source locatior. You need to strip the header. This will save routing look up at source locator.

The new format new to be check with AISC team, they might calculation on each bit for the header. It could be a good way may be not. It's my 2cet.

Tuesday, April 13, 2010

LISP overview

What is LISP ? It's Locator/ID Separation Protocol from Cisco system. This a new mechanism which will change the size of routing table inside router. First, the core router will not care EID anymore. By doing this, ingress and egress router acts the key point in LISP. Howevr the MR, MS proxy also import.

The encap could be a big performance impact of the service. The first probe packet in the flow might be missing on the way to dest ip. And the multi-vendor support still not get answer from others(Juniper, 3com, etc)

From the LISP, we can see that CSCO put a new way on next generation routing table , but JNPR still make a big machine put everything bigger and bigger(memory, CPU, Disk).

Visit the website for detail.

http://lisp4.cisco.com/index.html

Friday, December 18, 2009

Inter VS Intra





The Link State protocol compute the best base on Link Stat Data Base (LSDB).
For OSPF, the Intra > Inter > External,
For ISIS,
1. Level 1 intra-area routes with an internal metric
2. Level 1 external routes with an internal metric
3. Level 2 intra-area routes with an internal metric
4. Level 2 external routes with an internal metric
5. Inter-area routes (Level 1 to Level 2) with an internal metric
6. Inter-area external routes (Level 1 to Level 2) with an internal metric
7. Inter-area routes (Level 2 to Level 1) with an internal metric
8. Inter-area external routes (Level 2 to Level 1) with an internal metric
9. Level 1 external routes with an external metric
10. Level 2 external routes with an external metric
11. Inter-area external routes (Level 1 to Level 2) with an external metric
12. Inter-area external routes (Level 2 to Level 1) with an external metric

If the same prefix in LSDB locate in different Level or Area, the Intra-area always the best even you cahnge the Inter-area AD.

Here is a smiple question for you :

R2,R3 link = Level-2
R2,R1 link = Level-1
R1,R3 link = Level-1
R2 Lo0 = Level-2
R3 Lo0 = Level-2
R1 Lo0 = Level-1

1, R1,R2,R3 in the same area.
2, R1 can't using 0/0 to reach either R2/R3.
3, All router Lo0 must reach each other in best way, you can't have suboptimal routing in your network.

Can you do it ?

Saturday, September 5, 2009

Multihop EBGP


The common eBGP is over single link. Sometimes may be multi links using on eBGP peering. R2 update NetA and NetB via eBGP peer to R1. If you always want to put NetA into link 1 and NetB into link2 plus redundancy @R1. If any one link down must not impact the traffic.

The redundancy is the big topic in multihop eBGP. What I mean is if F0/0.12 @R1 is down, the traffic will move to F0/0.112 to R2. This is not so hard in Junos. The Junos software can create one more routing table for certain type traffic by using FBF. But in IOS, it's not easy. So I found aonther way to accomplish this.

I will post the answer later. If you have any idea, Let me know.

Thursday, September 3, 2009

CLNS

What is CLNS ? The answer is "Connectionless Network Service" It's different from IP. This is one of the issue for Juniper router. Because Juniper router doesn't support CLNS routing in M/T and static route support in J series. And In cisco IOS router you can run DUAL ISIS at the saem time.

Take a look. From JNCIP book :

"Juniper Networks M-series routers support the IS-IS protocol strictly for use in building IP routing tables. There is no support for the routing of OSI Connectionless Network Service (CLNS) network layer packets."

http://www.juniper.net/techpubs/software/jseries/junos93/jseries-config-guide-advanced/configuring-is-is-for-clns.html

This help you Configuring IS-IS for CLNS.

Sunday, August 16, 2009

Morakot hit Taiwan a lot


This is a news I don't want post it on my blog, but this one hit Taiwan a lot. I will record this typhoon for the hero who help the victim.

Aug,08,2009 No one know this typhoon will raining 3 meter high water in 2 days! The worst flooding in decades.

Hope they will be fine.

Wednesday, August 5, 2009

Cisco official Podcast Series

We are here in 2009 and moving into 2010 next year. There are a lot ways we can learning new stuff. Now cisco new Technology Podcasts let you can learn new stuff from website and you also can download it to you Apple series Ipod, Iphone. Take a look.


http://www.cisco.com/en/US/products/products_technology_podcast_listing.html

Monday, June 15, 2009

Dual OSPF process in IOS

I try yo move some different VPN into different path for reduce link utilization reach 95% and packet lost. In my topology, I add lower links between POPs. For the IGP cost which will not have traffic on it. Another one is the next-hop is the same from the same PE. The IOS open a option for you, "bgp next-hop loopback" under vrf config mode. After I change the next-hop, I move to IGP question. In my idea I wanna try to add another IGP domain against the originate. The new lower link will in the new IGP domain and redistributing into the originate IGP. Both are using OSPF. This call "OSPF Redistribution Among Different OSPF Processes" Ref links:

OSPF Redistribution Among Different OSPF Processes
http://www.cisco.com/en/US/tech/tk365/technologies_white_paper09186a0080531fd2.shtml

Suboptimal Routing When Redistributing Between OSPF Processes
http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a00801069aa.shtml

For simple topology :

R1----Fe----R2

﹨___Seri___/

R1 access R2 via 2 type interface "FastEthernet and Serial" Both R1, R2 create 2 Loopback interface. Each interface inside one OSPF domain. And two Redistribution Points(both R1,R2)

The key point is here:

OSPF does not do any OSPF route selection between processes

(for instance, OSPF metrics and route types are not taken into account,

when deciding the route of which process should be installed into the routing table).

The OSPF route selection rule is that intra-area routes are preferred over inter-area routes,

which are preferred over external routes. However,

this rule should apply to routes learned via the same process. In other words,

there is no preference between external routes from one process compared to internal routes of other process.

The preference rule between a given OSPF process and any other process

After redistribution, R1 will see the Loopback interface from R2 via the ower OSPF PID. The way to fix it is "distance" under router config mode. When dual or multiple OSPF running in the same box it's like different protocol (OSPF vs EIGRP). You have to change the external AD in each IGP domain if redistribution between each other. Or the Suboptimal Routing will in your network.

Friday, April 24, 2009

resolve-vpn in Junos

In the MPLS VPN network, There are different between IOS and Junos. There we are talk about the label in each OS.

In IOS, the label can be allocate from LDP/TDP(IGP), or the BGP (ipv4 or vpnv4). This is very important for Inter-AS or CSC which will swap label at border ASBR. if the label can't match the data plane is lost end to end connection.

In the Junos, It's a little complex where in inet.0 or inet.3. First we remind what's the inet.0 and inet.3. For the inet.0, in the JNCIA ebook it's is the table used to store IPv4 unicast routes(OSPF, RIP. ISIS) For the inet.3 table it contains the egress IP address of a MPLS label switched path (LSP).

In the IOS BGP table, if the next-hop is un-reachable it will not forward to the peer, as the same as ipv4 and vpnv4. How about in the vpnv4, if the next-hop not reach via mpls label ?? Well, the answer is BGP routing is work for you but the data plane isn't work. Because the packet will drop at PE router while there is no label to reach remote PE.

For the Junos, It's more technical then IOS. The rule is "If the next-hop in bgp.l3vpn.0 can reach via inet.3. It will not forward to peer" It's simple if I can't reach the peer via a MPLS label I'll not update the BGP route to perr. No black hole in the path.

So, The resolve-vpn command help you to install BGP route update with the label into the inet.3 table. In the Inter-AS and CSC the bgp update will have a label inside the update. And Junos will put BGP label into inet.3 and the BGP update can send to peer.

That's the resolve-vpnwork for you.

Monday, April 13, 2009

Cisco 224.0.0.x flood

In general, We know 2 routers in the same segment with OSPF or EIGRP, they will bcome neighbor. But how about the Layer 2 device, How does it know which port is join the EIGRP multicast group 224.0.0.10??

There is a doc in cisco.com about how switch process the reserved, destination, multicast IP addresses. It's Source-Only Networks.

Source-Only Networks

In a source-only network, switch ports are connected to multicast source ports and multicast router ports. The switch ports are not connected to hosts that send IGMP join or leave messages.

The switch learns about IP multicast groups that alias with reserved, destination, multicast IP addresses (224.0.0.x) from the IP multicast data stream by using the source-only learning method. The switch forwards traffic that aliases with these multicast addresses only to the multicast router ports.

The default learning method for traffic that aliases with reserved, destination, multicast IP addresses is IP multicast-source-only learning.Traffic that does not alias with these multicast addresses is forwarded to both the multicast source ports and multicast router ports. You cannot disable IP multicast-source-only learning for the traffic with reserved, destination, multicast IP addresses.

By default, the switch ages out forwarding-table entries that were learned by the source-only learning method and that are not in use. If the aging time is too long or is disabled, the forwarding table is filled with unused entries that the switch learned by using source-only learning or by using the IGMP join messages. When the switch receives traffic for new IP multicast groups, it floods the packet to all ports in the same VLAN. This unnecessary flooding can impact switch performance.

If aging is disabled and you want to delete multicast addresses that the switch learned by using source-only learning, re-enable aging of the forwarding-table entries. The switch can now age out the multicast addresses that were learned by the source-only learning method and are not in use.

Sunday, April 5, 2009

JNCIP part 6

The tricky JNCIP ibgp requirement :

  • You must configure at least three clusters and at least two route reflectors.

  • You must use physical address peering in at least one of your clusters.

  • The failure of any link must not break the route reflection topology.

  • The route reflection topology must not impose suboptimal routing or black holes.

  • Authentication and logging settings from the previous section must remain in effect.

The ebook indicate the r3, r4 will in different cluster because :

But placing both r3 and r4 in the same cluster would be a mistake in this case,

because doing so will cause r3 and r4 to ignore updates that carry their common cluster ID.

This will result in missing routes on one of the reflectors should a peering interface fail on

one of the two route reflectors that serve clients r1 or r2,

which would violate the redundancy aspects of your design requirements.


I'll show you why.

If both R3 and R4 in the same cluster 1.1.1.1 and R2 to R4 interface is down.
R4 BGP peering to r2 and r1 is gone, and both r1,r2 send BGP update to r3, then r3 will update to r4. When R4 received BGP update from R3, R4 will not accept "because r3,r4 in the same cluster"


A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 192.168.50.0/24 B 170 100 >10.0.2.9 I

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)

R4 will get missing route. This result will make you score 0 point.

Half point cause rain

The 2 round of the 2009 F1 GP was stop at after 32 laps, The heavy rainning made the race stop. Brawn GP's Jenson Button won the race in first and second round. A special score report by dirver is half from regular. (10-8-7-6-5-4-3-2-1) to (5-4-3.5-3-2.5-2-0.5). In the driver standing, Button leading Barrichello 5 points.

Tuesday, March 31, 2009

JNCIP part 5

JNCIP part 5

The JNCIP iBGP case study, we will look at each requirement:

  • Redistribute the static routes shown earlier in Figure 5.7 into IBGP, and using communities, ensure that all routers prefer r2's 192.168.100/24 IBGP route. You must not alter the default local preference of this route

Both R1,R2 will adv 192.168.100/24 to bgp peer, and R2 as primary with change Local-P. First at all, how many BGP attribute we can used ?

1, No weight here, it's Junos not IOS. forget it.
2, No Local-P, The requirement said can't change Local-P.
3, as-path, The iBGP update will not change as-path.
4, Origin code, The JNCIP ebook didn't using this way, but I DO.

policy-statement ibgp-exp {
term 1 {
from protocol static;
then {
metric 111;
origin incomplete;
accept;
}
}
}

Both R3,R4 will not select R1 as best route for 192.168.100/24
R3
192.168.100.0/24 *[BGP/170] 00:00:10, localpref 100
AS path: I
> to 10.0.4.2 via fe-0/1/0.23
[BGP/170] 00:00:10, localpref 100, from 10.0.3.4
AS path: I
> to 10.0.4.2 via fe-0/1/0.23
[BGP/170] 02:59:50, MED 111, localpref 100
AS path: ?
> to 10.0.4.14 via fe-0/1/2.13

so, It work for me!

Monday, March 30, 2009

2009 Formula 1 SingTel Singapore Grand Prix Ticket

The 2009 Formula 1 SingTel Singapore Grand Prix ticket will on sale. the 3-Day Walkabout Pass cost 168 SGD only. and the early bird might save 2000 SGD most. don;t miss it this time, If you miss last year, This is your best time to hold the 2009 Singapore Grand Prix Ticket now.

http://www.singaporegp.sg/ticket/general_ticket.php

PS,
There is a little different about the Walkabout Pass from last year. They limit the zone area from the tciket. and I can say the left area (zone3+4) is accessable with the Walkabout Pass, not include zone 2, zone 1. You might watch out.

Sunday, March 29, 2009

F1 2009 round 1


New F1 season in 2009, New rules for the game. Team Brawn GP F1 win the First and 2nd place in the final result. The Overtaking Working Group "OWG" and the KERS systems comes more challenge for the driver.

Junos Inactive reason: Unusable path

There is a Unusable path in Junos routing table.
State:
Inactive reason: Unusable path

The main reason is the reject statement, so any route without action will reject mark as "Hidden"

Thursday, March 26, 2009

JNCIP eBook update @ page 553

A typo in JNCIP ebook page 553.

The old request :
"Do not accept any default routes or RFC 1918 routes from EBGP peers"

The update request :
"Do not accept any default routes or RFC 1918 routes from *Customer* EBGP peers"

Wednesday, March 25, 2009

Which route into forwarding table ?

There is a example let you know how IOS router select which route into forwarding table. The topology is here "R1----eBGP----R2----ospf----R3

Both R1,R3 adv the route 192.168.1.0/24 to R2.

Q1, R2 will select R1 as next-hop, the reasion is AD value of eBGP is 20, OSPF is 110. eBGP win.

Q2, If R2 redsibute ospf into BGP then what ?

This make a little bit confuse here. R1 or R3 is the next-hop ?

Answer is R3 why ?

Once again, compare AD from eBGP and OSPf ?? NO, Then OSPF into BGP this makes 2 the same routes in the BGP table, from eBGP peer and from IGP with incomplete code (?). also the local generate route in the BGP table wil have higher weight the eBGP, so the best route in BGP table is the (?) route which is learn from OSPF. so R2 will using R3 as next-hop to 192.168.1.0/24.

Saturday, March 21, 2009

Inver-ARP at WAN interface

There is another different between IOS and Junos, the Inverse-ARP behavier, In the JNCIP book said, The Juniper Network router cannot generate IN-ARP request, but IOS will. So the dynamic mapping is only at IOS.