Problem
Your want to configure a SONET OC192 interface.
Solution
Use the following commands for a basic configuration:
[edit interfaces so-4/0/0 ] aviva@t320# set description "JUNOS cookbook SONET OC192 interface" aviva@t320# set unit 0 family inet address 192.0.4.1/24
Discussion
Synchronous Optical Network ( SONET) is a high-speed fiber-optic transmission that was developed in the 1980s by Bellcore and is the American standard of the CCITT Synchronous Digital Hierarchy (SDH) standard for a hierarchy of optical transmission rates. SONET uses LEDs or lasers to transmit bits with pulses of light.
The basic building block of the SONET/SDH hierarchy in the optical domain is an OC1; in the electrical domain, it is an STS1. An OC1 operates at 51.840 Mbps. Common SONET speeds are OC3 (155.52 Mbps), OC12 (622.08 Mbps), OC48 (2.488 Gbps), and OC192 (9.953 Gbps), and the JUNOS software supports a variety of SONET PICs for all these interface speeds.
In this recipe, we are configuring the SONET OC192 PIC in slot 4 of a T320 router:
aviva@t320> show chassis hardware Hardware inventory: Item Version Part number Serial number Description Chassis 19086 T320 … FPC 4 REV 01 710-005803 AZ2121 FPC Type 3 CPU REV 09 710-001726 AY4902 FPC CPU PIC 0 REV 01 750-004535 HC0276 1x OC-192 SM SR1 PIC 1 REV 03 750-003336 HJ9955 4x OC-48 SONET, SMSR MMB 1 REV 01 710-005555 AZ2192 MMB-288mbit …
The basic configuration is straightforward. You just need an IP address. Use the show interfaces terse command to check that the interface is up:
aviva@t320> show interfaces so-4/0/0 terse Interface Admin Link Proto Local Remote so-4/0/0 up up so-4/0/0.0 up up inet 198.0.4.1/24
The output shows that both the physical and logical interfaces are up and running.
To verify the configuration and operation, look at the interface status:
aviva@t320> show interfaces so-4/0/0 Physical interface: so-4/0/0, Enabled, Physical link is Up Interface index: 131, SNMP ifIndex: 24 Description: JUNOS cookbook SONET OC192 interface Link-level type: PPP, MTU: 4474, Clocking: Internal, SONET mode, Speed: OC192 Loopback: None, FCS: 16, Payload scrambler: Enabled Device flags : Present Running Interface flags: Point-To-Point SNMP-Traps 16384 Link flags : Keepalives Keepalive settings: Interval 10 seconds, Up-count 1, Down-count 3 Keepalive: Input: 1688 (00:00:01 ago), Output: 1693 (00:00:05 ago) LCP state: Opened NCP state: inet: Opened, inet6: Not-configured, iso: Not-configured, mpls: Opened CHAP state: Not-configured CoS queues : 8 supported Last flapped : 2005-05-26 10:41:53 PDT (07:29:52 ago) Input rate : 40 bps (0 pps) Output rate : 48 bps (0 pps) SONET alarms : None SONET defects : None Logical interface so-4/0/0.0 (Index 67) (SNMP ifIndex 22) Flags: Point-To-Point SNMP-Traps Encapsulation: PPP Protocol inet, MTU: 4470 Flags: None Addresses, Flags: Is-Preferred Is-Primary Destination: 192.0.4/24, Local: 192.0.4.1, Broadcast: 192.0.4.255
Highlighted in this output are some of the default SONET interface settings. The link-level type is PPP, the default for interfaces with permanent virtual circuits. The default SONET media MTU for T320 routers is 4,474 bytes, and the default IPv4 MTU size (displayed in the logical interface section) is 4,470 bytes. SONET interfaces uses the router's internal stratum 3 clock as the default source of the transmit clock. The default FCS is 16 bites, and payload scrambling is enabled by default to improve link stability.
To see traffic statistics and debug issues with the SONET frames, use the show interfaces extensive command:
aviva@t320> show interfaces so-4/0/0 extensive … Statistics last cleared: Never Traffic statistics: Input bytes : 2981660896 40 bps Output bytes : 114715226202 48 bps Input packets: 34674367 0 pps Output packets: 1333901910 0 pps Input errors: Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Giants: 0, Bucket drops: 0, Policed discards: 0, L3 incompletes: 0, L2 channel errors: 0, L2 mismatch timeouts: 0, HS link CRC errors: 0, HS link FIFO overflows: 0 Output errors: Carrier transitions: 1, Errors: 0, Drops: 0, Aged packets: 0, HS link FIFO underflows: 0, MTU errors: 0 Queue counters: Queued packets Transmitted packets Dropped packets 0 best-effort 1333890630 1333890630 0 1 expedited-fo 0 0 0 2 assured-forw 0 0 0 3 network-cont 11280 11280 0 SONET alarms : None SONET defects : None SONET PHY: Seconds Count State PLL Lock 22 1 OK PHY Light 22 1 OK SONET section: BIP-B1 0 0 SEF 22 182 OK LOS 22 1 OK LOF 22 1 OK ES-S 22 SES-S 22 SEFS-S 22 SONET line: BIP-B2 0 0 REI-L 0 0 RDI-L 0 0 OK AIS-L 22 1 OK BERR-SF 0 0 OK BERR-SD 0 0 OK ES-L 22 SES-L 22 UAS-L 12 ES-LFE 0 SES-LFE 0 UAS-LFE 0 SONET path: BIP-B3 0 0 REI-P 0 0 LOP-P 0 0 OK AIS-P 22 1 OK RDI-P 0 0 OK UNEQ-P 0 0 OK PLM-P 0 0 OK ES-P 22 SES-P 22 UAS-P 12 ES-PFE 0 SES-PFE 0 UAS-PFE 0 Received SONET overhead: F1 : 0x00, J0 : 0x01, K1 : 0x00, K2 : 0x00 S1 : 0x00, C2 : 0xcf, C2(cmp) : 0xcf, F2 : 0x00 Z3 : 0x00, Z4 : 0x00, S1(cmp) : 0x00 Transmitted SONET overhead: F1 : 0x00, J0 : 0x01, K1 : 0x00, K2 : 0x00 S1 : 0x00, C2 : 0xcf, F2 : 0x00, Z3 : 0x00 Z4 : 0x00 Received path trace: tercel so-3/1/0 74 65 72 63 65 6c 20 73 6f 2d 33 2f 31 2f 30 00 tercel so-3/1/0. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0d 0a ................ Transmitted path trace: neon so-4/0/0 6e 65 6f 6e 20 73 6f 2d 34 2f 30 2f 30 00 00 00 neon so-4/0/0... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Router Configuration and File Management
Basic Router Security and Access Control
IPSec
SNMP
Logging
NTP
Router Interfaces
IP Routing
Routing Policy and Firewall Filters
RIP
IS-IS
OSPF
BGP
MPLS
VPNs
IP Multicast