application File, PRint, message, database, and applications Determines availability of the target host. Www, email, FTP, telnet, edi, quake
Presentation Data Encryption, compression, and translation services Determines the syntax of the data transfer. Pict, tiff, jpeg, midi, mpeg, quicktime, etc
session Dialog control, coordinates the comunications Nfs, sql, rpc, x windows, asp (appletalk session protocol), DNA SCP ( digital whatzit)
Transport End-to-end communication Responsible for hiding the communications from the higher layers. TCP / UDP
Network Routing ip / ICMP, BootP, ARP, RARP Routers
Data Link Framing Ethernet II, 802.5 (token ring), 802.3, 802.2 (802.3 with dsap and ssa p logical link control fields) Media access control: MAC: 48 bits, 3 bytes vendor + 3 bytes serial nu mber
WAN:
High-level datalink control HDLC (cisco default for serial links) Synchronous Data Link Control SDLC (uses polling) Link Access Procedure, Balanced LAPB x.25, slip, ppp, isdn, Frame Relay Bridges / Switches Physical Wire?nbsp; v.24, v.35, x.21, g.703, hssi, etc Repeaters / Hubs
DOD Model
Process/application ?nbsp; application, presentation, session Host-to-host ?nbsp; transport Internet ?nbsp; network Network access ?nbsp; Datalink / physical
LAN
Ethernet 802.3 CSMA/CD Ethernet_II 802.2 10base2/thinnet: 185 meters 10base5/thicknet: 500 meters 10baseT: can run above 10Mbps 200ish meters 5-4-3 rule: 5 segments, 4 repeaters, 3 segments populated 100BaseTX: 100 meters, up to 2 repeaters. Packets between 512 and 1518.
FDDI 100 Mbps token passing with dual counter-rotating rings
Token-ring 802.5 4 / 16 Mbps
ATM 53-byte cells
Flow Control
Contention: CSMA/CD : Carrier Sense Multiple Access, Collision Detect Token Passing: Token Ring, Fiddi Polling: SDLC, some HDLC, some HP ethernet stuff
SWITCHING
Store ?nbsp;and ?nbsp;forward Buffers whole frame before forwarding
Cut-Through Forward frame as soon as destination address is available
Fragment Free Does Cut-Through after 64 bytes are received to stop collision packe ts from being forwarded.
802.1d Spanning-Tree Protocol STP detect and eliminates loops in routed network
STA: Spanning Tree Algorithm Sends out BPDUs: Bridge protocol data units
VLAN:
Virtual Lans
Create 'logical' networks by location, function or department.. Or pro tocol, or whatever. Done with a switch using Frame-Tagging (can be used between switches I f you have ISL inter-switch link) Frame-Tagging uses unique user-defined id entifiers while within the switch fabric, and is very scalable.
TCP/IP
Port numbers:
TCP: protocol number 6 ftp: 21 telnet: 23 smtp: 25 UDP: protocol number 17 Dns: 53 Tftp: 69 Snmp: 161
TCP Addressing:
0-255: public assigned 256 ?nbsp;1023: assigned to companies 1023+ user defined / source addresses
IP Addressing:
Class leading bits decimal range of first byte A 0 1-127 B 10 128-191 C 100 192-223 Learn the rest of the stuff? Way out of scope of this.
NOTE: Cisco considers the mask to be the bits beyond what is 'normal' for th at class address, not the entire number of bits in the subnet mask, sometimes?
IPX
Protocl Stack:
1. Application, presentation, session - RIP, SAP, NCP, NLSP, etc?nbsp; 2. Transport - IPX, SPX 3. Network - IPX 4. Data link - ODL Open Data Link 5. Physical - whatever
IPX
Connectionless, and communicates via sockets Each host runs its own internal ipx network in addition to any lan n etwork Addressing: 10 byte address first 4 bytes are network ?nbsp;need to be unique, otherwise whatever..
Last 6 bytes are node - usually just use the MAC address
SPX
Sequence Packet eXchange Connection oriented protocol Creates virtual circuits, with specific connection Ids
RIP
Routing information protocol Distance vector protocol that establishes routes between ipx network s Judges based on ticks (1/18 second units) and hops Broadcast every 60 seconds Used to provide each server with a complete network map
SAP Service advertising protocol Servers use it to advertise, clients use it to locate services Broadcast every 60 seconds
NLSP NetWare Link Services Protocol Link-state protcol to replace RIP and SAP someday?nbsp;
NCP NetWare Core Protocol Provides access to server resources
Netware in a nutshell
1. Strict client-server model (nobody is both) 2. Servers provide files, printing, messaing, applications, and data bases 3. Every netware server (or cisco router) creates a SAP table of all services offered by all servers 4. A client issues a GNS (GetNearestServer request) broadcast to fin d out what is on the local SAP
Netware frame types & Features
1.802.3 default on NetWare 3.11 2.802.2 default on NetWare 3.12+ 3.ethernet_ii - supports tcp/ip and ipx 4.ethernet_SNAP - appletalk, tcp/ip, and ipx
Routing Protocols
RIP:
Routing Information Protocol Distance ?nbsp;vector routing protocol Updates every 30 seconds Route invalid timer 90 seconds: time before route considered invalid . Route flush timer: 240 seconds: route removed from table Can use metrics (1-15) to weight against some interfaces 15 hop limit
OSPF:
Open Shortest Path First Link-state routing Very infrequent broadcast updates Extremely granular metrics
NLSP:
Novell's Link State Protocol Link-state
IGRP:
Interior Gateway Routing Protocol (cisco proprietary) Distance-vector Metrics and hop count from 1-255 Measures delay in units of 10 milliseconds Measures bandwidth ?nbsp;on serial connection this needs to be set, defau lt is T1 Measures reliability as 1-255 (255 optimal): Measures load: 0-255 (0 = no-load) Allows multi-path routing (dual links of equal bandwidth to 1 locatio n) Implements hold-downs, split horizons, and poision reverse updates Update timer is 90 seconds, invalid timer is 270 seconds (3 times upd ate) Hold down timer is 280 (3 times update +10 seconds) flush timer is 630 seconds (7 times update) administrative distances: (reliability of information) 0 = direct connection, 1 = static, 100 = igrp, 110 =ospf, 120 = rip, 2 55 = unknown
EIGRP:
Enhanced IGRP Hybrid routing protocol Uses distance vectors, however they are triggered by changes, not tim ers. Faster convergence, multiprotocol support
Distance- vector:
Uses second-hand info Problems detecting /closing routing loops (counting to infinity) Judges 'best' based on hop counts Convergence can get pretty lengthy Split horizion: enforces that inforation is not sent back in directi on it came from Route poisoning: Helps prevent incorrect updates by setting route do wn eXPlicitly Hold-downs: prevents routes from changing too quickly, to allow time for stabilization
Link-state
No-second hand info, and understands entire network Uses LSP packets to build 'personal' copy of entire network strUCtur e to route from LSP: link-state packets or "hello packets" Chooses 'best' path based on: bandwidth, congestion, metrics, etc.
Update times can be set very lengthy as changes cause triggered udpa tes.
EXTERIOR routing protocols
EGP:
1. Exterior Gateway Protocol 2. Polls neighbors 3. Exchanges info about AS with neighbors 4. Distance vector 5. Very simple
BGP:
1. Border Gateway Protocol 2. Can detect routing loops 3. Can work between AS
Other Random Cisco protocols
CDP:
1. Cisco Discovery Protocol 2. Runs SNAP: SubNetwork Access Protocol at the datalink layer. 3. This allows routers running different protocols to still communi cate 4. 60 second updates, 180 second hold time
#show cdp interface interface information, encapsulation info, and timing information
#show cdp entry shows detailed information about other routers on network
#show cdp neighbors shows summary information that is being exchanged
#show cdp neighbor detail extended listing of info for all routers
#show cdp traffic shows packets sent / received amount neighbors
WAN:
POTS Plain Old Telephone Service. (politely is: pstn: public switched tel ephone network)
Demarc: end of responsbility for provider, start for customer
CPE: customer premise equipment
Local loop: wire from CO to demarc
CO: Central Office: provider POP : point of presence
SDLC
1. Synchronous Data-Link Control 2. Used originally for SNA 3. Point o-point or multipoint 4. Bounded or unbounded media, half or full duplex 5. Circuit or packet-switched networks 6. 2 node types. Primay or Secondary (controlled by primary)
HDLC
1. High-Level Data-Link Control protocol 2. This is the default communication method for cisco routers of sy nc links, and is proprietary 3. This came after SDLC, and was modified into LAP and LAPB. 4. HDLC transfer modes: 5. NRM: Normal Response Mode: secondaries only speak when spoken to
by pri 6. ARM: Async Response Mode: sec. Can speak on own 7. ABM: Async Balanced Mode: nodes can be both pri and sec 8. LAPB:Link Access Procedure Balanced: built into x.25
DDR
1. Dial on demand Routing 2. Be sure and setup route as static, and with specified distance o ver 200 to make sure it is 'last resort'
X.25
1. Point-to-point communication between DTE and DCE 2. DTE: Data Terminal Equipment (router or terminal, or whatever) 3. DCE: Data Circuit-Terminating Equipment (csu/dsi or modem) 4. PSE: Packet Switching Exchange: switches inside carriers network
5. Addresses defined by x.121 as a 14 digit number 6. DNIC:Data Network Identified Code is first 4 bits of address 7. Rest of address is assigned by the administrator 8. Full-duplex protocol 9. 'overbuilt' with lots of error checking 10. Created SVC or PVC connections (switched or Permanent virtual circuits)
PLP
1. Packet layer protocol 2. X.25's network layer protocol 3. Modes: call setup, data transfer, idle, call clearing, restartin g
LAPB
1. Link Access Procedure Balanced 2. Makes sure frames are error free and sequenced 3. Types of frames: 4. I information sequencing, flow control, error detect, recovery
5. S supervisory handles requests for, and suspension of transmitti on 6. U unnumbered link setup and disconnections and error reporting
Setting up X.25 on Cisco
#interface #encap x25 #x25 address <14 digit number> to set the address #x25 ips to configure Input Packet Size #x25 ops to configure Output Packet Size #x25 win to configure Window Input Size #x25 wout to configure Window Output Size
Frame Relay
1. Shared Bandwidth 2. Can setup a CIR (Committed Information Rate) 3. Assumed error-checking is handled at another, higher, layer 4. PVCs are created at layer 2.
DLCIs:
1. Data-link connection Identifiers : are used to identify virtual circuit connections. 2. DLCI address are assigned by the provider and then mapped to IP
addresses by the router
LMI:
1. Local management Interface 2. These are autodetected in current IOS versions?. However: 3. KeyWord Meaning 4. Cisco: defined by industry group, and default 5. ANSI: Annex D defined by T1.617 6. Q933a: Defined by ITU-T Annex A Q.933A
LMI can be used to determine the global significance of the DLCI num bers.
Setup of Frame Relay on Cisco
#interface #encapsulation frame-relay [ietf, or default is cisco] use default to talk to other cisco routers, use ietf encapsulation to talk to non-cisco.
#frame-relay interface-dlci to map dlci number to current interface, or subinterface Then specify an IP address for that subinterface
Optionally you can hard-code the address on the other end. #encap frame-relay [ietf] #no inverse-arp turns off auto addressing features #ip address #frame-relay map ip [cisco] [broadcast] this lets you mix encap types, and allow broadcast over interface
Monitoring Frame Relay
#show frame ? Ip ip statistics lmi lmi stats map map table pvc pvc stats ?nbsp;this one displays the DLCI # route route info traffic protocol stats
PPP
1. Point to Point Protocol 2. Userfull for dial-up or sync links (ISDN) 3. Authenticate using PAP: password authentication protocol or 4. CHAP: Challenge Handshake Authentication Protocol
ISDN
1. Integrated Services Digital Network 2. Terminal equipment types: 3. TE1: understands ISDN 4. TE2: predates ISDN and needs a TA (terminal adapter) to work
ISDN reference points:
1. R: between non-isdn device and TA 2. S: between terminal and NT2 device 3. T: point between NT1 and NT2 4. U: point between NT1 and carrier line termination device
ISDN protocol codes:
1. E: existing telephone network 2. I: concepts, terms, and services 3. Q: switching and signaling
ISDN service levels:
1. Connect to lines with SPIDs (service Profile Identfiers) (phone
numbers..) 2. BRI: Basic Rate Interface: 2B + 1D 3. B = 64kbs, D=16Kbps = 128kbs plus control 4. PRI: Primary Rate Interface: 23B + 1D 5. Total of 1.544Mbps
Configuring ISDN BRI
#isdn switch-type ? Tons of proprietary switch types #interface typicaly bri0, or something like that. #encap ppp ppp is method used to setup isdn phone calls #isdn spid1 #isdn spid2
Configuring ISDN PRI
#controller typicaly something like #controller T1 1/0 #framing efs sets Extended Super Framing, this is normal for T1/ PRI line #linecode b8zs line-conding mechanism to assist with timing by preventing strings of zeros #pri-group timeslots sets number of timeslots
Access lists:
Basics:
1. Access lists must be created, then applied to an interface 2. Access lists can filter incoming or outgoing from an interface
3. Packets are compared only until a match is made 4. Packets that do not meet any criteria on the list are discarded
Wildcard maSKINg:
Nifty, acts like a reverse subnet mask: Example: 0.0.0.255 would wildcard all hosts on class C network 0.0.0.0 would indicate no wildcarding keywords: host: 0.0.0.0 : just specified host any: 255.255.255.255: absolutely anything * when using keyword it comes before IP address, when using mask it comes after! !!!
List number scheme
List number range & meaning 1-99 - ip standard list 100-199 - ip extended access list 800-899 - ipx standard 900-999 - ipx extended access list 1000-1099 - IPX SAP access list