320 likes | 466 Views
WHITEBOARD: A DISTRIBUTED APPLICATION OVER XCAST. Justinus Andjarwirawan st101562@ait.ac.th. Committee: Prof. Kanchana Kanchanasut Dr. Yasuo Tsuchimoto Dr. Sumanta Guha. AI3 research presentation - 2006.04.20. Contents. Introduction Whiteboard overview and background Problem statement
E N D
WHITEBOARD: A DISTRIBUTED APPLICATION OVER XCAST Justinus Andjarwirawan st101562@ait.ac.th Committee: Prof. Kanchana Kanchanasut Dr. Yasuo Tsuchimoto Dr. Sumanta Guha AI3 research presentation - 2006.04.20
Contents • Introduction • Whiteboard overview and background • Problem statement • Underlying Protocols • Implementation • Evaluation • Conclusion
1. Introduction Whiteboard: a computer software application that simulates actual whiteboards, allowing one or more people to write or draw images on a simulated canvas. This is a common feature of many virtual meeting, collaboration, and instant messaging applications. (from: wikipedia)
Existing Whiteboards MSN Messenger Whiteboard Coccinella MBONE Whiteboard
Methods used by existing Whiteboards • The two methods widely used by those existing whiteboards: • Unicast: information is sent from one point to another point. A whiteboard having many destinations means sending multiple similar packets! • Multicast: information is sent from one point to a set of other points (one packet sent to a group of destinations at one time), but with the need of additional routing protocols (an overhead).
Problem Statement • Whiteboards normally involved a small number of users, hence Multicast will be wasteful. • What to do with this problem: • Develop a whiteboard over an alternative protocol
What Network Protocol to Use? • Based on the problem statement: • Unicast is wasteful for numbers of users because it is sending similar packets to multiple destinations. • Multicast is wasteful for small groups communication because of the routing mechanism. • Another protocol that may solve this? XCAST
XCAST XCAST (eXplicit Unicast): a multi-destination delivery system in the network. Information is sent from one point to a set of other points, with multiple destination addresses in each single packet. (a regular IP packet contains only one source address and one destination address)
Why XCAST? • XCAST works on routers with existing Unicast routing information. There is no need for additional routing protocol like Multicast which can lead to a delivery time overhead. • Participants are unique and identified clearly by individual IP addresses, therefore individual access lists, policies and accounting can be implemented.
But … • XCAST has some disadvantages and limitations: • Overhead in packet header size, because of the multi-destination entries • More header processing on the fly • Limited number of destinations (logically maximum 9 for IPv4, 127 for IPv6) • XCAST packets cannot be fragmented into smaller MTUs (Maximum Transmission Units).
XCAST6 Limitations • XCAST packets cannot be fragmented, meaning each packet must not exceed MTU (Maximum Transmission Unit) size. • MTU = the largest possible packet size that a network can transmit at a time (in this case Ethernet = 1500 bytes). If exceeds then MTU on the network will divide into smaller packets. But this is not possible for XCAST because of its header structure.
XCAST Packet MTU 1500 bytes 40 bytes header dest. add. data header dest. add. data The more # of destinations the less data space
What to do with MTU limit • Total size of maximum 1500 includes: XCAST packet header, destination addresses in the extension header and data payload. • Longer data payload is split into smaller chunks at the application level implementation, before forming to packets. • Small chunks’ size must also reserve space for destination addresses.
2. Implementation • The latest version of MBONE’s Multicast whiteboard program has many bugs and the libraries used in the source code are outdated. Originally works on IPv4. • The implementation of XCAST Whiteboard still follow the MBONE’s whiteboard mechanisms and routines. • Development under C language. Operating system: Linux
The Program’s Flow incoming draw commands fromremote users receiving socket (listening) canvas drawing outgoing draw commands toremote users sending socket
Tcl/Tk canvas code (Tcl/Tk script) XCAST6 socket (C code) single C code xwbd.c & xwbd.h C compiler gcc –o xwbd xwbd.c XCAST6 whiteboard executable binary ./xwbd Combining Tcl/Tk and C
Whiteboard Data Format whiteboard command ID - sequence number timestamp
3. Evaluation • Distinguish response time of XCAST6 Whiteboard and MBONE Multicast Whiteboard • Router’s forwarding time between XCAST6 and Multicast • Bandwidth consumption
Evaluation Process • Design a network for the test. • Collect byte sizes of all whiteboard commands. • Determine maximum number of destinations. • RTT (Round Trip Time) method to obtain response time between sender and receiver(s). • Obtain router’s forwarding time with Ethereal • Bandwidth measurement
Possible number of destinations MTU 1500 bytes 40 bytes header destination addresses 95 bytes data Up to 78 destination addresses In this remaining space
Response Time • Response time = the time taken by a sender to send a whiteboard command to a receiver. • Previously NTP (Network Time Protocol) method was used but it did not give good accuracy as response time in the testbed is in a matter of milliseconds. • RTT (Round Trip Time) value divided by 2 is the best known value for the response time assuming the symmetric route path.
Router’s forwarding time Running two instances of Ethereal to monitor eth0 and eth1 eth0 eth1 Forward time = teth1 – teth0
Conclusion • XCAST6 whiteboard is effective for a group of 20 or less in terms of response time, regardless the amount of bandwidth. An XCAST6 group of 5 or less will consume less bandwidth than Multicast. • Router’s forwarding time between XCAST6 and Multicast differs by microseconds. No significant overhead cost difference in the router. • Whiteboard packets are infrequently transmitted. A more frequent transmission of XCAST6 applications such as video and audio stream may show significant difference.
Thank You Q & A