首页 > 其他分享 >MPTCP is missing from system parameters inside Mininet hosts

MPTCP is missing from system parameters inside Mininet hosts

时间:2024-06-12 22:32:56浏览次数:10  
标签:Mininet sysctl MPTCP parameters host net proc mptcp

https://github.com/mininet/mininet/issues/1161

 

Hello,

I am having problems with certain system parameters not being accessible from within a Mininet host even though they are accessible from the host system.

After a clean install with the following:

I get the following output when running sysctl -a | grep mptcp outside Mininet:

net.mptcp.mptcp_checksum = 1
net.mptcp.mptcp_debug = 0
net.mptcp.mptcp_enabled = 1
net.mptcp.mptcp_path_manager = fullmesh
net.mptcp.mptcp_scheduler = default
net.mptcp.mptcp_syn_retries = 3
net.mptcp.mptcp_version = 0
 

which is correct. But when I do the same from within a Mininet host by starting Mininet with the default topology:

sudo mn

and then running the sysctl command on, for instance, the h1 node:

mininet> h1 sysctl -a | grep mptcp

I dont get any output. In other words, the system parameters can't be found by sysctl -a from within a Mininet host.

Expected/Desired Behavior:

mininet> h1 sysctl -a | grep mptcp

=>

net.mptcp.mptcp_checksum = 1
net.mptcp.mptcp_debug = 0
net.mptcp.mptcp_enabled = 1
net.mptcp.mptcp_path_manager = fullmesh
net.mptcp.mptcp_scheduler = default
net.mptcp.mptcp_syn_retries = 3
net.mptcp.mptcp_version = 0
 

Actual Behavior:

mininet> h1 sysctl -a | grep mptcp

=>

[No output]
 

Detailed Steps to Reproduce the Behavior

  1. Install "Ubuntu 20.04.5 LTS" and the "5.4.230.mptcp" kernel.
  2. Run sudo mn
  3. Inside the Mininet console execute sysctl -a | grep mptcp
  4. Compare output when running it outside the host

Additional Information

The following people seems to have had the same problem:

Here are some outputs from both the host system and from within a Mininet host. It seems to be the same output regardless of if sudo or not is used in both cases.

CommandResult in Ubuntu (outside a Mininet host)Result from within a Mininet host
ip netns identify $$ [No output] [No output]
ls /proc/net/mptcp_net/ mptcp snmp mptcp snmp
readlink /proc/self/ns/net net:[4026532008] net:[4026533846] (differs between Mininet hosts)
ls /proc/sys/net/mptcp mptcp_checksum mptcp_debug mptcp_enabled mptcp_path_manager mptcp_scheduler mptcp_syn_retries mptcp_version [No output]

I think it's relevant to note that creating hosts with inNamespace=False:

h1 = net.addHost('h1', inNamespace=False) # don't spawn in net namespaces
h2 = net.addHost('h2', inNamespace=False) # don't spawn in net namespaces
r1 = net.addHost('r1', inNamespace=False) # don't spawn in net namespaces
 

results in me being able to see the system parameters from inside a Mininet host by running sysctl -a | grep mptcp. While this solves the access problem it seems to result in the network parameters that you can set for each Mininet host to be ignored.

I think I somehow need to figure out how I can mount the namespace or perhaps the "/proc/sys/net/mptcp" folder. Running mount --bind /proc/sys/net/mptcp from within a Mininet host just results it:

mount: /proc/sys/net/mptcp: mount point does not exist.
 



标签:Mininet,sysctl,MPTCP,parameters,host,net,proc,mptcp
From: https://www.cnblogs.com/ztguang/p/18244848

相关文章

  • [ubuntu18.04]搭建mptcp测试环境说明
    MPTCP介绍MultipathTCP—MultipathTCP--documentation2022documentation安装ubuntu18.04,可以使用虚拟机安装点击安装VMwareTool桌面会出现如下图标双击打开VMwareTools,复制如下图所示的文件到Home目录打开终端,切换到管理员权限(如果忘记管理员密码可以使用su......
  • 【例0157】ask blend parameters 请求混合参数
    文章作者:里海来源网站:NX二次开发官方案例专栏简介《askblendparameters请求混合参数》这是一个NX二次开发官方小例子,下面是代码和解析。相较于混乱、未经验证的代码,官方案例能够确保开发者获得准确的开发方法,这些官方示例代码经过严格测试,能够正确地反映出NX软件的......
  • c++ 模板模板参数("Template Template Parameters")
    #include<iostream>#include<vector>#include<list>usingnamespacestd;namespace_nmsp1{//T类型模板参数,代表容器中元素类型//Container代表的不是一个类型(不能是一个类型模板参数),而是一个类模板(类名)//Container不叫做类型模板参数,而叫做模板模......
  • WPF Datagrid DataGridComboBoxColumn ObjectDataProvider ObjectDataProvider.Method
    //xaml<Windowx:Class="WpfApp90.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.mic......
  • httprunner 4.x学习 - 09参数化parameters
    前言实现参数化使用parameters关键字,数据源有3种方式:1.在yaml文件中直接写测试数据源2.测试数据源写到csv文件3.自定义函数,函数返回列表形式数据参数化说明参数化分两种情况:1.单个参数进行参数化:如账号不一样,但密码一样,这时把账号作为单个参数名2.......
  • Could not set parameters for mapping
    错误现象:Resolved[org.mybatis.spring.MyBatisSystemException:nestedexceptionisorg.apache.ibatis.type.TypeException:Couldnotsetparametersformapping:ParameterMapping{property='keywords',mode=IN,javaType=classjava.lang.Object,jdbcType=n......
  • .NET Aspire 外部参数 (External parameters)
    .NETAspire外部参数(Externalparameters)https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/external-parameters环境提供应用运行的上下文。Parameter提供了在应用运行中请求外部值的功能。当应用本地运行的时候,Parameter可以为应用提供值,或者在应用部署的......
  • ABAP PARAMETERS 功能及用法
    前言千篇一律,实用最要紧。PARAMETERS可用于文本输入,单选/复选框,与SELECT-OPTIONS不同的是,PARAMETERS只能用于单个输入。功能实例PARAMETERS:P_CARRIDTYPECDEFAULT'1',"DEFAULT默认值P_CONNIDTYPEMARA-MATNRMEMORYIDMAB,"'MEMORYID'将PARAMETERS存储在SAP......
  • 2-AP-14: Create procedures with parameters to organize code and make it easier t
        ChapterModule/LessonBigIdeas/Topics/ConceptsStandards(CSTA)LearningObjectivesChapter1Module1,Lesson1Sequences,ProblemSolving1A-AP-10:Developprogramswithsequencesandsimpleloops,toexpressideasoraddress......
  • Go - named result parameters
           ......