Configuring Service Profiles
Configuring Service Profiles
You can specify a default service profile and bind multiple service profiles to a rule. The device type
configuration in multiple service profiles vary. After an ONT is registered, the OLT checks the service profiles
based on the device type reported by the ONT. If the device type in the service profile matches the device
type reported by the ONT, the OLT sends the service profile to the ONT. If the device type does not match,
the OLT checks whether the default service profile exists and sends the default service profile to the ONT.
After the VLAN template is referenced, the VLAN translation and the stacking rules are compared for an
upstream packet with a VLAN tag. The VLAN tag rule is compared for an upstream packet without a VLAN
tag from an ONT GEM port. The packet is discarded if there is no corresponding matching rule.
• Fixed bandwidth assured bandwidth together comprise the basic bandwidth. The sum of the fixed
bandwidth and the assured bandwidth of all T-CONT configurations under the same PON port cannot
exceed the total uplink bandwidth of the corresponding PON port.
• Nonassured and best-effort bandwidth together comprise the additional bandwidth.
The uplink traffic profile configuration is applied only if the ONT supports it. After the uplink traffic profile
template is applied, it is referenced based on the GEM port in the line profile template or unique profile
template. The GEM port traffic is scheduled by the ONT based on the uplink traffic profile configuration.
d. Map the GEM port to the downlink traffic profile. The downlink bandwidth rate limit configured in
the downlink traffic profile is implemented by the OLT ACL resources.
4. Mapping rule
Configure mapping rules between the GEM port and user interface data flows, as detailed below:
a. A mapping mode is required to configure mapping between the GEM port and the data flowing from
the user interface. The following are the various mapping modes available:
• Port
• VLAN ID
• 802.1P priority
• Port + VLAN ID
• Port + 802.1P priority
• VLAN ID+802.1P priority
• Port+VLAN ID+802.1P priority
Note Only one mapping mode can be configured for the same service profile. The default mapping mode is based
on VLAN ID mapping.
b. A mapping table establishes the mapping relationship between the GEM port and the upstream data
flowing into the ONT user interface. After the mapping relationship is established, the corresponding
GEM port can be used to carry the service.
Note The parameters of the mapping mode must be the same as those configured in the mapping table configuration.
5. Flow rule
Configure flow rules, as detailed below:
a. Service flows are distinguished by the ONT based on the packet Ethernet type and the port the packets
are received into.
Packets that receive ports are classified into the following types:
• Ethernet interface (Eth): The Ethernet interface refers to the LAN port of the ONT.
• Virtual Ethernet interface (VEIP): The virtual Ethernet interface refers to the WAN interface of
the ONT.
• Voice IP interface (IPhost): The voice IP interface is applicable to ONTs that supports voice
service.
b. The VLAN tag processing policy of the ONT flow. Based on the flow rules configured, the ONT
applies the VLAN processing rule on the service flow. The following are the VLAN tag processes:
• Transparent
• Default
• Keep
• Translate
• Add
6. Rule profile
Configure a rule profile. Configure a rule profile, as detailed below:
a. Configure the ONT authentication rule and bind the line profile to the related ONTs. An OLT supports
the following authentication modes:
• Serial number authentication
• Password authentication
• Combination of serial number and password authentication
• Logical ONT ID (LOID) authentication
• LOID password authentication
• Combination of LOID and LOID password authentication.
Serial number authentication, password authentication, and a combination of serial number and
password authentication are ITU-defined ONT authentication methods.
b. Configure the ONT discovery mode. This can be configured with password authentication mode, a
combination of serial number and password authentication mode, and all LOID related authentication
modes. There are two types of ONT discovery modes:
• Always-on mode: This mode indicates that even after the ONT passes the authentication, if the
serial number changes, the ONT goes online. By default, the ONT discovery mode is in always-on
mode.
• Once-on mode: This mode indicates that the ONT must be authenticated and registered within
the specified time after the configuration of the profile is completed. If ONT authentication
succeeds, the serial number cannot be modified. The specified time can be set either by no aging
time and aging time. A no-aging time means that the timeout period is not set and the ONT can
always be authenticated.
After the ONT authentication rule is configured, the service profile is applied to the ONT.
• If the ONT service flow attributes are not distinguished, different line profiles are directly configured
for each ONT. Although this method allows for clear configurations, a large number of line profiles can
occupy space in the configuration file.
• If the ONT service flow attributes are distinguished, the common service flow attributes are configured
as a line profile, and the different service flow attributes are configured as a unique profile. Although
this method allows for simpler configuration, it is difficult to modify the ONT configurations because
they are unclear.
Note If there is a GEM port profile binding configuration in both the line profile and the unique profile, the unique
profile configuration takes precedence.
3. Configure the ONT SIP service, including the SIP proxy attributes, SIP interface attributes, SIP number
attributes, and digitmap attributes.
Procedure
Step 4 aim {index_num [name name] | name name} Creates VLAN aim.
Example: • index_num: The index of the template. The range is
Device(deploy-profile-vlan)# aim 5 from 0 to m, where m is the maximum number of
ONTs supported.
• name: The name of the template in string format. The
string length is from 1 to 128.
Step 5 [no] add inner-vlan vid {priority } {outer-vlan {vid Configures the VLAN stacking rule.
[priority] } }
• vid: The VLAN ID. The range is from 0 to 4094.
Example:
• priority: The 802.1 priority. The range is from 0 to 7.
Device(deploy-profile-vlan-5)#
Step 8 delete aim {index_list | name name} (Optional) Deletes the VLAN aim.
Example: • index_list: The index number combination.
Device(deploy-profile-vlan)# delete aim 5
• name: The name of the template in string.
Procedure
Step 4 aim {index_num [name name] | name name} Creates VLAN aim.
Example: • index_num: The index of the template. The range is
Device(deploy-profile-vlan)# aim 5 from 0 to m, where m is the maximum number of
ONTs supported.
• name: The name of the template, in string format. The
string length is from 1 to 128.
Step 5 [no] default vlan vid [priority] Configures a VLAN tagging rule.
Example: • vid: The VLAN ID. The range is from 0 to 4094.
Device(deploy-profile-vlan-5)# default vlan 5 5
• priority: The 802.1 priority. The range is from 0 to 7.
Step 8 delete aim {index_list | name name} (Optional) Deletes the VLAN aim.
Example: • index_list: The index number combination.
Device(deploy-profile-vlan)# delete aim 5
• name: The name of the template in string.
Procedure
Step 4 aim {index_num [name name] | name name} Creates VLAN aim.
Example: • index_num: The index of the template. The range is
Device(deploy-profile-vlan)# aim 5 from 0 to m, where m is the maximum number of
ONTs supported.
• name: The name of the template, in string format. The
string length is from 1 to 128.
Step 5 [no] translate old-vlan vid {priority | new-vlan {vid Configures the VLAN translate rule.
[priority] } }
• vid: The VLAN ID. The range is from 0 to 4094.
Example:
• priority: The 802.1 priority. The range is from 0 to 7.
Device(config)#
Step 8 delete aim {index_list | name name} (Optional) Deletes the VLAN aim.
Example: • index_list: The index number combination.
Device(deploy-profile-vlan)# delete aim 5
• name: The name of the template in string.
Procedure
Step 4 aim {index_num [name name] | name name} Creates the DBA aim.
Example: • index_num: The index of the template. The range is
Device(deploy-profile-dba)# from 0 to m, where m is the maximum number of
ONTs supported.
• name: The name of the template, in string format.
The string length is from 1 to 128.
Step 12 delete aim { index_list | name name} (Optional) Deletes the DBA aim.
Example: • index_list: The index number combination.
Device(deploy-profile-dba)#
• name: The name of the template in string.
Procedure
Step 3 deploy profile us-traffic Enter uplink traffic profile configuration mode.
Example:
Device(config)# deploy profile us-traffic
Step 4 aim {index_num [name name] | name name} Creates uplink traffic profile aim.
Example: • index_num: The index of the template. The range is
Device(deploy-profile-us-traffic)# aim 5 from 0 to m, where m is the maximum number of
ONTs supported.
• name: The name of the template, in string format.
The string length is from 1 to 128.
Step 6 us car cir cir cbs cbs pir pir pbs pbs (Optional) Configures GEM port traffic control.
Example: • cir: The committed information rate, in kbps. The
Device(deploy-profile-us-traffic-5)# us car cir range is from 64 to 800000.
256 cbs 23 pir 1024 pbs 5
• cbs: The committed burst size, in KB. The range is
from 2 to 25000.
• pir: The peak information rate, in kbps. The range is
from 64 to 1024000. The peak information rate
requirement is greater than or equal to committed
information rate.
• pbs: The peak burst size, in KB. The range is from 2
to 25000.
Step 9 delete aim {index_list | name name} (Optional) Deletes the uplink traffic profile aim.
Procedure
Step 3 deploy profile ds-traffic Enters downlink traffic profile configuration mode.
Example:
Device(deploy-profile-ds-traffic)#
Step 4 aim {index_num [name name] | name name} Creates downlink traffic profile aim.
Example: • index_num: The index of the template. The range is
Device(deploy-profile-ds-traffic)# aim 5 from 0 to m, where m is the maximum number of
ONTs supported.
• name: The name of the template, in string format. The
string length is from 1 to 128.
Step 5 ds car bandwidth bandwidth (Optional) Configures GEM port committed access rate
(CAR).
Example:
Device(deploy-profile-ds-traffic-5)# bandwidth: The downstream bandwidth, in kbps. The value
range is from 64 to 2608832.
Step 8 delete aim {index_list | name name} (Optional) Deletes the downlink traffic profile aim.
Example: • index_list: The index number combination.
Device(deploy-profile-ds-traffic)# delete aim 5
• name: The name of the template, in string format.
Procedure
Step 4 aim {index_number [name name] | name name} Creates line profile aim.
Example: • index_number: The index of the template. The range
Device(deploy-profile-line)# aim 5 is from 0 to m, where m is the maximum number of
ONTs supported.
• name: The profile name in string format.
Step 8 delete aim {index_list | name name} (Optional) Deletes the aim.
Example: • index_number: The index of the template. The range
Device(deploy-profile-line)# delete aim 5 is from 0 to m, where m is the maximum number of
ONTs supported.
w
• name: The profile name in string
Configure a T-CONT
Modifying and activating the line profile causes the ONT that references the template to go online.
To configure a T-CONT, perform this procedure.
Procedure
Step 5 [no ] tcont tcont_id profile dba {index_num |name name} Creates T-CONT.
Example: • tcont_id: The T-CONT ID. The value range is from 1
Device(deploy-profile-line-5)# tcont 2 profile dba to 8.
5
• index_number: The index of the template. The range
is from 0 to m, where m is the maximum number of
ONTs supported.
• name: The profile name in string.
Step 8 delete aim {index_list | name name} (Optional) Deletes the line profile.
Example: • index_number: The index of the template. The range
Device(deploy-profile-line)# delete aim 5 is from 0 to m, where m is the maximum number of
ONTs supported.
• name: The profile name in string.
Procedure
Step 4 aim {index_number [name name] | name name} Creates line profile aim.
Example: • index_number: The index of the template. The range
Device(deploy-profile-line)# aim 5 is from 0 to m, where m is the maximum number of
ONTs supported.
• name: The profile name in string.
Step 5 gemport traffic-mode {car | queue} Configures the GEM port traffic mode.
Example:
Device(deploy-profile-line-5)# gemport
traffic-mode car
Step 6 [no] gemport gem_index tcont tcont_id [encrypt | Creates GEM port and configure the parameters.
vlan-profile | us-traffic-profile | ds-traffic-profile ]
• gem_index: The GEM port index number. The ranges
{index_number | name name}
is from 1 to 1024. Currently, at most 24 GEM Ports
Example: can be created in each line profile.
Device(deploy-profile-line-5)# gemport 2 tcont 2
vlan-profile 2
• index_number: The index of the template. The range
is from 0 to m, where m is the maximum number of
ONTs supported.
• name: The name of the template, in string format.
The string length range is from 1 to 128.
Procedure
Step 4 aim {index_number [name name] | name name} Creates line profile aim.
Example: • index_number: The index of the template. The range
Device(deploy-profile-line)# aim 5 is from 0 to m, where m is the maximum number of
ONTs supported.
• name: The profile name in string.
Step 5 mapping mode {port | port-priority | port-vlan | Configures the GEM port mapping mode configuration.
port-vlan-priority | priority | vlan | vlan-priority}
Example:
Device(deploy-profile-line-5)# mapping mode port
Step 9 delete aim {index_number | name name} (Optional) Deletes the line profile.
Example: • index_number: The index of the template. The range
Device(deploy-profile-line)# delete aim 5 is from 0 to m, where m is the maximum number of
ONTs supported.
• name: The profile name in string.
Procedure
Step 4 aim {index_num [name name] | name name} Creates line profile aim.
Example: • index_number: The index of the template. The range
Device(deploy-profile-line)# aim 5 is from 0 to m, where m is the maximum number of
ONTs supported.
• name: The profile name in string
Step 5 flow flow_id port {eth port_id | veip | iphost } {etype { Creates the transparent flow rule.
ipoe | pppoe | arp}} transparent
• flow_id: The flow ID. The value range is from 0 to
Example: 63.
Device(deploy-profile-line-5)# flow 2 port iphost
etype arp transparent
• port_id: The ONT Ethernet interface ID. The value
range is from 1 to 24.
• ipoe: Ethernet Type 0x0800 packet
• pppoe: Ethernet Type 0x8863 or 0x8864 packet
• arp: Ethernet Type 0x0806 packet
Step 6 flow flow_id port {eth port_id | veip | iphost } {etype { Creates the default VLAN flow rule.
ipoe | pppoe | arp} } default vlan vid [priority]
• flow_id: The flow ID. The value range is from 0 to
Example: 63.
Device(deploy-profile-line-5)# flow 2 port iphost
etype arp default vlan 3
• port_id: The ONT Ethernet interface ID. The value
range is from 1 to 24.
• ipoe: Ethernet Type 0x0800 packet
• pppoe: Ethernet Type 0x8863 or 0x8864 packet
• arp: Ethernet Type 0x0806 packet
Step 7 flow flow_id port {eth port_id | veip | iphost } [etype Creates the keep flow rule.
{ipoe | pppoe | arp} ] vlan vlan_id [priority] keep
• flow_id: The flow ID. The value range is from 0 to
Example: 63.
Device(deploy-profile-line-5)# flow 2 port iphost
etype arp vlan 3 keep
• port_id: The ONT Ethernet interface ID. The value
range is from 1 to 24.
• ipoe: Ethernet Type 0x0800 packet
• pppoe: Ethernet Type 0x8863 or 0x8864 packet
• arp: Ethernet Type 0x0806 packet
• vlan_id: The VLAN ID. The value range is from 1 to
4094.
• priority: The 802.1P. The value range is from 0 to 7.
Step 8 [no] flow flow_id port {eth port_id | veip | iphost } [etype Creates the translate flow rule.
{ipoe | pppoe | arp} ] vlan vid [priority] translate vlan
• flow_id: The flow ID. The value range is from 0 to
vid [priority]
63.
Example:
• port_id: The ONT Ethernet interface ID. The value
Device(deploy-profile-line-5)# flow 2 port iphost
etype arp vlan 3 translate vlan 3
range is from 1 to 24.
• ipoe: Ethernet Type 0x0800 packet
• pppoe: Ethernet Type 0x8863 or 0x8864 packet
• arp: Ethernet Type 0x0806 packet
• vlan_id: The VLAN ID. The value range is from 1 to
4094.
• priority: The 802.1P. The value range is from 0 to 7.
Step 11 delete aim {index_number | name name} (Optional) Deletes the line profile.
Example:
Procedure
Step 5 permit sn {string-hex string_serial_number | hex Creates the serial number permit profile.
hex_serial_number } line {profile_line_list | name name}
• hex_serial_number: The ONT serial number, in hex
default line {index_number | name name}
format.
Example:
• string_serial_number: The ONT serial number, in
Device(deploy-profile-rule-0/1/1)# permit sn
string-hex GPON-1790032e line 1 default line
string format.
1
• index_number: The index of the template. The range
is from 0 to m, where m is the maximum number of
ONTs supported.
Step 6 permit pw {string string_password | hex hex_password} (Optional) Creates the password permit profile.
line {profile_line_list | name name} {default line
• string_password: The ONT password, in string
{index_num | name name} |once-on {no-aging |
format.
aging-time time} }
Example: • hex_password: The ONT password, in hex format.
Device(deploy-profile-rule-0/1/1)# permit pw • index_number: The index of the template. The range
string-hex GPON-1790032e line 1 default line 1 is from 0 to m, where m is the maximum number of
ONTs supported.
• profile_line_list : The profile line list number.
• name: The profile name, in string format. The string
length is from 1 to 128.
Step 7 permit sn-pw {string-hex string_serial_number | hex (Optional) Creates the serial number and password permit
hex_serial_number} {string string_password | hex profile.
hex_password} line { profile_line_list | name name}
• hex_serial_number: The ONT serial number, in hex
default line {index_num | name name}
format.
Example:
• string_serial_number: The ONT serial number, in
Device(deploy-profile-rule-0/1/1)# permit sn-pw
string-hex GPON-1790032e line 1 default line 1
string format.
• string_password: The ONT password in string format.
• hex_password: The ONT password in hex format.
• index_number: The index of the template. The range
is from 0 to m, where m is the maximum number of
ONTs supported.
• profile_line_list : The profile line list number.
• name: The profile name, in string format. The string
length is from 1 to 128.
Step 8 permit loid loid line {profile_line_list | name name} (Optional) Creates the LOID permit profile.
default line {index_num | name name} |once-on
• loid: The ONT logical ID, in string format. The string
{no-aging | aging-time time} }
length is from 1 to 24.
Example:
• profile_line_list : The profile line list number.
Device(deploy-profile-rule-0/1/1)# permit loid 2
line 4 default line 3 once-on aging 3 • name: The profile name, in string format. The string
length is from 1 to 128.
Step 9 permit lopw logical_password line {profile_line_list | (Optional) Creates the LOID password permit profile.
name name} [default line {index_number | name name}
• logical_password: The ONT password.
|once-on {no-aging | aging-time time} ]
Example: • profile_line_list : The profile line list number.
Device(deploy-profile-rule-0/1/1)# permit lopw • name: The profile name, in string format. The string
password line 4 default line 3 once-on aging 3 length is from 1 to 128.
• index_number: The index of the template. The range
is from 0 to m, where m is the maximum number of
ONTs supported.
• no-aging : Configures no timeout for discovery mode.
• aging-time time: Configures timeout for discovery
mode, in hours. The range is from 1 to 168.
Step 10 permit loid-lopw loid logical_password line (Optional) Creates the LOID and LOID Password permit
{profile_line_list | name name} [default line profile.
{index_number | name name} |once-on {no-aging |
• loid: The ONT logical ID, in string format. The string
aging-time time} ]
length is from 1 to 24.
Example:
• logical_password: The ONT logical password, in
Device(deploy-profile-rule-0/1/1)# permit
loid-lopw 2 password line 4 default line 3 once-on
string format. The string length is from 1 to 12.
aging 3
• profile_line_list: The profile line list number.
• index_number: The index of the template. The range
is from 0 to m, where m is the maximum number of
ONTs supported.
• name: The profile name, in string format. The string
length is 1 to 128.
• time: The discovery mode timeout time, in hours. The
value range is from 1 to 168.
Step 13 delete aim { ont_id_list | name name } (Optional) Deletes the rule profile aim.
Example: • slot-num/pon-num/ont-num: The ONT ID.
Device(deploy-profile-rule)# delete aim 0/1/1 • slot-num: The slot number. The value is 0.
• pon-num: The PON number. The range is from
1 to 8.
• ont-num: The ONT number. The range is from
1 to 128.
Procedure
Step 6 ip-config mode{dhcp vlan vlan_id {vlan_priority | host Configures the IP configuration as static or DHCP.
} | static ip_address}
Note This command is applicable to an ONT device
Example: that operates in the Single Family Unit (SFU)
Device(deploy-profile-unique-0/1/1)# ip-config mode mode.
dhcp vlan 4093 host 2
Step 9 delete aim { ont_id_list | name name } (Optional) Deletes the unique profile.
Example: • slot-num/pon-num/ont-num: The ONT ID.
Device(deploy-profile-unique)# delete aim 0/1/1 • slot-num: The slot number. The value is 0.
• pon-num: The PON number. The range is from
1 to 8.
• ont-num: The ONT number. The range is from 1
to 128.
Procedure
Step 5 [no] gemport gem_index {vlan-profile |us-traffic-profile Configures the GEM port profile.
| ds-traffice-profile } { index_num | name name }
• gem_index: The GEM port index. The range is from
Example: 1 to 1024.
Device(deploy-profile-unique-0/1/1))# gemport 2
vlan-profile 2
• index_num: The index of the template. The range is
from 0 to m, where m is the maximum number of
ONTs supported.
• name: The profile name, in string format. The string
length is from 1 to 128.
Configure a SIP
Modifying and activating the unique profile causes the ONT that references the profile to go offline and then
online.
To configure a SIP, perform this procedure.
Procedure
Step 5 [no] sip agent proxy-server uri {outbound-proxy Configures the SIP proxy server.
|registrar-server |signal-port }proxy_server_uri]
proxy-server uri: The proxy server universal resource
Example: identifier (UNI). The length is from 1 to 64.
Device(deploy-profile-unique-0/1/1)# sip agent Use the no sip agent command to delete the SIP agent.
proxy-server 2
Step 6 [no] sip user mode {static ip-address ip mask ip_mask Configures the SIP interface.
gateway ip primary-dns ip secondary-dns ip|dhcp vlan
• ip: The IP address
vlan_idpriority host host_id}
Example: • ip_mask: The IP network mask
Device(deploy-profile-unique-0/1/1)# sip usr mode • vlan_id: The VLAN ID. The value range is from 1 to
dhcp vlan 2 4 host 1 4094.
• priority: The value range is from 0 to 7.
• host_id: The IP host ID. The value is 1.
Step 7 [no] sip user pots_number{name username password Configures the SIP user.
password |telno phone_num}
• pots_number: The ONT POTS port number. The
Example: value range is from 1 to 2
Device(deploy-profile-unique-0/1/1)# sip user 2
name user 1 password 123
• username: The SIP username., The username length
is from 1 to 25.
• password: The SIP username. The password length
is from 1 to 25
• phone_num: The ONT local phone number. The digit
length is from 1 to 25.
Step 8 sip digitmap dial-plan-id dial_plan_id dial-plan-token Configures the SIP digit map.
token
• dial_plan_id: The digit map index. The range is from
Example: 1 to 10.
Device(deploy-profile-unique-0/1/1)# sip digitmap
dial-plan-id 2 dial-plan-token 3
• token: The digit map content.
Step 11 delete aim {slot-num/pon-num/ont-num | name name} (Optional) Deletes the unique profile.
Example: • slot-num/pon-num/ont-num: The ONT ID.
Device(deploy-profile-unique)# delete aim 0/1/1 • slot-num: The slot number. The value is 0.
• pon-num: The PON number. The range is from
1 to 8.
• ont-num: The ONT number. The range is from
1 to 128.