Computer Networking Flashcards
What is ICANN?
Internet Corporation for Assigned Names and Numbers (ICANN) is the administrative entity controlling the allocation of internet addresses, domain names and protocol port numbers.
What network protocols are included in TCP/IP protocol suite?
ARP: translates IP address to MAC address
IP: routes data packets from one address to another
ICMP: provides low-level support to IP (error message, routing, debugging)
UDP: provides non-verified, one-way data delivery
TCP: provides reliable, full duplex, flow controlled, error corrected data delivery
Give the protocols and data unit for application layer.
Protocols: HTTP/HTTPS/FTP/SMTP/LDAP/DHCP/DNS
Data unit: message
Give the protocols, data unit and address name for transport layer.
Protocols: TCP/UDP
Data unit: segment
Address name: port number (2 bytes)
Give the protocols, data unit and address name for network layer.
Protocols: IP/ICMP
Data unit: packet
Address name: IPv4 (4 bytes), IPv6 (16 bytes)
Give the protocols, data unit and address name for data link layer.
Protocols: Ethernet/WiFi/PPP/ARP
Data unit: frame
Address name: MAC address (6 bytes)
Give the protocols and data unit for physical layer.
Protocols: IEEE 802.3
Data unit: bits
The acronym OSI stands for
Open Systems Interconnection, it is a conceptual framework describing how data moves through the network although it is not implemented in real world.
Explain OSI Model.
OSI model is a set of protocols that allows any two different systems to communicate regardless of their underlying architecture.
It consists of 7 layers, which are generally divided into two groups- host layers and media layers:
Host layers- Application, Presentation, Session
Media layers- Transport, Network, Data Link, Physical
Explain Physical Layer.
It is responsible for moving individual bits from one node to the next.
It deals with
- mechanical and electrical specifications of the interface and transmission media.
- bit encoding (electrical/optical)
- transmission rate: bits/sec
- physical topology (mesh/star/ring/bus)
- transmission mode (simplex/half duplex/full duplex)
Explain Data Link Layer.
It is responsible for transforming the physical layer to a reliable link of data and to make physical layer appear error-free to upper layer (Network layer).
It deals with
- Framing : dividing the stream of bits into manageable data units called frames
- Physical addressing: either add address of sender and receiver to the frame or only sender’s address (if broadcast) or address of gateway router (if receiver is not on sender’s network)
- Flow control: if receiver is slower than sender must reduce its transmission speed
- Error control: if a frame is damaged/lost, ask for retransmission. If a frame is duplicated, drop it.
- Access control: if two or more devices are connected to the link, the Data Link Layer protocols decide which device has control over the link
Explain Network Layer.
It is responsible for source to destination delivery of data packets, possibly across multiple links.
It deals with
- Logical addressing: if the receiver and sender are on two different networks
- Routing: sending data packets to different networks through network-connecting devices (routers/switches) by choosing best path
Explain Transport Layer.
It is responsible for process-to-process delivery, making sure that the message is intact and in order.
It deals with
- Sending correct port address
- Segmentation and orderly reassembly of message
- Connection control: connectionless/connection-oriented
- Flow control: if receiver is slower than sender’s transmission speed is managed to match receiver’s receiving speed
- Error control: if a segment is damaged/lost, ask for retransmission.
Explain Session Layer.
It is responsible for establishing, managing and terminating the sessions.
It deals with
- Synchronization
- Interhost communication
- Maintaining session
What are the checkpoints added in Session layer?
If a system is sending a file of 2000 pages, then instead of sending all of it in one batch and checking for error afterwards, a checkpoint can be added after every 100 pages so that error checking is performed after every 100 pages.
If the error is detected, only those 100 pages are retransmitted instead of entire file.
Explain Presentation Layer.
It is responsible for the syntax and semantics of the data.
It deals with
- Encryption and decryption
- Compression
- Data presentation
Explain Application Layer.
It is responsible for providing the user interface and services (such as email) to the end user.
It deals with various services such as email, file transfer etc
Explain how process ‘a’ on client A connects to process ‘j’ on client J.
- The application layer at client A sends the data down to the transport layer which then encapsulates the message with the source and destination port addresses (a and j). A TCP packet is formed at this point.
- Transport layer sends the packet to network layer which encapsulates it in logical addresses (A and J). An IP datagram is formed here.
- Network layer sends the packet to data link layer which encapsulates it in physical (MAC) addresses (20 and 55, lets say). The MAC addresses are generated by consulting ARP table. A frame is formed here.
- Data link layer sends the frame to physical layer which streams the bits to all the routers on its link and the router whose physical address is 55 keeps the packet, all other discard it. If the client J is on same link then router will directly send the packet to client, otherwise will forward it to the next router by changing source and destination address. Source address will be the sending router’s address and destination address will be next router’s address.
- Once we reach the final correct router, the frame is discarded by network layer (getting rid of physical addresses) and logical address is checked. The packet is forwarded to node whose logical address is J.
- When the package reaches J’s transport layer, logical address is discarded and port address is checked. The data is then sent to the port j.
Which layer provides the route determination?
Network layer
Which layer provides the flow control?
Both data link and transport layers
Which layer provides the interface to transmission media?
Physical layer
Which layer provides the access for end user?
Application layer
Which layer provides the reliable process-to-process message delivery?
Transport layer
Which layer provides the route selection?
Network layer
Which layer provides the frame definition?
Data link layer
Which layer provides the user services such as email and file transfer?
Application layer
Which layer provides the transmission of bit streams across physical medium?
Physical layer
Which layer provides the direct communication with user’s application program?
Application layer
Which layer provides the error correction and retransmission?
Transport layer
Which layer provides the mechanical, electrical and functional interface?
Physical layer
Which layer provides the responsibility for carrying frames between adjacent nodes?
Data link layer
Which layer in OSI model provides the formatting and code conversion services?
Presentation layer
Which layer in OSI model provides the establishment, management and termination of services?
Session layer