首页 \ 问答 \ 为什么iftop没有显示组播IP的带宽,但tcpdump呢?(Why does iftop show no bandwidth from a multicast IP but tcpdump does? ffmpeg also cannot capture from the multicast)

为什么iftop没有显示组播IP的带宽,但tcpdump呢?(Why does iftop show no bandwidth from a multicast IP but tcpdump does? ffmpeg also cannot capture from the multicast)

当试图接收组播IP(来自239.193.140.11:1234的视频)时,我遇到了一个令人费解的问题。

$tcpdump dst 239.193.140.11 -w capturedData.pcap ,数据包被正确捕获。

例如11:05:25.357138 IP 192.168.34.34.46192> 239.193.140.11.1234:UDP,长度1328

这意味着我的机器正在接收组播IP数据包。

但是,当$iftop -i any运行时,iftop不显示来自239.193.140.11的任何带宽。 此外,当我尝试使用ffmpeg捕获多播数据包时: $ffmpeg -i udp://239.193.140.11:1234?localaddr=192.168.34.34 ,不捕获任何数据包。

为什么tcpdump和iftop显示的内容之间存在差异,以及如何解决它,以便ffmpeg可以正确捕获?


I ran into a puzzling problem when trying to receive a multicast IP (of a video from 239.193.140.11:1234).

When $tcpdump dst 239.193.140.11 -w capturedData.pcap, the packets are captured correctly.

eg, 11:05:25.357138 IP 192.168.34.34.46192 > 239.193.140.11.1234: UDP, length 1328

This means that my machine is receiving the multicast IP packets.

However, when $iftop -i any is run, iftop doesn't show any bandwidth from 239.193.140.11. Furthermore, when I try to capture the multicast packets with ffmpeg: $ffmpeg -i udp://239.193.140.11:1234?localaddr=192.168.34.34, no packets are captured.

Why is there a discrepancy between what tcpdump and iftop shows, and how to resolve it so that ffmpeg can capture correctly?


原文:https://stackoverflow.com/questions/48771108
更新时间:2022-07-21 09:07

最满意答案

有各种方法。 最简单的方法是终止当前连接池中的连接的数据库会话。 如果由于某种原因,您希望强制该错误持续发生,我想您可以修改 Oracle数据库用户的配置文件以设置IDLE_TIME (假设您的应用程序在连接池中保持连接以获得合理的一段的时间)。


There are various approaches. The simplest would be to kill the database sessions for the connections that are currently in the connection pool. If, for some reason, you want to force that error to occur on an ongoing basis, I suppose that you could modify the profile for the Oracle database user to set an IDLE_TIME (assuming that your application maintains connections in the connection pool for a reasonable period of time).

相关问答

更多
  • 您不应该直接使用ConnectionPoolDataSource 。 它旨在供应用程序服务器中的连接池使用。 它本身不提供连接池。 另请参见https://stackoverflow.com/a/12651163/466862 换句话说:您需要使用实际的连接池,如DBCP,c3p0或BoneCP,或UCP(通用连接池)。 You should not use a ConnectionPoolDataSource directly. It is intended for use by a connection ...
  • 你应该设置第二个数据库的凭证。 目前这两个数据库都使用相同的凭证。 尝试下面的第二个数据库: 为database.php 'pgsql2' => [ 'driver' => 'pgsql', 'host' => env('PS2_DB_HOST', 'localhost'), 'database' => env('PS2_DB_DATABASE', 'simkie_data'), 'username' => env('PS2_DB ...
  • 我不能给你c ++代码,但我可以帮助你如何做到这一点。 在一个连接中很难做到这一点,但你可以得到一个可以工作的DataSet,而你只需要做一次代码。 创建一个方法将返回一个DataSet,并传递查询以及应该使用什么类型的连接,在此方法中,根据您执行查询的游览连接类型并返回结果。 如果愿意,您还可以添加连接字符串。 像这样的东西(虽然是c#) DataSet GetDataSet(string sqlQuery, ConnectionType connType) { DataS ...
  • 为了使用oci8模块,除了启用php_oci8.dll之外,您还需要安装Oracle客户端。 您可以尝试使用Oracle 10gR2 Instant Client或Oracle 11gR2 Instant Client 从这里下载: http : //www.oracle.com/technetwork/topics/winsoft-085727.html 我建议使用10.2.0.5版本的Instant Client Package - Basic Lite In order to use oci8 mod ...
  • 有各种方法。 最简单的方法是终止当前连接池中的连接的数据库会话。 如果由于某种原因,您希望强制该错误持续发生,我想您可以修改 Oracle数据库用户的配置文件以设置IDLE_TIME (假设您的应用程序在连接池中保持连接以获得合理的一段的时间)。 There are various approaches. The simplest would be to kill the database sessions for the connections that are currently in the conn ...
  • 当连接池中的连接不再主动连接到数据库时,将会出现“无效或失效连接”错误。 以下是导致这种情况的几种情况 由dba手动中止数据库连接。 例如,如果使用“ALTER SYSTEM KILL SESSION”来终止连接, 如果连接池中存在连接而没有使用很长时间,并且由于数据库实施的超时而断开连接(idle_time) 数据库重新启动 网络事件已导致连接中断,可能是因为网络已变得不可用或防火墙已断开连接,该连接已打开太久。 如果您设置了InactivityTimeout ,那么您必须确保它少于数据库强制实施的IDL ...
  • ORA-12705错误表明这可能是区域设置问题。 您可以尝试在转换为NLS时使用Oracle XE支持的语言环境启动JBoss。 例如,尝试将此添加到JBoss启动配置( jboss-as/bin/run.conf JAVA_OPTS变量): -Duser.language=en -Duser.country=US The ORA-12705 error suggests that this might be a locale issue. You could try starting up JBoss ...
  • 我用JDBC完成了它。 我没有使用Oracle客户端。 I have done it with JDBC. I didn't use Oracle client.
  • 您缺少类路径中的ojdbc6.jar 。 您可以添加到类路径中,如下所示 你可以从{ORACLE DRIVER INSTALL PATH}\jdbc\lib\ojdbc6.jar 然后, Go to Project properties (Project -> Properties) -> Java Build Path -> Libraries -> Add external JARs -> select ojdbc6.jar from your filesystem 顾名思义,Java中的Cla ...
  • 最新的IQDriver版本存在构建问题。 恢复到以前的版本(2.0.7),你不会看到这个错误。 作者删除了最新版本,因此您可以直接从LINQPad中执行此操作(添加连接|选择IQ |删除驱动程序|重新下载IQ驱动程序)。 There is a build issue in the newest IQDriver release. Revert to previous version (2.0.7) and you won't see that error. Author removed latest ver ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)