Networks Flashcards
What is a network?
A connection between at least two nodes through a communication link
Network edge
End nodes (like client and server)
Network core
Interconnecting devices (like switch, hub, router)
Define hub
Interconnecting device. Whatever messages come in one port are sent to all other ports, does NOT allow direct device to device communication. Uses broadcast messages only. Looks at MAC address only.
Define switch
Interconnecting device. A smart hub. Keeps track of which devices are on which ports and only sends messages to the right ports. Device to device communication. Uses unicast messages. Looks at MAC address only.
Router
Interconnecting device. Uses IP addresses.
Port
Logical construct that identifies a specific process of the type of network service
Does the port number need to be unique within a device? Does it need to be unique BETWEEN devices?
Yes (same building, diff apt #)
No (diff building, same apt #)
Common port numbers
HTTP: 80
HTTPS: 443
SMTP: 25
FTP: 21
DNS: 53
DHCP -> Client: 68, Server: 67
SSH: 22
Telnet: 23
OSI Model
- Application - enables user to access the network of the internet resources (browser, email, etc)
- Presentation - encoding, encryption, data compression. computer language is binary so conversion happens here.
- Session- it’s in charge of establishing and terminating the communication session
- Transport - provides end to end, host to host, process to process communication
- Network - sends data over multiple networks using the IP address
- Data Link - responsible for moving data from one node to the next one
- Physical - where the encoding and decoding process will be performed
How are encoding in physical layer and encoding in presentation layer different in OSI Model?
In presentation, you convert from regular to binary language. In physical, we convert from binary to signals and vice versa.
- Application Layer - TCP/IP Model
Enables user to access the internet resources.
Main protocols: FTP (file transfer), SSH/telnet (remote access), HTTP (hypertext transfer protocol), HTTPs (secure), SMTP (email), DNS (map domain name to IP address), DHCP (assigns IP addresses to the hosts/machines)
- Transport Layer - TCP/IP Model
Provides end to end, host to host, process to process delivery of the message.
Functions: Port addressing, segmentation and reassembly, connection control.
Connection oriented - error control, flow control, congression control
Network Layer - TCP/IP Model
Sending the messages over multiple networks using the IP addresses of the source machine and the destination machine
Functions: Logical addressing (IP address) and routing (finding the best route from source to destination)
Versions of IP
IPv4 - 32 bits, 4 Bytes.
IPv6 - 16 Bytes
Private IP vs Public IP
Data Link Layer - TCP/IP Model
Responsible for moving data from one node to the next node. Link to link.
Main functions: framing and physical addressing. Physical addressing assigns the MAC (physical) address to the message.
-MAC address is a hard coded address on the network card. It’s fixed. 6 Bytes.
IP address will be changed all the time.