Networking and internetworking devices. Repeater.

23
Networking and internetworking devices

Transcript of Networking and internetworking devices. Repeater.

Page 1: Networking and internetworking devices. Repeater.

Networking and internetworking devices

Page 2: Networking and internetworking devices. Repeater.
Page 3: Networking and internetworking devices. Repeater.

Repeater

Page 4: Networking and internetworking devices. Repeater.

Hub

Page 5: Networking and internetworking devices. Repeater.

Function of a bridge

Regenerate and filter traffic

Check destination address

Forwards the new copy to the segment towhich the address belongs

Page 6: Networking and internetworking devices. Repeater.

Multiport bridge

Page 7: Networking and internetworking devices. Repeater.

Connecting LAN segments in two buildings

Page 8: Networking and internetworking devices. Repeater.

Router

Page 9: Networking and internetworking devices. Repeater.

Gateway

Page 10: Networking and internetworking devices. Repeater.

Gateway is a protocol converter

IBM

Novell

Page 11: Networking and internetworking devices. Repeater.

Switch

Page 12: Networking and internetworking devices. Repeater.

Backbone

Page 13: Networking and internetworking devices. Repeater.

Routing algorithms

• Calculate the shortest path between two routers– Distance vector routing– Link state routing

Page 14: Networking and internetworking devices. Repeater.

In distance vector routing, each router periodically shares its knowledge about the

entire network with its neighbors

Network ID Cost Next Hop(ID of the next router)

The cost is base on hop count1= No hop

Routing table

14 155 1 + 1 hop

14 2 B55 2 B

14 1 14 2 B23 1 55 2 B78 114 1 23 1 55 2 B78 1

A’s new table

Page 15: Networking and internetworking devices. Repeater.

Final routing table

Page 16: Networking and internetworking devices. Repeater.

In link state routing, each router shares its knowledge of its neighborhood with all

routers in the internetwork• Flooding router sends its info.

to all of its neighbors, each neighbor sends the packet to all of its neighbors, and so on.

• Link state packet (LSP)Advertiser IDDestination network IDCostNeighbor ID

Initialization• Each router sends a short

greeting packet to its neighbor• Prepare an LSP, Floods the

network• Every router receivers every

LSP , Puts the info. Into a Link state

database

Flooding of A’s LSP

Page 17: Networking and internetworking devices. Repeater.

Every router has the same Link state database

Page 18: Networking and internetworking devices. Repeater.

Dijkstra’s Algorithm

• finds shortest paths from given source node s to all other nodes

• by developing paths in order of increasing path length

• algorithm runs in stages. each time adding node with next shortest path

• algorithm terminates when all nodes processed by algorithm

Page 19: Networking and internetworking devices. Repeater.

Link state routing table for router A โดยใช้� Dijkstra Algorithm

Page 20: Networking and internetworking devices. Repeater.
Page 21: Networking and internetworking devices. Repeater.

Link state routing table for router A

Page 22: Networking and internetworking devices. Repeater.

Bellman-Ford Algorithm

• find shortest paths from given node subject to constraint that paths contain at most one link

• find the shortest paths with a constraint of paths of at most two links

• and so on 

Page 23: Networking and internetworking devices. Repeater.

Example of Bellman-Ford Algorithm