What exactly does a switch do with the frames it recieves?

I've become ultra confused all of a sudden.
Switch is a layer 2 device. So this means it deals with frames (builds and examines them). So when it receives a frame, it looks inside to see where the destination mac address is. But since the mac address is on some further away network, and not directly connected to the switch, how in the world can it decide which way to send it? The switch doesn't have a routing table so theres no way of determining. So it either sends it down a trunk link or out all the vlans associated with the source port. Now if its sending the frame out all the vlan ports then this certainly does not break up broadcast or collision domains. Switches have no idea of the topology of a network and therefor must be sending frames out every possible hole they can to get rid of it.
But this would end up being huge problems. If I have a router on a stick topology, with trunk link. And a frame gets sent out all possible ports and a trunk link, the packet is going to get to the source, then after being routed through the router and come back it will be sent to the source again. Also isn't it making a storm if the router routes the packet back to the switch and the switch then sends the same packet down the trunk link, since everything gets sent to the trunk by default?
Or not even with a trunk link. Just linked up to any router. If the mac address isn't directly connected to the switch it must send the packet out every port it can because it doesn't have any idea what else to do with. And if it sends it to the router, and the router says, no it has to go back towards you, wouldn't the packet just go in circles for years with the router saying, "its in your direction", and the switching saying "i don't know where this is supposed to go, so i'll send it anywhere i can"
thanks for any help at all. really frustrated.

Hi There
In your topology example "Host A -> Switch1 -> Switch2 -> Switch3 -> Host B", for Host A to have any chance of communicating with Host B, they would have to be in the same VLAN/Subnet, as you have no layer 3 device to route between different VLAN's/Subnets.
Therefore when Host A wants to send a frame to Host B it would check its own MAC address table to see if it has an entry for Host B. If it does, it will send the packet with the frame towards Host B. The source MAC addresses will be that of Host A and the destination MAC addresses will be that of Host B.
If Host A does not have the MAC address of Host B it will send an ARP request out on to the wire to Sw1.
Either way, as this is a single VLAN/Subnet, the way Sw1 and the other switches treat the frame will be exactly the same.
Sw1 will receive the frame and check the source MAC address against its CAM table. If no entry exists, it will add the MAC of Host A plus the port to which Host A is connected to its CAM table. If an entry does exist, it will then examine the destination MAC address to see if it has an entry for it. If it has an entry it will forward (switch) the frame out through the interface through which Host B can be reached (This would be the uplink port to Sw2 in this case). If no entry exists, it will flood the frame out of all ports which are in the same VLAN as Host A, except the port the frame arrived on.
SW2 will receive this frame and it will check its own CAM table. If it no entry exists for Host A's MAC address, an entry will be added. If an entry does exist, switch be will then check the destination MAC address.
If it has an entry for Host B, it will forward (switch) the frame out of the port through which Host B can be reached. If no entry exists, it will flood the frame out of all ports which are assigned to the same VLAN as Host A. Sw3 will receive this frame.
It will check its CAM table to see if it has an Entry for Host A. If not it will add one. If it has it will check the CAM table for an entry for the MAC address of Host B. If it has one, it will forward (switch) the frame out the port through which Host B can be reached. If no entry is found then Sw2 will Flood the Frame out of all ports which are assigned to the same VLAN as Host A.
Once Host B responds to the initial frame,
Host A will have the MAC of Host B
Sw1 will know that to get to Host B it sends frames out through the port through which it connects to SW2. To get to Host A it sends the frames out through the port to which Host A is connected.
Sw2 will know that to get to Host A it sends frames out through the port to which it connects to SW1. To get to Host B, it sends frames out through the port through which it connects to SW3.
SW3 will know that to get to Host A, it sends frames out through the port through which it connects to SW2. To get to Host B it sends frames out through the port to which Host B is connected.
At all times in this scenario, when Host A sends traffic to Host B, the Frame will have the source MAC of Host A and the destination MAC of Host B. Like wise when Host B sends data to Host A, the frames will have the source MAC of Host B and the destination MAC of Host A.
What you want to understand is how a switch builds its MAC address (CAM) table.
It checks the source MAC first, If an entry exists, then it checks the destination MAC. If no entry exists, then the switch creates and entry and then checks the destination MAC address. If an entry exists the frame will be switched to the relevant port. If no entry exists, then the frame is flooded out of all ports (in the same VLAN as the frame of the originating host) except the port the frame arrived on.
Best Regards,
Michael

Similar Messages

  • What **exactly** does Icloud sync do with my mails?

    I use ICLOUD to sync win7 PC mail (outlook)  with iphone and ipad.
    What **exactly** does icloud do with mails in Outlook?
    There is this peculiar [email protected] email address that is required.
    What is its role? Is it some intermediate account to load my mails onto an apple server?
    are my mails loaded onto an apple server in  anyway and then transported to ihone/ipad?

    I use ICLOUD to sync win7 PC mail (outlook)  with iphone and ipad.
    What **exactly** does icloud do with mails in Outlook?
    There is this peculiar [email protected] email address that is required.
    What is its role? Is it some intermediate account to load my mails onto an apple server?
    are my mails loaded onto an apple server in  anyway and then transported to ihone/ipad?

  • What exactly does the AppleCare cover for MacBook Pro with Retina Display?

    I purchased the extended protection plan for my MacBook Pro with Retina Display 15" and my question is what exactly does it cover in what kind of situations (i.e. viruses, damaged ports, damaged charger, etc.)? I want to be able to take full advantage of the protection plan since it was a pretty big whole in my wallet.

    AppleCare covers all the problems you have with your MacBook Pro with Retina display and the peripherals which came with it (your charger) if you have a hardware problem that you didn't cause. For example, after 2 or 3 years and 1000 charges, OS X says that your battery has to be replaced: in this case, you have to pay for the battery, because batteries have got a lifetime, and Unibody Macs batteries have got an average lifetime of about 1000 charges.
    However, if the RAM gets damaged and you haven't done anything to cause it, you will get your computer repaired or replaced for free. AppleCare in a MacBook Pro with Retina display is very important, because near all the parts are soldered into the logic board and repairs are expensive

  • So what exactly does limited to "one app" mean with a Pro account and the new prices?

    So it seems Pro has dropped in price but it is now limited to "one App".
    So what exactly does that "one App" mean?
    Only one tablet version or one phone version for a certain title?
    Or you can have a tablet & phone version including android & iOS for that one title?

    I think that everyone received it just now…
    Changes to Adobe Digital Publishing Suite, Professional Edition
    Effective immediately, all customers who newly purchase or renew Digital Publishing Suite (DPS), Professional Edition, will be able to publish only one app per license of DPS Professional Edition.
    Under this policy change, Professional Edition customers can publish an unlimited number of issues (.folio files) to a single app and distribute those issues based on purchased fulfillment bundles.
    An app created with a single license of DPS Professional Edition can be distributed to any or all of the marketplaces that DPS supports, including the Apple App Store (and Newsstand), Google Play, Amazon Appstore, and the Windows Store.
    In conjunction with this policy change, Adobe is reducing the price of a Professional Edition license to $4,800 USD annually (€3,600/¥480,000) or to $400 per month (€300/¥40,000) and will include 1,000 fulfillments annually. The number of fulfillments included with a monthly subscription remain unchanged.
    This policy does not apply to test or demo apps published using Professional Edition. The one-app-per-license policy applies only to an app published to a supported marketplace(s).
    If you are an agency, upon your renewal or purchase of Professional Edition, you can create only one app per Professional Edition license. If you have multiple clients for whom you are creating apps, either you as the agency or your client must purchase a Professional Edition license for each app published to a supported marketplace(s).
    If you are an existing Professional Edition customer and choose to renew your Professional Edition license at the end of your annual agreement, these changes, including the lower price point and 1,000 fulfillments, apply at that time. These changes do not apply to your existing DPS Professional Edition agreement and take effect only if you renew your license.
    DPS Professional Edition customers can continue to create unlimited Single Edition apps, which is unchanged under the new policy. A Single Edition app is defined as an app that includes one built-in or embedded folio.
    If you expect to publish three or more apps annually, we encourage you to contact your local reseller to discuss pricing for a multi-year Enterprise Edition license.
    Enterprise Edition offers additional functionality and benefits not available through Professional Edition. These include app customization, integration with back-end business systems, in-app marketing tools, targeted content based on user entitlement, and the ability to publish apps privately.

  • What exactly does the global switch command line do ?

    Hello All
    Just foraging in the dark world of APP-V. I have a question which I cannot find answer for through google.
    There are powershell commands to publish an APP-V application globally. What exactly does the global switch do ?
    I understand it makes the application available to everyone on the machine for anyone who logs onto that machine.
    However in the absence of this global switch the application is still available to all users who logon to that particular machine. So what exactly is the reason for using the global switch ?
    Thanks

    Correct, the global switch makes the application accessable for all users logging on to that system.
    This feature is required for some packages, like Office. But it is ofter used for applications used by everyone, like Adobe Reader.
    However in the absence of this global switch the application is still available to all users who logon to that particular machine. So what exactly is the reason for using the global switch ?
    A package can be added to the system but until it is published a user cannot start it. They won't see any shortcuts in their startmenu/desktop/etc.
    So after you added the package to the system, it must be published to a user or globally (every user) to start it.

  • My iPhone 4s was stolen this weekend and I did the Remote Lock.  What exactly does that do?  Also, if i do the Remote Wipe will that erase all of my data and impede anyone from ever using the phone?

    My iPhone 4s was stolen this weekend and I did the Remote Lock.  What exactly does that do?  Also, if i do the Remote Wipe will that erase all of my data and impede anyone from ever using the phone?

    The remote lock locks the iphone with a passcode that you set. By remote wiping the device it will simply restore it and clear it of all its data, but by doing this it will prevent you tracking it and communicating with it (e.g. remote locking it) in the future

  • What exactly does the Radio Beacon Indicate

    I have seen cases where the Radio Beacon is black and when it is gray. When it's black you may or may not be able to go through the wireless router to the modem and then to the internet. When it is gray, you cannot really do anything except be in a local mode. However there are instances when the Radio Beacon is black, rather than gray, and you still cannot access the internet. So, what exactly does the activated Radio Beacon Indicate, i.e., that the wireless network is working and the modem is down, or something else entirely ?

    Assuming you're referring to the Airport icon in the menu bar, 'clear/empty' means Airport is turned off, gray bars means Airport is on but not connected to a network, and black bars means Airport is on and connected to a network. Other possible icon states are solid gray with a little computer inset, meaning you're connected to a computer-to-computer created on the Mac, and gray bars with an exclamation point (10.6 only), meaning connected to a network but not authenticated (e.g. wrong password for an 801.2X corporate/university network).
    To your question, it's perfectly possible to be successfully connected to a network (black icon) and unable to access the internet. Situations like that would include the network requiring a proxy server, for which you haven't set up the details on in Network Preferences, or you're connected to an open network that requires you to enter information or agree to terms (e.g. a hotel network, where you need to put in your room number and agree to the charges before you can connect to the internet).

  • "Check Network Connection​" - What Exactly Does the TV Check?

    Hi everyone
    May I please ask, what exactly does the TV check when I choose "check network connection"?
    In other words, when I click the "check network connection", what IP address / servers and ports does it communicate to? What checks does it do?
    Because my TV cannot establish a network connection via settings, but the browser works perfectly well,
    I would like to carry out the same checks of "check network connection" on my PC.
    Then, if failed also on my PC, I would turn to my ISP with the results, as I believe it is the one to fault.

    Assuming you're referring to the Airport icon in the menu bar, 'clear/empty' means Airport is turned off, gray bars means Airport is on but not connected to a network, and black bars means Airport is on and connected to a network. Other possible icon states are solid gray with a little computer inset, meaning you're connected to a computer-to-computer created on the Mac, and gray bars with an exclamation point (10.6 only), meaning connected to a network but not authenticated (e.g. wrong password for an 801.2X corporate/university network).
    To your question, it's perfectly possible to be successfully connected to a network (black icon) and unable to access the internet. Situations like that would include the network requiring a proxy server, for which you haven't set up the details on in Network Preferences, or you're connected to an open network that requires you to enter information or agree to terms (e.g. a hotel network, where you need to put in your room number and agree to the charges before you can connect to the internet).

  • HT4859 when you go to do this it say that your iPod or whichever device will no longer be backed up to the computer it is currently backed up to, what exactly does that mean? Will i not be able to sync my iPod from that computer?

    when you go to do this it say that your iPod or whichever device will no longer be backed up to the computer it is currently backed up to, what exactly does that mean? Will i not be able to sync my iPod from that computer? Please help me and answer either or both question detailed thanks

    Normally when you sync your device it is automatically backed up to your computer as the first step in the sync process.  When you choose to start backing up your device to iCloud, iTunes stops automatically backing it up on your computer when you sync.  That's what the message is telling your; that you are now backing up to iCloud and not to your computer each time you sync.  You can still manually back up to your computer any time you want by going to the Summary tab and clicking on Back Up Now under Manually Back Up and Restore.
    You can still sync your device as you did before, it just will no longer back up automatically when you do.

  • What "exactly" does the Brightness setting in Print do?

    What "exactly" does the Brightness setting in the Print module do?
    I know it's a controversial button, especially now that there are proofing options available. Also, since you're using it "blind" it's impossible to know how much or what it's really doing.
    Does anyone know if it's e.g.. the same as going to quick develop and going up on "exposure", or "brightness", or "shadows"... How exactly is it brightening the image, and is +100 a full stop or how is it calibrated?
    Thanks,
    Alan.

    Ooops,
    Obviously there is NO brightness control in LR...is the print adjustment similar to an exposure adjustment or more like moving the "shadows" and "whites" adjustments (which if I understand corrrectly, moves tones above or below mid tones, but not highlights or blacks)?

  • What exactly does the Work Offline option do in a shared review hosted on an internal server?

    Hi,
    What exactly does the Work Offline option do in a shared review hosted on an internal server?
    I *think* it simply disconnects you from the review server. I'm not sure why one would want to do this.
    I'm trying to recommend an offline workflow for reviewers who may not be able to access a shared review hosted on our internal server (for example, while traveling). These reviewers would like to be able to comment on an offline version of the review PDF and then publish their comments when they can again connect to the Internet/internal server.
    It doesn't seem like "Work Offline"  is the right fit for this scenario. Instead, should reviewers save a local copy to their hard drive, comment on it, and then, when reconnected to the Internet, open the local copy, click Reconnect to Server, and then click Publish Comments?

    Thanks, Dave. So for my hypothetical traveling reviewer, it would be reasonable to suggest the following steps for an offline workflow?
    1. Connect to the shared review.
    2. Choose Work Offline from the Server Status menu.
    3. Close and save the review PDF locally.
    4. Comment while traveling.
    5. When back in the office, open the local copy of the review PDF.
    6. Click Reconnect to Server.
    7. Click Publish Comments.

  • In Mac's PAINTR application, what exactly does the "Splash" function do?

    n Mac's PAINTR application, what exactly does the "Splash" function do?

    You might also post your question over in the Mac App Store section of the Community, where you might have a better chance of running into someone else using the Paintr App.
    Mac App Store: Apple Support Communities
    Dennis

  • What exactly does the M7 coprocessor do in the iPad air, and what apps can use it?

    I've been trying a few 3rd party apps which use the m7 in the iPhone 5s. None of them work. Also there seem to be no apps both built in motion activity under the privacy menu in settings.
    My question is, what exactly does the M7 coprocessor in the ipad air?

    http://en.wikipedia.org/wiki/Apple_M7
    http://www.imore.com/apple-m7
    http://www.tuaw.com/2013/10/10/seven-apps-that-take-advantage-of-the-m7-motion-c oprocessor-in-t/

  • What exactly does the colaece option do in TOAD software

    Hi,
    What exactly does the colaece option do in TOAD software.
    Regards,
    MuruguPandian P

    Coalesce will take ADJACENT free space and coalesce it into one larger free chunk.
    A free extent in a dictionary-managed tablespace is made up of a collection of contiguous free blocks. When allocating new extents to a tablespace segment, the database uses the free extent closest in size to the required extent. In some cases, when segments are dropped, their extents are deallocated and marked as free, but adjacent free extents are not immediately recombined into larger free extents. The result is fragmentation that makes allocation of larger extents more difficult.
    You should often use the ALTER TABLESPACE ... COALESCE statement to manually coalesce any adjacent free extents. To Coalesce a tablespace give the following command
    SQL> alter tablespace ica coalesce;
    Source: http://www.oracle-dba-online.com/tablespaces_and_datafiles.htm
    Regards
    Asif Kabir

  • HT201210 My iPhone became wet at the beach.  I put it in rice for 4 days.  When I connect to itunes, it says the phone must be restored.  It starts and then gives either the error 2001, or 2006.  What exactly does this mean, and is it worth getting repair

    My iPhone became wet at the beach.  I put it in rice for 4 days.  When I connect to itunes, it says the phone must be restored.  It starts and then gives either the error 2001, or 2006.  What exactly does this mean, and is it worth getting repaired?
    Thank you...

    http://support.apple.com/kb/TS1275
    Water damage isn't covered by warranty, but you could always purchase a refurbished device from Apple. 

Maybe you are looking for

  • Creation of New Division

    Hi to all I am creating new Division, what are the impacts by creating a new division will take place, and all sales reports are Division based, for example sales org 1111, dis cha 40, Divin XX, the actual business process manufacturing of packaging

  • Issue with Siebel Inbound Web Service

    Hi pals, I have to make an Inbound Web Service that accept one Service Request, Insert the record in siebel's database and return the SR Number. I did an Integration Objects with the fields that I need, but I'm stuck with the workflow's steps, I did

  • BAdI Implementation for Customer/Vendor Basic Data

    My requirement is, In vendor and Customer Invoices I need to include a Employee Data [z table] which is a item data and this employee data will be in a table control in the BAdI - BADI_FDCB_SUBBAS01. For doing this, I need a program specifications an

  • 2 more questions for IWEB

    Hi Everyone, I have published my site and it's working fine. It was so easy! Now...as you know the address begins with http://web.mac.com. Is there any way to change that so it starts with my name instead? I know I can do that if I get hosting soemwh

  • Easier way to set post-constructor JTable column names?

    I have a class that extends JTable. It also has a pair of inner classes that extend DefaultTableCellRenderer and AbstractTableModel so I can dynamicaly adjust the number of rows and their contents. That's not the problem - that part works fine. The p