Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent...
-
Upload
helena-murphy -
Category
Documents
-
view
216 -
download
1
Transcript of Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent...
![Page 1: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/1.jpg)
NETWORK FUNDAMENTALS
Layer 2 and Switching
![Page 2: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/2.jpg)
How Computers Communicate
In a two node flat network data can be sent without addressing.
Data only has one path to travel
![Page 3: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/3.jpg)
How Computers Communicate
What if there are more than two nodes on a network?
Like with mail you need to address the data.
In a flat network using a hub this is simple.
![Page 4: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/4.jpg)
How Computers Communicate
Every computer receives all data that is sent and the computer must look at the address to decide what to do with it
To address the data MAC (Media Access Control) addresses are used.
A MAC address identifies the hardware (network card) of a computer on a local network
![Page 5: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/5.jpg)
How Computers Communicate
A MAC address is a group of six two digit hexadecimal numbers
05:AF:2C:19:CF:2B In most cases the first few sets of
numbers represent the make (Dlink, 3Com) and the last numbers represent the specific device
![Page 6: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/6.jpg)
How Hubs Work
All computers in the network are connected to the hub
Computer A
Computer B
Computer C
![Page 7: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/7.jpg)
How Hubs Work
Computer A sends the message “Hello” to Computer C
Computer A
Computer B
Computer C
Hello to C
![Page 8: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/8.jpg)
How Hubs Work
The hub sends the message to all computers connected to it
Computer A
Computer B
Computer C
Hello to C
Hello to C
![Page 9: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/9.jpg)
How Hubs Work
Computer B ignores the message and C replies
Computer A
Computer B
Computer C
Goodbye to A
![Page 10: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/10.jpg)
How Hubs Work
The hub sends the message to all computers connected to it
Computer A
Computer B
Computer C
Goodbye to A
Goodbye to A
![Page 11: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/11.jpg)
How Hubs Work
A receives the message and B ignores the message
Computer A
Computer B
Computer C
![Page 12: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/12.jpg)
Advantages and Disadvantages of Hubs Pros
Simple to buildNo logic needed
ConsCannot handle large amounts of trafficSecurityMore work for the client
![Page 13: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/13.jpg)
Solution to Hubs
Switches solve the problems that hubs have.
Instead of sending the same data out on all ports the switch only sends the data to the port the computer is connected to.
![Page 14: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/14.jpg)
How Switches Work
Switches keep track of which MAC is connected to which port.
Computer A/Port 1
Computer B/Port 2
Computer C/Port 3
![Page 15: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/15.jpg)
How Switches Work
Computer A sends “Hello” to computer B
Computer A/Port 1
Computer B/Port 2
Computer C/Port 3
Hello to B
![Page 16: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/16.jpg)
How Switches Work
The switch looks in the address table and finds B on port 2 and sends the data to the port.
Computer A/Port 1
Computer B/Port 2
Computer C/Port 3
Hello to B
![Page 17: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/17.jpg)
How Switches Work
B receives the data and replies to A.
Computer A/Port 1
Computer B/Port 2
Computer C/Port 3
Goodbye to A
![Page 18: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/18.jpg)
How Switches Work
The switch looks in the switching table and sends the data to A.
Computer A/Port 1
Computer B/Port 2
Computer C/Port 3
Goodbye to A
![Page 19: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/19.jpg)
Advantages and Disadvantages of Switches
ProsMore secureMore efficient Clients only receive data addressed to them
ConsThe switch need logicMore expensive to build
![Page 20: Layer 2 and Switching. How Computers Communicate In a two node flat network data can be sent without addressing.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649f0e5503460f94c233d4/html5/thumbnails/20.jpg)
Practice work
List some of the security concerns with using hubs.
List how these do not affect switches. Bonus: How could sniff packets on a
switched network?
There’s not a lot of work that can be assigned at this point.