Escolar Documentos
Profissional Documentos
Cultura Documentos
HUAWEI
Principles and Configurations of HDLC Protocol Principles,Configurations and Maintenance of PPP and MP Protocol
www.huawei.com
WAN Overview
HUAWEI
L A N
W A N
L A N
T h eW ideAreaNetworkis called W A Nfor short, w h ichis acom p u ter com m u n icationnetwork establishedinawiderange T h eW A Nis a kin d of cross-regiondatacom m u n ication network, w h ich uses th ee q u ip m e n ts suppliedbytelecomcarriersasthedatatransferplatform T h eW A Nis m a in lyusedtoconnecttheLANsliesindifferentplaces
www.huawei.com
Point-to-point connection
H D LC , P P P , S L I P
www.huawei.com
Flag F
Address A
Control C
Information info
Flag F
Characteristics:
Bit-oriented protocol Transparent transmission: zero bit filling method Run on synchronous serial lines
www.huawei.com
PPPEncapsulation
PPP
PPPprotocolisdevelopedonthebasisofSLIP PPPprotocolislocatedatthedatalinklayer,thesecondlayerofOSIm o d e l
Thephysicallayercaneitherbethesynchronousorasynchronousphysicalm edia
www.huawei.com
PPP Composition
HUAWEI
PPPusesNCPtosupportmultipleNetwork protocols
PPP
www.huawei.com
IP IPCP
IPX IPXCP
Other network protocols Network Layer Other NCPs NCP Link Layer
Authentication, other options LCP Physical media ( synchronous / asynchronous Physical Layer
www.huawei.com
Dead Stage Establish Stage
Authenticate Stage
Terminate Stage
Network Stage
www.huawei.com
PAP Authentication
HUAWEI
Authenticating Party
User namePaswor
ACK / NAK
www.huawei.com
CHAP Authentication
HUAWEI
Authenticated Party
Host namerandom message Host nameencrypted message
Authenticating Party
User database
NegotiatewhethertouseMPornotattheLCPstage ThenperformthePPPauthenticationtoobtaintheusernameof theremotepartyandfindthevirtualinterfacetem p late specified for theuseraccordingtotheusername Thenegotiationparam e tersinclude:MRRU,SSNHFandendpoint discrim inator Therearetwoflagsusedforbundling:usernameandtheendpoint discrim inator
www.huawei.com
HUAWEI
www.huawei.com
HUAWEI
HUAWEI
www.huawei.com
A u thenticatingparty PAPauthentication Q u id w a y# 1
Quidway(config)# user quidway2password0 uidway Quidway(config)# interface serial 0 Quidway(config-if-serial0)# ppp authentication pap
A u thenticatedparty
Q u id w a y# 2
Quidway(config)# interface serial 0 Quidway(config-if-serial0)# ppp pap sent-username quidway2password0 quidway
www.huawei.com
A u thenticatingparty
CHAP authentication
A u thenticatedparty
Q u id w a y# 2
Q u idway(config)# user q u i d w a y 1password0 hello Q u idway(config)# interface serial 0 Q u idway(config-if-serial0)# ppp chap host q u i d w a y 2
Q u id w a y# 1
Q u idway(config)# user q u i d w a y 2password0 hello Q u idway(config)# interface serial 0 Q u idway(config-if-serial0)# ppp chap host q u i d w a y 1 Q u idway(config-if-serial0)# ppp authentication chap
www.huawei.com
Basic MP configuration tasks include: Configure the MP work mode of the interface bundled in the virtual template
ppp multilink
Establish the relationship between the PPP users and the virtual template
multilink-user user-name bind virtual-template number
The higher level MP configuration task include: Configure the maximum number of bind MP links
multilink max-bind binds
www.huawei.com
www.huawei.com
HUAWEI
www.huawei.com
PPP Troubleshooting
HUAWEI
www.huawei.com
X.25 Overview
HUAWEI
DTE
X.25 Protocol
DCE
X.25
DCE
X.25 Protocol
DTE
The X.25 recommendation is the interface specifications between the DTE and the DCE. Itsm a infunctionistodescribehowtoset u pvirtual circuits, transmissionpackets, set up links, transmit data, releaselinks andtoclear thevirtual circuitsbetweenthe DTEandthe DCE , and in the meantime, it wil implement the error control, flow control, statistics, etc.
www.huawei.com
PSN
DTE
Data Terminal Equipment Data Circuit-terminating Equipment Packet Switching Equipment Packet Switching Network
www.huawei.com
Hierarchy of X.25
HUAWEI
O S IRM
Application Presentation Session Layer Transport Layer Network Layer
Data Link Layer
Packet Layer
X.25
Physical Layer
DTE
DCE
www.huawei.com
HUAWEI
LAN
Packet Header Frame Header IP Packet
LAN
X.25 Packet
Frame tail
Router
X.25
Router
www.huawei.com
Statistic time-division multiplexing SVC (virtual switching circuit) and PVC (permanent virtual circuit) An interface can be configured with 4095 virtual circuits at maximum
www.huawei.com
The main functions of the Link Layer are as follows: Effectively transmit data between the DTE and the DCE Guarantee the information synchronization between the receiver and the transmitter Detect and correct errors occurred during transmission Identify and report protocol errors to the higher-level protocols Notify the Link Layer status to the Packet Layer www.huawei.com
X.25 Configuration
HUAWEI
www.huawei.com
HUAWEI
The sub-interface is a virtual interface, which has its own protocol address and virtual circuit. Multiple sub-interfaces can be set up at one physical interface. There are two types of sub-interfaces: point-to-point sub-interface and point-to-multipoint sub-interface. Operation Enter the main interface Encapsulate the X25 protocol Create the X.25 sub-interface Configure address mapping Command interface serial number encapsulation x25
interface serial number.subinterface-number [ multipoint | point-to-point ] x25 map protocol protocol-address x.121-address [option] x25 pvc pvc-number protocol protocol-address x.121-address Configure permanent virtual [option] circuit
www.huawei.com
20112451 202.38.160.1
Serial 0 Router A
interface serial 0 ip address 202.38.160.1 255.255.255.0 encapsulation x25 dte x25 address 20112451 x25 map ip 202.38.160.2 20112452
interface serial 1 ip address 202.38.160.2 255.255.255.0 encapsulation x25 dce x25 address 20112452 x25 map ip 202.38.160.1 20112451
www.huawei.com
View the X.25 address mapping table show x25 map View the X.25 switching routing table show x25 route View the X.25 switching virtual circuit show x25 switch-vc-table table View the X.25 virtual circuit show x25 vc lci-number Enable debugging of all the X25 packets Enable debugging of the X25 event debug x25 all [ interface type number ] debug x25 event [ interface type number ]
Enable debugging of the X25 packets debug x25 packet [ interface type number ]
www.huawei.com
X.25 Troubleshooting
HUAWEI
The LAPB has already been in the connected status, but the X.25 protocol cannot be in "UP" status
Check whether the DCE/DTE configuration is correct
The X.25 protocol has been in the "UP" status, but the virtual circuit cannot be set up, i.e., cannot ping through
The local X.121 address is not configured The address mapping is not configured The remote X.121 address is not configured The address mapping from the remote end to the local end is not configured The channel scope is not correct Carry facility options not allowed by the network
The virtual circuit can be set up, but frequent resets or clears occur in data transmission
Check whether the flow control parameters are set correctly
www.huawei.com
The frame relay protocol is a kind of fast packet switching technology based upon the X.25 packet switching technology, it is a kind of improved X.25 protocol. The frame relay is based upon virtual circuits.
www.huawei.com
HUAWEI
T h efram erelayprotocoltransm itsdatainform a tioninth eformof fram e s T h etransm issionlinksusedbythefram erelayfordatatransm issionarelogicconnection,notthe p h y s icalconnections Itadoptstwo-levelarchitecture(thePhysicalLayerandtheLinkLayer) It im p lem e n ts statistic m u ltiplexing,transparentfram etransm issionanderrordetectionintheLinkLayer, b u t it doesnotprovideretransm issionoperationaftertheerrorisdetected T h em a x im u mreservedfram elengthatleastshouldreach1600bytes/fram e ,appropriatefor e n c a p s u l a t i n gL A Nd a t au n it Itprovidesasetofreasonablebandwidthm a n a g e m e n tandcongestionpreventingm e c h a n ism T h efram erelayadoptstheswitchingtechnologyorientedtoconnection
www.huawei.com
Frame Relay
7 6 5 4 3 2 1
The Application Layer The Presentation Layer The Session Layer The Transport Layer The Network Layer The Data Link Layer The Physical Layer
. . . . .
www.huawei.com
DLCI: Digial Link Connection Identifier CIR: Committed Information Rate Bc: Burst committed Be Busst excess allowed FECN: Forward Congestion Indication BECN Backward Congestion Indication DE Disposable flag
www.huawei.com
Obtain the allocated DLCIs from the frame relay network service provider Each DLCI has only local meaning Map the remote network address to the DLCIs
www.huawei.com
HUAWEI
DLCI 66 172.16.11.3
Router B
Switch Notification
DLCI 48
Switch Notification
Router B Notifies IP 172.16.11.26
Router A
DLCI 66
Router A notifies IP 172.16.11.3
to DLCI 66
to DLCI 48
www.huawei.com
HUAWEI
Full-meshed connection
Star architecture
Partial-mesed Connection
www.huawei.com
to C through S0 of Router A
Router B
s0 Router A
Router C
Router D
If mapping three DLCIs in the serial interface S0 of Router A to three routers, then the incoming routing information from S0 will not be sent out from this serial interface.
www.huawei.com
Subnet1
Router B
Subnet 2
Router C
Router A
Subnet3
Router D
The subinterface can solve the problem of horizontal segmentation One physical interface can contain multiple logic subinterfaces The routers are connected through frame relay netowrk
www.huawei.com
The frame relay address mapping sets up the mapping relationship between the remote protocol address and the local DLCI. This address can be statically configured or dynamically configured. Manually configure the static mapping:
frame-relay map { ip | ipx } protocol-address dlci [broadcast ]
HUAWEI
Allocate the virtual circuit numbers to the main interface or the subinterfaces
frame-relay interface-dlci dlci
Difference: "local" can only allocate virtual circuits for the main interface, but the "interface" can either allocate for both the main interface and the subinterfaces.
www.huawei.com
There are two types of subinterfaces: point-to-point and point-to-multipoint subinterfaces Create frame relay subinterface and enter the subinterface configuration mode
interface type number.subinterface-number [ multipoint | point-to-point ]
Configure the virtual circuit number for the frame relay subinterfaces
frame-relay interface-dlci dlci
The command for creating the address mapping is the same as that of the physical interface, you may either use the static or dynamic address mapping. The address mapping is only needed in point-to-multipoint condition.
www.huawei.com
Note: If the frame relay switching is used, interface type should be dce or nni
www.huawei.com
DCE
interface serial i p a d d1 ress 202.38.163.251 255.255.255.0 encapsulation f r a m e - r e l a y intf-type frame-relay d ce frame-relay local-dlci 1 0 0 frame-relay inverse-arp or frame-relay map ip 202.38.163.252 100
Router A IP202.38.163.251
interface serial i p a d d1 ress 202.38.163.252 255.255.255.0 encapsulation f r a m e - r e l a y intf-type frame-relay dte frame-relay inverse-arp or frame-relay map ip 202.38.163.251 100
Router B IP202.38.163.252
www.huawei.com
Frame Relay
Router A DLCI 60
DLCI 70
IP202.38.163.251
www.huawei.com
Operation Show the receiving/transmitting statistics information of LMI frame relay messages Show the mapping table of the protocol address and the frame relay address Show statistic information of the frame relay PVC Show frame relay PVC routing table Show frame relay protocol status of each interface
Command show frame-relay lmi [ interface type number ] show frame-relay map show frame-relay pvc show frame-relay route show frame-relay Status
Clear all the dynamically established frame relay clear frame-relay-inarp address mapping Switch on all the message debugging switches of the debug frame-relay all [ interface type number ] frame relay Switch on frame relay ARP message information debug frame-relay arp [ interface type number ] debugging switch Switch on frame relay event information debugging switch Switch on the LMI protocol information debugging switch of the frame relay debug frame-relay event [ interface type number ] debug frame-relay lmi [ interface type number ]
www.huawei.com
T h eP h y s icalLayerisUP,buttheLinkLayerisDOW N
Protocol encapsulation W h e therdoesDTE/DCEcorrespondstoeachother M o n itor the transm itting/receiving status of the LMI message
T h eL inkLayerprotocolisUP,butitcannotpingthroughtherem oteequip m e n t
W h e thertheLinkLayerprotocolsoftheequipmentatbothendsareinUpstatus W h e thertheaddressmappingiscorrect checktheroutingtabletoseewhetherthereisroutetotheremoteequipment
www.huawei.com
PPP Summary
HUAWEI
The PPP is a Data Link Layer Protocol It supports the point-to-point connection The Physical Layer can either be synchronous circuit or asynchronous circuit It has various NCP protocols such as IPCP and IPXCP, which support the Network Layer protocol better It has the authentication protocol PAP/CHAP so that the network security is guaranteed
www.huawei.com
X.25 Summary
HUAWEI
The X.25 corresponds to the three lower layers of the OSI architecture. The Lapb is the Data Link Layer of the X.25 the data of the other protocols (such as IP, IPX, etc.) can be encapsulated into packets and transmitted through the X.25. Y ou need to perform the following operations to configure the X.25 in an interface:
Encapsulate the interface Set the parameters Set the X.121 address of the interface Configure the X.25 map
www.huawei.com
UsethelocalDLCIastheframerelayPVCidentifiertothedestinationend T h eQ U IDWAYsupportsthreeLMItypes: A N S I A n n e xD C C ITT AnnexA b C ISCOcompatible D e fine static framerelayMAP D e finesubin terfacetoavoidtheproblemofsplithorizonconcerningroutingupdate Bydefault,theInverseARPcanfindrem oteprotocoladdressforthelocalDLCIautom a tically Usethecommandsshowa n ddebugto m onitor the framerelay
www.huawei.com