Professional Documents
Culture Documents
Review of Networking Concepts: Prof. Malathi Veeraraghavan University of Virginia
Review of Networking Concepts: Prof. Malathi Veeraraghavan University of Virginia
M. Veeraraghavan
Polytechnic University
Outline
Review of basic concepts in networking
Prerequisite: A first course on networking Communication links and switches Types of networks Shared links: media access control (MAC)
M. Veeraraghavan
Polytechnic University
End-user equipment
End-user equipment
Error correction:
ARQ (Automatic Repeat reQuest) FEC (Forward Error Correction)
M. Veeraraghavan
Polytechnic University
Switches
Connect multiple links and route traffic from one link to another
End-user equipment End-user equipment
Switch
End-user equipment
M. Veeraraghavan 5
End-user equipment
Polytechnic University
M. Veeraraghavan
Polytechnic University
Answers
Number of direct links needed to connect N nodes is N ( N 1) 2 N links since we only need one link from an endpoint to a switch
M. Veeraraghavan
Polytechnic University
M. Veeraraghavan
Polytechnic University
Concept of multiplexing
Time division multiplexing
Allows data from different sessions to be combined at different times on to the same line How many DS0s in a T1?
Answers
24 DS0s in a T1 Term WDM is the same as FDM at optical frequencies see EM spectrum chart Speed of light c = f : wavelength; f: frequency
M. Veeraraghavan
10
Polytechnic University
Transceiver rate
Rate of transmission and reception at endpoints and the switch
Needs to be sufficient for full mesh connectivity all the time e.g., if DS0s used between endpoints in full mesh network, then T1s can be used in 25 endpoint network with a switch for full mesh connectivity
M. Veeraraghavan 11 Polytechnic University
Types of switches
Circuit switches: Position-based switching
Switch consults a table to determine output port on which to send data bits based on their arriving position
Position: Interface (space), time slot and/or wavelength
Space division switch: switch based on input interface Time division switching: interface + time slot Wavelength division switching: interface + wavelength No buffers
M. Veeraraghavan
Polytechnic University
Switch designs
See lectures on circuit switching and packet switching in Course on Data Networks Compare unfolded view of a CS with that of a PS See relevance of queueing theory to delays of calls or packets through switches
M. Veeraraghavan
13
Polytechnic University
Network of switches
Expand 1-switch network to a multi-switch network Why not build one gigantic switch?
Scalability limitations
Switch
End-user equipment End-user equipment
Switch Switch
End-user equipment
Polytechnic University
M. Veeraraghavan
14
Switching modes
Connection-oriented
Packet-switching Circuit-switching
M. Veeraraghavan
ATM, X.25
Stored
Recording
Stored
Stored streaming
File transfers
M. Veeraraghavan
16
Polytechnic University
Stored
Recording
Stored
Stored streaming
File transfers
M. Veeraraghavan
17
Polytechnic University
Interactive (two-way) (consumed and sent live) e.g. telephony, telnet, ftp, http
Streaming (one-way) (consumed live; sent from live or stored source) e.g. radio/TV broadcasts
Recording (one-way) (stored at receiver end; sent from live source); e.g. Replay
Connectionless networks
Circuit-switched networks
18
Ideal networks
Polytechnic University
Congestion control
What is it?
The purpose of a network is to allow sharing of resources This means if demand is high, there could be competition for resources from multiple users What are network resources:
Link capacity (bandwidth) Switch buffer space (only in packet switches)
M. Veeraraghavan 19 Polytechnic University
Congestion control
In CO networks
Congestion control: mostly preventive Connection Admission Control (CAC)
Check availability of bandwidth and buffer resources before admitting a connection CS CO networks: congestion will not occur once circuits are admitted PS CO networks: congestion can occur after connection is admitted if connection admission is based on statistical multiplexing
Have some supplemental reactive congestion control scheme
M. Veeraraghavan 20 Polytechnic University
Congestion control
In CL networks
Have packet switches detect congestion and send reactive messages asking sender to slow down e.g., datagram routers in SS7 networks send such messages; SRP (Spatial Reuse Protocol) switches in 802.17 MANs send such messages IP routers implement Explicit Congestion Notification (ECN) procedures
M. Veeraraghavan 21 Polytechnic University
End-to-end path
Transport protocols
Ensure reliable transfer across a communication path consisting of many links (zero loss) OR ensure delay-controlled path across a communication path consisting of many links Error control and flow control Delay control (e.g., RTP) Congestion control and connection control special in TCP
M. Veeraraghavan 22 Polytechnic University
Applications
Most Internet applications are client-server based
Network
Network
End-user equipment
Email-sending clients (outlook, messenger) M. Veeraraghavan
End-user equipment
Protocol Stacks
AL TL NL DLL PHY NL
DLL DLL
AL
TCP/UDP NL
DLL DLL
PHY PHY
PHY PHY
Endpoint
Switch
Switch
PHY: Physical; DLL: Data Link Layer; NL: Network Layer; TL: Transport Layer; AL: Application Layer
M. Veeraraghavan 24 Polytechnic University
Example protocols
AL protocols: http, smtp, ftp, PCM voice TL protocols: TCP, UDP, RTP, AAL NL protocols: IP, ATM DLL protocols: PPP, HDLC PHY protocols: DS0, DS1 Ethernet: PHY+DLL+NL
25 Polytechnic University
M. Veeraraghavan
Control plane:
Connection control protocols
in CO networks, this includes connection setup at each switch (connections at the network layer) in CL networks, this includes connection setup only at the endpoints (connections at the transport layer, if the TL protocol is reliable)
Host A
Dest. III-*
Next hop IV
III
Routing tables
Routing protocols exchange topology/loading/reachability information Routes to destinations are precomputed and stored in M. Veeraraghavan 29 Polytechnic University routing tables
II
b a
Connection setup b
a
Connection setup
c d
III
d c
IV
M. Veeraraghavan
II
b a
Connection setup b
a
Connection setup
c d
III
d c
IV
Circuit
Host A
SYN V
Dest. B
Next hop II
Routing tables
Polytechnic University
II
a
L3
L1
c a b c
III
d d c
Host B V
IV
2
b a
1 III
d c b
2 Host B
1
c a b c
IV
Bits arriving at switch I on time slot 1 on port a are switched to time slot 2 of port c
M. Veeraraghavan 34 Polytechnic University
B III
d c b
Host A
B
c a b c
Host B V
B
B
IV
Packet headers carry destination host address (unchanged as it passes hop by hop) Each CL packet switch does a route lookup to determine the outgoing port/next hop node
M. Veeraraghavan 35 Polytechnic University
Addressing
Where are endpoint addresses used:
In CL PS networks, endpoint addresses are carried in packet headers In CO networks, be it PS or CS, endpoint addresses are carried in connection setup messages
M. Veeraraghavan
36
Polytechnic University
Summarized addresses
What are summarized addresses? Why summarize addresses?
M. Veeraraghavan
37
Polytechnic University
Summarized addresses
What are summarized addresses?
An address that represents a group of endpoint addresses e.g., all 212 numbers, 128.238 IP addresses
M. Veeraraghavan
39
Polytechnic University
In the Internet:
Link-state routing protocols, such as Open Path Shortest First (OSPF) Distance-vector based routing protocols, such as Routing Information Protocol (RIP)
In telephone networks:
Real-Time Network Routing (RTNR)
M. Veeraraghavan 40 Polytechnic University
Telephone networks
8-byte E.164 address (telephone number)
ATM networks
20-byte ATM End System Address (AESA)
M. Veeraraghavan
41
Polytechnic University
Broadcast links
Wireless Copper: ethernet hubs Optical fiber: Passive star couplers
Ethernet hub or WDM Passive Star Coupler
Dest: A
Blind broadcast
M. Veeraraghavan 42 Polytechnic University
MAC protocols
Medium Access Control (MAC) protocols are used in broadcast links to allow a node to access medium and send information As if switch is in endpoints Wasteful of resources because all endpoints receive all packets
Bs MAC layer checks destination address to determine whether the packet should be switched to the application or dropped
End-user equipment A
To B
End-user equipment B
Cs MAC layer checks destination address to determine whether the packet should be switched to the application or dropped
End-user equipment C
43 Polytechnic University
M. Veeraraghavan
To B
Endpoint
Endpoint
M. Veeraraghavan 44 Polytechnic University
Multipoint drops: potential interference on inbound line polling; e.g. multidrop telephone lines
Hubs/Optical passive star couplers: any data received on one line is broadcast to all other lines
Consequence: access links are often shared MAC protocols in the upstream direction
M. Veeraraghavan 48 Polytechnic University
M. Veeraraghavan
49
Polytechnic University
Circuit switch
Similar in concept: sharing resources on one link among many users Difference:
Multiple senders on access link One sender in each direction on inter-switch link
M. Veeraraghavan 50 Polytechnic University
Internetworking
An internet
A path that traverses multiple networks possibly ones using different networking techniques
M. Veeraraghavan
51
Polytechnic University
Single networks
Simplest network one link Endpoint Endpoint
Endpoint
Endpoint
One network same type of switches link rates can be different Endpoint Switch Endpoint
M. Veeraraghavan 52
Switch
Switch
Endpoint
Have all endpoints speak the IP (Internet Protocol) in addition to their own network protocols For loss-sensitive applications: run TCP, an end-to-end transport protocol, irrespective of whether
both ends are within the same network the two ends are on different networks
M. Veeraraghavan
Inter-N: IP
Inter-N: IP
T1 N1 L1 P1
Switch N1 L1 P1 L2 P2
Switch N1 L2 P2
L3
T1 N1 L3 P3
T2 N2 L4 P4
Switch N2 L4 P4 L5 P5
Switch N2 L5 P5 L6 P6
T2 N2 L6 P6
P3
Network 1
Network 2
M. Veeraraghavan
54
Polytechnic University
1 3
Switch 3
Switch 4
Host C
Host B
Host D
Ethernet 1
Host A sends a packet to Host C: - Places Host Cs IP address in IP header - To get through Ethernet 1, it needs Ethernet address of IP routers interface 1 - Switch 1 and Switch 2 forward packets based on destination Ethernet address of IP routers interface 1 - IP router forwards packet to port 2 to reach Host C (based on IP level routing data using destination IP address of host C) - IP router needs Ethernet address of Host C to send the packet through Ethernet 2 M. and 4 forward packets based on destination Ethernet address 56 - Switch 3Veeraraghavan of Host C
Ethernet 2
Ethernet 3
Polytechnic University
Summary
Reviewed networking concepts
M. Veeraraghavan
57
Polytechnic University