1024programmer Blog Network Principle Experiment 7 HDLC and PPP Protocol_Half Watermelon Blog

Network Principle Experiment 7 HDLC and PPP Protocol_Half Watermelon Blog

Appreciation code & contact information & personal gossip

[Experiment name] HDLC and PPP protocol

[Purpose of experiment]

1. Understand the encapsulation of the data link layer protocol of the serial port;

2. Establish the concept of network security and understand the relevant knowledge of PPP certification;

3. The setting process of HDLC and PPP authentication.

【Experimental principle】

High-Level Data Link Control (HDLC for short) is a bit-oriented data link layer protocol that transmits data on a synchronous network. It is composed of It was developed by the International Organization for Standardization (ISO) based on the extension of IBM’s SDLC (Synchronous Data Link Control) protocol. Link control protocols focus on the logical transmission of data segmented into physical blocks or packets, led by a start marker and ended by a stop marker, also known as a frame. Frames are the vehicle of every control, every response, and the medium of all information transported with a protocol.

The Point-to-Point Protocol (PPP) provides a standard method for transmitting multi-protocol packets over point-to-point connections. PPP was originally designed to provide an encapsulation protocol for the transmission of IP traffic between two peer nodes. In the TCP-IP protocol set, it is a data link layer protocol used for synchronous modulation connections, replacing the original non-standard layer 2 protocol, namely SLIP. PPP is a link layer protocol designed for simple links such as the transmission of data packets between peer units. This link provides full-duplex operation and delivers packets in order. The design purpose is mainly to establish a point-to-point connection to send data through dial-up or leased line, making it a common solution for simple connection between various hosts, bridges and routers.

【Experimental content】

The topology of this experiment is as follows:

Project 1: Configure static routing

(1) Configure Router0 router port.

(2) Configure Router1 router port.

(3) Configure the IP address, default gateway, and subnet mask of PC0.

(4) Configure the IP address, default gateway, and subnet mask of PC1.

(5) Static routing configuration of Router0.

(6) Static routing configuration of Router1.

(7) Ping command verification

At this time, use the ping command to realize the mutual ping between the two computers. As long as the mutual ping is successful, the above configuration is successful.

Item 2: PAP authentication method

(1) Router1 configuration

Use the following command:

RA (config) # interface serial s1/0 //Enter port serial 0

RA(config-if)# encapsulation PPP //encapsulation PPP protocol

RA(config-if)# PPP authentication pap //Set authentication method

RA (config) # username lxj password 0 123 //Set server username and password

(2) Router0 encapsulates the PPP protocol.

Use the following command:

RA (config) # interface serial s1/0 //Enter port serial 0

RA(config-if)# encapsulation PPP //encapsulation PPP protocol

(3) Ping verification

At this time, use the ping command from one PC to connect to another PC, and you will find that the ping fails, indicating that if there is no user name and password at this time, Router1 refuses to connect of.

(4) Set the user name and password for connection.

Use the following command:

RA (config) # ppp pap sent-username lxj password 0 123

(5) Re-ping for verification.

The user name and password will be sent when connecting, and the ping will be successful at this time.

Item 3: CHAP authentication method

(1) Configure lxj0 end

Use the following command:

RA (config) # interface serial s1/0 //Enter port serial 0

RA(config-if)# encapsulation PPP //encapsulation PPP protocol

RA(config-if)# PPP authentication chap //Set authentication method

RA (config) # username lxj1 password 0 123

RA (config) # hostname lxj0

(2) Configure lxj1 end

Use the following command:

RA (config) # interface serial s1/0 //Enter port serial 0

RA(config-if)# encapsulation PPP //encapsulation PPP protocol

RA(config-if)# PPP authentication chap //Set authentication method

RA (config) # username lxj0 password 0 123

RA (config) # hostname lxj1

(3) Ping verification.

It can be seen that the ping has passed.

【Summary or Discussion】

I think this experiment is quite interesting. It reminds me of the usual server access on the network, and the server can only be connected to the server after verifying the client. The first thing we need to do in this experiment is to realize that PC0 and PC1 can ping each other. This involves the experiment of configuring the router mentioned earlier. This time, I just took this opportunity to review the configuration of static routing and dynamic routing.

For the pap authentication method, the main process is to set the allowed user name and password on the server, and then set the user name and password sent when connecting on the client, so that the connection Verification information can be sent automatically when the time, here is a one-way verification. For the chap authentication method, it is to set the connection user name and password on both sides, and then modify their own name to the name set before, so that they can connect to each other. This is a two-way authentication method.

style=”margin-left:0cm;”>RA (config) # hostname lxj1

(3) Ping verification.

It can be seen that the ping has passed.

【Summary or Discussion】

I think this experiment is quite interesting. It reminds me of the usual server access on the network, and the server can only be connected to the server after verifying the client. The first thing we need to do in this experiment is to realize that PC0 and PC1 can ping each other. This involves the experiment of configuring the router mentioned earlier. This time, I just took this opportunity to review the configuration of static routing and dynamic routing.

For the pap authentication method, the main process is to set the allowed user name and password on the server, and then set the user name and password sent when connecting on the client, so that the connection Verification information can be sent automatically when the time, here is a one-way verification. For the chap authentication method, it is to set the connection user name and password on both sides, and then modify their own name to the name set before, so that they can connect to each other. This is a two-way authentication method.

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/network-principle-experiment-7-hdlc-and-ppp-protocol_half-watermelon-blog-2/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索