Interview_Network/Packetization/Protocol/OSI/TCPIP/Network Appliances
π Network
β What is computer network?
- connection of network devices to communicate data- use WWW
- use HTTP
β What are the types of network?
- WAN- LAN
- MAN
- PAN
β How can we transfer data on network?
- νμ κ΅ν λ°©μ: Circuit-Switched- ππ» when circuit is occupied, other computers cannot transmit data
- Packet Switched: Divide data into small packets and transmit
- ππ» does not occupy circuit
β What is packetization?
- Packet: small segment of big data- Packetization β‘οΈ Routing β‘οΈ Transmission medium β‘οΈ Reassembly β‘οΈ Error Checking
β What is protocol?
- Set of rules to transmit data on network- for example, HTTP, SMTP, UDP
π TCP/IP
β What is TCP/IP?
- Transmission Control Protocol, Internet Protocol- Application Layer: show to user on application
- Transport Layer: data transmission, TCP/UDP
- Internet Layer: connect host, routing IP address
- Network Link Layer: transmit data through physical device
π OSI 7 Layer
β What is OSI 7 layer?
- Application Layer: show to user on application [[HTTP/HTTPS]]- Presentational Layer: change data format to transmitable format [[JPEG, ASCII]]
- Session Layer: connection between application, message, [[SSL/TLS]]
- Transport Layer: filter, manage traffic, segment, [[TCP/UDP]]
- Network Layer: different network, packet, [[IP address, Router, Ping]]
- Datalink Layer: same network, unit, MAC Address, [[Switch, Bridge]]
- Physical Layer: change 0, 1 to analog data, send to physical device, [[Hub, cable, repeater]]
β What are the benefits of dividing into layers?
- ππ» can see how data is transfered- ππ» easier for debugging
- ππ» compatible for any device
- ππ» independent layers, dependency on other layers β¬οΈ
β Why is it called "layer"?
- header is added to data as it goes up/down the layers- c(b(a))
β Why is header added as data goes up/down the layer?
- called encapsulation, decapsulation- only the current layer can decapsulate until that layer level
- ππ» reduce data latency(only open that layer header)
- ππ» encrpyt, secure other layers
β Why is data trasmission always slower than excpected?
- bc header is added to data- and needs time for encapsulation, decapsulation
β What is encapsulation and decapsulation?
- encapsulation: add header to data from higher layer β‘οΈ lower layer- decapsulation: remove header from data from lower layer β‘οΈ higher layer
π Network appliances
β What is NIC?
- Network Interface card- OSI layer 1
- connect computer to network
β What is repeater?
- amplify digital signal for long distance travel- OSI Layer 1(Physical Layer)
β What is hub?
- multi-port repeater- one hub, one collision domain
β What is bridge?
- OSI Layer 2(data link layer)- MAC address
- send unit based on MAC address
- has bridge table
- divides collision domain
- on same network
β What is L2 Switch?
- Like bridge, send unit to MAC address- but has multiple ports
- OSI Layer 2(data link layer)
- on same network
β What is the difference between switch and bridge?
- switch has multiple ports compared to bridgeβ What are the functions of switches and bridges
- learning- flooding
- forwarding
- filtering
- aging
- aging reflash
β How does switch, bridge forward frame?
- store and forward- cut-through
- fragment free
β What is looping
- when there is more than one way of reaching switch, hub- other PCs cant send data
- π Spanning Tree algorithm
β What is spanning tree algorithm?
- To prevent looping- If more than one way of reaching switch, bridge, block all ways except one
- If problem occurs with current way, unlock the blocked way
β What is router?
- OSI Layer 3(network layer)- IP address
- send packet based on IP address
- different network
- has routing table
- divide broadcast domain
β What is L3 Switch?
- switch β router- MAC address β Routing table π° FPGA hardware
- OSI Layer 3(Network Layer)
β What is L7 Switch?
- switch with load balancing, firewall, deep packet inspection- forward data based on application data
- OSI Layer 7(Application Layer)
β What is load balancing?
- share work load to more than two serversβ What is gateway?
- passage to conenct two networks This post is licensed under CC BY 4.0 by the author.