Computer Presentation
Computer Presentation
● It has to send empty frames and has to use a dedicated line making it not so
flexible.
● The line can only be accessed by one user even when it is idle.
● The time required to link the line with the user before using it is long.
Where Circuit switching is used
Circuit switching is used for connections that must be maintained for long periods,
such as long-distance communication. Circuit switching technology is used in
traditional telephone systems.
When a computer connects to the internet through a dial-up service, it uses the public
switched network. Dial-up transmits Internet Protocol (IP) data packets via a circuit-
switched telephone network.
Data centre networks also make use of circuit switching. Optical circuit switching is
used to expand traditional data centres and fulfill increasing bandwidth demands.
Not using circuit
switching because it is
old
Using circuit
switching as it is
fastest and most secure
Packet Switching
Definition of Packet Switching
Packet switching is a way of sending data where a message is split
into many packets. Each packet is sent on its own from the start to
the end point. At the destination, the packets are put back together in
the right order. Here's an example of how packet switching works.
How data is transmitted using packet switching (in short)
Sometimes, packets get lost and keep bouncing around from router to router, never reaching where they need to go. This
can slow down the network as these lost packets pile up and jam the system. To fix this, we use something called
"hopping". A hop number is added to each packet's header, which limits how many times it can hop between routers.
Each time a packet goes through a router, its hop number decreases by 1. If it doesn't reach its destination before the hop
number hits 0, it's deleted at the next router.
Packets also have an error-checking method like a checksum. The checksum is calculated for each packet and added to
the header. At the destination, the checksum is recalculated to make sure no errors happened. If the checksums don't
match, a request is made to resend the packet. Sometimes, a priority value is added to the header to show which packet
queue should be used.
Packet Header for TCP/IP Protocol
Routing tables help send packets along the best route. When a packet reaches a router, its header is
checked against the routing table, which gives instructions for the next hop.
● Number of hops
● MAC address of the next router
● Metrics (cost for each route to find the most efficient path)
● Network destination (network ID)
● Gateway (shows the gateway to the target network)
● Netmask (to generate network ID)
● Interface (local interface for reaching the gateway)
Pros and cons of circuit switching
Pros and cons of packet switching
Insignificant Details :)