08-24-2015 05:59 AM - edited 03-08-2019 01:28 AM
1. Whether PPP is layer 2 protocol or layer 3 protocol ?
I think PPP is an encapsulation of an ethernet frame while sending towards downstream of the TCP/IP Model and it is used for authentication.
If its encapsulation of ethernet frame can I consider it as layer 2 protocol ?
If so why the serial interface in cisco router are configured with encapsulation PPP command which is a layer 3 interface ?
Also as I said above PPP encapsulation is used for authentication only or is there any other feature in it ?
If its for authentication between two points by default which method it will use - PAP or CHAP ? I guess either of this needs to be enabled manually.. so any other default mechanism for PPP ?
08-24-2015 09:19 AM
Hi,
1. Whether PPP is layer 2 protocol or layer 3 protocol ?
It is distinctly a Layer2 protocol.
I think PPP is an encapsulation of an ethernet frame
No, PPP does not encapsulate Ethernet frames. PPP is on the same level as Ethernet, and if PPP is used, then the order of encapulation is Data -> TCP/UDP -> IP -> PPP -> medium.
If so why the serial interface in cisco router are configured with encapsulation PPP command which is a layer 3 interface ?
This is because to provide Layer3 functionality, Layer1 and Layer2 must already operate, and the encapsulation ppp command specifies the Layer2 operation specifics. Serial interfaces are "naked" interfaces in that you can use several physical layers on them (RS-232, X.21, V.35, RS-449), and several Layer2 encapsulations (HDLC, PPP, PPP+LAPB, X.25, Frame Relay).
Also as I said above PPP encapsulation is used for authentication only or is there any other feature in it ?
Lots of.
If its for authentication between two points by default which method it will use - PAP or CHAP ? I guess either of this needs to be enabled manually.. so any other default mechanism for PPP ?
Authentication has to be enabled explicitly. By default, PPP performs no authentication.
Best regards,
Peter
08-25-2015 01:54 AM
Thanks Peter for your detailed explanation.
Just few more queries to get clear on very basic concepts
1. So incase of PPP ethernet header will not be available Right ?
2. Similar is the case if I use Framerelay as well that ethernet header will not be there ?
3. Can I use encapsulation framerelay or encapsulation PPP in ethernet interfaces ? If so, will it still not have ethernet header in it ? Please confirm. Thanks
08-25-2015 11:20 PM
HI Peter
can you please confirm for above queries once. Thanks
08-26-2015 01:57 AM
Hi,
1. So incase of PPP ethernet header will not be available Right ?
Correct. With PPP framing, there will be no Ethernet frame present. Check the attached PPP.pcap file (unzip the ZIP attachment first) with Wireshark - it shows a simple ping between two routers that was captured on a serial link running pure PPP. Notice that there is no Ethernet, simply PPP, then IP, then ICMP.
2. Similar is the case if I use Framerelay as well that ethernet header will not be there ?
Correct, just like with PPP. Check the attached FR.pcap file with Wireshark.
3. Can I use encapsulation framerelay or encapsulation PPP in ethernet interfaces ?
No. As opposed to serial interfaces that are "naked" as I called them and that have a number of applicable Layer1 and Layer2 versions, Ethernet is a technology with a fixed frame format and a very specific set of alternative Layer1 versions (different for each speed and medium) and it is not possible to change the framing on Ethernet interfaces to anything else. Ethernet network cards are only prepared to handle Ethernet frames, and they would not understand any other frame format.
There is a particular technology called PPP over Ethernet, or PPPoE, in which a software client on a device (PC or a router) generates a PPP frame and sends it over an Ethernet card to a neighboring device. This is often used in DSL access scenarios. However, in that case, the PPP frame is put into an Ethernet frame. The entire chain of encapsulations is Data -> TCP/UDP -> IP -> PPP -> PPPoE session header -> Ethernet. Check the attached PPPoE.pcap file for an example. Even here, however, the outer frame format is Ethernet because the frame was sent out from an Ethernet network card. An Ethernet network card can never send out anything different that an Ethernet frame. There may be a PPP frame inserted into the Ethernet frame but to every Ethernet device, it is just data and they do not care - it's a payload.
To keep things simple: Serial interfaces can process frame formats such as HDLC, PPP, Frame Relay, but they do not generally support Ethernet formats, mostly because nobody really needed that. On the other hand, Ethernet network cards can process only Ethernet frame format because, again, nobody ever wants an Ethernet network card to process any other frame types. Once a particular frame type is used, it is not combined with Ethernet or any other frame type. The only exception to this rule is the PPPoE in which a PPP frame can be inserted into an Ethernet frame for special purposes.
Best regards,
Peter
08-26-2015 02:10 AM
Many Thanks Peter and for your time to explain. Really wonderful explanation.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide