Comms and Network Flashcards
Hub
OSI Layer 1
repeats an electrical signal that comes in one port out all other ports
they operate in half-duplex.
they are prone to collisions.
each port on a hub is in the same collision domain.
data is forwarded out all ports and can be captured with a network sniffer.
Network Bridge
OSI Layer 2
Device that divides a network into segments. Each segment represent a separate collision domain, so the number of collisions on the network is reduced
Software based segmentation
Network Switch
OSI Layer 2
A switch is essentially a multiport network bridge. Each port on a switch is in a separate collision domain and can run in the full duplex mode.
Each switch has a dynamic table (called the MAC address table) that maps MAC addresses to ports. With this information, a switch can identify which system is sitting on which port and where to send the received frame.
Difference between Switch and Bridge
- Most bridges have only 2 or 4 ports. A switch can have hundreds of ports.
- bridges are software based. Switches are hardware-based and use chips (ASICs) when making forwarding decisions, which makes them much faster than bridges.
3, switches can have multiple spanning-tree instances. - Bridges can have only one.
switches can have multiple broadcast domains (one per VLAN).
Router
OSI Layer 3
Connects different computer networks by routing packets from one network to the other. This device is usually connected to two or more different networks.
Each port on a router is in a separate collision and broadcast domain and can run in the full duplex mode.
Collision Domain
The term collision domain is used to describe a part of a network where packet collisions can occur. Packet collisions occur when two devices on a shared network segment send packets simultaneously. The colliding packets must be discarded and sent again, which reduces network efficency.
Hosts on hub are in 1 collision domain
Hosts seperated by bridge are in seperate domains
Each host on switch are in seperate domains
Broadcast Domain
a group of devices on a specific network segment that can reach each other with Ethernet broadcasts. Broadcasts sent by a device in one broadcast domain are not forwarded to devices in another broadcast domain.
Ethernet broadcasts are usually used by Address Resolution Protocol (ARP) to translate IP addresses to MAC addresses.
Only routers seperate LAN to multiple broadcast domains
CSMA/CD
Carrier Sense Multiple Access with Collision Detection (CSMA/CD). This algorithm helps devices on the same network segment to decide when to send packets and what to do in case of collisions. CSMA/CD is commonly used in networks with repeaters and hubs because these devices run in the half-duplex mode and all of their ports are in the same collision domain.
Since switches have replaced hubs in most of today’s LANs, CSMA/CD is not often used anymore. Switches work in full-duplex mode and each port on a switch is in a seperate collision domain, so no collisions can occur.
IEEE 802.3
Ethernet is defined in a number of IEEE (Institute of Electrical and Electronics Engineers) 802.3 standards. These standards define the physical and data-link layer specifications for Ethernet
MAC Address
Media Access Control
Unique identifier assigned to a network interface controller (NIC) for communications at the data link layer of a network segment. MAC addresses are used as a network address for most IEEE 802 network technologies
First 24 bits - OUI Organizationally Unique Identifier
CISCO hierachy model
- CORE- network backbone, this layer is responsible for transporting large amounts of traffic quickly.
- Distribution - serves as the communication point between the access layer and the core. Its primary functions is to provide routing, filtering, and WAN access and to determine how packets can access the core
- Access - controls user and workgroup access to the resources on the network
TCP/IP Suite
set of communications protocols used on computer networks today, most notably on the Internet. It provides an end-to-end connectivity by specifying how data should be packetized, addressed, transmitted, routed and received on a TCP/IP network. This functionality is organized into four abstraction layers and each protocol in the suite resides in a particular layer.
ARP
ARP (Address Resolution Protocol) – used to convert an IP address to a MAC address
used on Ethernet LANs because hosts that want to communicate with each other need to know their respective MAC addresses.
It is a request-reply protocol; ARP request messages are used to Broadcast to request the MAC address, while ARP reply messages are used to send the requested MAC address
ARP are sent to broadcast address and only host with specified IP will respond with ARP reply
RP requests are sent to the Layer 2 broadcast address of FF:FF:FF:FF:FF:FF
IP
IP (Internet Protocol) – used to deliver packets from the source host to the destination host based on the IP addresses.
ICMP
ICMP (Internet Control Message Protocol) – used to detects and reports network error conditions. Used in ping.
TCP
OSI Layer 4
TCP (Transmission Control Protocol) – a connection-oriented protocol that enables reliable data transfer between two computers.
process used to establish a TCP connection is known as the three-way handshake. After the connection has been established, the data transfer phase begins
UDP
OSI Layer 4
UDP (User Datagram Protocol) – a connectionless protocol for data transfer. Since a session is not created before the data transfer, there is no guarantee of data delivery.
provides delivery of data between applications running on hosts on a TCP/IP network, but it does not sequence the data and does not care about the order in which the segments arrive at the destination.
FTP
FTP (File Transfer Protocol) – used for file transfers from one host to another.
PORT 20 - sending data, 21 - control commands
TELNET
Telnet (Telecommunications Network) – used to connect and issue commands on a remote computer.
PORT 23
DNS
DNS (Domain Name System) – used for host names to the IP address resolution.
HTTP
HTTP (Hypertext Transfer Protocol) – used to transfer files (text, graphic images, sound, video, and other multimedia files) on the World Wide Web.
IPV4
32 bit address assigned to each host on a network
An IP address is a software (logical) address, not a hardware address hard-coded on a NIC like a MAC address.