network technology b pppver.miun.se/courses/dt154g/lectures/ppp.pdf · 2016. 4. 11. ·...

27
DT154G - Network Technology B, 7,5 hp Network Technology B – PPP Lennart Franked Information och Kommunikationssystem (IKS) Mittuniversitetet 2016-03-31 Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 1 / 27

Upload: others

Post on 31-Mar-2021

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

DT154G - Network Technology B, 7,5 hp

Network Technology B – PPP

Lennart Franked

Information och Kommunikationssystem (IKS)Mittuniversitetet

2016-03-31

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 1 / 27

Page 2: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

Transmission modes

Transmission modesSerial sends data using one wire.Parallel sends over multiplewires simultaneously.Problems with paralleltransmission

I Clock skewI CrosstalkI Cost.

Figur: Serial and Parallel transmissions[2].

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 2 / 27

Page 3: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

Sharing a physical connection

Figur: Time-division Multiplexing [2].

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 3 / 27

Page 4: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

Sharing a physical connection

Figur: Statistical Time-division Multiplexing [2].

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 4 / 27

Page 5: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

Synchronous and Asynchronous serial communication

SynchronousNeeds an external clock signal to synchronize sender and receiver.

AsynchronousNo external clock is needed, usually timing is encoded within the symbols(Manchester encoding).

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 5 / 27

Page 6: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

Bit- vs Byte-oriented protocols

Bit-orientedA communications protocol in which individual bits within a byte are usedas control codes. [2003mdo]

Byte-orientedA communications protocol in which full bytes are used as control codes.Also known as character-oriented protocol. [2003mdo]

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 6 / 27

Page 7: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

HDLC

High-level Data Link Control Procotol

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 7 / 27

Page 8: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

High-level Data Link Control

HDLCHDLC is the default layer two encapsulation type for point-to-pointconnections on a Cisco router.

ConfigurationRouter(config-if)#encapsulation hdlc

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 8 / 27

Page 9: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

HDLC

Bit-orientedSynchronousFlag – Initiates and terminates error checking.

I Bit pattern: 01111110.I Inserts a 0 after every fifth 1 (bit stuffing).

Figur: HDLC Headers [2].

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 9 / 27

Page 10: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

HDLC Frame types

Control – Three types of HDLCframes

I Information frames: Carryupper layer information, andused for flow control and errorcontrol (piggybacking).

I Supervisory frames: Providesflow and error control (whenwe can’t piggyback).

I Unnumbered frames: Used forsession management andcontrol information betweenconnected devices (e.gEstablish and connectionrelease)

Figur: HDLC Frame types [2].

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 10 / 27

Page 11: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

PPP

Point-to-Point Protocol

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 11 / 27

Page 12: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

Point-to-Point Protocol

PPPPPP is a commonly used layer 2 protocol for connecting two(non-Cisco) routers together.Allows two devices to negotiate a link-establishment.Provides authentication.Provides link quality management features – Shuts down the link iftoo many errors are detected.Works in both the Physical Layer, Data Link Layer and Network Layer.Can be used for both point-to-point connections and multi-pointconnections.Byte-oriented.

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 12 / 27

Page 13: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

Point-to-Point Protocol

PPPDoes not provide flow-control.Very basic error-control, depends on higher layer protocol to addressmissing packets, out-of-order delivery et cetera.

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 13 / 27

Page 14: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

PPP frame

Flag - Starts and ends with a 1-byte flag 0x7EByte stuffing – An escape byte is inserted when a flag-byteäppears inthe payload, 0x7DAddress - 0xFF, can be omitted.Control - Left for backwards compatibility (HDLC), 0xC0 can beomitted.

Figur: PPP frame

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 14 / 27

Page 15: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

PPP Layered Architecture

Layered architecturePPP uses a set of protocols to provide the necessary functions.Physical Layer.Link Control Protocol.Two Authentication protocols.Multiple Network Control Protocols.

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 15 / 27

Page 16: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

Physical layer and PPP

Requires a duplex circuit(in comparison tosimplex).Operates in Synchronousor Asynchronous mode.Operates across more orless any media.

Figur: Physical layer [2].

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 16 / 27

Page 17: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

Data link Layer and PPP

Negotiate, Establish,Authenticates andMaintains the connectionbetween the devices.Can handle variably sizedpackets.Detects commonmisconfiguration errors,and if the link is workingproperly.Terminates the link. Figur: PPP – Logical Control Protocol [2].

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 17 / 27

Page 18: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

LCP Packets

Tabell: LCP packet types [1].

Code Packet Type Description0x01 Configure-request Contains a list of proposed options and their values0x02 Configure-ack Accepts all options proposed0x03 Configure-nak Announces that some options are not acceptable0x04 Configure-reject Announces that some options are not recognized0x05 Terminate-request Requests to shut down the line0x06 Terminace-ack Accept the shutdown request0x07 Code-reject Announces an unknown code0x08 Protocol-reject Announces an unknown protocol0x09 Echo-request A type of hello message to check if the other end is alive0x0A Echo-reply The response to the echo-request message0x0B Discard-request A request to discard the packet

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 18 / 27

Page 19: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

Link Control Protocol

Figur: LCP negotiation process [2].

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 19 / 27

Page 20: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

PPP Authentication

Figur: PPP Authentication types [2]

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 20 / 27

Page 21: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

PPP – Password Authentication Protocol

Figur: PPP PAP [2]

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 21 / 27

Page 22: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

PPP – Challenge Handshake Authentication Protocol

Figur: PPP CHAP [2]

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 22 / 27

Page 23: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

PPP – Authentication process

Figur: PPP Authentication types [2]

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 23 / 27

Page 24: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

Supports multiplenetwork layer protocols(IP, IPX, Apple Talk etcetera.)Uses Network ControlProtocol to configure thelink for carrying aspecific type of networklayer protocol.Configure and assigningaddresses.Compression.

Figur: PPP – Network Control Protocol [2].

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 24 / 27

Page 25: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

PPP Network Control Protocol process

Figur: NCP process [2].

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 25 / 27

Page 26: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

PPP transition phases

Figur: Transition phases in PPP [1].

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 26 / 27

Page 27: Network Technology B PPPver.miun.se/courses/DT154G/lectures/ppp.pdf · 2016. 4. 11. · BobVachonochRickGraziani.Accessing the WAN : CCNA exploration companion guide.Indianapolis,Ind.:CiscoPress,2008

References

Behrouz A. Forouzan och Sophia Chung Fegan. Datacommunications and networking. 4. ed. Boston: McGraw-Hill, 2007.isbn: 0-07-125442-0 (International ed.)

Bob Vachon och Rick Graziani. Accessing the WAN : CCNAexploration companion guide. Indianapolis, Ind.: Cisco Press, 2008.isbn: 978-1-58713-205-6 (hardcover w/cd).

Lennart Franked (MIUN IKS) Network Technology B – PPP 2016-03-31 27 / 27