Ubuntu12.10编译MPTCP

Ubuntu12.10编译MPTCP准备工作 1 操作系统 Ubuntu 12 10 desktop i386 32 位 或者 Ubuntu 14 04 desktop amd64 64 位 2 Mptcp 源码 从官网下载 http multipath tcp org snapshots 我下载的是 mptcp 2015 11 17 tar gz 安装系统编译 mptcp 源码 1 安装操作系统 并安装好网卡驱动 网卡驱动安装见上

准备工作

安装系统编译mptcp源码

#deb cdrom:[Ubuntu 12.10 _Quantal Quetzal_ - Release amd64 (.5)]/ quantal main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://old-releases.ubuntu.com/ubuntu/ quantal main restricted deb-src http://old-releases.ubuntu.com/ubuntu/ quantal main restricted  Major bug fix updates produced after the final release of the  distribution. deb http://old-releases.ubuntu.com/ubuntu/ quantal-updates main restricted deb-src http://old-releases.ubuntu.com/ubuntu/ quantal-updates main restricted  N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  team. Also, please note that software in universe WILL NOT receive any  review or updates from the Ubuntu security team. deb http://old-releases.ubuntu.com/ubuntu/ quantal universe deb-src http://old-releases.ubuntu.com/ubuntu/ quantal universe deb http://old-releases.ubuntu.com/ubuntu/ quantal-updates universe deb-src http://old-releases.ubuntu.com/ubuntu/ quantal-updates universe  N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu   team, and may not be under a free licence. Please satisfy yourself as to   your rights to use the software. Also, please note that software in   multiverse WILL NOT receive any review or updates from the Ubuntu  security team. deb http://old-releases.ubuntu.com/ubuntu/ quantal multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ quantal multiverse deb http://old-releases.ubuntu.com/ubuntu/ quantal-updates multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ quantal-updates multiverse  N.B. software from this repository may not have been tested as  extensively as that contained in the main release, although it includes  newer versions of some applications which may provide useful features.  Also, please note that software in backports WILL NOT receive any review  or updates from the Ubuntu security team. deb http://old-releases.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse deb http://old-releases.ubuntu.com/ubuntu quantal-security main restricted deb-src http://old-releases.ubuntu.com/ubuntu quantal-security main restricted deb http://old-releases.ubuntu.com/ubuntu quantal-security universe deb-src http://old-releases.ubuntu.com/ubuntu quantal-security universe deb http://old-releases.ubuntu.com/ubuntu quantal-security multiverse deb-src http://old-releases.ubuntu.com/ubuntu quantal-security multiverse 

这里写图片描述
需要选择编译时,*表示直接编译到内核中,M表示以模块的方式编译,之后使用需要加载该模块才可以。这里注意几个配置的地方:

这里写图片描述
③ 这里的Networking support->Networking options->IP: advanced router->IP: policy routing 这个要开启。
④ 先选中MPTCP protocol 这样一些拥塞控制算法才会出现在TCP :advanced congestion control 里。
⑤ 选中MPTCP protocol后下面的MPTCP:advanced path-manager control 也要选中,进到里面,选中MPTCP Full-Mesh Path-Manager和MPTCP ndiff-ports。这里选择*。下面的Default MPTCP Path-Manager 选择Full mesh。
这里写图片描述
⑥ 之后退出到Networking support->Networking options,找到TCP :advanced congestion control ,进入到里面。这里是拥塞控制算法,需要哪些就选择哪些,是直接编译到内核,M是编译成模块,使用的时候要先加载模块。这里必要的用选择了CUBIC ,Vegas,Veno,LIA(MPTCP Link Increase),Olia (MPTCP Opportunistic Linked Increase),wVegas,Balia.这里也可以选择默认的算法。
这里写图片描述
⑦ 配置好拥塞控制算法后退出到Networking support->Networking options。这里需要注意IPv6部分,要么选择*直接编译到内核,要么不选择,不可以选择成M作为模块。
⑧ 保存配置,退出。
















配置路由

路由的配置有两种方法,一种是使用自动配置脚本,一种是自己手动配置。这里需要注意的是Ubuntu 系统关于网卡的配置有两套方法,一个是通过配置文件/etc/network/interface来配置IP 和网关,一个是通过系统设置里有网络管理。这两个方法不能同时生效,当修改/etc/network/interface后,网络管理自动失效。在本次实验环境中经过测试,使用系统设置里的网络管理成功率较高,所以选择使用系统设置->网络管理,通过界面来设置网卡IP 和网关。还需要注意,这里的IP地址必须手动固定IP 信息,不可以DHCP自动分配
因为本实验环境要求服务器端只有一个网卡,所以可以忽略下面的配置,下面的配置针对于有两个网卡情况的网络配置。
Eht0 : 192.168.1.45 网关:192.168.1.15
Eth1 :192.168.2.45 网关:192.168.2.15
将上面的信息配置通过系统设置->网络管理手动配置完成。接下来的路由表配置有两种方法。








# This creates two different routing tables, that we use based on the source-address. ip rule add from 192.168.1.45 table 1 ip rule add from 192.168.2.45 table 2 # Configure the two different routing tables ip route add 192.168.1.0/24 dev eth0 scope link table 1 ip route add default via 192.168.1.15 dev eth0 table 1 ip route add 192.168.2.0/24 dev eth1 scope link table 2 ip route add default via 1192.168.2.15 dev eth1 table 2 # default route for the selection process of normal internet-traffic ip route add default scope global nexthop via 192.168.1.15 dev eth0

可以把这些规则写在/etc/rc.local 文件中,每次开机自动执行。

mptcp配置

编译自己的拥塞控制算法

配置apache服务器

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/221624.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月17日 下午5:40
下一篇 2026年3月17日 下午5:40


相关推荐

  • LargeInteger

    LargeInteger import java.math.BigInteger;/**   * 超大整数加减乘除:   * 题目要求:如果系统要使用超大整数(超过long的范围),请你设计一个数据结构来存储这种超大型数字以及设计一种算法来实现超大整数的加法运算   * @author Jason Huang   *   */ public class LargeIntege

    2022年7月25日
    15
  • KindEditor用法介绍「建议收藏」

    KindEditor用法介绍「建议收藏」KindEditor是一套很方便的html编译器插件。在这里做一个简单的使用介绍。首先在官网上下载最新的KindEditor文件(里面有jsp,asp等不同版本文件夹,可以删掉你不需要的版本),把

    2022年7月3日
    162
  • HTML5:移动端开发入门[通俗易懂]

    HTML5:移动端开发入门[通俗易懂]HTML5:移动端开发入门一、前言常见的移动端开发分为移动版网站和响应式设计。移动端开发可以让技术人员专注于移动端的页面优化,而无需在意桌面版的兼容,但页面一旦改动内容,维护成本就翻倍了;响应式设计让开发人员只需维护一份项目,节省开发和维护成本,不过缺点是需要做好移动端和桌面端的兼容,也十分考验页面设计。两种开发方式孰强孰弱,暂无定论,本博客主要探讨一下移动端开发的技巧。二、移动端开发技巧1.Viewport设置传统桌面端网站的显示窗口往往都是在1024X768的分

    2022年6月21日
    32
  • 真正免费的国外PHP建站空间

    真正免费的国外PHP建站空间最近在学习wordpress,找了一个挺不错的国外免费建站空间:http://www.000webhost.com/582659.html空间属性:空间容量 1500MB数据流量 100GB/月附加域名  5个子域名   5个E-mail地址  5个MySQL数据库  2个

    2026年2月5日
    5
  • 教你如何使用 chmod 命令「建议收藏」

    教你如何使用 chmod 命令「建议收藏」chmod是Linux中一个关于权限分配的命令。在具体介绍命令使用之前,先介绍一些基础知识。Linux中对于一个文件的权限有三种:拥有者、群组、其他。分别用u、g和o表示。如果是表示所有人,则可以用a表示。那么对于chmod命令的基本语法结构如下:chmod[-cfvR][ugoa…][+-=][rwxX]下面依次介绍,其具体含义。第一部分[-cfvR]不是必选的,是增强其功能的选择。其中-R使用频率较高。 -c:若该档案权限确实已经更改,才显示其更改动作 -f:

    2022年6月18日
    30
  • 全球首个网页 MCP 发布 —— 亮数据 Bright Data AI+MCP 服务智能体教程

    全球首个网页 MCP 发布 —— 亮数据 Bright Data AI+MCP 服务智能体教程

    2026年3月16日
    2

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号