G Unit-I
G Unit-I
UNIT I
Introduction: Uses of Computer Networks, Types of networks: WAN, LAN, MAN, Network
Topologies, Reference models: OSI, TCP/IP.
Physical Layer: Transmission media: magnetic media, twisted pair, coaxial cable, fiber optics,
wireless transmission.
UNIT II
Data link layer: Design issues in data link layer: framing, flow control, error control, Error
Detection and Correction: Parity, CRC checksum, Hamming code, Flow Control: Sliding Window
Protocols, Applications : Data link layer protocols HDLC, PPP.
UNIT III
Medium Access sub layer: Channel allocation problem, MAC Protocols: ALOHA, CSMA,
CSMA/CD, MAC addresses, IEEE 802.X, Standard Ethernet, Wireless LANS. Bridges, Types of
Bridges.
1
UNIT IV
Network Layer: Design issues in Network Layer, Virtual circuit and Datagram subnets-Routing
algorithm: Shortest path routing, Flooding, distance vector routing, Link state routing,
Hierarchical routing, Broad casting, Multi casting, Routing for mobile hosts.
Internetworking: Concatenated Virtual Circuits, Connectionless internetworking, Tunneling,
Internetwork routing, Fragmentation.
UNIT V
Network layer in internet: IPv4, IP addresses, Sub netting, Super netting, NAT.
Internet control protocols: ICMP, ARP, RARP, DHCP, Network Layer in ATM Networks.
Congestion Control: Principles of Congestion, Congestion Prevention Policies.
Congestion Control in datagram Subnet: Choke packet, load shedding, jitter control.
Quality of Service: Leaky Bucket algorithm and token bucket algorithm.
UNIT VI
Transport Layer: Transport Services, Connection establishment, Connection release and TCP
and UDP protocols.
Application Layer: Domain name system, FTP, HTTP, SMTP, WWW
2
TEXT BOOKS
REFERENCES
1. An Engineering Approach to Computer Networks-S.Keshav, 2nd Edition,
Pearson Education
2. Understanding communications and Networks, 3rd Edition, W.A. Shay,
Thomson
3
Chapter 1
Introduction
4
What is Computer Network
• A collection of Autonomous computers
interconnected by any media.
• Two computers are said to be interconnected
if they are able to exchange information.
• The connection may be via a copper wire/
fiber optics/microwaves/infrared/ satellites.
Why people are interested in
Computer Networks
• Resource sharing:
To make all physical resources such as printers,
scanners, equipment, etc., available to anyone on the
network without regard to the physical location of
the resource and the user.
• Information sharing:
Allowing users to access relevant information and
documents, i.e data available to any one on the
network instantly without regard to the location of
the data and the user accessing it.
Uses of Computer Networks
• Business Applications
• Home Applications
• Mobile Users
• Social Issues
7
Business Applications of Networks
• A network with two clients and one server.
8
Business Applications of Networks (2)
• The client-server model involves requests and
replies.
9
Home Applications
10
Home Applications (2)
• In peer-to-peer system there are no fixed
clients and servers.
11
Home Applications (3)
• Some forms of e-commerce.
12
Mobile Users
• Combinations of wireless networks and
mobile computing.
13
Types of Network
• Local Area Networks
• Metropolitan Area Networks
• Wide Area Networks
14
Types of transmission technology
• Broadcast links
• Point-to-point links
15
Broadcast Networks (2)
• Classification of interconnected processors by
scale.
16
Network
• Network: A set of devices (nodes) connected by communication links
• Node: Computer, printer, or any device capable of sending and/or
receiving data
• To be considered effective and efficient, a network must meet a
number of criteria
1-17
Type of Connection
1-18
Type of Connection
• Point-to-point
– Dedicated link between two devices
– The entire capacity of the channel is reserved
– Ex) Microwave link, TV remote control
• Multipoint
– More than two devices share a single link
– Capacity of the channel is either
• Spatially shared: Devices can use the link simultaneously
• Timeshare: Users take turns
1-19
Physical Topology
1-20
Mesh Topology
• Dedicated point-to-point link to
every other nodes
• A mesh network with n nodes
has n(n-1)/2 links. A node has
n-1 I/O ports (links)
• Advantages: No traffic
problems, robust, security, easy
fault identification & isolation
• Disadvantages: Difficult
installation/reconfiguration,
space, cost
1-21
Star Topology
• Dedicated point-to-point link only to a central controller, called a hub
• Hub acts as an exchange: No direct traffic between devices
• Advantages: Less expensive, robust
• Disadvantages: dependency of the whole on one single point, the hub
1-22
Bus Topology
• One long cable that links all nodes
• tap, drop line, cable end
• limit on the # of devices, distance between nodes
• Advantages: Easy installation, cheap
• Disadvantages: Difficult reconfiguration, no fault isolation, a fault or
break in the bus stops all transmission
1-23
Ring Topology
• Dedicated point-to-point link only with the two nodes on each sides
• One direction, repeater
• Advantages: Easy reconfiguration, fault isolation
• Disadvantage: Unidirectional traffic, a break in the ring cab disable the
entire network
1-24
Hybrid Topology
• Example: Main star topology with each branch connecting several stations
in a bus topology
• To share the advantages from various topologies
1-25
Categories of Networks
1-26
LAN
• Usually privately owned
• A network for a single office, building, or campus a few Km
• Common LAN topologies: bus, ring, star
• An isolated LAN connecting 12 computers to a hub in a closet
1-27
MAN
• Designed to extend to an entire city
• Cable TV network, a company’s connected LANs
• Owned by a private or a public company
1-28
WAN
• Long distance transmission, e.g., a country, a continent, the world
• Enterprise network: A WAN that is owned and used by one company
1-29
Internetwork
• Internetwork (internet) : two or more networks are
connected by internetworking devices
• Internetworking devices: router, gateway, etc.
• The Internet: a specific worldwide network
1-30
Internetwork Example
• A heterogeneous network : four WANs and two LANs
1-31
Network Software
• Protocol Hierarchies
• Design Issues for the Layers
• Connection-Oriented and Connectionless Services
• Service Primitives
• The Relationship of Services to Protocols
32
Protocol Hierarchies
• To reduce the design complexity, most
networks are organized as a stack of layers or
levels, each one built upon the one below it.
• The number of layers, name of the layers,
function of the layers differ from one network
to other.
• Each Layer is to offer certain services to the
higher layers.
• Each layer shields the details of how the
offered services to the higher layers
Technical words
• Protocol : The rules and conventions used in the conversation
between layer n on one machine to layer n on another machine
are collectively known as the layer n protocol.
A Protocol is an agreement between the communicating parties
on how communication is to proceed.
• Peers: The entities comprising the corresponding layers on
different machines are called peers.
• Interface: Between each pair of adjacent layers is an interface.
The interface defines which primitive operations and services
the lower layer makes available to the upper one.
• Network Architecture: A set of layers and protocols is called
a network architecture.
• Protocol stack: A list of protocols used by a certain system,
one protocol per layer, is called a protocol stack.
Layered Model: Sending a Letter
2-35
Network Software
Protocol Hierarchies
Layers, protocols, and interfaces.
36
Protocol Hierarchies (2)
39
Connection-Oriented and Connectionless
Services
Six different types of service.
40
Service Primitives
• Five service primitives for implementing
a simple connection-oriented service.
Service Primitives (2)
• Packets sent in a simple client-server
interaction on a connection-oriented
network.
Services to Protocols Relationship
• The relationship between a service and a
protocol.
Reference Models
• The OSI Reference Model
• The TCP/IP Reference Model
• A Comparison of OSI and TCP/IP
• A Critique of the OSI Model and
Protocols
• A Critique of the TCP/IP Reference
Model
Reference Models
The OSI
reference
model.
Reference Models (2)
• The TCP/IP reference model.
Reference Models (3)
• Protocols and networks in the TCP/IP model
initially.
OSI Model
ISO is the organization. OSI is the model
2-48
Interaction between layers in the OSI model
Layer and interface
2-49
An exchange using the OSI model
Encapsulation with header and possibly trailer
2-50
Physical Layer
• The physical layer is responsible for movements of individual bits from
one hop (node) to the next
• Mechanical and electrical specification, the procedures and functions
2-51
Physical Layer: Duties
• Physical characteristics of interfaces and media
• Representation of bits
• Data rate
• Synchronization of bits
• Line configuration
• Physical topology
• Transmission mode
2-52
Data Link Layer
• The data link layer is responsible for moving frames from
one hop (node) to the next
• Transform the physical layer to a reliable (error-free) link
2-53
Data Link Layer: Duties
• Framing
• Physical addressing
• Flow control
• Error control
2-54
Hop-to-Hop Delivery
2-55
Network Layer
• The network layer is responsible for the delivery of
packets from the source host to the destination host
2-56
Network Layer: Duties
• Logical addressing and routing
2-57
Transport Layer
• The transport layer is responsible for delivery of a
message from one process to another
2-58
Transport Layer: Duties
• Service-point (port) addressing
• Segmentation and reassembly
• Connection control
• Flow control
• Error control
2-59
Reliable Process-to-Process Delivery of a Message
2-60
Session Layer
• Session layer is responsible for dialog control and
synchronization
2-61
Presentation Layer
• Presentation layer is responsible for translation,
compression, and encryption
2-62
Application Layer
• Application layer is responsible for providing services to
the user
2-63
Application Layer: Services
• Mail services
• File transfer, access, and management
• Directory services
2-64
Summary of Layers
2-65
TCP/IP and OSI Model
2-66
TCP/IP Protocol Suite
• Host-to-network : Physical and data link layer
– No specific protocol
• Network layer
– IP(Internet Protocl), ARP(Address Resolution Protocol),
RARP(Reverse ARP), ICMP(Internet Control Message Protocol),
IGMP(Internet Group Message Protocol)
• Transport layer
– TCP(Transmission Control Protocol), UDP(User Datagram Protocl),
SCTP(Stream Control Transmission Protocol),
• Application Layer
– Combined session, presentation, and application layers
2-67
Addressing
• Four levels of addresses in TCP/IP protocols
• Physical (link), logical (IP, network), port, and specific addresses
2-68
Relationship of Layers and
Addresses
2-69
Physical Address
• A node with physical address 10 sends a frame to a node with physical
address 87. The two nodes are connected by a link (bus topology LAN).
As the figure shows, the computer with physical address 10 is the
sender, and the computer with physical address 87 is the receiver.
07:01:02:01:2C:4B
A 6-byte (12 hexadecimal digits) physical address.
2-70
Logical (IP) Address
• The physical addresses will change from hop to hop, but the logical
addresses usually remain the same
2-71
Port Address
• The physical addresses change from hop to hop, but the logical and
port addresses usually remain the same
2-72
Specific Address
• Some application have user-friendly addresses
that are designed for that specific address
• Example 1: e-mail address: [email protected]
– Defines the recipient of an e-mail
• Example 2: URL (Universal Resource Locator, now
it is renamed as Uniform Resource Locator) :
www.kbs.co.kr
– Used to find a document on the WWW
2-73
The physical layer
Physical Layer
The purpose of the physical layer is to transport a raw bit
stream from one machine to another.
Various physical media can be used for the actual
transmission.
Transmission Media:
Media are grouped into guided media and unguided media.
Guided media means waves are guided along solid
medium.
Ex: copper wire, fiber optics.
Unguided media is a media doesn't use any physical
connectors between the two devices communicating.
Usually the transmission is send through the atmosphere.
Ex: radio waves, micro waves, Infrared waves
The physical layer and transmission Medium
Classes of transmission media
Guided Transmission Data
• Magnetic Media
• Twisted Pair
• Coaxial Cable
• Fiber Optics
Magnetic Media
• One of the common way to transport data from
one computer to another is to write them on to
magnetic tape or removable media (DVD)
physically transport the tape or DVD to the
destination machine and read them.
• The tape densities are increasing.
• It is not suitable in applications, where on-line
connection is needed
Twisted Pair
• Oldest transmission media
• A twisted pair consists of two insulated copper wires typically about
1mm thick. The wires are twisted together in a helical form.
• Twisting reduces interference (two parallel wires constitute a simple
antenna; a twisted pair does not.)
• Cheap medium
• Commonly used for communications within buildings and in
telephone networks
• For longer distance repeaters are needed.
• Twisted pairs can be used for transmitting either analog or digital
signals.
• Produced in unshielded (UTP) and shielded (STP) forms, and in
different performance categories.
• Cables may hold hundreds of pairs. Neighbor pairs typically have
different twist lengths to reduce crosstalk.
• Category 5 has more twists per centimeter.
Twisted-pair cable
Twisted Pair