Why do popular TCP-using services have UDP as well as TCP entries in /etc/services?Why is my TCP throughput much greater than UDP throughput?How to permit any user (mysql, apache, etc) to use any TCP or UDP port?Why is my UDP bandwidth significantly lower than TCP bandwidth in iperfWhy doesn't NAT reserve ports from the machine's TCP and UDP port pool?Unknown runlevel on Ubuntu 14.04, services not starting on bootUsing tc, I want TCP and UDP to use the same bufferWhy do I have 2 SSH services?
What does a textbook look like while you are writing it?
Everyone Gets a Window Seat
Principled construction of the quaternions
Is the "spacetime" the same thing as the mathematical 4th dimension?
French license plates
Parent asking for money after moving out
What's the global, general word that stands for "center tone of a song"?
Would a horse be sufficient buffer to prevent injury when falling from a great height?
What action is recommended if your accommodation refuses to let you leave without paying additional fees?
How to say "respectively" in German when listing (enumerating) things
Why most footers have a background color as a divider of section?
Missing quartile in boxplot
Why the first octet of a MAC address always end with a binary 0?
Why do personal finance apps focus on outgoings rather than income
Does Bank Manager's discretion still exist in Mortgage Lending
Manager told a colleague of mine I was getting fired soon
Sending mail to the Professor for PhD, after seeing his tweet
How to identify whether a publisher is genuine or not?
How is this situation not a checkmate?
IEEE 754 square root with Newton-Raphson
Can anyone give me the reason why music is taught this way?
Phonetic distortion when words are borrowed among languages
How can Germany increase investments in Russia while EU economic sanctions against Russia are still in place?
Booting Ubuntu from USB drive on MSI motherboard -- EVERYTHING fails
Why do popular TCP-using services have UDP as well as TCP entries in /etc/services?
Why is my TCP throughput much greater than UDP throughput?How to permit any user (mysql, apache, etc) to use any TCP or UDP port?Why is my UDP bandwidth significantly lower than TCP bandwidth in iperfWhy doesn't NAT reserve ports from the machine's TCP and UDP port pool?Unknown runlevel on Ubuntu 14.04, services not starting on bootUsing tc, I want TCP and UDP to use the same bufferWhy do I have 2 SSH services?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I'm reading a book on network programming with Go. One of the chapters deals with the /etc/services file. Something I noticed while exploring this file is that certain popular entries like HTTP and SSH, both of which use TCP at the transport layer, have a second entry for UDP. For example on Ubuntu 14.04:
ubuntu@vm1:~$ grep ssh /etc/services
ssh 22/tcp # SSH Remote Login Protocol
ssh 22/udp
ubuntu@vm1:~$ grep http /etc/services
http 80/tcp www # WorldWideWeb HTTP
http 80/udp # HyperText Transfer Protocol
Anyone know why these have two entries? I don't believe SSH or HTTP ever use UDP (confirmed by this question for SSH).
linux networking services protocols
New contributor
add a comment
|
I'm reading a book on network programming with Go. One of the chapters deals with the /etc/services file. Something I noticed while exploring this file is that certain popular entries like HTTP and SSH, both of which use TCP at the transport layer, have a second entry for UDP. For example on Ubuntu 14.04:
ubuntu@vm1:~$ grep ssh /etc/services
ssh 22/tcp # SSH Remote Login Protocol
ssh 22/udp
ubuntu@vm1:~$ grep http /etc/services
http 80/tcp www # WorldWideWeb HTTP
http 80/udp # HyperText Transfer Protocol
Anyone know why these have two entries? I don't believe SSH or HTTP ever use UDP (confirmed by this question for SSH).
linux networking services protocols
New contributor
2
22/udp
was removed in Debian in 2016. IANA still lists 22/udp and lists both udp and tcp for most protocols that are only usually implemented on either one of them. Could just be that it means 22 is reserved for ssh in case somebody wants to implement ssh over udp some day?
– Stéphane Chazelas
8 hours ago
2
See also section 7.1 of rfc6335
– Stéphane Chazelas
7 hours ago
add a comment
|
I'm reading a book on network programming with Go. One of the chapters deals with the /etc/services file. Something I noticed while exploring this file is that certain popular entries like HTTP and SSH, both of which use TCP at the transport layer, have a second entry for UDP. For example on Ubuntu 14.04:
ubuntu@vm1:~$ grep ssh /etc/services
ssh 22/tcp # SSH Remote Login Protocol
ssh 22/udp
ubuntu@vm1:~$ grep http /etc/services
http 80/tcp www # WorldWideWeb HTTP
http 80/udp # HyperText Transfer Protocol
Anyone know why these have two entries? I don't believe SSH or HTTP ever use UDP (confirmed by this question for SSH).
linux networking services protocols
New contributor
I'm reading a book on network programming with Go. One of the chapters deals with the /etc/services file. Something I noticed while exploring this file is that certain popular entries like HTTP and SSH, both of which use TCP at the transport layer, have a second entry for UDP. For example on Ubuntu 14.04:
ubuntu@vm1:~$ grep ssh /etc/services
ssh 22/tcp # SSH Remote Login Protocol
ssh 22/udp
ubuntu@vm1:~$ grep http /etc/services
http 80/tcp www # WorldWideWeb HTTP
http 80/udp # HyperText Transfer Protocol
Anyone know why these have two entries? I don't believe SSH or HTTP ever use UDP (confirmed by this question for SSH).
linux networking services protocols
linux networking services protocols
New contributor
New contributor
edited 5 hours ago
sixty4bit
New contributor
asked 8 hours ago
sixty4bitsixty4bit
1335 bronze badges
1335 bronze badges
New contributor
New contributor
2
22/udp
was removed in Debian in 2016. IANA still lists 22/udp and lists both udp and tcp for most protocols that are only usually implemented on either one of them. Could just be that it means 22 is reserved for ssh in case somebody wants to implement ssh over udp some day?
– Stéphane Chazelas
8 hours ago
2
See also section 7.1 of rfc6335
– Stéphane Chazelas
7 hours ago
add a comment
|
2
22/udp
was removed in Debian in 2016. IANA still lists 22/udp and lists both udp and tcp for most protocols that are only usually implemented on either one of them. Could just be that it means 22 is reserved for ssh in case somebody wants to implement ssh over udp some day?
– Stéphane Chazelas
8 hours ago
2
See also section 7.1 of rfc6335
– Stéphane Chazelas
7 hours ago
2
2
22/udp
was removed in Debian in 2016. IANA still lists 22/udp and lists both udp and tcp for most protocols that are only usually implemented on either one of them. Could just be that it means 22 is reserved for ssh in case somebody wants to implement ssh over udp some day?– Stéphane Chazelas
8 hours ago
22/udp
was removed in Debian in 2016. IANA still lists 22/udp and lists both udp and tcp for most protocols that are only usually implemented on either one of them. Could just be that it means 22 is reserved for ssh in case somebody wants to implement ssh over udp some day?– Stéphane Chazelas
8 hours ago
2
2
See also section 7.1 of rfc6335
– Stéphane Chazelas
7 hours ago
See also section 7.1 of rfc6335
– Stéphane Chazelas
7 hours ago
add a comment
|
1 Answer
1
active
oldest
votes
Basically, it's because that was the tradition from way back when port numbers started being assigned through approximately 2011. See, for example, §7.1 “Past Principles” of RFC 6335. It's possible they will be un-alloced someday, of course, as they're a limited resource (only 1023 available, total).
And, by the way, HTTP/3 runs over UDP. Though it can use any UDP port, not just 80/443. So really those are still unused.
As far as Debian is concerned, its /etc/services
already had 22/udp in 1.0 (buzz 1996).
It was however removed in this commit in 2016, first released in version 5.4 of the netbase
package.
As of writing, the latest stable version of Debian (buster) has 5.6. And the latest Ubuntu LTS (18.04, bionic) netbase package is based on Debian 5.4 and you can see its changelog also mentions the removal of udp/22.
I may be mistaken, but also has to do with firewalls often blocking UDP
– Sergiy Kolodyazhnyy
7 hours ago
@SergiyKolodyazhnyy I'd think not, as this practice predates firewalls.
– derobert
5 hours ago
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
sixty4bit is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f543724%2fwhy-do-popular-tcp-using-services-have-udp-as-well-as-tcp-entries-in-etc-servic%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Basically, it's because that was the tradition from way back when port numbers started being assigned through approximately 2011. See, for example, §7.1 “Past Principles” of RFC 6335. It's possible they will be un-alloced someday, of course, as they're a limited resource (only 1023 available, total).
And, by the way, HTTP/3 runs over UDP. Though it can use any UDP port, not just 80/443. So really those are still unused.
As far as Debian is concerned, its /etc/services
already had 22/udp in 1.0 (buzz 1996).
It was however removed in this commit in 2016, first released in version 5.4 of the netbase
package.
As of writing, the latest stable version of Debian (buster) has 5.6. And the latest Ubuntu LTS (18.04, bionic) netbase package is based on Debian 5.4 and you can see its changelog also mentions the removal of udp/22.
I may be mistaken, but also has to do with firewalls often blocking UDP
– Sergiy Kolodyazhnyy
7 hours ago
@SergiyKolodyazhnyy I'd think not, as this practice predates firewalls.
– derobert
5 hours ago
add a comment
|
Basically, it's because that was the tradition from way back when port numbers started being assigned through approximately 2011. See, for example, §7.1 “Past Principles” of RFC 6335. It's possible they will be un-alloced someday, of course, as they're a limited resource (only 1023 available, total).
And, by the way, HTTP/3 runs over UDP. Though it can use any UDP port, not just 80/443. So really those are still unused.
As far as Debian is concerned, its /etc/services
already had 22/udp in 1.0 (buzz 1996).
It was however removed in this commit in 2016, first released in version 5.4 of the netbase
package.
As of writing, the latest stable version of Debian (buster) has 5.6. And the latest Ubuntu LTS (18.04, bionic) netbase package is based on Debian 5.4 and you can see its changelog also mentions the removal of udp/22.
I may be mistaken, but also has to do with firewalls often blocking UDP
– Sergiy Kolodyazhnyy
7 hours ago
@SergiyKolodyazhnyy I'd think not, as this practice predates firewalls.
– derobert
5 hours ago
add a comment
|
Basically, it's because that was the tradition from way back when port numbers started being assigned through approximately 2011. See, for example, §7.1 “Past Principles” of RFC 6335. It's possible they will be un-alloced someday, of course, as they're a limited resource (only 1023 available, total).
And, by the way, HTTP/3 runs over UDP. Though it can use any UDP port, not just 80/443. So really those are still unused.
As far as Debian is concerned, its /etc/services
already had 22/udp in 1.0 (buzz 1996).
It was however removed in this commit in 2016, first released in version 5.4 of the netbase
package.
As of writing, the latest stable version of Debian (buster) has 5.6. And the latest Ubuntu LTS (18.04, bionic) netbase package is based on Debian 5.4 and you can see its changelog also mentions the removal of udp/22.
Basically, it's because that was the tradition from way back when port numbers started being assigned through approximately 2011. See, for example, §7.1 “Past Principles” of RFC 6335. It's possible they will be un-alloced someday, of course, as they're a limited resource (only 1023 available, total).
And, by the way, HTTP/3 runs over UDP. Though it can use any UDP port, not just 80/443. So really those are still unused.
As far as Debian is concerned, its /etc/services
already had 22/udp in 1.0 (buzz 1996).
It was however removed in this commit in 2016, first released in version 5.4 of the netbase
package.
As of writing, the latest stable version of Debian (buster) has 5.6. And the latest Ubuntu LTS (18.04, bionic) netbase package is based on Debian 5.4 and you can see its changelog also mentions the removal of udp/22.
edited 7 hours ago
Stéphane Chazelas
336k58 gold badges655 silver badges1034 bronze badges
336k58 gold badges655 silver badges1034 bronze badges
answered 7 hours ago
derobertderobert
80.2k9 gold badges179 silver badges236 bronze badges
80.2k9 gold badges179 silver badges236 bronze badges
I may be mistaken, but also has to do with firewalls often blocking UDP
– Sergiy Kolodyazhnyy
7 hours ago
@SergiyKolodyazhnyy I'd think not, as this practice predates firewalls.
– derobert
5 hours ago
add a comment
|
I may be mistaken, but also has to do with firewalls often blocking UDP
– Sergiy Kolodyazhnyy
7 hours ago
@SergiyKolodyazhnyy I'd think not, as this practice predates firewalls.
– derobert
5 hours ago
I may be mistaken, but also has to do with firewalls often blocking UDP
– Sergiy Kolodyazhnyy
7 hours ago
I may be mistaken, but also has to do with firewalls often blocking UDP
– Sergiy Kolodyazhnyy
7 hours ago
@SergiyKolodyazhnyy I'd think not, as this practice predates firewalls.
– derobert
5 hours ago
@SergiyKolodyazhnyy I'd think not, as this practice predates firewalls.
– derobert
5 hours ago
add a comment
|
sixty4bit is a new contributor. Be nice, and check out our Code of Conduct.
sixty4bit is a new contributor. Be nice, and check out our Code of Conduct.
sixty4bit is a new contributor. Be nice, and check out our Code of Conduct.
sixty4bit is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f543724%2fwhy-do-popular-tcp-using-services-have-udp-as-well-as-tcp-entries-in-etc-servic%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
22/udp
was removed in Debian in 2016. IANA still lists 22/udp and lists both udp and tcp for most protocols that are only usually implemented on either one of them. Could just be that it means 22 is reserved for ssh in case somebody wants to implement ssh over udp some day?– Stéphane Chazelas
8 hours ago
2
See also section 7.1 of rfc6335
– Stéphane Chazelas
7 hours ago