{"id":20780532,"url":"https://github.com/ruicao93/ovx-simulation","last_synced_at":"2025-06-11T16:06:33.075Z","repository":{"id":82506238,"uuid":"84529042","full_name":"ruicao93/OVX-Simulation","owner":"ruicao93","description":"A Java implemention for a algorithm  simulation which is designed for OVX resource mapping .","archived":false,"fork":false,"pushed_at":"2017-03-30T06:29:41.000Z","size":4045,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T22:33:56.048Z","etag":null,"topics":["java","openvirtex","resource-mapping","simulation"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruicao93.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-10T06:51:58.000Z","updated_at":"2020-06-04T09:00:18.000Z","dependencies_parsed_at":"2023-11-03T05:00:28.998Z","dependency_job_id":null,"html_url":"https://github.com/ruicao93/OVX-Simulation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ruicao93/OVX-Simulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruicao93%2FOVX-Simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruicao93%2FOVX-Simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruicao93%2FOVX-Simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruicao93%2FOVX-Simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruicao93","download_url":"https://codeload.github.com/ruicao93/OVX-Simulation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruicao93%2FOVX-Simulation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259293098,"owners_count":22835539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","openvirtex","resource-mapping","simulation"],"created_at":"2024-11-17T13:37:52.945Z","updated_at":"2025-06-11T16:06:33.038Z","avatar_url":"https://github.com/ruicao93.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"OVX-Java仿真 v2.0 版本\n\n版本说明：\n\nv2.0: Final completed version.\n\n1.2-as-dep version: Can be use as dependency allocation computer.\n\n1.2版本拟增加回溯，优化方法调用。\n\n1.1版本每次运行可进行多次资源映射。\n\n1.0版本每次运行只能运行一次映射，下一个版本将增加多次映射功能。\n\n\n\n## 1. 运行环境\n\n- 系统环境：Windows / Linux\n\n- 软件环境：Java-1.8 version\n\n- 编译依赖：Maven\n\n\n## 2. 运行方法\n\n\n编译方法：\n\n```\nmvn clean install\n```\n\n运行示例：\n```\njava -jar ovx-simulation-jar-with-dependencies.jar\n\nPlease input physical topology param description file path(e.g, ~/params/phy.json): 物理网络参数文件地址\n**************************************************\nPlease input resource request param description file path: 虚拟网络参数文件地址\nRequest:\n{s3=100, s4=100, s1=1, s2=100}\n{(s1 : s2)=100, (s3 : s4)=100, (s1 : s4)=100, (s1 : s3)=100, (s2 : s4)=100}\nResourceAllocation{\nvAllocationMap={},\neAllocationMap={},\nisAllocationSuccess=false}\nTotal Cost:0\nRun time：168ms\n*******\nRemain Resource:\nNodes:{s3=100, s4=100, s1=1, s2=100}\nLinks:{(s1 : s2)=100, (s3 : s4)=100, (s1 : s4)=100, (s1 : s3)=100, (s2 : s4)=100}\n**************************************************\nPlease input resource request param description file path:虚拟网络参数文件地址2\nRequest:\n{s3=100, s4=100, s1=1, s2=100}\n{(s1 : s2)=100, (s3 : s4)=100, (s1 : s4)=100, (s1 : s3)=100, (s2 : s4)=100}\nResourceAllocation{\nvAllocationMap={},\neAllocationMap={},\nisAllocationSuccess=false}\nTotal Cost:0\nRun time：0ms\n*******\nRemain Resource:\nNodes:{s3=100, s4=100, s1=1, s2=100}\nLinks:{(s1 : s2)=100, (s3 : s4)=100, (s1 : s4)=100, (s1 : s3)=100, (s2 : s4)=100}\n**************************************************\nCtr + D Exit\n```\n\n### 2.1 参数：\n(1)物理网络参数文件地址：表示物理网络配置文件所在地址，该文件格式如下\n\n```\n\t* nodes：表示所有的交换机节点\n\t* \n\t\t* name：交换机节点的名称\n\t\t* resource：交换机节点的计算容量\n\t\t* cost：交换机节点计算能力单位成本\n\n\t* links：表示所有物理链路(表示双向链路，src和dst无特殊意义)\n\t* \n\t\t* src: 链路一端的交换机节点名称\n\t\t* dst: 链路另一端交换机节点名称\n\t\t* resource：链路总带宽\n\t\t* cost：链路带宽成本\n```\n\n```\n{\n    \"nodes\":[\n        {\n            \"name\":\"s1\",\n            \"resource\":100,\n            \"cost\":5\n        },\n        {\n            \"name\":\"s2\",\n            \"resource\":100,\n            \"cost\":5\n        },\n        {\n            \"name\":\"s3\",\n            \"resource\":100,\n            \"cost\":5\n        },\n        {\n            \"name\":\"s4\",\n            \"resource\":100,\n            \"cost\":5\n        }\n    ],\n    \"links\":[\n        {\n            \"src\":\"s1\",\n            \"dst\":\"s2\",\n            \"resource\":100,\n            \"cost\":5\n        },\n        {\n            \"src\":\"s1\",\n            \"dst\":\"s3\",\n            \"resource\":100,\n            \"cost\":5\n        },\n        {\n            \"src\":\"s2\",\n            \"dst\":\"s4\",\n            \"resource\":100,\n            \"cost\":5\n        },\n        {\n            \"src\":\"s3\",\n            \"dst\":\"s4\",\n            \"resource\":100,\n            \"cost\":5\n        }\n    ]\n}\n\n```\n\n(2) 虚拟网络参数文件地址：表示虚拟网络参数文件的地址，文件格式如下。\n\n\t* nodes：表示所有的交换机节点\n\t* \n\t\t* name：虚拟节点的名称\n\t\t* resource：虚拟节点的计算容量需求\n\n\t* links：表示所有虚拟链路(表示双向链路，src和dst无特殊意义)\n\t* \n\t\t* src: 链路一端的虚拟交换机节点名称\n\t\t* dst: 链路另一端虚拟交换机节点名称\n\t\t* resource：虚拟链路带宽需求\n\n\n```\n{\n    \"nodes\":[\n        {\n            \"name\":\"s1\",\n            \"resource\":100\n        },\n        {\n            \"name\":\"s2\",\n            \"resource\":100\n        },\n        {\n            \"name\":\"s3\",\n            \"resource\":100\n        },\n        {\n            \"name\":\"s4\",\n            \"resource\":100\n        }\n    ],\n    \"links\":[\n        {\n            \"src\":\"s1\",\n            \"dst\":\"s2\",\n            \"resource\":100\n        },\n        {\n            \"src\":\"s1\",\n            \"dst\":\"s3\",\n            \"resource\":100\n        },\n        {\n            \"src\":\"s2\",\n            \"dst\":\"s4\",\n            \"resource\":100\n        },\n        {\n            \"src\":\"s3\",\n            \"dst\":\"s4\",\n            \"resource\":100\n        }\n    ]\n}\n\n```\n\n### 2.2 输出说明\n\n````\nRequest:                         # Resource request params\n{s3=100, s4=100, s1=1, s2=100}\n{(s1 : s2)=100, (s3 : s4)=100, (s1 : s4)=100, (s1 : s3)=100, (s2 : s4)=100}\nResourceAllocation{              # Resource mapping result\nvAllocationMap={},\neAllocationMap={},\nisAllocationSuccess=false}\nTotal Cost:0\nRun time：0ms\n*******\nRemain Resource:                 # Remain source info\nNodes:{s3=100, s4=100, s1=1, s2=100}\nLinks:{(s1 : s2)=100, (s3 : s4)=100, (s1 : s4)=100, (s1 : s3)=100, (s2 : s4)=100}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruicao93%2Fovx-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruicao93%2Fovx-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruicao93%2Fovx-simulation/lists"}