Comments (4)
tbarbette,
i40e compatible devices should work fine. Can you please test mOS by first running epserver
and epwget
on two different nodes that are directly communicating with each other (without any middlebox)?
If you see any issues, can you please share your mos.conf
files for both client and the server?
from mos-networking-stack.
Ok. The code source stated that parameters were tuned for ixgbe, so I thought this could be the problem. I'll look elsewhere then :p
from mos-networking-stack.
Hi again ajamshed,
I could make epserver and epwget work and I got some packets with nat, however no packet is passing through and the NAT application is taking more and more memory until it eventually run OOM. Here is my configuration :
############### MOS configuration file ###############
#######################
# MOS-RELATED OPTIONS #
#######################
mos {
forward = 1
#######################
##### I/O OPTIONS #####
#######################
# number of memory channels per socket [mandatory for DPDK]
nb_mem_channels = 4
# devices used for MOS applications [mandatory]
netdev {
dpdk0 0x00FF
dpdk1 0x00FF
}
#######################
### LOGGING OPTIONS ###
#######################
# NICs to print network statistics per second
# if enabled, mTCP will print xx Gbps and xx pps for RX and TX
stat_print = dpdk0 dpdk1
# A directory contains MOS system log files
mos_log = logs/
########################
## NETWORK PARAMETERS ##
########################
# This to configure static arp table
# (Destination IP address) (Destination MAC address)
arp_table {
10.220.0.1 3c:fd:fe:9e:5c:40
10.221.0.1 3c:fd:fe:9e:5c:41
10.220.0.5 3c:fd:fe:9e:5b:60
10.221.0.5 3c:fd:fe:9f:57:18
}
# This is to configure static routing table
# (Destination address)/(Prefix) (Device name)
route_table {
# 10.220.0.0/16 dpdk0
# 10.221.0.0/16 dpdk1
}
# This is to configure static bump-in-the-wire NIC forwarding table
# DEVNIC_A DEVNIC_B ## (e.g. dpdk0 dpdk1)
nic_forward_table {
dpdk0 dpdk1
}
########################
### ADVANCED OPTIONS ###
########################
# if required, uncomment the following options and change them
# maximum concurrency per core [optional / default : 100000]
# (MOS-specific parameter for preallocation)
# max_concurrency = 100000
# disable the ring buffer [optional / default : 0]
# use disabled buffered managment only for standalone monitors.
# end host applications always need recv buffers for TCP!
# no_ring_buffers = 1
# receive buffer size of sockets [optional / default : 8192]
# rmem_size = 8192
# send buffer size of sockets [optional / default : 8192]
# wmem_size = 8192
# tcp timewait seconds [optional / default : 0]
tcp_tw_interval = 30
# tcp timeout seconds [optional / default : 30]
# (set tcp_timeout = -1 to disable timeout checking)
# tcp_timeout = 30
}
I run with
sudo ./nat -i 10.221.0.3
I've got one client (10.220.0.5) connected to the first port (10.220.0.1) on vlan 1 (thus there may be a little garbage traffic) and the second port (10.221.0.1 and .3) connected to (10.221.0.5) isoled together on vlan 10.
Any idea?
Thanks
from mos-networking-stack.
Ok I got it, without -c it's taking all the cores and 100000 connections per default lead to a lot of per-thread memory, leading to the OOM.
from mos-networking-stack.
Related Issues (20)
- Error compile dpdk HOT 19
- compile example error HOT 5
- mOS Configuration HOT 4
- segfault when using only some interfaces HOT 1
- insmod: ERROR: could not insert module drivers/dpdk-16.11/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko: Unknown symbol in module HOT 6
- [nat] Packets not translated when using 3 cores HOT 10
- Mac address prevent change? HOT 2
- Can mOS be used in conjunction with IPS, not IDS? HOT 1
- mOS with mlx5 HOT 7
- Can mOS API run on a Raspberry Pi B+? HOT 10
- DBG_OPT flag cause compiling error HOT 1
- how to use vhost-user in mOS HOT 3
- Performance problem HOT 6
- Example for mtcp_peek?
- insmod: ERROR: could not insert module drivers/dpdk-16.04/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko: Invalid module format HOT 1
- QOS implementation support with mOS HOT 4
- Problem starting midstat: EAL: Error - exiting with code: 1 Cause: Cannot init mbuf pool HOT 7
- Issue with running sample application using > 2 cores. HOT 3
- Problems with more than 23 flows. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mos-networking-stack.