Structure of Network Flashcards
1
Q
What is protocol?
A
Set of rules for data transmission which are agreed upon by both sender and receiver (data format, type, size etc.)
2
Q
Reasons for layering
A
- Simplifies network model
- Provides design modularity
- Enables programmers to specialise in a particular layer of the model
- Allows for standardised interfaces to be produced by networking vendors
3
Q
TCP/IP Model Layers
A
- Application
- Transport
- Network
- Data Link
- Physical
- Each layer only communicates with adjacent layers
- At each layer, as required by the protocol, headers with relevant information are added to the data unit in the sender’s process, while removed from the data unit in the receiver’s process
4
Q
Application Layer
A
- High-level functionality to end users
- Data unit: message
5
Q
Application Layer - Protocols
A
- File transfer: FTP, SSH
- Email: SMTP, POP3, IMAP4
- Webpage: HTTP, HTTPS
6
Q
Transport Layer
A
- Functionality to transmit messages between any two programs
- Data unit: segment
7
Q
Transport Layer - Port Number
A
- Number representing a process running on a network
- In every data segment, both source and destination port are embedded in the header
- Commonly used ports: port 80 - HTTP; port 143 - IMAP; port 53 - DNS
8
Q
Transport Layer - Socket
A
- Identifier for an application process on a network
- Combination of IP address and port number
9
Q
Transport Layer - Protocols
A
- Transmission Control Protocol (TCP)
- Universal Datagram Protocol (UDP)
10
Q
Transport Layer - TCP
A
- Uses three-way-handshake to establish a connection before data transmission
- Break up data into segments with sequential numbers for reassembly at the receiver
- This ensures security and validation of the data
- Data can be sent only after handshake completes
- Preferred over UDP as it establishes connection between applications of two hosts
11
Q
Transport Layer - Handshake (TCP)
A
- A sends B a packet with the SYN bit set
- B responds to A with its own SYN packet; ACK bit is now set
- A responds to B’s SYN with its own ACK
12
Q
Transport Layer - Sequencing (TCP)
A
- Data is transmitted in many segments at this layer; they may not arrive in the same order they were sent
- TCP places a sequential number on each segment when they were sent for receiver to reorder
13
Q
Transport Layer - UDP
A
- No waiting time for connection (connectionless)
- Stability and reliability may be missing
- Applicable when performance is more important than the ability to receive all data
- Example: streaming media
14
Q
Network Layer
A
- Functionality to determine a route between any two devices
- Data unit: packet
15
Q
Network Layer - Switching
A
- Method used to transmit data over a network to destination network devices