0% found this document useful (0 votes)
16 views

Module 1.1 To 1.3 - IntroductionToNetworking

The document provides an overview of computer networks and networking concepts. It discusses topics like communication systems, network topologies, types of networks including LAN, MAN and WAN, switching, network models and more. The document is intended as an introduction to networking module.

Uploaded by

om.ghadia25
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Module 1.1 To 1.3 - IntroductionToNetworking

The document provides an overview of computer networks and networking concepts. It discusses topics like communication systems, network topologies, types of networks including LAN, MAN and WAN, switching, network models and more. The document is intended as an introduction to networking module.

Uploaded by

om.ghadia25
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 109

Computer Networks

Module 1
Introduction to Networking
Outline
• Communication System
• Basic Concepts
• Line Configuration
• Transmission mode
• Types of Networks
• Network Topology
What is Networking?

In simple term “ A network is simply a collection of computers


or other hardware devices that are connected together, either
physically or logically using special hardware and software in order to
exchange information.”

And Networking is term that describes the process involved in design,


implementation, management of network using network technology.
Introduction to Communication System

• Data Communication is a process of exchanging data or information


and in case of computer networks it done in between two or more
devices over a transmission medium.
• Communication system consists of Hardware and Software.
• Hardware: Sender, Receiver and Intermediate devices
• Software: Set of rules and protocols that need to satisfied.
Components of Data Communication
• Components:
• Message
• Sender
• Receiver
• Transmission Medium
• Protocols
Elements Of Communication System
Data Flow

• Simplex

• Half-Duplex

• Full Duplex
Network Criteria
• Performance:
 Can be measured in terms of
• Transit time
• Response time
 Evaluated by two networking metrics: Throughput & Delay
• Reliability: measured by frequency of failure, time taken by link to
recover from failure and network robustness ion catastrophe

• Security: Securing data from unauthorized access, protecting data


from damage, implementing policies, recovery from breaches and data
loss.
Physical Structures
Type of Connections:
• Point-to-Point connection:
• Provides dedicated link between two
devices
• Entire link capacity is reserved
between two devices
• Multipoint (Multidrop):
• More than two devices share a single
link.
• Capacity of channel is shared
• Channel is shared either Spatially or
Timeshared.
Physical Topology
Physical Topology refers to a way in which network is laid out physically.

Topology is geometric representation of relationship of all the links and


linking devices (also called nodes) to one another.
There are Four basic Topologies:
• Mesh
• Star
• Bus
• Ring
Mesh Topology
• Every device has a dedicated point-to-point link to every other device.

• Link carries traffic only between the two devices it connects.

• Total number of physical links in a fully connected mesh network with n


nodes is equal to n(n-1).

• In case of communication in both direction : n(n-1)/2 duplex node links.

• Every device on network must have (n-1) input/output (I/O) ports.


Mesh Topology
• Advantages
• No traffic problems
• Robust
• Privacy and security
• Point to point link: fault identification and
isolation is easy
• Disadvantages
• Installation and reconnection difficult as devices
interconnected.
• Bulk wiring
• Expensive: hardware cost
Star Topology
• each device has a dedicated point-to-point link only to a central controller,
usually called a hub.

• devices are not directly linked to one another.

• star topology does not allow direct traffic between devices.

• The controller acts as an exchange, it relays the data to the other connected
device.

• The star topology is used in local-area networks (LANs)


Star Topology
Advantages
• Less expensive than mesh
• Reconfiguration and installation is easy.
• Robustness
• Easy fault identification as long as hub is working
Disadvantages
• Dependency on single point controller.
• Each node must be linked to hub: more cabling required
compared to other topologies except mesh.
Bus Topology
• A bus topology is multipoint connection.

• One long cable acts as a backbone to link all the devices in a network.

• Nodes are connected to the bus cable by drop lines and taps.

• A drop line is a connection running between the device and the main cable.

• A tap is a connector that either splices into the main cable or punctures the
sheathing of a cable to create a contact with the metallic core.
Bus Topology

Advantages
• Ease of installation: less cabling as compared to mesh and star.
• A bus uses less cabling than mesh or star topologies
Disadvantages
• It is Difficult to add new devices.
• Difficult reconfiguration and fault isolation.
• A fault in Backbone stops all transmission
• Limited cable length and number of nodes that can be connected.
Ring Topology

• Each device has a dedicated point-to-point connection with only


the two devices on either side of it.

• A signal is passed along the ring in one direction, from device to


device, until it reaches its destination.

• Each device in the ring incorporates a repeater.


Ring Topology
Advantages
• Easy to install and reconfigure.
• Easy adding and deleting of connections.
• Fault isolation simplified: devices can
raise the alarm.
Disadvantages
• Unidirectional traffic can be a
disadvantage.
• Breakdown in ring disables the entire
network.
Types of Networks
• Local Area Network (LAN)

• Metropolitan Area Network(MAN)

• Wide Area Network(WAN)


Local Area Networks
• A local-area network (LAN) is a computer network that spans a
relatively small area.

• A local area network (LAN) is usually privately owned and links the
devices in a single office, building, or campus.

• LAN size is limited to a few kilometers.


Local Area Networks
• LANs are designed to allow resources to be shared between personal
computers or workstations.
Example: hardware or software

• One of the computers may be given a large capacity disk drive and may
become a server to clients.

• LAN extends up to 10m to 1km


Local Area Networks
• LANs are distinguished from other types of networks by their
transmission media and topology.

• Speeds: 100 or 1000 Mbps.


Metropolitan Area Networks
• Metropolitan Area Network usually covers area inside a town or a city.
• It is designed for customers who need a high-speed connectivity,
normally to the Internet, and have endpoints spread over a city or part
of city.
Example: cable TV network
• MAN extends up to 30-40 km.
• Speed of 34–155 Mbit/s.
• MAN uses Guided Media or Unguided media.
Metropolitan Area Networks
Wide Area Networks
• 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.

• WAN (Wide Area Network) is a group of computers and other network


devices which are connected and not restricted to a geographical
location.

• Internet is WAN.
Wide Area Networks

• WAN speed varies based on geographical location of the servers. WAN


connects several LANs.

• WAN connection speeds can be 10Mbps or 100Mbps.

• WAN mainly uses Guided Media or Unguided media.


Wide Area Networks
Internet
Switching
An internet is a switched network in which a switch connects at least two
links together

The two most common types of switched networks are circuit-


switched and packet-switched networks.
• Circuit-Switched Network
• Packet Switched network
Switching

A Circuit Switched network

A Packet Switched network


The Internet Today
Network Models

Protocol Layering:

• ISO OSI Model

• TCP/IP model
Design Issues for Layers
Addressing - whom am I going to talk to? i.e., how do we identify
senders and receivers?

Rules for data transfer: Simplex (one-way channels), half-duplex (two-


way communication but not simultaneously) and full duplex (2 way)

Logical channels: usually at least 2. One for normal mode and one for
urgent transmission.
Design Issues for Layers
Reconstituting messages: Out of order messages need to be
numbered.(Flow Control)

Error control: This is all about communicating along imperfect channels


and error correction in such cases. (Issues: Attenuation, delay distortion
and noise).

Large messages: Procedures for disassembling, transmitting and


reassembling. What to do when messages are very small (compared to
packet)?
Design Issues for Layers
Multiplexing: One connection per conversation or many on one
connection. Important in physical layer where only a few lines are
available

Routing: What to do when there are multiple paths between


communicating machines
Connection Less Services

• No session connection between sender and receiver.


• No reliability
• Short messages
• Does not maintain state information.
• Less overhead
• Example: Walkie-Talkie
Connection Oriented Services

• Requires session connection (analogous to a phone call).


• Reliable network service.
• Set up virtual links between the end systems through a network.
• Long messages.
• High overhead and places greater demands on B/W.
• Example: Email
Difference
S.NO Connection-oriented Service Connection-less Service
Connection-oriented service is related to the telephone
1. Connection-less service is related to the postal system.
system.

Connection-oriented service is preferred by long and steady Connection-less Service is preferred by bursty
2.
communication. communication.

3. Connection-oriented Service is necessary. Connection-less Service is not compulsory.

4. Connection-oriented Service is feasible. Connection-less Service is not feasible.

5. In connection-oriented Service, Congestion is not possible. In connection-less Service, Congestion is possible.

Connection-oriented Service gives the guarantee of Connection-less Service does not give a guarantee of
6.
reliability. reliability.

In connection-oriented Service, Packets follow the same In connection-less Service, Packets do not follow the same
7.
route. route.

Connection-oriented services require a bandwidth of a high Connection-less Service requires a bandwidth of low
8.
range. range.

9. Ex: TCP (Transmission Control Protocol) Ex: UDP (User Datagram Protocol)

10. Connection-oriented requires authentication. Connection-less Service does not require authentication.
Difference -Example
Reliable and un-reliable services
Reliable and un-reliable services
The OSI model

• Over the past couple of decades many of the networks that were
built used different hardware and software implementations, as a
result they were incompatible, and it became difficult for networks
using different specifications to communicate with each other.

• The Open System Interconnection (OSI) model includes a set of


protocols that allows any two systems to communicate regardless of
their architecture.
The OSI model

• The OSI model is a concept that describes, how data communications


should take place.

• OSI is also called as the framework for design of network systems.

• It divides the process into seven steps called layers.


OSI

Ref: https://community.fs.com/blog/tcpip-
vs-osi-whats-the-difference-between-the-
two-models.html
The OSI model
The OSI model
Physical Layer

• The physical layer deals with the physical characteristics of the


transmission medium.

• This layer consists of simply the wire or media by which the network
signals are conducted.

• The physical layer of the OSI model defines connector and interface
specifications, as well as the medium (cable) requirements for
transmission to occur.
Physical Layer
Functions of physical layer:

• Physical characteristics of interfaces and medium.


• Representation of bits: Conversion from binary to electrical or
optical.
• Data rate.
• Synchronization of bits.
• Physical topology
• Line configuration: point to point or multipoint.
Physical Layer
Data Link Layer

• The data link layer transforms the physical layer, a raw transmission
facility, to a reliable link.
• Node to node delivery (Hop to Hop Delivery)
• The data link layer uses the MAC address to define a hardware or
data link address for multiple stations to share the same medium and
still uniquely identify each other.
• Concerned with network topology, network access, error notification,
ordered delivery of frames, and flow control.
Data Link Layer
Functions of Data Link layer:
• Framing

• Physical addressing: adding header to frame to identify sender and


receiver address.

• Flow control

• Error control

• Access control
Data Link Layer
Data Link Layer
Hop-to-Hop Delivery
Network Layer
• This layer establishes the route between the sending and receiving
stations.

• Responsible for delivery of individual packets from source to


destination.

• Two systems connected on same link-no network layer.

• Two systems on different link-need network layer


Network Layer
• It handles the routing of data (sending in the right direction to the
right destination on outgoing transmissions and receiving incoming
transmission at the packet). The layer does routing & forwarding of
data.

• Network layer addresses can also be referred to as logical


addresses.
Network Layer
Functions of network layer:
• Logical addressing:
 Data link layer physical addressing-handles addresses locally.
 Packet crosses network boundary-IP addressing.

• Routing : Routing packets to destination via connecting devices


over large networks.
Network Layer
Network Layer Example
Source-to-destination
delivery
Transport Layer

• The transport layer is responsible for the delivery of a


message from one process to another.

• Transport layer recognizes relationship between the packets


and makes sure that the whole message arrives intact and
in order.

• It is responsible for constructing stream of data segments,


sending and checking for correct delivery.
Transport Layer

• If data is sent incorrectly, this layer has the responsibility to


ask for retransmission of the data.

• This layer acts as an interface between the bottom and top


three layers.
Transport Layer

Responsibilities of transport layer:


• Service-point addressing: Port Address(process to process).
 Network layer gets each packet to correct computer.
 Transport layer gets each packet to correct process on
that computer.
• Segmentation and reassembly: Message divided into
segments-sequence number
• Retransmission in case of lost segment.
Transport Layer

Responsibilities of transport layer:


• Connection control: Connection-less or connection-oriented.

• Flow control : flow control at this layer is performed end to


end rather than across a single link.

• Error control: error control at this layer is performed


process-to-process rather than across a single link.
Transport Layer
Reliable process-to-process delivery of a
message

 The McGraw-Hill Companies, Inc., 1998


Session Layer

• The services provided by the first three layers (physical, data


link, and network) are not sufficient for some processes.

• The session layer defines how to start, control and end


conversations (called sessions) between applications.

• It provides coordination of the communication in an ordering


manner.
Session Layer

• The session layer offers provisions for efficient data transfer.

Responsibilities of the session layer:


• Dialog control : The session layer allows two systems to enter
into a dialog.

• Synchronization: allows to add checkpoints.


Session Layer

 The McGraw-Hill Companies, Inc., 1998


Presentation Layer

• The presentation layer ensures that the information that the


application layer of one system sends out is readable by the
application layer of another system.

• If necessary, the presentation layer translates between


multiple data formats by using a common format.

• The presentation layer basically allows an application to read


(or understand) the message.
Presentation Layer

Responsibilities of presentation layer:


• Translation: Changes data so that another computer can read
it.

• Compression: Makes data smaller to move data in same


amount of time.

• Encryption: Encodes data to protect from interception.


Presentation Layer

 The McGraw-Hill Companies, Inc., 1998


Application Layer

• The application layer enables the user, whether human or


software, to access the network.

• It provides user interfaces and support – email, shared


database , access to remote file etc.

• It differs from the other layers in that it does not provide


services to any other OSI layer, but rather, only to
applications outside the OSI model.
Application Layer
Summary of Layer Functions

 The McGraw-Hill Companies, Inc., 1998


TCP/IP Model
• Developed prior to OSI model

• TCP/IP is a hierarchical protocol made up of interactive


modules, each providing specific functionality, but they are
not interdependent

 The McGraw-Hill Companies, Inc., 1998


TCP/IP PROTOCOL SUITE
• TCP/IP protocol suite is made of five layers:
Application Layer

Transport Layer

Network Layer

Data Link Layer


HOST-to-NETWORK Layer
Physical Layer

 The McGraw-Hill Companies, Inc., 1998


TCP/IP PROTOCOL SUITE

 The McGraw-Hill Companies, Inc., 1998


Network Layer
• TCP/IP does not support any specific protocol

• All standard and proprietary protocols supported at this level.

• At this level TCP/IP supports Internetworking protocol(IP).

IP in turn uses 4 supporting protocols.


 ARP
 RARP
 ICMP
 IGMP

 The McGraw-Hill Companies, Inc., 1998


Network Layer

• Internetworking Protocol (IP)


 IP is transmission mechanism used by TCP/IP
 Unreliable and connection-less protocol- best effort delivery
 No error checking or tracking.
 Transports data in packets called datagrams.
 Does not keep track of routes and no facility reordering.

 The McGraw-Hill Companies, Inc., 1998


Network Layer
Address Resolution Protocol (ARP)
• Associates logical address with physical address.
• ARP is used to find physical address of node when logical
address is known.

Reverse Address Resolution Protocol (RARP)


• RARP is used to find logical address of node when physical
address is known.
• Usually used when computer is connected to network for the
first time.

 The McGraw-Hill Companies, Inc., 1998


Network Layer
Internet Control Message Protocol (ICMP)

• Used by hosts and gateways to send notification of datagram


problem to sender.

Internet Group Message Protocol (IGMP)

• Used to facilitate simultaneous transmission of message to


group of recipients.

 The McGraw-Hill Companies, Inc., 1998


Transport Layer

• IP is host to host protocol

Transport layer has three protocols:


• UDP (User Datagram Protocol)
• TCP (Transmission Control Protocol)
• SCTP (Stream Control Transmission Protocol)

 The McGraw-Hill Companies, Inc., 1998


Transport Layer

User Datagram Protocol (UDP):


• Process to Process
• Adds only port address , error control , checksum etc. to data from
upper layers.

 The McGraw-Hill Companies, Inc., 1998


Transport Layer
Transmission Control Protocol (TCP)
• Reliable stream protocol.
• Data is divided into segments.
• Segment contain sequence number for reordering.
• At receiving end , TCP collects each datagram and reorders it based
on sequence numbers

Stream Control Transmission Protocol (SCTP)


• Combines features of TCP and UDP

 The McGraw-Hill Companies, Inc., 1998


TCP Connection Oriented
• Usual transport layer is Transmission Control Protocol
– Reliable connection
• Connection
– Temporary logical association between entities in different systems
• TCP PDU
– Called TCP segment
– Includes source and destination port (Service Access Point (SAP))
• The SAP is a conceptual location at which one OSI layer can request the services of another OSI
layer.
• Identify respective users (applications)
• Connection refers to pair of ports
• TCP tracks segments between entities on each connection
UDP- Connection Less
• Alternative to TCP is User Datagram Protocol
• Not guaranteed delivery
• No preservation of sequence
• No protection against duplication
• Minimum overhead
• Adds port addressing to IP
TCP/IP protocol suite
Differences between TCP and UDP

UDP & TCP were primarily designed for data. But popularity of carrying Voice over IP networks
forced engineers to design a new transport layer protocol called SCTP (Stream Control
Transmission Protocol).

89
Inventors of the TCP

In May, 1974, the Institute of Electrical and Electronic Engineers (IEEE)


published a paper titled "A Protocol for Packet Network Interconnection." The
paper's authors -- Vinton Cerf and Robert Kahn -- described a protocol called
"TCP" that incorporated both connection-oriented and datagram services.

90
Transferring data in accordance with the TCP/IP stack.

https://commons.wikimedia.org/wiki/File:Data_Flow_of_the_Internet_Protocol_Suite.PNG

91
TCP/IP Concepts
Important
Points
Data deliveries
Addressing We learned till now
• Physical Address- MAC
• Logical Address-IP
• Port Address- Internet Port 443
 This port is used for secure web browser communication.
 Sockets are created and used with a set of programming requests or "function
calls" sometimes called the sockets application programming interface (API). The
most common sockets API is the Berkeley UNIX
Socket

Ref.: https://www.quora.com/What-is-a-socket-in-computer-
networks
Addressing

 The McGraw-Hill Companies, Inc., 1998


Relationship of layers and addresses in TCP/IP

 The McGraw-Hill Companies, Inc., 1998


IP

• An IP address is a 32-bit
address
• The IP addresses are
unique
and universal.
• Logical Address is generated by CPU while a
program is running.
• Physical Address identifies a physical location of required
data in a memory. ...
• The user never directly deals with the physical address but
can access by its corresponding logical address.
Logical Vs Physical Address
BASIS OF
LOGICAL ADRESS PHYSICAL ADRESS
COMPARISON
Logical address is the address that is generated by the
Physical address is a location that exists in the
central processing unit (CPU) in perspective of a
Description memory; it allows accessing a particular storage
program. Logical address can also be referred to as a
cell in the main memory.
virtual address.
Physical address space is the set of all physical
Logical address space is the set of all logical addresses
Address Space address mapped to corresponding logical
generated by CPU for a program.
addresses.
The logical address exists virtually and does not have a
The physical address is an accessible physical
Visibility specific location to exist physically in memory unit hence
location existing within the memory.
it is also known as virtual address.
The logical address is generated by the central processing Physical address is computed by Memory
Generation
unit (CPU). Management Unit (MMU).
The physical address helps to identify a location in the The logical address helps to obtain the physical
Use
main memory. address.
The logical address is flexible hence will keep changing Physical address of the object always remains
Flexibility
with the system from time to time. constant.
The user program can use the logical address to access The user program does not have the ability to
User
the physical address. view the physical address directly.
Physical address is not affected when the system
Rebooting Logic address is erased when the system is rebooted.
is rebooted.
Example 192.168.20.2(IPV4/IPV6) 00-10-5A-44-12--B5 (48 bit,6 byte )
Logical Vs Physical Address

Reference: https://www.google.com/search?q=mac+address+example&tbm=isch&source=iu&ictx=1&fir=AcSg14XEihOvxM%252CbH_OqFLfsM5BxM%252C_&vet=1&usg=AI4_-kQDktfJgXu0c
MAC Address
IP Address
Addresses (Example)
Difference Between OSI and TCP/IP
Difference Between OSI and TCP/IP
Difference Between OSI and TCP/IP
References

• “Data Communication and Networking”, Behrouz Forouzan 5e


• “TCP/IP Protocol Suite “, Behrouz Forouzan 4e.
• “Computer Networks “, A.S.Tanenbaum 5e.
• https://ppt-online.org/89029
• Internet Images

You might also like