Professional Documents
Culture Documents
NET Lect1
NET Lect1
DSRG
Agenda 1/2
• Introduction (basic terms)
• Reference models (ISO/OSI and TCP/IP)
• OSI/ISO Physical layer
• OSI/ISO Data link layer
– Ethernet
– virtual networks
– redunduncy (spanning tree)
• IP protocol
– addressing,
– address resolution,
– control messaging
© 2000-2018 Łukasz Czekierda, Bartosz Kwolek, DSRG 3 version 1.06
Networks and Protocols – EFREI 2018/2019, lecture 1
DSRG
Agenda 2/2
• IPv4 routing
– static
– dynamic
• Transport layer protocols
• Architecture of a modern computer network
• Virtual private networks
• Dynamic network configuration (BOOTP, DHCP, DNS)
• Application layer protocols
– HTTP,
– FTP, TFTP, SNMP, SMTP
– telnet, SSH
© 2000-2018 Łukasz Czekierda, Bartosz Kwolek, DSRG 4 version 1.06
Networks and Protocols – EFREI 2018/2019, lecture 1
DSRG
Quiz
• OSI model
• TCP
• ICMP
• Routing
• OSPF
• MAC
• Switch
DSRG
DSRG
DSRG
RFC documents
(Request for Comments)
• Official documents describing network-related standards
– Publication process supervised by IETF
– Crucial documents of networking professionals
– Numbered, e.g. RFC 3550
• RFC 1 (7 April 1969) – Host Software
– Sometimes older documents are becoming obsolete
– www.rfc-editor.org or rfc-ref.org
DSRG
PRESENTATION
Provides communication in
a single network (single
SESSION May be responsible for
technology).
Responsible
Responsible
Responsible for
Responsible
forfor
provisioning
providing
routing.for
a
reliable
Provides
Responsible
delivery
protocols
for(e.g.
session
forTCP).
user
ofproviding
communication
Provides
commonmedia
a logical
dataaccess
medium
TRANSPORT creation
Provides applications.
and
addressing
andprotocol
coding
management.
representation.
addressing.
of
and stream
inside
host of
HTTP,
theImplemented
host
FTP,(port
telnet,numbers).
bySMTP,…
OS.
Implemented
addressing.
IP,data
IPX,…by OS.
NETWORK TCP, UDP, SCTP, DCCP,…
Ethernet, Token Ring, FDDI,
PPP, FR…
DATA LINK
PHYSICAL
DSRG
APPLICATION
APPLICATION PRESENTATION
SESSION
TRANSPORT TRANSPORT
INTERNET NETWORK
DATA LINK
ACCESS
PHYSICAL
DSRG
Communication protocol
Set of rules regarding exchange of information:
a) user data, b) control data
with the corresponding layer in another system
DSRG
Communication in the layered
system
• Between two communicating systems:
– Each implementation of OSI/ISO model layer in one system
communicates logically with implementation of the same
layer in the other system (peer-to-peer)
– Implementation of the other system may be different
providing that the same interface is used
• Within a single system:
– Implementation of each layer is independent of the other
ones
– Between neighboring layers a well-defined interface exists
DSRG
peer-to-peer
APPLICATION APPLICATION
PRESENTATION PRESENTATION
SESSION SESSION
TRANSPORT TRANSPORT
NETWORK NETWORK
PHYSICAL PHYSICAL
DSRG
DSRG
Communication in the layered
system
APPLICATION APPLICATION
PRESENTATION PRESENTATION
encapsulation
SESSION SESSION
NETWORK NETWORK
medium
DATA LINK DATA LINK
PHYSICAL PHYSICAL
TCP
DATA IP
Ethernet
DSRG
DSRG
router 3
switch
2
bridge
hub
1
repeater
DSRG
Any network
DSRG
Tasks
• Providing communication medium
• Electrical, mechanical, optical etc. aspects of
communication
• Coding of byte stream received from upper layers
DSRG
Attenuation
• Amplitude of the signal decreases
• Limits the maximum distance which can be
traversed
• Depends on many factors
– Type of media
– Frequency
– Temperature
DSRG
Attenuation
• Expressed in dB/km
– 10log(P1/P2) [dB]; P1,P2 [W]
– 20log(V1/V2) [dB]; V1,V2 [V]
• For example:
– 3 dB – power decreases 2 times
– 10 dB – power decreases 10 times
– 20 dB – power decreases 100 times
DSRG
Distortion
• Caused by external factors
– EMI, RFI
• Caused by internal factors, e.g. other cables in the
patchcord
– NEXT: Near End Crosstalk
– FEXT: Far End Crosstalk
• Reduced by
– Shielding the medium (cost increases!)
– Twisting the pair
– More than one pair in a cable: twisting them at different rates
• Appropriate cabling is crucial
Grafika: www.cisco.com
DSRG
Summary
• These factors must be taken into account while
designing the network!
– Appropriate medium type
– Appropriate medium length
– Appropriate cabling quality and placement
• BER, bit error rate
– In the wired networks - even only 10-10
– In the wireless networks – even up to 10-4
DSRG
Categories
• Wired
– Copper cables
– Fiber cables
• Wireless
– Radio frequency(e.g. 802.11, Bluetooth)
– Infrared frequency (e.g. IrDA)
DSRG
Cables
cable
copper fiber
DSRG
Twisted pair
• Transmission performed in pairs, not single cables
• Cancellation effect
• Categories
– 5, 5e – 100 MHz, 125 MHz
– 6, 6a – 250 MHz, 500 MHz 8.1, 8.2 – 2000 MHz
– 7, 7a – 600 MHz, 1000 MHz (2017)
• Attenuation
– 10 MHz, cat. 3 – 9,8 dB/100 m
– 10 MHz, cat. 5 – 6,6 dB/100 m
– 100 MHz, cat. 5 – 22 dB/100 m Grafika: www.cisco.com
DSRG
Grafika: www.cisco.com
DSRG
Terminator
Grafika: www.cisco.com
DSRG
Twinax
• twinaxial cable
(twin coaxial)
• popular since 2013
• very-short-range high-
speed differential signaling,
e.g.100GbE (7m)
DSRG
Fiber
– Glass conductor (core)
– Cladding
www.cisco.com,
www.fiber-optics.info/fiber-history.htm
DSRG
Fiber
• Transmitter: LED or laser diode
• Receiver: fotodiode złącze SC
• Resistant to electromagnetic interferences
• (D)WDM ((Dense) Wavelength Division Multiplexing)
• Very low attenuation (ca. 0,5-1,5 dB/km)
• More expensive than copper media
• Difficult to install
www.cisco.com
DSRG
Fiber - windows
• 850 nm
• 1310 nm
• 1550 nm
www.fiber-optics.info/fiber-history.htm
DSRG
Fiber cables
• Single mode (SMF)
– 9/125 µm
– Laser diode
– Range: up to 70-100 km
– Mainly WAN networks
• Multimode (MMF)
– 62,5/125 µm
– LED
– range: up to 2 km
– Mainly LAN networks
ww.fiber-optics.info
DSRG
Coding
• Transforming data into the form appropriate to
send in particular medium
– Depends on the type of the medium
– Self-synchronization feature
– Not necessarily two-level coding
DSRG
Manchester
Differential
Manchester
DSRG
4B/5B codes
value code value code
0 (0000) 11110 8 (1000) 10010
1 (0001) 01001 9 (1001) 10011
2 (0010) 10100 A (1010) 10110
3 (0011) 10101 B (1011) 10111
4 (0100) 01010 C (1100) 11010
5 (0101) 01011 D (1101) 11011
6 (0110) 01110 E (1110) 11100
7 (0111) 01111 F (1111) 11101
DSRG
MLT-3 coding
• Logical level: 4B/5B
• Physical level: MLT-3
• Used in FastEthernet
DSRG
Tasks
• Providing a medium-access protocol
• Transmission and reception of frames
• Addressing
• Detection and (optionally) correction of physical
layer errors
DSRG
DSRG
LAN standards
• 802.3 Ethernet
• 802.4 Token Bus
• 802.5 Token Ring
• 802.11 wireless LAN (WLAN)
• 802.15 PAN (Bluetooth)
DSRG
LAN topologies
• Bus
• Ring
• Star
• Extender star
DSRG
Frame
• A piece of data composed of fields
• Typical data layer fields
– Start of frame delimiter
– End of frame delimiter or length
– Source and destination addresses
– Type of data
– Data - payload
– Checksum
DSRG
DSRG
DSRG
DSRG
DSRG
DSRG
DSRG
Ethernet frame
FRAME CHECK
DESTINATION
DELIMITER
SEQUENCE
PREAMBLE
ADDRESS
ADDRESS
START OF
SOURCE
LENGTH
TYPE or
FRAME
DATA
7B 1B 6B 6B 2B 46 - 1500 B 4B
DSRG
Ethernet frame
FRAME CHECK
DESTINATION
DELIMITER
SEQUENCE
PREAMBLE
ADDRESS
ADDRESS
START OF
SOURCE
LENGTH
TYPE or
FRAME
DATA
7B 1B 6B 6B 2B 46 - 1500 B 4B
• Bit synchronization
• Allows a receiver’s interface to prepare to receive
data
• Consecutive 1 and 0
DSRG
Ethernet frame
FRAME CHECK
DESTINATION
DELIMITER
SEQUENCE
PREAMBLE
START OF
ADDRESS
ADDRESS
SOURCE
LENGTH
TYPE or
FRAME
DATA
7B 1B 6B 6B 2B 46 - 1500 B 4B
• Byte synchronization
• 10101011
DSRG
Ethernet frame
FRAME CHECK
DESTINATION
DELIMITER
SEQUENCE
PREAMBLE
ADDRESS
ADDRESS
START OF
SOURCE
LENGTH
TYPE or
FRAME
DATA
7B 1B 6B 6B 2B 46 - 1500 B 4B
DSRG
Ethernet frame
FRAME CHECK
DESTINATION
DELIMITER
SEQUENCE
PREAMBLE
ADDRESS
ADDRESS
START OF
SOURCE
LENGTH
TYPE or
FRAME
DATA
7B 1B 6B 6B 2B 46 - 1500 B 4B
DSRG
Ethernet frame
FRAME CHECK
DESTINATION
DELIMITER
SEQUENCE
PREAMBLE
ADDRESS
ADDRESS
START OF
SOURCE
LENGTH
TYPE or
FRAME
DATA
7B 1B 6B 6B 2B 46 - 1500 B 4B
DSRG
Ethernet frame
FRAME CHECK
DESTINATION
DELIMITER
SEQUENCE
PREAMBLE
ADDRESS
ADDRESS
START OF
SOURCE
LENGTH
TYPE or
FRAME
DATA
7B 1B 6B 6B 2B 46 - 1500 B 4B
• At least 46 bytes
• If there is less data, pad is used
• In IEEE 802.2 standard a few starting bytes denote type of
data in the payload
DSRG
Ethernet frame
FRAME CHECK
DESTINATION
DELIMITER
SEQUENCE
PREAMBLE
ADDRESS
ADDRESS
START OF
SOURCE
LENGTH
TYPE or
FRAME
DATA
7B 1B 6B 6B 2B 46 - 1500 B 4B
DSRG
CSMA/CD
Carrier Sense
Multiple Access
with
Collision Detection
DSRG
Carrier Sense
• A host continuously monitors the medium
– When it is busy, cannot transmit
– When it is free, waits IFG period and starts
transmission
• Al least IFG (Interframe Gap) must exist between
consecutive frames (9,6 μs in 10 Mbps Ethernet)
DSRG
Multiple Access
• Each host stating that the medium is free can start
transmission
• Is it possible (and acceptable) that more than one host will
transmit concurrently
• collision occurs
DSRG
Collision Detection
• After noticing the collision
– If the preamble transmission is in progress it is
continued
– jam sequence is transmitted (32 bits) to allow the
remaining hosts to notice the collision
– Transmission is stopped
– The host waits a random period of time (exponential
backoff algorithm)
– The host tries to transmit the same frame again
• All hosts participating in the collision do the same
• In the correctly constructed network collision cannot
occur after transmission of more than 64 bytes
© 2000-2018 Łukasz Czekierda, Bartosz Kwolek, DSRG 79 version 1.06
Networks and Protocols – EFREI 2018/2019, lecture 1
DSRG
Which frames are received
(and processed)?
• NIC decides about it on the basis of the frame destination
address:
– Is destination address equal to my address?
– Is destination address the broadcast address?
– Is destination address one of multicast addresses I am
interested in?
• Decision is taken:
– After checking the FCS (the most frequently)
– Bridges and switches - also: immediately after reading
the destination address or the first 64 B of the frame
• Some network devices work in the promiscuous mode –
they receive and process all frames
© 2000-2018 Łukasz Czekierda, Bartosz Kwolek, DSRG 80 version 1.06
Networks and Protocols – EFREI 2018/2019, lecture 1
DSRG
• Autonegotiation
DSRG
DSRG
Auto negotiation
• Automatic configuration of Ethernet network link
• 1995 r.
• Mainly twisted pair
• Basic tasks:
– Setting interface speed (e.g. 10-100-1000 Mbps)
– Enabling/disabling the full duplex mode
• One step procedure – during link up
• HCD (highest common denominator) is selected
by the peers
DSRG