Computer Networks Course Outline
Computer Networks Course Outline
IN
C
Faculty:
N
SY
BCS502 – COMPUTER NETWORKS Prof. Ashok Herur ashok.
U
VT herur@[Link]
Course outline
Module 1:
.IN
Introduction: Data Communications, Networks, Network Types, Networks
C
Models: Protocol Layering, TCP/IP Protocol suite, The OSI model, Introduction to
N
Physical Layer: Transmission media, Guided Media, Unguided Media: Wireless.
Switching: Packet Switching and its types.
SY
Module 2:
U
Data Link Layer: Error Detection and Correction: Introduction, Block Coding,
VT
Cyclic Codes. Data link control: DLC Services: Framing, Flow Control, Error
Control, Connectionless and Connection Oriented, Data link layer protocols, High
Level Data Link Control. Media Access Control: Random Access, Controlled
Access. Check Sum and Point to Point Protocol
Module 3:
.IN
Network Layer: Network layer Services, Packet Switching, IPv4 Address, IPv4
C
Datagram, IPv6 Datagram, Introduction to Routing Algorithms, Unicast Routing
N
Protocols: DVR, LSR, PVR, Unicast Routing protocols: RIP, OSPF, BGP, Multicasting
SY
Routing-MOSPF
U
Module 4: VT
Transport Layer: Introduction, Transport-Layer Protocols: Introduction, User
Datagram Protocol, Transmission Control Protocol: services, features, segments,
TCP connections, flow control, Error control, Congestion control.
Module 5:
.IN
Application Layer: Introduction, Client-Server Programming, Standard
C
ClientServer Protocols: World Wide Web and HTTP, FTP, Electronic Mail, Domain
N
Name System (DNS), TELNET, Secure Shell (SSH).
SY
U
VT
.IN
- Behrouz A. Forouzan
C
Tata McGraw Hill,2013, 5th Edition
N
SY
2. Computer Networks
U
Pearson Education, 5th Edition.
VT
.IN
• Theory part: 25 marks
C
• Two Internal assessments – 15 marks
N
• Assignments and Quizzes – 10 marks
SY
• Should score a Minimum of 40% of the above maximum marks (10 marks out of 25)
U
• Lab part: 25 marks VT
• Conduction of experiments and Record writing – 15 marks
• Lab test – 10 marks
• Should score a Minimum of 40% of the above maximum marks (10 marks out of 25)
.IN
• Will have 5 either / or questions – One from each module, to be answered in 3 hours.
C
N
• Minimum passing mark for the SEE is 40% of the maximum marks (20 marks)
SY
• For an overall Pass grade, one must score a minimum of 40% of the CIE and
U
SEE marks taken together. VT
.IN
C
Introduction to Networks,
N
SY
&
U
VT Physical layer
• Data Communications,
.IN
• Networks, and Network Types,
C
• Network Models: Protocol Layering
N
SY
• The OSI model
U
• TCP/IP Protocol suite VT
• Introduction to Physical Layer: Transmission media, Guided Media, Unguided
Media: Wireless.
• Switching: Packet Switching and its types.
.IN
• Benefits:
C
• Resource sharing
N
• Data sharing: Consistency, Easy updating, Saving of storage space
SY
• Software sharing: Saving of cost and storage space
U
• Peripheral sharing: Saving of cost
VT
• Electronic communication: Fast, cheap, secure, convenient
• Higher reliability and easy scalability compared to a single large computer
• Cost-benefit ratio is better compared to a single large computer.
.IN
C
• Why can’t it be used for data communication?
N
• In fact, in the late 90’s, it was used in the form of “dial-up” connections
SY
that offered a bandwidth (bit-rate) of 64kbps.
U
• Later, DSL (Digital Subscriber Link) technology was used on the same
VT
infrastructure to offer a much higher data rate.
.IN
• Voice is continuous, while data is usually discrete
C
N
• Latency has to be very low in Voice networks
SY
• Zero tolerance for Jitter, in Voice networks
U
VT
• Error control is very important in data communication
.IN
• LAN: Local Area Network
• MAN: Metropolitan Area Network
C
• WAN: Wide Area Network
N
SY
• Based on transmission technology:
• Point-to-point Network
U
• Broadcast Network VT
• Based on ownership:
• Private Network
• Public Network
• LAN is a privately owned network that operates within a single building (office
.IN
or factory) or a few nearby buildings (university campus).
C
• LANs connect many PCs and other peripherals (printers, etc) to exchange
N
SY
information between them.
U
combination of the two.
VT
• Typically, wired LANs run at speeds of 100 Mbps to 1 Gbps, have a very low
delay (milliseconds) and encounter very few transmission errors.
.IN
• While the older Bus-based topology enabled a Broadcast transmission, the
C
newer version, Switched Ethernet, is based on many point-to-point links.
N
SY
U
VT
• Wireless LANs (WLAN) use an Access Point (Wireless Router) to transfer data
.IN
packets between the devices and to the wired network.
C
N
SY
U
VT
.IN
• The current day MANs evolved from the Cable TV networks that were
C
established in cities to overcome the poor over-the-air television reception.
N
SY
• They used some unused part of the cable spectrum to provide 2-way internet
service.
U
VT
• Data Over Cable Service Interface Specifications (abbreviated as DOCSIS) is a
globally-recognized telecommunications standard that enables high-
bandwidth data transfer via existing coaxial cable systems.
.IN
C
N
SY
U
VT
• WiMAX or Worldwide Interoperability for Microwave Access, is another MAN
technology aimed at providing wireless data over longer distances (compared
to WiFi) in a variety of ways.
Computer Networks - Prof Ashok Herur 18
Wide Area Network (WAN)
.IN
• The Internet is the interconnection of many WANs (who wish to be a part of it)
C
N
• The communication links and the switches (routers) that enable
SY
communication between the end devices (called ‘hosts’) together make up
what is termed as sub-net.
U
VT
• The transmission of messages is in the form of packets, using packet switching.
• Voice messages are typically sent using Circuit switching.
.IN
• This is dedicated till the communication is disconnected (like a voice call).
C
N
• Results in low latency and zero jitter.
SY
• Drawbacks:
U
• Set-up time (to establish the connection);
VT
• A huge wastage of Bandwidth when the data transfer is ‘bursty’ (as it
usually is).
.IN
C
N
SY
U
VT
.IN
• The message is divided into small ‘packets’.
C
N
• Each packet has information of the message to which it belongs, as well as the
SY
destination address.
U
• They are received, processed and forwarded by routers in the network.
VT
• At each router, an incoming packet is stored in a buffer (queue), processed
(destination address is seen and analysed) and forwarded on the link that is
seen as part of the best route to the destination.
• Advantages:
.IN
• Since the bandwidth of a link is not dedicated (but shared with packets
C
from other hosts), the utilisation of the bandwidth is much higher.
N
• No set-up time.
SY
• Drawbacks:
U
• Higher latency (due to waiting time at each of the routers).
VT
• Since different packets of the same message may take different routes,
they may not all take the same time to reach the destination (Jitter).
• Packets may not reach the destination in the proper sequence.
.IN
C
N
SY
U
VT
.IN
C
N
SY
U
VT
.IN
including the Internet.
C
• In another method, called Virtual Circuit Packet Switching, all the packets of a
N
message take the same route (called the Virtual Circuit or VC).
SY
• This route is decided before the first packet is transmitted and the routing
U
information conveyed to the routers (they are called Switches in this case)
VT
along the route.
• Each router (switch) examines the VCI (VC identifier – a globally unique
number) in the packet and forwards it on the appropriate link.
Computer Networks - Prof Ashok Herur 26
Virtual Circuit (VC) Packet switching
.IN
C
N
SY
U
VT
.IN
• However, some time has to be spent in the beginning to establish the VC and
C
perform the ‘handshake’ with the receiver (informing about the transfer of
N
message packets with a particular VCI).
SY
• In a variation called Permanent Virtual Circuit (PVC) Packet Switching, the VC
U
need not be identified for each message between A and B. It is fixed forever,
VT
unless changed.
• This is used, for example, to connect 2 offices with a lot of continuous data
flow between them.
Computer Networks - Prof Ashok Herur 28
Virtual Circuit (VC) Packet switching
• As part of the deal with the network operator, a certain QoS is ensured.
.IN
• QoS parameters generally include a minimum Bandwidth and an average
C
Bandwidth, along with an average transmission time.
N
SY
• VC networks are relatively costly to implement.
U
VT
N
SY
U
VT
.IN
reference framework for the design of networks.
C
• The task of transmitting data between computers is divided among seven
N
‘layers’.
SY
• While the hosts have all the 7 layers implemented in them, other devices may
U
have less than 7 layers. VT
• The model adopts a Hierarchical format.
• Main characteristics:
.IN
• Each layer has a well-defined function to accomplish.
C
• Each layer is implemented with a combination of hardware and software.
N
• A lower layer provides a service to the one above it (in the hierarchy).
SY
• Each layer has it’s own Protocol, that is transparent to the layers above it.
U
• The OSI Reference Model only provides a framework and does not define
VT
the actual implementation or the protocols to be used.
.IN
Protocol L3
Person 1 Person 2
C
N
Office 1 Office 2
Protocol L2
SY
Translator 1 Translator 2
U
VT
Protocol L1
Clerk 1 Clerk 2
.IN
Protocol L3
Person 1 Person 2
C
N
SY
Office 1 Protocol L2 Office 2
Translator 1 Translator 2
U
Intermediate office
VT
Protocol L1 Pr. L1
Pr. L1
Clerk 1 Clerk 3 Clerk 2
.IN
C
N
SY
U
VT
.IN
Messengers, etc)
C
• Functions:
N
• File management by allowing users to access, retrieve and manage the files
SY
on a remote computer.
• Allows users to send and receive emails.
U
• Provides distributed database sources and global information about
VT
several objects.
• Protocols used: SMTP, POP3, FTP, HTTP, SNMP.
.IN
understood by the network components.
• For example, translation of the characters using ASCII or EBCDIC.
C
N
• At the transmitter side, it encrypts the data, and decrypts it back into plain text
SY
on the receiver side.
• Protocols used: RSA, AES, DES, etc
U
• It compresses data and reduces the number of bits needed for network
VT
transmission.
• Protocols used: JPEG, MPEG, GIF, etc
.IN
• The layer takes care of the establishment, use, and termination of a
C
connection.
N
• It adds checkpoints as synchronization points into the data for identifying the
SY
errors easily and thus avoiding data loss at the end points.
U
• It also decides whether the 2 systems interact with each other in half-duplex
or full-duplex mode.
VT
.IN
• It accepts data and breaks it down into smaller units (called ‘segments’) while
C
sending. It reassembles the segments on the receiving side.
N
• It follows a service point (Port) address to deliver the message to the correct
SY
process; Multiple processes could be running in the PC at the same time.
U
• It takes care of Flow Control and thus prevents a fast sender from swamping a
VT
slow receiver.
• This layer provides the reliable Connection-oriented service (TCP protocol) as
well as the not-so-reliable Connectionless service (UDP protocol).
.IN
• Routing: The network layer protocols determine the ‘best’ route to take the
C
packets (segment + network layer header) from source to destination.
N
• These protocols work between 2 adjacent network devices like routers.
SY
• Congestion control: To ensure a smooth and orderly flow of data across the
network.
U
VT
• Logical Addressing: The network layer defines and implements an addressing
scheme (IPv4, IPv6) to uniquely identify every single device on the Internet.
.IN
patterns.
C
• It adds physical (MAC) addresses of both sender and receiver in every frame.
N
• This layer controls error by using error-detection and error-correction codes.
SY
• It controls the data flow over a link.
U
• When a single communication channel is shared by multiple devices, the MAC
VT
sub-layer of the data link layer helps to determine which device has control
over the channel at a given time.
.IN
waves, etc) to be transmitted on the physical transmission medium.
C
• It enables bit synchronization using a clock to prevent loss of bits.
N
• It determines the transmission rate / bit rate (bits sent per second).
SY
• It decides the ideal topology for interconnection of the nodes (Bus, Star, Mesh,
U
etc) VT
• The physical layer consists of – Hub, Repeater, Modem, and Cables.
.IN
C
N
SY
U
VT
.IN
C
N
SY
U
VT
.IN
• This model, defined in the 1960’s (much before the OSI model), is widely used
C
(including on the Internet).
N
• The top 3 layers of the OSI Reference model are combined into one layer here.
SY
• Similarly, the lowest 2 layers of the OSI model are combined into one layer.
U
• OSI model tried to segregate the various functions as minutely as possible; But
VT
in practice, there were a few ambiguities and overlaps between the functions
of adjacent layers.
.IN
C
N
SY
U
VT
N
SY
U
VT
.IN
receiver.
C
• Common transmission media:
N
• Twisted wire pair (TWP)
SY
• Coaxial cable (Coax)
• Optical fibre
U
• Space (Wireless transmission) VT
• The transmission medium is also referred to as Communication Channel or
Link.
.IN
• carries message in the form of an electrical signal.
C
• Coaxial cable
N
• carries message in the form of an electrical signal.
SY
• Space
• The message travels through space as an electromagnetic signal.
U
VT
• Optical fiber
• The optical fiber carries the message as a light signal.
• It has a very high bandwidth and very low error rate.
.IN
media.
C
• Extensively used in the last-mile
N
connectivity in landline telephone
SY
networks.
• Low bandwidth compared to Coax and
U
fibre. VT
• Also used in LANs (to connect PCs to the
Hub).
.IN
• Much higher bandwidth and better noise immunity, compared to wire pairs.
C
• Also used in Cable TV networks, and as a Bus in the older Ethernet LANs.
N
SY
U
VT
• The electric signals sent on copper lines (wire pair and coax cables) suffer
.IN
from:
• Power loss (attenuation)
C
N
• Distortion of the sharp pulses (representing the 1’s and 0’s)
SY
• Electrical Noise from the environment.
• Distortion in a signal is the change of the shape or some other characteristic
U
of the waveform. It depends on the characteristics of the media.
VT
• Noise is an external random (unpredictable) signal added to the original
signal.
.IN
C
Original
N
Distorted
SY
Noisy
U
VT
t
.IN
• Repeaters receive weak and noisy signals and retransmit strong and clean
C
pulses.
N
• Transmission errors occur mainly because of impulsive noise (that cannot be
SY
predicted or controlled).
U
VT
T RR
.IN
• The refractive index of the cladding is higher than that of the core.
C
• The electrical signal is converted to a light signal by means of a specialised
N
LED or Laser, and is then transmitted into the core of the fibre.
SY
• The light signal propagates in the core due to “Total Internal Reflection”, even
U
around bends. VT
• They offer a high bandwidth and have a very low Error Rate (10-12 and 10-14)
• The power loss is also very low, thereby needing fewer ‘regenerative
repeaters’ along the way.
Computer Networks - Prof Ashok Herur 55
Optical fibre
.IN
C
N
SY
U
VT
.IN
C
N
SY
U
VT
.IN
single, larger capacity transmission line.
C
• It results in a huge cost saving and better utilization of the large bandwidth.
N
• Common types of multiplexing :
SY
• Time Division Multiplexing (TDM)
U
• Different signals are transmitted in different time-slots
VT
• Frequency Division Multiplexing (FDM)
• Different signals are transmitted using different frequencies
• Wavelength Division Multiplexing (WDM)
.IN
A A
C
N
SY
Trunk line
B MUX DEMUX B
U
VT
C C
.IN
C
N
SY
U
VT
.IN
signal, of a particular assigned frequency, and is then radiated into space.
C
• The receiving antenna would convert the e.m. signal to an electrical one.
N
• Space (wireless) transmission is used in many applications:
SY
• Radio and TV broadcasts
U
• Microwave transmission VT
• Satellite communication
• Cellular (phone) networks
• Navigation (airplanes and ships), ….
.IN
high-frequency waveform, called the carrier signal, with a separate signal
called the modulation signal that typically contains information to be
C
transmitted.
N
SY
• Modulation is done to make the digital signal suitable for long distance
transmission on the media (both wireline and wireless)
U
• In the case of wireless transmission, this takes care of sending multiple
VT
messages in the same space, as well as to reduce the power loss.
• In the case of wireline transmission, modulation helps implement FDM.
.IN
• Amplitude Modulation (AM)
C
• Frequency Modulation (FM)
N
• Phase Modulation (PM)
SY
• Digital modulation techniques (when the message is Digital):
U
• Amplitude Shift Keying (ASK)
• Frequency Shift Keying (FSK)
VT
• Phase Shift Keying (PSK)
.IN
C
N
SY
U
VT
• Topology refers to the way the various devices are connected in a network.
.IN
• Common topologies are:
C
• Bus topology;
N
• Star topology;
SY
• Ring topology;
U
• Mesh topology.
VT
• While the first 3 are used in a LAN or MAN, the Mesh topology is used in the
WAN.
.IN
single, bi-directional cable
C
• It is a broadcast in nature.
N
• Not a robust topology because if the
SY
backbone (Bus) fails the network
U
crashes.
VT • Various MAC (Media Access Control)
protocols are followed to allow the
devices to transmit on the Bus.
.IN
exactly two neighbouring devices.
C
• A repeater is used at every node.
N
• The data flows in a fixed direction.
SY
• The failure of a single node in the
U
network can cause the entire network
VT to fail.
• Various MAC protocols are followed to
allow the devices to transmit on the
Ring.
.IN
single hub through a cable.
C
• This hub forwards the messages to the
N
other nodes.
SY
• It can be passive (broadcast) or active
U
(with repeaters) in nature.
VT • If one link fails only that link will be
affected. If the Hub fails, the network
crashes.
• Easy to identify and isolate faults.
.IN
the other devices directly.
C
• Internet backbone uses mesh topology,
N
where various ISPs are connected to each
SY
other via dedicated channels.
• Very robust, since an alternate route can
U
VT be found in case of a link failure.
• Hence, also used in defence applications.