0% found this document useful (0 votes)
115 views

How To Set DiffServ Over MPLS Test-Bed On Linux Routers - MPLS Tutorial

The topology of the test-network is as follows: make a dona ion o ppo he ie Pa L gi Create new account Request new password na iga ion all the links are 100Mbps links, but the bandwidth has been throttled to 60Mbps between B-C and E-F, 20Mbps between C-D and 40Mbps between C-E and E-D. RSVP-TE daemon was compiled and configured on all the machines

Uploaded by

maxymony
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views

How To Set DiffServ Over MPLS Test-Bed On Linux Routers - MPLS Tutorial

The topology of the test-network is as follows: make a dona ion o ppo he ie Pa L gi Create new account Request new password na iga ion all the links are 100Mbps links, but the bandwidth has been throttled to 60Mbps between B-C and E-F, 20Mbps between C-D and 40Mbps between C-E and E-D. RSVP-TE daemon was compiled and configured on all the machines

Uploaded by

maxymony
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

11/1/11

How to Set DiffServ over MPLS Test-Bed on Linux Routers? MPLS Tutorial
Home Programming Tutorials Ebizon Ebizon Blogs Objective C Tutorial for Beginners

mpls tutorial
Home MPLS Tutorial

how to set diffserv over mpls test-bed on linux routers?


8.1 network topology
The topology of the test-network is as follows:

make a dona ion o ppo he ie

e login
U e name: *

Pa

o d: *

L gi
Create new account Request new password

na iga ion
Home India Hotel Site Technology Blogs Programming Q/A, Tutorials

ecen blog po
Jquery HTML() Learning PHP Language Hashes in Ruby, Perl and Java more

Fig. 8.1 Network Topology This topology is primarily chosen since it is the simplest topology possible with which MPLS local path protection mechanism can be demonstrated and its efficiency compared. All the machines used are Intel machines with RedHat-9 as the Operating System. All the links are 100Mbps links, but the bandwidth has been throttled to 60Mbps between B-C and E-F, 20Mbps between C-D and 40Mbps between C-E and E-D. The throttling of bandwidth is used to give the network a more realistic look, and hence make the DiffServ provisioning more realistic.

8.2 configuring the network


All the five machines within the DiffServ over MPLS domain were configured as follows: 1) IPtables utility was installed. 2) Linux kernel-2.4.18 was patched with MPLS and DiffServ patch and compiled from scratch. Also, the kernel was patched with Hierarchical Token Bucket (HTB) queuing discipline (Qdisc) since it is only supported on kernel versions greater than equal to 2.4.20. 3) Then the IProute2 package was installed. 4) Following this, RSVP-TE daemon [19] was compiled and configured on all the machines. (Note: Although the compilation and configuration procedure has been specified at http://dsmpls.atlantis.ugent.be/files/installation_rsvpd-0.70-rc2.txt, it is recommended that the procedure specified in Appendix A be followed, since quite a few changes had to be made to make the things work, especially if HTB support is to be compiled in.) 5) The SNMP software [20] was installed on each machine. The configuration file snmpd.conf was edited in each case and proper IP addresses with community names were added. (NOTE: It is important to include perl module support while configuring the net-SNMP software. These perl modules are essential for the mib2c tool which is of significant importance while trying to extend the net-SNMP agents support for MIBs (which can either be standard MIBs, not supported by the software or non-standard MIBs which have been written for experimental purpose.)

In addition to all this, GateDs OSPF [21,22] routing daemon was installed on all 7 machines. The configuration files for the OSPF can be found in Appendix B. For the sake of simplicity, all the machines have been configured to be on the backbone area.

For the purpose of synchronizing the clocks of the sender and the receiver for enabling accurate delay and jitter measurements, Network Time Protocol (NTP) has been used. The configuration files for NTP [23] can be

mplstutorial.com/how-set-diffserv-over-mpls-test-bed-linux-routers

1/3

11/1/11
found in Appendix C.

How to Set DiffServ over MPLS Test-Bed on Linux Routers? MPLS Tutorial

For the purpose of network management, ingress B is also configured as the network operation centre using a small C program. It is to be noted that the scope of the custom MPLS-MIB is very limited in nature since it has only been written for the retrieval of the following scalar objects: mplsInBytes, mplsOutBytes, mplsInPackets, mplsOutPackets. The details of the MIB will be discussed in the next few sections.

8.3 diffserv over mpls: the internals


The following implementation specific information has either been directly gleaned from the source code or taken from the DS-MPLS mailing archives [19].

1) For E-LSp operation, static EXP-to-PHB(DSCP) mapping is used and is as follows:

Table 81 EXP-to-PHB Map


EXP 0 1 2 3 4 5 6 7 PHB/DSCP BE/0 EF/0x2E AF11/0xA AF12/0xC AF21/0x12 AF22/0x14 AF31/0x1A AF32/0x1C

2) EXP-to-TC map is used for providing the PHB within the network core nodes where only EXP bits will be read. The importance of this mapping will be clear when the linux filters and Qdiscs are discussed. In short, in the ingress the DSCP is mapped to the EXP and the EXP is mapped to the DSCP at the egress, while at every intermediate node the EXP is used to determine the TC index which determines the scheduling discipline to be applied to the packet (this will again be discussed in the section on Linux filters and Qdiscs).

Table 82 EXP-to-tc_inde Map


EXP 0 1 2 3 4 5 6 7 TC Inde 0 0xB8 0x28 0x30 0x48 0x50 0x68 0x70

It can be observed that the TC index has been set equal to the ToS value for the respective BAs.

3) For L-LSP operation, the following PHB-IDs [RFC3140] for PSCs has been defined:

Table 8;3 PSC-to-PHBID Map


PSC BE AF1x AF2x AF3x EF PHB-ID 0 0x2802 0x4802 0x6802 0xB800

The RSVP-TE DiffServ object for L-LSP carries PSC field which carries the PHB-ID, which is a 16 bit number. For standard PHBs, the first six bits is filled in by DSCP and the rest is filled in by zeros.

Results in Lab with DiffServ over MPLS How to implement filter on Linux machine using TC scripts for MPLS? up Results in Lab with DiffServ over MPLS

mplstutorial.com/how-set-diffserv-over-mpls-test-bed-linux-routers

2/3

11/1/11
ing TC c ip Login o egi e o po

How to Set DiffServ over MPLS Test-Bed on Linux Routers? MPLS Tutorial
fo MPLS? commen

mplstutorial.com/how-set-diffserv-over-mpls-test-bed-linux-routers

3/3

You might also like