16
Spirent TestCenter BGP-LS AppNote Application Note Executive Summary �2 Overview of BGP-LS �2 Using Spirent TestCenter with BGP-LS �2 BGP-LS Basic Test �3 Overview� �3 Objective� �3 Test Setup �4 Configuring the test� �4 Executing the test � � 14 Analyzing the results � � 15 Acronyms � 16

Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

  • Upload
    others

  • View
    15

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

Spirent TestCenterBGP-LS AppNote

Application Note

Executive Summary � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �2

Overview of BGP-LS � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �2

Using Spirent TestCenter with BGP-LS � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �2

BGP-LS Basic Test � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �3

Overview� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �3

Objective� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �3

Test Setup � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �4

Configuring the test� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �4

Executing the test � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 14

Analyzing the results � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 15

Acronyms � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 16

Page 2: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

2 | spirent�com

Application Note

Executive SummarySDN (Software-defined Network), an emerging architecture which decouples the network control-plane and data-plane, provides an ideal solution

for today’s network services and applications which are demanding high-bandwidth, dynamic updates and low costs� SDN logically centralizes the

network intelligence, let the network administrator programmatically configure and optimize network resource dynamically� Then where is BGP in

this big picture exactly? A new protocol extension of BGP, BGP Link State, has been added to SDN architecture to carry network link state and traffic

engineering information, so the programmability promised by SDN is then accomplishable�

This document provides an overview of BGP Link State (BGP-LS) and describes what use cases can be validated and how they can be validated using

Spirent TestCenter�

The target audiences of this document are who need to use Spirent TestCenter to test products – like system test, integration test and product

development engineers�

Overview of BGP-LSBGP is a widely used exterior gateway protocol (EGP) protocol used to exchange routing and reachability information between autonomous areas

(AS)� It has excellent scaling characteristics and provides seemingly unlimited extensibility through the use of TLV options� By extending BGP to

support advertisement of link-state information, the network operator could save capital expenditure by seamlessly integrating SDN capabilities into

existing network infrastructure components�

The extensions for BGP-LS are defined in draft-ietf-idr-ls-distribution� This draft defines a new BGP NLRI that describes node, link and prefix

comprising IGP link-state information; it also defines a new BGP path attribute that characterizes node, link and prefix properties�

Using Spirent TestCenter with BGP-LS

Spirent TestCenter helps in validating BGP-LS by verifying protocol correctness and functional operation of customer equipment� This document

details the setup and execution of a basic BGP-LS functional test using Spirent TestCenter�

Do note that the draft has been in draft status for more than 2 years and the current supported version by Spirent TestCenter is draft-ietf-idr-ls-

distribution-11� If there is any new update, Spirent TestCenter implementation will be updated accordingly�

DUT PCE

Domain 1

BGP-LS

BGP-LS

BGP-LS

STC RR

Domain 2

Domain 0

The above diagram displays a high level view of how BGP-LS works� The BGP RR (Router Reflector) collects the entire network topology information

either through BGP-LS or IGP, then the RR flushes that information to PCE through BGP-LS

Page 3: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

spirent�com | 3

BGP-LS Basic TestOverview

PCE-P BGP-LS

BGP-LS

BGP-LS

PCE-P

PCE-P

PCE-P

West sideEast side

DUT PCE

PE or PCC nodeEast side LSPsWest side LSPsBGP-LSPCE-P

This is a typical user scenario, in which BGP-LS is deployed to carry the network topology information and send to the PCE (SDN controller in this

case)� PCE is then able to setup the database based on the link state distribution� When PCC is requesting a path, the PCE could do the calculation

and provide the answer�

Spirent TestCenter provides a convenient and straightforward way to generate such topology� Spirent TestCenter will be simulating the network side

while the DUT is playing the role of PCE� Besides, Spirent TestCenter allows the user to configure or adjust the attributes, e�g� cost and bandwidth, of

each element in this topology�

Incidentally, it is highly recommended to use the wizard for the topology setup instead of manually configuring every single node/link/prefix�

Objective

The goal of this test is to perform basic functional verification for BGP-LS and integration with PCEP� One Spirent TestCenter test port is required to be

connected to the DUT to perform the test� On this Spirent TestCenter test port, a BGP device will be emulated and a complete network topology can

be simulated on this BGP device� The topology information contained in BGP-LS NLRI can be advertised to DUT or withdrawn from DUT subsequently

and can be verified via the view counters�

Page 4: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

4 | spirent�com

Application Note

Test Setup

One Spirent TestCenter port connects to DUT�

DUT STC

Configuring the test

1� Launch Spirent TestCenter from the Desktop shortcut or from the start program�

2� Add one Spirent TestCenter port and connect it to DUT (PCE)�

3� Add one device and enable BGP on it�

Page 5: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

spirent�com | 5

4� Click on Route Generator to initiate route generator wizard for this device�

5� Select Link-State to enable link-state route generation�

6� Configure the topology�

Take the topology in the diagram for example, Spirent TestCenter simulates all elements except only the router marked “DUT”�

Each cloud represents an area, so there are 3 areas in this topology1� The Blue one in the center is the core network, or the backbone area

(area ID 0), and all the routers in the backbone area are mentioned as core routers� Arguably, there is one and only one backbone area in every

topology�

The two Yellow areas surrounding the backbone area are the none-backbone areas� The number of none-backbone area could be greater than

or equal to 0� When there are multiple none-backbone areas, their area ID start from 1 and are increased by 1 by default�

The routers in the boundary of areas are ABRs� ABRs are definitely core routers, but not vice versa� This is because when the backbone’s

topology is grid, only the edge router could be ABRs�

The Blue routers in the backbone as well as in the none-backbone are headend routers; they are for initializing LSP and traffic bindings�

1 Instead of using “left” and “right”, “east” and “west” are used to describe the location. So everything in the left side is mentioned as “in the East side”; while

everything in the right side is “in the west side”.

Page 6: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

6 | spirent�com

Application Note

1� First select IGP protocols, which will apply to all areas�

2� Number of areas column includes backbone area and none-backbone area, so the minimum value should be 1, that is, there is backbone area

only�

3� Configure the parameters for backbone area� Topology can be full-mesh or grid� When it is grid, Number of rows and Number of columns

should be provided; when it is full-mesh, Core routers should be specified�

Page 7: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

spirent�com | 7

For both cases, Headend routers is available� Please be aware, the way that the headend router links to edge routers varies with the topology� When

it is full mesh, the east side headend routers link to all the east side core routers, and the west side headend routers link to all the west side core

routers� When it is grid, then each headend router only connects to two core router of the same side� For example, for grid topology, the 1st east

headend router links to the 1st and 2nd core edge router; the 2nd east headend router links to the 2nd and 3rd core edge router, and so on� This is

round robin scheduled�

4� Configure the parameters for none-backbone area if there is any�

Number of ABRs defines how many core routers each none-backbone area is linked to; it could be 1 or 2� And here is how the topology would look

like when Number of ABRs is 1:

When Number of ABRs is 2, the topology will be:

Topology of none-backbone area could be grid or tree� When it is grid, the topology is the same as backbone� For tree, several new options are open

to configure as below, and each headend routers connects to all leaves of the tree�

Page 8: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

8 | spirent�com

Application Note

5� Configure BGP-LS parameters�

There are limited options for BGP-LS attributes� Right now there are options for traffic engineering test and segment routing test, for other attributes,

the default values are used�

6� Spirent TestCenter provides a route summary for the generated routes after the wizard completes�

Page 9: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

spirent�com | 9

Test Parameters

Once the link-state routes are generated, the user can customize the routes manually� The LS Node Name provides a hint to locate the node in

the topology�

Spirent TestCenter provides a considerable amount of options for link-state attributes; here are some frequently used properties�

Page 10: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

10 | spirent�com

Application Note

Multi-Topology ID

Multi-Topology ID is available for BGP-LS Node/Link/Prefix; it is excluded by default, so need to manually enable it first� Here is the example of Node;

it is similar for Link and Prefix�

Once Multi-Topology Identifier is checked, the Multi-Topology Identifier Editor becomes available�

Page 11: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

spirent�com | 11

Node Flag Bits

Node Flag Bits is disabled by default, to make it available, select it in the BGP-LS Node Attributes box� For OSPF, Node Flag Bits (OSPF) to use; for

IS-IS, then it’s Node Flag Bits (IS-IS)�

Shared Risk Link Group

Shared Risk Link Group is not applicable by default� Please be noted that this attribute is an IS-IS link attribute, if it is configured for OSPF, then

warning will arise when apply�

Segment Routing

Segment Routing is configurable from wizard, but if there is any modification or adjustment required, it can be done from here:

Page 12: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

12 | spirent�com

Application Note

Traffic Engineering

Similar to Segment Routing, Traffic Engineering is configurable from wizard as well as plain windows�

Custom Attributes

If all above attributes are insufficient for the test, Spirent TestCenter provides Custom Attribute as a supplement� Custom Attribute is flexible and

intuitive; it works for node, link and prefix�

The user is allowed to created multiple custom attributes and fill in the payload arbitrarily by Value column; the user could choose whether to use the

automatically calculated length, or specify the length by Length column (usually for negative test)� Attribute Type Selector combined with Attribute

Type is to set the type of the attribute: it could be Custom then need to assign a value in the Attribute Type column; or it could be a well-known

attribute, e�g� local preference� The difference is that for the latter, the Value column varies as several attributes have specific format, for example:

Page 13: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

spirent�com | 13

If the custom attribute is the same type as one of the existing attribute, the user can decide whether to replace the existing attribute with the custom

attribute by setting the Override Existing Attribute checkbox� Take Local Preference for example; it is set to 10 in the normal method:

Then a customized local preference attribute is created and set the value to 0x12:

If the Override Existing Attribute is selected, the value 0x12 will be used for local preference in the packet; however if the Override Existing Attribute

is unselected, then two local preference attributes will be carried in the packet�

Please be aware that all the custom attributes are appended before all the normal attributes and is in ascending order based on the attribute type�

Page 14: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

14 | spirent�com

Application Note

Executing the test

Once the configuration is set up and BGP session is established, the user can choose what to advertise for link-state routes, whether all of them or just

node or link or prefix� Right click the device and select the corresponding command to perform� Besides, these commands are also available in the

command sequencer�

Page 15: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

spirent�com | 15

Analyzing the results

Spirent TestCenter provided several counters for link-state�

Page 16: Spirent TestCenter · 2016. 5. 13. · spirent com | 3 BGP-LS Basic Test Overview PCE-P BGP-LS BGP-LS BGP-LS PCE-P PCE-P PCE-P East side West side DUT PCE PE or PCC node East side

© 2016 Spirent. All Rights Reserved.

All of the company names and/or brand names and/or product names referred to in this document, in particular, the name “Spirent”

and its logo device, are either registered trademarks or trademarks of Spirent plc and its subsidiaries, pending registration in

accordance with relevant national laws. All other registered trademarks or trademarks are the property of their respective owners.

The information contained in this document is subject to change without notice and does not represent a commitment on the part

of Spirent. The information in this document is believed to be accurate and reliable; however, Spirent assumes no responsibility or

liability for any errors or inaccuracies that may appear in the document. Rev A | 05/16

Spirent TestCenterBGP-LS AppNote

spirent.com

AMERICAS 1-800-SPIRENT +1-800-774-7368 | [email protected]

EUROPE AND THE MIDDLE EAST +44 (0) 1293 767979 | [email protected]

ASIA AND THE PACIFIC +86-10-8518-2539 | [email protected]

Application Note

Acronyms

DUT Device under Testing

SDN Software-defined Network

BGP Border Gateway Protocol

BGP-LS BGP Link State

AS Autonomous Areas

PCE Path Computation Element

PCC Path Commutation Client

ABR Area Border Router

TLV Type, Length and Value

LSP Label Switched Path