The standards set forth by IEEE 802.3 establish Medium Access Control over wired Ethernet. The relevant changes put forth by revisions of the 802.3 standards are:
The standards are named in the form xBASE-y with the elements taking the following
For the exam remember that the maximum transmission distances for 10GBASE-T over the following mediums:
UTP | 55 m |
F/UTP | 100 m |
S/FTP | 100 m |
A 6 byte address that is assigned to a physical communication device. Every device is assigned a unique MAC address. These are usually represented in hexadecimal format:
11:22:33:44:55:66
The first 3 bytes are the Organizationally Unique Identifier (OUI), a code assigned to a unique manufacturer. The last three bytes are the Network Interface Controller Specific, or serial number, of the devices.
The Ethernet Frame encapsulates the information needed by layer 2 of the OSI Model. It will tell us the The form of an Ethernet Frame is:
[ Preamble | SFD | Destination MAC | Source MAC | Type | Payload | FCS ]
Each of the sections are described below:
This indicates that the following message is an Ethernet Frame. It is always 7 bytes of alternating 1
and 0
:
1010101010101010101010101010101010101010101010
Another static set of data, this time it is one byte in a specific order:
10101011
Each are 6 bytes long and give the MAC address of the physical devices sending and receiving the frame.
2 Bytes of data. Indicates whether the data is IPv4 or IPv6.
TODO: list kinds of payload data
46-1500 bytes. This is commonly TCP or UDP data. If the payload contains less than 46 bytes then a PAD section is added.
A CRC checksum that is 4 bytes long and is calculated for all of the data in frame. The CRC does not allow for retransmission, and does not catch all errors. If the frame does not agree with it’s CRC then the frame is dropped.
In a bus network, every computer is directly connected to every other computer through a common network cable. Every ethernet frame is sent to every host. Each host determines whether or not the frame is directed to it and discards the frame if the destination MAC address does not match the device’s.
This is also an old format of transporting data in a network. Really, it is like putting a bus put into a small box. The advantage of this is that the bus wire can’t be cut as easily. If a wire gets cut then only the host connected to that wire is disconnected from the network.
Data can be sent both to and from a HUB, but only one direction can be sent at a time. A device cannot send data when the HUB is sending data (to all devices).
In a hub network, every ethernet frame is sent to every device on the network. 10BaseT and early 100BaseT used hub networks.
A network switch is an even more intelligent network device. The switch examines the ethernet frame and sends the frame only to the reciepient.
A switch will keep a table of MAC addresses listing all the devices on the network. This table is built from the Source MAC parts of the Ethernet Frames sent to it.
When a destination MAC address is not in the STT it will flood the network with that frame.
A host can send and receive data, but not at the same time. Hub (and bus) networks use Half Duplex communication.
Full Duplex communication Switch networks use full duplex communication, it can send and receive data simultaneously.
A protocol that a network device can use to find MAC addresses of the other devices on a network. It is used to pair IP addresses with MAC addresses, and can be run for a specific IP address or can be used to flood the network and get all the MAC addresses.
Querying your local ARP Cache: arp -a
Wireless networks use a Ready to send, Clear to send protocol. When a devices is ready to send data to the base station it requests a time slot in which to broadcast. This is the ready to send signal. The base station then queues the request. When the base station is ready to receive the data from that device it will send the device a signal allowing it to broadcast its payload.
This rigmarole is necessary because a device physically cannot send and receive data at the same time. This is because sending data overrides the antenna’s ability to listen. Furthermore, on a specific communication band, if two devices are broadcasting at the same time, their signals will interfere with each other.
The ethernet standards are written by IEEE working group 802.3. The standards take names that take the form NBaseX, where: - N is the speed (in Mbps) - Base indicates baseband (one signal, as opposed to broadband) - X indicates cable type: - T means twisted copper wire - FL, SX, and LX mean Fiber Optic
Standard names take the form 10GBaseXY, where X and Y have the following meanings:
X | means | Wavelength | Max Cable Length |
---|---|---|---|
S | Short wavelength | 850 nm | 26-300 m |
L | Long wavelength | 1320 nm | 10 km |
E | Extra-long wave | 1550 nm | 40 km |
and
Y | means | Use |
---|---|---|
R | local | LAN |
W | WAN | WAN/SONET |
Cable | Max Dist* | |
---|---|---|
10BaseT | CAT 3 | 100 m |
10BaseFL | MMF | 2 km |
100BaseT | CAT 5 | 100 m |
1000BaseT | CAT 5e / 6 | 100 m |
1000BaseSX | MMF | 220-500 m |
1000BaseLX | SMF | 5 km |
10GBaseT | CAT 6a | 100 m |
This is a protocol that allows multiple hosts to access a bus or hub network.
Every host has the same access to the network.
Every host examines the network before sending a data frame, sending data only when the network is not in use.
When two hosts send data at the same time both frames are lost (a collision). Both NICs on the hosts will detect that the other host is sending data and stop transmission. After a random ammount of time (called the backoff) the NIC will retransmit the frame.
If two or more switches are connected in a loop this can cause problems. A frame could be transmitted through the loop infinitely and bring down the entire network Spanning Tree Protocol solves this issue.
STP Uses special frames called Bridge Protocol Data Units (BDPU)*.
Of course, the topology needs to change Blocked ports can listen for a Topology Change Notification BDPU. In the case of a switch being taken out of the network then the rest of the switches will recreate the spanning tree with a newly elected root switch.
Notes on Computers
AWS · Bash · C · C++ · Cyber Security · Git · LaTeX · Linux · Networking · Python · Raspberry Pi · Tools · Vim
Notes on Math & Physics
Information Theory · Linear Algebra · Solid State Physics
Copyright 2021 · Eric D. Weise