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?
109 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
- kernel module does not print packet info
- Packet drops in multicast when multiple instance of listner are running
- Timing packets on a traffic server
- How to use Espresso Idling Resource for network calls
- Dummynet does not match on flows
- Sending a notification from OS X to iOS
- Swift ios viewDidLoad or viewDidAppear
- Update player list on all clients on new connection
- Issues regarding multiplayer networking: input
- nmap does not show all open ports
- Getting and Sending Data between a Server and Client
- Read file from local PC from network deployed app to InputStream
- Does iOS block a URL if we couldn't connect to the URL for 'n' times?
- Is Socket.Available guaranteed to throw a SocketException on disconnect?
- android out of cell service
Related Questions in PROTOCOLS
- Objective-C Reference to object that implements protocol
- Declare conditional delegate methods in iOS
- Object initialization with protocol and class name in swift
- How to get file path in browser (using protocol or other method to get full path)
- call generic function without params
- Why do we send the length of a string in most of the currently protocols
- How to cast controller to a specific protocol instead of a class in Swift?
- Extending Swift's Dictionary to conform to Protocol that requires the use of subscript causes Linker Error
- Benefit of class inheritance, when you could use protocol extensions?
- NSObject class conforms to protocol contained in NSArray with Swift
- Assigning a variable from another class
- Swift protocol extension self reference issues with init
- Swift - Delegates - How do I link the protocol to the implemented delegate methods?
- How to hide the class' properties and methods when defining and using one protocol in the .h file for Objective-C?
- Configure asio context to use tls
Related Questions in ROUTER
- how to hide an id from a joomla url
- Ui-router URL changes, nested view not loading
- Npm requests stopped by home router
- How to find the network router's model programmatically
- Automatically forward ports from clients
- How to know the mount path of router on express?
- AIR server connections
- Build wifi broadcast device?
- Displaying dynamic views for multiple profiles (customers) with AngularJs
- writing koa middleware for fluxible-router (async executeAction)
- angular2 router in service?
- Wifi repeater and captive portal
- Quest for a good xen single ip routing config with port forwarding
- multiple components in the same viewports with new angular router.
- Connecting Devices to Fiddler Without Proxy Changing?
Related Questions in PACKET
- Is it possible to send tcp syn packet with payload by using WFP?
- UDP sending and receiving lists
- TCP packet transmission time and frequency
- Packet Tunnel Provider in iOS 9
- Python dpkt with pcap - how can I print the packet data?
- Create kernel UDP packet and send
- Detect DataInputStream end of stream
- java - android UDP unreliability
- Can't Parse DHCP packets with Ryu's get_protocol(dhcp.dhcp)
- MQTT QoS2 why use 4 packets?
- sendto() return error code ENETDOWN
- How can i capture the packet per process (Pid)
- Packet sniffer in python3
- how to get protocol details from packets stored in a pcap file
- Raw packet creation causing IP fields to be incorrect order
Related Questions in OSPF
- Packets generated by C program cannot reach router in GNS3
- How is the ospf checksum calculated?
- how to implement OSPF using Ns-2
- Juniper: How to see OSPF routes that didn't make the routing table
- Why is OSPF needed?
- How to configure FRR OSPF so that the route is advertised by the OSPF daemon but not added in the linux routing table?
- How a router decides that this packet is of a particular protocol?
- Prioritising OSPF Packets
- should i enable OSPF on core switch or on Edge switch?
- OSPF area topology
- Calculate LSA checksum in OSPF
- name 'OSPF_Link' is not defined
- Must any router belong to one area at last in OSPF
- How to apply the OSPF patch to ns2 2.35 on ubuntu 14.04
- why my raw socket recv() seemed to get nothing?
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 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.