The process of wrapping higher-layer data with lower-layer protocol information as it moves down a networking stack is…