Computer Network Bca 1st Module
Computer Network Bca 1st Module
NETWORKS
PRESENTED BY
DEEPA
INTRODUCTION TO COMPUTER NETWORKS
• Message: It is the data or information which needs to be transferred from one device
to another device over a computer network.
• Sender: Sender is the device that has the data and needs to send the data to other
device connected to the network.
• Receiver: A receiver is the device which is expecting the data from other device on
the network.
Transmission media: In order to transfer data from one device to another device we
need a transmission media such as wires, cables, radio waves etc.
CONTINUATION…….
• Protocol: A protocol is a set of rules that are agreed by both sender and receiver,
without a protocol two devices can be connected to each other but they cannot
communicate. In order to establish a reliable communication or data sharing
between two different devices we need set of rules that are called protocol. For
example, http and https are the two protocols used by web browsers to get and post
the data to internet, similarly smtp protocol is used by email services connected to
the internet.
BASIC COMPONENTS OF COMPUTER NETWORKS
• HUB
• A hub is basically a multiport repeater. A hub connects multiple wires coming from
different branches, for example, the connector in star topology which connects
different stations.
• Hubs cannot filter data, so data packets are sent to all connected devices.
• Also, they do not have intelligence to find out best path for data packets which
leads to inefficiencies and wastage.
BASIC COMPONENTS OF COMPUTER NETWORKS
• BRIDGE:
• A bridge operates at data link layer.
• A bridge is a repeater, with add on the functionality of filtering content by reading
the MAC addresses of source and destination.
• It is also used for interconnecting two LANs working on the same protocol.
• It has a single input and single output port, thus making it a 2 port device.
BASIC COMPONENTS OF COMPUTER NETWORKS
• SWITCHES
• A switch is a multiport bridge with a buffer and a design that can boost its efficiency(a
large number of ports imply less traffic) and performance.
• A switch is a data link layer device.
• The switch can perform error checking before forwarding data, that makes it very
efficient as it does not forward packets that have errors and forward good packets
selectively to correct port only.
• In other words, switch divides collision domain of hosts, but broadcast domain remains
same.
BASIC COMPONENTS OF COMPUTER NETWORKS
• ROUTER
• A router is a device like a switch that routes data packets based on their IP
addresses.
• Router is mainly a Network Layer device.
• Routers normally connect LANs and WANs together and have a dynamically
updating routing table based on which they make decisions on routing the data
packets.
• Router divide broadcast domains of hosts connected through it.
BASIC COMPONENTS OF COMPUTER NETWORKS
• GATEWAY:
• A gateway, as the name suggests, is a passage to connect two networks together
that may work upon different networking models.
• They basically work as the messenger agents that take data from one system,
interpret it, and transfer it to another system.
• Gateways are also called protocol converters and can operate at any network layer.
• Gateways are generally more complex than switch or router.
WHAT IS TOPOLOGY?
• The way in which data is transmitted from one device to another device
is known as transmission mode.
• The transmission mode is also known as the communication mode or
directional mode.
SIMPLEX MODE
• In Full duplex mode, the communication is bi-directional, i.e., the data flow
in both the directions.
• Both the stations can send and receive the message simultaneously.
• The Full-duplex mode is the fastest mode of communication between
devices.
• The most common example of the full-duplex mode is a telephone network
• If there is no dedicated path exists between the devices, then the capacity of
the communication channel is divided into two parts.
COMPUTER NETWORK MODELS
• A computer network consists software and hardware that is used to send and receive
data from one device to another. The role of hardware is to prove the physical
equipment that are required in order to send and receive data while software
defines the set of instructions that uses the hardware equipment for data
transmission. A simple transmission of data consists several steps at various layers
of computer network
• The lowest layer of the OSI reference model is the physical layer.
• It is responsible for the actual physical connection between the devices.
• The physical layer contains information in the form of bits. It is responsible for transmitting
individual bits from one node to the next.
• When receiving data, this layer will get the signal received and convert it into 0s and 1s and
send them to the Data Link layer, which will put the frame back together.
• Hub, Repeater, Modem, Cables are Physical Layer devices
PHYSICAL LAYER
• Line Configuration: It defines the way how two or more devices can be connected physically.
• Framing: The data link layer translates the physical's raw bit stream into packets known as Frames. The
Data link layer adds the header and trailer to the frame. The header which is added to the frame contains
the hardware destination and source address.
• Physical Addressing: The Data link layer adds a header to the frame that contains a destination address.
The frame is transmitted to the destination address mentioned in the header.
• Flow Control: Flow control is the main functionality of the Data-link layer. It is the technique through
which the constant data rate is maintained on both the sides so that no data get corrupted. It ensures
that the transmitting station such as a server with higher processing speed does not exceed the receiving
station, with lower processing speed.
DATA LINK CONTROL
• Error Control: Error control is achieved by adding a calculated value CRC (Cyclic Redundancy
Check) that is placed to the Data link layer's trailer which is added to the message frame
before it is sent to the physical layer. If any error seems to occur, then the receiver sends the
acknowledgment for the retransmission of the corrupted frames.
• Access Control: When two or more devices are connected to the same communication
channel, then the data link layer protocols are used to determine which device has control
over the link at a given time.
NETWORK LAYER
• Network layer works for the transmission of data from one host to the other located in
different networks.
• It also takes care of packet routing i.e. selection of the shortest path to transmit the packet,
from the number of routes available.
• The sender & receiver’s IP address are placed in the header by the network layer.
• Segment in Network layer is referred as Packet
• Network layer is implemented by networking devices such as routers.
NETWORK LAYER
• The Transport layer is a Layer 4 ensures that messages are transmitted in the order in which
they are sent and there is no duplication of data.
• The main responsibility of the transport layer is to transfer the data completely.
• It receives the data from the upper layer and converts them into smaller units known as
segments.
• Connection control: Transport layer provides two services Connection-oriented service and
connectionless service. A connectionless service treats each segment as an individual packet,
and they all travel in different routes to reach the destination. A connection-oriented service
makes a connection with the transport layer at the destination machine before delivering the
packets. In connection-oriented service, all the packets travel in the single route.
• Flow control: The transport layer also responsible for flow control but it is performed
end-to-end rather than across a single link.
• Error control: The transport layer is also responsible for Error control. Error control is
performed end-to-end rather than across the single link. The sender transport layer ensures
that message reach at the destination without any error.
SESSION LAYER
• A Presentation layer is mainly concerned with the syntax and semantics of the information
exchanged between the two systems.
• This layer is a part of the operating system that converts the data from one presentation
format to another format.
• Translation: The processes in two systems exchange the information in the form of character strings,
numbers and so on. Different computers use different encoding methods, the presentation layer
handles the interoperability between the different encoding methods. It converts the data from
sender-dependent format into a common format and changes the common format into
receiver-dependent format at the receiving end.
• Compression: Data compression is a process of compressing the data, i.e., it reduces the number of bits
to be transmitted. Data compression is very important in multimedia such as text, audio, video.
APPLICATION LAYER
• At the very top of the OSI Reference Model stack of layers, we find Application
layer which is implemented by the network applications.
• These applications produce the data, which has to be transferred over the
network.
• This layer also serves as a window for the application services to access the
network and for displaying the received information to the user.
Ex: Application – Browsers, Skype Messenger etc.
• Application Layer is also called as Desktop Layer.
APPLICATION LAYER
• File transfer, access, and management (FTAM): An application layer allows a user to access
the files in a remote computer, to retrieve the files from a computer and to manage the files
in a remote computer.
• Mail services: An application layer provides the facility for email forwarding and storage.
• Directory services: An application provides the distributed database sources and is used to
provide that global information about various objects.
TCP/IP MODEL
NETWORK ACCESS LAYER
• This layer corresponds to the combination of Data Link Layer and Physical Layer of
the OSI model.
• It looks out for hardware addressing and the protocols present in this layer allows
for the physical transmission of data.
INTERNET LAYER
• This layer parallels the functions of OSI’s Network layer. It defines the protocols which are
responsible for logical transmission of data over the entire network. The main protocols residing at
this layer are :
1. IP – stands for Internet Protocol and it is responsible for delivering packets from the source host to
the destination host by looking at the IP addresses in the packet headers. IP has 2 versions:
IPv4 and IPv6. IPv4 is the one that most of the websites are using currently. But IPv6 is growing as
the number of IPv4 addresses are limited in number when compared to the number of users.
2. ICMP – stands for Internet Control Message Protocol. It is encapsulated within IP datagrams and is
responsible for providing hosts with information about network problems.
3. ARP – stands for Address Resolution Protocol. Its job is to find the hardware address of a host from
a known IP address. ARP has several types: Reverse ARP, Proxy ARP, Gratuitous ARP and Inverse
ARP.
TRANSPORT LAYER
• This layer performs the functions of top three layers of the OSI model: Application,
Presentation and Session Layer.
• It is responsible for node-to-node communication and controls user-interface
specifications.
• Some of the protocols present in this layer are: HTTP, HTTPS, FTP, TFTP, Telnet,
SSH, SMTP, SNMP, NTP, DNS, DHCP, NFS, X Window, LPD.
PHYSICAL LAYER
DIGITAL TRANSMISSION
• Data can be represented either in analog or digital form. The computers used the
digital form to store the information. Therefore, the data needs to be converted in
digital form so that it can be used by a computer.
DIGITAL TO DIGITAL CONVERSION
• Digital transmission system sends the voltage pulses over the medium
link such as wire or cable.
• In NRZ encoding, the level of the signal can be represented either positive or negative.
• The two most common methods used in NRZ are:
• NRZ-L: In NRZ-L encoding, the level of the signal depends on the type of the bit that it
represents. If a bit is 0 or 1, then their voltages will be positive and negative respectively.
Therefore, we can say that the level of the signal is dependent on the state of the bit.
• NRZ-I: NRZ-I is an inversion of the voltage level that represents 1 bit. In the NRZ-I
encoding scheme, a transition occurs between the positive and negative voltage that
represents 1 bit. In this scheme, 0 bit represents no change and 1 bit represents a change
in voltage level.
RETURN TO ZERO(RZ)
• Biphase is an encoding scheme in which signal changes at the middle of the bit
interval but does not return to zero. Biphase encoding is implemented in two
different ways:
• Manchester
• It changes the signal at the middle of the bit interval but does not return to zero for
synchronization.
• In Manchester encoding, a negative-to-positive transition represents binary 1, and
positive-to-negative transition represents 0.
BIPHASE
• Differential Manchester
• It changes the signal at the middle of
the bit interval for synchronization,
but the presence or absence of the
transition at the beginning of the
interval determines the bit. A
transition means binary 0 and no
transition means binary 1.
BIPOLAR
• Bipolar encoding scheme represents three voltage levels: positive, negative, and
zero.
• In Bipolar encoding scheme, zero level represents binary 0, and binary 1 is
represented by alternating positive and negative voltages.
• If the first 1 bit is represented by positive amplitude, then the second 1 bit is
represented by negative voltage, third 1 bit is represented by the positive amplitude
and so on. This alternation can also occur even when the 1bits are not consecutive.
ANALOG TO DIGITAL CONVERSION
• Multiplexing is a technique used to combine and send the multiple data streams
over a single medium.
• The process of combining the data streams is known as multiplexing and hardware
used for multiplexing is known as a multiplexer.
• Multiplexing is achieved by using a device called Multiplexer (MUX) that combines n
input lines to generate a single output line. Multiplexing follows many-to-one, i.e., n
input lines and one output line.
• Demultiplexing is achieved by using a device called Demultiplexer (DEMUX)
available at the receiving end. DEMUX separates a signal into its component signals
(one input and n outputs).
NEED OF MULTIPLEXER
• The transmission medium is used to send the signal from sender to receiver. The
medium can only have one signal at a time.
• If there are multiple signals to share one medium, then the medium must be divided
in such a way that each signal is given some portion of the available bandwidth. For
example: If there are 10 signals and bandwidth of medium is100 units, then the 10
unit is shared by each signal.
• When multiple signals share the common medium, there is a possibility of collision.
Multiplexing concept is used to avoid such collision.
MULTIPLEXING AND DEMULTIPLEXING
• It is an analog technique.
• Frequency Division Multiplexing is a technique in which the available
bandwidth of a single transmission medium is subdivided into several
channels.
• The main aim of the FDM is to subdivide the available bandwidth into
different frequency channels and allocate them to different devices.
• Using the modulation technique, the input signals are transmitted into
frequency bands and then combined to form a composite signal.
• FDM is mainly used in radio broadcasts and TV networks.
FDK(FREQUENCY DIVISION MULTIPLEXING)
• Advantages Of FDM:
• FDM is used for analog signals.
• FDM process is very simple and easy modulation.
• A Large number of signals can be sent through an FDM simultaneously.
• It does not require any synchronization between sender and receiver.
• Disadvantages Of FDM:
• FDM technique is used only when low-speed channels are required.
• It suffers the problem of crosstalk.
• A Large number of modulators are required.
• It requires a high bandwidth channel.
WAVE DIVISION MULTIPLEXING(WDM)
• Wavelength Division Multiplexing is same as FDM except that the optical signals are
transmitted through the fiber optic cable.
• WDM is used on fiber optics to increase the capacity of a single fiber.
• It is used to utilize the high data rate capability of fiber optic cable.
• It is an analog multiplexing technique.
• Optical signals from different source are combined to form a wider band of light
with the help of multiplexer.
WAVE DIVISION MULTIPLEXING(WDM)
• It is a digital technique.
• In Frequency Division Multiplexing Technique, all signals operate at the same time with
different frequency, but in case of Time Division Multiplexing technique, all signals operate
at the same frequency with different time.
• In Time Division Multiplexing technique, the total time available in the channel is
distributed among different users. Therefore, each user is allocated with different time
interval known as a Time slot at which data is to be transmitted by the sender.
• In Time Division Multiplexing technique, data is not transmitted simultaneously rather the
data is transmitted one-by-one.
• In TDM, the signal is transmitted in the form of frames. Frames contain a cycle of time slots
in which each frame contains one or more slots dedicated to each user.
• It can be used to multiplex both digital and analog signals but mainly used to multiplex
digital signals.
• There are two types of TDM:
• Synchronous TDM
• Asynchronous TDM
TIME DIVISION MULTIPLEXING