Unit-1 Introduction To Computer Networks & Internet
Unit-1 Introduction To Computer Networks & Internet
Unit-1 Introduction To Computer Networks & Internet
NETWORKS
→ A network is a set of devices (often referred to as nodes) connected by communication links.
→ A node can be a computer, printer, or any other device capable of sending and/or receiving
data generated by other nodes on the network.
→ A network is a combination of hardware and software that sends data from one location to
another.
→ The hardware consists of the physical equipment that carries signals from one point of the
network to another. The software consists of instruction sets that make possible the services
that we expect from a network.
Computer Network
→ A computer network is a group of computers linked to each other that enables the computer
to communicate with another computer and share their resources, data, and applications.
→ A computer network is a system in which multiple computers are connected to each other to share
information and resources.
→ The physical connection between networked computing devices is established using either
cable media or wireless media.
→ The best-known computer network is the Internet.
Assistant Professor,
IT Dept.,
MBIT, New V.V.Nagar
Computer NetworksUnit – I
Introduction to computer networks and Internet
TYPES OF COMPUTER NETWORKS
→ A computer network can be categorized by their size.
→ A computer network is mainly of four types:
3 Prof. TejalTandel
Assistant Professor,
IT Dept.,
MBIT, New V.V.Nagar
Computer NetworksUnit – I
Introduction to computer networks and Internet
WAN (Wide Area Network)
→ A wide area network (WAN) provides long-distance transmission of data, image, audio, and
video information over large geographic areas that may comprise a country, a continent, or even
the whole world.
→ A Wide Area Network is a network that extends over a large geographical area such as states or
countries.
→ A Wide Area Network is quite bigger network than the LAN.
→ The internet is one of the biggest WAN in the world.
→ A Wide Area Network is widely used in the field of Business, government, and education,
etc.
→ WAN links different metropolitan’s countries and national boundaries there by enabling
easy communication.
→ A good example of a switched WAN is the asynchronous transfer mode (ATM) network, which
is a network with fixed-size data unit packets called cells.
Internet
→ The internet is a type of world-wide computer network.
→ The internet is the collection of infinite numbers of connected computers that are
spread across the world.
→ We can also say that, the Internet is a computer network that interconnects hundreds
of millions of computing devices throughout the world.
→ It is established as the largest network and sometimes called network of network
that consists of numerous academic, business and government networks, which
together carry various information.
→ Internet is a global computer network providing a variety of information and
communication facilities, consisting of interconnected networks using standardized
communicationprotocols.
→ When two computers are connected over the Internet, they can send and receive all
kinds of information such as text, graphics, voice, video, and computer programs.
Protocols
→ In computer networks, communication occurs between entities in different systems.
→ An entity is anything capable of sending or receiving information.
→ However, two entities cannot simply send bit streams to each other and expect to be
understood. For communication to occur, the entities must agree on a protocol.
→ A protocol is a set of rules that govern data communications.
→ A protocol defines what is communicated, how it is communicated, and when it is
communicated. The key elements of a protocol are syntax, semantics, and timing.
o Syntax.
→ The term syntax refers to the structure or format of the data, meaning the order in which they
are presented.
→ For example, a simple protocol might expect the first 8 bits of data to be the address of the
sender, the second 8 bits to be the address of the receiver, and the rest of the stream to be the
message itself.
o Semantics.
→ The word semantics refers to the meaning of each section of bits.
→ How is a particular pattern to be interpreted, and what action is to be taken based on that
interpretation?
→ For example, does an address identify the route to be taken or the final destination of the
message?
o Timing.
→ The term timing refers to two characteristics: when data should be sent and how fast they can
be sent.
→ For example, if a sender produces data at 100 Mbps but the receiver can process data at only
1 Mbps, the transmission will overload the receiver and some data will be lost.
Network Edge
→ The computers and other devices connected to the Internet are often referred to as end
systems.
→ They are referred to as end systems because they sit at the edge of the Internet, as shown in
Figure 1.3.
→ The Internet’s end systems include desktop computers (e.g., desktop PCs, Macs, and Linux
boxes), servers (e.g., Web and e-mail servers), and mobile computers (e.g., laptops,
smartphones, and tablets).
o Furthermore, an increasing number of non-traditional devices are being attached to
the Internet as end systems.
→ End systems are also referred to as hosts because they host (that is, run) application programs
such as
o a Web browser program,
o a Web server program,
o an e-mail client program, or
o an e-mail server program.
→ Throughout we will use the terms hosts and end systems interchangeably;
→ That is, host = end system.
→ Hosts are sometimes further divided into two categories: clients and servers.
→ Informally,
o clients tend to be
▪ desktop and mobile PCs, smartphones, and so on,
o Whereas servers tend to be
▪ more powerful machines that store and distribute
• Web pages,
• stream video,
• Relay e-mail, and so on.
→ Today, most of the servers from which we receive search results, e-mail, Web pages, and
videos reside in large data centers. For example, Google has 30–50 data centers, with many
having more than one hundred thousand servers.
→ A packet starts in a host (the source), passes through a series of routers, and ends its journey
in another host (the destination).
→ As a packet travels from one node (host or router) to the subsequent node (host or router)
along this path, the packet suffers from several types of delays at each node along the path.
→ The most important of these delays are the
o Nodal processing delay,
o Queuing delay,
o Transmission delay, and
o Propagation delay; together, these delays accumulate to give a total nodal delay.
→ The performance of many Internet applications—such as search, Web browsing, email,
maps, instant messaging, and voice-over-IP—are greatly affected by network delays.
→ In order to acquire a deep understanding of packet switching and computer networks, we
must understand the nature and importance of these delays.
→ Its end-to-end route between source and destination, a packet is sent from the upstream node
through router A to router B.
→ Our goal is to characterize the nodal delay at router A.
→ Note that router A has an outbound link leading to router B.
→ This link is preceded by a queue (also known as a buffer).
→ When the packet arrives at router A from the upstream node, router A examines the packet’s
header to determine the appropriate outbound link for the packet and then directs the packet
to this link.
→ In this example, the outbound link for the packet is the one that leads to router B.
→ A packet can be transmitted on a link only if there is no other packet currently being
transmitted on the link and if there are no other packets preceding it in the queue; if the link
is currently busy or if there are other packets already queued for the link, the newly arriving
packet will then join the queue.
▪ Processing Delay
→ The time required to examine the packet’s header and determine where to direct the packet is
part of the processing delay.
→ The processing delay can also include other factors, such as
o The time needed to check for bit-level errors in the packet that occurred in
transmitting the packet’s bits from the upstream node to router A.
→ Processing delays in high-speed routers are typically on the order of microseconds or less.
→ After this nodal processing, the router directs the packet to the queue that precedes the link to
router B.
▪ Queue Delay
→ At the queue, the packet experiences a queuing delay as it waits to be transmitted onto the
link.
→ The length of the queuing delay of a specific packet will depend on the number of earlier-
arriving packets that are queued and waiting for transmission onto the link.
→ If the queue is empty and no other packet is currently being transmitted, then our packet’s
queuing delay will be zero.
→ On the other hand, if the traffic is heavy and many other packets are also waiting to be
transmitted, the queuing delay will be long.
→ We will see shortly that the number of packets that an arriving packet might expect to find is
a function of the intensity and nature of the traffic arriving at the queue.
→ Queuing delays can be on the order of microseconds to milliseconds in practice.
▪ Transmission Delay
→ Assuming that packets are transmitted in a first-come-first-served manner, as is common in
packet-switched networks, our packet can be transmitted only after all the packets that have
arrived before it have been transmitted.
→ Denote the length of the packet by L bits, and denote the transmission rate of the link from
router A to router B by R bits/sec.
→ For example,
for a 10 Mbps Ethernet link, the rate is R = 10 Mbps; for a 100 Mbps Ethernet link, the rate is
R = 100 Mbps.
→ The transmission delay is L/R.
→ This is the amount of time required to push (that is, transmit) all of the packet’s bits into the
link.
→ Transmission delays are typically on the order of microseconds to milliseconds in practice.
▪ Propagation Delay
→ Once a bit is pushed into the link, it needs to propagate to router B.
→ The time required to propagate from the beginning of the link to router B is the propagation
delay.
→ The bit propagates at the propagation speed of the link.
→ The propagation speed depends on the physical medium of the link (that is, fiber optics,
twisted-pair copper wire, and so on) and is in the range of
→ Which is equal to, or a little less than, the speed of light.
→ The propagation delay is the distance between two routers divided by the propagation speed.
→ That is, the propagation delay is d/s, where d is the distance between router A and router B
and s is the propagation speed of the link.
→ Once the last bit of the packet propagates to node B, it and all the preceding bits of the packet
are stored in router B.
→ The whole process then continues with router B now performing the forwarding.
→ In wide-area networks, propagation delays are on the order of milliseconds.
1) Transmission Delay(Tt): If there is a host and if it is having a data packet,the time taken by the host
to put the data packet on to the outgoing link is called transmission delay.
Tt=L/B sec
→ Time taken to put the data packet on the transmission link is called as transmission delay.
example:
2) Propogation delay (Tp): Time taken by the single or one bit to reach from one end of the link
to other link is called propogation delay.
→ Time taken for one bit to travel from sender to receiver end of the link is called
as propagation delay.
• Propagation delay 𝖺 Distance between sender and receiver
• Propagation delay 𝖺 1 / transmission speed
a) Distance (d)
b) Velocity (v)
Tp=d/v sec
Example:
Distance=2.1 km
Velocity=2.1*10^8 m/s
Tp ?
Sol:
Tp =2.1*103/2.1*108
=10-5 sec
= 10µsec
3) Queuing delay(Tq): Time taken to stay in queue before processing the last packet on receiver.
→ Time spent by the data packet waiting in the queue before it is taken for execution is called
as queuing delay.
→ It depends on the congestion in the network.
4) Processing delay(Tproc): Time taken to process next packet from queue to the processor on
receiver end.
→ Time taken by the processor to process the data packet is called as processing delay.
→ It depends on the speed of the processor.
→ Processing of the data packet helps in detecting bit level errors that occurs during
transmission.
Assistant Professor,
IT Dept.,
MBIT, New V.V.Nagar
Computer NetworksUnit – I
Introduction to computer networks and Internet
→ The data link layer is responsible for moving frames from one hop (node) to the next.
→ Other responsibilities of the data link layer include the following:
Framing.
o The data link layer divides the stream of bits received from the network layer into
manageable data units called frames.
Physical addressing.
o If frames are to be distributed to different systems on the network, the data link layer
adds a header to the frame to define the sender and/or receiver of the frame.
o If the frame is intended for a system outside the sender's network, the receiver address
is the address of the device that connects the network to the next one.
Flow control.
o If the rate at which the data are absorbed by the receiver is less than the rate at which
data are produced in the sender, the data link layer imposes a flow control mechanism
to avoid overwhelming the receiver.
Error control.
o The data link layer adds reliability to the physical layer by adding mechanisms to
detect and retransmit damaged or lost frames.
o It also uses a mechanism to recognize duplicate frames.
o Error control is normally achieved through a trailer added to the end of the frame.
Access control.
o When two or more devices are connected to the same link, data link layer protocols
are necessary to determine which device has control over the link at any given time.
Assistant Professor,
IT Dept.,
MBIT, New V.V.Nagar
Computer NetworksUnit – I
Introduction to computer networks and Internet
▪ Network Layer
→ The network layer is responsible for the source-to-destination delivery of a packet, possibly
across multiple networks (links).
→ Whereas the data link layer oversees the delivery of the packet between two systems on the
same network (links), the network layer ensures that each packet gets from its point of origin
to its final destination.
→ If two systems are connected to the same link, there is usually no need for a network layer.
→ However, if the two systems are attached to different networks (links) with connecting
devices between the networks (links), there is often a need for the network layer to
accomplish source-to-destination delivery.
→ Below Figure shows the relationship of the network layer to the data link and transport
layers.
→ The network layer is responsible for the delivery of individual packets from the source host
to the destination host.
Logical addressing.
o The physical addressing implemented by the data link layer handles the addressing
problem locally.
o If a packet passes the network boundary, we need another addressing system to help
distinguish the source and destination systems.
o The network layer adds a header to the packet coming from the upper layer that,
among other things, includes the logical addresses of the sender and receiver.
Routing.
o When independent networks or links are connected to create inter-networks (network
of networks) or a large network, the connecting devices (called routers or switches
route or switch the packets to their final destination.
o One of the functions of the network layer is to provide this mechanism.
▪ Transport Layer
→ The transport layer is responsible for process-to-process delivery of the entire message.
→ A process is an application program running on a host.
→ Whereas the network layer oversees source-to-destination delivery of individual packets, it
does not recognize any relationship between those packets.
→ It treats each one independently, as though each piece belonged to a separate message,
whether or not it does.
→ The transport layer, on the other hand, ensures that the whole message arrives intact and in
order, overseeing both error control and flow control at the source-to-destination level.
→ Below figure shows the relationship of the transport layer to the network and session layers.
→ The transport layer is responsible for the delivery of a message from one process to another.
→ Reliable process-to-process delivery of a message
Assistant Professor,
IT Dept.,
MBIT, New V.V.Nagar
Computer NetworksUnit – I
Introduction to computer networks and Internet
▪ Session Layer
→ The services provided by the first three layers (physical, data link, and network) are not
sufficient for some processes. The session layer is the network dialog controller.
→ It establishes, maintains, and synchronizes the interaction among communicating systems.
→ The session layer is responsible for dialog control and synchronization.
→ Below Figure illustrates the relationship of the session layer to the transport and presentation
layers.
▪ Presentation Layer
→ The presentation layer is concerned with the syntax and semantics of the information
exchanged between two systems.
→ Below Figure shows the relationship between the presentation layer and the application and
session layers.
Assistant Professor,
IT Dept.,
MBIT, New V.V.Nagar
Computer NetworksUnit – I
Introduction to computer networks and Internet
▪ Application Layer
→ The application layer enables the user, whether human or software, to access the network.
→ It provides user interfaces and support for services such as electronic mail, remote file access
and transfer, shared database management, and other types of distributed information
services.
→ Above Figure shows the relationship of the application layer to the user and the presentation
layer. Of the many application services available, the figure shows only three: XAOO
(message-handling services), X.500 (directory services), and file transfer, access, and
management (FTAM).
→ The user in this example employs XAOO to send an e-mail message.
Summary of layers
28 Prof. Tejal Tandel
Assistant Professor,
IT Dept.,
MBIT, New V.V.Nagar
Computer NetworksUnit – I
Introduction to computer networks and Internet
Assistant Professor,
IT Dept.,
MBIT, New V.V.Nagar