1) Errr, I'm confused as to exactly what you're asking here. If you mean
which is simpler/more efficient, socket or TAP, then it doesn't really
matter which you use. As long as bytes are flowing through the interface,
they will be simulated the same, as all the VM sees is a NIC with the same
interface.

2) You need to keep the server and client in sync. See Avadh's blog entry:
http://marssandbeyond.blogspot.com/2011/12/synchronizing-multiple-simulation.html

Tyler

> Thanks Tyler, and I tried a solution as follows.
> Multi Marss processes could communicate with each other through SOCKET and
> access to the internet through TAP.
>
>
> I will appreciate if you could give me some more advice on Server-Client
> Simulations:
> 1) Is this the simplest and efficient connection way to simulate
> Server-Client benchmarks ?
> 2) What other issues should I pay attention to , e.g. does it make
> checkpoints in the same way as other single VM does ?
>
>
>     +-----------+                                   +-----------+
>     |   Guest   |                                   |   Guest   |
>     |     A     |                                   |     B     |
>     |   +---+   |                                   |   +---+   |
>     |   |NIC|   |                                   |   |NIC|   |
>     +---+-+-+---+                                   +---+-+-+---+
>           ^       +------+                 +------+       ^
>           |       |      |                 |      |       |
>           +------>+ VLAN +<--> Socket <--> + VLAN +<------+
>                   |      |                 |      |
>                   +------+                 +------+
>                      |                        |
>                  +--------+               +--------+
>                  |  TAP   |               |  TAP   |
>                  | Device |               | Device |
>                  | (tap)  |               | (tap)  |
>                  +--------+               +--------+
>
>
>> -----原始邮件-----
>> 发件人: [email protected]
>> 发送时间: 2013年9月11日 星期三
>> 收件人: "\"¸ßçæ\"" <[email protected]>
>> 抄送: [email protected]
>> 主题: Re: [marss86-devel] How do I go about getting internet access
>> from the VM
>>
>> Use tap, you'll likely have better luck. If you're going to use slirp, I
>> would recommend forwarding individual ports as needed as it doesn't
>> allow
>> for incoming connections by default.
>>
>> Tyler
>>
>> >
>> > Hi, all.
>> >
>> > I have looked through all the marssx86 mail list, but I cannot connect
>> to
>> > the internet through the VM using below commad,
>> >
>> >  "qemu/qemu-system-x86_64 -net nic,model=ne2k_pci -net user
>> > ubuntu-natty.qcow2" , the "ifconfig" is as follows:
>> >
>> >
>> >
>> >
>> > eth0      Link encap:Ethernet  HWaddr 52:54:00:12:34:56
>> >           inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
>> >
>> >           inet6 add
>> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>> >           RX packets:15 errors:0 dropped:0 overruns:0 frame:0
>> >           TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
>> >           collisions:0 txqueuelen:1000
>> >           RX bytes:2404 (2.4  KB)  TX bytes:2214 (2.2 KB)
>> >           Interrupt:11 Base address:0xc100
>> >
>> >
>> >
>> > lo        Link encap:Local Loopback
>> >           inet addr:127.0.0.1  Mask:255.0.0.0
>> >           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>> >           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>> >           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>> >           collisions:0 txqueuelen:0
>> >           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>> >
>> >
>> >
>> > My host machine network is OK. Who can give me some tips ? Thanks a
>> lot.
>> >
>> >
>> > _______________________________________________
>> > http://www.marss86.org
>> > Marss86-Devel mailing list
>> > [email protected]
>> > https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
>> >
>>
>>
>
>
>
>


_______________________________________________
http://www.marss86.org
Marss86-Devel mailing list
[email protected]
https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel

Reply via email to