Powered By Blogger

Tuesday, November 28, 2017

Agile Interview Questions

1. Explain Agile in 30 seconds.

Agile is a framework of approaches and behaviors that encourage “just-in-time” production that enables customers to receive quality software sooner.

2. What are the differences between Agile and traditional project management (Waterfall)?

Agile encourages that a little of everything, including design, development, and testing is done at the same time. Conversely, the traditional approach to projects closes and completes one phase before the next begins. Agile encourages short, frequent feedback loops and embraces changes to requirements. In Waterfall, feedback is usually not collected until the very end of the project, and changes are discouraged.

3. Are you a Certified Scrum Master?

Don’t be surprised if you don’t have a certification and they ask you this question! The job description may or not may have required a certification—and the interviewer may or may not believe that certification is enough to have the expertise to be a good candidate for the role for which you are applying. If you don’t yet have an Agile Scrum Master certification, let them know if you plan on investing in the certification in the near future. Make sure you mention the years of experience you have in the field.

4. What are the roles in Scrum?

Scrum prescribes only three roles: the Product Owner, Scrum Master, and the Delivery Team. These roles should ideally be cross-functional and not shared among other projects. Many Scrum Masters have not had the opportunity to work with a team that was cross-functional or dedicated due to the organization’s resistance or inability to allow for what some refer to as a “luxury.” This question may lead the interviewer to ask how you would handle working with a team that did not have a designer or tester within the team or how you would handle a team that was not dedicated. Be ready!

5. What is the Daily Stand-Up?

One of the interview questions on Agile is sure to be about the Daily Stand-Up. The answer? Every day, preferably in the morning, the team meets for no more than 15 minutes to answer three questions:
What did you do yesterday?
What do you plan on doing today?
Are there any blocks or impediments that keep you from doing your work?
This Scrum ceremony is not meant to be a status meeting for stakeholders, but a way to energize the team and get them to set focus for the day.

6. Describe what happens in the Sprint planning meeting.

In Sprint planning, the Product Owner presents the goal of the sprint and discusses the high priority product backlog items. The Delivery team then chooses the amount of work for the next sprint.

7. What is the role of the Scrum Master?

Here’s how to handle a Scrum Master interview question like this: The Scrum Master serves the team and shields them from any distractions that could prevent them from completing a sprint goal. They also remove blocks, teach the team to become self-organized and serve as a coach who teaches Agile and Scrum values and principles.

8. Is there a difference between Agile and Scrum?

Yes! Agile is the broader umbrella which Scrum falls under. Agile has four main values and twelve principles. Scrum has its own set of values and principles and provides a lightweight “framework” to help teams become Agile.

9. Name some other Agile frameworks.

There are other frameworks in addition to Scrum, such as Kanban, Test Driven Development, and Feature Driven Development. Mention frameworks you have followed and provide scenarios.

10. When should you use Waterfall over Scrum?

Use waterfall if the requirements are simple, predictable, fully defined and understood, and will not change.

11. Would you recommend automated testing for your project?

Scrum encourages the use of automated performance or regression testing so that you can continuously deliver software as quickly as possible. Offer examples of any automated testing tools that your team may have used.

12. How long were your sprints?

An ideal sprint length is between 1 and 4four weeks, with a 2-week sprint being the most widely used.

13. What is velocity?

Velocity is the average number of points from that past 3 – 4 sprints. It is used to help predict when backlog items will be delivered. 

14. Is it okay if someone wants to change a requirement?

Yes. Agile encourages frequent feedback from customers and stakeholders so that the product can be improved. We need to be able to embrace change.

15. What type of metrics or reports have you used?

Sprint, release burn-down, and burn-up charts are standard reports. Most companies also want to understand how many stories were committed versus completed per sprint and the number of defects identified post-release to production.

16. What is a burn-down chart?

A burn-down chart displays the amount of work a team has burned through—such as hours during the sprint. Discuss how you have used these in the past.

17. What is a retrospective?

A retrospective is a meeting to inspect and adapt the process. This Agile methodology interview question is looking for the many ways to conduct a retrospective—so be ready to explain one or two formats.

18. How many Scrum teams have you managed at one time?

This is a popular question. Don’t offer that Scrum guidelines state only one Scrum Master per team as your answer! In this new role, you may be required to lead more than one team. Notice the use of the word “managed” versus “led.”  Scrum Masters do not manage, they lead teams—so be sure to use this word in your response. Your interviewer is likely to be listening very closely!

19. What type of requirements did you use for your teams?

Requirements in Scrum are written as user stories using a standard, “As a ___, I want___ so that I can ___.” As a Scrum Master, you don’t necessarily write user stories, but you would assist the Product Owner to ensure that user stories are written, prioritized, and ready for the sprint.

20. Describe a time when your Delivery team members didn’t seem to be getting along. How did you handle this?

A little bit of conflict is always good, but your interviewer is looking for your ability to be an effective leader. Reflect on a time where you had a few team members that just never seemed to be able to work things out. How did you encourage those team members to work together? Was it a team building exercise? Did you make sure they had a common goal? State the problem you had, how you addressed it, and the outcome

Sunday, March 1, 2015

Stress Busters


1. Sleep: This beats all. Sleep often. Take short naps. Sometimes, I take nap at work. Its called a silent nap where you just close your eyes for 10 minutes and let your body freeze.

When i return home from work, I directly crash to bed. Power nap of 30 minutes.

2. Drink a lot of water. Have a bottle of water everywhere. In your desk, beside your bed, in the couch. 

3. Shower. I am too lazy to take shower 3 times a day but a long shower is a good stress buster.

4. Music. Queue up your favorite playlist, put on your earphones and walk. You will instantly feel better.

5. Play with kids in your locality. If the kids don't play with you, play with stray dogs. 

6. Feed animals, birds, cows. Feed them with your own hand. It will feel bizarre initially but when the sense of affection grows, you will start liking it.

7. Don't watch too much porn. It adds up to your stress through the subconscious mind. Exposure to abrupt pornography causes unnecessary expectations in your brain and your system starts to believe and desire for it, without you even knowing it.

8. Talk with an old friend. 

9. Engage in some physical activity. Sweat, Run, let those fat burn and feel the heat inside your stomach. Push yourself. If you don't find time for running, play indoor games which involves some physical activity. I play table tennis everyday. Engaging in sports also gives your brain a much desired re-boot. 

10. Spend some time alone. Completely alone. The best time to do this is early morning but since I find it difficult to rise early, I do it at late night. A 15 minutes late night walk alone. Sometimes, a long drive in the highway.

11. And the best stress buster of all times. This.

What are some mindfulness techniques?



1. One Minute of Mindfulness

You can introduce short ‘meditation minutes’ throughout your day. You will need a clock or timer for this exercise. Set the time for one minute. During this time, your task is to focus your entire attention on your breathing, and nothing else. You may practice with your eyes either open or closed. If you lose touch with breath and become lost in thought during this time, simply let go of the thought and gently bring attention back to the breath. Bring attention back as many times as you need too.

Minute meditations can be a wonderful practice for times when your start to feel a little stressed or aggravated. 

2. Mindful Listening – An Act of Love

When listening to another person we are often there in body, but not fully present. Very often, we are not focusing on listening to them; we are caught up in our own mind chatter. We judge what they are saying, mentally agreeing or disagreeing, or we think about what we want to say next.

Next time you’re with a loved one or co-worker, try using your time as an exercise in mindfulness. Don’t just hear their words; really listen to what they’re saying. Focus all of your attention on the other person. You’ll be amazed at the power of listening; it’s an act of love and kindness. People appreciate it deeply when you truly listen to them. You’ll also find that they’ll listen to you more fully when you speak. 

3. Transformational ‘Chores’

Turn your ordinary household tasks into meditation sessions. For many of us, housework takes up quite a good portion of our lives. Instead of thinking of it as just a boring chore, the task can becomes a mindfulness ritual.

The next time you have to prepare dinner or do the laundry, focus all of your awareness on the task at hand, in the present moment. Aim to be fully engaged in what you are doing and not caught up in mind chatter or just rushing to the end of your task.

For instance, if doing the laundry, as you fold the clothes, don’t rush through it simply ‘getting it done’. Notice the feel and textures of the fabrics, or how fresh they smell. Pay attention to the patterns and colours and the way they are affected by the light of the room. Make folding into a sort of yoga practice and move with mindfulness, attentive to each fold.

In this way, every little act becomes a sacred ritual. It keeps you in tune with the moment, with yourself, your space and even the world around you—all functioning in harmony.

4. Eating With Awareness

Eating mindfully can help you reclaim the pleasure of food. So many of us have become out of touch with this, one of life's most simple and wonderful pleasures. Mindful eating has been shown to aid weight loss and have aid healthy digestion.

When you sit for your meal, turn off all distractions and focus on your immediate experience. Before you begin to eat, pause. Look at your food; take notice of the scent. 

When you eat take small bites and eat slowly. Be fully present in the moment with your experience.

5. Slow Down!

Our culture is one of business, effort, deadlines, striving and achieving. The information age has us racing through life at a pace that would make our forefathers heads spin— but are we happier? 

Many of us rarely allow ourselves to slow down and be fully present for the precious moments of our lives, and we’re shortchanging our lives living like that.

Physically slowing down helps us to mentally slow down. We get more pleasure out of life when we slow down like this. Take some time out to eat a meal and really connect with your family (With the TV off!). Walk barefoot on the grass, enjoying the sensation. Take time to connect with a customer instead of “selling” to them. Do one thing at a time and be there, fully.

6. One thing at a time

For a couple of decades now, the catch phrase has been “multi-tasking.” Some people boast of their multi-tasking abilities on their resumes or at job interviews, others do it among friends and family as they talk about the things they try to get done in a day.

There is a myth that multitasking make us more productive; in reality, it drains us faster. Trying to spread our attention so thin and keep up with so many things makes us more prone to mistakes. We’re not more productive; we’re just busier, both mentally and physically, exhausting ourselves needlessly.

Try changing your focus to doing just one thing at a time. Take on each task with full awareness, one by one. When mindfully doing a task, you’re less prone to rushing, mistakes or forgetting details. You’ll find you can be more efficient with the task, and finish it without feeling worn out or tense. 

When your ‘doing’ simply be there fully, with all of your attention, for each moment of it.

Remember - Life is not a to-do list. It’s meant to be enjoyed!

7.’Watch’ the Mind

Through self-observation, mindfulness automatically streams into your life. The moment you realize you are not being mindful – you are mindful! You have stepped out of the continuous mental dialogue of the mind and are now the observer. You are now watching the mind instead of being swept of in its current. Anytime you watch thoughts, you are being mindful.

Start listening to the voice in your head as often as you can, especially any repetitive thought patterns. As you listen, aim to do so an impartial witness. You’ll soon realize, “there is the voice, and here I am listening to it. I am not the mind.”

The key is this – Don’t believe your thoughts. Don’t take them all that seriously. Watch them, question them. In this way, thoughts and conditioned, reactive ways of living and thinking lose their hold over you. You no longer have to play them out.

8. Nothing Time

Living in a culture where idleness is frowned on has made many of us forget how to be still and do nothing at all. The mentality has been ingrained in us that screams, do, do, do! Go, go, go! The idea of sitting and doing nothing can be so foreign to us, it makes many feel uncomfortable—guilty, even.

We don’t have to be doing all the time, though. Take some nothing time each day. Even if it’s just five minutes, sit for that five minutes and do… nothing.

Sit silently in a favourite chair or in a sunny spot outside. If possible without mobile phones, beepers or other distractions near you. Become still. Bring your full awareness into the present moment and to your sensory perceptions. All that exists for you is the here and now.

You may be amazed at how pleasurable and satisfying it is just to ‘be’ – How much taking five minutes from your day will give back to your life.

9. Mindful Walking

Walking can give you a chance to spend time being mindful without taking any extra time from your day. Whether you’re walking around your neighborhood, from the car to the store or through the hallways at work, you can turn it into a meditative exercise.

Before even rising out of your chair, turn your attention to your intent to walk mindfully. Rise and allow yourself to become aware of the sensation of standing. Put your attention on your body. Pause; take one conscious breath.

Begin to move your feet. If possible you can walk slowly and deliberately to aid you in your practice. Notice how the floor feels under your feet, how your clothes feel swishing around your body. Pay attention to the details in your surroundings—the architecture of the building, the plants you are passing, and the birds singing in the trees. Be present in your here in and now experience. 

Aim to be there for every step.

“Walk as if you are kissing the Earth with your feet.” 
― Thich Nhat Hanh

10. Come to Your Senses

The essence of mindfulness is the ability to let go of the minds noisy compulsive chatter and to touch deeply the stillness that lies underneath. To be mindful is to be in a state are your highly alert and not ‘lost’ in thinking. To access the state you can use your senses. Wherever you are and whatever you’re doing give your senses your fullest attention. You can turn any moment into a mindfulness practice by this method.

Whatever you sense, go into it fully. Explore the world with your senses. Visually observe details of your environment, such as the curve or a tree branch or the arch of a doorway, or the play of light in the room you are in. Be fully engrossed in the looking but without mental labeling of any kind. Look with ‘bare awareness’.

As you go about your day be mindful of the feel of sun on your skin or the wind in your hair when you leave the house. Be mindful of the softness of a chair, or the smoothness of a stone. Take a breath, and put your focus on what scents you’re taking in.

To be fully engaged in sense perception like this draws attention into the moment and out of all that mental noise. It brings a sense of fresh aliveness and wonder into our day.

11. Urge Surfing

Sometimes we have urges, cravings, impulses—addictions even.

These can actually be transformed into a wonderful ‘wake up call’ into mindfulness.

The next time you feel an urge, know that you don’t have to fight it; you don’t have to follow or give into it either. You can simply be there to observe it with mindful awareness. 

This technique is sometimes referred to as urge surfing.

Urges ebb and flow, just like waves. With urge surfing, we bring awareness into the urge itself—how it feels in the body, in the moment. We simply acknowledge we are having an urge and we allow it to be there without getting caught up in the thoughts about it. In this way we ride it out instead of pushing the urge away or following it.

If a sensation of craving comes to you or you notice yourself having impulsive thoughts – see if you can firstly simply acknowledge their presence “oh I’m feeling a craving for chocolate”. Observe it directly, as an impartial witness. 

Notice if the craving has a physical sensation in the body. Note if you are having ‘wanting’ thoughts. See them for what they are – just thoughts. Aim to remain ‘present’ for the duration of the wave which usually only lasts maximum of 30 minutes.

Each time you successfully surf an urge, you make it easier to do so next time. Urge surfing can, with practice, liberate you from addictive and compulsive behaviors while bringing the benefits of mindfulness into your life even more.

Thursday, November 21, 2013

4 Tips to Stop Second-Guessing Yourself

It's hard to be sure you've made the right decision. But it's vital not to question a decision once it's made.

1. You can never know everything.
Face it: You will never have all the information you need to make a good decision. But you have to make it anyway, so do your due diligence, listen to your instincts, and go for it.
The good news is that if you're working in the face of unknowns, so is everyone else, including your competitors.
2. Few decisions are irreversible.
If you make this decision are you stuck with the consequences forever? The answer is almost certainly no--even a tattoo is removable. Some believe there really are no wrong decisions because each one gives you the opportunity to learn, and to adjust for the future.
So commit to giving your decision six months or a year to truly test it out and know that if it turns out wrong, you can make a different decision later.
3. Few decisions are catastrophic.
Years ago, my colleagues and I made a disastrous hire for a key position. The woman in question seemed great and came with good credentials and glowing recommendations, but she botched key tasks, drove valued personnel to resign, and wasted tens of thousands of dollars before we learned of our error and replaced her. It was about the worst mistake we could have made and it rattled our faith in ourselves, but it didn't rattle our organization as badly as I'd expected. A few months later we had hired a replacement and were back on track.
So stop fearing that one bad decision will bring everything crashing down. Your company is more resilient than you think and so are you.
4. Indecisive is worse than wrong. 
This has been a difficult lesson for me to learn, but it's an important one. The people who work for you can forgive you for making a mistake, even a very bad one. It's much harder for them to forgive wishy-washiness or paralysis. The reason is simple: By definition a leader needs to be followed. And it's tough to follow someone who doesn't seem to know where to go. 

Wednesday, March 7, 2012

A Complete Guide to CCNA


Tutorial Quick Links:

OSI Model
LAN Design
Network Devices
Bridging/Switching
VLANs
Lan Protocols
TCP/IP
IPX/SPX
WAN Protocols
Frame Relay
ATM
PPP
Cisco IOS
Security
Routing
RIP
OSPF
IGRP and EIGRP
Other Routing Info 


OSI Model:
The OSI model is a layered model and a conceptual standard used for defining standards to promote multi-vendor integration as well as maintain constant interfaces and isolate changes of implementation to a single layer. It is NOT application or protocol specific. In order to pass any Cisco exam, you need to know the OSI model inside and out. 

The OSI Model consists of 7 layers as follows: 

Layer
Description
Device
Protocol
Application
Provides network access for applications, flow control and error recovery. Provides communications services to applications by identifying and establishing the availability of other computers as well as to determine if sufficient resources exist for communication purposes.
Gateway
NCP, SMB, SMTP, FTP, SNMP, Telnet, Appletalk
Presentation
Performs protocol conversion, encryption and data compression
Gateway and redirectors
NCP, AFP, TDI
Session
Allows 2 applications to communicate over a network by opening a session and synchronizing the involved computers. Handles connection establishment, data transfer and connection release
Gateway
NetBios
Transport
Repackages messages into smaller formats, provides error free delivery and error handling functions
Gateway
NetBEUI, TCP, SPX, and   NWLink
Network
Handles addressing, translates logical addresses and names to physical addresses, routing and traffic management.
Router and brouter
IP, IPX, NWLink, NetBEUI
**Data Link
Packages raw bits into frames making it transmitable across a network link and includes a cyclical redundancy check(CRC). It consists of the LLC sublayer and the MAC sublayer. The MAC sublayer is important to remember, as it is responsible for appending the MAC address of the next hop to the frame header. On the contrary, LLC sublayer uses Destination Service Access Points and Source Service Access Points to create links for the MAC sublayers.
Switch, bridge and   brouter
None
Physical
Physical layer works with the physical media for transmitting and receiving data bits via certain encoding schemes. It also includes specifications for certain mechanical connection features, such as the adaptor connector.
Multiplexer and repeater
None

Here is an easy way to memorize the order of the layers:
All People Seem To Need Data Processing. The first letter of each word corresponds to the first letter of one of the layers. It is a little corny, but it works. 

The table above mentions the term "MAC Address". A MAC address is a 48 bit address for uniquely identifying devices on the network. Something likes 00-00-12-33-FA-BC, we call this way of presenting the address a 12 hexadecimal digits format. The first 6 digits specify the manufacture, while the remainders are for the host itself. The ARP Protocol is used to determine the IP to MAC mapping. And of course, MAC addresses cannot be duplicated in the network or problems will occur. For more information about ARP and related protocols, read Guide To ARP, IARP, RARP, and Proxy ARP. 

Data encapsulation takes place in the OSI model. It is the process in which the information in a protocol is wrapped in the data section of another protocol. The process can be broken down into the following steps: 

User information -> data -> segments -> packets/datagrams -> frames -> bits. 

When discussing the OSI model it is important to keep in mind the differences between "Connection-oriented" and "Connectionless" communications. A connection oriented communication has the following characteristics:
  • A session is guaranteed.
  • Acknowledgements are issued and received at the transport layer, meaning if the sender does not receive an acknowledgement before the timer expires, the packet is retransmitted.
  • Phrases in a connection-oriented service involves Call Setup, Data transfer and Call termination.
  • All traffic must travel along the same static path.
  • A failure along the static communication path can fail the connection.
  • A guaranteed rate of throughput occupies resources without the flexibility of dynamic allocation.
  • Reliable = SLOW (this is always the case in networking).
In contrast, a connectionless communication has the following characteristics:
  • Often used for voice and video applications.
  • NO guarantee nor acknowledgement.
  • Dynamic path selection.
  • Dynamic bandwidth allocation.
  • Unreliable = FAST.
(Note: Connectionless communication does have some reliability PROVIDED by upper layer Protocols.) 

Ethernet
When we talk about a LAN, Ethernet is the most popular physical layer LAN technology today. Its standard is defined by the Institute for Electrical and Electronic Engineers as IEEE Standard 802.3, but was originally created by Digital Intel Xerox (DIX). According to IEEE, information for configuring an Ethernet as well as specifying how elements in an Ethernet network interact with one another is clearly defined in 802.3. 

For half-duplex Ethernet 10BaseT topologies, data transmissions occur in one direction at a time, leading to frequent collisions and data retransmission. In contrast, full-duplex devices use separate circuits for transmitting and receiving data and as a result, collisions are largely avoided. A collision is when two nodes are trying to send data at the same time. On an Ethernet network, the node will stop sending when it detects a collision, and will wait for a random amount of time before attempting to resend, known as a jam signal. Also, with full-duplex transmissions the available bandwidth is effectively doubled, as we are using both directions simultaneously. You MUST remember: to enjoy full-duplex transmission, we need a switch port, not a hub, and NICs that are capable of handling full duplex. Ethernet’s media access control method is called Carrier sense multiple access with collision dectection (CSMA/CD). Because of Ethernets collision habits it is also known as the “best effort delivery system.” Ethernet cannot carry data over 1518 bytes, anything over that is broken down into “travel size packets.” 

Fast Ethernet
For networks that need higher transmission speeds, there is the Fast Ethernet standard called IEEE 802.3u that raises the Ethernet speed limit to 100 Mbps! Of course, we need new cabling to support this high speed. In 10BaseT network we use Cat3 cable, but in 100BaseT network we need Cat 5 cables. The three types of Fast Ethernet standards are 100BASE-TX for use with level 5 UTP cable, 100BASE-FX for use with fiber-optic cable, and 100BASE-T4 which utilizes an extra two wires for use with level 3 UTP cable. 

Gigabit Ethernet
Gigabit Ethernet is an emerging technology that will provide transmission speeds of 1000mbps. It is defined by the IEEE standard The 1000BASE-X (IEEE 802.3z). Just like all other 802.3 transmission types, it uses Ethernet frame format, full-duplex and media access control technology. 

Token Ring
Token Ring is an older standard that isn't very widely used anymore as most have migrated to some form of Ethernet or other advanced technology. Ring topologies can have transmission rates of either 4 or 16mbps. Token passing is the access method used by token ring networks, whereby, a 3bit packet called a token is passed around the network. A computer that wishes to transmit must wait until it can take control of the token, allowing only one computer to transmit at a time. This method of communication aims to prevent collisions. Token Ring networks use multistation access units (MSAUs) instead of hubs on an Ethernet network. For extensive information on Token Ring, read Cisco's Token Ring/IEEE 802.5 tutorial. 

In a typical LAN, there are various types of network devices available as outlined below.
  • Hub Repeat signals received on each port by broadcasting to all the other connected ports.
  • Repeaters Used to connect two or more Ethernet segments of any media type, and to provide signal amplification for a segment to be extended. In a network that uses repeater, all members are contending for transmission of data onto a single network. We like to call this single network a collision domain. Effectively, every user can only enjoy a percentage of the available bandwidth. Ethernet is subject to the "5-4-3" rule regarding repeater placement, meaning we can only have five segments connected using four repeaters with only three segments capable of accommodating hosts.
  • Bridge A layer 2 device used to connect different networks types or networks of the same type. It maps the Ethernet addresses of the nodes residing on each segment and allows only the necessary traffic to pass through the bridge. Packet destined to the same segment is dropped. This "store-and-forward" mechanism inspects the whole Ethernet packet before making a decision. Unfortunately, it cannot filter out broadcast traffic. Also, it introduces a 20 to 30 percent latency when processing the frame. Only 2 networks can be linked with a bridge.
  • Switch Can link up four, six, eight or even more networks. Cut-through switches run faster because when a packet comes in, it forwards it right after looking at the destination address only. A store-and-forward switch inspects the entire packet before forwarding. Most switches cannot stop broadcast traffic. Switches are layer 2 devices.
  • Routers Can filter out network traffic also. However, they filter based on the protocol addresses      defined in OSI layer 3(the network layer), not based on the Ethernet packet addresses. Note that protocols must be routable in order to pass through the routers. A router can determine the most efficient path for a packet to take and send packets around failed segments.
  • Brouter Has the best features of both routers and bridges in that it can be configured to pass the unroutable protocols by imitating a bridge, while not passing broadcast storms by acting as a router for other protocols.
  • Gateway Often used as a connection to a mainframe or the internet. Gateways enable communications between different protocols, data types and environments. This is achieved via protocol conversion, whereby the gateway strips the protocol stack off of the packet and adds the appropriate stack for the other side. Gateways operate at all layers of the OSI model without making any forwarding decisions.
The goal of LAN segmentation is to effectively reduce traffic and collisions by segmenting the network. In a LAN segmentation plan, we do not consider the use of gateways and hubs at all and the focus turns to device such as switches and routers. 


·  Bridge - A layer 2 device used to connect different networks types or networks of the same type. It maps the Ethernet addresses of the nodes residing on each segment and allows only the necessary traffic to pass through the bridge. Packet destined to the same segment is dropped. This "store-and-forward" mechanism inspects the whole Ethernet packet before making a decision. Unfortunately, it cannot filter out broadcast traffic. Also, it introduces a 20 to 30 percent latency when processing the frame. Only 2 networks can be linked with a bridge.
·  Switch - Switches are layer 2 devices that can link up four, six, eight or even more networks. Switches are the only devices that allow for microsegmentation. Cut-through switches run faster because when a packet comes in, it forwards it right after looking at the destination address only. A store-and-forward switch inspects the entire packet before forwarding. Most switches cannot stop broadcast traffic. Switches are considered dedicated data link device because they are close to a 100 % of the bandwidth. While bridging does most of its work by hardware, switches use fabric/software to handle most of its work. 

Store-and-forward - The entire frame is received before any forwarding takes place. The destination and/or the source addresses are read and filters are applied before the frame is forwarded. Latency occurs while the frame is being received; the latency is greater with larger frames because the entire frame takes longer to read. Error detection is high because of the time available to the switch to check for errors while waiting for the entire frame to be received. This method discards frames smaller than 64 bytes (runts) and frames larger than 1518 bytes (giants).

Cut-Through - The switch reads the destination address before receiving the entire frame. The frame is then forwarded before the entire frame arrives. This mode decreases the latency of the transmission and has poor error detection. This method has two forms, Fast-forward and fragment-free.
  • Fast-forward switching - Fast-forward switching offers the lowest level of latency by immediately forwarding a packet after receiving the destination address. Because fast-forward switching does not check for errors, there may be times when frames are relayed with errors. Although this occurs infrequently and the destination network adapter discards the fault frame upon receipt. In networks with high collision rates, this can negatively affect available bandwidth.
  • Fragment Free Switching - Use the fragment-free option to reduce the number of collisions frames forwarded with errors. In fast-forward mode, latency is measured from the first bit received to the first bit transmitted, or first in, first out (FIFO). Fragment-free switching filters out collision fragments, which are the majority of packets errors, before forwarding begins. In a properly functioning network, collision fragments must be smaller then 64 bytes. Anything greater than 64 byes is a valid packet and      is usually received without error. Fragment-free switching waits until the received packet has been determined not to be a collision fragment before forwarding the packet. In fragment-free, latency is measured as FIFO.
Spanning-Tree Protocol - Allows duplicate switched/bridged paths without incurring the latency effects of loops in the network. 

The Spanning-Tree Algorithm, implemented by the Spanning-Tree Protocol, prevents loops by calculating stable spanning-tree network topology. When creating a fault-tolerant network, a loop-free path must exist between all nodes in the network The Spanning-Tree Algorithm is used to calculate a loop-free paths. Spanning-tree frames, called bridge protocol data units (BPDUs), are sent and received by all switches in the network at regular intervals and are used to determine the spanning-tree topology. A switch uses Spanning-Tree Protocol on all Ethernet-and Fast Ethernet-based VLANs. Spanning-tree protocol detects and breaks loops by placing some connections in standby mode, which are activated in the event of an active connection failure. A separate instance Spanning-Tree Protocol runs within each configured VLAN, ensuring topologies, mainly Ethernet topologies that conform to industry standards throughout the network. These modes are as follows:
  • Blocking- NO frames forwarded, BPDUs heard.
  • Listening – No frames forwarded, listening for frames
  • Learning- No frames forwarded, learning addresses.
  • Forwarding- Frames forwarded, learning addresses.
  • Disabled- No frames forwarded, no BPDUs heard.
The state for each VLAN is initially set by the configuration and later modified by the Spanning-Tree Protocol process. You can determine the status, cost and priority of ports and VLANs, by using the show spantree command. After the port-to-VLAN state is set, Spanning-Tree Protocol determines whether the port forwards or blocks frames.

A VLAN is a logical grouping of devices or users. These devices or users can be grouped by function, department application and so on, regardless of their physical segment location. VLAN configuration is done at the switch via switching fabric. A VLAN can be used to reduce collisions by separating broadcast domains within the switch. In other words, VLANs create separate broadcast domains in a switched network. Frame tagging at layer 2 does this. Frame tagging is a gaining recognition as the standard for implementing VLANs, and is recognized by IEEE 802.1q. Frame tagging uniquely assigns a VLAN ID to each frame. This identifier is understood and examined by each switch prior to any broadcasts or transmissions to other switches, routers, and end-stations devices. When the frame exits the network backbone, the switch removes the identifier before the frame is transmitted to the target end station. This effectively creates an environment with fewer collisions. The key to this is that ports in a VLAN share broadcasts, while ports not in that VLAN cannot share the broadcasts. Thus users in the same physical location can be members of different VLANs. We can plug existing hubs into a switch port and assign them a VLAN of their own to segregates users on the hubs. Frame filtering examines particular information about each frame. A filtering table is developed for each switch; this provides a high level of administrative control because it can examine many attributes of each frame. Frame filtering is slowly being erased and replaced by the frame tagging method. 

VLANs can be complicated to set up. VLANs use layer 2 addressing, meaning that routers are required between separate VLANs. The advantage of deploying layer 2 addresses is that layer 2 addressing is faster to process. It is also quite common for administrators to set up multiple VLANs with multiple access lists to control access. Layer 3 routing provides the ability for multiple VLANs to communicate with each other, which means that users in different locations can reside on the same VLAN. This is a flexible approach to network design. 

VLANs are configured on the switch three ways, port centric, static and dynamically. In port-centric VLANs, all the nodes connected to ports in the same VLAN are assigned the same VLAN ID. Packets do not “leak” into other domains, and are easily administered and provide great security between VLANs. Some say that static configured VLANs are the same as port centric, because static VLANs use the port centric method for assigning them to switch ports. Dynamic VLANs are ports on a switch that can automatically determine their VLAN assignments. Dynamic VLAN functions are based on MAC addresses, logical addressing, or protocol type of the data packets. When a station is initially connected to an unassigned switch port, the appropriate switch checks the MAC entry in the management database and dynamically configures the port with the corresponding VLAN configuration. The major high points of this method are less administration overhead, of course only after the first administration of the database within the VLAN management software. 

The following sections will introduce the core LAN protocols that you will need to know for the exam.

TCP/IP:

The following table explains how to convert binary into decimal and visa versa: 
Decimal
Binary
Explanation
128
10000000
When converting binary data to decimal, a "0" is equal to 0. "1" is equal to the number that corresponds to the field it is in. For example, the number 213 would be 11010101 in binary notation. This is calculated as follows: 128+64+0+16+0+4+0+1=213. Remember that this only represents 1 octet of 8 bits, while a full IP address is 32 bits made up of 4 octets. This being true, the IP address 213.128.68.130 would look like 11010101 10000000 01000100 10000010.
64
01000000
32
00100000
16
00010000
8
00001000
4
00000100
2
00000010
1
00000001

IP addresses are divided into 3 classes as shown below: 
Class
Range
Explanation
A
1-126
IP addresses can be class A, B or C. Class A addresses are for networks with a large number of hosts. The first octet is the netid and the 3 remaining octets are the hostid. Class B addresses are used in medium to large networks with the first 2 octets making up the netid and the remaining 2 are the hostid. A class C is for smaller networks with the first 3 octets making up the netid and the last octet comprising the hostid. The later two classes aren’t used for networks.
B
128-191
C
192-223
D
224-239 (Multicasting)
E
240-255 (Experimental)

A subnet mask blocks out a portion of an IP address and is used to differentiate between the hostid and netid. The default subnet masks are as follows: 
Class
Default Subnet
# of Subnets
# of Hosts Per Subnet
Class A
255.0.0.0
126
16,777,214
Class B
255.255.0.0
16,384
65,534
Class C
255.255.255.0
2,097,152
254

In these cases, the part of the IP address blocked out by 255 is the Net ID. 

In the table above, the it shows the default subnet masks. What subnet mask do you use when you want more that 1 subnet? Lets say, for example, that you want 8 subnets and will be using a class C address. The first thing you want to do is convert the number of subnets into binary, so our example would be 00001000. Moving from left to right, drop all zeros until you get to the first "1". For us that would leave 1000. It takes 4 bits to make 8 in binary so we add a "1" to the first 4 high order bits of the 4th octet of the subnet mask(since it is class C) as follows: 11111111.11111111.11111111.11110000 = 255.255.255.240. There is our subnet mask. 
Lets try another one...Lets say that you own a chain of stores that sell spatulas in New York and you have stores in 20 different neighborhoods and you want to have a separate subnet on your network for each neighborhood. It will be a class B network. First, we convert 20 to binary - 00010100. We drop all zeros before the first "1" and that leaves 10100. It takes 5 bits to make 20 in binary so we add a "1" to the first 5 high order bits which gives: 11111111.11111111.11111000.00000000 = 255.255.248.0. The following table shows a comparison between the different subnet masks. 
Mask
# of Subnets
Class A Hosts
Class B Hosts
Class C Hosts
192
2
4,194,302
16,382
62
224
6
2,097,150
8,190
30
240
14
1,048,574
4,094
14
248
30
524,286
2,046
6
252
62
262,142
1,022
2
254
126
131,070
510
Invalid
255
254
65,534
254
Invalid

Note: 127.x.x.x is reserved for loopback testing on the local system and is not used on live systems. 

TCP/IP Ports - Ports are what an application uses when communicating between a client and server computer. Some common TCP/IP ports are:

·  20 FTP-DATA
·  21 FTP
·  23 TELNET
·  25 SMTP
·  69 TFTP
·  70 GOPHER
·  80 HTTP
·  110 POP3
·  137 NetBIOS name service
·  138 NetBIOS datagram service
·  139 NetBIOS
·  161 SNMP

You need to understand Buffering, Source quench messages and Windowing. Buffering allows devices to temporarily store bursts of excess data in memory. However, if data keep arriving at high speed, buffers can go overflow. In this case, we use source quench messages to request the sender to slow down. 

Windowing is for flow-control purpose. It requires the sending device to send a few packets to the destination device and wait for the acknowledgment. Once received, it sends the same amount of packets again. If there is a problem on the receiving end, obviously no acknowledgement will ever come back. The sending source will then retransmits at a slower speed. This is like trial and error, and it works. Note that the window size should never be set to 0 - a zero window size means to stop transmittion completely. 


IPX/SPX:

Sequenced Packet Exchange(SPX) belongs to the Transport layer, and is connection-oriented. It creates virtual circuits between hosts, and that each host is given a connection ID in the SPX header for identifying the connection. Service Advertisement Protocol(SAP) is used by NetWare servers to advertise network services via broadcast at an interval of every 60 minutes by default. 

In general, there are three broad types of WAN access technology. With Leased Lines, we have point-to-point dedicated connection that uses pre-established WAN path provided by the ISP. With Circuit Switching such as ISDN, a dedicated circuit path exist only for the duration of the call. Compare to traditional phone service, ISDN is more reliable and is faster. With Packet Switching, all network devices share a single point-to-point link to transport packets across the carrier network - this is known as virtual circuits. 

When we talk about Customer premises equipment(CPE), we are referring to devices physically located at the subscriber’s location. Demarcation is the place where the CPE ends and the local loop begins. A Central Office(CO) has switching facility that provides point of presence for its service. Data Terminal Equipment(DTE) are devices where the switching application resides, and Date Circuit-terminating Equipment(DCE) are devices that convert user data from the DTE into the appropriate WAN protocol. A router is a DTE, while a DSU/CSU device or modem are often being referred to as DCEs. 

Frame Relay:
  • successor to X.25
  • has less overhead than X.25 because it relies on upper layer protocols to perform error checking.
  • Speed in between the range of 56 Kbps to 2.078 Mbps.
  • uses Data Link Connection Identifiers(DLCI) to identify virtual circuits, with DLCI number between 16 and 1007.
  • uses Local Management Interfaces(LMI) to provide info on the DLCI values as well as the status of virtual circuits. Cisco routers support Cisco(Default), ANSI and Q933a.
  • to set up frame relay, we need to set the encapsulation to frame-relay in either the Cisco(Default) mode or the IETF mode, although Cisco encapsulation is required to connect two Cisco devices.
  • LMI type is configurable, but by default it is being auto-sensed.
  • generally transfer data with permanent virtual circuits (PVCs), although we can use switched virtual circuits (SVCs) as well.
  • SVC is for transferring data intermittently.
  • PVC does not have overhead of establishing and terminating a circuit each time communication is needed.
  • Committed Information Rate(CIR) is the guaranteed minimum transfer rate of a connection
Cisco has a web page that describes the configuration and troubleshooting of Frame relay - Comprehensive Guide to Configuring and Troubleshooting Frame Relay 

ATM:

PPP:
  • HDLC(High-level Data Link Control) - Encapsulates the data during transmission and is a link layer protocol which is also the default Cisco encapsulation protocol for synchronous serial links. HDLC is supposed to be an open standard, but Cisco's version is proprietary, meaning it can only function with Cisco routers.
  • LCP(Link Control Protocol) - Establishes, tests and configures the data link connection.
  • NCPs(Network Control Protocols) - Used to configure the different communication protocols, allowing them on the same line simultaneously. Microsoft uses 3 NCPs for the 3 protocols at the Network Layer (IP, IPX and NetBEUI)
PPP communication occurs in the following manner: PPP sends LCP frames to test and configure the data link. Next, authentication protocols are negotiated to determine what sort of validation is used for security. Below are 2 common authentication protocols:
  • PAP is similar to a network login but passwords are sent as clear text. It is normally only used on FTP sites.
  • CHAP uses encryption and is a more secure way of sending passwords.
Then NCP frames are used to setup the network layer protocols to be used. Finally, HDLC is used to encapsulate the data stream as it passes through the PPP connection. 

Point-to-Point Tunneling Protocol(PPTP) provides for the secure transfer of data from a remote client to a private server by creating a multi-protocol Virtual Private Network(VPN) by encapsulating PPP packets into IP datagrams. There are 3 steps to setup a secure communication channel:
1.    PPP connection and communication to the remote network are established.
2.    PPTP creates a control connection between the client and remote PPTP server
3.    PPTP creates the IP datagrams for PPP to send.
The packets are encrypted by PPP and sent through the tunnel to the PPTP server which decrypts the packets, disassembles the IP datagrams and routes them to the host. Setting Up PPTP requires a PPTP Client, PPTP Server and a Network Access Server(NAS). 

Cisco routers use the Internetworking Operating System(IOS) which stores the configuration information in Non-Volatile RAM(NVRAM) and the IOS itself is stored in flash. The IOS can be accessed via Telnet, console connection(such as hyperterminal) or dialin connection. You can also configure the router as a web server and then access a web-based configuration panel via http. 

There are a variety of sources for booting include Flash memory, TFTP and ROM. It is always recommended that new image of IOS be loaded on a TFTP server first, and then copy the image from the TFTP server to the flash memory as a backup mechanism. The copy command such as "copy tftp flash" allows us to copy the IOS image from TFTP server to the Flash memory. And of course, we can always do the reverse. Now, we need to inform the router to boot from the correct source. The following commands are examples of what we should type in depending on the situation. Typically, it is a good idea to specify multiple boot options as a fall back mechanism. 


·  boot system flash {filename}
·  boot system tftp {filename} {tftp server IP address}
·  boot system rom

After the boot up process we can prepare to login. The User EXEC is the first mode we encounter. It gives us a prompt of "Router>". To exit this mode means to log out completely, this can be done with the logout command. If we want to proceed to the Privileged EXEC, we need to use the enable EXEC command. Once entered, the prompt will be changed to ‘Router#". To go back to user EXEC mode, we need to use the disable command. Note that all the configuration works requires the administrator to be in the Privileged mode first. Put it this way, Privileged EXEC mode includes support for all commands in user mode plus those that provide access to global and system settings. 

The setup command facility is for making major changes to the existing configurations, such as adding a protocol suite, modifying a major addressing scheme changes, or configuring a newly installed interface. 

If you aren't big on reading manuals, finding out the way to access help information is a MUST. To display a list of commands available for each command mode, we can type in a ? mark. IOS also provides context-sensitive help feature to make life easier. In order to pass this exam, you will need to be able to find your away around the IOS. We will list some the information here, but there is too much to list all of it. You will definitely need access to a router or get the software listed at the beginning of this study guide so that you can practice. 

Useful editing commands include: 

Command
Purpose
Crtl-P
Recall commands in the history buffer starting with the most recent command.
Crtl-N
Return to more recent commands in the history buffer after recalling commands with Crtl-P or the up arrow key.
Crtl-B
Move the cursor back one character
Crtl-F
Move the cursor forward one character
Crtl-A
Move the cursor to the beginning of the command line
Crtl-E
Move the cursor to the end of the command line
Esc B
Move the cursor back one word
Esc F
Move the cursor forward one word
Crtl-R or Crtl-L
Redisplay the current command line


Access Lists allow us to implement some level of security on the network by inspecting and filtering traffic as it enters or exits an interface. Each router can have many access lists of the same or different types. However, only one can be applied in each direction of an interface at a time (keep in mind that inbound and outbound traffic is determined from the router's perspective). The two major types of access lists that deserve special attention are the IP Access Lists and the IPX Access Lists. 

Standard IP access lists can be configured to permit or deny passage through a router based on the source host's IP address. Extended IP access list uses destination address, IP protocol and port number to extend the filtering capabilities. Access can be configured to be judged based on a specific destination address or range of addresses, on an IP protocol such as TCP or UDP, or on port information such as http, ftp, telnet or snmp. We use access list number to differentiate the type of access list. In standard IP access lists we have numbers from 1 through 99, and in extended IP access lists we have numbers from 100 through 199: 

1-99
Standard IP
100-199
Extended IP
200-299
Protocol type-code
300-399
DECnet
600-699
Appletalk
700-799
Standard 48-bit MAC Address
800-899
Standard IPX
900-999
Extended IPX
1000-1099
IPX SAP
1100-1199
Extended 48-bit MAC Address
1200-1299
IPX Summary Address


When dealing with Access Control Lists or preparing for your CCNA exam, you have to deal with a 32-bit wild card address in dotted-decimal form, known as your inverse mask. By Cisco’s definition it is called inverse, but you can think of it as the “reverse” of your subnet mask in most cases. When dealing with your wild card mask, you have two values that you are working with. Like subnetting you have a 0 as "off" and a 1 as the "on" value. Wild cards deal with the 0 value as “match” and the 1 value as "ignore". What do I mean by ignore or match? If you have studied ACLs you should know that your goal is to set criteria to deny or permit and that is where your Inverse mask comes into play. It tells the router which values to seek out when trying to deny or permit in your definition. If you have dealt with subnetting you know that most of your address ended with an even number. With your inverse mask you will end up with an odd number. There are several different ways to come up with your inverse mask; the easiest is to subtract your subnet mask from the all routers broadcast address of 255.255.255.255. 

Example: You have a subnet mask of 255.255.255.0. To get your wild card mask all you have to do is: 

 255.255.255.255.
-255.255.255.0
 0.0.0.255 

Then you can apply it to the definition, whether using a standard or extended ACL. 

Standard example:
Router(config)# access-list 3 deny 170.10.1.0 0.0.0.255

How you would read this list. With this wild card you told the router to “match” the first three octets and you don’t care what’s going on in the last octet. 

Extended example:
Router(config)# access-list 103 permit 178.10.2.0 0.0.0.255 170.10.1.0 0.0.0.255 eq 80 

How you would read this list? With this wild card you have told the router to match the first three octets and you don’t care what’s going on in the last octet. 

Think of it this way. If you had broken the decimal form down to binary, the wild card mask would look like this. 00000000.00000000.00000000.11111111 

As you know the “1” means ignore and “0” means match. So in that last octet it could have been any value on that subnet line ranging from 0-255. 

There are 2 main types of routing, which are static and dynamic, the third type of routing is called Hybrid. Static routing involves the cumbersome process of manually configuring and maintaining route tables by an administrator. Dynamic routing enables routers to "talk" to each other and automatically update their routing tables. This process occurs through the use of broadcasts. Next is an explanation of the various routing protocols. 

RIP:

OSPF:

We can tune the network by adjusting various timers. Areas that are tunable include: the rate at which routing updates are sent, the interval of time after which a route is declared invalid, the interval during which routing information regarding better paths is suppressed, the amount of time that must pass before a route is removed from the routing table, and the amount of time for which routing updates will be postponed. Of course, different setting is needed in different situation. In any case, we can use the "show ip route" command to display the contents of routing table as well as how the route was discovered. 

IGRP and EIGRP:

(Note: RIPv2, OSPF and EIGRP include the subnet mask in routing updates which allows for VLSM (Variable Length Subnet Mask), hence VLSM is not supported by RIP-1 or IGRP.) 

Other Routing Info:

Route poisoning intentionally configure a router not to receive update messages from a neighboring router, and sets the metric of an unreachable network to 16. This way, other routers can no longer update the originating router's routing tables with faulty information. 

Hold-downs prevent routing loops by disallowing other routers to update their routing tables too quickly after a route goes down. Instead, route can be updated only when the hold-down timer expires, if another router advertises a better metric, or if the router that originally advertised the unreachable network advertises that the network has become reachable again. Note that hold down timers need to work together with route poisoning in order to be effective. 

Split horizon simply prevents a packet from going out the same router interface that it entered. Poison Reverse overrides split horizon by informing the sending router that the destination is inaccessible, while Triggered Updates send out updates whenever a change in the routing table occurs without waiting for the preset time to expire.