Decapsulation
The Network layer (Layer 3, typically IP) will receive a segment from the Transport layer (Layer 4, typically TCP or UDP), and will add its own header to it to create a packet. The size of the packet will thus always be the size of the segment plus the Network layer header, the same as when the next layer down (the Data Link layer, layer 2, typically Ethernet) encapsulates the packet into a frame for transmission.
A PDU (Protocol Data Unit) is defined by which layer it is in. In the physical layer and network layer, it is synonymous with the packet, in the data link layer, it is the frame. In the transport layer, it is a datagram for UDP. A datagram holds one or more PDU's, as it is the basic unit of transferring information via packet switching.
Protocol layers may be defined in such a way that the communications within a layer is independent of the operation of the layer being being used. This is known as "peer-to-peer" communication and is an important goal of the OSI Reference Model. Each layer provides a protocol to communicate with its peer. When a packet is transmitted by a layer, a header consisting of Protocol Control Information (PCI) is added to the data to be sent. In OSI terminology, the packet data (also known as the Payload) is called a Protocol Data Unit (PDU). The packet so-formed, called a Service Data Unit (SDU) is passed via a service access point to the layer below. This is sent using the service of the next lower protocol layer.
Transport layer is the fourth layer in the OSI model. Transport layer is responsible for process to process delivery of entire message. Other than that it also control connection, flow of data and error , thus will resend the packet if it get lost in between.
Different textbooks may give you different answers to this question. In several I've seen, the "packet" is complete in the data link layer (layer 2) and is known as a 'frame' in the physical layer (layer 1). Others may indicate a packet is the result of the physical layer (layer 1). In other descriptions the terms packet and frame are interchanged in the layer 1 and 2 of the OSI model.
Frames are encapsulating packets. The data link layer makes framing and provide this service to the layer above layer "the network layer".
here in data link the actual physical mean of coneection will takes place between source and destination hosts......once packet from network layer enter into data link layer the trailer is gonna add to packet also the MAC(media access control) address of destination host will be determined............once source host get the information of MAC.......its gonna add to packet along with packet then it will be called by name frame....switch will work in this layer and the protocol used are ARP and RARP........
A packet.A packet.A packet.A packet.
Frames are encapsulating packets. The data link layer makes framing and provide this service to the layer above layer "the network layer".
Layer 3,4 and 7
Theoretically Data Link Layer puts packet into frame by adding header and tail to the packet but how is it possible when you take into consideration CCSDS packet definition:"A packet is a block of data with length that can vary between successive packets, ranging from 7 to 65,542 bytes, including the packet header.Packetized data are transmitted via frames, which are fixed-length data blocks. The size of a frame, including frame header and control information, can range up to 2048 bytes."According to this, frame is smaller than packet, so how can you put packet into frame??
Packet switching is considered part of layer 3 of the OSI model.Packet switching is considered part of layer 3 of the OSI model.Packet switching is considered part of layer 3 of the OSI model.Packet switching is considered part of layer 3 of the OSI model.