ch01 Lecture 1 Computer Network LIU 2021 v4
ch01 Lecture 1 Computer Network LIU 2021 v4
1
Assessment
◼ Final Exam - 40 %
◼ Course Work – 60 %
◼ Midterm Exam 1 – 20 %
◼ Midterm Exam 1 – 20 %
◼ Assignment/Quizzes – 10 %
◼ Attendance 10 %
2
References
1.Behrouz A. Forouzan, Data Communications and
Networking, 5th Edition, McGraw Hill, 2007 (TEXT
BOOK)
3
Chapter 1
Introduction
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
4
1-1 DATA COMMUNICATIONS
7
Figure 1.1 Five components of data communication (cont.)
4- Transmission medium:
▪ is the physical path by which a message travels from sender to receiver.
▪ Some examples include twisted-pair wire, coaxial cable, fiber-optic cable, and
radio waves.
5- Protocol:
▪ is a set of rules that govern data communications.
▪ It represents an agreement between the communicating devices.
▪ Without a protocol, two devices may be connected but not communicating, just
as a person speaking French cannot be understood by a person who speaks
only Japanese
8
Data Representation
• Text : text is represented as a bit pattern (0s or 1s)
– ASCII (7 bits to represent character)
– Extended ASCII (8 bits/character)
– unicode (16 bits/character and can represent up to 216 = 65,536 )
– ISO (32-bit pattern 232 = 4,294,967,296 )
• Numbers -
• Images-
– composed of a matrix of pixel (picture element).
– The size of the pixel depends on the resolution
– Each pixel is assigned a bit pattern.
– only black and- white dots: 1 bit pattern
– gray scale: 2-bit patterns
– RGB
– YCB
9
Data Representation
• Audio:
– recording or broadcasting of sound or music.
– It is continuous and can be changed to digital or an analog
signal
• Video:
- recording or broadcasting of a picture or movie
10
Data Flow
• Simplex
– In simplex mode, the communication is unidirectional
– Only one of the two devices on a link transmit; the other can only receive.
Examples: Keyboards and traditional monitors
• Half Duplex
– In half-duplex mode, each station can both transmit and receive, but not
at the same time
– the entire capacity of a channel is taken over by whichever of
the two devices is transmitting at the time
• Full-Duplex
– In full-duplex mode (also called duplex), both stations can transmit and receive
simultaneously
– Either the link must contain two physically separate transmission paths, or
the capacity of the channel is divided between signals traveling in both
directions.
11
Figure 1.2 Data flow (simplex, half-duplex, and full-duplex)
12
1-2 NETWORKS
• Sharing information
• Or this?
Why Networking?
• e.g. print document
9A-19
Network Criteria
▪ Performance
- Transmission time: is the amount of time required for a
message to travel from one device to another
- Response times – is the elapsed time between an inquiry and a
response
- Throughput and delay: need more throughput and less delay
- Number of users, type of transmission medium, the capabilities of
the connected hardware, and the efficiency of the software.
▪ Reliability: network reliability is measured by:
▪ Accuracy of delivery, the frequency of failure, the time it takes a link to
recover from a failure, and the network’s robustness in a catastrophe
▪ Security: Privacy and integrity of communication data; recovery from
breaches and data loss due to
▪ Errors
▪ Malicious users
20
Physical Structures: Types of Connections
• Point-to-Point
– Provide a dedicated link between two devices.
– The entire capacity of the link is reserved for
transmission between those two devices.
21
Physical Structures: Types of Connections
• Multipoint (Multi-drop)
– more than two specific devices share a single link
– the capacity of the channel is shared, either spatially or
temporally.
– If several devices can use the link simultaneously, it is a spatially
shared connection.
– If users must take turns, it is a timeshare connection
22
Physical Topology
23
Topology
▪ The way in which the network nodes are interconnected
together is known as Topology.
▪ In communication networks, a topology is a usually
schematic representation of the arrangement of all the
links and the linking devices (nodes).
24
Figure 1.4 Categories of topology
25
Mesh Topology
• Each device has dedicated point-to-point link to other devices.
• Fully connected mesh will have n(n − 1) / 2 Full Duplex links
– where n = number of nodes
– To accommodate that many links, every device on the network must
have n - 1 input/output (l/O) ports
• Advantages:
– Fast communication,
– Robust and
– Privacy (Security)
• Disadvantages:
– Cabling Space and
– Cost (number of I/O ports required, the hardware required to
connect I/O and cables can be expensive,
• installation and reconnection are difficult)
26
Figure 1.5 A fully connected mesh topology (five devices)
27
Star Topology
• Each device has a dedicated point-to-point link only to a central
controller, usually called a hub
– Does not allow direct traffic between devices
– The controller act as an exchange
• Advantages:
– Less expensive
• Less cabling and H/W ports,
two hops only.
• Additions, moves, and deletions involve only one connection between
that device and the hub
– Robust
• If one link fails, only that link is affected
• Disadvantage:
– More cabling is required compared to ring or bus
28
Figure 1.6 A star topology connecting four stations
29
Bus Topology
• Multipoint link as “backbone” for a network where devices
have drop line to tap into the bus
– One link cable acts as a backbone.
– A drop line is a connection running between the device and the main
cable.
– A tap is a connector that either slices into the main cable or punctures
the sheathing of a cable to create a contact with the metallic core.
30
Bus Topology (cont.)
• Advantage:
– Less Cabling
• Disadvantages:
– Difficult reconnection and fault isolation
– Limit number of nodes on the bus due to signal attenuation and
reflection
– power loss with distance,
– Not so robust (fault or break in the bus cable stops all transmission)
– Adding new devices may therefore require modification or replacement
of the backbone.
31
Figure 1.7 A bus topology connecting three stations
32
Ring Topology
• Each device connects Point-to-Point with only two other
devices in a left and right neighbors arrangement via a
repeater.
• When a device receives a signal intended for another device,
its repeater regenerates the bits and passes them along.
33
Ring Topology (cont.)
• Advantages:
– easy to install and reconfigure,
– better fault isolation and
–
• Disadvantages:
– Unidirectional traffic can be disadvantages
– break in the ring (such as a disabled station) can disable the entire
network
▪ Can be solved by using dual ring
34
Figure 1.8 A ring topology connecting six stations
35
Hybrid Topology
• Star of busses
• we can have a main star topology with each branch
connecting several stations in a bus topology as shown
in Figure 1.9
• Pros:
– Better robustness,
– still low cost,
– Delay is 1 hop
36
Figure 1.9 A hybrid topology: a star backbone with three bus networks
37
Categories of Networks
▪ Three primary categories: Local Area Networks (LAN), Metropolitan
Area Networks (MAN), and Wide Area Networks (WAN)
▪ Into which category a network falls is determined by its size, its
ownership, the distance it covers, and its physical architecture
38
Local Area Networks (LAN)
• Privately owned,
• Connects devices (PCs, printers, servers) within the a single
room, building, company, and campus.
• Each host in a LAN has an identifier, an address, that uniquely
defines the host in the LAN.
• LAN sizes limited to a few kilometers
39
Figure An isolated LAN in the past and today
40
Figure 1.10 An isolated LAN connecting 12 computers to a hub in a closet
41
Metropolitan Area Network (MAN)
• Metropolitan Area Network (MAN) is high speed network that
connect local area network in Metropolitan Area such as city or
town and handles bulk of communication activity across the
region usually spanning a city. (within 48km ) .
• A MAN typically includes one or more LAN but covers a smaller
geographically area than a WAN.
• High-speed backbone linking multiple LAN’s, DSL, cable TV
9A-42
Wide Area Networks (WAN)
• Covers a large geographically area such country or the world
• Span a large geographical area about 100’s – 1000’s of Km
• A LAN interconnects hosts; a WAN interconnects connecting
devices such as switches, routers, or modems
• WAN combines many types of media such as telephone lines,
cables and radio wave.
• A WAN can be one large network or can consist of two or more
LANs connected together.
43
Wide Area Networks (WAN)
• Switched WAN: End users connected via a cloud of switches
(subnet).
• Point-to-Point WAN: Line leased from telephone company/ cable TV
connecting users to the ISP for Internet access.
• Figure 1.11 WANs: a switched WAN and a point-to-point WAN
44
Figure 1.11 WANs: a switched WAN and a point-to-point WAN
45
Wide Area Networks (WAN)
46
Circuit Switching
• uses a dedicated communications path established
for duration of conversation
• comprising a sequence of physical links with a
dedicated logical channel
• eg. telephone network
47
Packet Switching
• Data sent out of sequence
• small chunks (packets) of data at a time
• packets passed from node to node between
source and destination
• used for terminal to computer and computer to
computer communications
48
Frame Relay
49
Asynchronous Transfer Mode (ATM)
50
Figure 1.12 A heterogeneous network made of four WANs and two LANs
51
Figure 1.12 A heterogeneous network made of four WANs and two LANs
52
Difference between types of Computer Network
9A-53
Methods of Communication
1. Unicast
54
2. Multicast
55
3. Broadcast
56
Network Communication Technology
NETWORK
COMMUNICATION
TECHNOLOGY
9A-58
Intranet
• An intranet is a private network within an organization that
resembles the internet.
• organizations use intranets to provide information to their
employees.
• typical applications include electronic telephone directories, email
addresses, employee information,
internal job openings
and much more.
9A-59
Extranet
• Is a private network that connects more than one organizations
• many organizations use the internet technologies to allow suppliers,
customers and business partner limited access to their network
• the purpose is to increase efficiency and reduce costs
9A-60
1-3 THE INTERNET
61
The Internet
62
The Internet
• an internet (note the lowercase i) is two or more networks that
can communicate with each other.
• The most notable internet is called the Internet (uppercase I),
which is composed thousands of interconnected networks
(100000’s) private organized, government, schools, research
facilities, in many countries
• Collection of LANs, MANs and WANs.
– The internet protocol stack is the TCP/IP
– End users use the internet via Internet Service Providers (ISPs)
which are of the following hierarchies:
• International Service Providers (Backbones)
• National or regional Service Providers (Provider Networks)
• Customer networks
63
Figure 1.13 Hierarchical organization of the Internet today
64
Figure 1.13 Hierarchical organization of the Internet
65
Internet Elements
Figure 1.4 illustrates the key elements that comprise the Internet, whose purpose is to
interconnect end systems, called hosts; including PCs, workstations, servers, mainframes,
and so on. Most hosts that use the Internet are connected to a network, such as a local
area network (LAN) or a wide area network (WAN). These networks are in turn
connected by routers.
66
Example Configuration
▪ Figure 1.6 illustrates some of the
typical communications and network
elements in use today.
▪ In the upper-left-hand portion of the
figure, we see an individual residential
user connected to an Internet Service
Provider (ISP) through some sort of
subscriber connection.
▪ The Internet consists of a number of
interconnected routers that span the
globe. The routers forward packets of
data from source to destination through
the Internet.
▪The lower portion shows a LAN
implemented using a single Ethernet
switch. This is a common configuration
at a small business or other small
organization.
67
1-4 PROTOCOLS AND STANDARDS
69
Key Elements of Protocol
• Syntax: PDU format
– Structure and format of the data
– The first 8-bit to be the address of the sender, the second 8
bit to be the address of the receiver, and the rest to be the
message itself
– Semantics:
• The meaning of each PDU’s field
• ex. Does an address identify the route to be taken or the
final destination of the message?
– Timing: Synchronization of communication when
PDU is to be transferred and its data rate.
70
What is a standard?
71
Standard Organizations?
– ISO.
– ITU-T
– ANSI
– IEEE
– EIA
72
Any Questions?
73