Network Basic Concept

Same-layer and Adjcent-layer Interaction

  • Same-layer interaction refers to the communications between the same TCP/IP layer in different devices. Such as a computer transits a Layer 3 packet to another computer, the receiving computer will handle the data at the same layer.
  • Adjcent-layer interaction refers to the communications between upper and lower layers. For example, the upper layer requires the lower layer provide additional functions.

Basic Understanding of IP Routing

IP routing is similar to a postal service. The devices in the TCP/IP network shoud have a IP address to be identified. When a device wants to transit the data to another, it has to specify the source and destination IP addresses, then the data will be sent to the router interface within the same local network, just as you would delever a letter to the nearest post office.

Once the router received the data, it will determine the best path to transfer the data to the other network closet to the destination through the routing table. This process will be repeated until the data reaches the final destination.

Encapsulation

When the data is ready to be sent to another device, it must be converted into an electric signal and transmitted over the media. During the process, headers and trailers are added to the data depending on different protocols used in the 5-7 layers, it’s called encapsulation.

  • At the application layer, a layer 7 protocal header, such as HTTP header is added to the data.
  • At the transport layer, the most common protocols used are TCP/UDP, the headers are added before the data from the application layer.
  • At network layer, the data from upper layer which is called segment is added a protocol header typically an IP header.
  • At data link layer, both Ethernet header and trailer are added in front of the data that coming from the network layer which is called packet.
  • The data encapsulated into the Layer 2 protocol is called a frame.
  • The data along with the headers at any layer is called a PDU(protocol Data Unit).
Encapsulation PDU Layer
HTTP Header+ [Data] Application
TCP/UDP Header + [Upper data] Segment Transport
IP Header + [Segment] Packet Network
Ethernet Header + [Packet] + Trailer Frame Data Link

Leave a Comment

Your email address will not be published. Required fields are marked *