ANNOUNCEMENT - The community will be down for maintenace this Thursday August 13 from 12:00 AM PT to 02:00 AM PT. As a precaution save your work.
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
347
Views
5
Helpful
4
Replies
Highlighted
Beginner

Where is the network type field in ospf packet capture

Hi!

I can't find the ‘network type’ field in the OSPF Hello packet, How can received router determine which network type interface of his neighbor are? Can someone please tell me?

 

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Collaborator

Re: Where is the network type field in ospf packet capture

 

no, there are no fields for that in Hello packets but OSPF does have several LSA packet types (or codes); we care mostly about Router LSA type 1, Network LSA is 2, Network Summary is 3, 4 , external 5 and 7.

Hello Packets have necessary info to discover OSPF routers such Router and Area IDs, hello and dead timers, DR/BDR, network mask, and others but no ‘network type’.  Timers and DR election (or not) are based on link media type and encapsulation.

After Hellos are exchange, LSA headers are exchanged before each router exchanges all LSA types he knows.

 

Regards, ML
**Please Rate All Helpful Responses **

View solution in original post

4 REPLIES 4
Highlighted
Collaborator

Re: Where is the network type field in ospf packet capture

 

no, there are no fields for that in Hello packets but OSPF does have several LSA packet types (or codes); we care mostly about Router LSA type 1, Network LSA is 2, Network Summary is 3, 4 , external 5 and 7.

Hello Packets have necessary info to discover OSPF routers such Router and Area IDs, hello and dead timers, DR/BDR, network mask, and others but no ‘network type’.  Timers and DR election (or not) are based on link media type and encapsulation.

After Hellos are exchange, LSA headers are exchanged before each router exchanges all LSA types he knows.

 

Regards, ML
**Please Rate All Helpful Responses **

View solution in original post

Highlighted
Collaborator

Re: Where is the network type field in ospf packet capture


no fields for that in Hello packets is why you can mix some types of networks together as long as DR election (or not) matches and if you edit timers to match. i.e. you can set up OSPF on non-broadcast with Broadcast networks after editing timers to mach each others. Or point-to-point with point-to-multipoint.
Highlighted
Collaborator
Collaborator

Re: Where is the network type field in ospf packet capture

Network type is determined from the physical interface type .. e.g. ethernet = broadcast, serial = non-broadcast 

ospf behaviour changes when physical interface type changes e.g. ospf will advertise subnet configured on loopback interface as /32 by default we change that by changing the interface type to point-to-point .. 

Highlighted
VIP Mentor

Re: Where is the network type field in ospf packet capture

If I understand correctly you looking network types - like p2p or p2m scenario. if so here some of the Wireshark capture for your reference, you can view for reference.

 

here is a good explanation :

 

https://ccieblog.co.uk/ospf/ospf-hello-protocol

 

Wireshark samples.

 

https://packetlife.net/captures/protocol/ospf/

 

 

 

BB
*** Rate All Helpful Responses ***