Re: [mpls] draft-fang-mpls-label-forwarding-no-swap - how much does it really save?

Shahram Davari <> Mon, 20 July 2015 18:07 UTC

Return-Path: <>
Received: from localhost ( []) by (Postfix) with ESMTP id 2B7911B2A5C for <>; Mon, 20 Jul 2015 11:07:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id KflhcsWz1OJi for <>; Mon, 20 Jul 2015 11:07:15 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 088231B2A57 for <>; Mon, 20 Jul 2015 11:07:14 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="5.15,509,1432623600"; d="scan'208";a="70271290"
Received: from (HELO ([]) by with ESMTP; 20 Jul 2015 11:25:25 -0700
Received: from ( by ( with Microsoft SMTP Server (TLS) id; Mon, 20 Jul 2015 11:07:14 -0700
Received: from ([fe80::bc15:c1e1:c29a:36f7]) by ([::1]) with mapi id 14.03.0235.001; Mon, 20 Jul 2015 11:07:13 -0700
From: Shahram Davari <>
To: Eric C Rosen <>, "" <>, "" <>
Thread-Topic: [mpls] draft-fang-mpls-label-forwarding-no-swap - how much does it really save?
Thread-Index: AQHQwwR9OwfTAAS3/0O9L44IGnUJ+p3kitkggACE/YD//5XgUA==
Date: Mon, 20 Jul 2015 18:07:13 +0000
Message-ID: <>
References: <> <> <>
In-Reply-To: <>
Accept-Language: en-US
Content-Language: en-US
x-originating-ip: []
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <>
Subject: Re: [mpls] draft-fang-mpls-label-forwarding-no-swap - how much does it really save?
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Multi-Protocol Label Switching WG <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Mon, 20 Jul 2015 18:07:16 -0000

Hi Eric,

The new swapped labels (The outgoing  label that replaces the incoming label) need to be stored in a table. Using this draft reduces the number of swapped labels that needs to be store, regardless of  implementation. Don't you agree?


-----Original Message-----
From: Eric C Rosen [] 
Sent: Monday, July 20, 2015 10:20 AM
To: Shahram Davari;;
Subject: Re: [mpls] draft-fang-mpls-label-forwarding-no-swap - how much does it really save?

On 7/20/2015 12:27 PM, Shahram Davari wrote:
> This draft actually saves a lot of memory as it requires only very
> little MPLS entry table and associated processing. There are only a
> few Ethernet MAC headers used in MPLS forwarding, typically one MAC
> per port, but there can be thousands Of swapped labels. So it is not
> a matter of 14 bytes vs 18 bytes.

This seems like purely a local implementation matter.  You still have to 
look up the label, don't you?  If you want to optimize for the case 
where the top label doesn't actually change its value, just use a 
14-byte rewrite string instead of an 18-byte string for those labels, 
and allow multiple label lookups to result in a pointer to the same 
14-byte rewrite string.

I don't really see the point of the draft, as this optimization does not 
require any architecture changes or any protocol changes.