Chapter 1 Background Flashcards
(75 cards)
What is the OSI Model
- Application Layer
- Presentation Layer
- Session Layer
- Transport Layer
- Network Layer
- Data Link Layer
- Physical Layer
What is the Physical Layer, what occurs in it?
The physical layer is responsbile for sending computer bytes along the network. The signaling annd cables. No protocols in this layer
What is the Data Link Layer, what occurs in it?
This is the foundation of communication. It has a MAC address on the ethernet. It also is the layer that has switches to control and communicate.
What is the Network Layer, what occurs in it?
This is the “routing” layer
Layer of internet Protocol (IP)
Transfer data through the internet
What is the Transport Layer, what occurs in it?
Post Office Layers where parcels are sent.
TCP and UDP protocols
What is the Session Layer, what occurs in it?
This layer has communication management. It has the control protocols such as: Start, Stop, Restart
What is the Presentation Layer, what occurs in it?
This is the encoding layer before the application layer
What is the Application Layer, what occurs in it?
The layer the eyes see.
What is an Internet Socket
This is a communication endpoint, when a social is creation the application gets back a file descriptor it can use.
The 2 Types of Sockets we talked in class
Stream Sockets (TCP)
Datagram Sockets (UDP)
IP Addresses
It is used for Host addressing in IPv4 IPv6.
What are ports used for?
Ports are used for addressing within the transport layer, UDP and TCP have 16 bit source port numbers
Can a socket be “bound to” a single port only?
Yes
If a port has multiple sockets bound to it? how do we know which socket should get the incoming data?
When the host recieves incoming data the OS used the source and dest IP Address along with src and dest port numbers and transport layer protocol identity to demultiplex a particiular socket.
what is the socket() function for TCP and UDP
For TCP, create a “stream” socket
For UDP, create a “Datagram” socket
what is the blind() functions purpose
For both UDP and TCP it associates a socket with a particular port on a local machine
what does the listen() function do
It creates a queue from incoming connections; socket is a passive socket
what is the accept() function
When there is a new connection this will create a new socket. Bound to the same port as the lisenting socket. This is a blocking call
How does demultiplexing work on TCP server?
All new connections are put in the queue for the listening socket bound to the specifed dest port.
All incoming traffic on the connection goes to the socket that was created when the connection was accepted.
What does the recvfrom() function do?
In addtion to data it gives you source ip, and src port number of the recieved UDP segement
What does the sendto() function do?
sends to the specified dest IP
What is tranmission media?
Physical pathways used to transmit signals between devices.
Guided and unguided.
Types of Guided Media?
Twisted Pair
Coaxial Cable
Household Wiring
Optical Fiber
Twisted pair
Pair of insulated copper wires spiralled together. Variables types. Includes telephone wiring