Module 1
Module 1
Video
Video refers to the recording or broadcasting of a picture or movie. Video can either be produced as a continuous entity (e.g.,
by a TV camera), or it can be a combination of images, each a discrete entity, arranged to convey the idea of motion. Again we
can change video to a digital or an analog signal.
Data Communication
Distributed Processing
Most networks use distributed processing, in which a task is divided among multiple computers.
Network Criteria
1. Performance 2. Reliability 3. Security
Physical structures
1. Type of connection :
a) Point – to- point
b) Multipoint
Networks
Physical structures
2. Physical Topology : a) Mesh b) Star c) Bus d) Ring
To find the number of physical links in a fully connected mesh network with n nodes,
we first consider that each node must be connected to every other node. Node 1 must be
connected to n - I nodes, node 2 must be connected to n -1 nodes, and finally node n
must be connected to n - 1 nodes. We need n(n - 1) physical links. However, if each
physical link allows communication in both directions (duplex mode), we can divide the
number of links by 2. In other words, we can say that in a mesh topology, we need
duplex-mode links.
n(n -1) /2
Advantages of Mesh Topology:
1.Dedicated links eliminate traffic issues by ensuring each connection carries its own data load.
2.Mesh topology is robust; if one link fails, it doesn't incapacitate the whole network.
3.Enhanced privacy and security, as messages travel on dedicated lines preventing unauthorized access.
4.Fault identification and isolation are easy; traffic can be rerouted around faulty links.
•Nodes are connected to the bus cable via drop lines and taps.
Drop lines link devices to the main cable
•As signals travel along the bus, energy is lost as heat, weakening
the signal over distance. This limits the number of taps and the
distance between them.
•Bus topology is used in some Ethernet LANs, though it has
become less popular.
• Disadvantages: Unidirectional traffic makes the network vulnerable to failure if a break occurs, but this can be
mitigated with a dual ring or a switch.
• Ring topology was commonly used in IBM’s Token Ring LAN but has declined in popularity due to the need for
higher-speed LANs.
Networks
Physical structures
2. Physical Topology : Hybrid Topology
Network Models
Computer networks are created by different entities. Standards are needed so that these heterogeneous networks can communicate
with one another. The two best-known standards are the OSI model and the Internet model.
i) Point-to-Point WAN
A point-to-point WAN is a network that connects two communicating devices through a
transmission media (cable or air).
· A switched WAN is a network with more than two ends. A switched WAN is used in
the backbone of global communication today. A switched WAN is a combination of several
point-to-point WANs that are connected by switches.
Network Models
Computer networks are created by different entities. Standards are needed so that these heterogeneous networks can communicate
with one another. The two best-known standards are the OSI model and the Internet model.
When a host in the west coast office sends a message to another host in the
same office, the router blocks the message, but the switch directs the message
to the destination. On the other hand, when a host on the west coast sends a
message to a host on the east coast, router R1 routes the packet to router R2,
and the packet reaches the destination.
Switching
An internet is a switched network in which a switch connects at least two links together. A switch needs to forward data from a network to
another network when required. The two most common types of switched networks are circuit-switched and packet-switched networks.
Circuit-Switched Network
In a circuit-switched network, a dedicated connection,
Let us look at two cases.
called a circuit, is always available between the two end
systems; the switch can only make it active or inactive. In the first case, all telephone sets are busy; four people at one site are talking with
In Figure, the four telephones at each side are connected four people at the other site; the capacity of the thick line is fully used.
to a switch. The switch connects a telephone set at one
side to a telephone set at the other side. The thick line In the second case, only one telephone set at one side is connected to a telephone
connecting two switches is a high-capacity communication set at the other side; only one-fourth of the capacity of the thick line is used.
line that can handle four voice communications at the
This means that a circuit-switched network is efficient only when it is working at its
same time; the capacity can be shared between all pairs of full capacity; most of the time, it is inefficient because it is working at partial capacity.
telephone sets. The switches used in this example have The reason that we need to make the capacity of the thick line four times the capacity
forwarding tasks but no storing capability. of each voice line is that we do not want communication to fail when all telephone
sets at one side want to be connected with all telephone sets at the other side.
Switching
Packet-Switched Network
In a computer network, the communication between the
two ends is done in blocks of data called packets- we see
the exchange of individual data packets between the two
computers.
This allows us to make the switches function for both A router in a packet-switched network has a queue that can store and forward the
storing and forwarding because a packet is an packet. Now assume that the capacity of the thick line is only twice the capacity of
independent entity that can be stored and sent later. the data line connecting the computers to the routers. If only two computers (one
Figure shows a small packet-switched network that at each site) need to communicate with each other, there is no waiting for the
connects four computers at one site to four computers at packets.
the other site.
However, if packets arrive at one router when the thick line is already working at its
full capacity, the packets should be stored and forwarded in the order they arrived.
The two simple examples show that a packet-switched network is more efficient
than a circuit-switched network, but the packets may encounter some delays.
The Internet
An internet is two or more networks that can communicate with each other
The figure shows the Internet as several backbones, provider
networks, and customer networks.
At the top level, the backbones are large networks owned by
some communication companies such as Sprint, Verizon (MCI),
AT&T, and NTT. The backbone networks are connected
through some complex switching systems, called peering
points.
At the second level, there are smaller networks, called provider
networks, that use the services of the backbones for a fee. The
provider networks are connected to backbones and sometimes
to other provider networks.
The customer networks are networks at the edge of the Internet
that actually use the services provided by the Internet.
1. Second Principle:
The two objects under each layer at both sites should be identical. For example, the object under layer 3 at both sites
should be a plaintext letter.
TCP/IP Protocol Suite
TCP/IP (Transmission Control Protocol/Internet Protocol) is a protocol suite (a set of protocols organized in different layers)
used in the Internet today. It is a hierarchical protocol made up of interactive modules, each of which provides a specific
functionality. The term hierarchical means that each upper level protocol is supported by the services provided by one or
more lower level protocols. The original TCP/IP protocol suite was defined as four software layers built upon the hardware.
TCP/IP Protocol Suite - Layered architecture
To show how the layers in the TCP/IP protocol suite are involved in communication between two hosts, we assume that we
want to use the suite in a small internet made up of three LANs (links), each with a link-layer switch. We also assume that the
links are connected by one router, as shown in Figure
Layers in TCP/IP Protocol Suite
Layers in TCP/IP Protocol Suite
Layers in TCP/IP Protocol Suite
1. Physical Layer: the physical layer is responsible for carrying individual bits in a frame across the link through
the transmission medium. The transmission medium does not carry bits; it carries electrical or optical
signals. So the bits received in a frame from the data-link layer are transformed and sent through the
transmission media, but we can think that the logical unit between two physical layers in two devices is a bit.
There are several protocols that transform a bit to a signal.
1. Data Link Layer: The data-link layer is responsible for taking the datagram and moving it across the link. The
link can be a wired/wireless LAN with a link-layer switch, a wired/wireless WAN. TCP/IP does not define any
specific protocol for the data-link layer. It supports all the standard and proprietary protocols. The data-link
layer takes a datagram and encapsulates it in a packet called a frame. Each link-layer protocol may provide a
different service. Some link-layer protocols provide complete error detection and correction, some provide
only error correction.
Layers in TCP/IP Protocol Suite
3. Network Layer: The network layer is responsible for creating a connection between the source computer and the
destination computer. The network layer is responsible for host-to-host communication and routing the packet through
possible routes.
The network layer in the Internet includes the main protocol, Internet Protocol (IP), that defines the format of the packet,
called a datagram at the network layer. IP also defines the format and the structure of addresses used in this layer. IP is also
responsible for routing a packet from its source to its destination, which is achieved by each router forwarding the datagram
to the next router in its path.
IP is a connectionless protocol that provides no flow control, no error control, and no congestion control services. This means
that if any of theses services is required for an application, the application should rely only on the transport-layer protocol.
The network layer also includes unicast (one-to-one) and multicast (one-to-many) routing protocols. A routing protocol does
not take part in routing (it is the responsibility of IP), but it creates forwarding tables for routers to help them in the routing
process.
4. Transport Layer: there are a few transport-layer protocols in the Internet, each designed for some specific task. The main
protocol, Transmission Control Protocol (TCP), is a connection-oriented protocol that first establishes a logical connection
between transport layers at two hosts before transferring data. TCP provides flow control (matching the sending data rate of
the source host with the receiving data rate of the destination host to prevent overwhelming the destination), error control
(to guarantee that the segments arrive at the destination without error and resending the corrupted ones), and congestion
control to reduce the loss of segments due to congestion in the network.
5. Application Layer: Communication at the application layer is between two processes (two programs running at this
layer). To communicate, a process sends a request to the other process and receives a response.
Layers in TCP/IP Protocol Suite
Protocols List
Application Layer Protocols The Hypertext Transfer Protocol (HTTP) is a vehicle for accessing the World Wide Web
(WWW).
The Simple Mail Transfer Protocol (SMTP) is the main protocol used in electronic mail (e-mail)
service.
The File Transfer Protocol (FTP) is used for transferring files from one host to another
The Terminal Network (TELNET) and Secure Shell are used for accessing a site remotely.
(SSH)
The Simple Network Management Protocol (SNMP) is used by an administrator to manage the Internet at
global and local levels.
The Domain Name System (DNS) is used by other protocols to find the network-layer
address of a computer.
The Internet Group Management Protocol (IGMP) is used to collect membership in a group.
Layers in TCP/IP Protocol Suite
Protocols List
Transport Layer Protocols Transmission Control Protocol (TCP), is a connection-oriented protocol that first
establishes a logical connection between transport
layers at two hosts before transferring data.
The Internet Group Management Protocol (IGMP) is another protocol that helps IP in multitasking.
The Dynamic Host Configuration Protocol (DHCP) helps IP to get the network-layer address for a host.
The Address Resolution Protocol (ARP) is a protocol that helps IP to find the link-layer
address of a host or a router when its network-layer
address is given
Encapsulation and Decapsulation
The encapsulation in the source host, decapsulation in the destination host, and encapsulation and decapsulation in the router.
Encapsulation and Decapsulation
Encapsulation at the Source Host
Application Layer:
Data is called a message and is passed to the transport layer.
Transport Layer:
Adds a header to the message (payload) with source/destination application info.
Creates a segment (TCP) or user datagram (UDP) and passes it to the network layer.
Network Layer:
Adds a header with source/destination host addresses to create a datagram.
Passes the datagram to the data-link layer.
Data-Link Layer:
Adds a header with link-layer addresses to form a frame.
Passes the frame to the physical layer for transmission.
Bits
OSI v/s TCP/IP Models
Lack of OSI Model’s Success
First, OSI was completed when TCP/IP was fully in place and a lot of time and money had been spent on
the suite; changing it would cost a lot.
Second, some layers in the OSI model were never fully defined. For example, although the services
provided by the presentation and the session layers were listed in the document, actual protocols for these
two layers were not fully defined, nor were they fully described, and the corresponding software was not
fully developed.
Third, when OSI was implemented by an organization in a different application, it did not show a high
enough level of performance to entice the Internet authority to switch from the TCP/IP protocol suite to the
OSI model.
Introduction to Physical Layer
Transmission Media
A transmission medium can be broadly defined as anything that can carry information from a source to a destination
The transmission medium is usually free space, metallic cable, or fiber-optic cable. The information is usually a signal
that is the result of a conversion of data from another form.
Introduction to Physical Layer
Transmission Media
A signal traveling along any of these media is directed and contained by the physical limits of the medium.
In addition to the signal sent by the sender on one of the wires, interference (noise) and crosstalk may
affect both wires and create unwanted signals. If the two wires are parallel, the effect of these unwanted
signals is not the same in both wires because they are at different locations relative to the noise or
crosstalk sources. This results in a difference at the receiver. By twisting the pairs, a balance is
maintained.
Introduction to Physical Layer
Guided Transmission Media
A signal traveling along any of these media is directed and contained by the physical limits of the medium.
Guided Transmission Media - Twisted Pair Cable - Unshielded Versus Shielded Twisted-Pair Cable
The most common twisted-pair cable used in communications is referred to as unshielded twisted-pair
(UTP). IBM has also produced a version of twisted-pair cable for its use, called shielded twisted-pair
(STP). STP cable has a metal foil or braidedmesh covering that encases each pair of insulated
conductors. Although metal casing improves the quality of cable by preventing the penetration of noise or
crosstalk, it is
bulkier and more expensive.
Introduction to Physical Layer
Guided Transmission Media
A signal traveling along any of these media is directed and contained by the physical limits of the medium.
Guided Transmission Media - Twisted Pair Cable - Unshielded Versus Shielded Twisted-Pair Cable
Introduction to Physical Layer
Guided Transmission Media
A signal traveling along any of these media is directed and contained by the physical limits of the medium.
Guided Transmission Media - Twisted Pair Cable - UTP Connector - RJ45 [Registered JAck]
Applications:
A signal traveling along any of these media is directed and contained by the physical limits of the medium.
Guided Transmission Media - Twisted Pair Cable - UTP Connector - RJ45 [Registered JAck]
In data communications, we need to send messages from one end system to another. 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 first-come, 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.
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.
Virtual-Circuit Identifier
The identifier that is actually used for data transfer is
called the virtual-circuit identifier (VCI) or the label. A VCI,
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 VCI.