Class HostPacket

java.lang.Object
org.cloudbus.cloudsim.network.HostPacket
All Implemented Interfaces:
NetworkPacket<NetworkHost>

public class HostPacket
extends Object
implements NetworkPacket<NetworkHost>
Represents a packet which travels from one Host to another. Each packet contains: IDs of the sender VM into the source Host and receiver VM into the destination Host which are communicating; the time at which it is sent and received; type and virtual IDs of tasks.

Please refer to following publication for more details:

Since:
CloudSim Toolkit 1.0
Author:
Saurabh Kumar Garg, Manoel Campos da Silva Filho
  • Constructor Details

    • HostPacket

      public HostPacket​(NetworkHost senderHost, VmPacket vmPacket)
      Creates a new packet to be sent through the network between two hosts.
      Parameters:
      senderHost - The id of the host sending the packet
      vmPacket - The vm packet containing information of sender and receiver Cloudlets and their VMs.
  • Method Details