Internet & More Flashcards
MAC
Media Access Control address
48-bit number written in hexadecimal, with bytes separated by colons (08:00:27:3b:8f:ed)
Always remains the same for a device!
NIC
Network Interface Card
- In PCs and Laptops, to connect to WiFi routers
Ipv4
32 bit number, 4 8-bit numbers
CIDR
Classless inter-domain routing
128.143.1.1/16 -> means machines share the same upper 16 bits
E.g. All addresses are in form: 128.143.xxx.xxx
DSLAM
Digital Subscriber Line Access Multiplexer
- Allows internet signals to be sent over cable TV wires
( why you can connect both TV and router to same cable socket)
Path of Web Requests
Web request -> laptop NIC -> Wifi router -> DSLAM -> ISP routers -> … Router -> Machine by MAC Address
(Once the packet is at the lowest level of the hierarchy (no more routers), the final router uses the MAC address to determine final destination)
LAN
Local Area Network - lowest level because all machines there are connected through a single router
ARP
Address Resolution Protocol
- Router needs to know the MAC address of a machine with a given local IP address
- Stores map of IP -> MAC addresses
Lowest IP Address on a LAN
Normally the router!
CAM
Content Addressable Memory
- Memory hardware used in routers and switches
- Map MAC addresses to corresponding ports
- If CAM is full, will broadcast message on all ports
- This is an attack vector, by sending packets w/ random MAC addresses to the switch
Ports
On a network, a port is a communication endpoint
- At the software level, within an operating system, a port is a logical construct that identifies a specific process
- Allow a process to communicate over a network
- Allows multiple processes to communicate with network at same time
- 16 bit number (1 - 2**16-1) (65535 ports)
Open port
A port that accepts a connection from an external process
5 Layer Internet Protocol Model
Kurose, Forouzan
Application Layer Transport Layer (TCP/UDP) Network Layer (IP) Data Link Layer (MAC) Physical Layer
OSI Model
(7 layers) Application Presentation Session Transport Network Data Link Physical
P2P
Peer-to-Peer
Clients exchange information directly with each other (as opposed to client-server model)