Ch1. Computer Networks and Internet

Download Report

Transcript Ch1. Computer Networks and Internet

Ch 1. Computer Networks and
the Internet
Myungchul Kim
[email protected]
What is the Internet?

One sentence definition?
–
–

Hosts or end systems
–
–
–

Internet home appliances
Pervasive computing
Ubiquitous computing
Communication links
–

Software and hardware
Services
Bandwidth: bits/second
Routers
2

Packet

Route or path
–
–


Internet Service Providers (ISP)
Protocols
–
–
–

Specifies the format of the packets that are sent and received among
routers and end systems
TCP (Transmission Control Protocol)
IP (Internet Protocol)
Intranet
–

End system -> links and routers -> end system
Packet switching: sharing a path
Private networks
Internet Standards
–
–
IETF (Internet Engineering Task Force): www.ietf.org
RFCs (Request for Comments)
3

A service description
–
–

distributed applications: remote login, electronic mail, Web surfing, instant
messaging, audio and video streaming, Internet telephony, distributed games,
peer-to-peer (P2P) file sharing,…
Connection-oriented reliable services and a connectionless unreliable service
Protocols
–
Figure 1.2.
4

Definition of a Protocol
–
Defines the format and the order of messages exchanged between two or more
communicating entities, as well as the actions taken on the transmission and/or
receipt of a message or other event
5
The Network Edge



Host = end system: clients and servers
Peer-to-peer: acts as both a client and a server
Transport layer protocols
–
–

Connection-oriented service: TCP
–
–
–

Handshaking protocol -> connection
End-to-end
Reliable data transfer, flow control and congestion control
Reliable data transfer
–

Connectionless service
Connection-oriented service
Acknowledgement
Flow control
–
Force the sending end system to reduce its rate whenever there is a risk
keeping the sending pace. With buffers in the end systems.
6

Congestion control
–
–
–

Congestion
Buffer overflow of routers -> packet loss
Force end systems to decrease the rate at which they send packets into the
network during periods of congestion.
Connectionless Service: UDP
–
–
–
No handshaking
No reliable data transfer
Internet phone and video conferencing
7
The Network Core

Circuit switching
–
–
–

Packet switching
–
–
–

Reserved for the communication session
A circuit: at the guaranteed constant rate
Telephone network
The network resources on demand
Internet
Best effort
Multiplexing in Circuit-switched networks
–
–
The dedicated circuits are idle during silent periods
Frequency-division multiplexing (FDM) or Time-division
multiplexing (TDM)
8

Fig 1.6.
9

Packet switching
–
–
–
–
–
–
Message -> packets
Routers = packet switches
Store-and-forward transmission -> delay
Output queue -> delay
Packet loss
Fig 1.7
10

Packet switching vs Circuit switching
–
Real-time services
–
Sharing of network resources
–
Implementation
11

Message switching
–
–
–
–
–
Message switching: sequential transmission
Packet switching: parallel transmission (pipelining)
Error handling?
Header overhead?
Figure 1.8 and Figure 1.9
12
–
Figure 1.10
13
–
Figure 1.11
14

Packet forwarding
–
–
–

Packet-switched networks: datagram networks and virtual circuit networks
Datagram network: forwards packets according to host destination addresses
Virtual circuit networks: forwards packets according to virtual circuit numbers
Virtual circuit networks
–
Virtual circuit: a path + virtual circuit numbers + entries in VC-number translation
tables
Fig 1.12
–
Maintain state information
–
15

Datagram networks
–
–

Similar to the postal service
Do not maintain connection-state information in their switches.
Network taxonomy
–
Fig 1.13
–
Networks with VCs are always connection-oriented.
16
Network Access

Residential access
–
–
–
–

Company access
–
–

Dial-up modem
Digital subscriber line (DSL): point-to-point
Hybrid fiber coaxial cable (HFC): shared
Bottom of Page 30
LAN
Ethernet
Mobile access
–
–
Wireless LAN
IEEE 802.11b, Wi-Fi
17
ISPs and Internet Backbones

Tier-1 ISPs
–
Internet Backbone

Tier-2 ISPs

Fig 1.17
18
Delay and loss in Packet-switched
networks

Fig 1.18

Processing delay
–
–
–

Examine the packet’s header and determine where to direct the packet
Check for bit-level errors
Microseconds or less
Queuing delay
–
–
–
A packet waits to be transmitted onto the link
Depends on the number of earlier-arriving packets that are queued and
waiting for transmission across the link.
Microseconds to milliseconds.
19

Transmission delay
–
–
–
–

Propagation delay
–
–
–

Store-and-forward delay
Transmit all of the packet’s bits into the link
L/R where L bits = length of the packet, R = 10 Mbps for a 10 Mbps Ethernet link
Microseconds to milliseconds
Propagation speed of the link
d/s where d = distance and s = the propagation speed of the link
Milliseconds
Comparing transmission and propagation delay
–
–
–
–
d nodal = d proc + d queue + d trans + d prop
d prop : hundreds of milliseconds for two routers by a satellite link
d trans : hundreds of milliseconds for low-speed dial-up modem links
d proc : at the max rate of a router
20

Queuing delay
–
–
–
–
Traffic intensity La/R where a = the average rate of packets arrival at
the queue (packets/sec), L bits of a packet, R = the transmission rate
(bits/sec), and the infinite queue.
If La/R > 1, the queue will tend to increase without bound and the
queuing delay will approach infinity.
If La/R ≤ 1, the nature of the arriving traffic impacts the queuing delay.
Periodically or in bursts or random
Fig 1.19
21

Packet loss
–
–

A queue has finite capacity.
Performance of a node = delay + packet loss
End-to-end delay
–
d end-end = N (d proc + d trans + d prop) for N-1 routers
where the network is uncongested.
22

Traceroute
–
–
–
–
Repeats experiment three times
eniac.seas.upenn.edu -> diane.ibp.fr (pp. 48, 49)
Queuing delay
Transatlantic link
23
Protocol layers and their service models





A layered architecture allows us to discuss a well-defined,
specific part of a large and complex system.
N-PDUs
Protocol stack
Service model
– Layer n-1 is said to offer services to layer n
Fig 1.22
24

Layer functions
–
Error control
Flow control
Segmentation and reassembly
Multiplexing
Connection setup
–
Duplicate lower-layer functionality
–
–
–
–
25

The internet protocol stack
–
Fig 1.23
26
–
–
–
–
–
–
Application layer: HTTP, SMTP, FTP
Transport layer: TCP, UDP
Network layer: IP, routing
Link layer: Ethernet, PPP
Physical layer
Fig 1.24
27