Professional Documents
Culture Documents
Orange Romania 1
Orange Romania
Networking
Marius Iordache
Agenda Orange Romania
Networking Fundamentals
TCP/IP addressing
Ethernet
LAN Switching
VLANs, Spanning Tree
Routing
RIP, EIGRP, OSPF
Network Design
VPNs
Best Practice
QoS
Case studies
Orange Romania 3
Networking Fundamentals Orange Romania
The OSI Model Open Systems Interconnection (OSI) offers seven-layer model:
Layer 1, physical
Layer 2, data link
Layer 3, network
Layer 4, transport
Layer 5, session
Layer 6, presentation
Layer 7, application
Orange Romania 4
OSI Orange Romania
Layer 1, physical
The physical layer is responsible for converting a frame (the output from Layer 2) into electrical signals to be
transmitted over the network. The actual physical network can be copper wiring, optical fiber, wireless radio signals,
or any other medium that can carry signals. This layer also provides a method for the receiving device to validate that
the data was not corrupted during transmission.
The data link layer is responsible for establishing the most elemental form of communication session between two
different devices so that they may exchange Layer 3 protocols. For computer networks, the data link layer adds a
header, which identifies the particular Layer 3 protocol used and the source and destination hardware addresses
(also known as Media Access Control [MAC] addresses). At this point, the packet (the Layer 3 output) is successfully
processed into a Layer 2 Frame and is ready to go onto the network. Ethernet switching and bridging operate at this
level
Layer 3, network:
The network layer is where the majority of communications protocols do their work, relying on Layers 2 and 1 to send
and receive messages to other computers or network devices. The network layer adds another header to the front of
the packet, which identifies the unique source and destination IP addresses of the sender and receiver. The process
of routing IP packets occurs at this level.
Orange Romania 5
OSI Orange Romania
Layer 4, transport:
The transport layer is responsible for taking the chunk of data from the application and preparing it for shipment onto
the network. Prepping data for transport involves chopping the chunk into smaller pieces and adding a header that
identifies the sending and receiving application (otherwise known as port numbers). For example, Hypertext Transfer
Protocol (HTTP) web traffic uses port 80, and FTP traffic uses port 21.Each piece of data and its associated headers
is called a packet
Layer 5, session:
The session layer manages connections between hosts. If the application on one host needs to talk to the application
on another, the session layer sets up the connection and ensures that resources are available to facilitate the
connection. Networking folks tend to refer to Layers 5 to 7 collectively as the application layers.
Layer 6, presentation:
The presentation layer provides formatting services for the application layer. For example, file encryption happens at this
layer, as does format conversion.
Layer 7, application:
The application layer provides networking services to a user or application. For example, when an e-mail is sent, the
application layer begins the process of taking the data from the e-mail program and preparing it to be put onto a
network, progressing through Layers 6 through 1.
Orange Romania 6
OSI Stack Orange Romania
Communications between the Layers is made usind PDU (protocol data units), including different data according to the transport layer
Define Encapsulation
Define De-Encapsulation
Orange Romania 7
TCP/IP addressing Orange Romania
To communicate, this devices should have a form of addressing, to transmit end-to-end the information
required
MAC address:
A manufacturer-allocated ID number that is permanent and unique to every network device on Earth. You have only
one, it stays the same wherever you go, and no two people (devices) have the same number. MAC address are
formatted using six pairs of hexadecimal numbers, such as 01-23-45-67-89-AB. It provides an easy translation from
binary (which uses only 1s and 0s), which is the language of all computers.
IP address:
Unlike a MAC address, the IP address of any device is temporary and can be changed. It is often assigned by the
network itself and is analogous to your street address. It only needs to be unique within a network. Someone elses
network might use the same IP address. Every device on an IP network is given an IP address, which looks like this:
192.168.1.1
Orange Romania 8
TCP/IP addressing Orange Romania
What is TCP/IP ?
TCP is a connection-oriented, reliable protocol that breaks messages into segments and reassembles them at the
destination station (it also resends packets not received at the destination). TCP also provides virtual circuits between
applications.
Connection-oriented protocol establishes and maintains a connection during a transmission. The connection is
established and maintained during the data transmission.
An unreliable, connectionless protocol. Although unreliable may have a negative connotation, in cases where real-
time information is being exchanged (such as a voice conversation, video, Real Time Application).
TCP/IP datagramams
TCP IP information is send via datagrams. A single message may be broken into a series of datagrames.
The Layer associated with TCP/IP are:
Application Layer (e-mail, file transfer)
Transport Layer TCP & UDP
Network Layer : IP, ICMP, ARP, RARP
IP is a connectionless protocol, best effort transporting Datagrams
Orange Romania 9
ICMP, ARP, RARP Orange Romania
What is ICMP ?
Internet Control Message Protocol (ICMP) - carry error and control messages with IP datagram . Ping allows one
station to discover a host on another network.
What is ARP
Address Resolution Protocol (ARP) allows communication on a multi-access medium - Ethernet by mapping known
IP addresses to MAC addresses
What is RARP
Reverse Address Resolution Protocol (RARP) is used to map a known MAC address to an IP address.
Orange Romania 10
TCP/UDP/Ports Numbers Orange Romania
TCP Windowing
A communication protocol have to receive an ack every packet
Reliable but very costly
Windowing is a compromise that reduces overhead by ack packets after a specific number has been received
Windows size one, each segment is ack every time
Windows size of 7, an ack every 7 segments needs to be sent after the receipt of the seven segments
Orange Romania 11
TCP/UDP/Ports Numbers Orange Romania
What is UDP ?
UDP is a connectionless, unreliable Layer 4 protocol. Unreliable - the protocol does not ensure that every packet will reach its
destination. UDP is used for applications that provide their own error recovery process or when retransmission does not make sense.
UDP is simple and efficient.
Why not resend ?
Real Time Application
Port Numbers
Port numbers (socket numbers) are used to keep track of different conversations crossing the network at any given time.
Well Known ports are assigned by IANA, other ports are assigned randomly from a specific range
TCP
FTP 21
Telnet 23
SMTP 25
DNS 53
SSH 22
80
UDP
DNS 53
TFTP 69
SNMP 161
RIP 520
80
Orange Romania 12
IP Addressing Orange Romania
Why IP ?
MAC vs IP
Address Classes
A first octet 1-126 , Network Mask /8
B first octet 128-191, Network Mask /16
C first octet 192.223, Network Mask /24
D multicast
E reserved
What represents a 10.10.10.0/29 ?
Subnetting
A method of segmenting hosts within a Network
Why subnetting ?
Subnet Mask
Subneting formula
each bit of subnetting beyond the default, you can create 2n2 subnets
Orange Romania 13
Internet Applications Orange Romania
EMAIL
Layer 7
SMTP as protocol
SMTP Servers
DNS Servers
POP3 Post Office Protocol 3 Servers
Another Protocol IMAP
Browsing
Layer 7
HTTP
Messenger
Skype
Kazaa
Orange Romania 14
Ethernet Orange Romania
Ethernet History
Ethernet Layer 2 within a LAN
Shared Link
Ethernet Collisions CSMA/CD
Bridges to split collisions domains
Switches to offer dedicated domains
Routers to permit traffic from one domain to another
Bridges
Layer 2 device which creates new segments, resulting fewer collision domains
Switches
High-speed multiport bridge intelligent decisions
Throughput
Higher port density
Lower price per port cost
Full duplex speed 10,100,1000 Mbps -> 10Gbps
Routers
Layer 3 devices
Routing deciscions
Inter-Domain Routing
Orange Romania 15
Switching Orange Romania
MAC learning
Learn address to make intelligent decisions MAC Learning
Forwarding traffic
Segmentation
Broadcast and Collisions Domains
Orange Romania 16
VLANs Orange Romania
Networks Loops
Alternative paths for redundancy
Preventing Network Loops at Layer 2 ?
STP Spanning Tree Protocol IEEE 820.1d
802.1w
802.1s
Orange Romania 17
Spanning Tree Fundamentals Orange Romania
STP defines a tree that spans all switches in a LAN by forcing certain redundant paths in the network into a blocked
state. If a link that previously forwarded traffic becomes unavailable, STP dynamically reconfigures the network to
redirect traffic flow by activating the appropriate standby path.
Switches dynamically determine the state of the spanning tree by exchanging information with others using
Orange Romania 18
Broadcast Storms Orange Romania
Solutions?
Using Spanning Tree Rules
Roles assigned:
Root bridge One RB in any loop
Root port
Designated Port
Non-designated port
Orange Romania 19
Spanning Tree Orange Romania
Port States
At any given time, the ports states are as follows:
Orange Romania 20
VLAN - virtual local area network Orange Romania
Orange Romania 21
Ethernet Structure Orange Romania
Orange Romania 22
Network Example - VLANs Orange Romania
Physical Ethernet
interface
Match
VLAN: 10
Match
VLAN: 20
Match
VLAN: 50
Match
VLAN: 100
Match
VLAN: 10
Match
VLAN: 20
Orange Romania 23
Routing Orange Romania
What is Routing ?
The process of moving a packet of data from one network to another
network based on the destination IP address
devices that perform this routing function are referred to as routers
Routers maintain a list of routes to as a routing table
Based on IP (Internet Protocol) - IP was the connectionless datagram
service in the original Transmission Control Program
Hosts or devices have IP adresses
IP is considered to be a Layer 3 Protocol
Today IP Protocol version 4 and version 6
IPv4 defines an IP address usin 32 bits
IPv6 defines an IP address using 128 bits
How Routing is achieved
Know the destination address
Identify the sources it can learn from
Discover possible routes
Select the best route
Maintain and verify routing information
Route Learning
Static
Dynamic
RIP, EIGRP
OSPF
IS-IS, BGP
Connected
Orange Romania 24
Routing Orange Romania
Routing Operates at layer 3 OSI, moving packets from a source to a destination, based on an IP Network
Protocol
Routing algorithms make the optimal path determination. Routers communicate with each other and maintain
their routing tables through the exchange of messages over the network.
Routing update contains all or part of another routers routing table and allows each router to build a detailed
picture of the overall network topology.
Routing Protocol: a series of messages that routers use to exchange information to provide paths in the network
RIPv2
EIGRP
OSPF
IS-IS
BGP
How Routing Works?
Orange Romania 25
Routing Orange Romania
Routers associate the DA in the packet to an appropriate next hop in its routing table.
For multiple paths, a routing table contains information that allowed a router to elect the best path to the
destination
Orange Romania 26
Routing Protocols Orange Romania
Distance Vector
Routing by rumor, routers sharing their routing tables with each-others
Describes direction /port and the distance number of hops or other metrics
Routers know the distance but dont know the topology
Use regular updates sending the entire routing table
Link State (SPF algorithm)
Each router maintains a database of topology information for the entire network
Provide better scaling that Distance Vector, sending updates only when a change occurs
Sends only the information specific to the change
Orange Romania 27
Routing Protocols Orange Romania
Orange Romania 28
Routing Protocols Orange Romania
Administrative Distance
Orange Romania 29
Routing Protocols Orange Romania
Orange Romania 30
Routing Protocols Orange Romania
Orange Romania 31
Routing Protocols Orange Romania
Orange Romania 32
Topology Types Orange Romania
Topology Types
Orange Romania 33
Routers and Switches Orange Romania
Orange Romania 34
Network Design Orange Romania
A design goal is to separate the networks Layers, the Hierarchical Design Approach been proven to be the most
effective
Business future
High availability
Oversubscription
Redundancy
Orange Romania 35
Network Design Orange Romania
Orange Romania 36
Virtual Private Networks Orange Romania
Key Concepts:
VPN allow a corporation to replace the dedicated private networks with virtually private networks
Cost savings
Security
Scalability
Compatibility
Ease of access
VPN Architecture
Layer 2 and Layer 3
May be combined L2 and L3
Modern VPNs based on MPLS
Orange Romania 37
Best Practice Orange Romania
Hardware redundancy
Hardware
Processors
Power supplies
Link
No single point of failure
Hot swap cards
Networking complexity
Redundancy is good and necessary
Single, logical an repetitive network design
A good design -> simplifies troubleshooting
Software
Protocols able to reroute traffic
Dual attached network
Network Monitoring
Detecting problems before affecting the network
Redundant Servers
Trainings
Orange Romania 38
QoS Quality of Service Orange Romania
Key Concepts
Allow the transport of traffic with special requirements
Defined by the ITU in 1994
Starting from Telephony needs
An ISP Network must assure :
Throughput
Dropped packets
Latency, Delay
Jitter
Out-of-Order Delivery
From Best Effort to an ordered delivery scenario
Assuring Qos:
Best Effort
Efficient sharing of bandwidth
Relative importance depends on traffic type (audio/video, file transfer, interactive)
Challenge: Provide adequate performance
Techniques
Orange Romania 39
Quality of Service Orange Romania
In a network with various traffic (voice, video, data) QoS is used to manage special requirements:
Low delay less than 250ms end-to-end
Low jitter less than 10 ms
Low packet loss less than 0.5 %
QoS assures highly availability in Networks
Qos Components
Best Effort first come first served, no any preference ~ FIFO
Integrated Services End devices are aware of the resources requirements and have the ability to
request traffic profile before sending data
Differentiated Services - there is no request for a specific traffic profile from the end device
The network is configured to give QoS parameters for traffic and the type is configured on the
networking equipment
traffic is marked on ingress to the network, so that the traffic can be correctly treated - classified
DiffServ introduces DSCP
Configurations guides and lines to achieve the results
Cos L2
IP Precedence L3
DSCP L3
Orange Romania 40
Quality of Service Orange Romania
Orange Romania 41
QoS Tips & Trips Orange Romania
Congestion Management
FIFO
PQ
Weighted Round Robin
Weighted Fair Queuing
Congestion Avoidance
Weighted Random Early Detection
Drop the packets based on average queue size and priority of a packet
Classification and Marking
Orange Romania 42
Policing versus Shaping Orange Romania
Orange Romania 43
QoS Techniques Orange Romania
FIFO
Traffic packets placed on outbound link to egress device in FIFO order
Orange Romania 44
QoS Techniques Orange Romania
Priority
All packets in a higher priority queue are served FIRST
Rest of traffic
Served as required
Orange Romania 45
QoS Techniques Orange Romania
Orange Romania 46
QoS Orange Romania
Orange Romania 47
Orange Romania
Hands On
Orange Romania 48
Orange Romania
Thank you!
Orange Romania 49