当前位置: 代码迷 >> 综合 >> 4 Computer Networking notes: overview - protocol layers and service models (协议分层和服务模型)
  详细解决方案

4 Computer Networking notes: overview - protocol layers and service models (协议分层和服务模型)

热度:104   发布时间:2023-09-30 04:37:23.0

Protocol “layers”

Networks are complex since there are many “prices”, such as hosts, routers links of various media, applications, protocols, hardware and software. So, is there any hope for organising structure of network?

  • The concept - “layering”(分层是一种设计思想)
    – Each layer implements a service via its own internal-layer actions (protocol) relying on services provided by layer below.
    可以理解为"服务是垂直的,协议是水平的"。

  • Why layering?
    – Layering is used to deal with complex systems, so the explicit structure allows identification, relationship of complex system’s prices.
    – Layering also can be seen as modularisation (模块化) which eases maintenance, updating of system. As well, it makes changes of a layer transparent to rest of system, like change in gate procedure doesn’t affect rest of system.
    – But, the layering make the design more complex and inefficient.

  • Internet protocol stack(TCP/IP layering)
    – Application layer: support network applications, such as FTP, SMTP, HTTP, HTTPs
    – Transport layer: processing data transfer, such as TCP, UDP
    – Network layer: Routing of datagrams from source to destination, such as IP
    – Physical layer: Bits “on the wire”
    4 Computer Networking notes: overview - protocol layers and service models (协议分层和服务模型)

  • ISO/OSI (International organisation of Standardisation) reference model
    – presentation: allow applications to interpret meaning of data, e.g. encryption, compression, machine-specific conversation.
    – session: Synchronisation, checkpointing, recovery of data exchange.
    – Internet stack lacks those two layers, and these services, if needed, must be implemented in application.
    4 Computer Networking notes: overview - protocol layers and service models (协议分层和服务模型)

Data encapsulation

  • In TCP/IP layering model, from the top to bottom, the data packages become bigger by encapsulating more information in different layers, and this process can be reversed. Encapsulation also is a design thinking, and it hides the information of other layers and stepwise addresses to make data processing easier.
  • Data packages have own name in different layer, such as message in the application layer, segment in transport layer, datagram in network layer, frame in the link layer and bit on the physical layer.
  • In Internet, the implementation of protocol layers are different in devices.
    4 Computer Networking notes: overview - protocol layers and service models (协议分层和服务模型)

References

Sildes of Computer Networking, A Top-Down Approach

  相关解决方案