NS3-dev and MPLS

395 views
Skip to first unread message

netwo...@gmail.com

unread,
Jan 17, 2017, 12:58:12 AM1/17/17
to ns-3-users
hello fellow developers,

I got a new assignment to work on MPLS. (not gonna talk about whats the assignment)
i went to source folder in ns-3,26 and found nothing containing MPLS or similar to that.
then i got new about ns3-dev in which MPLS patch was/is available. 

so i installed the ns3-dev by these line:

hg clone http://code.nsnam.org/ns-3-dev
cd ns-3-allinone && ./download.py

till now everything is fine. then i found link to install MPLS Patch or file to ns3-dev
python mpls.py install

on the 1st line i got an error
File "mpls.py", line 196, in <module>
    run()
  File "mpls.py", line 186, in run
    install(*argv[2:])
  File "mpls.py", line 93, in install
    if load_files({'[local_path]': local_path}) is not None:
  File "mpls.py", line 145, in load_files
    hg.clone(u, {}, source=remote_path, dest=local_path)
  File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 268, in clone
    srcpeer = peer(ui, peeropts, source)
  File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 122, in peer
    return _peerorrepo(rui, path, create).peer()
  File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 102, in _peerorrepo
    obj = _peerlookup(path).instance(ui, path, create)
  File "/usr/lib/python2.7/dist-packages/mercurial/httppeer.py", line 238, in instance
    inst._fetchcaps()
  File "/usr/lib/python2.7/dist-packages/mercurial/httppeer.py", line 57, in _fetchcaps
    self.caps = set(self._call('capabilities').split())
  File "/usr/lib/python2.7/dist-packages/mercurial/httppeer.py", line 171, in _call
    fp = self._callstream(cmd, **args)
  File "/usr/lib/python2.7/dist-packages/mercurial/httppeer.py", line 118, in _callstream
    resp = self.urlopener.open(req)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

that's still fine because there is also manually addition step.
i also tried that. and 
BOOM another ERROR

what should i do now?



Regards 
V

Konstantinos

unread,
Jan 17, 2017, 3:46:41 AM1/17/17
to ns-3-users
Hi,

If you read the wiki page carefully, you would see that the supported ns-3 release is significantly old

Place it to ns-3-dev(ns-3.11) folder

when you are trying to install in ns-3.26. 
Even if you download the source code and try to manually merge it, it would require significant effort since both the structure and API of ns-3 has changed.

Regards,
K.

netwo...@gmail.com

unread,
Jan 17, 2017, 11:20:30 PM1/17/17
to ns-3-users
Hi,

Sorry for mistake from my end. 
i am not familiar with ns-3-dev. so NO SIR CAN'T DO THAT.

if you have any other information about MPLS for NS3 (can work above ns-3.17).
i will be much obliged.

Thank you again Mr. K

Regards
V  
Reply all
Reply to author
Forward
0 new messages