Giter Site home page Giter Site logo

Comments (17)

matuskaacc avatar matuskaacc commented on August 17, 2024 1

sip_invite_fragments_not_reassembling.zip
This is the pcap with the two packets parts of UDP SIP Invite fragmented that isn't working the reassembling. thank you.

from captagent.

lmangani avatar lmangani commented on August 17, 2024

The issue is indeed packet fragmentation. The reasm parameter only affects UDP packets, while for TCP you need to also enable tcpdefrag. If none works, I would suggest attempting the same with heplify to determine if this is a bug or some other issue.

from captagent.

matuskaacc avatar matuskaacc commented on August 17, 2024

Thank you for your quick response. I noticed in source SIP signaling that isn’t receiving some of fragmented packets. In Wireshark it’s just cames one packet of this Invite message with fragment-offset = 1480. I am not seeing the packet with fragment-offset=0. I will open a ticket with the switch supplier to understand this behavior in the mirror process.

from captagent.

kYroL01 avatar kYroL01 commented on August 17, 2024

Most likely you're not receiving the last fragment, the one with fragment-offset = 0, but only the first one (fragment-offset = 1480).

Thank you

from captagent.

matuskaacc avatar matuskaacc commented on August 17, 2024

After checking more carefully, wireshark did not show off-set because it had the default reasemble configuration. When I disabled this option I was able to check the part of the fragment with off-set=0. So what could be causing this Invite message to not be sent to these fragmented UDP packets received even with the reasm parameter enabled?

from captagent.

kYroL01 avatar kYroL01 commented on August 17, 2024

It's very hard to say. reasm = true should do the trick.
I will retest my lab and see if I discover something.

from captagent.

kYroL01 avatar kYroL01 commented on August 17, 2024

@matuskaacc I just tested and for me it works fine. I import a fragmented INVITE and I see it reassembled.
Just to test, can you please try to remove the value inside filter and try it again ?
Thank you

from captagent.

matuskaacc avatar matuskaacc commented on August 17, 2024

Thank you. Could you show here how your socket_pcap file that you tested was configured?

from captagent.

kYroL01 avatar kYroL01 commented on August 17, 2024
<profile name="socketspcap_sip" description="HEP Socket" enable="true" serial="2014010402">
	    <settings>
		<param name="dev" value="eth0"/>
		<param name="promisc" value="true"/>
		<param name="reasm" value="true"/>
		<param name="websocket-detection" value="false"/>
		<param name="tcpdefrag" value="false"/>
		<param name="erspan" value="false"/>
	        <!-- <param name="capture-filter" value="ip_to_ip"/> -->
		<param name="capture-plan" value="sip_capture_plan.cfg"/>
		<param name="filter">
		    <value>port 5060</value>
		</param>
	    </settings>
	</profile>

Have you already tried to remove the BPF filter and retest ?
Remove the filter part and give it another shot.

from captagent.

matuskaacc avatar matuskaacc commented on August 17, 2024

How could i remove all BPF?
I have tried edit with this config:
image

but its ocurring this error:

image

from captagent.

kYroL01 avatar kYroL01 commented on August 17, 2024

Just remove these lines

                <param name="filter">
		    <value>port 5060</value>
		</param>

from captagent.

matuskaacc avatar matuskaacc commented on August 17, 2024

Its ocurring this error removing BBF filter

image

from captagent.

kYroL01 avatar kYroL01 commented on August 17, 2024

Yes because we're ingesting all the traffic with no filter, so some bad packets also arrive and create issues.
Anyway, if you have the correct IPV4 SIP fragments it should work, is still unclear why it does not.
Does this traffic have anything particular that you can spot ? I'm also happy to take a look.

from captagent.

kYroL01 avatar kYroL01 commented on August 17, 2024

I see this traffic has VLAN layer. Have you tried to use this filter in socket_pcap.xml ?

<param name="filter">
         <value>vlan and port 5060</value>
</param>

from captagent.

matuskaacc avatar matuskaacc commented on August 17, 2024

I tried this sugestion with vlan and port in filter configuration but didn't work. Heplify is working nice
./heplify -i enp129s0f0 -pr 5060-5500 -hs 127.0.0.1:9060 -sipassembly true -dim OPTIONS,NOTIFY

from captagent.

kYroL01 avatar kYroL01 commented on August 17, 2024

Ah, wait wait, now it makes sense: you're using -sipssembly which reassemble the out of order SIP at application level, not transport level, which is not implemented in Captagent.

BTW this does not reflects the pcap you shared, that it must be reassembled with no issue on Captagent.

Just to try, could you please remove the -sipassembly from the heplify command and see if it's still working fine or not ?

Thank you

from captagent.

matuskaacc avatar matuskaacc commented on August 17, 2024

When i remove the -sipassembly works nice also.Then the parameter -sipassembly doesn't make diference to heplify processing complete Invite. Have you tested with my pcap file if captagent is processing all Invite with SDP?

from captagent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.