Lecture 2
Lecture 2
Lecture 2
Computer and Network Security Basics
Presented By
Dr.Marwa Sharaf el-Din
Department of Computer Science and Engineering
Faculty of Electronics Engineering
Menoufia University
10/15/2024 1
Types of Networks
The two most common types of network infrastructures are:
6
The Internet
✓ The Internet is defined as a global mesh of interconnected networks.
Intranet and Extranet
Connecting Remote Users to the Internet
Reference Models
10/15/2024 10
Reference Models
▪ A framework (guideline) for network implementation and troubleshooting.
▪ Divides complex functions into simpler components.
✓ Each company that created network hardware and software used its own company
standards.
✓ Therefore, many of the new network technologies were incompatible with each other.
✓ Solution : OSI-RM.
OSI Model
✓ It standardizes network components to allow
multiple vendor development and support.
17
Layer 7: The Application Layer
7 Application •It’s the S\w on our pcs that
is used to represent a user
6 Presentation
interface to the network &
5 Session so aids the user to make
4 Transport applications.
3 Network Examples:
2 Data Link •Email (SMTP,POP3)
•Web browsers (HTTP)
1 Physical
•FTP
•Telnet
Application Layer
Application Translation
ASCII
10 MB
Hello !
Presentation 72 101 108 108 111 1010111100110101
How Are U ? 32 33 32 11 72
111 119 32 65 114 101 Data Compression
32 85 32 63 32 10
3 MB 100101
21
Data Encryption
SSL 011000
Secure
Socket
Layer
Layer 5: The Session Layer
7 Application •Ensure that all information
required for opening a
6 Presentation
session is available.
5 Session •Give orders for:
4 Transport establishment, management,
and termination of the
3 Network session.
2 Data Link
1 Physical
Session Layer
Application
Presentation
Server
Session Computer
Presentation
Flow Control
25
Transport Layer
Application
Segmentation
The Speed Internet
Presentation Of Server is : 150 Mbps
Flow Control
5 Mbps
Transport Computer
Server
50 Mbps
26
Presentation
Flow Control Automatic Repeat Request
Checksum
Transport Port , Port ,
Seq. Seq.
27 Data Unit Data Unit
TCP : Transmission Control Protocol
UDP : User Datagram Protocol
Layer 3: The Network Layer
Transport Packets
29
Network
Network Layer
Application Logical Address
Presentation Routing
Path Determine Facebook 192.168.1.8
Session
255.255.255.0
192.168.1.5
Transport 192.168.1.8
30
Network Network
Network 2
Packets
1
Transport 6
3
31
5
Network Receiver
4
Layer 2: The Data Link Layer
7 Application
6 Presentation Responsible for:
5 Session 1. Hop-to hop data delivery.
2. Hop-to-hop addressing
4 Transport
(MAC Address in Ethernet).
3 Network 3. Hop-to-hop error detection
2 Data Link 4. Hop-to-hop flow control.
1 Physical
Data Link
Application MAC 1 : Sender
Data Packet
Presentation
MAC 2 : Receiver
Transport Frame
Network
Data Link 33
Layer 1: The Physical Layer
7 Application
6 Presentation
It’s responsible for all
5 Session Physical properties of the
4 Transport network :
1. Cable length.
3 Network
2. Cable type.
2 Data Link 3. Bit rate.
4. Voltage levels.
1 Physical
5. H/W interface types.
Physical
Application
Session
Packet
Transport Sender IP Receiver IP Segment Network Layer
Network
Frame
Data Link Sender Receiver 35
MAC MAC
Packet FCS Data Link Layer 5V 1
Physical
Frame Like : 10111001100110011111001010 0
43
TCP vs UDP
44
TCP vs UDP
45
Repeater
46
HUB
1 2
47
3
HUB
48
HUB (layer1 –physical )
49
Bridge
50
Bridge l2
51
SWITCH(l2-datalink)
52
ROUTER(l3-networklayer)
192.168.1.0
10.2.3.0
53
Firewall
54
Firewall
55
BUS Topology
56
Star Topology
57
Ring Topology
58
Mesh Topology
59
Encapsulation
Encapsulation is the process of adding control information as it passes down through the
layered model.
Data Link IP TCP HTTP Data Link
Data Trailer
Header Header Header Header
Server
HTTP Data
Decapsulation
Data Link IP TCP HTTP Data Link
Data Trailer
Header Header Header Header
Client
HTTP Data
Protocol Data Unit (PDU)
Protocol Data Unit (PDU) is The form that a piece of
data takes at any layer. At each stage of the process, a
PDU has a different name to reflect its new appearance.