mtcp | Highly Scalable User-level TCP Stack | TCP library
kandi X-RAY | mtcp Summary
kandi X-RAY | mtcp Summary
mtcp is a highly scalable user-level tcp stack for multicore systems. mtcp source code is distributed under the modified bsd license. for more detail, please refer to the license. the license term of io_engine driver and ported applications may differ from the mtcp’s. we require the following libraries to run mtcp. - libps (packetshader i/o engine library) or libdpdk (intel’s dpdk package*) - libnuma - libpthread - librt compling psio/dpdk driver requires kernel headers. - for debian/ubuntu, try apt-get install linux-headers-$(uname -r). mtcp - mtcp source code directory mtcp/src - source code mtcp/src/include - mtcp’s internal header files mtcp/lib - library file mtcp/include - header files that applications will use. io_engine - event-driven packet i/o
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mtcp
mtcp Key Features
mtcp Examples and Code Snippets
Community Discussions
Trending Discussions on mtcp
QUESTION
I'm trying to find out if there is any native TCP/IP stack implemetation provided in DPDK or any popular open-source project to achieve it. Any help will be grateful.
Update: My platform is Ubuntu 16.04 x64, Intel 82599es NIC with DPDK 20.08. What I'm trying to accomplish is to rebuild TCP connections out of the packets I receive on the NIC port for later use. I thought tools like ANS, mTCP and fstack may do the track but they are third party and some of them are not fully open-sourced, so I'm looking for a native one or one that is popular for developers. I don't know what should I call this kind of requirement, sorry for troubles causing because of the question, I'll change it after I know the related concept better.
...ANSWER
Answered 2021-Jan-24 at 04:17There are no native TCP-IP stack implementation in DPDK version till date DPDK version 20.11 LTS. Going further in my humble opinion DPDK would not be implementing native TCP-IP stack. Hence current options are
Since the requirement is to rebuild TCP connection state information
, my recommendation is to
- create RTE_FLOW_ACTION_MIRROR to create the packet copy at HW NIC level for all interested TCP connection using a combination of IP-TCP address-ports.
- If there is no HW option, either using
ref_cnt_update
orcopying the user packet payload
create a copy of the packet. - With help RTE_RINGS or RTE_FB_ARRAY organize the packets from client and server based on symmetric RSS (if available) or based on custom HASH to appropriate containers.
- For you packet processing recommendation is either use
FSTACK or mTCP or BSD TCP-ip from scratch
there are multiple references on the Internet which gives hints to get started too. Please refer
- mTCP slide 14
- fstack slide deck
QUESTION
I have a container that runs jupyter-hub on 443 and mapped to 1443 on the host. I'm trying to run this server behind the apache in another container. But, the two containers are not able to talk to each other.
I have tried setting the iptables for each container, but no use.
...ANSWER
Answered 2020-Feb-05 at 09:12The problem when the 2 containers not able to talk to each other is due to the fact that they are not in the same docker network. Here are what you have to do:
- List all the available networks:
docker network ls
- Find out which network the
apache
container is running in
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mtcp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page