Chapter 6 - Networks
Chapter 6 - Networks
Chapter 6 - Networks
P.1
Topics in this Chapter
• What’s the Internet?
• What’s a protocol?
• Peer-to-Peer Networks
*Many slides and contents in Chapter 6 are adapted from ppt slides (in
substantially unaltered form) available from “Computer Networking: A Top-Down
Approach,” 4th edition, by Jim Kurose and Keith Ross, Addison-Wesley, July 2007.
P.2
Lecture 21 - Nuts and bolts view of
the Internet
3
What’s the Internet: “nuts and bolts” view
• The public Internet is a world-wide
computer network. It is a network that
interconnects billions of computing
devices throughout the world.
• The interconnected computing
devices include: PCs, UNIX-based
workstations, PDAs, TVs, cell phones,
automobiles, environmental sensing
devices, home electrical and security
systems, webcam servers, etc.
5
What’s a protocol?
• End systems and other pieces of the Internet run
protocols (sets of rules) that control the sending and
receiving of information within the Internet.
• Protocols define format, order of messages sent and
received among network entities, and actions taken on
message transmission/receipt.
6
The Network Core
• The network core is the mesh
of routers that interconnected
the Internet’s end systems.
7
Network Core: Circuit Switching
• The resources needed along a
path to provide for communication
between the end systems are
reserved for the duration of the
communication session.
• Performance is guaranteed.
8
Network Core: Circuit Switching
• First establish a circuit
between end points Caller
– E.g., done when you
dial a phone number
– Message propagates
from the caller towards
the callee, establishing (1)
some states in each Establish
switch
P.9
Network Core: Packet Switching
• Resources are not reserved; a session’s messages use
the resources on demand, and as a consequence, may
have to wait (that is, queue) for access to a
communication link.
• Long messages are broken into chunks of data known
as packets.
• Each packet contains control information in a header.
• Control information includes:
– Destination address Header Data
– Source address
– Size of messages, etc
10
Network Core: Packet Switching
• Most packet switches use store-and-forward transmission
at the inputs to the links.
• Store-and-forward means that the switch must receive the
entire packet before it can begin to transmit the first bit of
the packet onto the outbound link.
• Store-and-forward packet switches introduce a store-and-
forward delay at the input to each link along the packet’s
route.
• The store-and-forward delay
= the length of a packet L bits / outbound link transmission rate R bps
11
Packet Switching: Statistical Multiplexing
100 Mb/s C
A Ethernet statistical multiplexing
100 Mb/s
B
queue of packets
waiting for output
link
D E
Sequence of A & B packets does not have fixed pattern, bandwidth shared
on demand statistical multiplexing (first-come first-served).
P.12
Summary of Lecture 21
• We have discussed the nuts and bolts of the Internet.
• Protocols define format, order of messages sent and
received among network entities, and actions taken on
message transmission/receipt.
• Circuit switching reserves a constant transmission rate in
the network’s link for the duration of the connection.
• Packet switching uses the network resources on demand,
and as a consequence, may have to wait (that is, queue)
for access to a communication link. Long messages are
broken into chunks of data known as packets.
• Due to much less queuing delay, packet switching is
much more efficient than circuit switching for transferring
data.
13
CORE1240 Electronic & Information Technology
14
Content Distribution Networks (CDNs)
• Clients may be far from servers, with many Internet
Service Providers (ISPs) in between
– increasing the likelihood of significant delay and loss.
• Popular contents, such as hit MP3 songs, videos, etc., will
likely be sent many times through the same ISPs (and
over the same communication links)
– consuming significant bandwidth to send the same info.
• Content Distribution Networks (CDNs) provide an
approach to alleviate the above two issues.
15
Recalled a world-wide computer network:
Mesh of routers
from WAN of
other regions
16
Content distribution networks (CDNs)
origin server
• The content providers are in North America
the CDN customers.
• CDN company’s services:
– installs hundreds of servers CDN distribution node
throughout the Internet
– places servers in a data
center close to ISP access
networks & the clients
– replicates its customer’s
CDN server
content in the CDN servers in S. America
CDN server
CDN server
in Asia
– server content is refreshed in Europe
whenever a customer
updates its content
17
Content distribution networks (CDNs)
• When a client requests origin server
content, the content is in North America
specific client.
• This server may be the
closest or has the least
congested path to the
client. CDN server
CDN server
CDN server
in S. America in Asia
in Europe
18
Content distribution networks (CDNs)
www.youtube.com
origin server
in North America
Congested
Not congested
Client in
Hong Kong
19
CDNs advantages:
20
Peer-to-Peer Networks (P2P)
• A peer-to-peer (or P2P) computer network is a network
that relies primarily on the computing power and
bandwidth of the participants in the network rather than
concentrating it in a relatively few servers.
• Examples
Communications -- Skype
File sharing -- BitTorrent
21
Peer-to-Peer Networks (P2P)
P.22
Peer-to-Peer Networks – QQ
• QQ is a powerful online platform for chatting, gaming, shopping, as
well as space and microblog …
P.23
Peer-to-Peer Networks – QQ
Client.Server Client.Server
Client.Client Client.Client
P.24
Internet Services -- VoIP
• Voice over Internet Protocol, also called VoIP, IP Telephony,
Internet telephony, Broadband telephony, Broadband Phone
and Voice over Broadband is the routing of voice conversations
over the Internet or through any other IP-based networks.
P.25
VoIP (How it works)
Gateways allow
PCs to also reach
Public Switched phones
Telephone Network
PSTN
Initially, PC/phone to (HK)
PC/phone voice calls Gateway
over the Internet
Multimedia
Smart phone PC
IP Network
Gateway
Multimedia
PC Smart phone
…or phones to
PSTN
reach phones
(NY)
P.26
Skype – a proprietary VoIP
• Skype is a proprietary peer-to-peer Voice over IP (VoIP) network
P.27
P2P Services -- BitTorrent
• BitTorrent is the name of a peer-to-peer (P2P) file
distribution protocol, and is the name of a free software
implementation of that protocol.
• In 2002, B. Cohen debuted BitTorrent.
Key Motivations:
– E.g. CNN on 9/11, new movie/game release
– Focused on Efficient Downloading, not Searching
• Distribute the same file to all peers
• Single publisher, multiple downloaders
• BitTorrent is designed to distribute large amounts of data
widely without incurring the corresponding consumption in
costly servers and bandwidth resources.
P.28
BitTorrent – peer-to-peer file sharing
Seed
P.31
What is Bitcoin?
• an open-source software released in 2009
• credited as the world’s first cryptocurrency (digital
currency in which encrypted techniques are used)
• uses a P2P decentralized network (no central authority
between transactions)
• it is an unregulated and nongovernment digital currency.
Bank
The money
moves from
A to B.
https://aid.technology/could-blockchain-technology-help-the-worlds-poor/
P.34
Summary of Lecture 22
• Content Distribution Networks (CDNs) provide contents
to a client through a CDN server that is the closest or
has the least congested path to the client.
35
Intended Learning Outcomes
• On successful completion of this course, you will be able
to
– Recognize the key technological developments of
electronic and information technology
– Identify the fundamental principles related to
electronic and information technology
– Use MS Excel to solve simple engineering problems
– Acquire engineering knowledge on up-to-date
electronic and information technology
P.36
36
Final Exam (50 minutes)
37