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.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

TCP/IP Model Layers

A
  1. Application
  2. Transport
  3. Network
  4. Data Link
  5. 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Application Layer

A
  • High-level functionality to end users

- Data unit: message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Application Layer - Protocols

A
  • File transfer: FTP, SSH
  • Email: SMTP, POP3, IMAP4
  • Webpage: HTTP, HTTPS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Transport Layer

A
  • Functionality to transmit messages between any two programs
  • Data unit: segment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Transport Layer - Socket

A
  • Identifier for an application process on a network

- Combination of IP address and port number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Transport Layer - Protocols

A
  • Transmission Control Protocol (TCP)

- Universal Datagram Protocol (UDP)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Transport Layer - Handshake (TCP)

A
  1. A sends B a packet with the SYN bit set
  2. B responds to A with its own SYN packet; ACK bit is now set
  3. A responds to B’s SYN with its own ACK
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Network Layer

A
  • Functionality to determine a route between any two devices

- Data unit: packet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Network Layer - Switching

A
  • Method used to transmit data over a network to destination network devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Network Layer - Circuit Switching

A
  • Two nodes establish a dedicated communication channel before transmitting data
17
Q

Network Layer - Packet Switching

A
  • Data is broken into small units (packets)
  • Each packet takes the best route available and travels independently to reach destination device
  • Preferred over circuit switching as it determines the best routes between two hosts
18
Q

Network Layer - Packet Switching Advantages

A
  • Efficient as each packet finds the fasteset route

- More secured since it is harder to attack multiple routes

19
Q

Network Layer - Packet Switching Disadvantages

A
  • Sequence of packets are altered and requires assembly at destination device