UNIT III Computer Networks-1
UNIT III Computer Networks-1
Engineering &Technology
Topic Name: Data Link Layer and Medium Access Sub Layer:
III year, sec: D
Dr. P Neelakantan
Professor
Email: [email protected]
Setup Phase: 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.
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.
The above figure shows how the datagram approach is used to deliver four packets
from station A to station X. The switches in a datagram network are traditionally
referred to as routers. That is why we use a different symbol for the switches in
the figure.
Department of Computer Science & Engineering, VNRVJIET, Hyderabad February 6, 2025 11
DATAGRAM NETWORKS
Routing Table
If there are no setup or teardown phases, the packets are routed to their destinations by
using a routing table.
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.
This is different from the table of a circuit switched network in which each entry is created
when the setup phase is completed and deleted when the teardown phase is over. Figure
8.8 shows the routing table for a switch.
Destination Address
Every packet in a datagram network
contains 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.
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.
1. As in a circuit-switched network, there are setup and teardown phases in addition to
the data transfer phase.
2. Resources can be allocated during the setup phase, as in a circuit-switched network,
or on demand, as in a datagram network.
3. As in a datagram network, data are packetized and each packet carries an address in
the header.
4. As in a circuit-switched network, all packets follow the same path established
during the connection.
5. 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. But this may change in the future.
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.
Virtual-Circuit Identifier
The identifier that is used for data transfer is called the virtual-circuit identifier (VCI).
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 VCI; when it leaves, it has a different VCl.
Figure 8.11 shows how the VCI in a data frame changes from one switch to another.
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.
Virtual-Circuit Identifier
The identifier that is used for data transfer is called the virtual-circuit identifier (VCI).
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 VCI; when it leaves, it has a different VCl.
Figure 8.11 shows how the VCI in a data frame changes from one switch to another.
To transfer a frame from a source to its destination, all switches need to have a
table entry for this virtual circuit. The table has four columns. Figure 8.12 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.
Address Space
A protocol such as IPv4 that defines addresses has an address space. An address
space is the total number of addresses used by the protocol. If a protocol uses N
bits to define an address, the address space is .
The number of home users and small businesses that want to use the Internet is ever
increasing.
In the beginning, a user was connected to the Internet with a dial-up line, which
means that she was connected for a specific period of time.
An ISP with a block of addresses could dynamically assign an address to this user.
An address was given to a user when it was needed.
But the situation is different today. Home users and small businesses can be
connected by an ADSL line or cable modem.
In addition, many are not happy with one address; many have created small networks
with several hosts and need an IP address for each host. With the shortage of
addresses, this is a serious problem.