Professional Documents
Culture Documents
Lecture 1 and 2
Lecture 1 and 2
Lecture 1 and 2
Introduction
Computer Networks
2
What is a Computer Network
◆A set of communication elements connected by
communication links
router
workstation
➭ Communication elements server
● Computers, printers, mobile phones, … mobile
● Routers, switches, ... local ISP
➭ Communication links
● optic fiber
● coaxial cable regional ISP
● twisted pair
● wireless (radio, microwave, satellite)
➭ Topologies
● Ring, Star, Bus, Tree, Mesh
company
ISP: Internet Service Provider
3 network
Introduction
⚫ Computer Network
– an interconnected collection of autonomous computers
Internet: “network of networks”
– loosely hierarchical
– public Internet versus private intranet
WWW a distributed system run on the top of Internet
⚫ Distributed System
– The components interact with one another in order to
achieve a common goal.
4
1.1 Uses of Computer Networks
•Business Applications
•Home Applications
•Mobile Users
•Social Issues
5
Business Applications of Networks
• A network with two clients and one server.
a. Resource sharing (hardware, software, information, …)
b. Providing communication medium (e-mail, video conferencing)
6
Goals of Networks for Companies
⚫ Resource sharing: equipment, programs, data
⚫ high reliability
– replicated data
– hardware
⚫ Saving money
– mainframe: 10 times faster, but 1000 times more expensive than PC
– client-server model
⚫ Scalability
– mainframe: replace a larger one
– client-server model: add more servers
⚫ Communication medium for separated employees
7
Business Applications of Networks (2)
a. Two processes are involved
8
Home Network Applications
•Access to remote information
•Person-to-person communication
•Interactive Entertainment
•Electronic commerce
9
⚫ Networks for People
– Access to remote information
• e.g.: financial, shopping, customized newspapers, online
digital library, WWW
– Person-to-person communication
• email, video conference, newsgroup
– Interactive Entertainment
• VOD(Video on demand), interactive movies or TVs, game
playing
10
Home Network Applications (2)
• In peer-to-peer system there are no fixed clients and servers.
11
Home Network Applications
• Some forms of e-commerce models.
12
Network Hardware
•Local Area Networks
•Metropolitan Area Networks
•Wide Area Networks
•Wireless Networks
•Home Networks
•Internetworks
13
Network Hardware
• Types of transmission technology
•Broadcast links
•Point-to-point links
14
Network Hardware
– Broadcast networks
• single communication channel shared by all machines
• broadcasting or multicasting (via packets)
– broadcasting: a special code in the address field
– multicasting: reserve one bit to indicate multicasting, the remaining n-1address bits can hold a
group number. Each machine can subscribe to any groups
• used by localized networks (or satellites)
– point-to-point networks
• many hops
• routing algorithms: multiple routes are possible
• used by large networks
15
Classification of interconnected processors by
scale
16
Local Area Networks (LANs)
· Characteristics of LANs:
(a) Privately owned, (b) small size,
(c) transmission technology, (d) topology
18
Metropolitan Area Networks
2
0
Wide Area Networks (WANs)
WANs are point-to-point networks
WANs consist of two distinct components: transmission lines (copper, fiber, microwave)
and switches (electronics, optics)
Store-and-forward or packet-switched subnet
2
2
Subnet (WANs)
2
3
Wide Area Networks
2
5
Wireless Networks
27
⚫ Fundamentally different properties
1. Devices have to be easy to install
2. The network and devices have to be foolproof in operation
3. Low price is essential
4. The network needs sufficient capacity ( for multimedia applications)
5. The network interface and wiring have to be stable for
many years
6. Security and reliability will be very important (minimize false
alarms or misalarm)
⚫ Home networks may be wired or wireless
28
Internetworks
• Internetworks connect networks with different hardware and software
• A collection of interconnected networks is called an
internetwork or internet
• Gateways are used to make the connection and to provide the
necessary translation (protocol conversion)
29
Network Software
• Protocol Hierarchies (Layer structure)
• Design Issues for the Layers
• Connection-Oriented and Connectionless Services
• Service Primitives
• The Relationship of Services to Protocols
30
Network
Software
Protocol Hierarchies
– a series of layers (levels)
– lower layer provides service to higher layers
– protocol:
• an agreement between the communication parties on how communication is to proceed
– Peers:
• the corresponding active layers on different machines.
– Network architecture: a set of layers and protocols
– Protocol stack:
• a list of protocols used by a certain system, one protocol per
layer
31
Network Software
Virtual
Protocol Hierarchies Communication
→ Peer
Physical
Communication
33
Protocol Hierarchies
36
Design Issues for Layers
⚫ Identify senders and receivers
– multiple computers and processes: addressing
⚫ Data transfer
– simplex, half-duplex, full-duplex communication
– # of logical channels per connections, priorities
⚫ Error control
– error detection
– error correction
⚫ Sequencing of pieces
37
Design Issues for Layers
⚫ Flow control
– feedback from the receiver
– agreed upon transmission rate
⚫ Length of messages
– long messages: disassemble, transmit, and reassemble
messages
– short messages: gather several small messages
⚫ Multiplexing and Demultiplexing
– when expensive to set up a separate connection
– needed in physical layer
⚫ Routing: split over two or more layers
– High level: London -> France or Germany -> Rome
– Low level: many available
38 circuits
Connection-Oriented and Connectionless
Services
39
Service Primitives (Operations)
A service is formally defined by a set of primitives (operations)
available to a user process to access the services.
Service Providers
43
The design principle of the OSI reference model
•A layer should be created where a different
abstraction is needed
•Each layer should perform a well defined function
•The function of each layer can be chosen as an
international standard
•The layer boundaries should be chosen to minimize
the information flow across the interfaces
•The number of layers should be not too large or not
too small
44
Reference Models
The OSI
reference
model.
45
The functions of the seven layers
• The physical layer is concerned with transmitting raw bits over a
communication channel
• The data link layer performs flow control and also transforms a raw
transmission facility into a line that appears error free (ARQ)
• The network layer controls the operation of the subnet, e.g. routing, flow
control, internetworking,…
• The transport layer performs assembling and disassembling, isolates the
upper layers from the changes in the network hardware, and determines the
type of services
• The session layer establishes sessions (dialog control, …)
• The presentation layer is concerned with the syntax and semantics
• The application layer contains a variety of commonly used protocols (e.g.
Hyper Text Transfer Protocol for WWW, file transfer, e-mail, network news,…)
46
The TCP/IP reference model.
47
Reference Models
• Protocols and networks in the TCP/IP model initially.
48
Firewalls
• Firewall A machine and its software that serve as a special
gateway to a network, protecting it from inappropriate access
• Filters the network traffic that comes in, checking the validity
of the messages as much as possible and perhaps denying
some messages altogether
• A firewall establishes a barrier between secured internal networks
and outside untrusted network, such as the Internet.
Firewalls
15-51
Network Addresses
Figure
An IP address is stored in four bytes
Figure
Some of the top-level domain
names based on country codes