Lesson19-Network-1
Lesson19-Network-1
Fundamentals
Lesson19 — Network1
What's the network?
Computer Network
the Internet of Thing
The purpose of Computer
network
A computer network allows sharing of information
and resources among interconnected devices.
Other purposes of a computer network are
facilitating communication between people,
information preservation, sharing software and
hardware, sharing files, data, and information.
What's the computer
network?
A collection of
computers and
related devices,
connected in a way
that allows them to
share data,
hardware, and
software.
Client/Server?
Peer-to-Peer(P2P)?
Hardware
Client
Servers WAN? LAN?
Computers
WLAN? PAN?
Connection
Devices
medias Star?
Ring?
NIC? Bus ?
? Which mode Hub ?
Switch?
? Geographical Router?
distance AP?
? Topologies Twisted-Pair Cable?
? Related devices Optical Fiber?
? Connection medias Wireless?
Peer-to-
Client/Server
Peer(P2P)
Yes Centralize No
d node
Server Service Everyon
provider e
Geographical distance
WAN: Wide area network
Country wide or World wide
ring network
mesh network
Topologies
t Mode
m
Route
r
h/
Hub
Optical Fiber
Wire commonly made out of glass or plastic that
carries light signals
Wireless
Radio frequency signals, Microwaves, Infrared
light, Bluetooth, WI-FI (802.11)
Wireless
Connection
Wi-Fi (wireless fidelity) uses high-frequency radio signals to transmit
data. A number of standards for Wi-Fi(IEEE 802.11) exist, and each can
send and receive data at a different speed. Most home and business
wireless networks use Wi-Fi.
Bluetooth is a short-range radio communication standard
that transmits data over short distances of up to
approximately 33 feet. Bluetooth is widely used for wireless
headsets, printer connections, and handheld devices.
Cellular communication uses multiple antennae (cell towers)
to send and receive data within relatively small geographic
regions (cells). Most cell phones and mobile devices use
cellular networks.
Infrared uses infrared light waves to communicate over short
distances.
Line-of-sight communication (No obstructions )
Connection medias
Wired Wireless
Advantage Disadvantage Advantage Disadvantage
• Faster than • not convenient • Mobility • Speed
wireless • Range
network • Licensing
• More secure Regulated by
than wireless government
network agencies
Radio, television,
• easy to set up
Mobile phone
and configure Public
frequencies:
2.4GHz~5.8GHZ
• Security
Composition of the
Internet
PC,smart phone,
Edge
Webcam, server,
ISP …
end router
system
network
Core
router
网络
network
core
C D E F
subscriber line subscriber line
junction line
inefficient
2. Packet switching
• store and forward
message
1101000110101010110101011100010011010010
2. Packet switching
message
1101000110101010110101011100010011010010
packet 1
message
1101000110101010110101011100010011010010
2. Packet switching
分组交换网的示意图
router H4
H2
D
The path
H1 B changes
End system H6 dynamically!
E
A
H1 to H5 C
H5
H2 to H6
H3
2. Packet switching
分组交换网的示意图
Advantage description
Release
t
A B C D A B C D A B C D
message packet
store-forward store-forward
Trace router
• TTL stands for Time to Live that limits the lifespan or lifetime of data in
a computer or network.
• the TTL field is reduced by one on every hop. For example, tracert
command decreases initial TTL value till it reaches the destination
through all hops it traverses.
• TTL max value is 255
How does device get an
address?
MAC(Media Access control) address
A unique number assigned to a network interface card when
it is manufactured
Command line: ipconfig/all arp –a
Eg: e4-68-a3-91-58-2d
IP address
A series of numbers used to identify a network device
Command line: ipconfig
Eg: 192.255.231.194
IP address
IP address are 32 bits long (IPv4)
They are usually written as decimal numbers and divided by
periods into four groups.
ICANN (Internet Corporation for Assigned Names and Numbers)
Tel
86 021 6455 1617
Number
IP
211 . 144 . 105 . 187
Address Network Host
address Address
IP address
Net ID Host ID
32 bit
Class A 0
net-id host-id
8 bit 24 bit
Class B 1 0
net-id host-id
16 bit 16 bit
Class C 1 1 0
net-id host-id
24 bit 8 bit
class Maximum network The first Net ID The last Net ID Maximum host
222.1.2.4 222.1.2.3
Internet
A router should be connected to at least two networks (so that it can forward data
from one network to the other), so a router should have at least two different IP
addresses.
The network ID in the IP address of a host or router on the same LAN must be the
Static IP Address & Dynamic IP
Address
IPv6:128-bits IP address
Private IP address
Address ranges below are reserved for private intranets,
and not routable to the Internet.
Network
IP Address Pool
DHC
P
Serv
er
subnetting
Why is subnet needed?
Sometimes the utilization of IP address is inefficient.
Not flexible.
Management.
32 bit
R1
…
R3
… 145.13.7.56
All packets to
network 145.13.21.23 145.13.21.8
145.13.0.0 go 145.13.21.9
through this
router
With subnetting
Class B network: 145.13.0.0
All packets to
network
145.13.3.101
145.13.3.11
145.13.0.0 go 145.13.7.34
through this 145.13.3.10 …
145.13.7.35
router
R2 subnet 145.13.3.0
subnet
…
145.13.7.0
145.13.7.56
R1
subnet 145.13.21.0
R3 …
145.13.21.23
145.13.21.9 network
145.13.21.8 145.13.0.0
address/subnet mask
subnet mask is used to find the subnet address
subnet mask:
Length: 32 bit
Left: consecutive 1, net ID and
subnet ID
Right: consecutive 0, host ID
address/subnet mask
Network
A Net ID Host ID, all 0
address
Default
Subnet mask 11111111 000000000000000000000000
255.0.0.0
Default
Subnet mask 1111111111111111 0000000000000000
255.255.0.0
Network
C address Net ID Host ID, all 0
Default
Subnet mask
111111111111111111111111 00000000
255.255.255.0
IP address and subnet
mask Net-ID Host-ID
Two-level IP 145 . 13 . 3 . 10
Three-level IP 145 . 13 . 3 . 10
Subnet mask of
1111111111111111 1 1 1 1 1 1 10
10 0 0 0 0 0 0
Three-level IP
141 . 14 . 72 . 24
141 . 14 . 1 0 0 1 0 0 0.
0 24
AND
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0000 0 0 0 0 0 0
141 . 14 . 0 1 0 0 0 0 0. 0 0
network-prefix Host ID
32 bit
Min: 128.14.32.0
Max: 128.14.47.255