OSI(Open Systems Interconnection)モデルは、ISO(国際標準化機構)が策定した「コンピュータネットワークで通信がどのように行われるべきか」を示す概念モデルです。
理論的な枠組みではありますが、ネットワークの基礎を深く理解するためには欠かせないものです。OSIモデルは次の7階層で構成されています。
Layer 2: Data Link Layer(データリンク層)
同一ネットワークセグメント内のノード間通信を規定します。例えば、オフィス内の10台のPCを1台のスイッチに接続した場合、それが1つのネットワークセグメントです。
代表例はEthernet(IEEE 802.3)やWiFi(IEEE 802.11)。アドレスとしてMACアドレスを使用します。MACアドレスは6バイト(48ビット)で構成され、左の3バイトはベンダー識別子です。実際の通信では送信元と宛先の2つのMACアドレスが含まれます。
Which layer is responsible for end-to-end communication between running applications?
4
Which layer is responsible for routing packets to the proper network?
3
In the OSI model, which layer is responsible for encoding the application data?
6
Which layer is responsible for transferring data between hosts on the same network segment?
2
TCP/IP Model
ISO OSIモデルという概念的なモデルを学んだので、今度は実際に実装されたモデルである TCP/IP Model を見ていきましょう。
TCP/IPとは Transmission Control Protocol / Internet Protocol の略で、1970年代に米国国防総省(DoD)によって開発されました。軍がなぜこのようなモデルを作ったのか、不思議に思うかもしれません。その理由のひとつは、ネットワークの一部が停止しても全体が機能し続けられる仕組みを実現するためです。例えば戦時中の攻撃によって一部が破壊されても、ルーティングプロトコルがネットワーク構成の変化に適応し、通信が継続できるよう設計されているのです。
user@TryHackMe$telnet 10.201.63.253 7telnet 10.201.63.253 7
Trying 10.201.63.253...
Connected to 10.201.63.253.
Escape character is '^]'.
Hi
Hi
How are you?
How are you?
Bye
Bye
^]
telnet> quit
Connection closed.
user@TryHackMe$telnet 10.201.63.253 13Trying 10.201.63.253...
Connected to 10.201.63.253.
Escape character is '^]'.
Thu Jun 20 12:36:32 PM UTC 2024
Connection closed by foreign host.
user@TryHackMe$telnet 10.201.63.253 80Trying 10.201.63.253...
Connected to 10.201.63.253.
Escape character is '^]'.
GET / HTTP/1.1
Host: telnet.thmHTTP/1.1 200 OK
Content-Type: text/html
[...]
Connection closed by foreign host.
※ 応答が返らない場合は、コマンド入力後にもう一度 Enter を押してください。
Answer the questions below
Use telnet to connect to the web server on 10.201.63.253. What is the name and version of the HTTP server?