Computer Communication & Networking: Sudipta Mahapatra E & ECE Department IIT Kharagpur
Computer Communication & Networking: Sudipta Mahapatra E & ECE Department IIT Kharagpur
Computer Communication & Networking: Sudipta Mahapatra E & ECE Department IIT Kharagpur
Computer Communication
&
Networking
Sudipta Mahapatra
E & ECE Department
IIT Kharagpur
sudipta@ece.iitkgp.ac.in
smahapatraclass@gmail.com
Prerequisites:
1
1/1/2021
Computer Network
2
1/1/2021
Communication Model
3
1/1/2021
Protocol
• For successful data transmission,
entities must speak the same language
– Syntax
• Data formats
• Signal levels
– Semantics
• Control information
• Error handling
– Timing
• Speed matching
• Sequencing
7
Communication tasks
• Transmission System Utilization
• Interfacing
• Signal Generation, Synchronization
• Exchange Management
• Error detection and correction
4
1/1/2021
A Simplified Communication
Architecture and Protocol
10
5
1/1/2021
Definitions (Contd.)
• A signal is composed of multiple frequencies -
Can be shown using Fourier analysis.
• Spectrum
–Range of frequencies contained in signal
• Absolute bandwidth
– Width of spectrum
12
6
1/1/2021
13
14
7
1/1/2021
Terminologies
• bandwidth - In transmission, bandwidth is the
range of frequencies that the system may
transmit without excessive attenuation
(measured in hertz for analog carrier)
• throughput - the amount of data transmitted
between two points in a given amount of time
(e.g. 10 Mbps).
• speed - expressed in bits per second (bps), the
rate at which data can reliably be transmitted
over a line.
15
Terminologies (Contd.)
• Baud - unit of signal frequency in signals per second.
Baud rate = bps only when the signal is represented by
a single bit.
• Propagation delay - is a measure of time between the
departure of the first bit from the source on a network
and its arrival at the receiver.
• Latency - Delay between the time when a device
receives a data frame and the time that the frame is
forwarded out to the destination port.
• Jitter - Variation of the network delay over time.
16
8
1/1/2021
Transmission modes
• Simplex – One-way transmission.
• Half-duplex - two-way transmission, one way at a time
• Full-duplex - independent, simultaneous two-way
transmission in both directions
• Synchronous
- both the sender and receiver are synchronized with a
clock so receiver knows exactly where new characters
begin
• Asynchronous
- data is transmitted one character at a time, with
intervals of varying lengths between transmittals. Start
and stop bits at the beginning and end of each character
17
Network Topology
9
1/1/2021
Physical topology
• Ring - network nodes are connected to access
points which are in a closed loop; data is
transmitted from node to node around the loop,
always in the same direction
• Bus - network nodes are connected to the same
cable; all nodes are considered equal and
receive all transmissions on the medium
• Star - network nodes attach to hubs and signals
are broadcast to all stations or pass from station
to station
19
Bus Ring
Tree 20
Star
10
1/1/2021
Network Technologies
• Bridging - techniques for interconnecting two LAN
segments that utilize the same LLC (Logical Link
Control) procedures but may use the same or different
MAC (Media Access Control) procedures
• Forwarding - the process of sending a frame toward its
ultimate destination by an internetworking device
• Routing - the process of finding a path to the destination
host.
• Switching - switching and routing are complementary
technologies. Switching is known for simplicity and
performance; Routing is known for manageability and
control
21
Network Types
• LAN - Local Area Network. A network that
interconnects PCs, terminals, workstations,
servers, printers, and other peripherals at high
speed over short distances (Ethernet, token ring,
FDDI, ATM)
• WAN - Wide Area Network. A network that
covers larger geographical areas and usually
utilizes public phone networks (T1/T3, ISDN,
xDSL, Frame Relay, ATM)
• MAN - Metropolitan Area Network. Generally
MAN spans larger geographical area then LAN
and smaller than WAN
22
11
1/1/2021
Communication Techniques
• Multiplexing - a process in which multiple data
channels are combined into a single data or
physical channel at the source
• De-multiplexing - process of separating
multiplexed data channels at the destination
• Methods
– TDM - (Synchronous) Time Division Multiplexing
– ATDM - Asynchronous TDM or Statistical
Multiplexing: (bandwidth is dynamically allocated to
stations that have information to transmit)
– FDM - Frequency Division Multiplexing
23
TDM
24
12
1/1/2021
Statistical Multiplexing
• Statistical Time Division Multiplexing (STDM) or
Asynchronous Time Division Multiplexing
(ATDM);
– Dynamically assigns the available time slots only to
users who need data transmission
– Exploits bursty nature of many sources (VBR) of
traffic multiplexed together
– Increases utilization of links by allowing some loss
– Better than FDM or TDM
25
13
1/1/2021
Statistical Multiplexing
• Queue is modelled as a Markov model (M/M/1 or
M/M/m)
– nature of arrival process (Poisson distribution)
– probability distribution of the service times
– number of servers
• Using the queuing model, different performance
parameters such as the average delay can be
computed.
27
28
14
1/1/2021
Physical layer
Passes raw bit stream between computer and
network. It defines
– physical topology.
– voltage used.
– timing information.
– handshaking requirements.
– mechanical and electrical specifications for cable, wire,
repeaters.
Examples: EIA-RS232, RS449, Ethernet, token ring, FDDI
29
15
1/1/2021
Network Layer
• Transparency of connection management
to upper layers.
• Sets up and maintains connections
between two computers using VCs or
datagrams.
• Responsible for addressing and routing.
Examples: IP, X.25, IPX, RIP, OSPF
IPX: Internetwork packet exchange, RIP: Routing information protocol, OSPF: Open shortest path first
31
Transport Layer
• Reliable and transparent information
transfer.
• End-to-end error recovery and flow
control.
Examples: TCP, UDP, SPX, NetBEUI
SPX: Sequenced packet exchange; NetBEUI: Transport protocol used to implement Microsoft networking
32
16
1/1/2021
Session Layer
• Coordinates between processes;
Provides control structures for network
management such as Logon/Logoff
procedures, checkpointing during file
transfer, etc.
Examples: SNMP, FTP, SMTP, Telnet
33
17
1/1/2021
35
36
18
1/1/2021
38
19
1/1/2021
Standards
• Required to allow for interoperability between
equipments.
39
20
1/1/2021
Standards Organizations
• IETF - Internet Engineering Task Force
• IEEE - Institute of Electrical and Electronics
Engineers
• ANSI - American National Standards Institute
• ITU-T - International Telecommunication Union -
Telecommunication Section (previous CCITT)
• ISO - International Standards Organization.
• TIA - Telecommunications Industry Association
• EIA - Electronics Industries Association
41
42
21
1/1/2021
Data Transmission
• Data is sent in chunks called packets or frames
• The exact structure of packets (size, contents) depend on
the protocol that is used for communication
• Typical structure: destination address, source address,
type of data, information regarding how to reassemble the
original message, data itself, CRC for error checking.
43
44
22
1/1/2021
Baseband transmission
• One carrier frequency is used (also called
narrowband)
Electrical signal applied directly between the
wires (example: Ethernet)
Basic limitation: only one bit can be transmitted
at any given time
Efficiency is increased by using Time Division
Multiplexing (TDM)
TDM flavors: synchronous and asynchronous
Signal attenuation is a big problem for baseband
networks
45
Broadband transmission
• Signal is sent by modulating a carrier (AM
or FM).
• Frequency Division Multiplexing (FDM)
can be used to send multiple
transmissions concurrently over a single
cable/fiber
• Using narrow band filters, receivers are
able to separate out multiple signals.
46
23
1/1/2021
47
Switching Paradigms
• Circuit switching
• Packet switching
- Virtual circuits
- Datagram delivery
• Burst switching
48
24
1/1/2021
49
Packet Switching
25
1/1/2021
Connection-oriented vs.
connectionless
• Connection-oriented: Networks are aware about two
systems communicating. The network must admit a
communication stream before data exchange starts
• Connectionless: Network has no idea that two systems
communicate. Connection is never refused
51
Connection-oriented network
52
26
1/1/2021
Connectionless networks
53
Topics to be Covered
• Module-I: Introduction and Overview, the OSI model, TCP/IP standard. (5)
• Module-II: Digital Data Communication – Synchronous vs. asynchronous transmission; signal
encoding schemes - NRZ vs. RZ schemes, Error Handling - VRC, LRC, CRC; Interfacing details
and Physical layer. (3)
• Module III: Datalink layer functionalities, DLC protocols - Stop-and-wait, Sliding window,
performance analysis of ARQ schemes; MAC protocols - pure ALOHA, slotted ALOHA, CSMA,
CSMA/CD, Binary exponential back-off algorithm, CSMA/CA; LAN standards, Ethernet, Token
bus, Token ring, FDDI MAN standard, DQDB protocol, wireless LAN. (7)
• Module IV: Queuing theory and delay analysis, backbone design; (2)
• Module V: Network layer Issues, Point-to-point networks, Packet networks – Addressing and
Routing, Routing algorithms – Dijkstra’s algorithm, Bellman-Ford algorithm, Floyd-Warshall
algorithm, Internet protocol – IP Addressing, Datagram routing. (5)
• Module VI: Transport layer issues, Flow control and error control, Transmission control protocol
(TCP) – Flow and error control in TCP, Congestion control; User datagram protocol (UDP). (4)
• Module VII: Examples of different large scale network deployment; ISDN, BISDN, ATM. (2)
• Module VIII: Session and Presentation layer protocols, Network security. (2)
Text books:
• Data and Computer Communication by William Stallings, 7th edition.
• Computer Networks by A. S. Tanenbaum, 4th edition.
• Data Networks by Dimitri P. Bertsekas and (Author) Gallagher, 4th edition.
• Computer Network: A Top-Down Approach, Kurose and Ross, 7th Edition.
54
27
1/1/2021
Topics to be Covered
1. Traffic Generation
2. The OSI Model
3. DLC Protocols
4. MAC Protocols.
5. LAN Standards
6. Internetworking
i. TCP/IP Protocol Suite.
ii. Datagram Routing
7. LAN Interconnection Devices.
8. RS 232-C, X.25 Standards.
9. ISDN, BISDN
10. Frame Relay, ATM
Text Book:
1. Data and Computer Communications by Stallings
2. Internetworking with TCP/IP, Comer and Stevens, PHI, 2nd Ed.,
Reference Books:
1. Books by Tanenbaum, Forouzan, Leon-Garcia
55
28