So as per my knowledge the port number is responsible for understanding the protocol type but I am still confused as it is not mentioned in the packet. I might sound dumb but I just want to know how the received packet is determined for a particular protocol like ospf.
How a router decides that this packet is of a particular protocol?
110 Views Asked by asp AtThere are 2 best solutions below
Ron Maupin
On
Port numbers are layer-4 addresses for some transport protocols, but routing only happens with layer-3 (IP) addresses. Routers no nothing about port numbers. Routers do not look at the packet payload, only the IP header.
OSPF does not use port numbers (it has its own transport protocol). The Protocol field in the IPv4 header (Next Header filed in the IPv6 header) tells the destination IP process to which process it should send the packet payload.
If the router itself is the destination, its IP process will send the packet payload to the process of the Protocol (Next Header) field. Routing protocols are applications running on a router to exchange routing information between routers, but routing protocols don not route. Routing happens based on the routing table, and routing protocols are one of the ways a routing table may get populated, but routing protocols are not involved in the routing.
Related Questions in NETWORKING
- How to avoid duplicates with the pull-based subscribe model?
- How to simulate CSMA/CD protocol in ns3?
- Network System - Cisco Packet Tracer
- Adhoc / mesh network not working (with and without batman-adv)
- Algorithm for finding a subset of nodes in a weighted connected graph such that the distance between any pair nodes are under a postive number?
- Python Client-Server Communication with Protocol
- I registered a service in eureka which is resolving through java code. But it is not able to resolve its name when hitting through chrome or postman
- Share files from the server without data or internet usage
- Player names not synchronizing in unity Mirror Networking
- My phone can not visit the server on macos in the same local network
- Unable to ping remote websites from an ipV6 only ubuntu ec2 Instance
- Linux Networking - Routing packets from one network interface to another
- wrong output from Supernetting algorithm
- Mapping localhost port on host to docker container
- Microsoft Message Analyzer disable resolving IP address to their domain names a.k.a turn off AutoIP feature
Related Questions in PROTOCOLS
- Python Client-Server Communication with Protocol
- Protocol 43200 after unpacking received data
- Creating a Public Typealias to Combine Multiple Protocols in One Swift Package/Target and Conforming to It in Other Targets
- Automotive: Can we design a secured PDU which is beyond 8 bytes and send it using CAN TP?
- Subtle protocol difference
- What type of communication protocol should I use for a shortlived data stream to an web application
- Firefox - Allowing about: protocol
- How to scan and message devices connected to OpenThread border router from Android app?
- v2gexi protocol Data parshing from pcap file
- "Encountering 'protocol busy' error with node-open-protocol-desoutter in Node.js when performing screwing actions
- Cannot Convert Custom ExpyTableView Type in Swift
- Swift: Singleton class "extends" from protocol
- Use a protocol rather than a struct as an (optional array) extension?
- Is there a way to encapsulate certain properties in a Swift protocol so they aren't visible to users of the protocol?
- Understanding “Finding the Dynamic Type in a Generic Context”
Related Questions in ROUTER
- Hosting nextjs with nodejs as a backend locally
- next js route groups issue
- Vue router path matching behaviour
- What is vue router :matchRest(.*)* and when should I use it?
- How to set up URL redirection on D-Link router for specific domain?
- Why we say "Every Fragment-Offset except the last one, must contain a multiple of 8 bytes of data. In IPv4 header
- Angular router can't match routes after update (v14 -> v17)
- Accessing locale in nextJS 14 App Directory
- How to Integrate Contentful and Next.js App Router
- Router.Navigate from Angular Library Doesn't Work
- Nextjs issue with Server-Side Rendering
- when return chain.filter(exchange) the request is not terminated ,still running even executing all filters in Spring cloud gateway
- Routes Problem with node.js 404 not found
- in express how to execute a function (like db commit) only after successful response is sent?
- Prevent Blazor Router to found some components with @page directive
Related Questions in PACKET
- Network System - Cisco Packet Tracer
- data transfer to ip address using osi model
- C# Packet Send to Game Client
- Is it posible to modify packets that creats by request python module?
- trying to send TCP packet and recieve it back and count time in client+server app
- scapy custom source address shows failure
- dpdk-dumpcap not capturing incoming packets on the port
- Monitor mode / packet injection not working
- UDP Commmunication Data Lost
- Is there anyway to view the data rate per packet or packet transmission duration? - Wireshark
- ICMP Types and ID
- pf.conf in QNX Neutrino blocks every packet for my aliased IP
- Trex Traffic generator in AWS
- Minecraft server returns error after sending LoginStart packet
- Displaying what each Hex Byte Represents in a Network Packet Hex Dump
Related Questions in OSPF
- routing based on incoming interface
- why my raw socket recv() seemed to get nothing?
- establishing DHCP's setting up OSPF, and loopbacks in a small network with a switch
- Prioritising OSPF Packets
- How a router decides that this packet is of a particular protocol?
- How to configure FRR OSPF so that the route is advertised by the OSPF daemon but not added in the linux routing table?
- Juniper: How to see OSPF routes that didn't make the routing table
- How activate OSPF in a router Cisco-IOS-XE using RESTCONF?
- Why cant Routing Information Protocol RIP (distance-vector routing protocol) use Dijkstra instead of bellman ford?
- How to remove lans from OSPF config
- OSPF area topology
- about ibgp config and ping Time exceeded: Hop limit
- OSPF unnumbered No ping between Switch and Vm possible
- Where are the Designated Router in this picture?
- Loop thru the interfaces in the config file. If an interface is found that is not configured with authentication, then display result
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
When you configure a router, you choose the routing protocol it will use for routing packets. Dynamic routing protocols, as OSPF or RIP, are not a property of the packet, but of the router.
Routing packets occurs in level 3 (network layer) in OSI Model, but protocols as HTTP, FTP and IMAP, for example, are in level 7 (application layer), and uses ports for organizing and filtering network traffic.