Stephanos
say when @Francesc099
Francesco
Ok, I have translated it. You were very clear, thanks. You can continue
Stephanos
so now we are in the situation, that one guy flicks his switch and the siren rings in all the 3 other guys rooms.
Anonymous
Damn his explanations are good.
Stephanos
that's what we'd call a broadcast
Stephanos
but usually, we only want to send a message to one guy at a time
Stephanos
a so called unicast
Stephanos
so what we would do is, attach an "address" in front of our message we send on the bus. now everyone that doesn't hear his identifier first, might just not listen to the message
Stephanos
looking at modern computers, we would add a "filter" between our databus and our memory. and we would electrically build that filter in a way, that only data gets passed through it, that has our explicit address in it
Stephanos
you need to understand, that right now, we are talking of a physical address, which is electrically embedded into our filter
Stephanos
thats the idea of a MAC address,... somewhat
Stephanos
(even though modern mac filters work somewhat differntly, nevermind, we are talking about primitive computers here)
Stephanos
okay, so now, we have a databus, and we can send messages to this bus, by electrically modifing it
and we can filter out messages, that are meant for us by our mac address
Stephanos
what a great technology!
Stephanos
this second step,... with the mac address.
Stephanos
we'd call it level 2 networking, or: data link layer
Francesco
What a great explanation!
Stephanos
alright, next step
Stephanos
lets assume, that beyond our network-card. (the thing that filters the messages) there are a couple of computers running
Francesco
Alright
Stephanos
or lets say, there are different systems active.
Stephanos
now we would have to decide, with which of those systems we'd like to communicate
Stephanos
so we would just give away addresses for all of the subsystems inside one computer
Stephanos
on software-level
Stephanos
that is where the IP address comes into play.
Stephanos
you don't really need to know where this address comes from, lets just say, a network admin gave it to you to specifically identify a subsystem on your computer
Stephanos
et voila: there you have level 3
Stephanos
the so called network-layer
Stephanos
and there is a great thing happing here!! watch out:
not only, can I send you a message and refer to a specific subsystem on your machine, but also 2 subsystems on the same machine could use these addresses to communicate with oneanother!
Stephanos
okay, but what is this IP address... first of all, it is basically a block of memory, that the OS writes everything to, it receives
Stephanos
not more not less.
Stephanos
clear so far @Francesc099
Francesco
Yeah, you are great
Francesco
I am understanding everything
Stephanos
great!
Stephanos
we could say: that the IP address is like a small channel into your operating system. into your user-space
Stephanos
a piece of memory, that can be written from the outside and read from within the OS
Stephanos
but we still have a problem here. usually, there is not only one process running on an os, using the network. there are 2, 5 or 100 processes all using network
Stephanos
so if a new packet arrives, which process should be notified by the operating system?
Stephanos
believe me @Francesc099 there were times that wasn't that clear and it was a great mess
Stephanos
so the idea people had was.... IF a process, wants to do networking stuff, this process should as the operating system to get its own inbox.
Stephanos
like a parking-slot for a small ship of data
Stephanos
and that way, technology went and we started to call such addresses inside of an operating system Ports
Francesco
Francesco
Stephanos
Protocol?
actually all of the discussed topics ARE protocols
Stephanos
a protocol is just a piece of paper, in which two sides of a communication promise oneanother to only use the specified technologies to communicate ;)
Francesco
Stephanos
on level 1, a protocol could be wifi or cat-cable
Stephanos
on level 2 you could refer to MAC as some kind of protocol (although there are a lot of other things in between like CSMA and all that crazy stuff we won't get into tonight)
Stephanos
on level 3 the protocol we talk is IP
Stephanos
and on level 4, the level we are now on, 2 of the most used protocols are UDP and TCP
Francesco
Stephanos
we also call level 4 the transport-layer... please don't ask me who picked that name.
Francesco
Stephanos
okay. but to conclude, i can send data, via two cabels (eth) to the correct network-card (MAC) which gets forwarded to the correct subsystem (IP) and to a specific process on that IP (Port)
Stephanos
isnt that great?
Stephanos
every time i think about this, i can't believe my own thoughts. its so complex, yet so easy and obvious
Stephanos
we are now starting to touch the crazy protocols.... the level 5. which is the level we would like to operate on
Stephanos
over the last few years, people have started to write so called RFCs.
Francesco
Stephanos
in some of them, people claim to set a fixed port, not for a specific program, but for a specific purpose
Stephanos
so, there are multiple vendors of genuine website-servers
Anonymous
Why do you even giving this shit...
Stephanos
BUT,... if your browser wants to get a text file from a specific IP address, that can be represented as a website, it knows that this webserver will "listen" for incoming calls on Port 80
Stephanos
you get the idea @Francesc099 ?
Stephanos
programs/processes might use ports to communicate
Stephanos
if we want to communicate a special thing, we use a special port
olli
Stephanos
Stephanos
okay.... excercise right now, while I go and get me something to drink, @Francesc099, please find out what we communicate on port 443
Stephanos
😂
Francesco
Stephanos
Stephanos
i am back, how about you?
klimi
klimi is back too, now with double the amount of warnings he gives
Francesco