H3C S3600 Series EPON OLT Switches Operation Manual-Release 3103-6W100

03-Port Configuration

Chapters Download  (149.51 KB)

03-Port Configuration


Port Configuration

When configuring Ethernet interfaces, go to these sections for information you are interested in:

l          Introduction to Port Functions

l          Port Configuration

l          Displaying and Maintaining a Port

Introduction to EPON System Ports

The S3600 series EPON OLT switches mainly serve as Optical Line Terminal (OLT) devices in Ethernet Passive Optical Networks (EPONs). The S3600 series EPON OLT switches provide not only Ethernet ports available on traditional switches but also ports specific for EPON networks. For details about ports specific for EPON networks, see Table 1-1.

Table 1-1 Ports in EPON systems

Port type

Description

10/100/1000Base-T autosensing Ethernet port

A 10/100/1000Base-T autosensing Ethernet port and the corresponding SFP port together form a Combo port. For details, see Combo Port.

SFP port

OLT port

Physical port. For details, see OLT port.

ONU port

Logical interface. For details, see ONU port.

UNI port

Logical interface. For details, see UNI Port.

 

Combo Port

A Combo port can operate as either an optical port or an electrical port. Inside the device there is only one forwarding interface.

l          For a Combo port, the electrical port and the corresponding optical port are TX-SFP multiplexed. You can specify a Combo port to operate as an electrical port or an optical port. That is, a Combo port cannot operate as both an electrical port and an optical port simultaneously.

l          For a Combo port, When one port is enabled, the other is automatically disabled.

 

On an S3600 EPON OLT switch, electrical port GigabitEthernet 1/1/1 and optical port GigabitEthernet 1/1/2 form a Combo port, and electrical port GigabitEthernet 1/1/3 and optical port GigabitEthernet 1/1/4 form another Combo port.

 

 

OLT port

The OLT port on an S3600 EPON OLT switch connects a downstream POS device, which further connects multiple ONU devices. An OLT port number is in the format slot number/sub-card slot number/OLT port number, such as OLT 1/0/1, as shown in Figure 1-1.

ONU port

Each OLT port of an S3600 EPON OLT switch has 64 logical ONU ports. An ONU port becomes a physical port only after an ONU device is bound with it. The configurations performed in ONU port view take effect on the corresponding ONU device. An ONU port number is in the format slot number/sub-card slot number/OLT port number: ONU port number, such as ONU 1/0/1:1, as shown in Figure 1-1.

UNI Port

A UNI port is an ONU device port connected to a user. The UNI port number supported by an S3600 EPON OLT switch is in the range 1 to 80. The actual numbers vary with ONU devices. For example, when the ONU device corresponding to ONU 1/0/1:1 in an EPON system is S3100-16C-EPON-EI, the UNI port number is in the range 1 to 16.

Figure 1-1 An EPON system

 

Introduction to Port Functions

Duplex Mode and Port Rate

Three types of duplex modes are available to ports:

l          Full-duplex mode (full). Interfaces operating in this mode can send and receive packets simultaneously.

l          Half-duplex mode (half). Interfaces operating in this mode can either send or receive packets at a given time.

l          Auto-negotiation mode (auto). Interfaces operating in this mode determine their duplex mode through auto-negotiation.

Similarly, if you configure the transmission rate for an Ethernet interface by using the speed command with the auto keyword specified, the transmission rate is determined through auto-negotiation too. For a 100Mbps port or Gigabit Layer 2 port, you can specify the transmission rate by its auto-negotiation capacity.

 

Only physical ports support the duplex mode and port rate configuration; OLT ports do not support the duplex mode and port rate configuration; the optical port in a Combo pair does not support the half duplex mode or the 10-Mbps port rate.

 

Auto-Negotiation of Port Rate

Usually, the transmission rate on a port is determined through negotiation with the peer end, which can be any rate within the capacity range. With auto-negotiation rate configured, you can enable the port to negotiate only part of the transmission rates within its capacity.

 

l    For an S3600 EPON OLT switch, only electrical ports support this function.

l    If you repeatedly use the speed and the speed auto commands to configure the transmission rate on a port, only the latest configuration takes effect.

 

MDI Mode

For an S3600 EPON OLT switch, only electrical ports support this function.

 

Two types of Ethernet cables can be used to connect Ethernet devices: crossover cable and straight-through cable. To accommodate these two types of cables, an Ethernet interface on a device can operate in one of the following three Medium Dependent Interface (MDI) modes:

l          Across mode

l          Normal mode

l          Auto mode

An Ethernet interface is composed of eight pins. By default, each pin has its particular role. For example, pin 1 and pin 2 are used for transmitting signals; pin 3 and pin 6 are used for receiving signals. You can change the pin roles through setting the MDI mode. For an Ethernet interface in normal mode, the pin roles are not changed. For an Ethernet interface in across mode, pin 1 and pin 2 are used for receiving signals; pin 3 and pin 6 are used for transmitting signals. To enable normal communication, you should connect the local transmit pins to the remote receive pins. Therefore, you should configure the MDI mode depending on the cable types.

l          Normally, the auto mode is recommended. The other two modes are useful only when the device cannot determine the cable type.

l          When straight-through cables are used, the local MDI mode must be different from the remote MDI mode.

l          When crossover cables are used, the local MDI mode must be the same as the remote MDI mode, or the MDI mode of at least one end must be set to auto.

Port Group

The devices allow you to configure some functions on multiple interfaces at a time by assigning the interfaces to a port group in addition to configuring them on a per-interface basis. This is helpful when you have to configure a feature in the same way on multiple interfaces.

A port group is created manually and the settings you made on it apply to all group member interfaces. Note that even though the settings are made on the port group, they are saved on an interface basis rather than on a port group basis. Thus, you can only view the settings in the view of each interface with the display current-configuration command or the display this command.

 

l    Only Ethernet ports can be added to a port group.

l    In port group view, you can configure storm suppression and enable the forwarding of jumbo frames on all Ethernet ports in the current port group.

 

Flow Control

When flow control is enabled on both sides, if traffic congestion occurs at the ingress interface, it will send a Pause frame notifying the egress interface to temporarily suspend the sending of packets. The egress interface is expected to stop sending any new packet after it receives the Pause frame. In this way, flow control helps to avoid dropping of packets. Note that this will be possible only after flow control is enabled on both the ingress and egress interfaces

 

Only Ethernet ports and OLT ports support this function.

 

Suppression Time of Physical-Link-State Change

A port operates in one of the two physical link states: up or down. During the suppression time, physical-link-state changes will not be propagated to the system. Only after the suppression time has elapsed will the system be notified of the physical-link-state changes by the physical layer. This functionality reduces the extra overhead occurred due to frequent physical-link-state changes within a short period of time

 

Only Ethernet ports and ONU ports support this function.

 

Interval for Collecting Port Statistics

Perform this operation to set the interval for collecting Ethernet ports statistics. You can use the display interface command to display the traffic statistics on a port during a certain statistics interval.

Loopback Testing

You can enable loopback testing to check whether the port functions properly. Note that no data packets can be forwarded during the testing. Loopback testing falls into the following two categories:

l          Internal loopback testing, which is performed within switching chips to test the functions related to the port.

l          External loopback testing, which is used to test the hardware functions of a port. To perform external loopback testing on a port, you need to install a loopback plug on the port. In this case, packets sent from the port are received by the same port.

 

l    Only Ethernet ports and ONU ports support this function.

l    As for the internal loopback test and external loopback test, if a port is down, only the former is available on it; if the port is shut down, both are unavailable.

l    The speed, duplex, mdi, and shutdown commands are not applicable during loopback testing.

l    With the loopback testing enabled, the port operates in full duplex mode. With the loopback testing disabled, the original configurations will be restored.

 

Storm Suppression

You can use the storm suppression function to limit the size of a particular type of traffic (currently broadcast, multicast and unknown unicast traffic) on a per-port basis in port view or port group view.

In port or port group view, you set the maximum broadcast, multicast or unknown unicast traffic allowed to pass through a port or each Ethernet port in a port group. When the broadcast, multicast, or unknown unicast traffic on the port exceeds the threshold, the system discards packets until the traffic drops below the threshold.

 

l    Only Ethernet ports and OLT ports support this function.

l    As for an Ethernet port belongs to a port group, if you set a storm suppression ratio for the port in both Ethernet port view and port group view, the one configured the last takes effect.

 

Forwarding of Jumbo Frames

Due to tremendous amount of traffic occurring on an Ethernet port, it is likely that some frames greater than the standard Ethernet frame size are received. Such frames (called jumbo frames) will be dropped. With forwarding of jumbo frames enabled, the system does not drop all the jumbo frames. Instead, it continues to process jumbo frames with a size greater than the standard Ethernet frame size and yet within the specified parameter range.

In port configuration mode (Ethernet port view/port-group view), you can set the length of jumbo frames that can pass through the Ethernet port.

l          If you execute the command in Ethernet port view, the configurations take effect only on the current interface.

l          If you execute the command in port-group view, the configurations take effect on all ports in the port group.

 

If you set the value argument for ports of a port group in Ethernet port view or port-group view for multiple times, the latest configuration takes effect.

 

Testing the Link Between an ONU and the OLT

Perform this operation to test the optical link between the ONU and the OLT.

The link connectivity between an ONU and the OLT can be tested only when the ONU is online.

 

Testing the Cable Connected to an UNI Port

Perform this operation to test the cable connected to the specified UNI port of the ONU once and to display the testing result.

 

Port Configuration

Port Configuration Task List

Complete the following tasks to configure a port

Task

Remarks

Combo Port Configuration

Enable a Combo port

Ethernet port Configuration

l      Configure the basic functions of an Ethernet port

l      Batch-configure Ethernet ports in a port group

OLT Port Configuration

Configure the basic functions of an OLT port

ONU Port Configuration

Configure the basic functions of an ONU port

UNI Port Configuration

Configure the basic functions of an UNI port

 

Combo Port Configuration

Follow these steps to configure a Combo port.

To do

Use the command

Remarks

Enter system view

system-view

Enter Ethernet port view

interface interface-type interface-number

Enable a specified double Combo port

undo shutdown

Optional

By default, of the two ports in a Combo port, the one with a smaller port ID is enabled.

 

Ethernet port Configuration

Configure a single Ethernet port

Follow these steps to configure an Ethernet port.

To do

Use the command

Remarks

Enter system view

system-view

Enter Ethernet port view

interface interface-type interface-number

Set the description string

description text

Optional

By default, the description of an interface is the interface name followed by the “interface” string, GigabitEthernet 1/1/1 Interface for example.

Set the duplex mode

duplex { auto | full | half }

Optional

auto by default.

The optical interface of a Combo port does not support the half keyword.

The OLT port and ONU port do not support this command.

Set the transmission rate

speed { 10 | 100 | 1000 | auto }

Optional

auto by default.

The optical interface of a Combo port does not support the 10 or 100 keyword.

The OLT port and ONU port do not support this command.

Shut down the Ethernet port

shutdown

Optional

By default, an Ethernet interface is in up state.

To bring up an Ethernet interface, use the undo shutdown command.

Configure the auto-negotiation transmission rate range

speed auto [ 10 | 100 | 1000 ] *

Optional

Configure the MDI mode for the Ethernet port

mdi { across | auto | normal }

Optional

Defaults to auto. That is, the Ethernet interface determines the physical pin roles (transmit or receive) through negotiation.

Enable flow control

flow-control

Optional

Disabled by default

Configure the up/down suppression time of physical-link-state changes

link-delay delay-time

Optional

0 second by default.

Configure the interval for collecting port statistics

flow-interval interval

Optional

300 seconds by default.

Enable loopback testing

loopback { external | internal }

Optional

Disabled by default.

Set the broadcast storm suppression ratio

broadcast-suppression { ratio | pps max-pps }

Optional

By default, broadcast traffic is not suppressed.

Set the multicast storm suppression ratio

multicast-suppression { ratio | pps max-pps }

Optional

By default, multicast traffic is not suppressed.

Set the unknown unicast storm suppression ratio

unicast-suppression { ratio | pps max-pps }

Optional

By default, unknown unicast traffic is not suppressed.

Enable the forwarding of jumbo frames

jumboframe enable [ value ]

Optional

By default, the device allows jumbo frames with the specified length to pass through all Ethernet ports. The default length of jumbo frames that are allowed to pass is 1536 Bytes

 

Batch-configure Ethernet ports in a port group

Follow these steps to batch-configure Ethernet ports:

To do

Use the command

Remarks

Enter system view

system-view

Create a manual port group and enter manual port group view

port-group manual port-group-name

Required

Add Ethernet ports to the manual port group

group-member interface-list

Required

Set the broadcast storm suppression ratio for the port group

broadcast-suppression { ratio | pps max-pps }

Optional

By default, broadcast traffic is not suppressed.

Set the multicast storm suppression ratio for the port group

multicast-suppression { ratio | pps max-pps }

Optional

By default, multicast traffic is not suppressed.

Set the unknown unicast storm suppression ratio for the port group

unicast-suppression { ratio | pps max-pps }

Optional

By default, unknown unicast traffic is not suppressed.

Enable the forwarding of jumbo frames

jumboframe enable [ value ]

Optional

By default, the device allows jumbo frames with the specified length to pass through all Ethernet ports. The default length of jumbo frames that are allowed to pass is 1536 Bytes

 

OLT Port Configuration

Follow these steps to configure an OLT port.

To do

Use the command

Remarks

Enter system view

system-view

Enter OLT port view

interface interface-type interface-number

Set the description string

description text

Optional

By default, the description of an interface is the interface name followed by the “interface” string, Olt 1/0/1 Interface for example.

Shut down the OLT port

shutdown

Optional

By default, an OLT port is in up state.

To bring up an OLT port, use the undo shutdown command.

Enable flow control

flow-control

Optional

Disabled by default.

Set the broadcast storm suppression ratio for the OLT port

broadcast-suppression { ratio | pps max-pps }

Optional

By default, broadcast traffic is not suppressed.

Set the multicast storm suppression ratio for the OLT port

multicast-suppression { ratio | pps max-pps }

Optional

By default, multicast traffic is not suppressed.

Set the unknown unicast storm suppression ratio for the OLT port

unicast-suppression { ratio | pps max-pps }

Optional

By default, unknown unicast traffic is not suppressed.

 

ONU Port Configuration

Follow these steps to configure an ONU port

To do

Use the command

Remarks

Enter system view

system-view

Enter OLT port view

interface interface-type interface-number

Create ONU port(s)

using onu { onu-number1 [ to onu-number2 ] } &<1-10>

Required

By default, no ONU port is created when S3600 EPON OLT switch is started up.

Exit OLT port view

quit

Enter ONU port view

interface interface-type interface-number

Set the description string for the ONU port

description text

Optional

By default, the description of an interface is the interface name followed by the “interface” string, Onu 1/0/1:1 for example.

Shut down the ONU port

shutdown

Optional

By default, an ONU port is in up state.

To bring up an ONU port, use the undo shutdown command.

Configure the up/down suppression time of physical-link-state changes for the ONU port

link-delay delay-time

Optional

0 second by default.

Enable MAC loopback for the ONU port

loopback enable

Optional

By default, MAC loopback is not enabled for an ONU.

Ethernet port does not support this function.

Enable loopback testing for the ONU port

loopback { external | internal }

Optional

Disabled by default.

Test the optical link between the ONU and the OLT

linktest [ frame-number value | frame-size value | delay { on | off } | vlan-tag

{ on [ vlan-priority value | vlan-id value ] | off } ] *

Optional

The following lists the default values of the link test parameters.

l      Number of test frames: 20

l      Frame size: 1000 bytes

l      VLAN tag: not carried in testing frames

Delay testing state: Off

 

UNI Port Configuration

 

If an H3C EC1001 inserted with a subcard serves as an ONU, a UNI port here refers to the internal port connecting the subcard to the EC1001, but not the Ethernet port of the EC1001.

 

Follow these steps to configure a UNI port.

To do

Use the command

Remarks

Enter system view

system-view

Enter ONU port view

interface interface-type interface-number

Configure a description for a UNI

uni uni-number description text

Optional

By default, no description is configured for a UNI.

Shut down the UNI port

uni uni-number shutdown

Optional

By default, a UNI port is enabled.

Set the duplex mode for a UNI port

uni uni-number duplex { full | half | auto }

Optional

By default, a UNI port is in the full duplex mode.

Configure the port rate for a UNI port

uni uni-number speed { 10 | 100 | auto }

Optional

By default, the UNI port rate is 100Mbps.

Enable auto-negotiation for a UNI port

uni uni-number auto-negotiation

Optional

By default, auto-negotiation is enabled on a UNI port.

Force a UNI port to restart auto-negotiation

uni uni-number restart auto-negotiation

Optional

This command takes effect only when auto-negotiation is enabled on the UNI port.

Configure the MDI mode for a UNI port

uni uni-number mdi { across | auto | normal }

Optional

Be default, the MDI mode for a UNI port is auto.

Enable flow control for a UNI

uni uni-number flow-control

Optional

By default, flow control is disabled for a UNI port.

Test the cable connected to an UNI port

uni uni-number virtual-cable-test

Optional

 

When auto-negotiation is enabled on a UNI port, you cannot configure the duplex mode, MDI mode, or rate of the UNI port.

 

Displaying and Maintaining a Port

To do...

Use the command

Remarks

Display the summary of a port

display brief interface [ interface-type [ interface-number ] ] [ | { begin | exclude | include } regular-expression ]

Available in any view

Display the current state of a port and the related information

display interface [ interface-type [ interface-number ] ]

Display the optical parameter information of an OLT port

display optics-parameters interface interface-type interface-number

Display the Combo ports and the corresponding optical/electrical ports

display port combo

Display the information about a manual port group or all the port groups

display port-group manual [ all | name port-group-name ]

Display the information about the current status of a UNI

display uni-information uni-number

Available in ONU port view

Clear the statistics of a port

reset counters interface [ interface-type [ interface-number ] ]

Available in user view

Clear the packet statistics information for a UNI

reset counters uni [ uni-number ]

Available in ONU port view

 

l          The above commands take effect on H3C ONUs only.

l          You can display the current status information or clear the packet statistics on a UNI port only when the host ONU is online.

 

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.