Networking Principles
Networking Principles
V-serie
data communication over switched phone lines
X-serie
data communication over dedicated phone lines
I-serie
digital telephone series
Communication mode:
Synchronous
Asynchronous
Connection mode:
Point-to-point
Multipoint
Communication option:
Simplex (unidirezionale)
Half-duplex (bidirezionale a turni)
Full-duplex (bidirezionale simultanea)
Interface types:
Data Terminal Equipment (DTE)
Data Communication Equipment (DCE)
connection-oriented
connectionless (si trasmette senza creare una connessione (tipo radio))
Communication option:
unicast
multicast
broadcast
anycast
geocast
Services can be:
Reliable
Not reliable
MODELLO OSI
HOST A HOST B
7 7
6 6
5 5
4 header 4 data 4
3 header 3 ... ... 3
2 header 2 ... ... ... 2
1 ... ... ... ... 1
Protocols:
define the methodology of interaction
LAYER 1
fisico
cablaggi in rame
Optical fiber
maggiore velocità, maggiore portata, meno interferenze, piu sicura
single/mono mode
multi mode
Wireless
Several Frequencies
Several Standards
Infrared
Cabling standards:
direct signal
signal modulation
base band coding
NRZ e RZ codes
Phase coding codes
Multilevel codes
Polar and Unipolar coding
modem: digital signal to analog
(ASK) amplitude modulation
(FSK) frequency modulation
(PSK) phase modulation
(QAM) quadrature modulation
multiplexing: multiple channel communication on the same line
tecniche:
(TDM) time division multiplexing
(FDM) frequency division multiplexing
(WDM) wavelength division multiplexing
(OFDM) orthogonal frequency division multiplexing
LAYER 2
Data link
Parity
VRC, BCC, SRC, Interleaving
CRC (Cyclic Redundancy Checking)
CSMA/CD
native speed 10Mbps
process:
CS (carrier sense) each node listen the network for activity
MA the network is shared among all nodes
CD during transmission the node are actively listening to detect collision
Ethernet
uses CDMA/CD, 10Mbps
difference between Ethernet and CDMA/CD (2bit per frame)
fast ethernet
100Mbps, UTP, STP or fiber
802.3u
Gigabit ethernet
1000Mbps
802.3z (optical fiber)
802.3ab (UTP)
10 Gigabit ethernet
10Gbps
802.3ae
100 Gigabit ethernet
100Gbps
802.3ba
Token Ring
16 Mbps
uses token passing (station can transmit only with token)
each station act as a repeater
802.5
Working principle:
When a machine wants to communicate it has to wait for free token, as soon as the machine gets
a free token it loads the token with data.
The clearing process is expected to be done by the machine that originates the token, that will
therefore empty it.
Other machines have to wait for the token to be free to communicate, however they can reserve
the token to use it when it will be free.
FDDI
fiber distributed data interface
100 Mbps
ISO 9314
Fiber, UTP, STP
SLIP
(is considered the originating point-to-point protocol for TCP/IP traffic, it is still used by some ISP)
(uses a (0xC0) as a start and end character for each IP datagram)
(max size of slip datagram 1066bytes)
PPP
point-to-point, is an encapsulation service for data link WAN similar to what is used in LAN
Includes:
-Encapsulation methods supporting multiple concurrent protocols on the same link;
-A specialized protocol (LCP) Link Control Protocol, used to negotiate any PPP
PPP header includes:
-Flag, Protocol Identifier, (FCS) Frame Check Sequence
Has maximum packet size: 1500 bytes
ISDN
DQDB
WIRELESS LAN
#FIXME 68-73
typical infrastructures:
Switch
Bridge (old)
Access point
cell based
53 byte cells, for end to end connections, virtual circuits
frame based
dedicated capacity, NOT an IEEE-Standard
LAYER 3
#IP address
class A -> 2 hosts
24
Special IP addresses:
Subnet Mask
32 bit
1-> indicate network part of the IP address
0-> indicate host part of the IP address
es: 255.255.255.224
Gateway
a gateway connects two networks
works at OSI layer 3
Routing
A router make decisions on frames
In order to route packets uses a routing table
a routing table contains information about:
Layer 3 switch:
firstly developed at the end of the 90's
based on ASIC technology
they are in fact real router: they can:
types of routing:
static routing
Each new network or route must be manually added, programmed and maintained
dynamic routing
uses routing table
autonomously cares for routing, updates of routing table and status
Optimization of routing path is based on:
"Distance vector"
system to calculate path, n of hop, n of network between 2 nodes
"Link state"
operates taking into account the current tate of the path: bandwidth, link state such as
delay, network congestion
How does a router Work?
Network
Network protocols: (not IP)
Routing protocols: OSPF, RIP, ...
Network IP protocols
#IPv4
#RARP ARP (Address Resolution Protocol)
#ICMP (Internet Control Message Protocol)
#IPv6
Routing:
Static
Dynamic
Routing schemes:
Unicast
Broadcast
Multicast
Anycast (=multicast, ma basta che 1 riceva il messaggio)
Geocast (=multicast, ricevitori nello stessa geographical location)
Routing topology:
Routing protocols:
Non adaptive
the algorithm does not take in account the current network state
(static routing)
Adaptive
make decision using network state
router exchange information on their neighbors
to do this router exchange "hello packets"
examples: RIP, IGRP, IS-IS, OSPF, EIGRP.
Neighbor acquisition
verifies if is there a agreement to be neighbor
Neighbor reachability
monitor neighbor connection
exchange the information of network
#BGP Border Gateway Protocol
developed to substitute EGP
BGP routers exchange information using TCP connection on port 179
these are called BGP session.
eBGP → External BGP session, between routers of different AS
iBGP → Internal BGP session, between routers of same AS
Router configuration
interface definition
an IP is assigned at every router interface
static path definition
static routes (including subnet mask) are setting the route path to the next hop allowing to reach
the destination
if an issue arise reaching a destination with static routing is impossible
protocols:
ARP protocol
Address Resolution Protocol
maps an IP of a device and its MAC address
keeps track of the response
does not provide mechanisms to authenticate responses
ICMP protocol
Internet Control Message Protocol
transmit information regarding malfunctions, control information, messages between IP network
components
Incapsulated directly into IP, (delivery not guaranteed)
Often used as ping and traceroute
#IPv4
identifies a network interface
32bit (4bytes-.-.-.-)
see in more detail #IP
#IPv6
128bit
comparison
#DHCP protocol
A host without a valid IP can request one to the DHCP server
A DHCP srv send these information to the host
- IP address including Subnet Mask
- Default gateway
- Other configuration network parameters
DHCP server can dynamically assing IP addresses to hosts ad re-use/assign IP address
some DHCP srv allow IP reservation mapped with MAC
Why?
Host don’t have to be manually configured
Includes administration controls for network administrator
It provides the stack protocol and configuration parameters (for application and others) to the
hosts
What can do?
Plug-and-play
Move a computer from one office to another, from a network to another
Renumber
Other renovations - change subnet masks
Mobile IP - portable
Move infrastructure - portability
#FIXME
Dynamic IP assignment
#RARP
#BOOTP
#DHCP
LAYER 4
It allows exchanges between hosts using IP addresses and communication ports.
Offers:
Flow controll
Guaranteed data correctness
Reliable information
Close a connection
UDP TCP