How does an SMF control a UPF? This is what we will see in this video. To allow an SMF to control a UPF, a specific protocol is defined, called Packet Forwarding Control Protocol or PFCP for short. SMF or UPF can start dynamically in the network. They each need to know the characteristics of each other. This is the association procedure between an SMF and a UPF. The main goal of the protocol is to allow the establishment or modification of PDU sessions, which allows user data to be transmitted from the terminal to the network. To do this, a set of messages will be defined to set or modify the rules for a PDU session. Finally, there may be counters in the UPF on how many packets meet a certain criterion. When there is an event in the user plane related to a counter threshold being exceeded, for example, the UPF can send a report to the SMF. The choice was made to run PFCP above UDP. We are familiar with the TCP protocol, which allows messages to be transmitted reliably. But when a message has not been received properly, and despite several retransmissions does not reach its destination. With TCP, any following messages can be blocked. The choice was made to avoid TCP and to use UDP. UDP does not ensure reliability. A message lost at the IP level will be definitely lost, but it does not cause additional delay. To allow reliable control, PFCP includes an acknowledgment and retransmission of messages by PFCP when messages are lost. Now, let's look at the association procedure. It is usually triggered by the SMF that wants to take control of the UPF. The SMF sends a message association setup request. It sets a unique identity and sends the list of the characteristics of the processing it is doing in the control plane. In response, the UPF indicates its unique identity and also the list of characteristics of how it processes data in the user plane. An example of characteristics is the allocation of the TEID, which can be done either by the SMF or by the UPF. Let's not forget that an SMF can control multiple UPF. There are therefore multiple possible associations. There are, of course, similar procedures for updating associations or ending associations, if, for example, a UPF stops. The association procedure isn't done very often. The main purpose is to establish PDU sessions, I mean tunnels. It's important to remember that there can be hundreds or thousands or millions of tunnels managed by a UPF. Each tunnel, and therefore, each PDU session must be uniquely identified. In the user plane, we have the TEID, which uniquely identifies a tunnel locally. But we do not use this identity to guarantee complete decorrelation between the user plane and the control plane. Each PDU session is therefore identified by an identifier called the Session Endpoint Identifier. This identifier is, in fact, local to each piece of equipment. We find an identifier on the UPF side and an identifier on the SMF side. The SEID is coded on 64 bits, which makes it possible to manage a considerable number of PDU sessions. Let's look at the establishment of a PDU session, in the case where it is the UPF that chooses the TEID. The SMF selects one of the UPF with which it is associated and chooses the rules. The rules are packet detection, PDR, or forwarding action, FAR, or quality of service, and so on. The SMF chooses an SEID value, not yet allocated locally, in its reference system. It sends a message session establishment request with the SEID it has chosen and the description of the rules. In turn, in order to have a unique identification, the UPF chooses an SEID value, chooses TEID (since we have assumed that it is the UPF that chooses the TEID) and applies the rules that have been provided. It responds to the session establishment request, specifying the SEID chosen by the SMF so that the response corresponds uniquely to the request, it indicates the SEID that the UPF has chosen. We have similar procedures for modifying or deleting a session. To conclude, PFCP stands for Packet Forwarding Control Protocol. It is a protocol between the SMF and UPF. It works above UDP but incorporates a mechanism from making the link reliable by retransmitting lost messages. An SMF can be associated with different UPFs by means of the association procedure, and can establish, modify, or release PDU sessions, specifying the set of rules to be applied to each session.