Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show services softwire flows

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show services softwire flows
(<interface interface-name> <service-set service-set-name>|
count <interface interface-name> <service-set service-set-name>|
ds-lite <B4 b4-address> <AFTR aftr-address>|
v6rd <initiator initiator-ip-address><concentrator concentrator-ip-address>)

Description

Display statistics information about the softwire flows.

Note:

Starting with Junos OS Release 14.1R4, the IPv6 prefix length associated with a subscriber’s basic broadband bridging device that is subject to a limited number of sessions (dslite-ipv6-prefix-length attribute) is taken into account while the session count is calculated and displayed in the output of the show services softwire flows command. Until Junos OS Release 14.1R3, only IPv4 flows were counted and IPv6 flows were not considered for the statistics about softwire flows

Options

interface interface-name

(Optional) Display statistics information about the specified interface only.

service-set service-set-name

(Optional) Display statistics information about the specified service set only.

count <interface interface-name> <service-set service-set-name>|

(Optional) Display flow count information only, with optional filtering by interface and service set.

ds-lite <B4 b4-address> <AFTR aftr-address>|

(Optional) Display DS-Lite flow information, with optional filtering by B4 (softwire initiator) and AFTR (softwire concentrator).

v6rd <initiator initiator-ip-address><concentrator concentrator-ip-address>)

(Optional) Display v6rd flow information, with optional filtering by the softwire initiator and softwire concentrator.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show services softwire flows command. Output fields are listed in the approximate order in which they appear.

Table 1: show services softwire flows Output Fields

Field Name

Field Description

Interface

Name of the interface.

Service set

Name of the service set.

Flow

Description of flow, including protocol input and output interface addresses.

State

Flow state. Value is:

  • Forward

Dir

Flow direction. Values are:

  • I—inbound

  • O—outbound

Frm count

Number of frames transferred.

NAT dest

NAT translation of the decapsulated address.

Softwire

For outbound flows, the address of the local softwire initiator (B4 for DS-Lite) is shown first, followed by the address of the softwire concentrator (AFTR for DS-Lite). For inbound flows, the address of the software concentrator is shown first, followed by the address of the softwire initiator.

Sample Output

show services softwire flows

content_copy zoom_out_map
user@host> show services softwire flows
Interface: sp-0/0/0, Service set: dslite-svc-set1
Flow                                               State       Dir       Frm count
TCP      200.200.200.2:80    ->     33.33.33.1:1066  Forward  O         2005418
    NAT dest        33.33.33.1:1066    ->       20.20.1.2:1025    
    Softwire           1001::1         ->         2001::2
TCP          20.20.1.2:1025  ->  200.200.200.2:80    Forward  I         2007168
    NAT source       20.20.1.2:1025    ->      33.33.33.1:1066    
    Softwire           2001::2         ->         1001::1
TCP          20.20.1.2:1025  ->  200.200.200.2:80    Forward  I         2635998
    NAT source       20.20.1.2:1025    ->      33.33.33.1:1065    
    Softwire           2001::3         ->         1001::1
DS-LITE         2001::2      ->        1001::1       Forward  I         2008157
TCP      200.200.200.2:80    ->     33.33.33.1:1065  Forward  O         2637909
    NAT dest        33.33.33.1:1065    ->       20.20.1.2:1025    
    Softwire           1001::1         ->         2001::3
DS-LITE         2001::3      ->        1001::1       Forward  I         2640499

show services softwire flows count

content_copy zoom_out_map
user@host> show services softwire flows count
Interface   Service set                                              Flow count
sp-0/0/0    dslite-svc-set1                                          6

show services softwire flows ds-lite B4

content_copy zoom_out_map
user@host> show services softwire flows ds-lite B4 2001::2 
Interface: sp-0/0/0, Service set: dslite-svc-set1
Flow                                               State       Dir       Frm count
TCP      200.200.200.2:80    ->     33.33.33.1:1066  Forward  O         2884037
    NAT dest        33.33.33.1:1066    ->       20.20.1.2:1025    
    Softwire           1001::1         ->         2001::2
TCP          20.20.1.2:1025  ->  200.200.200.2:80    Forward  I         2885884
    NAT source       20.20.1.2:1025    ->      33.33.33.1:1066    
    Softwire           2001::2         ->         1001::1
DS-LITE         2001::2      ->        1001::1       Forward  I         2886821

show services softwire flows ds-lite AFTR

content_copy zoom_out_map
user@host> show services softwire flows ds-lite AFTR 1001::1 
Interface: sp-0/0/0, Service set: dslite-svc-set1
Flow                                               State       Dir       Frm count
TCP      200.200.200.2:80    ->     33.33.33.1:1066  Forward  O         3359356
    NAT dest        33.33.33.1:1066    ->       20.20.1.2:1025    
    Softwire           1001::1         ->         2001::2
TCP          20.20.1.2:1025  ->  200.200.200.2:80    Forward  I         3361235
    NAT source       20.20.1.2:1025    ->      33.33.33.1:1066    
    Softwire           2001::2         ->         1001::1
TCP          20.20.1.2:1025  ->  200.200.200.2:80    Forward  I         4479810
    NAT source       20.20.1.2:1025    ->      33.33.33.1:1065    
    Softwire           2001::3         ->         1001::1
DS-LITE         2001::2      ->        1001::1       Forward  I         3362168
TCP      200.200.200.2:80    ->     33.33.33.1:1065  Forward  O         4481520
    NAT dest        33.33.33.1:1065    ->       20.20.1.2:1025    
    Softwire           1001::1         ->         2001::3
DS-LITE         2001::3      ->        1001::1       Forward  I         4484094

services softwire flows ds-lite AFTR and B4

content_copy zoom_out_map
user@host> show services softwire flows ds-lite AFTR 1001::1 B4 2001::2
Interface: sp-0/0/0, Service set: dslite-svc-set1
Flow                                               State       Dir       Frm count
TCP      200.200.200.2:80    ->     33.33.33.1:1066  Forward  O         3931026
    NAT dest        33.33.33.1:1066    ->       20.20.1.2:1025    
    Softwire           1001::1         ->         2001::2
TCP          20.20.1.2:1025  ->  200.200.200.2:80    Forward  I         3932792
    NAT source       20.20.1.2:1025    ->      33.33.33.1:1066    
    Softwire           2001::2         ->         1001::1
DS-LITE         2001::2      ->        1001::1       Forward  I         3933782

show services softwires softwire-types map-e

content_copy zoom_out_map
user@host> show services softwires softwire-types map-e mape-tun1 
br-address 2001:db8:ffff::1/128; //Mandatory
rule r1 {
    ipv4-prefix 192.0.2.0/24; //Mandatory
    ipv6-prefix 2001:db8:0000::/40; //Mandatory
    ea-bits-length 16; //Mandatory
    psid-offset 4; //Mandatory
    psid-len 8;
}
version 3;

Release Information

Command introduced in Junos OS Release 10.2.

Support added for Next Gen Services in Junos OS Release 20.2

footer-navigation