SlideShare ist ein Scribd-Unternehmen logo
1 von 31
SWITCHING
Chapter 8, Behrouz Forouzan
Introduction
■ A network is a set of connected devices. Whenever we have multiple
devices, we have the problem of how to connect them to make one-to-
one communication possible.
■ One solution is to make a point-to-point connection between each pair
of devices.
■ These methods, however, are impractical and wasteful when applied to
very large networks.
■ The number and length of the links require too much infrastructure to
be cost-efficient, and the majority of those links would be idle most of
the time.
■ A better solution is switching.
■ A switched network consists of a series of interlinked nodes, called
switches.
■ Switches are devices capable of creating temporary connections
between two or more devices linked to the switch.
■ In a switched network, some of these nodes are connected to the end
systems. Others are used only for routing.
Three Methods of Switching
■ Circuit switching, packet switching, and message switching.The first
two are commonly used today.
■ The third has been phased out in general communications but still has
networking applications.
Switching andTCP/IP Layers
■ At the physical layer, we can have only circuit switching. There are no
packets exchanged at the physical layer.The switches at the physical
layer allow signals to travel in one path or another.
■ At the data-link layer, we can have packet switching. However, the term
packet in this case means frames or cells. Packet switching at the data-
link layer is normally done using a virtual-circuit approach.
■ At the network layer, we can have packet switching. In this case, either a
virtual-circuit approach or a datagram approach can be used.
■ At the application layer, we can have only message switching. The
communication at the application layer occurs by exchanging
messages.
CIRCUIT-SWITCHED NETWORKS
■ A circuit-switched network consists of a set of switches connected by
physical links. A connection between two stations is a dedicated path
made of one or more links. However, each connection uses only one
dedicated channel on each link. Each link is normally divided into n
channels by using FDM orTDM.
Setup Phase
■ The actual communication in a circuit-switched network requires three
phases.
■ Before the two parties (or multiple parties in a conference call) can
communicate, a dedicated circuit (combination of channels in links)
needs to be established.
■ The end systems are normally connected through dedicated lines to the
switches, so connection setup means creating dedicated channels
between the switches.
■ When system A needs to connect to system M, it sends a setup request
that includes the address of system M, to switch I. Switch I finds a
channel between itself and switch IV that can be dedicated for this
purpose. Switch I then sends the request to switch IV, which finds a
dedicated channel between itself and switch III. Switch III informs
system M of system A’s intention at this time.
■ In the next step to making a connection, an acknowledgment from
system M needs to be sent in the opposite direction to system A. Only
after system A receives this acknowledgment is the connection
established.
■ Note that end-to-end addressing is required for creating a connection
between the two end systems.
Data-Transfer Phase
■ After the establishment of the dedicated circuit (channels), the two
parties can transfer data.
Teardown Phase
■ When one of the parties needs to disconnect, a signal is sent to each
switch to release the resources.
Efficiency
■ It can be argued that circuit-switched networks are not as efficient as
the other two types of networks because resources are allocated during
the entire duration of the connection.
■ These resources are unavailable to other connections.
■ In a telephone network, people normally terminate the communication
when they have finished their conversation.
■ However, in computer networks, a computer can be connected to
another computer even if there is no activity for a long time. In this case,
allowing resources to be dedicated means that other connections are
deprived.
Delay
■ Although a circuit-switched network normally has low efficiency, the
delay in this type of network is minimal. During data transfer the data
are not delayed at each switch; the resources are allocated for the
duration of the connection.
PACKET SWITCHING
■ If the message is going to pass through a packet-switched network, it
needs to be divided into packets of fixed or variable size.
■ The size of the packet is determined by the network and the governing
protocol.
■ In packet switching, there is no resource allocation for a packet.
■ This means that there is no reserved bandwidth on the links, and there
is no scheduled processing time for each packet. Resources are
allocated on demand.
■ The allocation is done on a firstcome, first-served basis.
■ When a switch receives a packet, no matter what the source or
destination is, the packet must wait if there are other packets being
processed.
■ This lack of reservation may create delay.
■ In a packet-switched network, there is no resource reservation;
resources are allocated on demand.
■ We can have two types of packet-switched networks: datagram
networks and virtual circuit networks.
Datagram Networks
■ In a datagram network, each packet is treated independently of all
others.
■ Even if a packet is part of a multipacket transmission, the network treats
it as though it existed alone. Packets in this approach are referred to as
datagrams.
■ Datagram switching is normally done at the network layer.
■ The datagram networks are sometimes referred to as connectionless
networks.
■ The term connectionless here means that the switch (packet switch)
does not keep information about the connection state.
■ There are no setup or teardown phases. Each packet is treated the same
by a switch regardless of its source or destination.
■ If there are no setup or teardown phases, how are the packets routed to
their destinations in a datagram network?
■ In this type of network, each switch (or packet switch) has a routing
table which is based on the destination address.
■ The routing tables are dynamic and are updated periodically.
■ The destination addresses and the corresponding forwarding output
ports are recorded in the tables.
Destination Address
■ Every packet in a datagram network carries a header that contains,
among other information, the destination address of the packet.
■ When the switch receives the packet, this destination address is
examined; the routing table is consulted to find the corresponding port
through which the packet should be forwarded.
■ This address, unlike the address in a virtual-circuit network, remains the
same during the entire journey of the packet.
Efficiency
■ The efficiency of a datagram network is better than that of a circuit-
switched network; resources are allocated only when there are packets
to be transferred.
■ If a source sends a packet and there is a delay of a few minutes before
another packet can be sent, the resources can be reallocated during
these minutes for other packets from other sources.
Delay
■ There may be greater delay in a datagram network than in a virtual-
circuit network.
■ Although there are no setup and teardown phases, each packet may
experience a wait at a switch before it is forwarded.
■ In addition, since not all packets in a message necessarily travel through
the same switches, the delay is not uniform for the packets of a
message.
Virtual-Circuit Networks
■ A virtual-circuit network is a cross between a circuit-switched network
and a datagram network. It has some characteristics of both.
– As in a circuit-switched network, there are setup and teardown phases
in addition to the data transfer phase.
– Resources can be allocated during the setup phase, as in a circuit-
switched network, or on demand, as in a datagram network.
– As in a datagram network, data are packetized and each packet
carries an address in the header. However, the address in the header
has local jurisdiction (it defines what the next switch should be and
the channel on which the packet is being carried), not end-to-end
jurisdiction.
– As in a circuit-switched network, all packets follow the same path
established during the connection.
– A virtual-circuit network is normally implemented in the data-link
layer, while a circuit-switched network is implemented in the physical
layer and a datagram network in the network layer.
Addressing
■ In a virtual-circuit network, two types of addressing are involved: global
and local (virtual-circuit identifier).
■ Global Addressing
– A source or a destination needs to have a global address—an address
that can be unique in the scope of the network or internationally if the
network is part of an international network. A global address in
virtual-circuit networks is used only to create a virtual-circuit
identifier.
■ Virtual-Circuit Identifier
– The identifier that is actually used for data transfer is called the
virtual-circuit identifier (VCI) or the label. AVCI, unlike a global
address, is a small number that has only switch scope; it is used by a
frame between two switches.When a frame arrives at a switch, it has
aVCI; when it leaves, it has a differentVCI.
Data-Transfer Phase
■ Three phases.
■ To transfer a frame from a source to its destination, all switches need to
have a table entry for this virtual circuit.The table, in its simplest form,
has four columns.This means that the switch holds four pieces of
information for each virtual circuit that is already set up.
■ The data-transfer phase is active until the source sends all its frames to
the destination.
■ The procedure at the switch is the same for each frame of a message.
The process creates a virtual circuit, not a real circuit, between the
source and destination.
Setup Phase
■ In the setup phase, a switch creates an entry for a virtual circuit. For
example, suppose source A needs to create a virtual circuit to B.Two
steps are required: the setup request and the acknowledgment.
Acknowledgment
■ A special frame, called the acknowledgment frame, completes the
entries in the switching tables.
Teardown Phase
■ In this phase, sourceA, after sending all frames to B, sends a special
frame called a teardown request.
■ Destination B responds with a teardown confirmation frame.All
switches delete the corresponding entry from their tables.
Efficiency
■ In virtual-circuit switching, all packets belonging to the same source and
destination travel the same path, but the packets may arrive at the
destination with different delays if resource allocation is on demand.
■ Resource reservation in a virtual-circuit network can be made during the
setup or can be on demand during the data-transfer phase.
■ In the first case, the delay for each packet is the same; in the second
case, each packet may encounter different delays.
Delay

Weitere ähnliche Inhalte

Was ist angesagt?

Networking devices
Networking devicesNetworking devices
Networking devices
rupinderj
 
Packet switching
Packet switchingPacket switching
Packet switching
asimnawaz54
 

Was ist angesagt? (20)

Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
 
Chapter 3: Data & Signals
Chapter 3: Data & SignalsChapter 3: Data & Signals
Chapter 3: Data & Signals
 
ASYNCHRONOUS TRANSFER MODE (ATM)
ASYNCHRONOUS TRANSFER MODE (ATM)ASYNCHRONOUS TRANSFER MODE (ATM)
ASYNCHRONOUS TRANSFER MODE (ATM)
 
Multiplexing
MultiplexingMultiplexing
Multiplexing
 
Networking devices
Networking devicesNetworking devices
Networking devices
 
Packet switching
Packet switchingPacket switching
Packet switching
 
Ethernet Computer network
Ethernet Computer networkEthernet Computer network
Ethernet Computer network
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
 
IPv4
IPv4IPv4
IPv4
 
Wan technologies
Wan technologiesWan technologies
Wan technologies
 
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
 
Network devices
Network devicesNetwork devices
Network devices
 
Fisheye State Routing (FSR) - Protocol Overview
Fisheye State Routing (FSR) - Protocol OverviewFisheye State Routing (FSR) - Protocol Overview
Fisheye State Routing (FSR) - Protocol Overview
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
2. data and signals
2. data and signals2. data and signals
2. data and signals
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocal
 
Ethernet
EthernetEthernet
Ethernet
 
Chapter 23
Chapter 23Chapter 23
Chapter 23
 
Wsn routing protocol
Wsn routing protocolWsn routing protocol
Wsn routing protocol
 

Ähnlich wie Switching

chapter 5.2.pptx
chapter 5.2.pptxchapter 5.2.pptx
chapter 5.2.pptx
MelkamtseganewTigabi1
 

Ähnlich wie Switching (20)

chapter 5.2.pptx
chapter 5.2.pptxchapter 5.2.pptx
chapter 5.2.pptx
 
Switch networking
Switch networking Switch networking
Switch networking
 
Unit -1 Circuit Switch and Data gram Switch
Unit -1 Circuit Switch and Data gram SwitchUnit -1 Circuit Switch and Data gram Switch
Unit -1 Circuit Switch and Data gram Switch
 
Routing and switching
Routing and switchingRouting and switching
Routing and switching
 
Computer networks-WAN
Computer networks-WANComputer networks-WAN
Computer networks-WAN
 
Topology,Switching and Routing
Topology,Switching and RoutingTopology,Switching and Routing
Topology,Switching and Routing
 
Switching
SwitchingSwitching
Switching
 
Chapter 2 Switches in network.ppt
Chapter 2 Switches in network.pptChapter 2 Switches in network.ppt
Chapter 2 Switches in network.ppt
 
Switching
SwitchingSwitching
Switching
 
Switching types-circuit, packet and message
Switching types-circuit, packet and messageSwitching types-circuit, packet and message
Switching types-circuit, packet and message
 
Computer network switching
Computer network switchingComputer network switching
Computer network switching
 
CSC 424 -Lecture 5n8 2022.pptx
CSC 424 -Lecture 5n8 2022.pptxCSC 424 -Lecture 5n8 2022.pptx
CSC 424 -Lecture 5n8 2022.pptx
 
DCN-321-Chiwaya_Lesson7_DataElements_Switching.pdf
DCN-321-Chiwaya_Lesson7_DataElements_Switching.pdfDCN-321-Chiwaya_Lesson7_DataElements_Switching.pdf
DCN-321-Chiwaya_Lesson7_DataElements_Switching.pdf
 
unit 2_switchingtechniques.ppt
unit 2_switchingtechniques.pptunit 2_switchingtechniques.ppt
unit 2_switchingtechniques.ppt
 
Chap 8 switching
Chap 8 switchingChap 8 switching
Chap 8 switching
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
switching techniques
switching techniques switching techniques
switching techniques
 
Circuit switched network in Optical Fiber Communication
Circuit switched network in Optical Fiber CommunicationCircuit switched network in Optical Fiber Communication
Circuit switched network in Optical Fiber Communication
 
Switching concepts Data communication and networks
Switching concepts Data communication and networksSwitching concepts Data communication and networks
Switching concepts Data communication and networks
 
Unit 3 CND physical layer_switching_pranoti doke
Unit 3  CND physical layer_switching_pranoti dokeUnit 3  CND physical layer_switching_pranoti doke
Unit 3 CND physical layer_switching_pranoti doke
 

Kürzlich hochgeladen

"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
Health
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdf
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 

Switching

  • 2. Introduction ■ A network is a set of connected devices. Whenever we have multiple devices, we have the problem of how to connect them to make one-to- one communication possible. ■ One solution is to make a point-to-point connection between each pair of devices. ■ These methods, however, are impractical and wasteful when applied to very large networks. ■ The number and length of the links require too much infrastructure to be cost-efficient, and the majority of those links would be idle most of the time. ■ A better solution is switching.
  • 3. ■ A switched network consists of a series of interlinked nodes, called switches. ■ Switches are devices capable of creating temporary connections between two or more devices linked to the switch. ■ In a switched network, some of these nodes are connected to the end systems. Others are used only for routing.
  • 4. Three Methods of Switching ■ Circuit switching, packet switching, and message switching.The first two are commonly used today. ■ The third has been phased out in general communications but still has networking applications.
  • 5. Switching andTCP/IP Layers ■ At the physical layer, we can have only circuit switching. There are no packets exchanged at the physical layer.The switches at the physical layer allow signals to travel in one path or another. ■ At the data-link layer, we can have packet switching. However, the term packet in this case means frames or cells. Packet switching at the data- link layer is normally done using a virtual-circuit approach. ■ At the network layer, we can have packet switching. In this case, either a virtual-circuit approach or a datagram approach can be used. ■ At the application layer, we can have only message switching. The communication at the application layer occurs by exchanging messages.
  • 6. CIRCUIT-SWITCHED NETWORKS ■ A circuit-switched network consists of a set of switches connected by physical links. A connection between two stations is a dedicated path made of one or more links. However, each connection uses only one dedicated channel on each link. Each link is normally divided into n channels by using FDM orTDM.
  • 7. Setup Phase ■ The actual communication in a circuit-switched network requires three phases. ■ Before the two parties (or multiple parties in a conference call) can communicate, a dedicated circuit (combination of channels in links) needs to be established. ■ The end systems are normally connected through dedicated lines to the switches, so connection setup means creating dedicated channels between the switches. ■ When system A needs to connect to system M, it sends a setup request that includes the address of system M, to switch I. Switch I finds a channel between itself and switch IV that can be dedicated for this purpose. Switch I then sends the request to switch IV, which finds a dedicated channel between itself and switch III. Switch III informs system M of system A’s intention at this time.
  • 8. ■ In the next step to making a connection, an acknowledgment from system M needs to be sent in the opposite direction to system A. Only after system A receives this acknowledgment is the connection established. ■ Note that end-to-end addressing is required for creating a connection between the two end systems.
  • 9. Data-Transfer Phase ■ After the establishment of the dedicated circuit (channels), the two parties can transfer data.
  • 10. Teardown Phase ■ When one of the parties needs to disconnect, a signal is sent to each switch to release the resources.
  • 11. Efficiency ■ It can be argued that circuit-switched networks are not as efficient as the other two types of networks because resources are allocated during the entire duration of the connection. ■ These resources are unavailable to other connections. ■ In a telephone network, people normally terminate the communication when they have finished their conversation. ■ However, in computer networks, a computer can be connected to another computer even if there is no activity for a long time. In this case, allowing resources to be dedicated means that other connections are deprived.
  • 12. Delay ■ Although a circuit-switched network normally has low efficiency, the delay in this type of network is minimal. During data transfer the data are not delayed at each switch; the resources are allocated for the duration of the connection.
  • 13. PACKET SWITCHING ■ If the message is going to pass through a packet-switched network, it needs to be divided into packets of fixed or variable size. ■ The size of the packet is determined by the network and the governing protocol. ■ In packet switching, there is no resource allocation for a packet. ■ This means that there is no reserved bandwidth on the links, and there is no scheduled processing time for each packet. Resources are allocated on demand. ■ The allocation is done on a firstcome, first-served basis. ■ When a switch receives a packet, no matter what the source or destination is, the packet must wait if there are other packets being processed.
  • 14. ■ This lack of reservation may create delay. ■ In a packet-switched network, there is no resource reservation; resources are allocated on demand. ■ We can have two types of packet-switched networks: datagram networks and virtual circuit networks.
  • 15. Datagram Networks ■ In a datagram network, each packet is treated independently of all others. ■ Even if a packet is part of a multipacket transmission, the network treats it as though it existed alone. Packets in this approach are referred to as datagrams. ■ Datagram switching is normally done at the network layer.
  • 16. ■ The datagram networks are sometimes referred to as connectionless networks. ■ The term connectionless here means that the switch (packet switch) does not keep information about the connection state. ■ There are no setup or teardown phases. Each packet is treated the same by a switch regardless of its source or destination. ■ If there are no setup or teardown phases, how are the packets routed to their destinations in a datagram network? ■ In this type of network, each switch (or packet switch) has a routing table which is based on the destination address.
  • 17. ■ The routing tables are dynamic and are updated periodically. ■ The destination addresses and the corresponding forwarding output ports are recorded in the tables.
  • 18. Destination Address ■ Every packet in a datagram network carries a header that contains, among other information, the destination address of the packet. ■ When the switch receives the packet, this destination address is examined; the routing table is consulted to find the corresponding port through which the packet should be forwarded. ■ This address, unlike the address in a virtual-circuit network, remains the same during the entire journey of the packet.
  • 19. Efficiency ■ The efficiency of a datagram network is better than that of a circuit- switched network; resources are allocated only when there are packets to be transferred. ■ If a source sends a packet and there is a delay of a few minutes before another packet can be sent, the resources can be reallocated during these minutes for other packets from other sources.
  • 20. Delay ■ There may be greater delay in a datagram network than in a virtual- circuit network. ■ Although there are no setup and teardown phases, each packet may experience a wait at a switch before it is forwarded. ■ In addition, since not all packets in a message necessarily travel through the same switches, the delay is not uniform for the packets of a message.
  • 21. Virtual-Circuit Networks ■ A virtual-circuit network is a cross between a circuit-switched network and a datagram network. It has some characteristics of both. – As in a circuit-switched network, there are setup and teardown phases in addition to the data transfer phase. – Resources can be allocated during the setup phase, as in a circuit- switched network, or on demand, as in a datagram network. – As in a datagram network, data are packetized and each packet carries an address in the header. However, the address in the header has local jurisdiction (it defines what the next switch should be and the channel on which the packet is being carried), not end-to-end jurisdiction.
  • 22. – As in a circuit-switched network, all packets follow the same path established during the connection. – A virtual-circuit network is normally implemented in the data-link layer, while a circuit-switched network is implemented in the physical layer and a datagram network in the network layer.
  • 23. Addressing ■ In a virtual-circuit network, two types of addressing are involved: global and local (virtual-circuit identifier). ■ Global Addressing – A source or a destination needs to have a global address—an address that can be unique in the scope of the network or internationally if the network is part of an international network. A global address in virtual-circuit networks is used only to create a virtual-circuit identifier.
  • 24. ■ Virtual-Circuit Identifier – The identifier that is actually used for data transfer is called the virtual-circuit identifier (VCI) or the label. AVCI, unlike a global address, is a small number that has only switch scope; it is used by a frame between two switches.When a frame arrives at a switch, it has aVCI; when it leaves, it has a differentVCI.
  • 25. Data-Transfer Phase ■ Three phases. ■ To transfer a frame from a source to its destination, all switches need to have a table entry for this virtual circuit.The table, in its simplest form, has four columns.This means that the switch holds four pieces of information for each virtual circuit that is already set up. ■ The data-transfer phase is active until the source sends all its frames to the destination. ■ The procedure at the switch is the same for each frame of a message. The process creates a virtual circuit, not a real circuit, between the source and destination.
  • 26.
  • 27. Setup Phase ■ In the setup phase, a switch creates an entry for a virtual circuit. For example, suppose source A needs to create a virtual circuit to B.Two steps are required: the setup request and the acknowledgment.
  • 28. Acknowledgment ■ A special frame, called the acknowledgment frame, completes the entries in the switching tables.
  • 29. Teardown Phase ■ In this phase, sourceA, after sending all frames to B, sends a special frame called a teardown request. ■ Destination B responds with a teardown confirmation frame.All switches delete the corresponding entry from their tables.
  • 30. Efficiency ■ In virtual-circuit switching, all packets belonging to the same source and destination travel the same path, but the packets may arrive at the destination with different delays if resource allocation is on demand. ■ Resource reservation in a virtual-circuit network can be made during the setup or can be on demand during the data-transfer phase. ■ In the first case, the delay for each packet is the same; in the second case, each packet may encounter different delays.
  • 31. Delay