Advanced Networking Flashcards
What is the Internet?
Internet “network of networks” - Interconnected ISPs
Name 2 Internet standards
RFC: request for comments
IETF: Internet Engineering Task Force
Additional info: Request for Comments (RFC), in information and communications technology, is a type of text document from the technology community. … The IETF adopts some of the proposals published as RFCs as Internet Standards. However, many RFCs are informational or experimental in nature and are not standards.
Examples of Protocols?
TCP, IP (network layer)
HTTP (Application layer)
Skype (Application layer)
802.11 (link layer)
Ethernet (data layer)
What are some characteristics of a MAC (or LAN or physical or Ethernet) address?
- Used ‘locally’ to get frame from one interface to another physically-connected interface
- 48 bit MAC address (for most LANs)
- Administered by IEEE
- MAC address like SSN - flat address portable
- IP address like postal address - not portable (depends on IP subnet to which it’s attached)
Address Resolution Protocol (ARP)
A communication protocol used for discovering the link layer address, such as a MAC address, associated with a given internet layer address, typically an IPv4 address.
TRUE/FALSE
Each adapter on LAN has unique LAN address
TRUE
Time to Live (TTL)
Time after which address mapping will be forgotten (typically 20 min) - limits the lifespan or lifetime of data in a computer or network
Ethernet frame structure
7 byte Preamble - used to synchronize receivers, senders clock rates
6 byte Addresses: dest and source
Type: indicates higher layer protocol (mostly IP but others possible, e.g., Novell IPX, AppleTalk)
data (payload)
CRC: cyclic redundancy check at receiver
- error detected: frame is dropped
Explain the following characteristics of Ethernet?
- connectionless
- unreliable
- protocol
connectionless: no handshaking between sending and receiving NICs
unreliable: receiving NIC doesn’t send acks or nacks to sending NIC
- data in dropped frames recovered only if initial sender uses higher layer rdt (e.g., TCP), otherwise dropped data lost
Ethernet’s MAC protocol: unslotted CSMA/CD with binary backoff
What is an Ethernet switch?
link-layer device: takes an active role
- store, forward Ethernet frames
- examine incoming frame’s MAC address, selectively forward frame to one-or-more outgoing links when frame is to be forwarded on segment, uses CSMA/CD to access segment
- Ethernet protocol used on each incoming link, but no collisions; full duplex - each link is its own collision domain - A-to-A’ and B-to-B’
- switches buffer packets
transparent
- hosts are unaware of presence of switches
- hosts have dedicated, direct connection to switch
plug-and-play, self-learning
- switches do not need to be configured
8 facts about TCP
Reliable, in-order delivery
o Congestion control
Point-to-point
o One sender, one receiver
Reliable, in-order byte
o Stream: no message boundaries
Pipelined
o TCP congestion and flow control set window size
Full duplex data
o Bi-directional data flow in same connection
o MSS: max segment size
Connection-oriented
o Handshaking inits sender, receive state before data exchange
Flow controlled
o Sender will not overwhelm receiver
Parity checking
o Single bit parity
Detect single bit errors
Network signal can be unreliable, hence needs error checking
Simplest error checking mechanism with very limited reliability
Can be used tougher with error detection/correction codes
Can only delete, NOT correct, NOR identify if the error was in parity bit or one of the data bits
o 2-dimensional bit parity
Detect and correct single bit errors
A challenge of wireless networks
A challenge of mobile networks
wireless: communication over wireless link
mobility: handling the mobile user who changes point of attachment to network
Examples of wireless hosts
o laptop, smartphone
o run applications
o may be stationary (non-mobile) or mobile
o wireless does not always mean mobility
How does wireless differ from wired link?
decreased signal strength: radio signal attenuates as it propagates through matter (path loss)
interference from other sources: standardized wireless network frequencies (e.g., 2.4 GHz) shared by other devices (e.g., phone); devices (motors) interfere as well
multipath propagation: radio signal reflects off objects ground, arriving ad destination at slightly different times
What are some problems from multiple wireless senders and receivers? (2)
Hidden terminal problem
Signal attenuation (weakening) and interference
What are the differences between 802.11: passive and active scanning?
Active scan
- The client radio transmits a probe request and listens for a probe response from an AP.
Passive scan
- The client radio listens on each channel for beacons sent periodically by an AP.
- Generally takes more time, since the client must listen and wait for a beacon.
- Another limitation with a passive scan is that if the client does not wait long enough on a channel, then the client may miss an AP beacon.
How to avoid collisions?
RTS/CTS
11 facts about UDP
Unreliable, unordered delivery
o No-frills extension of “best-effort” IP
Segments may be lost
Segments may be delivered out of order
Connectionless
o No handshaking between UDP sender, receiver
o Each UDP segment handled independently of others
Uses:
o Streaming multimedia apps (loss tolerant, rate sensitive)
o DNS
o SNMP
Add reliability at application layer - Application-specific error recovery
Use checksum to check if error-free
o Detect “errors” (e.g., flipped bits) in transmitted segment
o Simple method of error detection
o Calculates the aggregate sum of all data bits – Data sum
Small header size
No congestion control
o UDP can blast away as fast as desired
No connection establishment (which can add delay)
What services are not available with UDP?
- Delay guarantees
* Bandwidth guarantees
3 facts about Reliable Data Transfer (RDT)
- stop-and-wait operation
- High overhead
- Network protocol limits use of physical resources
Pipelining
Sender allows multiple “in-flight” yet to be acknowledged packets
o Range of sequence numbers must be increased
o Buffering at sender and/or receiver
2 generic forms of pipelined protocols
Go-Back-N
Sender can have up to N unacknowledged packets in pipeline
Receiver only sends cumulative acknowledgement - Doesn’t ack packet if there’s a gap
Sender has timer for older unacked packet - When timer expires, retransmit all uancked packets
Selective Repeat
Sender can have up to N unack’d packets in pipeline
Receiver sends individual ack for each packet
Sender maintains timer for each unacked packet - When timer expires, retransmit only that unacked packet
What do Network protocols govern?
All Internet communication activity o Defines format o Order of messages sent and received among network entities o Actions taken on message transmission o Receipt
Example
TCP connection request
TCP connection response
Get
What are 2 components of a Network Structure?
Network edge
Network core
Network edge
Also known as the WAN edge, is where an enterprise network connects to third-party network services
(E.g., for remote offices)
Hosts: clients and servers
Servers often in data centers
Access networks, physical media
- Wired, wireless communication links
Network core
o Interconnected routers
o Network of networks
o packet-switching: hosts break application-layer messages into packets
- forward packets from one router to the next, across links on path from source to destination
- each packet transmitted at full link capacity
Packet switching vs circuit switching
Circuit Switching is connection oriented that means a path is established between source and destination before the transmission occurs. On the other hand, Packet Switching is Connectionless that means a dynamic route is decided for each packet while transmission.
Circuit Switching was originally designed for voice communication whereas, Packet Switching was originally designed for data communication.
Circuit Switching is inflexible as once a path is established for transmission, it doesn’t change while the duration of the session. On the other hand, Packet Switching is flexible as each packet may travel through a different route to reach its destination.
In packet switching, as each packet travels a different path hence, the packet are received out of order at the receiver side and later arranged in order. On the other hand, in circuit switching the entire message is received as it is as sent from a sender to receiver.
Space Division Switching or Time-Division Switching can be used to implement Circuit Switching whereas, Packet Switching can be implemented using two approaches Datagram Approach and Virtual Circuit Approach.
Circuit Switching is always implemented at physical layer whereas, Packet Switching is implemented on the network layer.
Is packet switching a “slam dunk winner?”
o Great for bursty data - Resource sharing
- Simpler, no call setup
o Excessive congestion possible: packet delay and loss
- Protocols needed for reliable data transfer, congestion control
- BUT bandwidth guarantees needed for audio/video apps