Reputation: 1123
If I understood correctly, we use java.io/java.nio.*
to implement an application which should be a application layer implementation of ISO 5 layer model(maybe not accurate). I think JDK should implement the lower layer (transportation layer, network layer or even L2, L1), if so, which protocols are based. if no, any introduction please?
Upvotes: 2
Views: 497
Reputation: 5535
Probably you have very basic understanding of it so confusing a lot of things.
java.nio etc. when provide application layer (OSI layer 7) or sockets (sockets are little lower than application layer since you can make http, ftp etc. on top of them), they do have all the lower layers implemented too. Without lower layers you cannot actually send a single packet across and hence can't communicate.
Whether a programmer has access to those layers and to which level you can customize is a different story.
Usual standard is sockets api which provides a good deal of choice to specify lower layers (tcp, udp, or raw).
Additionally most high level languages provide application layer implementations such as for HTTP, SMTP etc.
Upvotes: 1