Hello, everyone!
In today’s article, I will explain service Flow. Let's get started!
Service flow or service port is a Layer 2 logical channel that is established between OLT and ONU devices and through which different services travel. One ONU usually has several different service ports, and all ONU devices have different service ports. Service flow is the basis for service and is therefore mandatory.
In the following figure, we can see the service ports.

User 1 uses two services HSI and VoIP. These services use different service ports. HSI uses service port 1 and VoIP uses service port 2. User 2 uses only HSI service and service port 3 is used for that.
Based on the type of service, we distinguish two service flows:
Switch-oriented service flow, and
Connection-oriented service flow
The following figures show these two service flows.


The following table shows the traffic classification rules supported by OLT.

I will now briefly show the configuration of the service port, step by step. The following figure shows this process.

Step 1. The command to create a service port is service port. After that, we need to enter the index of the service port or serial number.
TEST(config)#service port 100
Step 2. Now, we need to choose the type of service port - switch-oriented service flow or connection-oriented service flow. It depends on the service. For GPON or XGS-PON used switch-oriented service flow.

TEST(config)#service port 100 vlan 501 gpon 0/2/0 ont 10 gemport 51
Step 3. In this step, a single-service flow or a multi-service flow should be selected. In the following tables, we can see the specific traffic classification mode for the situation when we choose multi-service. In my example, for multi-service I choose user-vlan.


TEST(config)#service port 100 vlan 501 gpon 0/2/0 ont 10 gemport 51 multi-service user-vlan 501
Step 4. This step specifies a VLAN translation mode. It refers to VLAN tag translation. The command for VLAN tag translation is tag-transform. There are 5 processing modes, we can see them in the next table.

TEST(config)#service port 100 vlan 501 gpon 0/2/0 ont 10 gemport 51 multi-service user-vlan 501 tag-transform translate
Step 5. This is the last step. Now, we have to bind a service profile. Upstream and downstream transmission of an OLT should be linked to traffic profiles, as shown in the following table.

TEST(config)#service port 100 vlan 501 gpon 0/2/0 ont 10 gemport 51 multi-service user-vlan 501 tag-transform translate inbound traffic-tabel index 10 outbound traffic-table index 10
This is the end of this topic. I hope you learned something new!
Thank you!

