SlideShare a Scribd company logo
Computer Network
Routingand Switching
Routing
• A Router is a process of selecting path along which the data
can be transferred from source to the destination. Routing is
performed by a special device known as a router.
• A Router works at the network layer in the OSI model and
internet layer in TCP/IP model
• The routing algorithms are used for routing the packets. The
routing algorithm is nothing but a software responsible for
deciding the optimal path through which packet can be
transmitted.
Types Of Routing
• Routing can be classified into three categories:-
Static Routing is also known as Nonadaptive Routing.
It is a technique in which the administrator manually adds the
routes in a routing table.
A Router can send the packets for the destination along the
route defined by the administrator.
In this technique, routing decisions are not made based on the
condition or topology of the networks
1. Static Routing
2. Dynamic Routing
• It is also known as Adaptive Routing.
• It is a technique in which a router adds a new route in the
routing table for each packet in response to the changes in the
condition or topology of the network.
• Dynamic protocols are used to discover the new routes to
reach the destination.
• In Dynamic Routing, RIP and OSPF are the protocols used to
discover the new routes.
• If any route goes down, then the automatic adjustment will be
made to reach the destination.
3. Default Routing
• Default Routing is a technique in which a router is configured
to send all the packets to the same hop device, and it doesn't
matter whether it belongs to a particular network or not. A
Packet is transmitted to the device for which it is configured
in default routing.
• Default Routing is used when networks deal with the single
exit point.
• It is also useful when the bulk of transmission networks have
to transmit the data to the same hp device.
Switching
• Switch: A switch is a small hardware device which is used to join
multiple computers together with one local area network (LAN).
• Switching: Switching in a computer network is achieved by using
switches.
• When a user accesses the internet or another computer network
outside their immediate location, messages are sent through the
network of transmission media. This technique of transferring the
information from one computer network to another network is
known as switching.
• Network switches operate at layer 2 (Data link layer) in the OSI
model.
The layer 2 switches are used for transmitting the data on the data
link layer, and it also performs error checking on transmitted and
received frames.
Different modes are used for forwarding the packets known
as Switching modes.
There are three types of switching modes:
1) Store-and-forward
2) Cut-through
3) Fragment-free
Switching Modes
SwitchingTechniques
1. CIRCUIT-SWITCHEDNETWORKS
• Circuit switching is a switching technique that establishes a
dedicated path between sender and receiver.
• In the Circuit Switching Technique, once the connection is
established then the dedicated path will remain to exist until
the connection is terminated.
• Circuit switching in a network operates in a similar way as the
telephone works.
• Each link is divided into channels using FDM or TDM.
Three phases are need to communicate two
parties or multiple parties in aconferencecall):
• Connection setup
• data transfer
• Circuit Disconnected
2.PACKETSWITCHED NETWORK
• The packet switching is a switching technique in which the
message is sent in one go, but it is divided into smaller pieces,
and they are sent individually.
• Packets are given a unique number to identify their order at the
receiving end.
• Every packet contains some information in its headers such as
source address, destination address and sequence number.
• Packets will travel across the network, taking the shortest path
as possible.
• If the correct order of the packets is reached, then the
acknowledgment message will be sent.
2.1DATAGRAM NETWORKS
• Each packet (called as datagrams in this approach) is treated
independently of allothers.
• All packets (or datagrams) belong to the samemessagemay travel.
different pathsto reachtheir destination.
2.2VIRTUAL-CIRCUIT NETWORKS
• It’s a cross between circuit switched network and datagram
network, and hassome characteristics of both.
 Characteristics:
 Packets from asingle messagetravel along the same path.
 Three phasesto transfer data (set up, data transfer andtear
down)
 Resourcescanbe allocated during setup phase
 Data are packetized and each packet carries an address in the
header
 Implemented in data linklayer
3. Message Switching
• Message Switching is a switching technique in which a
message is transferred as a complete unit and routed through
intermediate nodes at which it is stored and forwarded.
• In Message Switching technique, there is no establishment
of a dedicated path between the sender and receiver.
• Each and every node stores the entire message and then
forward it to the next node. This type of network is known
as store and forward network.
Advantages and Disadvantages of Switching:-
•Advantages:-
• Switch increases the bandwidth of the network.
• It reduces the workload on individual PCs as it sends the
information to only that device which has been addressed.
• It increases the overall performance of the network by reducing
the traffic on the network.
• There will be less frame collision as switch creates the collision
domain for each connection.
Disadvantages:-
• A Switch is more expensive than network bridges.
• A Switch cannot determine the network connectivity issues
easily.
• Proper designing and configuration of the switch are required
to handle multicast packets.
ThankYou…

More Related Content

What's hot

Dynamic routing under_sec
Dynamic routing under_secDynamic routing under_sec
Dynamic routing under_sec
subhash85
 
10.data transmission
10.data transmission10.data transmission
10.data transmission
Deepak Sharma
 
Packet Switching and X.25 Protocol
Packet Switching and X.25 ProtocolPacket Switching and X.25 Protocol
Packet Switching and X.25 Protocol
Miles Kevin Galario
 
Network access methods
Network access methodsNetwork access methods
Network access methods
Jaleel James
 

What's hot (20)

Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Network Switching | Computer Science
Network Switching | Computer ScienceNetwork Switching | Computer Science
Network Switching | Computer Science
 
Dynamic routing under_sec
Dynamic routing under_secDynamic routing under_sec
Dynamic routing under_sec
 
Network switch and switching Jenil patel semcom college
Network switch and switching Jenil patel semcom collegeNetwork switch and switching Jenil patel semcom college
Network switch and switching Jenil patel semcom college
 
Network topologies
 Network topologies Network topologies
Network topologies
 
Switch
SwitchSwitch
Switch
 
Network switch
Network switchNetwork switch
Network switch
 
Hdlc
HdlcHdlc
Hdlc
 
Networking and internetworking devices
Networking and internetworking devicesNetworking and internetworking devices
Networking and internetworking devices
 
Week2.1
Week2.1Week2.1
Week2.1
 
switching techniques in data communication and networking
switching techniques in data communication and networkingswitching techniques in data communication and networking
switching techniques in data communication and networking
 
COMPLETE COMPUTER NETWORK
COMPLETE COMPUTER NETWORK COMPLETE COMPUTER NETWORK
COMPLETE COMPUTER NETWORK
 
Switching - data communication
Switching - data communicationSwitching - data communication
Switching - data communication
 
10.data transmission
10.data transmission10.data transmission
10.data transmission
 
Packet Switching and X.25 Protocol
Packet Switching and X.25 ProtocolPacket Switching and X.25 Protocol
Packet Switching and X.25 Protocol
 
Structure of switches
Structure of switchesStructure of switches
Structure of switches
 
Network access methods
Network access methodsNetwork access methods
Network access methods
 
Computer network switching
Computer network switchingComputer network switching
Computer network switching
 
Open Systems Interconnection (OSI)
Open Systems Interconnection (OSI)Open Systems Interconnection (OSI)
Open Systems Interconnection (OSI)
 
Basics of networking and routing
Basics of networking and routingBasics of networking and routing
Basics of networking and routing
 

Similar to Routing and switching

12 ipt 0303 transmitting and receiving
12 ipt 0303   transmitting and receiving12 ipt 0303   transmitting and receiving
12 ipt 0303 transmitting and receiving
ctedds
 
Switching Techniques - Unit 3 notes aktu.pptx
Switching Techniques - Unit 3 notes aktu.pptxSwitching Techniques - Unit 3 notes aktu.pptx
Switching Techniques - Unit 3 notes aktu.pptx
xesome9832
 

Similar to Routing and switching (20)

Topology,Switching and Routing
Topology,Switching and RoutingTopology,Switching and Routing
Topology,Switching and Routing
 
Switch networking
Switch networking Switch networking
Switch networking
 
CSC 424 -Lecture 5n8 2022.pptx
CSC 424 -Lecture 5n8 2022.pptxCSC 424 -Lecture 5n8 2022.pptx
CSC 424 -Lecture 5n8 2022.pptx
 
12 ipt 0303 transmitting and receiving
12 ipt 0303   transmitting and receiving12 ipt 0303   transmitting and receiving
12 ipt 0303 transmitting and receiving
 
Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1
 
CN Unit 2 - cs8591.pptx
CN Unit 2 - cs8591.pptxCN Unit 2 - cs8591.pptx
CN Unit 2 - cs8591.pptx
 
Network layer (Unit 3) part1.pdf
Network  layer (Unit 3) part1.pdfNetwork  layer (Unit 3) part1.pdf
Network layer (Unit 3) part1.pdf
 
Chapter 2 Switches in network.ppt
Chapter 2 Switches in network.pptChapter 2 Switches in network.ppt
Chapter 2 Switches in network.ppt
 
Switching types-circuit, packet and message
Switching types-circuit, packet and messageSwitching types-circuit, packet and message
Switching types-circuit, packet and message
 
unit 2_switchingtechniques.ppt
unit 2_switchingtechniques.pptunit 2_switchingtechniques.ppt
unit 2_switchingtechniques.ppt
 
Computer network switching
Computer network switchingComputer network switching
Computer network switching
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
SOFTWARE DEFINED NETWORKING
SOFTWARE DEFINED NETWORKINGSOFTWARE DEFINED NETWORKING
SOFTWARE DEFINED NETWORKING
 
Unit 1 Information Technology for student👩‍🎓.pdf
Unit 1 Information Technology for student👩‍🎓.pdfUnit 1 Information Technology for student👩‍🎓.pdf
Unit 1 Information Technology for student👩‍🎓.pdf
 
Switching
SwitchingSwitching
Switching
 
switchingtechniques.ppt
switchingtechniques.pptswitchingtechniques.ppt
switchingtechniques.ppt
 
SwitchingTechniques.ppt
SwitchingTechniques.pptSwitchingTechniques.ppt
SwitchingTechniques.ppt
 
switching.ppt
switching.pptswitching.ppt
switching.ppt
 
Switching Techniques - Unit 3 notes aktu.pptx
Switching Techniques - Unit 3 notes aktu.pptxSwitching Techniques - Unit 3 notes aktu.pptx
Switching Techniques - Unit 3 notes aktu.pptx
 
Switching techniques
Switching techniquesSwitching techniques
Switching techniques
 

Recently uploaded

Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 

Recently uploaded (20)

Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 

Routing and switching

  • 2. Routing • A Router is a process of selecting path along which the data can be transferred from source to the destination. Routing is performed by a special device known as a router. • A Router works at the network layer in the OSI model and internet layer in TCP/IP model • The routing algorithms are used for routing the packets. The routing algorithm is nothing but a software responsible for deciding the optimal path through which packet can be transmitted.
  • 3. Types Of Routing • Routing can be classified into three categories:-
  • 4. Static Routing is also known as Nonadaptive Routing. It is a technique in which the administrator manually adds the routes in a routing table. A Router can send the packets for the destination along the route defined by the administrator. In this technique, routing decisions are not made based on the condition or topology of the networks 1. Static Routing
  • 5. 2. Dynamic Routing • It is also known as Adaptive Routing. • It is a technique in which a router adds a new route in the routing table for each packet in response to the changes in the condition or topology of the network. • Dynamic protocols are used to discover the new routes to reach the destination. • In Dynamic Routing, RIP and OSPF are the protocols used to discover the new routes. • If any route goes down, then the automatic adjustment will be made to reach the destination.
  • 6. 3. Default Routing • Default Routing is a technique in which a router is configured to send all the packets to the same hop device, and it doesn't matter whether it belongs to a particular network or not. A Packet is transmitted to the device for which it is configured in default routing. • Default Routing is used when networks deal with the single exit point. • It is also useful when the bulk of transmission networks have to transmit the data to the same hp device.
  • 7. Switching • Switch: A switch is a small hardware device which is used to join multiple computers together with one local area network (LAN). • Switching: Switching in a computer network is achieved by using switches. • When a user accesses the internet or another computer network outside their immediate location, messages are sent through the network of transmission media. This technique of transferring the information from one computer network to another network is known as switching. • Network switches operate at layer 2 (Data link layer) in the OSI model.
  • 8. The layer 2 switches are used for transmitting the data on the data link layer, and it also performs error checking on transmitted and received frames. Different modes are used for forwarding the packets known as Switching modes. There are three types of switching modes: 1) Store-and-forward 2) Cut-through 3) Fragment-free Switching Modes
  • 10. 1. CIRCUIT-SWITCHEDNETWORKS • Circuit switching is a switching technique that establishes a dedicated path between sender and receiver. • In the Circuit Switching Technique, once the connection is established then the dedicated path will remain to exist until the connection is terminated. • Circuit switching in a network operates in a similar way as the telephone works. • Each link is divided into channels using FDM or TDM.
  • 11. Three phases are need to communicate two parties or multiple parties in aconferencecall): • Connection setup • data transfer • Circuit Disconnected
  • 12. 2.PACKETSWITCHED NETWORK • The packet switching is a switching technique in which the message is sent in one go, but it is divided into smaller pieces, and they are sent individually. • Packets are given a unique number to identify their order at the receiving end. • Every packet contains some information in its headers such as source address, destination address and sequence number. • Packets will travel across the network, taking the shortest path as possible. • If the correct order of the packets is reached, then the acknowledgment message will be sent.
  • 13. 2.1DATAGRAM NETWORKS • Each packet (called as datagrams in this approach) is treated independently of allothers. • All packets (or datagrams) belong to the samemessagemay travel. different pathsto reachtheir destination.
  • 14. 2.2VIRTUAL-CIRCUIT NETWORKS • It’s a cross between circuit switched network and datagram network, and hassome characteristics of both.  Characteristics:  Packets from asingle messagetravel along the same path.  Three phasesto transfer data (set up, data transfer andtear down)  Resourcescanbe allocated during setup phase  Data are packetized and each packet carries an address in the header  Implemented in data linklayer
  • 15. 3. Message Switching • Message Switching is a switching technique in which a message is transferred as a complete unit and routed through intermediate nodes at which it is stored and forwarded. • In Message Switching technique, there is no establishment of a dedicated path between the sender and receiver. • Each and every node stores the entire message and then forward it to the next node. This type of network is known as store and forward network.
  • 16. Advantages and Disadvantages of Switching:- •Advantages:- • Switch increases the bandwidth of the network. • It reduces the workload on individual PCs as it sends the information to only that device which has been addressed. • It increases the overall performance of the network by reducing the traffic on the network. • There will be less frame collision as switch creates the collision domain for each connection.
  • 17. Disadvantages:- • A Switch is more expensive than network bridges. • A Switch cannot determine the network connectivity issues easily. • Proper designing and configuration of the switch are required to handle multicast packets.