What The Customers Want
Snowcloud servers must communicate with each other through a much larger network than in traditional client games, where the background server architecture is typically quite complex. Using unicast communication requires a server to be constantly aware of all changes made to other servers. As a result, the design’s overall elasticity is reduced. UDP broadcast communication is still used by many client gaming servers because it allows for flexible development and reduces the amount of host computing resources needed.
First And Foremost
On Alibaba Cloud, L2 multicast or broadcast are not supported in either the classic network or the VPC network environments. This is due to faulty L3 switches. In this case, L2 is the culprit. Multicast and broadcasting requirements can be met by using the unicast mode to simulate multicasting.
Changing The Settings In The Windows OS
Windows’ multicast utility consists of two components: udptopoint on the server and udptomulti on the client. In order to receive multicast packets, the server must be installed on an ECS instance, while the client must be installed on a snowcloud instance.
The instructions for installing the Windows multicast agent are included in the installation package. To begin the installation, double-click the udptopoint-1.3.1.exe and udptomulti-1.1.1.exe files. Both can be put into action. Set up the server and client as instructed by the screen. Go to C:udptopoint and C:udptomulti, respectively, to find the installation directories, and then start the installation process.
When the system notices that Winpcap has already been installed, it gives you the option to either immediately stop or proceed with the installation in order to overwrite it.
If Winpcap isn’t already installed, clicking the Install button will bring it up.
When setting up the server,
Once the multicast tool has been installed, run Udptopoint.exe. Because of this, the background service for converting multicast-to-unicast will begin running without user intervention. Go to Task Manager > Services to see if the service is running or not at this time.
The server cfg.json.txt configuration file must be used to create and add members to multicast groups.
The Following Information Can Be Found In The Configuration File:
- Snowcloud’s IP address for the multicast group is multicast group ip.
- The multicast group port on the server is used to start the multicasting procedure.
- The server port of the agent is responsible for switching from multicast mode to unicast mode.
- The member array keeps track of the multicast group’s IP addresses.
- A reloading point can be sent. The send reload point can be configured using cfg in addition to the server.
- Reload and list are the only options currently available.
- The configuration file can be reloaded with the reload command. If you make any changes to the configuration file, be sure to run this command immediately.
- Listing packets sent or received by an agent system can be done using the list command.
- Documentation Outlining the Process of Making an Application
- The command line can be used to enter the reload command or the list command.
Setup Of The User’s Profile
After installing the multicast tool, you must run the udptomulti.exe file to start the background program that converts multicast to unicast. Next, navigate to Task Manager > Services to check on the service’s performance.
The newly added multicast groups on the client can be configured using the JSON array in the cfg.json.txt file in the configuration directory.
- Multicast data can only be sent to a server if it has a server ip address.
- A server port is a unicast port that is used for broadcasting.
- When messages are received by a multicast group, the IP address of that group is used to simulate the group’s behavior.
- The application’s communication port, known as the group port, must be recreated after receiving the messages.
Reload Multi Cfg can be sent by the client to perform additional actions.
“reload” and “list” are the only available commands at this time.
The configuration file can be reloaded using Snowcloud’s reload command. If you make any changes to the configuration file, be sure to run this command immediately.
Listing packets sent or received by an agent system can be done using the list command.
The Configuration Process in A Linux Environment
The Linux multicast tool’s server and client components are included in the same RPM package. The RPM package name for the most recent version is Multicast usr tool-1.0.1–1.x86 64.rpm (version 1.0.1).
To verify that the RPM package has been installed correctly, run the command rpm-Q multicast usr tool-1.0.3–1.el6.x86 64. After the RPM package has been successfully installed on your system, this user-state multicast utility will be downloaded and installed automatically.
After a successful installation, the /etc/multicast/ directory contains the configuration files and the /usr/local/bin directory contains the Multicast client installation files.
The cd /usr/local/bin command will take you to the client’s home directory.
To obtain the source code, run the command /.bashrc.
The Client And Server Should Be Started In The Following Order:
You must be logged in as a root user in order to run nohup multic admin -R to manually start the client.
The web server is referred to as: Start the server by entering the following command as root: start using the daemon that keeps track of multiple running tasks
Put An End To The Client Or Server By Performing The Following Steps:
In order to kill a process, you first need to know its PID, so you can use the ps aux or grep multic admin command to find it.
Run the service multis monitord stop command as root to shut down the server.
The service multis monitored status can be used to ensure that everything is running as it should be
On The Basis Of Current Circumstances, How Should The Server Configuration File Be Modified?
Edit the server cfg.json.txt file in the udptopoint directory if you’re using Windows. A Linux computer’s /etc/multicast/server config file is located in cfg.json.txt under the / directory.
Re-inserting your new configuration file into the server software is required after you’ve finished making the changes
On a Linux system, type the following command: scp Press enter to force the server to reload the list.
Using Windows, you must first run the send reload point cfg command before entering the reload command.
Verify that the udptopoint service is running properly in order to avoid the error message “connection rejected.”
Make Modifications To The File Specified By The Client
Changing the client configuration snow cloud bachelor gulch file will be demonstrated using Snowcloud as an example in the following section. You can customise the client configuration for Windows by editing the file cfg json client cfg.txt in the udptopoint directory. Using Linux, change the /etc/multicast.client cfg.json.txt file to the desired configuration value(s).
In order to apply your new settings, you must reload the server software with your newly created configuration file.
Enter the reload command on Linux after running the client reload list command (found below).
Send reload multi cfg followed by the reload command in Windows Command Prompt to reload the configuration.
If you receive the message “connection rejected,” the udptomulti service should be working normally.
Additional Thoughts Are Provided Below and Elsewhere
Ensure that both client and server are using the same server port number. Nothing can be received if this isn’t the case.
The system creates log files. Files for md cloud log and the server log, respectively, will be generated and stored in the C:udptopoint directory on Windows systems. Both the client and the server have log.txt files created by default in the /etc/multicast/ directory.
As soon as you’ve finished setting up the service, you’ll have access to a tool for packet capture. Windows users should use Wireshark, while Linux users should use the command-line tool.
The Following Troubleshooting Steps Should Be Followed In The Event Of A Communication Breakdown:
- You must ensure that the multicast packets are converted into unicast and sent from the server to ensure proper delivery.
- When receiving unicast packets, make sure your client’s network connection is functioning properly.
- In order to ensure that the client can re-encrypt and re-decrypt multicast packets, perform an integrity check.
Confirmation Of Those Results
There is now a broadcast mode for SnowCloud instances on a customer’s network, as a result of the multicast tool’s transformation.
For more information, please visit sbxhrl.