CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
  • Week 1
    • 1.Operating Systems and the Kernel: What Linux Does
    • 2.The Birth of Linux: From Unix to Linus
    • 3.Free Software and Open Source: What a License Decides
    • 4.Distributions: The Unit That Bundles the Kernel and Tools for Sale
    • 5.Week 1 Review: The Identity Behind the Name Linux
  • Week 2
  • Week 3
  • Week 4
  • Week 5
  • Week 6
  • Week 7
  • Week 8
  • Week 9
    • 1.The OSI 7 Layers and TCP/IP
    • 2.Communication Methods and Network Technologies
    • 3.IP Addresses and Subnet Calculation
    • 4.Network Configuration and Commands
    • 5.Week 9 Review: The Network on One Page
  • Week 10
  • Week 11
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← Linux Master 2/Week 9/Day 2

Based on the Linux Master 2 exam syllabus·Report an error

Linux Master 2· AssociateWeek 9 · Day 2~26 min read

Day 2 - Communication Methods and Network Technologies

📌 Key Points

  • There are two switching methods — circuit switching (telephone network, PSTN) and packet switching (data network, PSDN).
  • Packet switching splits further into datagram (connectionless) and virtual circuit (connection-oriented).
  • LAN access methods — Ethernet uses CSMA/CD, wireless LAN uses CSMA/CA, Token Ring and FDDI use token passing.
  • The WAN technology order is X.25 → Frame Relay → ATM. An ATM cell is a fixed 53 bytes.
  • IEEE standards — 802.3 Ethernet · 802.5 Token Ring · 802.6 DQDB · 802.11 wireless LAN.

Classification by Scale

TypeFull nameRange
LANLocal Area NetworkInside a building or office
MANMetropolitan Area NetworkCity scale
WANWide Area NetworkCountry or continent scale
  • The MAN standard is DQDB (IEEE 802.6). Questions ask about the middle one of the three scales.

Circuit Switching and Packet Switching

   Circuit Switching                      Packet Switching
 
   A ══════════════════════ B            A ─┐ ┌─ Packet 1 ─┐ ┌─ B
     A dedicated path is held                 └─┼─ Packet 2 ─┼─┘
     for the whole call                         └─ Packet 3 ─┘
   Telephone network (PSTN)                Data network (PSDN)
ItemCircuit switchingPacket switching
MethodReserves a dedicated path in advanceCuts the data up and sends each piece separately
Typical networkPSTN (public telephone network)PSDN (public data network)
DelayConstant once connectedVaries with conditions
EfficiencyHeld even when idle — lowMany communications share the line
Suited forVoice callsData communication
AbbreviationFull name
PSTNPublic Switched Telephone Network — circuit switching
PSDNPublic Switched Data Network — packet switching
  • It is easy to remember that in the name, T (telephone) means circuit switching, D (data) means packet switching.

The difference seen in the order of operation

   Circuit switching   ① Set up circuit  →  ② Transfer data  →  ③ Release circuit
                       (Reserve the path first)  (Flows only along it)   (Give the path back)
 
   Packet switching    ① Cut the data into packets  →  ② Attach the destination address to each packet
                       →  ③ Intermediate devices receive and hold it, then pass it on  →  ④ Reassemble at the destination
  • Circuit switching takes connection setup time before the call. In exchange, once connected you have the path to yourself, so the delay is constant. The ring tone while you place a phone call is step ①.
  • Step ③ of packet switching is called store-and-forward. An intermediate device stores the packet first and sends it out when the path is free. That lets many share one line, but delay grows when it is congested.
  • Because an address must be attached to every packet, there is header overhead. Circuit switching has no such overhead.
If the sentence contains thisAnswer
Dedicated communication path, connection setup time, real-time voice, fixed bandwidthCircuit switching
Store-and-forward, line sharing, header overhead, varying delayPacket switching
Packets take different paths, arrival order may changeDatagram (within packet switching)
Logical connection set up first, all packets on the same pathVirtual circuit (within packet switching)

The two packet-switching methods

ItemDatagramVirtual circuit
ConnectionConnectionlessConnection-oriented
PathMay differ per packetThe same path decided in advance
OrderMay be scrambledOrder is preserved
ExamplesIPX.25, Frame Relay, ATM
  • A virtual circuit is "packet switching that looks like circuit switching." It resembles circuit switching in that the path is decided in advance, but it does not hold that path exclusively and shares it with other communications. So it is classified as packet switching all the same.
  • In a datagram, each packet carries a complete destination address and finds its own way. If one intermediate path breaks, it can go around by another route, so it is resilient to failures. The Internet (IP) works this way.
  • Tie the three words together in one line: "virtual circuit = connection-oriented = order preserved," "datagram = connectionless = order may change."

LAN Access Control Methods

These are the rules that decide who sends and when when several computers share one wire.

MethodFull nameUsed in
CSMA/CDCarrier Sense Multiple Access with Collision DetectionEthernet (wired LAN)
CSMA/CA… with Collision AvoidanceWireless LAN (Wi-Fi)
Token passingToken PassingToken Ring, FDDI

CSMA/CD

   1  Listen to see whether the line is idle (Carrier Sense)
   2  If it is idle, send
   3  If a collision happens, detect it (Collision Detection)
   4  Wait a random time and send again
  • It is a "send first, and retry if there is a collision" method. It is the standard for wired Ethernet and is IEEE 802.3.
  • In wireless, signals are weak, so collisions are hard to detect. That is why it uses CSMA/CA, a method that avoids them in advance (Avoidance).
  • CD is wired, CA is wireless — this one sentence is the exam point.

Token passing

  • A signal called a token is passed around, and only the holder transmits. There are no collisions at all.
  • Token Ring (IEEE 802.5) and FDDI use this method.

The three methods side by side

ItemCSMA/CDCSMA/CAToken passing
CollisionsOccur — detect, then retransmitAvoided in advance so they do not occurDo not occur
Before sendingListen to see whether the line is quietListen, then wait an additional random timeWait until the token arrives
After sendingWatch for a collision signalWait for the other side's acknowledgment (ACK)Pass the token to the next device
As devices increaseCollisions rise and it slows sharplyWaiting grows and it slowsYour turn just comes later — predictable
StandardIEEE 802.3IEEE 802.11IEEE 802.5, FDDI
  • Spelling out the abbreviations gives the meaning directly — CS (Carrier Sense, listening to the line) · MA (Multiple Access, many use it together) · CD (collision detection) / CA (collision avoidance).
  • The reason CSMA/CD waits a "random time" after a collision is that if both waited the same time, they would send at the same moment again and collide again.
  • The reason collisions are hard to detect in wireless is that the device's own transmitted radio wave is much stronger, so it cannot pick out a weak signal arriving from far away at the same moment.
  • The CSMA family is "contention," token passing is "taking turns." If a question asks for "the method in which collisions do not occur," it is token passing.

WAN Technologies

   X.25  ────►  Frame Relay  ────►  ATM
   (1970s)       (1990s)            (1990s)
   Slow but      Less error         Fixed 53-byte cells
   robust to     checking, so       Voice and video together
   errors        faster
TechnologyCharacteristics
X.25An early packet-switched network. Thorough error control makes it slow. Designed for the era of poor lines
Frame RelayA method that raised speed by reducing X.25's error control. Appeared after line quality improved
ATMAsynchronous Transfer Mode. Uses fixed-length 53-byte cells. Integrates voice, video, and data
DQDBDistributed Queue Dual Bus. MAN standard (IEEE 802.6). Uses two buses
FDDIFiber Distributed Data Interface. Dual fiber-optic ring, token passing, 100Mbps

ATM's 53 bytes is tested as a literal value. It is a 5-byte header + 48 bytes of data. The decisive difference from the other methods is that the length is fixed.

Remember FDDI as fiber-optic cable + dual ring + token passing together. If one ring breaks, traffic detours through the opposite ring.

Why it changed in this order

  • When X.25 appeared, lines were noisy. So every intermediate device checked for errors and received the data again if it was wrong. It is safe, but slow because of checking at every hop. It is a standard set by ITU-T, and the X in the name is the series letter of ITU-T recommendations.
  • When fiber-optic cable was laid and line errors dropped sharply, per-hop checking became wasteful. Frame Relay removed that checking and left error recovery to the devices at both ends, raising speed.
  • ATM went one step further and cut data into cells that are all the same size. When sizes are constant, equipment can predict processing time, so delay-sensitive voice and video can be carried on the same network as data. That is why ATM's switching method is also called cell switching.
  • The A (Asynchronous) in ATM means that cells are filled and sent only when there is something to send. It shares only its spelling with the bank ATM (cash machine).
ItemX.25Frame RelayATM
Transfer unitPacketFrame (variable length)Cell (fixed 53 bytes)
Error controlThorough, at every hopMinimized — left to the endpointsMinimized
SpeedSlowFastFaster
Connection methodVirtual circuitVirtual circuitVirtual circuit
  • All three are the same in being packet switching with virtual circuits. What differs is the length of the transfer unit and how much error control is done.

Picking the technology from one keyword

If the sentence contains thisAnswer
53 bytes, fixed-length cell, voice/video/data integrationATM
Fiber-optic cable, dual ring, 100Mbps, tokenFDDI
Dual bus, MAN, IEEE 802.6DQDB
Early packet-switched network, strong error control, ITU-TX.25
Simplified X.25, reduced error control for higher speedFrame Relay
  • FDDI and DQDB are confusing because both say "dual." FDDI is a dual ring (fiber-optic cable), DQDB is a dual bus (MAN).
  • Token Ring and FDDI both use token passing. If it is a copper ring, it is Token Ring (802.5); if it is a dual fiber-optic ring, it is FDDI.

IEEE 802 Standards

NumberWhat
802.3Ethernet (CSMA/CD)
802.5Token Ring
802.6DQDB (MAN)
802.11Wireless LAN (Wi-Fi)
802.15Bluetooth
  • 802.3 (Ethernet) and 802.11 (wireless LAN) are the representative ones.

Related International Organizations

OrganizationWhat it does
IANAManages allocation of IP addresses, port numbers, and domains
ICANNOversees the domain name system (IANA's parent)
IETFDevelops Internet standards documents (RFC)
IEEEDevelops 802 standards for LAN, wireless, and more
ISOInternational standards body for items such as the OSI 7 layers
ITU-TInternational telecommunication standards
3GPPMobile communication (3G·4G·5G) standards
  • IANA is the place that hands out addresses and port numbers. The port assignments in /etc/services also come from here.
  • Mobile communication standards such as 5G are made by 3GPP.
What was definedOrganization
OSI 7 layersISO
Ethernet, Token Ring, wireless LAN (802.x)IEEE
Network recommendations such as X.25ITU-T
RFC documents related to TCP/IPIETF
Assignment of IP addresses and port numbersIANA
The actual technical specifications of 5G3GPP
  • ITU and 3GPP have split roles in 5G. The International Telecommunication Union (ITU) set the requirements 5G must meet under the name IMT-2020, and the detailed technical specifications that satisfy those requirements are made by 3GPP.
  • IANA and ICANN are the ones that "hand out numbers and names", while IETF, IEEE, ISO, and ITU-T are the ones that "set the rules." First check whether the question asks about allocation or about standard-setting.
  • IEEE and IETF, whose names are similar, cover different layers. IEEE is closer to network cards and cables, the lower layers (LAN), while IETF covers Internet protocols such as IP, TCP, and HTTP.

Tomorrow we will calculate IP addresses and subnet masks by hand.

📖 Terms

  • Circuit switching : A method that reserves a dedicated path for the whole communication. The telephone network (PSTN) is the typical example.
  • Packet switching : A method that breaks data into pieces and sends each one. The data network (PSDN) is the typical example.
  • Datagram / virtual circuit : The connectionless method / connection-oriented method of packet switching.
  • CSMA/CD : The wired Ethernet access control method that detects collisions and retransmits.
  • CSMA/CA : The wireless LAN access control method that avoids collisions in advance.
  • ATM : An integrated transmission method that uses fixed-length 53-byte cells.
  • FDDI : A network technology that works by token passing on a dual fiber-optic ring.
  • IANA : The organization that manages allocation of Internet resources such as IP addresses and port numbers.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

Which of the following is the media access control method used in wired Ethernet?

Question 2

Which of the following is the fixed length of a cell used in ATM?

Question 3

Which of the following is the technology that uses fiber-optic cable and works by token passing in a dual-ring structure?

Question 4

Which of the following is the organization that manages allocation of Internet resources such as IP addresses and port numbers?

Question 5

Which of the following correctly pairs the switching method that reserves a dedicated path throughout the communication with its typical network?

PreviousThe OSI 7 Layers and TCP/IPWeek 9 · Day 1Next IP Addresses and Subnet CalculationWeek 9 · Day 3

Official references

  • Linux Master 2 official exam syllabus(opens in a new tab)

On this page

  • Key Points
  • Classification by Scale
  • Circuit Switching and Packet Switching
  • The difference seen in the order of operation
  • The two packet-switching methods
  • LAN Access Control Methods
  • CSMA/CD
  • Token passing
  • The three methods side by side
  • WAN Technologies
  • Why it changed in this order
  • Picking the technology from one keyword
  • IEEE 802 Standards
  • Related International Organizations
  • Terms
  • Practice Questions