PPPoE & PPP

PPPoE

  • PPPoE:Point-to-Point Protocol over Ethernet,RFC 2516
  • PPP:Point-to-Point Protocol,RFC 1661
  • For encapsulating PPP frames inside Ethernet frames.
    PPPoE and TCP/IP protocol stack
Typical PPP over Ethernet Topology
  • PPPoE 的两个阶段:PPPoE Discovery,PPP session

  • PPPoE Discovery
    Client to server: Initiation
    Server to client: Offer
    Client to server: request
    Server to client: session-confirmation

  • PPP session
    Either end to other end: termination.

  • EtherType
    The ETHER_TYPE is set to either 0x8863 (Discovery Stage) or 0x8864 (PPP Session Stage).

    Ethernet II

  • 1492?!
    The MRU (Maximum-Receive-Unit) option MUST NOT be negotiated to a larger size than 1492. Since Ethernet has a maximum payload size of 1500 octets, the PPPoE header is 6 octets and the PPP Protocol ID is 2 octets, the PPP MTU MUST NOT be greater than 1492.

  • Ethernet payload
    PPPoE Discovery phase and PPPoE PPP session phase packets travel as payload in an Ethernet frame. The Ethernet payload for PPPoE always start with a VERSION field, TYPE field, CODE field, SESSION ID and LENGTH as shown below.

    Ethernet frame with payload

Ethernet payload for PPPoE

DSL Internet access architecture

DSL Internet access architecture

PPP

PPP architecture

Internet protocol suite

Linux 拨号

  • RP-PPPoE
    Roaring Penguin 公司提供的免费版 PPPoE client for Linux and Solaris systems to connect to PPPoE service providers.
    yum install rp-pppoe 可以安装
  • 当前最新版 rp-pppoe-3.12.tar.gz
    可以查看 doc 和 man 下文件了解。
  • -I option specifies the Ethernet interface to use.
    pppd 启动参数指定使用 eth0 (Ethernet card 以太网网卡名);
  • The role of pppd is managing PPP session establishment and session termination.
pppd & pppoe
ppp0 & eth0
  • 通过 ppp0 获得外网IP;
  • 通过 etho 获得 mac 地址;

Windows 拨号

宽带连接
接口适配器
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • PPP协议概述 PPP(Point-to-Point Protocol点到点协议)是为在同等单元之间传输数据包这样...
    奋斗live阅读 6,049评论 0 0
  • linux 内核定时器timer_list用法作者 codercjg 在 30 十月 2015, 2:27 下午 ...
    codercjg阅读 1,035评论 0 0
  • 计算机网络第五版第一章,第五章,第六章的习题解答。编号是按照中文版图书来的,题目是复制的英文版图书。答案经过本人验...
    C就要毕业了阅读 34,186评论 3 9
  • 早上上班路上,路人明显变少了,连公园里风雨不辍的广场舞大妈都没有准时出现。办公室里的人也越来越少,有假可请的人都请...
    乱红N阅读 332评论 0 0
  • 说起巴马香猪大家一定都不陌生,巴马香猪肉肉质鲜美,吃来鲜香无比,许多人爱吃的烤乳猪其实本质上就是巴马香猪肉,许多人...
    感冒灵999阅读 1,257评论 0 1