From pc-sig-request@tkyux.phys.s.u-tokyo.ac.jp Fri Jan 19 11:04:04 1996 Date: Fri, 19 Jan 96 11:01:18 JST From: Hirofumi Fujii Message-Id: <9601190201.AA13076@onlnews.kek.jp> To: pc-sig@phys.s.u-tokyo.ac.jp Subject: PPP control frames Resent-Message-Id: <"7w44y.0.Wn.pll_m"@tkyux> Resent-From: pc-sig@tkyux.phys.s.u-tokyo.ac.jp X-Mailing-List: archive/latest/778 X-Loop: pc-sig@tkyux.phys.s.u-tokyo.ac.jp Reply-To: pc-sig@tkyux.phys.s.u-tokyo.ac.jp Precedence: list Resent-Sender: pc-sig-request@tkyux.phys.s.u-tokyo.ac.jp Status: RO 藤井啓文@KEKです お世話になった、お礼というわけでもありませんが、 Windows 95 付属の PPP と DECServer900 とで、 Datelink 層、と IP 層が確立するまでの、PPP Frame のやりとりを、以下に掲載します。 途中にはさまっている日本語の文は、理解を助ける (ほんとかな?)目的で、私が勝手に入れたものです。 # kek.comp の NewsGroup で一部に受けたので (^^) もちろん、これらのやりとりは(同じ機器を使っても 設定によって)いろいろ変わりますが、PPP が、どの ようにネットワーク層を開いていくのか理解する助け になれば幸いです。 # そんなもの理解してなんになるかって、、うーむ。(^^;) ------------------------------------------------- はじまり、はじまり、、 >----- Protocol: c021: Type: Link Control Protocol ----- MS : あ、DEC さん、僕からは、こんな構成でお話したいんですが、、 Code: 0x01: Configure-Request Identifier: 01: Decimal 1 Length: 00 17: Decimal 23 Type 2, Length 6: Async-Control-Character-Map: 0x00 0x0a 0x00 0x00 Type 5, Length 6: Magic-Number: 0x00 0x09 0x81 0x2f Type 7, Length 2: Protocol-Field-Compression: Type 8, Length 2: Address-and-Control-Field-Compression: Type 13, Length 3: Callback: 0x06 <----- Protocol: c021: Type: Link Control Protocol ----- DEC: MS さん、私の方からは、こういうお話の仕方したいんですが、、 Code: 0x01: Configure-Request Identifier: 00: Decimal 0 Length: 00 08: Decimal 8 Type 7, Length 2: Protocol-Field-Compression: Type 8, Length 2: Address-and-Control-Field-Compression: >----- Protocol: c021: Type: Link Control Protocol ----- Code: 0x02: Configure-Ack MS: DEC さんからの話し方は、そうしてください。 Identifier: 00: Decimal 0 Length: 00 08: Decimal 8 Type 7, Length 2: Protocol-Field-Compression: Type 8, Length 2: Address-and-Control-Field-Compression: <----- Protocol: c021: Type: Link Control Protocol ----- Code: 0x04: Configure-Reject DEC: MS さん、そんな話し方されたんじゃ、私の方はチョット、、 Magic-Number と Callback は、やめてもらえます? Identifier: 01: Decimal 1 Length: 00 0d: Decimal 13 Type 5, Length 6: Magic-Number: 0x00 0x09 0x81 0x2f Type 13, Length 3: Callback: 0x06 >----- Protocol: c021: Type: Link Control Protocol ----- Code: 0x01: Configure-Request MS: DEC さん、じゃ、こういう方法なら、いいですか? Identifier: 02: Decimal 2 Length: 00 0e: Decimal 14 Type 2, Length 6: Async-Control-Character-Map: 0x00 0x0a 0x00 0x00 Type 7, Length 2: Protocol-Field-Compression: Type 8, Length 2: Address-and-Control-Field-Compression: <----- Protocol: c021: Type: Link Control Protocol ----- Code: 0x02: Configure-Ack DEC: MS さん、あ、これなら OK です。 Identifier: 02: Decimal 2 Length: 00 0e: Decimal 14 Type 2, Length 6: Async-Control-Character-Map: 0x00 0x0a 0x00 0x00 Type 7, Length 2: Protocol-Field-Compression: Type 8, Length 2: Address-and-Control-Field-Compression: <----- Protocol: 8021: Type: Internet Protocol Control Protocol ----- Code: 0x01: Configure-Request DEC: MS さん、ところで、IP の方は、私からは以下のようにして 送ってよろしいかしら、、 Identifier: 00: Decimal 0 Length: 00 10: Decimal 16 Type 3, Length 6: IP-Address: 0x** 0x** 0x** 0x** Type 2, Length 6: IP-Compression-Protocol: 0x00 0x2d 0x0f 0x00 >----- Protocol: 8021: Type: Internet Protocol Control Protocol ----- Code: 0x01: Configure-Request MS: DEC さん、僕から IP を送る時は以下のようにしたいんですが、、 Identifier: 01: Decimal 1 Length: 00 28: Decimal 40 Type 2, Length 6: IP-Compression-Protocol: 0x00 0x2d 0x0f 0x01 Type 3, Length 6: IP-Address: 0x** 0x** 0x** 0x** Type 129, Length 6: IP-Primary-DNS-Server-Address: 0x** 0x** 0x** 0x** Type 130, Length 6: IP-Primary-NBNS-Server-Address: 0x00 0x00 0x00 0x00 Type 131, Length 6: IP-Secondary-DNS-Server-Address: 0x00 0x00 0x00 0x00 Type 132, Length 6: IP-Secondary-NBNS-Server-Address: 0x00 0x00 0x00 0x00 <----- Protocol: 8021: Type: Internet Protocol Control Protocol ----- Code: 0x04: Configure-Reject DEC: ちょっと MS さん、Name Server Addresses は困ります。 Identifier: 01: Decimal 1 Length: 00 1c: Decimal 28 Type 129, Length 6: IP-Primary-DNS-Server-Address: 0x** 0x** 0x** 0x** Type 130, Length 6: IP-Primary-NBNS-Server-Address: 0x00 0x00 0x00 0x00 Type 131, Length 6: IP-Secondary-DNS-Server-Address: 0x00 0x00 0x00 0x00 Type 132, Length 6: IP-Secondary-NBNS-Server-Address: 0x00 0x00 0x00 0x00 >----- Protocol: 803f: Type: NETBIOS Framing Control Protocol ----- MS: NETBIOS Framing は、こうやってね、、 >----- Protocol: 80fd: Type: Compression Control Protocol ----- MS: あ、それから Compression は、こうして。 <----- Protocol: c021: Type: Link Control Protocol ----- Code: 0x08: Protocol-Reject DEC: NETBIOS FCP なんて、使っちゃダメ! Identifier: 01: Decimal 1 Length: 00 92: Decimal 146 Rejected Protocol: 0x803f: Type: NETBIOS Framing Control Protocol <----- Protocol: c021: Type: Link Control Protocol ----- Code: 0x08: Protocol-Reject DEC: ダメよ、CCP もダメ、拒否よ! Identifier: 01: Decimal 1 Length: 00 15: Decimal 21 Rejected Protocol: 0x80fd: Type: Compression Control Protocol <----- Protocol: 8021: Type: Internet Protocol Control Protocol ----- Code: 0x01: Configure-Request DEC: 私から IP を送るとき、以下のようにしたいって言ったでしょ! 返事が無いから、新しい Id にして送るから返事してよ! Identifier: 01: Decimal 1 Length: 00 10: Decimal 16 Type 3, Length 6: IP-Address: 0x** 0x** 0x** 0x** Type 2, Length 6: IP-Compression-Protocol: 0x00 0x2d 0x0f 0x00 >----- Protocol: 8021: Type: Internet Protocol Control Protocol ----- Code: 0x02: Configure-Ack MS: あ、DEC さんの IP の通信は、こ、これでいいよ。 Identifier: 01: Decimal 1 Length: 00 10: Decimal 16 Type 3, Length 6: IP-Address: 0x** 0x** 0x** 0x** Type 2, Length 6: IP-Compression-Protocol: 0x00 0x2d 0x0f 0x00 >----- Protocol: 8021: Type: Internet Protocol Control Protocol ----- Code: 0x01: Configure-Request MS: じゃ、僕の方は、IP は、こういう構成で送りたいけど、どう? Identifier: 02: Decimal 2 Length: 00 28: Decimal 40 Type 2, Length 6: IP-Compression-Protocol: 0x00 0x2d 0x0f 0x01 Type 3, Length 6: IP-Address: 0x** 0x** 0x** 0x** Type 129, Length 6: IP-Primary-DNS-Server-Address: 0x** 0x** 0x** 0x** Type 130, Length 6: IP-Primary-NBNS-Server-Address: 0x00 0x00 0x00 0x00 Type 131, Length 6: IP-Secondary-DNS-Server-Address: 0x00 0x00 0x00 0x00 Type 132, Length 6: IP-Secondary-NBNS-Server-Address: 0x00 0x00 0x00 0x00 <----- Protocol: 8021: Type: Internet Protocol Control Protocol ----- Code: 0x04: Configure-Reject DEC: 馬鹿!何度言ったらわかるの! Nameserver Addresses 使わないでって言ったでしょ! Identifier: 02: Decimal 2 Length: 00 1c: Decimal 28 Type 129, Length 6: IP-Primary-DNS-Server-Address: 0x** 0x** 0x** 0x** Type 130, Length 6: IP-Primary-NBNS-Server-Address: 0x00 0x00 0x00 0x00 Type 131, Length 6: IP-Secondary-DNS-Server-Address: 0x00 0x00 0x00 0x00 Type 132, Length 6: IP-Secondary-NBNS-Server-Address: 0x00 0x00 0x00 0x00 >----- Protocol: 8021: Type: Internet Protocol Control Protocol ----- Code: 0x01: Configure-Request MS: あ、ご、ごめん、じ、じゃこれでどう? Identifier: 03: Decimal 3 Length: 00 10: Decimal 16 Type 2, Length 6: IP-Compression-Protocol: 0x00 0x2d 0x0f 0x01 Type 3, Length 6: IP-Address: 0x** 0x** 0x** 0x** <----- Protocol: 8021: Type: Internet Protocol Control Protocol ----- Code: 0x02: Configure-Ack DEC: ま、これならね。 Identifier: 03: Decimal 3 Length: 00 10: Decimal 16 Type 2, Length 6: IP-Compression-Protocol: 0x00 0x2d 0x0f 0x01 Type 3, Length 6: IP-Address: 0x** 0x** 0x** 0x** という経過を経て、無事 IP がやりとりされるように なったのでした、、めでたし、めでたし。 -- Hirofumi Fujii (KEK Online Group) keibun@onlnews.kek.jp