可扩展的 PPP 协议。 需要有关状态机的帮助

发布于 2024-07-12 23:12:13 字数 311 浏览 8 评论 0原文

我正在设计可扩展的 PPP [意味着它可以扩展到以太网、HDLC、ATM 等]。 我一直在确定状态机是否由 PPP 堆栈处理(意味着我为 PPPStack 设计了基类,其中存在 FSM、编码、解码等)或 PPPoE(从我的 PPP 基类 PPPStack 派生)。

我正在使用 C++ 设计 PPP,以便它可以扩展到 oE、oATM 等。PPP

帧编码在 PPP 本身和 PPPoE 中完成[其中 PPP 帧是在发现和会话开始后添加的]。

这是我第一次写可扩展的文章,如果任何参与可扩展架构的人也希望听到他们的观点:)

提前非常感谢

I am designing scalable PPP [mean it can be extended to over Ethernet, over HDLC, over ATM etc.]. I was stuck in determining whether State Machine is hadle by PPP stack [means i have design Base class for PPPStack in which FSM, encode, decode etc is there] or PPPoE [which is derived from my PPP Base Class PPPStack].

I am designing PPP using C++, so that it can be extended to oE, oATM etc.

PPP frame encoding in done in PPP itself and PPPoE [of which PPP frame is add after discovery and start of session].

This is first time i am writing Scalable, If anybody involved in Scalable Architecture would love hear points from them too:)

Thank you so much in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一个人的旅程 2024-07-19 23:12:25

PPP 确实有一个状态机,事实上有好几个。 该链路由状态机启动、授权和维护。

然而,LCP(链路控制协议)是您需要处理的更为复杂的状态机。

有很多关于 PPP 的资源,恐怕我在您的帖子中看到的唯一问题是

“我一直在确定状态机是由 PPP 堆栈还是 PPPoE 处理”。

答案是 PPP 确实有几个状态机。

PPPoE 可能还有一两个状态机,但我还没有检查过。

以下是一些可能对您有帮助的资源:

非常好的文档,其中包含良好的 LCP 状态转换表:
http://scholar.lib.vt。 edu/theses/available/etd-04252000-20310024/unrestricted/chapter4.pdf

出色的 powerpoint 概述,讨论了 PPP 的许多方面:
http://www.cs.huji.ac.il /~sans/students_lectures/PPP-Intro.ppt

另外,谷歌搜索可能会有用:
http://www.google.com/search?q=ppp%20state% 20machine

祝你好运,如果我不明白,请随时修改你的问题。

-亚当

PPP does have a state machine, several in fact. The link is started, authorized, and kept up by a state machine.

The LCP, link control protocol, however, is a much more complex state machine you'll need to deal with.

There are a lot of resources about PPP, and I'm afraid the only question I saw in your post was

"I was stuck in determing wheter State Machine is hadle by PPP stack or PPPoE."

The answer is PPP does have several state machines.

PPPoE might also have another state machine or two, but I haven't checked into that.

Here are a few resources that might help you:

Very nice document with a good LCP state transition table:
http://scholar.lib.vt.edu/theses/available/etd-04252000-20310024/unrestricted/chapter4.pdf

Excellent powerpoint overview talking about many aspects of PPP:
http://www.cs.huji.ac.il/~sans/students_lectures/PPP-Intro.ppt

Also, a google search is likely to be useful:
http://www.google.com/search?q=ppp%20state%20machine

Good luck, and feel free to revise your question if I didn't understand it.

-Adam

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文