1. Different between LAG and ECMP ? Why they are configure directly connection node being LAG, why cannot ECMP?
2. What we need dynamic LAG, why cannot use static lag instead of dynamic LAG ? (Mean why we need LACP) ?
3.
MPLS:
=====
1. Why do you go for MPLS, why cannot we can manage with Ethernet/IP which is currently supported in h/w level forwarding?
2. How pseudo wire packet flowing in network?
3. Do you map MPLS packet to queue?
13. Make a number to be zero without assign zero direly ? 1. while(n) n = (n & (n-1)); 2. n = n-n;
14. Define a data structure to handle 1 lakh of timer ?
15. How to a mask range of bits in integer? int mask_bits(int data, int s_bit, int e_bit) {.... return mask_data;};
16. Delete a node form double link list?
17. Write program to store vlan, vlan range in short memory?
18. Find a link list is inter junction ?
19. Find a word "CAT" and replace a word with "APPLE" in a file ?
20. Write a program to delete a link list node using recursion?
21. AVL tree insert 9,6 and 7 will this is balance ? how do balance?
22. In you mobile you would have seen, when you type first letter it will show all contexts start with that letter as well as start with number.
How will you get, can you write a algorithm to get the same way?
23. Reverse ever alternate node in a link list. mean List: 1->2->3->4->5->6-> after reverse 2->1->4->3->6->5->
24. N number of element("ab", "zb", "cd", "wx", "ab","gv","cd",..."ab", ...."cd") stored in a contagious memory. Element size is 2 byte character.
Remove the alternate repeated elements(("ab", "zb", "cd", "wx", "--","gv","--",..."ab", ...."cd")).
Write an algorithm should meat time complexity O(1) and space complexity constant.
25. N step staircases are there where you can claim 1 or 2 step at time. How many possible way to reach you a top.
26. Given you N litter milk can, M litter milk can and expect R litter to be deliverer?
> you have unlimited milk to pore.
> Possible way: Fill M can or N can
Shift M can to N can until it get fill. Keep remaining in M.
Shift N can to M can until it get fill. Keep remaining in N.
example1: N = 3, M = 4 and R = 1;
example2: N = 2, M = 4 and R = 3;
Some time it can't be possible to deliver, it require infinite time to loop ? How to you approach this problem ?
27. Write a program to increment a pointer by 10 bytes.
28. Write a program to implement add 2 numbe add(int a, int b), indirectly he ask to handle overflow ....
29. Write a program to implement tcam or ACL in software ?
30. Write a program to convert tree to circular linked lists?