A Udp-based Data Broadcasting's Local Area Network Agenda - Data Broadcasting, Local Area
, And the user datagram protocol (UDP), also using Java language
, a simple UDP based data broadcast local area network in order, show the UDP in the Java language for sending and receiving data in general steps. As the excellent cross-platform Java language features, the system can run without modification in Windows, Linux, MacOS and a series of different platforms.
Introduction With the popularization of network technology, network meeting in the company, enterprises and units in the application of more and more widely. A network conference system typically includes a server program and a client program. Which server is responsible for user management, information exchange and voting statistics; listen to the client is to achieve speech, public speaking, private discussions, voting and other functions. In a network meeting system design and implementation, often involving graphical user interface design, TCP / IP connection, UDP data broadcast, a series of multi-threading technology. In this paper, a simple example program to show in the Java language to send and receive UDP data, the general steps and UDP data broadcast in the local area network system, the role of the meeting.
TCP (TransmissionControlProtocol, Transmission Control Protocol) is a connection-based communication protocol. When the two computers need for reliable data transmission, they establish a stable network connection, this connection is often referred to as data link. Similar to the telephone network, which is point to point data link, communication between the parties to this data through the chain of transmission of data back and forth. In this stable based on the data link, TCP protocol checksum to ensure through information received by the receiver to the data and the data sent by the sender in the content and sequence are exactly the same, in order to achieve reliable transmission of data .
UDP (UserDatagramProtocol, user datagram protocol) and TCP protocol is that UDP is not different between the stability of the connection based communication protocol. UDP protocol will be independent of the data packets from one computer to another computer, but does not guarantee that the recipient can receive the packet, does not guarantee that the receiver received the data and the data sent by the sender in the content and the sequence is identical. Therefore, UDP protocol is more similar to the ordinary postal service, the return can not guarantee that a letter sent to the recipient in a timely manner can be received, the letter may be issued after the letter issued earlier than the first arrival.
For many applications, in between the two computers communicate with each other to ensure a reliable and stable data chain is essential. In this case, you should first consider using the TCP protocol established between the computer in the balcony TCP / IP connection. In the HTTP (Hyper-TextTransferProtocol, Hypertext Transfer Protocol), FTP (FileTransferProtocol, File Transfer Protocol) and TELNET applications are required to establish communications between a stable and reliable data link, so they all use the TCP protocol for data transmission.
In the TCP protocol, the sender and receiver must exchange additional information to ensure that the receiver has received the data packets sent and the received data and the data sent by the sender in the content and order is completely consistent. These additional information exchange to improve the reliability of data transmission, but also to bring an additional burden on the network, resulting in delays in data exchange, which reduces the ability of the entire network of data exchange. For some of the real-time demanding applications, such a delay may be unacceptable. For example, a millisecond clock server in accordance with a certain frequency to the client to provide data at the time, if the time data during transmission by large delay time of these outdated data is totally meaningless, even if the client accuracy of the receiver to the data. Conversely, if the client receives a data packet to each of all real-time, even if the client missed a couple of packets is acceptable because he can back the received data packets to their be corrected. Therefore, real-time requirements for higher reliability requirements, but relatively low on the transmission of applications for, UDP protocol is clearly a suitable alternative.
by: gaga
How to Winterize your Garage Karol Bagh Restaurants offer Plethora of Dishes at Affordable Prices Machinery-An Important Engineering Tool which makes the work more easier Choosing Affordable Webhosting Reviews Car Audio on a Budget Road Ahead for Lacerte 2010 Users and its future in the clouds or should we say Application Hosting Services Creating A Travel Itinerary For Your Disney Vacation Affordable lock smiths in Las Vegas Engineering Translator - Engineering Translator Training Business Car Loans Car Loan For Business Purpose Why to buy a motorcycle locksmith? Motorcycle Loans: - Get the motorbike of your choice Pay as go mobile phones affordable plans for every UK resident
A Udp-based Data Broadcasting's Local Area Network Agenda - Data Broadcasting, Local Area Anaheim