this post was submitted on 04 May 2024
1 points (54.5% liked)

No Stupid Questions

34964 readers
530 users here now

No such thing. Ask away!

!nostupidquestions is a community dedicated to being helpful and answering each others' questions on various topics.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must be legitimate questions. All post titles must include a question.

All posts must be legitimate questions, and all post titles must include a question. Questions that are joke or trolling questions, memes, song lyrics as title, etc. are not allowed here. See Rule 6 for all exceptions.



Rule 2- Your question subject cannot be illegal or NSFW material.

Your question subject cannot be illegal or NSFW material. You will be warned first, banned second.



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Questions which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding META posts and joke questions.

Provided it is about the community itself, you may post non-question posts using the [META] tag on your post title.

On fridays, you are allowed to post meme and troll questions, on the condition that it's in text format only, and conforms with our other rules. These posts MUST include the [NSQ Friday] tag in their title.

If you post a serious question on friday and are looking only for legitimate answers, then please include the [Serious] tag on your post. Irrelevant replies will then be removed by moderators.



Rule 7- You can't intentionally annoy, mock, or harass other members.

If you intentionally annoy, mock, harass, or discriminate against any individual member, you will be removed.

Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.



Rule 8- All comments should try to stay relevant to their parent content.



Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- Majority of bots aren't allowed to participate here.



Credits

Our breathtaking icon was bestowed upon us by @Cevilia!

The greatest banner of all time: by @TheOneWithTheHair!

founded 1 year ago
MODERATORS
 

Why doesn't every computer have 256 char domain name, along with a private key to prove it is the sole owner of the address?

Edits: For those technically inclined: Stuff like DHCP seems unnecessary if every device has a serial number based address that's known not to collide. It seems way more simple and faster than leasing dynamic addresses. On top of that with VOIP I can get phone calls even without cell service, even behind a NAT. Why is the network designed in such a way where that is possible, but I can't buy a static address that will persist across networks endpoint changes (e.g. laptop connecting to a new unconfigured wifi connection) such that I can initiate a connection to my laptop while it is behind a NAT.

  • Yes, it would be a privacy nightmare, I want to know why it didnt turn out that way
  • When I say phone number, I mean including area/country code
  • AFAIK IP addresses (even static public ones) are not equivlent to phone numbers. I don't get a new phone number every time I connect to a new cell tower. Even if a static IP is assigned to a device, my understanding is that connecting the device to a new uncontrolled WiFi, especially a router with a NAT, will make it so that people who try to connect to the static IP will simply fail.
  • No, MAC addresses are not equivalent phone numbers. 1. Phone numbers have one unique owner, MAC addresses can have many owners because they can be changed at any time to any thing on most laptops. 2. A message can't be sent directly to a MAC address in the same way as a phone number
  • Yes, IMEI is unique, but my laptop doesn't have one and even if it did its not the same as an eSim or sim card. We can send a message to an activated Sim, we can't send a message to an IMEI or serial number
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 4 months ago (3 children)

They do, it's called an IP address.

Phones get numbers assigned to them by a cell service provider, in order to communicate on their network, which is basically the exact process for computers and IP addresses.

If you're asking about the equivalent of like a SIM card, in the computer/internet world, that's handled at higher layers, by digital certificates. And again, the process is almost exactly the same, except they don't (usually) get put on physical chips.

[–] [email protected] 1 points 4 months ago

Except you can spoof an IP address or get another one from the ISP just by asking. You can spoof a MAC address too.

Intel introduced unique processor id's back in the late 90s.

[–] [email protected] 0 points 4 months ago (1 children)

IP address is really the best comparison here. Some computers share an IP just like entire call centers may share the same phone number. And neither IP addresses and packets nor phone numbers are properly authenticated without additional enforcement systems.

Internal networks exist for computers and phones. It’s a nice parallel.

[–] [email protected] -1 points 4 months ago (2 children)

No, computers can’t share IPs

[–] [email protected] 0 points 4 months ago (1 children)

They can share the same router and therefore have the same public IP.

[–] [email protected] -1 points 4 months ago

Yes, but no. The public IP is that of the router, which NATs packets to each host, each of which must have a unique private IP. The public IP does not reference or identity hosts behind the router.

[–] [email protected] 0 points 4 months ago (1 children)

Sure they can. If you put a network behind a router they will share an egress/ingress IP. And there are certain high availability setups where computers share IPs in the same subnet for hot/standby failover.

[–] [email protected] -1 points 4 months ago (2 children)

Yes, but no. The public IP is that of the router, which NATs packets to each host, each of which must have a unique private IP. The public IP does not reference or identity hosts behind the router. And that’s not how HA works. Only one host is assigned the active IP at one time.

[–] [email protected] 0 points 4 months ago (1 children)

When you do call routing with a PBX each phone has an unique extension, equivalent to the private IP of each host.

Oh, and there's also anycast, which is literally multiple active devices sharing an IP.

[–] [email protected] -1 points 4 months ago (1 children)

You’d have to know more about BGP to know any cast doesn’t function as you think it does

[–] [email protected] 0 points 4 months ago (1 children)

Ah, I see we are resorting to ad hominem attacks now.

[–] [email protected] -1 points 4 months ago
[–] [email protected] -1 points 4 months ago (1 children)

So computers can share IP's then right? By your example they are sharing their public IP. From the perspective of the server you are connecting to, all the machines on your LAN have the same IP. Same way multiple physical phones can be connected to a single landline, all those phones share the same number.

[–] [email protected] 1 points 4 months ago

No, not the same

[–] [email protected] 0 points 4 months ago* (last edited 4 months ago) (1 children)

Cell phones don't get a new phone number every time they switch cell towers, so why do laptops.

Its not like I can write down the IP address of my friends laptop so I can send it a message once he gets to a new city. Right?

[–] [email protected] 0 points 4 months ago (1 children)

Laptops don't get a new IP address every time they switch from one AP to another in the same network either. Your cell phone will get a new IP address if it switches to a different cell network.

[–] [email protected] 0 points 4 months ago (1 children)

I can get VOIP calls behind a NAT without cell service. I'm asking how is that possible. Is the router somehow part of the same AP as cell service?

[–] [email protected] 0 points 4 months ago (1 children)

Whoa, that's a sizeable edit to the post! Regardless the answer is pretty straightforward: your VOIP client (either the device if you have one or the software) is connected to a VOIP service which acts like a gateway for your client. Since the client initiated the connection to the gateway and is keeping it alive, you don't need to make any network changes. Once the connection is established, standard SIP call flows (you can Google that for flow diagrams) are followed.

So no, you router is not part of the cell service. The VOIP provider is part of a phone service that receives calls and routes them for you, just like the cell towers are part of a telephony provider that routes calls through the appropriate tower.

[–] [email protected] -1 points 4 months ago* (last edited 4 months ago) (1 children)

Finally :D thank you so much!

So basically VOIP is "cheating" because its not actually handled by the network directly, the phone company pays for always-online servers, and phone(s) reach out to those server every time they change networks, in order for servers to be able to route calls to them.

Which also means! it is possible to do the same thing for computers, but it requires having

  1. A static IP
  2. An always online server
  3. The device needs a daemon that tries to connect to an always online server, and authenticates itself
  4. That server needs to manually reroute traffic (through a VPN or some other means) from the static IP address to the device, wherever it might be

Which also explains why general network providers wouldn't want to create the infrastructure. Even if universal addresses were given to each device, which simplifies DHCP and address-leasing, and shortens time it takes to handshake with the network, all of that is less of a cost than the infrastructure needed track of devices as they change networks. (And that's on top of ISP's being slow to change from the legacy approach of local networks and desktops).

^ which is more the conversation I wanted to have but didnt really get with this post.

Thats a sizable edit!

Yeah 😅 I didnt want it to be this complicated of a question, but I didnt see how else to explain that current addressing systems don't meet the same need as a phone number.

[–] [email protected] 1 points 4 months ago
  1. A static IP is actually not necessary, but what you need is a consistent identifier. For the server, that's typically a DNS address, but for clients and peer to peer networks there's other ways to identify devices, usually tied to an account or some other key kept on the device.
  2. For centralised communications yes, you would need an always online server. For decentralised networks, you just need a sufficient amount of online peers, but each individual peer does not need to be always online.
  3. Pretty much, yes. Even push notifications on cell phones work this way.
  4. Route, yes. Manually. VPN is usually not necessary. In modern web-based services this is typically done with websockets, which are client-initiated (so the client address can change), and which allow two-way communication and typically only require a keepalive packet from the client every minute or so.

There's other reasons why universal addressing is not done - privacy, network segmentation, resiliency, security, etc. And while IPv6 proponents do like to claim that local networks wouldn't be strictly necessary (which is technically true), local networks will still be wanted by many. Tying this back to phone numbers - phone numbers work because there's an implicit trust in the telcos, and conversely there's built in central control. It also helps that it's only a very domain specific implementation - phone communication specifications don't change very often. On computer networks, a lot of work has been done to reduce the reliance on a central trust authority. Nowadays, DNS and SSL registries are pretty much the last bastion of such an authority, with a lot of research and work having gone into being able to safely communicate through untrusted layers: GPG, TOR, IPFS, TLS, etc.