Networking Fundamentals Flashcards
Name the Layers to OSI 7-Layer model
- physical
- Datalink
- Network
- Transport
- Session
- Presentation
- Application
Layer 2 Data Link
- runs on top of layer 1
- devices at L2 have unique hardware (MAC) address
- Frames (containers for information) can be addressed to a destination or broadcasted
- CSMA(carrier sense multiple access) -senses if data is already be transmitted
Layer 1 Physical
the transmission and reception of raw bit streams between a device on a shared physical medium.
Drawbacks to Layer 1 Physical of the OSI 7-Layer model
- layer 1 has no media access control and no collision detection
- no device addressing all data is processed by all device
Switch
L2
- Maintains a mac address table which over time learns what computer is connected to what port
- Only valid frames are stored and forwarded
- Collisions are isolated on the port they occurred
- Every Port is a separate collision domain
-
Layer 3 Network
Internet Protocol (IP) - adds cross-network IP addressing and routing to move data between local area networks without direct P2P links
IP Packets are moved step by step from source to destination via intermediate networks. Encapsulated in different frames along the way
IP Packet Structure
- Similar to frame in that they contain data to be moved and contain source and destination address
- as they move through networks they are placed inside frames specific to the local network that changes every time the packet moves through the network
- the IP Packet itself never changes
ARP
- Address Resolution Protocol
- finds the Mac address for this IP
Route
where the IP packet is forwared
Route Roles
multiple routes
Router
moves packet from SRC to DST encapsulating in L2 on the way
Cons of Layer 3
No method for channels of communications src IP ≤=> dst IP only
can be delivered out of order
no flow of control → if the source transmit faster than the destination IP saturating the destination causing packet loss
Layer 4 Transportation / Layer 5 Session
TCP - Transmission Control Protocol
- reliability, error correction, and ordering for data/slower
- connection oriented protocol → you have to set up a connection between two devices once setup creates bidirectional methods of communication
UDP- User Datagram Protocall
- faster less reliable
*Both run on top of IP and use IP as transit
Subnet Mask
used by Host to determine if an IP address it needs to communicate with is local or remote - which influences if it needs to use a gateway or can communicate locally
Network Address Translation (NAT)
- Translates private IPv4 addresses to public
- Designed to overcome IPv4 Shortages
- Static NAT- 1 private to 1 (fixed )public address(IGW)
- Dynamo NAT- 1 private to 1st Available Public