Showing posts with label EXOS. Show all posts
Showing posts with label EXOS. Show all posts

Tuesday, September 19, 2017

How Qos Work for untagged traffic in EXOS based switch.


In EXOS, qos based on dot1p value have priority than DSCP value. However, in case of untagged traffic, it does not have tag, so does not have dot1p value.


The QOS logic for those traffic is different per EXOS version.


[Diagram]


Before EXOS version 16.1, it use DSCP value for egress QP.


Slot-1 Stack.3 # show diffserv examination
CodePoint-> QOSProfile mapping:
    00->QP1 01->QP1 02->QP1 03->QP1 04->QP1 05->QP1 06->QP1 07->QP1
    08*>QP1 09*>QP1 10*>QP1 11*>QP1 12*>QP1 13*>QP1 14*>QP1 15*>QP1
    16*>QP1 17*>QP1 18*>QP1 19*>QP1 20*>QP1 21*>QP1 22*>QP1 23*>QP1
    24*>QP1 25*>QP1 26*>QP1 27*>QP1 28*>QP1 29*>QP1 30*>QP1 31*>QP1
    32*>QP1 33*>QP1 34*>QP1 35*>QP1 36*>QP1 37*>QP1 38*>QP1 39*>QP1
    40*>QP1 41*>QP1 42*>QP1 43*>QP1 44*>QP1 45*>QP1 46*>QP1 47*>QP1
    48*>QP1 49*>QP1 50*>QP1 51*>QP1 52*>QP1 53*>QP1 54*>QP1 55*>QP1
    56*>QP5 57->QP8 58->QP8 59->QP8 60->QP8 61->QP8 62->QP8 63->QP8
Slot-1 Stack.5 # show ports 1:1 qosmonitor no-refresh
Port Qos Monitor
Port   QP1      QP2   QP3     QP4   QP5    QP6   QP7   QP8
   Pkt      Pkt   Pkt     Pkt   Pkt    Pkt   Pkt   Pkt
  Xmts     Xmts Xmts    Xmts Xmts   Xmts Xmts Xmts
===========================================================================
1:1 0        0     0       0  88325086   0      0    50


After EXOS version 16.1, it use default dot1p value configured on the port by below commands.


configure ports <ports> dot1p <dot1p_priority>


As a result, traffic with high DSCP ( for example, DSCP 56 also use lowest QP -QP1 )


* Slot-1 Stack.7 # show diffserv examination
CodePoint-> QOSProfile mapping:
       00->QP1 01->QP1 02->QP1 03->QP1 04->QP1 05->QP1 06->QP1 07->QP1
       08*>QP1 09*>QP1 10*>QP1 11*>QP1 12*>QP1 13*>QP1 14*>QP1 15*>QP1
       16*>QP1 17*>QP1 18*>QP1 19*>QP1 20*>QP1 21*>QP1 22*>QP1 23*>QP1
       24*>QP1 25*>QP1 26*>QP1 27*>QP1 28*>QP1 29*>QP1 30*>QP1 31*>QP1
       32*>QP1 33*>QP1 34*>QP1 35*>QP1 36*>QP1 37*>QP1 38*>QP1 39*>QP1
       40*>QP1 41*>QP1 42*>QP1 43*>QP1 44*>QP1 45*>QP1 46*>QP1 47*>QP1
       48*>QP1 49*>QP1 50*>QP1 51*>QP1 52*>QP1 53*>QP1 54*>QP1 55*>QP1
       56->QP8 57->QP8 58->QP8 59->QP8 60->QP8 61->QP8 62->QP8 63->QP8
* Slot-1 Stack.11 # show ports 1:1 qosmonitor no-refresh
Port Qos Monitor
Port           QP1        QP2        QP3        QP4     QP5        QP6        QP7     QP8
              Pkt        Pkt        Pkt        Pkt     Pkt        Pkt     Pkt     Pkt
             Xmts       Xmts       Xmts       Xmts    Xmts       Xmts       Xmts    Xmts
==========================================================================================
1:1     2734132554       0          0        0        0       0          0    76048

Monday, June 26, 2017

Debugging Local Multicast on EXOS

Debugging Multicast Issues

Local Multicast address packets are handled differently when compared to data packets. Multicast forwarding/flooding mechanism is based on following three configurations;


1. Ingress vlan is L3 Vlan/L2 Vlan.
2. Snooping enabled/disabled.
3. Local Multicast forwarding configuration slow-path/fast path.
Forwarding behavior for Local multicast packets as well as data packets is as follows.


Configuration
224.0.0.x
IP address not configured(L2 vlan)
Fast-path flood
IP address configured(L3 vlan)
Slow-path flood


Configuration
Multicast stream
IGMP snooping enabled
Fast-path forward
IGMP snooping disabled
Fast-path flood

Debugging Issues with Local Multicast Packets(224.0.0.x) forwarding

L3 Vlan - vlan with IP address assigned.

All packets are flooded via software(slow-path) alone. There will be no cache entry in the hardware/HAL for these streams. Cache entry will be present only in Kernel and software. The following things are to be checked.
1. show mcast cache . In this output, check whether the proper source IP, group IP, egress ports, egress vlan of the stream is present.
If the entry is fine in software, then check whether the corresponding entry is present in Kernel.
2. !cat proc/net/snoop_mr_cache . In this outputs, check whether (S,G) entry is there and corresponding ingress port/egress ports are programmed properly.
In some rare cases, (S,G) information is present but not the ports details. Then this cache is just an unresolved cache and will not be used for packet forwarding.
If the (S,G) entry is not present in both software and kernel, check whether the packets are hitting the CPU using the below command.
To abort the capture, use (Ctrl+C). In case the packets are not at all hitting the CPU, then check whether the filters are installed in hardware properly.
check whether appropriate filter is installed in the ingress port. To proceed finding the hardware acl, follow the steps below.
  1. Open another telnet session, lets say session
  2. Now get into the BCM shell in the session
  3. From the session 1, execute the below command.
6. fp show entry <eid> , whereas <eid> is derived from above step(step 5 command).
If the hardware ACL is not installed in that port, this could be issue with ACL or the configuration part like igmp filter configuration, snooping configuration etc. Check “show configuration mcmgr” output.

Wednesday, May 17, 2017

Checking routing information on EXOS ( software level - Hal level - BCM level )

Routing information learning on the software first by using different routing protocol and route manager.


[ software information ]
* core1.3 # sh iproute
Ori  Destination        Gateway         Mtr  Flags         VLAN       Duration
#d   1.1.1.0/30         1.1.1.1         1    U------um--f- isc        1d:21h:34m:25s
#oa  192.168.0.1/32     192.168.1.1     14   UG-D---um--f- bb1        1d:17h:28m:19s
#d   192.168.1.0/24     192.168.1.2     1    U------um--f- bb1        1d:17h:34m:16s
#oa  192.168.2.0/24     192.168.1.1     8    UG-D---um--f- bb1        1d:17h:28m:19s
#d   192.168.3.0/24     192.168.3.1     1    U------um--f- bb3        1d:17h:26m:58s
#d   192.168.100.0/24   192.168.100.1   1    U------um--f- data       1d:21h:28m:29s


This information will be transformed to the type of HAL information, and will programmed on BCM packet forwarding chip


[ HAL  Layer ]
* core1.6 # debug hal show ipv4Fib
                           HAL IPv4 FIB:
VrId Prefix/Mask        Gateway         GwVr  Vlan    MAC               Port     Or Ref Ins Flags Bucket
=======================================================================================================
  2 192.168.000.001/32 192.168.001.001    2 1000013 00:04:96:52:21:88 00010001 25   1   1 F---  9999
  2 001.001.001.000/30 001.001.001.001    2 1000008 00:00:00:00:00:00 00000000  2   1   1 F-D-  9999
  2 192.168.001.000/24 192.168.001.002    2 1000013 00:00:00:00:00:00 00000000  2   1   1 F-D-  9999
  2 192.168.002.000/24 192.168.001.001    2 1000013 00:04:96:52:21:88 00010001 25   1   1 F---  9999
  2 192.168.003.000/24 192.168.003.001    2 1000015 00:00:00:00:00:00 00000000  2   1   1 F-D-  9999
  2 192.168.100.000/24 192.168.100.001    2 1000011 00:00:00:00:00:00 00000000  2   1   1 F-D-  9999


[BCM Layer]
BCM.0> l3 defip show
Unit 0, Total Number of DEFIP entries: 12288
Free DEFIP entries: 12277
Max number of ECMP paths 4
#     VRF     Net addr             Next Hop Mac        INTF MODID PORT HIT
1537   2      192.168.0.1/32       00:04:96:52:21:88      3    0     2   n                        (NH Table index = 6)
1537   2      192.168.100.2/32     00:04:96:51:77:cc      2    0     4   y                        (NH Table index = 4)
1538   2      192.168.1.1/32       00:04:96:52:21:88      3    0     2   y                        (NH Table index = 6)
1538   2      192.168.100.100/32   00:04:96:6c:ee:08      2   T      0   y                        (NH Table index = 3)
1539   2      192.168.100.4/32     00:04:96:6c:ee:07      2   T      0   y                        (NH Table index = 5)
1539   2      192.168.100.3/32     00:04:96:83:90:a1      2   T      0   y                        (NH Table index = 7)
3073   2      1.1.1.0/30           00:00:00:00:00:00   4095    0     0   n      (LOCAL ROUTE)     (NH Table index = 1)
4609   2      192.168.100.0/24     00:00:00:00:00:00   4095    0     0   y      (LOCAL ROUTE)     (NH Table index = 1)
4609   2      192.168.1.0/24       00:00:00:00:00:00   4095    0     0   y      (LOCAL ROUTE)     (NH Table index = 1)
4610   2      192.168.2.0/24       00:04:96:52:21:88      3    0     2   n                        (NH Table index = 6)
4610   2      192.168.3.0/24       00:00:00:00:00:00   4095    0     0   n      (LOCAL ROUTE)     (NH Table index = 1)



Tuesday, May 16, 2017

MLAG - PIM support

MLAG  - PIM Support


ExtremeXOS allows configuring PIM on both MLAG peers. PIM adjacencies between each MLAG vlan are established across the ISC link.
This synchronization is required because multicast traffic only sent to one of lag port as below.




• The checkpoint PIM state between MLAG peers. This should include all MLAG egresses.
• You can verify that PIM functionality for MLAG is present by issuing the following show command:
show pim cache {{detail} | {state-refresh} {mlag-peer-info} {group_addr}{source_addr}}
• Additionally, the existing show pim cache command displays ingress VLAN information for all MLAG peers.


The output of the command is shown below:


* core1.67 # show pim cache
Index  Dest Group      Source             InVlan   Origin
[0001] 239.1.1.100     192.168.100.101 (S) data     Dense   Not Pruned


Number of multicast cache = 1

* core2.38 # show pim cache
Index  Dest Group      Source             InVlan   Origin
[0001] 239.1.1.100     192.168.100.101 (S) data     Dense   Not Pruned


Number of multicast cache = 1

* dist1.18 # show pim cache
Index  Dest Group      Source             InVlan   Origin
[0001] 239.1.1.100     192.168.100.101 (S) data     Dense   Not Pruned


Number of multicast cache = 1

* dist2.25 # show pim cache
Index  Dest Group      Source             InVlan   Origin
[0001] 239.1.1.100     192.168.100.101 (S) data     Dense   Not Pruned


Number of multicast cache = 1

Monday, May 15, 2017

MLAG - role of ISC link


The operation of MLAG feature requires two ExtremeXOS switches interconnected by an Inter-Switch connection (ISC).

The ISC is a normal, directly connected, Ethernet connection and it is recommended that you  are using the link that is highly reliable, and has high bandwidth. Logically aggregate ports on each of the two switches by assigning MLAG identifiers (MLAG-ID). Ports with the same MLAG-ID are combined to form a single logical network connection.

Each MLAG can be comprised of a single link or a LAG on each switch. When an MLAG port is a LAG, the MLAG port state remains up until all ports in the LAG go down.

As long as at least one port in the LAG remains active, the MLAG port state remains active. When an MLAG port (a single port or all ports in a LAG) fails, any associated MAC FDB entries are moved to the ISC, forcing traffic destined to the MLAG to be handled by the MLAG peer switch. Additionally, the MLAG peer switch is notified of the failure and changes its ISC blocking filter to allow transmission to the MLAG peer port. In order to reduce failure convergence time, you can configure MLAG to use ACLs for redirecting traffic via the "fast" convergence-control option.
Each of the two switches maintains the MLAG state for each of the MLAG ports and communicates with each other to learn the MLAG states, MAC FDB entries, and IP multicast entries of the peer MLAG switch.

ISC Blocking Filters
The ISC blocking filters are used to prevent looping and optimize bandwidth utilization. When at least one MLAG peer port is active, the upper layer software initiates a block of traffic that ingresses the ISC port and needs to be forwarded to the local MLAG ports. This is considered to be the steady state condition. In normal steady state operation most network traffic does not traverse the ISC.
All unicast packets destined to MLAG ports are sent to the local MLAG port only. However, flood and multicast traffic will traverse the ISC but will be dropped from MLAG peer port transmission by the ISC blocking filter mechanism. The ISC blocking filter matches all Layer 2 traffic received on the ISC and blocks transmission to all MLAG ports that have MLAG peer ports in the active state.
When there are no active MLAG peer ports, the upper layer software initiates an unblocking of traffic that ingresses the ISC port and needs to be forwarded to the local MLAG ports thus providing redundancy. This is considered to be the failed state.

Inter-Switch Communication
Keep-alive Protocol
MLAG peers monitor the health of the ISC using a keep-alive protocol that periodically sends health check messages. The frequency of these health-check hellos is configurable. When the MLAG switch stops receiving health check messages from the peer, it could be because of the following reasons:
• Failure of the ISC link when the remote peer is still active.
• The remote peer went down.

[ example of keepalive message ]

Host: 01:03->15:36:36.875440 IP 1.1.1.6.53095 > 1.1.1.5.4000: UDP, length 32
  Tx: 01:03->15:36:37.593004 IP 1.1.1.5.35239 > 1.1.1.6.4000: UDP, length 32
Host: 01:03->15:36:37.855436 IP 1.1.1.6.53095 > 1.1.1.5.4000: UDP, length 32
  Tx: 01:03->15:36:38.572920 IP 1.1.1.5.35239 > 1.1.1.6.4000: UDP, length 32
Host: 01:03->15:36:38.835491 IP 1.1.1.6.53095 > 1.1.1.5.4000: UDP, length 32
  Tx: 01:03->15:36:39.552928 IP 1.1.1.5.35239 > 1.1.1.6.4000: UDP, length 32
Host: 01:03->15:36:39.815430 IP 1.1.1.6.53095 > 1.1.1.5.4000: UDP, length 32
  Tx: 01:03->15:36:40.532843 IP 1.1.1.5.35239 > 1.1.1.6.4000: UDP, length 32
Host: 01:03->15:36:40.795416 IP 1.1.1.6.53095 > 1.1.1.5.4000: UDP, length 32
  Tx: 01:03->15:36:41.513039 IP 1.1.1.5.35239 > 1.1.1.6.4000: UDP, length 32
Host: 01:03->15:36:41.775500 IP 1.1.1.6.53095 > 1.1.1.5.4000: UDP, length 32
  Tx: 01:03->15:36:42.492826 IP 1.1.1.5.35239 > 1.1.1.6.4000: UDP, length 32
Host: 01:03->15:36:42.755412 IP 1.1.1.6.53095 > 1.1.1.5.4000: UDP, length 32
  Tx: 01:03->15:36:43.472909 IP 1.1.1.5.35239 > 1.1.1.6.4000: UDP, length 32
Host: 01:03->15:36:43.735470 IP 1.1.1.6.53095 > 1.1.1.5.4000: UDP, length 32
  Tx: 01:03->15:36:44.452933 IP 1.1.1.5.35239 > 1.1.1.6.4000: UDP, length 32


If the ISC link alone goes down when the remote peer is alive, both the MLAG peers forward the southbound traffic, resulting in duplication of traffic. However, this does not result in traffic loops. This is because the remote node load shares to both the MLAG peers and does not forward the traffic received on one of the load shared member ports to other member ports of the same load shared group.

Starting in ExtremeXOS 15.5, health check messages can also be exchanged on an alternate path by separate configuration – typically the “Mgmt” VLAN. If the peer is alive when the ISC link alone goes down, one of the MLAG peers disables its MLAG ports to prevent duplicate south-bound traffic to the remote node. To reduce the amount of traffic on the alternate path, health check messages are initiated on the alternate path only when the ISC link goes down. When the ISC link is up, no health check messages are exchanged on the alternate path.
When the MLAG switch misses 3 consecutive health check messages from the peer, it declares that the MLAG peer is not reachable on the ISC link. It then starts sending out health check messages on the alternate path to check if the peer is alive. When the first health check message is received from the MLAG peer on the alternate path, it means that the peer is alive. In this scenario, one of the MLAG peers disables its MLAG ports to prevent duplication of south-bound traffic to the remote node.

When the ISC link comes up and the switch starts receiving health check messages on the ISC control VLAN, the ports that were disabled earlier have to be re-enabled. This action is not performed immediately on the receipt of the first health check message on the ISC control VLAN. Instead the switch waits for 2 seconds before enabling the previously disabled ports. This is done to prevent frequent enabling and disabling of MLAG ports due to a faulty ISC link up event.

MLAG Status Checkpointing
Each switch sends its MLAG peer information about the configuration and status of MLAGs that are currently configured over the ISC link.
This information is checkpointed over a TCP connection that is established between the MLAG peers after the keep-alive protocol has been bootstrapped.

Authentication for Checkpoint Messages
The checkpoint messages exchanged between the MLAG peers over the TCP connection are sent in plain text and can be subjected to spoofing. Starting from EXOS 15.5 a provision is provided as part of this feature to secure the checkpoint connection against spoofing.

A key for authentication must be configured on both the MLAG peer switches. This key will be used in calculating the authentication digest for the TCP messages. TCP_MD5SIG socket option will be used for authentication and so only MD5 authentication is supported. The configured key will be used in setting up TCP_MD5SIG option on the checkpoint socket. The same key must be configured on both the MLAG peers. The checkpoint connection will not be established if different keys are configured on the MLAG peer switches.