Hello,
Creating a GPON Service Flow in Profile Mode with Simplified Configurations
A GPON service flow is a service channel connecting the user side to the network side. Configure a service flow before provisioning services. In a simplified service flow, the system only cares about only the translation between the SVLAN and the CVLAN and does not care about the GEM port mapping.
Context
A service port can carry a single service or multiple services. When a service port carries multiple services, the OLT supports traffic classification. In simplified configuration mode, the OLT supports only C-VLAN-based traffic classification.
Table 3-6 lists the default settings of a service flow.
Table 3-6 Default settings of a service flow
Parameter | Default Setting |
|---|
Traffic profile ID | 0-6 |
Management status | Activated |
Maximum number of learnable MAC addresses | 1023 |
Configuration Process
Figure 3-7 shows the process of creating a GPON service flow.
Figure 3-7 Process of creating a GPON service flow

Procedure
Run the traffic table ip command to create a traffic profile.
The OLT provides seven default traffic profiles with IDs ranging from 0 to 6.
Before creating a service flow, run the display traffic table command to check whether a service flow meeting service requirement is available. If no such a service flow is available, create a traffic profile.
Run the service-port vlan vlanid port command to create a service flow.
In simplified configuration mode, a service flow is an end-to-end configuration to a port on an optical network terminal (ONT) from the OLT. Then, users only need to pay attention to the switching between the S-VLAN and C-VLAN.
The preceding parameters are set based on the ONT type. Therefore, specify the ONT type before creating a service flow.
Table 3-7 lists the commands involved in parameter settings.
Table 3-7 Commands involved in parameter settings
Service Type | Bridging ONT | Gateway ONT |
|---|
Tagged high-speed Internet (HSI) service | service-port [ index ] vlan vlanid port frameid/slotid/portid ont ontid eth port-index-list multi-service... | service-port [ index ] vlan vlanid port frameid/slotid/portid ont ontid multi-service... |
Untagged HSI service | service-port [ index ] vlan vlanid port frameid/slotid/portid ont ontid eth port-index-list multi-service... | service-port [ index ] vlan vlanid port frameid/slotid/portid ont ontid iphost multi-service... NOTE:Services can be identified only after a native VLAN is configured for ONT ports. |
Voice service | service-port [ index ] vlan vlanid port frameid/slotid/portid ont ontid iphost multi-service... | service-port [ index ] vlan vlanid port frameid/slotid/portid ont ontid multi-service... |
IPTV service | service-port [ index ] vlan vlanid port frameid/slotid/portid ont ontid eth port-index-list multi-service... | service-port [ index ] vlan vlanid port frameid/slotid/portid ont ontid multi-service... |
In the preceding table, "..." indicates the omitted command format.

The OLT supports the service flow configuration by index. Each service flow has a unique index. In this manner, users do not need to input a large number of flow parameters, thereby simplifying service flow configurations. When creating a service flow, the service flow index parameter index is optional. If index is not set, the OLT automatically allocates an idle index starting from the configured maximum index, regardless of whether the maximum index has been deleted. If the idle index is greater than the upper index threshold, the OLT searches for the new idle index starting from 0.
vlan is an S-VLAN, which can only be a smart or MUX VLAN.
rx-cttr is the same as outbound in terms of meaning and function. Either parameter indicates the index of the service flow from the network side to the user side. tx-cttr is the same as inbound in terms of meaning and function. Either parameter indicates the index of the service flow from the user side to the network side. The traffic profile bound to the service flow is the one created in 1.
For a bridging ONT (SFU), the ONT port provisioning the POTS service is set to iphost and ONT ports provisioning other services are set to eth.
For a gateway ONT (HGU), the ONT port provisioning the Internet access service with untagged packets is set to iphost; other services cannot be configured on physical ports but on the ONT.
untagged: indicates that the user-side packets are untagged.
user-vlanid: indicates that the user-side packets are tagged. The tag value is the same as the C-VLAN tag.
eth: an Ethernet port, which is used for the Internet access or multicast service.
iphost: a POTS port, which is used for the voice service.
Select the type of an ONT port from ont ontid { eth | iphost }.
Select a C-VLAN tag from multi-service user-vlan { untagged | user-vlanid }.
(Optional) Run the service-port index modify command to modify Port-list for the Ethernet port list of the service flow.
Perform this step if the service planning for a user port is changed.
(Optional) Configure the attributes of the service flow.
Run the service-port desc command to configure the description of the service flow. The description includes the purpose of the service flow creation and the services carried over the service flow. Therefore, the description of the service flow facilitates maintenance.
Run the service-port index adminstatus command to configure the management status of the service flow. A service port activated by default.
A service can be provisioned at two levels: port level and service flow level. The service takes effect only after both the access port and service flow are activated.
Run the mac-address max-mac-count service-port command to set the maximum number of MAC addresses learned by the service port. This configuration restricts the maximum number of PCs that can access the Internet by using the same user account. The maximum number of learnable MAC addresses of a service flow is 1023 by default.
Example
The following configurations are used as an example to provision the Internet access service for a user:
GPON port 0/2/0 on an OLT connects to ONT 1.
The planned configurations of the user are as follows:
The rate of the Internet access service is 4096 kbit/s.
The user connects to Ethernet port 1 on the ONT.
The ID of the service VLAN (S-VLAN) is 1000.
At most three users can concurrently access the Internet using the same account.
No proper traffic profile is available and traffic profile hsi is created.
The user has not registered. Do not provision the Internet access service for the user.
huawei(config)#traffic table ip name hsi cir 4096 priority 3 priority-policy loc al-Setting Create traffic descriptor record successfully ------------------------------------------------ TD Index : 10 TD Name : hsi Priority : 3 Copy Priority : - Mapping Index : - CTAG Mapping Priority: - CTAG Mapping Index : - CTAG Default Priority: 0 Priority Policy : local-pri CIR : 4096 kbps CBS : 133072 bytes PIR : 8192 kbps PBS : 264144 bytes Fix : 0 kbps CAR Threshold Profile: - Color Mode : color-blind Color policy : dei Referenced Status : not used ------------------------------------------------ huawei(config)#service-port 5 vlan 1000 gpon 0/2/0 ont 1 gemport 120 inbound traffic-table name hsi outbound traffic-table name hsi huawei(config)#mac-address max-mac-count service-port 5 3 huawei(config)#service-port 5 adminstatus disable
The following configurations are used as an example to provision the Internet access service for a commercial user:
GPON port 0/2/0 on an OLT connects to ONT 2.
The planned configurations of the user are as follows:
The rate of the Internet access service is 8192 kbit/s.
The Internet access service is in multi-service mode to facilitate follow-up service expansion.
The user is identified by customer VLAN (C-VLAN).
The ID of the S-VLAN is 1023.
The ID of the C-VLAN is 100.
ONT port 2 connects to the service flow.
No proper traffic profile is available and traffic profile huawei is created.
The description of the service flow is added to facilitate maintenance.
The Internet access service needs to be provisioned immediately.
huawei(config)#display traffic table ip from-index 0 { <cr>|to-index<K> }: Command: display traffic table ip from-index 0 ---------------------------------------------------------------------------- TID CIR(kbps) CBS(bytes) PIR(kbps) PBS(bytes) Pri Copy-policy Pri-Policy ---------------------------------------------------------------------------- 0 1024 34768 2048 69536 6 - tag-pri 1 2496 81872 4992 163744 6 - tag-pri 2 512 18384 1024 36768 0 - tag-pri 3 576 20432 1152 40864 2 - tag-pri 4 64 4048 128 8096 4 - tag-pri 5 2048 67536 4096 135072 0 - tag-pri 6 off off off off 0 - tag-pri ---------------------------------------------------------------------------- Total Num : 7 huawei(config)#traffic table ip name huawei cir 8192 priority 4 priority-policy local-Setting Create traffic descriptor record successfully ------------------------------------------------ TD Index : 8 TD Name : huawei Priority : 4 Copy Priority : - Mapping Index : - CTAG Mapping Priority: - CTAG Mapping Index : - CTAG Default Priority: 0 Priority Policy : local-pri CIR : 8192 kbps CBS : 264144 bytes PIR : 16384 kbps PBS : 526288 bytes Fix : 0 kbps CAR Threshold Profile: - Color Mode : color-blind Color policy : dei Referenced Status : not used ------------------------------------------------ huawei(config)#service-port 10 vlan 1023 port 0/2/0 ont 2 eth 2 multi-service user-vlan 100 inbound traffic-table name huawei outbound traffic-table name huawei huawei(config)#service-port desc 10 description gpon/Vlanid:1023/uservlan:100A home user initially configures the Internet access service on ONT port 1. Later, the user needs to use the Internet access service ONT ports 2 and 3. The original service flow ID is 10.
huawei(config)#service-port 10 modify ont eth 1-3
For details : https://support.huawei.com/enterprise/my/doc/EDOC1100055541/53ac8df2/creating-a-gpon-service-flow-in-profile-mode-with-simplified-configurations
Thanks