1 | Page Computer Networks IN 2510 Goal of this course 1. To learn how the Internet works 2. To learn the fundamentals of computer networks Internet Social impact: Easy access to knowledge o Ex: Wikipedia Electronic commerce o Ex: PayPal Personal relationships o match.com Discussion without censorship o The Onion Router Economic impact: Advertising-sponsored search “Long tail” online stores Online marketplace Crowdsourcing Computer Networks Key problems in computer networking Reliability despite failures Network growth and evolution Allocation of resources like bandwidth Security against various threats Upheavals in the past 1-2 decades Growth/ Tech Driver Upheaval Emergence of the web Content Distribution Networks Digital songs/ videos Peer-to-peer file sharing Falling cost per bit Voice-over-IP calling Many Internet hosts IPv6 Wireless advances Mobile devices
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1 | P a g e
Computer Networks IN 2510
Goal of this course
1. To learn how the Internet works
2. To learn the fundamentals of computer networks
Internet
Social impact:
Easy access to knowledge
o Ex: Wikipedia
Electronic commerce
o Ex: PayPal
Personal relationships
o match.com
Discussion without censorship
o The Onion Router
Economic impact:
Advertising-sponsored search
“Long tail” online stores
Online marketplace
Crowdsourcing
Computer Networks
Key problems in computer networking
Reliability despite failures
Network growth and evolution
Allocation of resources like bandwidth
Security against various threats
Upheavals in the past 1-2 decades
Growth/ Tech Driver Upheaval
Emergence of the web Content Distribution Networks
Digital songs/ videos Peer-to-peer file sharing
Falling cost per bit Voice-over-IP calling
Many Internet hosts IPv6
Wireless advances Mobile devices
2 | P a g e
Lesson 01 Networking Fundamentals
Outline:
Introduction
Benefits/ Risks of Networking
Types of Networks
Networking Devices
Categorizing Networks
Computer Network:
A computer network is a set of computers connected together for the purpose of sharing
resources. The most common resource shared today is connection to the Internet. Other shared
resources can include a printer or a file server. The Internet itself can be considered as a
computer network.
Node:
Any active electronic device that connected to a computer network
Can be either a connection point, redistribution point, or a communication endpoint
Capable of creating, receiving, or transmitting information over a communications channel
*note: A passive distribution point such as a distribution frame or a patch panel is consequently not a
node.
Devices (nodes) of a network can be classified as:
1. End user devices
Also called hosts
Provide services to the user directly
Ex: Computers(client/ server), printers, scanners, file server, IBM main frame etc
2. Network devices (see page 17: Network Hardware Components)
Connect end user devices together to allow them to communicate
Components of a network (includes nodes plus network hardware plus link component plus apps):
Component Function Example
Application, or app, user Uses the network Skype, iTunes, Amazon
Host, or end-system, edge device, node, source, sink
Supports apps Laptop, mobile, desktop
Router, or switch, node, hub, intermediate system
Relays messages between links Access point, cable/ DSL modem
3 | P a g e
Link, or channel Connect nodes Wires, wireless
Big picture of nodes
Figure 1: The demonstration of the word ISP and Network
Figure 2: The generic word cloud can be referred to ISP part of a network
Types of links
1. Full duplex
Bidirectional
Both directions at once
Ex: hand phone
2. Half duplex
Bidirectional
Only for one direction at a time
Ex: walky talky
3. Simplex
Unidirectional
Ex: mass media
4 | P a g e
Data Transfer Rate (DTR) A key issue in computer networks, and Measured in bps, Bps, Mbps etc
Data Transfer Rate and bandwidth:
Bandwidth is a measurement of the potential amount of data that can be transferred in a given
time frame, while data transfer rate is the actual amount of data being transferred.
Factors that can impact DTR
Congested routers
o Packet loss is a result jitter in videos, gaps in audio
Improperly configured PCs with inadequate memory and processors
Problems caused by poor DTR
Long wait time for connections and downloads
Inability to complete the download due to endless requests for retransmission of dropped
packets
Poor DTR for live video streams in video conferencing (ex: Skype call get stucked)
Improve DTR on computer Networks
Caching of frequently accessed web pages
Established mirror sites requiring fewer hops
Reduce bandwidth intensive elements such as video
Using compression techniques that minimize traffic
Computer Networks
Advantages of Computer Networks
Accessing databases, transferring, processing and retrieval of data can be done online
Online credit card checking, e-commerce and Electronic Fund Transfer are possible
Easily administered
Provides an efficient means of communication such as e-mail, voice mail, and video
conferencing
Users can be easily added or removed
Tasks of distributed nature can be processed by distributed computer systems by exchanging
data
Provides a way to share data, programs, peripherals, computing power and information
Provides data security (comparing to other communication devices)
5 | P a g e
Benefits of a network:
Information sharing
Hardware sharing
Software sharing
Collaborative environment
Challenges
Computer hackers
Malicious software
o Ex: viruses, Worms, Trojan horses
Cost
o Network setup
o Maintenance
Equipment malfunctioning
System failures
Network Types
Scale Type Example
Vicinity PAN (Personal Area Network)
Bluetooth (ex: headset)
Building (limited geographic area)
LAN (Local Area Network)
Wifi, Ethernet
City (medium geographical area)
MAN (Metropolitan Area Network)
Cable, DSL
Country (large geographical area)
WAN (Wide Area Network)
Large ISP
Planet The Internet (network of all networks)
The Internet
6 | P a g e
Network Topologies Arrangement of various elements (links, nodes etc) of a computer network. i.e. the topological
structure. It may be depicted physically or logically.
Different network topologies:
Bus topology
Ring topology
Star topology
Mesh topology
Tree topology
a combination of bus topology and star topology
Hybrid topology
Hybrid networks use a combination of any two or more topologies, in such a way that the resulting network does not exhibit one of the standard topologies (e.g., bus, star, ring, etc.). A hybrid topology is always produced when two different basic network topologies are connected.
Local Area Networks (LAN) Spans a relatively small area
Properties of LAN:
LAN are usually confined to one building or a group of buildings
Usually privately owned
Provides higher DTR
Provide full time connectivity to local services
The most common type of LAN is Ethernet
7 | P a g e
Components of LAN:
Router
Bridge
Hub
Ethernet switch
Repeater
Wide Area Networks (WAN) Covers a very large geographical area such as a country, continent or even the whole world
Properties of WAN:
Provide long distance communication of data or information
Operating at low DTRs
Provide full time/ part time connectivity
Connect devices separated over wide, even global areas
Components of WAN:
Router
Communication Server
Modem
Types of WANs:
MAN (Metropolitan Area Network)
PAN (Public Access Network)
VAN (Value Added Network)
VPN (Virtual Private Network)
Metropolitan Area Network (MAN):
A network that interconnects users with computer resources in a geographic area or region
larger than that covered by even a large local area network (LAN)
Interconnection of networks in a city into a single larger network
Interconnection of several LANs by bridging them with backbone lines
Control Area Network (CAN bus) A serial network of micro controllers, sensors, devices and actuators in a system or subsystem for real
time control applications.
Ex: automatic controlling system of a Toyota car
CAN bus:
A vehicle bus standard designed to allow microcontrollers and devices to communicate with
each other in applications without a host computer. It is a message-based protocol, designed
originally for multiplex electrical wiring within automobiles, but is also used in many other
contexts.
Figure 7: CAN bus example
Communication Media (Transmission Media) Media which network and nodes are connected
Two types of transmission media:
1. Guided (wired) media
Waves are guided along a solid medium
2. Unguided (wireless) media
Provide means for transmitting electromagnetic signals (waves) through air, but without
any guidance to the wave
Figure 8: Big picture of Communication media
Communication media
Wired/ Guided
Twisted pair Coaxial cable Fiber optics
Wireless/ Unguided
Radio waves Microwaves Infrared (IR)
12 | P a g e
Twisted Pair cable
Figure 9: Twisted pair cables
Twisted pair:
A twisted pair consists of two insulated copper wires arranged in a regular spiral pattern.
Typically, a number of pairs are bundled together into a cable by wrapping them in a tough
protective sheath as shown in the Figure 9.
Why twisting?
Twisting decreases the crosstalk interference between adjacent pairs in a cable.
Tighter twisting provides much better performance, but also increases the cost.
Usage:
LANs
Two common types of twisted pair cables:
1. UTP – Unshielded Twisted Pair
Subject to external electromagnetic interferences
Ex: Ordinary telephone wire, LANs (Ethernet)
2. STP – Shielded Twisted Pair
Expensive than UTP (therefore not much popular)
Ex: industrial setting where high amounts of electromagnetic interference
Attenuation Characteristic of UTP:
Attenuation increases when diameter (measured in gauge in practice) increases is high.
COMPAQ
Sticky Note
Attenuation is a general term that refers to any reduction in the strength of a signal. Attenuation occurs with any type of signal, whether digital or analog. Sometimes called loss, attenuation is a natural consequence of signal transmission over long distances.
13 | P a g e
Common Applications:
As local loop in telephone lines
Digital subscriber lines (DSL)
LANs (10BaseT, 100BaseT)
o Connector is RJ45 Ethernet
Coaxial cable
Figure 10: Cross section of a coaxial cable
Coaxial cable:
This type of cables consists of a hollow outer cylindrical conductor (also called metallic shield)
that surrounds a single inner wire conductor (also called centre core).
Between the above two, there is a dielectric insulator ring.
Outer conductor (metallic shield) is covered with a plastic jacket (also called outer protective
shield).
Four components of a coaxial cable:
1. Plastic jacket
2. Metallic shield
3. Dielectric insulator
4. Centre core
Benefit due to shielding:
Coaxial cables are much less susceptible to interference or crosstalk than twisted pair.
o Outer conductor can be grounded. Therefore inner conductor is shielded from
interferences and disturbance. i.e. reduced crosstalk.
COMPAQ
Sticky Note
likely or liable to be influenced or harmed
14 | P a g e
Common applications of coaxial cables:
Television distribution (cable TV)
Long distance telephone transmission
LANs
Coaxial cables and twisted pair:
Twisted pair cabling is better suited when cost and installation are an issue and if EMI and
crosstalk are not too much of a problem. However, they do not provide electrostatic shielding
and do not work as well as coaxial cables at higher frequencies.
Fiber Optic cable (FO cable)
Figure 11: Fiber optic cables
Fiber optic cables:
A fiber optic cable consists of a bundle of glass/plastic threads, each of which is capable of
transmitting messages modulated onto pulses of light waves.
Characteristic of FO:
Very high speed
Lack of attenuation (less noise, high purity of signal)
High capacity data transmission (higher bandwidth)
Expensive
Relative safe way to transmit (not easy to trap what is being transmitting
Figure 12: Single mode and Multimode Fiber
COMPAQ
Sticky Note
PWM
15 | P a g e
Advantages and disadvantages of twisted pair, coaxial cables, and FO cables
Twisted Pair Coaxial Cables Fiber Optic Cables
Advantages * Cheaper * Less susceptible to electrical interference and crosstalk * Because it is electrically "cleaner", STP wire can carry data at a faster speed
* Support greater cable lengths between network devices than twisted pair. * Extra protective plastic cover that help keep moisture away. * Less susceptible to electrical interference and crosstalk than twisted pair
* One single mode fiber can replace a metal of time larger and heavier. * Multi-mode optical cable has a larger diameter and can be used to carry signal over short distance.
Disadvantages * STP wire is that it is physically larger and more expensive than twisted pair wire. * STP is more difficult to connect to a terminating block.
* Thick coaxial is that it does not bend easily and is difficult to install. * Expensive than twisted pair
* Difficult to make connections to fiber optic cable. * Highly expensive * The optical fiber must be highly polished to allow light to pass with little loss.
16 | P a g e
Main Network Hardware Components All networks are made up of basic hardware building blocks to interconnect nodes of a network. i.e end
user nodes devices and network devices (see page 02: Nodes)
Network hardware components include:
Hub
o Electronic device (with a number of ports) used in a LAN to link groups of computers,
hub is a multi-port repeater
Repeaters/amplifiers
o Electronic devices that receive signals and amplify and send them along the network.
There are high end repeaters and low end repeaters
Routers
o Electronic devices used to ensure messages are sent to their intended destinations
Switches
o Hub can be replaced by a switch; bridge is a primitive version of a switch; therefore
switch can be called a multi-port bridge
Gateway
o Consists of hardware and/ or software that allows communications between dissimilar
networks
Bridges
o Consists of hardware and/ or software that allows communication between two similar
networks
*note
If there are very few nodes, a hub is enough.
If you want segments of end user nodes, use a hub to connect end user nodes to form a segment, and
then use a switch to connect hubs. If you no need segments, you can use a switch to connect all the end
user nodes.
Within LAN- a hub is used, LAN – LAN- a bridge is used, segments of a LAN- a switch is used, LAN – MAN-
a router is used.
Bridges, switches, and hubs are very much alike.
A hub can be replaced by a switch.
Switch can be called a multi-port bridge.
Bridge is a primitive version of a switch.
COMPAQ
Sticky Note
remember default gateway: where an network enters the outer world.
17 | P a g e
Why interconnect?
To separate/ connect one corporate division with another
To connect two LANs with different protocols
To connect a LAN to the internet
To break a LAN into segments to relieve traffic congestion
To provide a security wall between two different types of users