How are protocols used encoded in the data send over them?










0















I was reading answers to this this SO question explaining how the firewall will take certain actions dependent on the protocol data was sent over (such as FTP vs HTTP, etc.). In addition, the router will have the data rerouted differently dependent on whether it is UDP port X or TCP port X.



1) Is there a standard for encoding what protocol data was sent over in the data itself?



2) Are the protocols for all layers (1-7 in the OSI model) encoded in the message, or just certain layers such as transport layer and application layer?










share|improve this question
























  • (1) No; (2) no; (3) the OSI model does not apply to TCP/IP; (4) off topic.

    – user207421
    Nov 15 '18 at 3:21











  • @user207421 If there is no standard, how can the protocol that the client uses be determined?

    – TheeNinjaDev
    Nov 15 '18 at 3:39











  • The protocol is associated with the port number.

    – user207421
    Jan 31 at 1:12











  • "the router will have the data rerouted differently dependent on whether it is UDP port X or TCP port X." Routers route packets based on the destination layer-3 address and its match in the routing table, not on the transport protocol address, which is not in the routing table.

    – Ron Maupin
    Feb 7 at 23:31















0















I was reading answers to this this SO question explaining how the firewall will take certain actions dependent on the protocol data was sent over (such as FTP vs HTTP, etc.). In addition, the router will have the data rerouted differently dependent on whether it is UDP port X or TCP port X.



1) Is there a standard for encoding what protocol data was sent over in the data itself?



2) Are the protocols for all layers (1-7 in the OSI model) encoded in the message, or just certain layers such as transport layer and application layer?










share|improve this question
























  • (1) No; (2) no; (3) the OSI model does not apply to TCP/IP; (4) off topic.

    – user207421
    Nov 15 '18 at 3:21











  • @user207421 If there is no standard, how can the protocol that the client uses be determined?

    – TheeNinjaDev
    Nov 15 '18 at 3:39











  • The protocol is associated with the port number.

    – user207421
    Jan 31 at 1:12











  • "the router will have the data rerouted differently dependent on whether it is UDP port X or TCP port X." Routers route packets based on the destination layer-3 address and its match in the routing table, not on the transport protocol address, which is not in the routing table.

    – Ron Maupin
    Feb 7 at 23:31













0












0








0








I was reading answers to this this SO question explaining how the firewall will take certain actions dependent on the protocol data was sent over (such as FTP vs HTTP, etc.). In addition, the router will have the data rerouted differently dependent on whether it is UDP port X or TCP port X.



1) Is there a standard for encoding what protocol data was sent over in the data itself?



2) Are the protocols for all layers (1-7 in the OSI model) encoded in the message, or just certain layers such as transport layer and application layer?










share|improve this question
















I was reading answers to this this SO question explaining how the firewall will take certain actions dependent on the protocol data was sent over (such as FTP vs HTTP, etc.). In addition, the router will have the data rerouted differently dependent on whether it is UDP port X or TCP port X.



1) Is there a standard for encoding what protocol data was sent over in the data itself?



2) Are the protocols for all layers (1-7 in the OSI model) encoded in the message, or just certain layers such as transport layer and application layer?







http networking tcp network-protocols application-layer






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 7 at 23:19









user207421

264k25215363




264k25215363










asked Nov 15 '18 at 2:40









TheeNinjaDevTheeNinjaDev

2501314




2501314












  • (1) No; (2) no; (3) the OSI model does not apply to TCP/IP; (4) off topic.

    – user207421
    Nov 15 '18 at 3:21











  • @user207421 If there is no standard, how can the protocol that the client uses be determined?

    – TheeNinjaDev
    Nov 15 '18 at 3:39











  • The protocol is associated with the port number.

    – user207421
    Jan 31 at 1:12











  • "the router will have the data rerouted differently dependent on whether it is UDP port X or TCP port X." Routers route packets based on the destination layer-3 address and its match in the routing table, not on the transport protocol address, which is not in the routing table.

    – Ron Maupin
    Feb 7 at 23:31

















  • (1) No; (2) no; (3) the OSI model does not apply to TCP/IP; (4) off topic.

    – user207421
    Nov 15 '18 at 3:21











  • @user207421 If there is no standard, how can the protocol that the client uses be determined?

    – TheeNinjaDev
    Nov 15 '18 at 3:39











  • The protocol is associated with the port number.

    – user207421
    Jan 31 at 1:12











  • "the router will have the data rerouted differently dependent on whether it is UDP port X or TCP port X." Routers route packets based on the destination layer-3 address and its match in the routing table, not on the transport protocol address, which is not in the routing table.

    – Ron Maupin
    Feb 7 at 23:31
















(1) No; (2) no; (3) the OSI model does not apply to TCP/IP; (4) off topic.

– user207421
Nov 15 '18 at 3:21





(1) No; (2) no; (3) the OSI model does not apply to TCP/IP; (4) off topic.

– user207421
Nov 15 '18 at 3:21













@user207421 If there is no standard, how can the protocol that the client uses be determined?

– TheeNinjaDev
Nov 15 '18 at 3:39





@user207421 If there is no standard, how can the protocol that the client uses be determined?

– TheeNinjaDev
Nov 15 '18 at 3:39













The protocol is associated with the port number.

– user207421
Jan 31 at 1:12





The protocol is associated with the port number.

– user207421
Jan 31 at 1:12













"the router will have the data rerouted differently dependent on whether it is UDP port X or TCP port X." Routers route packets based on the destination layer-3 address and its match in the routing table, not on the transport protocol address, which is not in the routing table.

– Ron Maupin
Feb 7 at 23:31





"the router will have the data rerouted differently dependent on whether it is UDP port X or TCP port X." Routers route packets based on the destination layer-3 address and its match in the routing table, not on the transport protocol address, which is not in the routing table.

– Ron Maupin
Feb 7 at 23:31












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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/3.0/"u003ecc by-sa 3.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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311655%2fhow-are-protocols-used-encoded-in-the-data-send-over-them%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311655%2fhow-are-protocols-used-encoded-in-the-data-send-over-them%23new-answer', 'question_page');

);

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







Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo