Application-layer framing or application-level framing (ALF) is a method of allowing an application to use its semantics for the design of its network protocols.