Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

Central Women’s University

Assignment No: 1
Assignment on Switching
Course Title: Data Communication
Course Code: CSE-313
Submitted By:
Afrina Sultana
ID: 2018-1-17-016
Department of Computer Science and Engineering
Submitted To:
Sher Shermin Azmiri Khan
Assistant Professor
Department of CSE, CWU
Submission Date: 09-06-2020
Switching

Introduction:
Switching is a process to forward packets coming in from one port to a port
leading towards the destination. When data comes on a port it is called ingress,
and when data leaves a port or goes out it is called egress. A communication
system may include number of switches and nodes.

Switched Network:
A switched network is a network in which a temporary connection is established
from one point to another for either the duration of the session or for the
transmission of one or more packets of data. A switched network consists of a
series of interlinked nodes by which temporary connections among nodes,
including the intermediate switches and the end devices, can be made.
Methods Of Switching: There are 3 common switching techniques:
1. Circuit Switching.
2. Packet Switching.
3. Message Switching.

Packet switching can further be divided into two more categories:

1. Virtual Circuit Switching.


2. Datagram Switching.

Switching And TCP/IP Layers: Switching can happen at several layers of


the TCP/IP protocol suite. They are:

Switching at Physical Layer: It is also known as the network interface layer or


data link layer that consists of protocols which operate only on a link-the network
component that interconnects nodes or hosts in the network. The protocols in
this lowest layer include Ethernet for local area networks (LANs) and the Address
Resolution Protocol (ARP).
Switching at Data-Link Layer: 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.

Switching at network layer: It is also called the internet layer, deals with
packets and connects independent networks to transport the packets across
network boundaries. The network layer protocols are the IP and the Internet
Control Message Protocol (ICMP), which is used for error reporting.

Switching at application layer: Provides applications with standardized data


exchange. Its protocols include the HTTP, FTP, Post Office Protocol 3 (POP3),
Simple Mail Transfer Protocol (SMTP) and Simple Network Management Protocol
(SNMP). At the application layer, the payload is the actual application data.

Circuit-Switched Networks: A circuit-switched network is made of a set of


switches connected by physical links, in which each link is divided into n channels.
In circuit switching, the resources need to be reserved during the setup phase;
the resources remain dedicated for the entire duration of data transfer until the
teardown phase.

Example: As a trivial example, let us use a circuit-switched network to connect


eight telephones in a small area. Communication is through 4-kHz voice channels.
We assume that each link uses FDM to connect a maximum of two voice
channels. The bandwidth of each link is then 8 kHz. Figure 8.4 shows the situation.
Telephone 1 is connected to telephone 7; 2 to 5; 3 to 8; and 4 to 6. Of course the
situation may change when new connections are made. The switch controls the
connections.

Three Phases: The communication in a circuit-switched network requires three


phases:

I. Setup Phase: In the setup phase, a switch creates an entry for a virtual
circuit. In this phase, the source and destination use their global
addresses to help switches make table entries for the connection.
II. Data Transfer Phase: After the establishment of a dedicated circuit, the
two parties can transfer data in this phase.
III. Teardown Phase: When one of the parties needs to disconnect, a signal
is sent to each switch to release the resources.

Delay: The delay in a circuit-switched network is minimal. During data transfer


the data are not delayed at each switch; the resources are allocated for the
duration of the connection. In the figure we can see that, there is no waiting time
at each switch. The total delay is due to the time needed to create the
connection, transfer data, and disconnect the circuit.

The delay caused by the setup is the sum of four parts: the propagation time of
the source computer request, the request signal transfer time, the propagation
time of the acknowledgment from the destination computer and the signal
transfer time of the acknowledgment. The delay due to data transfer is the sum of
two parts: the propagation time (slope of the colored box) and data transfer time
(height of the colored box), which can be very long. The third box shows the time
needed to tear down the circuit.
Packet Switching:
Packet switching is a method of grouping data that is transmitted over a digital
network into packets. Packets are made of a header and a payload. Data in the
header is used by networking hardware to direct the packet to its destination
where the payload is extracted and used by application software. Packet
switching is the primary basis for data communications in computer networks
worldwide.

Datagram Networks:
A datagram is a basic transfer unit associated with a packet-switched network.
Datagrams are typically structured in header and payload sections. Datagrams
provide a connectionless communication service across a packet-switched
network.

This figure shows how the datagram approach is used to deliver four packets from
station A to station X. The switches in a datagram network is traditionally referred
to as routers. Here, all four packets belong to the same message, but may travel
different paths to reach their destination.
Routing Table:
A routing table is a set of rules, often viewed in table format that is used to
determine where data packets traveling over an Internet Protocol (IP) network
will be directed. All IP-enabled devices, including routers and switches, use
routing tables.

The construction of routing tables is the primary goal of routing protocols. Static
routes are entries made in a routing table by non-automatic means and which are
fixed rather than being the result of routing protocols and associated network
topology discovery procedures. A switch in a datagram network uses a routing
table that is based on the destination table.

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 the networks. They are:
I. As in a circuit-switched network, there are setup and teardown phases in
addition to the data transfer phase.

II. Resources can be allocated during the setup phase, as in a circuit-switched


network, or on demand, as in a datagram network.

III. 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 should be the next switch and the channel on
which the packet is being carried), not end-to-end jurisdiction. The reader
may ask how the intermediate switches know where to send the packet if
there is no final destination address carried by a packet.

IV. As in a circuit-switched network, all packets follow the same path


established during the connection.

V. 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.
This figure is an example of a virtual-circuit network. The network has switches
that allow traffic from sources to destinations. A source or destination can be a
computer, packet switch or any other device that can connect other networks.

Virtual-Circuit Identifier:
A virtual circuit identifier (VCI) is a type of numeric identifier used to distinguish
between different virtual circuits in a connection-oriented circuit-switched
telecommunication network. It enables a circuit-switched network to identify
different virtual circuits/channels involved in a device's data communication.

A VCI, 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 a
virtual-circuit identifier when it leaves, it has a different VCI. The figure shows
how the VCI in a data frame changes from one switch to another. Note that a VCI
does not need to be a large number since each switch can use its own unique set
of VCIs.

Three Phases:
As in a circuit-switched network, a source and destination need to go through
three phases in a virtual-circuit network: setup, data transfer, and teardown.
Data Transfer Phase
Data transfer only happens after the setup phase is completed and only when a
physical, dedicated path is established.

No addressing method is involved in this phase. The switches use time slot (TDM)
or the occupied band (FDM) to route the data from the sender to the receiver. 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. We show later how the switches make their table entries, but
for the moment we assume that each switch has a table with entries for all active
virtual circuits.

The following figure shows a frame arriving at port 1 with a VCI of 14. When the
frame arrives, the switch looks in its table to find port 1 and a VCI of 14. When it is
found, the switch knows to change the VCI to 22 and send out the frame from
port 3.

Setup Phase:
In the setup phase, the source and destination use their global addresses to help
switches make table entries for the connection. 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.

Setup Request: 
A setup request frame is sent from the source to the destination. The following
figure shows the process.
a. Source A sends a setup frame to switch 1.

b. Switch 1 receives the setup request frame and it knows that a frame going from
A to B goes out through port 3. The switch in this setup phase acts as a packet
switch and it has a routing table which is different from the switching table.

c. Switch 2 receives the setup request frame. The same events happen here as at
switch 1 and three columns of the table are completed: in this case, incoming port
(l), incoming VCI (66), and outgoing port (2).

d. Switch 3 receives the setup request frame. Three columns are completed,
incoming port(2), incoming VCI(22) and outgoing port(3).

e. Destination B receives the setup frame, if it is ready to receive frames from A. It


assigns a VCI to the incoming frames that come from A, in this case 77. It lets the
destination know that the frames come from A and not other sources.

Acknowledgement:
Acknowledgment is any transmission from a receiving station to a transmitting
station communicating that the transmitted data has been received without
errors. On the other hand, if the receiving station determines that the data
transmission is late or has not arrived, a NAK (negative acknowledgment) is
generated to indicate to the transmitting station that the data should be sent
again.

An acknowledgment code is also known as an acknowledgment character.

Conclusion:
Switching is the most valuable asset of computer networking. Every time in
computer network we access the internet or another computer network outside
our immediate location, or our messages are sent through a maze of transmission
media and connection devices. The mechanism for exchange of information
between different computer networks and network segments is called switching
in Networking. That is why switching is very important in data communication.

You might also like