Upload
lalvith04
View
17
Download
1
Embed Size (px)
DESCRIPTION
routers
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 1/33
1
www.eit.edu.au
Routers and SwitchesRouters and Switches
byby
Steve MackaySteve Mackay
fromfrom
Engineering Institute ofEngineering Institute ofTechnologyTechnology
www.eit.edu.au
Topics
Attend this complimentary session andgain an understanding on how routers andswitches operate based on the TCP/IP
suite of protocols.
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 2/33
2
www.eit.edu.au
EIT Micro-Course Series• Every two weeks we present a 35
to 45 minute interactive course
• Practical, useful with Q & Athroughout
• PID loop Tuning / Arc FlashProtection, Functional Safety,Troubleshooting conveyorspresented so far
• Upcoming: – Electrical Troubleshooting and
much much more…..
• Go to http://www.eit.edu.au/free-courses
• You get the recording and slides
www.eit.edu.au
Topics
• Detail how TCP/IPprotocol works
• How a router andswitch operate
• Examine RoutingBasics
• SimpleTroubleshooting Tips
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 3/33
3
www.eit.edu.au
Why Bother ?Useful to understandhow routers work sothat you can moreeffectively design andtroubleshoot yourTCP/IP networks.
www.eit.edu.au
1.0 How TCP/IP Works
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 4/33
4
www.eit.edu.au
The OSI ModelOSI LAYER PROTOCOL IMPLEMENTATION ARPA LAYER
APP LI CATI ON Fi le Tr an sf ere E le ct ron ic Ma ilTerminal
EmulationFile Transfer Client/Server
Network
Management
PRESENTATIONFile Transfer
Protocol (FTP)
Simple Mail
Transfer
Protocol (SMTP)
TELNET
Protocol
Trivial File
Transfere
Protocol (TFTP)
Sun
Microsystems.
Network file
Systems
Protocol NFS
Simple Network
Management
Protocol
(SNMP)
PROCESS ANDAPPLICATION
SESSION MIL-STD 1780
RFC 959
MIL-STD 1781
RFC 821
MIL-STD 1782
RFC854 RFC 783
RFC's 1014,
1057 & 1094 RFC 1157
TRANSPORTTransmission Control Protocol (TCP)
MIL-STD 1778 RFC 793
User Datagram Protocol (UDP) RFC
768
HOST
TO
HOST
NETWORKAddress Resolution ARP
RFC 826 & RARP RFC 903
Internet Protocol (IP)
MIL STD 1777 & RFC 791
Internet Control Message
Protocol (ICMP) RFC 792INTERNET
DATA LINKNetwork Interface Cards: Ethernet, Token-Ring, ARCNET, MAN and WAN. RFC 894, 1042, 1201 and
othersNETWORK
P HY SI CAL T ra ns mi ss ion Med ia : Twis te d p ai r ca bl e, Co ax ia l Cabl e, Fi be r Opti cs , Wir le ss Medi a etc . e tc . I NT ERFACE
www.eit.edu.au
IP Protocol
• Primarily for routing
• Version 4 uses 32-bit address
• Version 6 uses 128-bit address
• IP is hierarchical vs MAC which is flat andunique for each node
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 5/33
5
www.eit.edu.au
IP address Notation – The IP address consists of 32 bits, e.g.
11000000011001000110010000000001.
– Four octets, which for ease of reference couldbe called a,b,c,d or w,x,y,z. We then converteach octet to decimal and write it thus:
• w x y z
• 11000000.01100100.01100100.00000001
• or• 192.100.100.1
www.eit.edu.au
NetId and HostId
• Two portions to IP address
• Network ID (NetID)
• Host ID (HostID)
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 6/33
6
www.eit.edu.au
Transmission Control Protocol• Connection oriented
• Reliable
• Establishes a session before data istransmitted
• Significant overhead in processing andheader
www.eit.edu.au
TCP functions
• Fragmentation
• Data stream reconstruction
• Receipt acknowledgement
• Socket services for multiple connections
• Packet verification and error control
• Flow Control
• Packet sequencing and reordering
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 7/33
7
www.eit.edu.au
Ports and Sockets• TCP needs to know which process on a
particular machine the packet is destinedfor.
• Done by port assignments
• Specific port numbers are assigned by theIANA
• Well know ports
• IP address + Port number = socket• Thus three addresses are used:
(MAC/IP/Port#)
www.eit.edu.au
!"#
$% &' $# () )'
$& '
$*+ $,' $() +)#-
.+ $ ' / 0 1, $#
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 8/33
8
www.eit.edu.au
TCP Header Format
$ 2 / . 3 3 / $ $
3 / $ & . + & .2 + . 3 3 / $ $
4 / 2 & 5 & 5 / + & %
2 0 ) %
www.eit.edu.au
User Datagram Protocol
! "#$% "& !'
())
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 9/33
9
www.eit.edu.au
APPLICATION LAYERPROTOCOLS
www.eit.edu.au
2.0 How a
Router and Switch
Operate
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 10/33
10
www.eit.edu.au
Fundamentals• Routers are used to interconnect multiple
networks.
• Connected over wide geographical areaswith WAN’s
www.eit.edu.au
• Act of movinginformation acrossan Internet workfrom a source to adestinationRouting
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 11/33
11
www.eit.edu.au
Routing metrics
• Path length
• Reliability
• Delay
• Bandwidth
• Load
• Communicationcost
www.eit.edu.au
Components of Router
• CPU and RAM
• BIOS
• Operating System (eg Cisco’s
Internetwork Operating system)• Motherboard
• I/O Ports
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 12/33
12
www.eit.edu.au
Two methods of Operation• Static routing
• Dynamic Routing
– Distance Vector
– Link-state
– Hybrids
www.eit.edu.au
Static Routing
• Fixed static routes configured by networkadministrator.
• Optimum routes are programmed in.
• Good for security as ingress into yurnetwork can be controlled.
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 13/33
13
www.eit.edu.au
Three methods of dynamic routing• Distance vector
• Link-state
• Hybrids
www.eit.edu.au
Distance-vector routing
• Periodically pass copies of their tables toimmediate network neighbours.
• Each recipient adds a distance vector to
its table.
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 14/33
14
www.eit.edu.au
Advantages of distance-vector• Simple to configure/maintain and use.
• RIP uses only distance to work out bestroute.
www.eit.edu.au
Drawbacks to Distance-vector
• Some time to converge on newunderstanding of network.
• Bandwidth and traffic levels can affect
performance of network.
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 15/33
15
www.eit.edu.au
Link-state routing• Shortest path first protocols
• Exchange of link-state advertisements(LSA) to other routers.
• LSA’s are triggered by an event ratherthan running periodically.
www.eit.edu.au
Disadvantages of Link State
• Flood the network during initial discoveryprocess
• Memory and processor intensive
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 16/33
16
www.eit.edu.au
Advantages• Gracefully weather effects of topology
changes
• Lower overheads as no time-drivenupdates
• Better scalability for networks
www.eit.edu.au
Hybridized Routing
• Use distance vector metrics
• More accurate than conventional distance-vector protocols
• Converge more rapidly than distance-vector but avoid overheads of link-stateupdates.
• Best example is EIGRP.
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 17/33
17
www.eit.edu.au
Convergence• Whenever a change occurs in a network’s
topology, all routers must develop a newunderstanding of new topology.
• Routers take time to converge to the newconsensus of what the topology is.
www.eit.edu.au
3.0 Routing Protocols
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 18/33
18
www.eit.edu.au
Routing Protocols• RIP and
• RIP 2
• IGRP
• OSPF
www.eit.edu.au
Routing Information Protocol
• One of the oldest routing protocols.
• RIP uses a special packet to collect andshare information about distances.
• RIP is a routing protocol; not a routed protocol (e.g. TCP/IP).
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 19/33
19
www.eit.edu.au
Operation of RIP• Routers periodically pass copies of their
routing tables to immediate neighbours.
• Each recipient adds a distance vector tothe table and forwards the table to itsimmediate neighbours.
• RIP uses as a metric the hop count.
• RIP only records one route per destination(even if there are more).
www.eit.edu.au
Limitations of RIP (RoutingInformation Protocol)
• Hop count restriction
• Least hop path
• High routing overhead
• Routing flexibility is not allowed
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 20/33
20
www.eit.edu.au
RIP Packet format
www.eit.edu.au
RIP packet fields
• Command
• Version number
• Zero
• Address-Family Identifier (AFI)
• Address
• Metric
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 21/33
21
www.eit.edu.au
Routing table
www.eit.edu.au
Routing table
Routing table provides:
• Ultimate destination
• Next hop on the way to that destination
• A metric
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 22/33
22
www.eit.edu.au
Routing database
• IP Address
• Gateway
• Distance
• Route change flag
• Timers
www.eit.edu.au
RIP algorithm
• Update
• Propagation
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 23/33
23
www.eit.edu.au
www.eit.edu.au
RIP-2
• Authentication
• Subnet Masks
• Next Hop IP Addresses
• Multicasting RIP-2 messages
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 24/33
24
www.eit.edu.au
IP RIP 2 packet
www.eit.edu.au
IP RIP 2 packet format fields
• Command
• Version
• Address-Family Identifier (AFI)
• Route tag• IP address
• Subnet mask
• Next hop
• Metric
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 25/33
25
www.eit.edu.au
Limitations of RIP-2• 15-hop maximum
• Counting to infinity (e.g. routing loop)
• Static distance vector metrics
• Lack of alternative routes (single routes)
www.eit.edu.au
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 26/33
26
www.eit.edu.au
Goals of IGRP• Stable routing
• Fast response to changes
• Low overhead
• Splitting traffic
• Account error rates
• Handle multiple types of service
www.eit.edu.au
Metrics
• Hop count
• Packet size (Maximum Transmission Unit -MTU)
• Link’s bandwidth• Delay
• Loading
• Reliability
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 27/33
27
www.eit.edu.au
Formula - Metric• Metric = K * Bandwidth + (K2 *
Bandwidth)/(256 - Load) + K3 * Delay
• K1,K2 and K3 are weighting factors
www.eit.edu.au
Reliability added in...
• Metric = Metric * [K5/(reliability +K4)
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 28/33
28
www.eit.edu.au
Limitations of IGRP
• Does not include subnet maskinformation
• Does not support the use of VLSM
• Sends updates to the broadcastaddress
www.eit.edu.au
Open Shortest Path First (OSPF)
• Link State Routing Protocol
• Distance vector know nothing abouttopology of network
• OSPF assign a “path cost” to routes• Divide reference bandwidth by circuits
preconfigured bandwidth
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 29/33
29
www.eit.edu.au
Example of calculation• Cisco uses reference bandwith of
100MBps
• 100 MBps circuit has an OSPF cost of100/100 = 1
• A 1.544Mbps circuit has an OSPF cost of100/1.544 = 65
• OSPF routers pick the lowest cost path(i.e. highest speed)
www.eit.edu.au
4. Simple Troubleshooting Tips
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 30/33
30
www.eit.edu.au
Network Troubleshooting
• Knowledge of networking protocols
• Understanding of networks’ topology andlayout
• Troubleshooting tools
• Some luck ? Preferably not.
www.eit.edu.au
Network Troubleshooting(cont.)
• Utilisation on the Ethernet network
• Low utilisation but high errors
• High number of packets but low datatransfer
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 31/33
31
www.eit.edu.au
TCP/IP Utility Programs forTroubleshooting
• netstat
• ping
• traceroute
• arp• ripquery
www.eit.edu.au
Example of the use of a few ofthe TCP/IP utilities together
• ping• netstat-nr
• Tracert (or traceroute)
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 32/33
32
www.eit.edu.au
Unreliable Connections
• ping
• tracert (or traceroute)
• netstat
• ping-f
• netstat
www.eit.edu.au
Network Congestion
• ping• tracert(or traceroute)
IDC Technologies and The Engineering Institute of Technology
Routers and Switches - Free Webinar
7/18/2019 EIT IDC Routers Switches
http://slidepdf.com/reader/full/eit-idc-routers-switches 33/33
www.eit.edu.au
THANK YOU FOR ATTENDING
If you are interested in further training please visit;
IDC TechnologiesTwo-day practical workshops available to the public:
www.idc-online.com/course_schedule/
On-site customised workshops:
www.idc-online.com/training/
Technical Manuals:
www.idc-online.com/products/
Conferences:
www.idc-online.com/cons/
The Engineering Institute of TechnologiesPractical online Certificate, Advanced Diploma and Graduate Certificate programs:
www.eit.edu.au
IDC Technologies and The Engineering Institute of Technology