Professional Documents
Culture Documents
Networking (CCN)
Computer Networks 5th Edition
by Andrew S. Tanenbaum & David J
Wetherall
Syllabus
• Introduction : Uses of Computer Networks, Network Hardware, Reference Models, A comparison
of OSI/TCP IP Model, Network Standardization.
• The Physical Layer : The Maximum Data Rate of a Channel, Guided Transmission Media, Wireless
Transmission, Communication Satellites, Digital Modulation and Multiplexing
• The Data Link Layer : Data Link Layer Design Issues, Error Detection and Correction, Elementary
Data Link Protocols, Sliding Window Protocols
• The Medium Access Control : The Channel Allocation Problem, Multiple Access Protocols,
Ethernet, Wireless LANS, Broadband Wireless, Bluetooth
• The Network Layer : Network Layer Design Issues, Routing Algorithms(The Optimality Principle,
Shortest Path Algo, Flooding, Distance Vector Routing, Link State Routing), Quality of
Service(Application Requirements, Differentiated Services), Internetworking, The Network Layer in
the Internet(IP Addresses, Classful Addressing,Subnets,IPv4)
• The Transport Layer : The Transport service(Services provided to the upper layers, Transport
Service Primitives), Elements of Transport Protocols(Addressing,Connection Establishment,
Connection Release), Congestion Control(Desirable Bandwidth allocation,Max min
fairness),Internet Transport Protocols(Introduction to UDP,RPC), Internet Transport
Protocols(Introduction to TCP, TCP Service Model, The TCP Protocol, The TCP Segment Header,TCP
Connection Establishment, TCP Connection Release, TCP Connection Management Modeling, TCP
Sliding Window)
• The Application Layer : Domain Name System, The World Wide Web(Architectural Overview,Static
Web Pages,Dynamic web pages and web applications,HTTP, Mobile Web, Web Search)
Computer Network
• A computer network is a set of computers
interconnected together for the purpose of
sharing resources(or data transfer).
• “A collection of autonomous computers
interconnected by a single technology.”
The OSI Reference Model
The OSI Reference Model
• Protocol is a set of rules governing the
communication(format/meaning of messages
exchanged) between peer entities.
• Service is a set of primitive (operations) that a layer
provides to the layer above it.
• Protocol Data Unit(PDU) refers to the group of
information added or removed by a layer of the OSI
Model. Each layer uses the PDU to communicate and
exchange information, which can only be read by the
peer layer on the receiving device and is then handed
over to the next upper layer after stripping the header.
Chapter 4
The Medium Access Control
Sublayer
Types of links
• Point to point links :
A wireless LAN. (a) A and C are hidden terminals when transmitting to B. (b)
B and C are exposed terminals when transmitting to A and D.
Exposed Terminal Problem
• Consider B is transmitting to A and C is transmitting to D,
if C senses the medium it will falsely conclude that it may
not send to D. Such a problem is known as exposed
terminal problem. We want a protocol that prevents this
kind of deferral from happening.
• It wastes bandwidth.
• Ex: B & C are exposed terminals
A wireless LAN. (a) A and C are hidden terminals when transmitting to B. (b)
B and C are exposed terminals when transmitting to A and D.
Multiple Access with Collision
Avoidance(MACA)
• Can multiple transmissions occur simultaneously if
they all have different destinations and these
destinations are out of range of one another??
• MACA protocol make it possible. It grants access for
A to send to B.
• First, A sends Request To Send(RTS) to B. This short
frame(30 bytes) contains the length of the data
frame that needs to be sent.
• B replies with Clear To Send(CTS) frame.
• The CTS frame contains the data length(Copied from
RTS).
• On receiving CTS frame, A begins its transmission.
Multiple Access with Collision
Avoidance(MACA)
Working of a Hub
Hub & Switch
Working of a Switch
Switched Ethernet
• A hub is Layer 1 device which works like a repeater and looks like a
switch.
• Each station has a dedicated cable running to a central hub. A hub
simply connects all the attached wires electrically as if they were
soldered together.
• As more and more stations are added, each station gets a decreased
share of the fixed capacity. Eventually the LAN will saturate.
Multiplexing
Multiplexing schemes share a channel among
users.
• Frequency Division Multiplexing(FDM)
• Time Division Multiplexing(TDM)
• Wavelength Division Multiplexing(WDM)
Ethernet
• In order to achieve speed greater than 10Mbps, various versions of
Ethernet came up like:
1. Fast Ethernet(100Mbps)
2. Gigabit Ethernet(1000Mbps)
3. 10-Gigabit Ethernet(10000Mbps)
• Several choices like:
1. Type of cable to be used (Twisted Pair/Fiber Optics)
2. Max segment length of cable (in meters/in kilometers)
3. Advantage of the cable being used
4. Encoding schemes to use(Manchester, Differential Manchester,
4B/5B, 8B/10B)
led to various types of Ethernet cabling.
Fast Ethernet
Name Cable Max. segment Advantages
100Base-T4 Twisted pair 100 m Uses category 3 UTP
Note : The "100" in the media type designation refers to the transmission
speed of 100 Mbps, while the "BASE" refers to baseband signalling. The
letter following the dash ("T" or "F") refers to the physical medium that
carries the signal (twisted pair or fiber, respectively).
Gigabit Ethernet
Typical Bluetooth data frame at (a) basic and (b) enhanced data rates.
Bluetooth Frame Structure
The bluetooth defines several frame formats, most important are shown in the
figure:
• Access Code(72 bits): It identifies the master so that the slaves can identify the
message coming for them.
• Header(54 bits):
1.Address(3 bit) defines the intended receiver of the frame.
2.Type(4 bit) defines whether it is a Synchronous Connection Oriented(SCO) or
Asynchronous Connection Less(ACL) frame.
3.Flow bit is set when the receivers buffer is full and cannot accept more data.
4.Acknowledgement Bit is set while piggybacking an ack onto a frame.
5.Sequence Bit is used to number the frames to detect retransmission.
Entire 18 bit header is repeated thrice.
• Guard/Sync(16 bits): It is used to switch to a faster data rate. The access code
and the header are carried at a basic rate and only the data portion is carried at
a faster rate.
• Data: For Basic bit rate(0-2744bits) and For Enhanced bit rate(0-8184bits).
• Trailer(2bit): Enhanced rate frames end with a short trailer.
Bluetooth Protocol Stack