16 - Network security - the data link layer

Class: CSCE-313


Notes:

The OSI Model

The OSI (Open System Interconnect) Reference Model is a network model consisting of seven layers

Created in 1983, OSI is promoted by the International Standard Organization (ISO)

07 - Inbox/Visual Aids/image-35.png297x309

image-61.png381x270

Notes:

Internet Layers

image-62.png529

Notes:

Internet Routing

image-63.png523

Notes:

Internet Packet Encapsulation (layer 2 frame)

image-64.png530

Notes:

Intermediate Layers

Link layer

Network layer

Transport layer

Example:

en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
        ether 7a:39:9c:87:18:e3
        inet6 fe80::1081:ae14:5852:72b1%en0 prefixlen 64 secured scopeid 0xe
        inet 10.245.246.10 netmask 0xfffc0000 broadcast 10.247.255.255
        nd6 options=201<PERFORMNUD,DAD>
        media: autoselect
        status: active

The format of an Ethernet frame

image-65.png465x341

Notes:

Packet Switching

Each packet is routed independently (may arrive at different order)

image-66.png388x230
image-67.png387x214
image-68.png388
image-69.png391x209

Notes:

MAC Addresses

Notes:

Switch

A switch is a common network device

Operations of a switch

Notes:

The address resolution protocol (ARP)

ARP connects the network layer to the data layer by converting IP addresses to MAC addresses.

ARP works by broadcasting requests and caching responses for future use.
The protocol begins with a computer broadcasting a message of the form
who has <IP address1> tell <IP address2> s who has "Ivy", tell "Alice"
When the computer with <IP address1> or an ARP server receives this message, a reply is transmitted in a frame addressed to the requester is <MAC address>

The requestor's IP address <IP address2> is contained in the link header

The Linux and Windows command arp - a displays the ARP table (ARP cache)

Internet Address Physical Address Type
128.148.31.1 00-00-0c-07-ac-00 dynamic
128.148.31.15 00-0c-76-b2-d7-1d dynamic
128.148.31.71 00-0c-76-b2-d0-d2 dynamic
128.148.31.75 000c76b2d71 d dynamic
128.148.31.102 00-22-0c-a3-e4-00 dynamic
128.148.31.137 00-1d-92-b6-f1-a9 dynamic

Notes:

image-70.png

Notes:

ARP Spoofing

Notes:

image-71.png

Notes: