Discussion:
client<->server<->client
Islam Alshawish
2018-11-21 10:04:44 UTC
Permalink
Hello;
i need to use echoUdpClient/Server applications to
- create 3 nodes, one server and two clients
-send a message from first client to the server and relay on it to forward
it to the other client.

Is that possible using the mentioned apps?
how to modify server to pass message to the second client (and also from
the second to the first)

BR,
Islam
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
'pdbarnes' via ns-3-users
2018-11-21 17:06:05 UTC
Permalink
Normally the middle node would be a router. After all, that is what a router does, forward packets. The left node could run UdpClient, the right node PacketSink, and the middle node doesn’t even need an application.

Peter
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Islam Alshawish
2018-11-21 18:02:16 UTC
Permalink
I need to do farther process on this packet content, I need to implement a
security mechanism I am working on, that why I need to install an app like
a server which processing message form the first client and send it to the
other one. By the way I need a way to do this as well as to be scalable!
How can I do this?

On Wed, Nov 21, 2018, 7:06 PM 'pdbarnes' via ns-3-users <
Post by 'pdbarnes' via ns-3-users
Normally the middle node would be a router. After all, that is what a
router does, forward packets. The left node could run UdpClient, the right
node PacketSink, and the middle node doesn’t even need an application.
Peter
--
Posting to this group should follow these guidelines
https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups
"ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
'pdbarnes' via ns-3-users
2018-11-21 23:31:29 UTC
Permalink
You’ll have to write your own application for that. It will act like UdpEchoServer in that it will listen for incoming traffic, and act like UdpEchoClient in sending out packets, after transforming according to your scheme.

Peter
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Islam Alshawish
2018-11-22 08:22:20 UTC
Permalink
Actually I am trying to do that, but I am wondering how I can specify in
the Server app the address of the second client? It handles the address of
the sender client and echo to it! What I have to do to add next client/s
addresses as well as is it correct to install the udpechoClient app in the
second one?
I hope my point is clear!
Thanks

On Thu, Nov 22, 2018, 1:31 AM 'pdbarnes' via ns-3-users <
Post by 'pdbarnes' via ns-3-users
You’ll have to write your own application for that. It will act like
UdpEchoServer in that it will listen for incoming traffic, and act like
UdpEchoClient in sending out packets, after transforming according to your
scheme.
Peter
--
Posting to this group should follow these guidelines
https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups
"ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Loading...