Bug 851

Summary: PointToPointNetDevice MPLS support
Product: ns-3 Reporter: Andrey Churin <aachurin>
Component: point-to-pointAssignee: ns-bugs <ns-bugs>
Status: NEW ---    
Severity: normal CC: aachurin, tomh
Priority: P5    
Version: ns-3.7   
Hardware: All   
OS: All   

Description Andrey Churin 2010-03-28 15:03:18 EDT
PointToPointNetDevice not supports MPLS

  uint16_t
PointToPointNetDevice::PppToEther(uint16_t proto)
{
  switch(proto)
    {
      case 0x0021: return 0x0800; //IPv4
      case 0x0057: return 0x86DD; //IPv6
      case 0x0281: return 0x8847; //+ MPLS unicast 
      case 0x0283: return 0x8848; //+ MPLS multicast 
      default: NS_ASSERT_MSG(false, "PPP Protocol number not defined!");
    }
  return 0;
}

  uint16_t
PointToPointNetDevice::EtherToPpp(uint16_t proto)
{
  switch(proto)
    {
      case 0x0800: return 0x0021; //IPv4
      case 0x86DD: return 0x0057; //IPv6
      case 0x8847: return 0x0281; //+ MPLS unicast
      case 0x8848: return 0x0283; //+ MPLS multicast 
      default: NS_ASSERT_MSG(false, "PPP Protocol number not defined!");
    }
  return 0;
}
Comment 1 Tom Henderson 2010-03-28 23:59:33 EDT
Is there MPLS support in development for this?
Comment 2 Andrey Churin 2010-03-29 06:07:14 EDT
(In reply to comment #1)
> Is there MPLS support in development for this?

Yes, in progress. http://code.google.com/p/ns3-mpls/