running multiple xorp instances in one box

11

Click here to load reader

Upload: jiaqing-du

Post on 10-May-2015

484 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Running Multiple XORP Instances In One Box

Running Multiple XORP Instances In One Box

Jiaqing Du

Page 2: Running Multiple XORP Instances In One Box

Outline

• Introduction• XORP Overview• Running XORP• Configuring XORP• Experiment• Conclusion

Page 3: Running Multiple XORP Instances In One Box

Introduction

• XORP– eXtensible Open Router Platform– Why reinvent the wheel?

• Vision of authors– Why the Internet only just works

• Vision of MX– Control plane of Internet-in-a-lab

• Vision of others– Intel Research– Vyatta Inc.

Page 4: Running Multiple XORP Instances In One Box

XORP Overview

Control Plane

Data Plane

Page 5: Running Multiple XORP Instances In One Box

Running XORP (1/2)

• Virtual network interface– VLAN on Linux (802.1q kernel module)– Supported by XORP– Almost the same as physical interfaces

• Port conflicts– Finder: 127.0.0.1:19999– OSPF: raw socket– BGP: 179

Page 6: Running Multiple XORP Instances In One Box

Running XORP (2/2)

• OSPF traffic– Multicast packets– TTL = 1, dst = 224.0.0.5– setsockopt(), IP_MULTICAST_LOOP

OSPFv2XORP0

OSPFv2XORP1

Physical NIC

Virtual NIC

Page 7: Running Multiple XORP Instances In One Box

Configuring XORP

• Input– xml file describes network topology

• Intermediate– Ruby objects– AS, router, interface, link

• Output– XORP configuration files– startup and shutdown shell scripts

Page 8: Running Multiple XORP Instances In One Box

Experiment (1/2)

• Topology from VINI– 11 OSPF routers in a AS

Page 9: Running Multiple XORP Instances In One Box

• Another topology– Multiple ASes– Routes redistribution

Experiment (2/2)

AS0

AS1

AS2

Page 10: Running Multiple XORP Instances In One Box

Conclusion

• Deliverable– Slightly patched XORP-1.5– Configuration scripts

• Learned– How a router works– How routing protocols really work

Page 11: Running Multiple XORP Instances In One Box

Questions?