Discussion:
Quality protocol in Link Control Protocol
(too old to reply)
aki
2007-04-25 06:51:14 UTC
Permalink
Hi All,

I am trying to implement LCP.
my implementation do not support Quality protocol option.
During negotiation of configuration options,
suppose i receive Quality protocol option, then my
implementation need to send
configuraton Nak message with Quality protocol option .
my question is what should i fill in quality protocol field of
Quality protocol option while naking..



all comments are welcome..

thanks
aki
James Carlson
2007-04-25 19:09:08 UTC
Permalink
Post by aki
I am trying to implement LCP.
Note that you can get at least one well-designed implementation for
free.

If you want to do it anyway, there's a book about designing PPP
implementations that should be fairly easy to find.
Post by aki
my implementation do not support Quality protocol option.
OK.
Post by aki
During negotiation of configuration options,
suppose i receive Quality protocol option, then my
implementation need to send
configuraton Nak message with Quality protocol option .
No. You should send LCP Configure-Reject. See RFC 1661, section 5.4.

Configure-Nak says "I understand this configuration option, but I'd
prefer that you use a different value for it."

That's not what you want. If you don't have LQR (many implementations
do not), then you don't implement it at all.
Post by aki
my question is what should i fill in quality protocol field of
Quality protocol option while naking..
That question would make sense only if you were going to suggest an
alternative value for the peer to use. If you don't have an
alternative, then you shouldn't be using Configure-Nak.
--
James Carlson, Solaris Networking <***@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
aki
2007-05-01 06:31:01 UTC
Permalink
Post by James Carlson
Post by aki
I am trying to implement LCP.
Note that you can get at least one well-designed implementation for
free.
where can i find that?
Post by James Carlson
If you want to do it anyway, there's a book about designing PPP
implementations that should be fairly easy to find.
which book you ae talking abt..
Post by James Carlson
Post by aki
my implementation do not support Quality protocol option.
OK.
Post by aki
During negotiation of configuration options,
suppose i receive Quality protocol option, then my
implementation need to send
configuraton Nak message with Quality protocol option .
No. You should send LCP Configure-Reject. See RFC 1661, section 5.4.
Configure-Nak says "I understand this configuration option, but I'd
prefer that you use a different value for it."
That's not what you want. If you don't have LQR (many implementations
do not), then you don't implement it at all.
ok i got your point..thanks...
Post by James Carlson
Post by aki
my question is what should i fill in quality protocol field of
Quality protocol option while naking..
That question would make sense only if you were going to suggest an
alternative value for the peer to use. If you don't have an
alternative, then you shouldn't be using Configure-Nak.
--
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
James Carlson
2007-05-01 13:52:58 UTC
Permalink
Post by aki
Post by James Carlson
Post by aki
I am trying to implement LCP.
Note that you can get at least one well-designed implementation for
free.
where can i find that?
http://ppp.samba.org/

The samba ftp site seems to be down at the moment, but you should have
no trouble getting the software by way of anonymous cvs access or from
any of a zillion mirrors. Just search for "ppp tar 2.4.4".
Post by aki
Post by James Carlson
If you want to do it anyway, there's a book about designing PPP
implementations that should be fairly easy to find.
which book you ae talking abt..
Try Google:

http://www.google.com/search?hl=en&q=ppp+design+implementation+and+debugging&btnG=Google+Search
--
James Carlson, Solaris Networking <***@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
aki
2007-05-04 11:49:14 UTC
Permalink
Post by James Carlson
Post by aki
Post by James Carlson
Post by aki
I am trying to implement LCP.
Note that you can get at least one well-designed implementation for
free.
where can i find that?
http://ppp.samba.org/
The samba ftp site seems to be down at the moment, but you should have
no trouble getting the software by way of anonymous cvs access or from
any of a zillion mirrors. Just search for "ppp tar 2.4.4".
i did it and found codes of PPP implemetaion as a whole.
I find it difficult to clearly understand how LCP is implemented
thr...
Post by James Carlson
Post by aki
Post by James Carlson
If you want to do it anyway, there's a book about designing PPP
implementations that should be fairly easy to find.
which book you ae talking abt..
http://www.google.com/search?hl=en&q=ppp+design+implementation+and+de...
-- my manger did not gave permission for purchasing the book, so bad luck.
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
James Carlson
2007-05-04 14:40:22 UTC
Permalink
Post by aki
Post by James Carlson
http://ppp.samba.org/
The samba ftp site seems to be down at the moment, but you should have
no trouble getting the software by way of anonymous cvs access or from
any of a zillion mirrors. Just search for "ppp tar 2.4.4".
i did it and found codes of PPP implemetaion as a whole.
I find it difficult to clearly understand how LCP is implemented
thr...
The benefit of starting with known-good code is that you don't have to
waste your time rediscovering what many _years_ of diligent work has
already produced. You get to stand on the shoulders of those who did
that work, rather than starting off in a pit.

I would consider the time invested in understanding the code to be
time very well spent.
--
James Carlson, Solaris Networking <***@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
Loading...