Java OSI 传输层
我正在开发一个项目,需要使用传输层与设备进行通信。网络连接将是基于 IP 的 OSI/CLNS。
我可能是错的,但我不相信我可以使用套接字进行这种类型的连接。我正在寻找有关如何创建可以通过传输层(Java 或 C++)进行通信的应用程序的示例。
谢谢, 抢
I'm working on a project where I need to communicate with a device using the transport layer. The network connection will be OSI/CLNS over IP.
I could be wrong, but I don't believe I can use sockets for this type of connection. I'm looking for examples on how to create an application that can communicate over the transport layer (either in Java or C++).
Thanks,
Rob
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
OSI-Stack 开源实现
在这里你可以找到开源(例如linux)完整 OSI 堆栈的实现。
那里还有应用示例...
OSI-Stack open source implementation
Here you can find open source (for linux) implementation of complete OSI stack.
There is also application example there...
我想说这里的关键字是应用程序。
当您谈论创建应用程序时,您会自动谈论 OSI 7/5 层模型的应用程序层。
当开发一个可以与网络上的另一个应用程序通信的应用程序时,您将使用一些协议 - 其中一些将是应用程序层的一部分,一些将是传输、网络和线路层的一部分。
不可能创建仅基于传输层的应用程序 - 因为为了随互联网移动信息,您需要使用所有层。
你问的问题相当于问如何制造一辆只有轮子的汽车——没有车架,没有发动机,没有齿轮,没有座椅,没有方向盘。
我建议学习一些有关 OSI 层模型的知识,以便更好地理解整个主题。
我将从这里开始: https://en.wikipedia.org/wiki/OSI_model
I would say that the keyword here is application.
When you talk about creating an application you automatically talk about the Application layer of the OSI 7/5 layers model.
When developing an app that can communicate with another app on the network you will be using some protocols - some of them will be part of the application layer and some will be part of the transport, network, and line layer.
It's impossible to create an app-based only on the transport layer - because in order to move information along with the internet you need to have use of all the layers.
what you asking is equivalent of asking how to build a car that has ONLY wheels - no frame, no engine, no gear, no seat, no steering wheel.
I would recommend learning a little about the OSI Layers model in order to understand better this whole subject.
I would start here: https://en.wikipedia.org/wiki/OSI_model