I have taught more than 700 CCIE/HCIE students, and many of them have been described as “parallel imports”. It is true that some network engineers are purely "version stream", but more engineers do study and take exams systematically, and then practice at work, and then become senior network engineers. This process is the same as a trainee driver becoming an experienced driver, so brothers who have just passed IE, please do not belittle yourself.

Interesting Network Engineer Interview Series 1, using pictures, texts and jokes to solve network engineer interview questions

This article is provided by QYTangHuaweiHCIE and CiscoCCIE training instructor Mr. Ande


I have taught more than 700 CCIE/HCIE students, and many of them have been described as “parallel imports”. It is true that some network engineers are purely "version stream", but more engineers do study and take exams systematically, and then practice at work, and then become senior network engineers. This process is the same as a trainee driver becoming an experienced driver, so brothers who have just passed IE, please do not belittle yourself.

More beginners often ask me, "Brother Jun, is there any interview guide?" This idea is easy to understand. More people just want to get better jobs through training, so as long as they pass the interview, they can find a better job. BUT, being too opportunistic is not worth advocating. Of course, no matter what, I still post the issues discussed in a public group that I saw a few days ago, and add some graphic explanations to help everyone.


1. How to use Trunk? Can ACCESS mode be run between switches?

Answer:

Basic items: Trunk links are mostly used between switches. Its standard is 802.1Q. It completes more functions by adding new TAGs. These functions include identifying Layer 2 QoS (802.1P) and the most important identification of which VLAN it belongs to. traffic, so Trunk can carry the traffic of multiple VLANs on one link, which is a "sharing economy"; the ACCESS mode can be run between switches, but its limitation is that each link can only carry the traffic of one VLAN, which will cause a waste of ports. Because the ACCESS model is an "exclusive economy"

Picture 1 (access):

Picture 2 (trunk):

Bonus points: Can trunk be connected to a terminal? Yes, it is possible. For example, in a cloud (server virtualization) environment, the interface connecting to the server is a Trunk link, because multiple virtual machines belonging to different VLANs are configured on the server; the essential difference between Trunk and ACCESS is the different processing methods of PVID and TAG.


3.2.How does STP work?

Answer:

1) In order to improve the reliability of the switching network, redundant links are usually used in the switching network. However, redundant links will bring loop risks to the switching network and cause problems such as broadcast storms and MAC address table instability, which will in turn affect user communication quality. Spanning Tree Protocol STP (Spanning Tree Protocol) can improve reliability while avoiding various problems caused by loops.

STP eliminates loops in switched networks by constructing a tree.

2) In each STP network, there will be a root bridge, and other switches are non-root bridges. The root bridge or root switch is located at the root of the entire logical tree and is the logical center of the STP network. Non-root bridges are downstream devices of the root bridge. When the existing root bridge fails, non-root bridges will exchange information and re-elect the root bridge. This exchange of information is called BPDU. The BPDU contains various parameter information when the switch participates in spanning tree calculation, which will be introduced in detail later.

Three port roles are defined in STP: designated port, root port and backup port.

The designated port is the port through which the switch forwards configuration BPDUs to the connected network segment. Each network segment has and can only have one designated port. Normally, each port on the root bridge is always a designated port.

The root port is the port with the optimal path from the non-root switch to the root bridge. There is at most one root port on a switch running the STP protocol, but there is no root port on the root bridge.

If a port is neither a designated port nor a root port, the port is a backup port. The prepared port will be blocked.

With pictures:

Interviewers are tired of hearing these same cookie-cutter answers. Let’s do something different. Let’s tell the examiner a story (a palace battle drama)

Through various struggles (comparison of BPDU), the boss, the emperor (root switch), is elected. In order to realize his rule (maintain the STP topology), the emperor issues orders (BPDU). These orders need to be sent out or relayed by the imperial envoy (you can say it is a eunuch... it is too vulgar), that is, a designated port. There is no root port at the emperor's feet. The eunuch guards the non-imperial city and receives the emperor's orders (receives BPDU to maintain the RP status). There are emperors, imperial envoys, and prefects, and there are always those who are exploited, of course the poor people. The non-designated port (preparatory port) is the poor people. It is in the discarding state, that is, it does not forward data, thus avoiding loops.


3. Is OSPF 2-way normal?

If you say it's normal, it's normal; if you say it's abnormal, it's not normal (either wrong or right, right or wrong)

In OSPF, if neighbors and adjacencies are put together and expressed rigorously, they are two completely different states. 2way is a multi-point access type (broadcast and NBMA) network interaction Hello is completed. Seeing the neighbor ID in the neighbor completes the neighbor state, BUT, and no longer interacts with LSA-related content.

Only adjacencies (Full state) will interact with LSAs. In order to reduce the number of adjacency relationships and thereby reduce the number of exchanges of link status information and routing information, this can save bandwidth and reduce the burden on router hardware. A router that is neither a DR nor a BDR only forms adjacencies with the DR and BDR and exchanges link status information and routing information. This greatly reduces the number of adjacencies in large broadcast networks and NBMA networks.

In this example, although RTA has three neighbors, only two adjacencies are formed.

In the LSDB that describes the topology, an NBMA network segment or broadcast network segment is described by a single LSA. This LSA is generated by the DR on the network segment. Therefore, device A can establish a normal "2way" with another DROTHER device (the device on the right of A). This is normal.

Use a short paragraph to describe adjacency and neighbor: If you feel deeply and suffocate, this is called adjacency; if you feel less affection, this is called neighbor.


4. Please describe the circumstances under which OSPF will establish the adjacency state.

Take Question 3, in which we have discussed the relationship between adjacency and adjacency.

Bonus points:

How is the adjacency relationship constructed? There are 4 state machines related to adjacency (it does not matter whether it is an MA network or a P2P network):

ExStart: This is the first step in forming an adjacency relationship. After the neighbor status changes to this state, the router starts sending DD messages to the neighbor. The master-slave relationship is formed in this state; the initial DD sequence number is determined in this state. The DD packet sent in this state does not contain link status description.

Exchange: In this state, routers send each other DD messages containing link status information summaries, describing the contents of the local LSDB.

Loading: Send LS Request messages to each other to request LSA, and send LS Update to notify LSA.

Full: The LSDBs of the two routers have been synchronized.

Please call me Brother Duan, then Brother Duan will tell you how to remember this part:

They say network engineers don’t have girlfriends? Who says no? Who says no? Obviously we can rely on our hands.

1) Exstart, of course, if we go on a blind date, we must take the initiative to pay for the meal (don’t believe that girls like the AA system), we must be the Master device (the one with the larger RID in exstart is elected as the Master device);

2) Exchange, and then of course have an in-depth exchange with the girl. What is your ambition? The girl replied, my ambition is "poetry and distance"; what is your ambition? The man replied, my ambition is "CCIE and HCIE". . . . . What the hell

3) After the interaction is completed, of course, if certain economic conditions are still lacking, you can naturally "load" the future little days "sharing the joys and sorrows", during which LSR and LSack are interacted

4) You can also directly go to the Civil Affairs Bureau to get the certificate for 9 yuan, which is FULL.


5. Please describe DR/BDR election in OSPF

The purpose of electing DR/BDR is to reduce unnecessary flooding

The election process is as follows:

1) Time (this is a very important factor, and many people tend to ignore it) An OSPF router will wait for a period of time (RouterDeadInterval) before electing DR and BDR on broadcast network segments and NBMA network segments. During this time, it will detect whether DR and BDR already exist on the network. If there are already DR and BDR, it will not start the election process and directly enter the DROther state. Therefore, the router with the largest Router Priority on the network is not necessarily the DR, and the router with the second largest Router Priority is not necessarily the BDR.

2) DR and BDR are elected by OSPF's Hello protocol, and the election is based on the Router Priority of the port.

If the Router Priority is set to 0, the router will not be allowed to be elected as a DR or BDR.

The larger the Router Priority, the higher the priority.

3) If they are the same, the one with the larger Router ID will take precedence (note that it is not the physical address, but the RID).

However, in order to maintain the stability of the adjacency relationship on the network, if DR and BDR already exist in the network, the newly added routers in the network segment will not become DR or BDR, regardless of whether the Router Priority of the router is the largest. This is called non-preemption! If the current DR fails, the current BDR automatically becomes the new DR, and the BDR is re-elected in the network; if the current BDR fails, the DR remains unchanged, and the BDR is re-elected. The purpose of this election mechanism is to maintain the stability of adjacency relationships and reduce the impact of topological changes on adjacency relationships.

Another misunderstanding about DR/BDR is, can there be multiple DRs on one device? certainly! Because it is based on link, link, link, not device! Say important things 3 times!

Detailed illustrations

Regarding this memory, perhaps we can think of a story about a head of state: After electing a head of state, the most important thing is to run for office during the election period, otherwise you will not have the right to vote; during the election, of course, the candidate with the most support will become the BOSS; if an extreme situation occurs and the candidates have the same number of votes, then. . . So. . . . So "the eldest son is the father" (RID is large). Of course, the head of state cannot be preempted during his term of office.


6. What is the role of OSPF RID? Is it feasible if RID is not set?

Answer: Setting the RID and whether the RID exists are two issues.

If you do not set a RID, it is of course possible, because the OSPF process will automatically obtain a RID through the mechanism. The process of obtaining the RID is as follows: 1). Manually configure the Router ID of the OSPF router (manual configuration is strongly recommended); 2). If the Router ID is not manually configured, the router uses the largest IP address in the Loopback interface as the Router ID; 3). If the Loopback interface is not configured, the router uses the largest IP address in the physical interface as the Router ID. ID (whether running OSPF or not), so the ospf process automatically gets a RID. Of course, one thing to mention here is that the more annoying thing is that Huawei's official simulator ENSP does not support this very well, so don't bother to discuss the RID election on the ENSP with me.

What needs to be explained here is that RID is actually a ×××. Without ×××, it is difficult to move (you and I both understand). It is just an identifier in ipv4 format, but note that it is not necessarily an address set on the device. For example, RID can be 0.0.0.100.

Bonus points: The RID of OSPFv3 (the version of OSPF that supports IPv6) is also an identifier in the IPv4 address format. If you do not manually configure the RID when practicing OSPFv3, and it happens that the device does not have an IPv4 address (this is a common mistake, many students only configure IPv6 and ignore this), then OSPFv3 cannot get a valid RID at this time and cannot start.

Okay, there are no jokes here, just a distribution map of QYTang occupying CCIE/HCIE examination centers around the world.

The first part ends here, the guest officer will serve you the next dish later. If no one likes it, if no one praises it, then there will be no more. . . . You are 88~~

7.What are the area types of OSPF?

8.Why does OSPF stay at exstart?

9. What are the main LSAs, who generated them, and what content they describe?

10.What is floating routing

11. Describe the principle of RSTP/MSTP

12.What is the working mechanism of VRRP?


This article is provided by QYTangHuaweiHCIE and CiscoCCIE training instructor Mr. Ande

Teacher Ande’s blog: http://blog.51cto.com/enderjoe

Cisco learning group: 515840631

Huawei learning group: 109591900

QYTang customer service hotline: 400-618-8070

QYTang official website: www.qytang.com

QYTang Network Lab We think more for you