40
Training Ethernet and IP Basics

Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Embed Size (px)

Citation preview

Page 1: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Training

Ethernet and IP Basics

Page 2: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Overview

– OSI Layer Model – Ethernet– IP– ARP– IP Routing– Higher Layer Protocols– VRRP– ATM Vision Network Setup– Practice

Page 3: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Section

OSI Layer Model

Page 4: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

OSI Layer Model

Application

Application

Presentation

Session

Transport

Network

Data Link

Physical

Data Transport

Physical interface (cable, transceiver etc.)

Transmission, framing and error control

Data transport

Reliability and multiplexing of data transport

Adding control mechanism to data transport

Structuring of data units

Managing of communications

OSI: Open Systems Interconnection

Page 5: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

LAN Layer and the OSI Reference Model

Data LinkLayer

MACSublayer

PhysicalLayer

Eth

ern

et

IEE

E 8

02.3

100B

aseT

To

ken

Rin

g/IE

EE

802

.5

FD

DI

LLCSublayer

IEEE 802.2

OSI Layers LAN Specifiaction

Page 6: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Section

Ethernet

OSI Layer Model

Page 7: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Ethernet Frame

PreambleSource

AddressFCS

DestinationAddress

Type Data

8 6 6 2 46-1500 4

Field Length,In Bytes

FCS = Frame Check Sequence

MAC Address: IP Data: 00 : a3 : 25

Vendorspecific

VendorID

00 : 50 : 66 IP Header

Page 8: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Section

IP (Internet Protocol)

OSI Layer Model

Ethernet

Page 9: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

IP Packet

Version IHL Type of Service Total Length

Identification Flags Fragment offset

Time to Live Protocol Header Checksum

Source Address

Destination Address

Options

Data (1 Bytes – 64 kBytes)

Padding

IHL: Internet Header Length

32 Bit

IP Header

IP Data

Page 10: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

IP Addressing

IP address comprises 32 Bits, grouped into four octets

32 Bit

8Bit 8Bit 8Bit 8Bit

C0 A8

192 168 151 44

97 2CHex:

Dec.: . . .

. . .

11000000 10101000 10010111 00101100Bin.: . ..

Page 11: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Network Example

192.168.151.44192.168.151.45

192.168.151.215

Page 12: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Section

ARP (Address Resolution Protocol)

OSI Layer Model

Ethernet

IP

Page 13: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

ARP

• ARP: Address resolution protocol

• Communication between two Ethernet interfaces on a local network based on MAC addresses

• The address resolution protocol (ARP) provides mapping of an IP address to the unique MAC address

Page 14: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

ARP

ARP

ARP

ARP ARP ARP ARP ARP

ARP

ARP

ARP

ARP ARP ARP ARP

ARP

ARPMAC

address

MACaddress

MACaddress

MACaddress

MACaddress

MACaddress

MACaddress

MACaddress

MACaddress

MACaddress

IP: 192.168.151.45MAC: 00:25:12:34:F2:A3

IP: 192.168.151.16MAC: 00:25:12:11:BB:C1

IP: 192.168.151.163MAC: 01:A1:23:8A:45:01

MACaddress

MACaddress

Page 15: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Section

IP Routing

OSI Layer Model

Ethernet

IP

ARP

Page 16: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Subnetting With Netmask

IP address „ANDED“ with netmask splits net into network and subnet portion

192 168 151 44IP Address: . . .255 255 255 0 Logical AND with Netmask: . . .

Network Network Network Subnet

192 168 151 0. . .Results in Subnet number:

11000000 10101000 10010111 00101100. ..11111111 11111111 11111111 00000000. ..„AND“

11000000 10101000 10010111. .. 00000000

Page 17: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Network Example

192.168.172.44255.255.128.0

192.168.196.63255.255.128.0

192.168.151.1255.255.128.0

192.168.13.1255.255.255.0

Router

192.168.13.234255.255.255.0

192.168.13.19255.255.255.0

Page 18: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Special IP Addresses

Network: 192.168.151.xNetmask: 255.255.255.0

Subnet number: 192.168.151.0Subnet broadcast: 192.168.151.255

Example:

Local host: 127.0.0.1Multicast groups: 224.0.0.0 ... 239.255.255.255

Experimental: 240.0.0.0 ... 254.255.255.255

Page 19: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

IP Routing

Static routing

- Static entries in routing table

- Setting up Network Interface creates routing entry for local Network

- Entries made by administrator

- No dynamic changing of entries

Dynamic routing- Internet devices investigate their neighbourhood and store the information in the routing table

- These information will be collected by special protocols (OSPF, RIP, BGP)

Routing maintained by routing tableRouting table entries consist of:

- Destination IP address- Mask- Gateway- Metric (optional)- Interface (optional)

Routing decisions made on “best fit”

Page 20: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Section

Higher Layer Protocols

OSI Layer Model

Ethernet

IP

ARP

IP Routing

Page 21: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

TCP / UDP

• Connection oriented• Connection status available• Order guaranteed• Assured data transport by the use of:

- Flow control- Data verification (checksum)- Data re-transmission in case of lost packets

The Transmission Control Protocol (TCP) and the User DatagramProtocol (UDP) work on top of IP.

UDP:

• Connectionless• Order guaranteed• Duplications removed• Unassured data transport (no acknowledge, no re-transmission)

TCP:

Page 22: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Firewall

Devides privat and public Network or two Networks

Protects privat Network from unauthorized access

Restricts access to or from local machines

Firewalling based on rules

• accept

• deny

• reject

Rules consists of source and destination IP address and Port (TELNET, FTP, HTTP ...)

EXTREMLY HARD TO CONFIGURE

Page 23: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Firewall

Firewall

HTTP

TELNET

NETWORK A NETWORK B

Page 24: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Masquerading

Is located on the same position as the Firewall Only one public IP address needed for whole

private Network Often works together with Firewalls on the same

machine Exchanges local IP address with the public address

192.168.1.x

PublicNetwork

Masquerading

192.168.1.x

212.21.117.3

Page 25: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Section

VRRP

OSI Layer Model

Ethernet

IP

ARP

IP Routing

Higher Layer Protocols

Page 26: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

VRRP

Provides Router Redundancy transparent to hosts

All Router must reside on the same Network

The machine with the highest priority becomes VRRP mastership

Machines with lower priority are VRRP slaves

Up to 254 machines for redundancy

The master broadcasts VRRP packets

If no VRRP packet is received within a defined time, the Slave with the highest priority takes mastership and starts to send VRRP packets and listens on the specified IP address

Virtual Router Redundancy Protocol (VRRP)

Page 27: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

VRRP

Simple 1+1 redundancy

MasterSlave

GW: Master GW: Master

VRRP: MasterVRRP: Master

Page 28: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Section

ATM Vision Network Setup

OSI Layer Model

Ethernet

IP

ARP

IP Routing

Higher Layer Protocols

VRRP

Page 29: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

IP Network Settings

Enable networking:

sysconf net enable

Startup Ethernet Interface:

sysconf net <Interface> <IP address> netmask <Mask> up

<Interface>: eth0 = Ethernet 1 eth1 = Ethernet 2

Page 30: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

IP Network Settings

Set route to other local networks:sysconf route add –net <IP address> netmask <Mask> gw <Gateway>

Page 31: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Inband Management

Enable Classical IP (CLIP):

sysconf clip enable

Enable IP forwarding to other interfaces:sysconf net ipforward enable

Page 32: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Inband Management

Add CLIP destination to routing table:

sysconf atmarp add <Dest. IP address> <VPI>.<VCI>

Configure CLIP interface:sysconf net <Interface> <IP address> netmask <Mask> up

Create CLIP interface:sysconf clip interface <Index> enable

<Interface>: clip<Index>

Page 33: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Inband Management

CLIP QoS parameter:

sysconf clip interface <Index> qos <QOS|default>

<QOS> = <class>,<type>:<common list>,tx:<list>,rx:<list> <class> = ubr | cbr <type> = aal0 | aal5 <common list> = <list> valid for tx and rx <list> = pcr=rate | max_pcr=rate | min_pcr=rate |

sdu=size | max_sdu=size

Page 34: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

VRRP

root@Karlsruhe:/> sysconf vrrp ?usage: sysconf vrrp sysconf vrrp show sysconf vrrp <VRID> disable sysconf vrrp <VRID> priority <priority> sysconf vrrp <VRID> advertise <advertise interval> sysconf vrrp <VRID> preempt enable|disable sysconf vrrp <VRID> auth none|<password> sysconf vrrp <VRID> IP <IP-Address> { <IP-Address> } sysconf vrrp <VRID> monitor disable|<IP-Address> <TTL> <icmp|eth0|eth1>root@Karlsruhe:/>

VRRP Parameter:

<VRID> = VRRP ID (identifies the VRRP Network)priority = Router priority on the VRRP ID <0..255>. Default: 255 = VRRP masteradvertise = Time interval (in sec.) between two VRRP protocol packets. Timeout after

3 * advertise interval preempt = Allows slave to take over VRRP mastership from slaves with lower priority.

VRRP master with priority = 255 always takes mastershipauth = Authentication necessary (with password) or notIP = IP-Address(es) to protectmonitor = Allows additional monitoring on further connections (ETH0, ETH1 or ATM).

Monitoring on ETH0 and ETH1 is only supported on ATM Vision.

Page 35: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Checking Connectivity

Check IP (Ethernet) connection:

ping <IP address>

Tracing route to destination:

traceroute <IP address>

Check ATM connection:

oam <Interface> <VPI> [VCI] <seg|end>-<loopback|ais|rdi>

Page 36: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Checking Connectivity

The last ressort:

tcpdump -i <Interface> -n [-vv]

Establish remote connection:

telnet <IP address>

Page 37: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Section

Practice

OSI Layer Model

Ethernet

IP

ARP

IP Routing

Higher Layer Protocols

VRRP

ATM Vision Network Setup

Page 38: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Hands On: IP Network

Name:

IP address:

Netmask:

Name:

IP address:

Netmask:

Name:

IP address:

Netmask:

Hub

Name:

IP address:

Netmask:

EthernetATM

IP Range: 192.168.x.x

Page 39: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Hands on: IP, ATM and VRRP

ATM

IP Range: 192.168.x.x

Ethernet

Page 40: Training Ethernet and IP Basics Overview OSI Layer Model Ethernet IP ARP IP Routing Higher Layer Protocols VRRP ATM Vision Network Setup Practice

Hands on: IP and CLIP over SVC

Name:

IP address:

Netmask:

Name:

IP address:

Netmask:

Name:

IP address:

Netmask:

Name:

IP address:

Netmask:

EthernetATM

IP Range: 192.168.x.x

SD

Catalyst8500

Power Supply 0CISCO YSTEMSS Power Supply 1

SwitchProcessor

SERIES