Networks Exam 1

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/143

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:50 AM on 10/3/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

144 Terms

1
New cards

why were networks first needed

terminals had very little computing power and needed to be networked/connected to the bigger machine for actual compute power. needed network/network adjacent architecture to support

2
New cards

encoding schemes (generally)

dictate how signals are represented through a physical medium. mostly deals with understanding mechanics.

3
New cards

concept of connection

networked devices need to have an understanding of senders and receivers.

4
New cards

standards for protocol implementation

using interfaces allows for a more malleable standard that can be implemented in many ways, and supporting good longevity. the downside is that implementations differing can cause confusion while still technically satisfying the interface.

5
New cards

what is the whole idea behind networks

provide a layered set of protocols / a laered set of peer to peer interfaces

6
New cards

OSI model layers

application, presentation, session, transport, network, data link, physical

7
New cards

OSI application layer

An application. Hard to define exactly because the point of application being at the top is that it can be whatever it wants to be.

8
New cards

OSI presentation layer

Dictates data formatting.

9
New cards

OSI session layer

manages/organizes communication sessions between applications

10
New cards

OSI transport layer

process to process delivery. how to handle bytes as they are delivered. help ensure reliability.

11
New cards

OSI network layer

network/global address system to identify who to communicate with.

12
New cards

OSI data link layer

Intermediary needs to identify devices through ports (physical MAC addresses often). Needs to map network and physical addresses.

13
New cards

OSI physical layer

needs to communicate with other devices over some sort of hardware. this is the hardware connection between devices.

14
New cards

Internet Architecture Layers

application, transport, internet, physical

15
New cards

Internet Architecture Application layer

An application. Hard to define exactly because the point of application being at the top is that it can be whatever it wants to be. also includes the protocols dictating the data formatting as well as managing/organizing communication sessions between applications

16
New cards

Internet Architecture Transport Layer

process to process delivery. how to handle bytes as they are delivered. help ensure reliability.

17
New cards

Internet Architecture Internet Layer

network/global address system to identify who to communicate with.

18
New cards

Internet Architecture Physical layer

Intermediary needs to identify devices through ports (physical MAC addresses often). Needs to map network and physical addresses. needs to communicate with other devices over some sort of hardware. this is the hardware connection between devices.

19
New cards

headers

wrap frames in information for the current layer as we down the architecture. moving back up, the headers are removed and read.

20
New cards

footers

may be included in a message as an integrity check

21
New cards

payload

the actual data or contents being sent over a network in a packet.

22
New cards

what is the payload for a request?

requests often have no plload and instead the headers do all that is needed to indicate that the message is a request.

23
New cards

common application protocols

kind of a trick question cause the are so varied, but like maybe HTTP for web pages.

24
New cards

common transport protocols

TCP, UDP

25
New cards

common network protocols

IP is basically the only one, particularly for IP architectures cause duh.

26
New cards

common physical protocols

like ethernet and wifi and stuff

27
New cards

ARP

a way of forcing a mapping of physical devices to Network devices. more specifically, it maps IP/network-layer addresses to MAC/link-layer addresses on the local network.

28
New cards

are all four layers of the internet architecture mandatory?

no. goes bottom to top. can’t have higher layers with the layer below, but that doesn’t mean you need to have the higher layers.

29
New cards

bandwidth (network performance)

measures the number of bits sent a second. technically the maximum/rated data transmission and often doesn’t actually reach this number.

30
New cards

latency

the amount of time it takes a signal to propagate over a physical medium, queue at different points in the network, and be otherwise processed.

31
New cards

propagation delay

the time it takes a physical signal to transmit over a medium.

32
New cards

adapter

a mechanism that allows analog signals to be transmitted. Examples include ethernet ports and wifi cards. plugs into the host, owns the MAC address ,builds and reads frames.

33
New cards

digital signals vs analog signals

digital signals exhibit discrete peaks and valleys whereas analog signals are more continuous and sinusoidal.

34
New cards

Non-return to Zero

Ones are represented by high voltages and zeros by low voltages. for a string of 1s, the signal remains high instead of dropping back low. The pro of this is that it is simple and requires relatively low power consumption. The lack of changes in voltage can, however, leave the encoding scheme susceptible to baseline wander and make synchronizing clocks more difficult .

35
New cards

clock

“a metronome for bits.” a beat at which data is conveyed.

36
New cards

why must clocks be synchronized

if one computer is sending at its clock rate and another is reading at its different clock rate, bits are likely to be misinterpreted.

37
New cards

converting to analog signals

computer signals/bits come in discrete values but physical mediums are not nearly so discrete. as a result, typically values above a certain threshold are considered “high” and below are considered “low” to have the analog signal function in a way more like a digital signal. usually, it is voltage modulation, but sometimes it is wavelength modulation or phase modulation.

38
New cards

baseline wander

the errors that occur with the moving average. After a series of consecutive high signals, the baseline may move too high and some intended 1s may be interpreted as 0s. After a series of consecutive low signals, the reverse may happen.

39
New cards

moving average

a sliding window determines the most recent voltage levels and takes the average to be the threshold that the signal must be over or under to be considered high vs. low.

40
New cards

phase locked loops

on the adapter, an electronic feedback control system that references the phase of an incoming signal to find a common speed in between systems and translate to the common clock speed and phase. phase

41
New cards

point of encoding scheme is to

solve the two issues of voltage variance/baseline wander and asynchronicity.

42
New cards

can encoding schemes differ within the same protocol

yes. ethernet devices, for example, may use any of the encoding schemes.

43
New cards

Non-return to zero inverted

encoding scheme where staying at the same voltage level indicates a 0, whereas a change in voltage level indicates a one.

44
New cards

what is the one thing needed to solve the main two problems in an encoding scheme

more bit transitions

45
New cards

Manchester encoding

an encoding scheme where 0 and 1 are represented by low to high transitions and high to low transitions (or the reverse according the IEEE standards for manchester inverted.) Has the maximum number of transitions cause everything needs to be a transition. takes twice as long to transmit anything though (sending two 0s in a row requires that it go low to high twice so at some point it has to go high to low to “reset”). So at a cost of less bit efficiency, it is really good for issues with baseline wander and synchronization.

46
New cards

4B/5B

encoding scheme based on non-return to zero inverted (NRZI). Each 4 bit sequence is translated to a predetermined 5 bit sequence. Since there are more 5 bit sequences than 4 bit sequences, the 5 bit sequences with good transitions can be selected and used. not the most number of transitions or 100% bit efficiency, but it is a really good trade off with 80% bit efficiency and typically enough transitions to get around baseline wander and synchronization issues.

47
New cards

frame

blocks of data on packet switched networks.

48
New cards

how are frames nested

the body of one frame contains the frame of the next layer. For example, a phy

49
New cards

what is a sentinel character

a character used to signify the beginning/end of a frame. ~ is one that is sometimes used.

50
New cards

what is framing

one implementation of packet format; defines how the beginning/end of a block of data is identified.

51
New cards

what is a byte-oriented protocol?

a framing protocol where special bytes/characters mark frame boundaries. P2P is an example.

52
New cards

what problem do sentinel characters cause?

the sentinel might occur naturally in the body, making it look like a frame boundary.

53
New cards

how do byte-oriented protocols solve sentinel characters appearing in the body?

escape sequences: an escape character indicates the following sentinel is data, not a boundary.

54
New cards

what is a bit-oriented protocol?

frames are identified using a specific bit pattern rather than special character/bytes.

55
New cards

How does bit-oriented framing prevent its boundary pattern from appearing in the body?

bit stuffing: extra bits are inserted into the body so the boundary pattern cannot occur accidentally.

56
New cards

what is the advantage of bit-oriented framing?

the frame format does not depend on character/byte boundaries.

57
New cards

What is CRC used for in a frame?

cyclic redundancy check. dtects whether data changed or was corrupted during transmission. typically 32 bits.

58
New cards

error detection

indicates an error has occurred. Does not say what error. All we know is someething has happened and we need to drop the whole frame.

59
New cards

IP Checksum

breaks the data into fixed-size blocks, often 16-bits. add the blocks with ones complement addition (overflow wraps around and gets added back in). invert all the bits of the result. put checksum in message. receiver does calculation again, and if the result is all ones it is good.

60
New cards

which is safer checksum or CRC

CRC is more likely to detect errors

61
New cards

which is less computationally intensive, checksum or CRC?

checksum

62
New cards

how is crc checked and generated

divide/xor using the agreed divisor. remainder of 0 means the frame passes. alternatively, to calculate it you find the remainder and put that in.

63
New cards

Transceiver

taps the cable, senses idle/busy (carrier sense), drives and reads the raw signal

64
New cards

difference between transceiver and adapter

the transceiver talks to the physical medium while the adapter connects the computer to the network. transceiver is sending and receiving the signal, and the adapter is the larger network interface that does things like error detection.

65
New cards

C(x)

the CRC divisor or generator. known by the sender and receiver. good ones can detect single bit errors, double bit errors, and odd numbers of errors (given certain conditions).

66
New cards

which IEEE standard is ethernet

802.3

67
New cards

carrier sense

every node can tell an idle link from a busy one before it tries to talk

68
New cards

multiple access

many nodes share one link, like several stations plugged into one bus

69
New cards

collision detection

a node listens while it sends, so it can notice its own frame getting stepped on.

70
New cards

repeaters

join segments into one larger shared network.

71
New cards

5-4-3 rule

5 segments, 4 repeaters, 3 mixing segments.

72
New cards

frame format stuff

preamble - 8 bytes, dest addr - 6 bytes, src addr - 6 bytes, type - 2 bytes, data - 46 to 1500 bytes (padded if below 46), CRC - 4 bytes. (64 byte total but for some reason preamble is not counted).

73
New cards

preamble

alternating 0s and 1s, lets the receiver sync to the signal

74
New cards

addresses

48 bits each , identify source and destination

75
New cards

type

the demultiplexing key, which higher-level protocol gets this frame

76
New cards

MAC address

on the adapter, not the host. written as six hex byte-pairs, separated by colons. leading zeros are dropped in the human-readable form.

77
New cards

unicast

one sender, one specific receiver. frame contains the MAC address of the intended adapter.

78
New cards

broadcast

one sender, everone on the local network. uses the broadcast MAC address (all ones); every adapter accepts it.

79
New cards

multicast

one sender, a specific group of receivers. adapters can subscribe/opt in to particular multicast addresses.

80
New cards

promiscuous mode

adapter accepts every frame it sees, even if it addressed to another device.

81
New cards

super basic transmission rule

line idle and a frame is ready, then transmit immediately, no negotiation. line busy, wait for idle then transmit. all adapters wait the transmission time of 96 bits before the next frame starts.

82
New cards

two nodes talk at once

carrier sense does not guarantee no collisions, propagation delay leaves a gap. what a colliding adapter does → jamming sequence then stop.

83
New cards

is collision a design flaw?

not really it’s pretty expected.

84
New cards

what does a host do upon detecting collision?

immediately sends a 32 bit jamming sequence. stops transmitting early. runt frame - 64 bit preamble and 32 bit jam.

85
New cards

Why can two hosts transmit even after sensing an idle medium

propagation delay - one host’s signal may not have reached the other yet

86
New cards

why does ethernet have a minimum frame size? what is this size.

sender must still be transmitting when the jamming signal reaches it to actually detect the collision, so the frame must be long enough to make this the case even when the nodes are the furthest away as possible. minimum size is 64 bytes.

87
New cards

round trip time

time for the signal to reach the farthest host and for the effect/response to return.

88
New cards

why was 64 bytes sufficient for 10 Mbps ethernet?

512 bits takes 51.2 micro seconds to send, long enough to cover the worst-case RTT.

89
New cards

near vs. far collision

near - detected quickly. far - collision may take almost an RTT to return to sender.

90
New cards

p-persistent protocols

not really used (there but configured to be off). timeis divided into slots, one frame length each. idle slot - transmit with probability p, defer with probability 1-p. if it defers and the next slot is idle it “rolls the die” again to see if it can go.

91
New cards

exponential backoff

when there is a collision, the frame picks how long to wait before trying to send again. typically between 0 and 2^n - 1 where n is the number of collisions. gives up after 16 collisions. collide, jam, stop, backoff, retry.

92
New cards

wifi as a medium

medium is radio waves. waves are broadcast so that anyone in range can hear. bit errors are even more common due to varying transmission power.

93
New cards

joining a wifi network

send a probe frame → broadcast connection request. response → access point replies with probe response. node sends association request to the strongest signal access point. the access point confirms with association response. handshakes are probably done - potentially to set up diffeehellman idk how to spell whatever.

94
New cards

active scanning

node sends a probe frame to hunt for an access point.

95
New cards

passive scanning

access points periodically send a beacon frame. nodes listen then associate.

96
New cards

wifi frames.

control - 2 bytes, address 1 - 6 bytes, address 2 - 6 bytes, address 3 - 6 bytes, address 4 - 6 bytes, data - 0 to 2312 bytes, CRC 4 bytes.

97
New cards

hidden node problem

if two nodes can reach a third node but not each other, signals can collide at the third node and A and C are unable to tell. B is also unable to let A or C know a collision occurred as the data is garbled.

98
New cards

exposed node problem

A-B-C-D are all nodes in a line. B is transmitting to A. C thinks the medium is busy when it wants to transmit to D, but really since C is outside A’s range and B is outside D’s range it would be fine. so basically, a node hears a nearby transmission and unnecessarily decides it can’t transmit.

99
New cards

CSMA/CD vs CSMA/CA

the cd is collision detection. it is what ethernet tends to do. the ca is collision avoidance and is what wifi does since it can’t reliably detect collisions while transmitting.

100
New cards

RTS/CTS

collision avoidance technique used by wifi. ready to send frame is sent by sender. if the receiver is available, it replies with a clear to send. all neighbors hear this too. the sender then transmits the data and the receiver acks to confirm it got it. the double confirmation of RTS/CTS keeps the network clearer. Since the RTS frame is shorter, there is less likely to be overlap. CTS will also specify who is clear to send.