{"id":22878091,"url":"https://github.com/sporestudio/dhcp-schema","last_synced_at":"2026-01-11T01:30:39.163Z","repository":{"id":259286008,"uuid":"866687460","full_name":"sporestudio/dhcp-schema","owner":"sporestudio","description":"Schema for DHCP service requests.","archived":false,"fork":false,"pushed_at":"2024-10-23T18:42:41.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T20:24:40.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/sporestudio.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":"2024-10-02T17:41:35.000Z","updated_at":"2024-10-23T18:42:44.000Z","dependencies_parsed_at":"2024-10-24T04:32:26.641Z","dependency_job_id":"ee9876b7-23a0-4d91-a297-f464af91a063","html_url":"https://github.com/sporestudio/dhcp-schema","commit_stats":null,"previous_names":["sporestudio/dhcp-schema"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporestudio%2Fdhcp-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporestudio%2Fdhcp-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporestudio%2Fdhcp-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporestudio%2Fdhcp-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sporestudio","download_url":"https://codeload.github.com/sporestudio/dhcp-schema/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246481005,"owners_count":20784458,"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":[],"created_at":"2024-12-13T16:18:25.073Z","updated_at":"2026-01-11T01:30:39.135Z","avatar_url":"https://github.com/sporestudio.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# DHCP Schema\n\n**Our diagram is based on the following assumption:**\n\nA new user joins a network. We assume the network has 2 DHCP servers. \n\n- The user sits at their machine and turns on their computer. \n- They work for 1 hour connected to DHCP server #1. \n- The user experiences a 3-minute outage. The user reconnects to the network after 3 minutes. Server #1 is down. \n- The user remains active for 12 hours. \n- The user disconnects for 1 hour. \n- The user reconnects to the network.\n- The user stays on the network for 5 hours and then disconnects permanently.\n\n\u003cbr/\u003e\n\n\u003e[!NOTE]\n\u003e *We assume that our **DHCP server** operates with average lease time (8 hours).*\n\n\n## Diagram\n\n```mermaid\nsequenceDiagram\n    participant server1\n    participant client\n    participant server2\n   \n\n    Note over client: User turns on their computer\n\n    client-\u003e\u003eserver1: DHCPDISCOVER (Broadcast message)\n    client-\u003e\u003eserver2: DHCPDISCOVER (Broadcast message)\n    server1-\u003e\u003eclient: DHCPOFFER (8h max. use)\n    server2-\u003e\u003eclient: DHCPOFFER (8h max. use)\n\n    client-\u003e\u003eserver1: DHCPREQUEST (Broadcast message) \n    client-\u003e\u003eserver2: DHCPREQUEST (Broadcast message) \n    server1-\u003e\u003eclient: DHCPACK (Server 1 provides an IP to client)\n\n    client-\u003e\u003eclient: The connection gets interrupted for 3 minutes\n    \n    note over client: server1 is down.\n\n    client-\u003e\u003eserver1: DHCPREQUEST\n    note over client: No answer from server 1.\n\n\n    client-\u003e\u003eserver2: DHCPDISCOVER (Broadcast message)\n    client-\u003e\u003eserver1: DHCPDISCOVER (Broadcast message)\n    server2-\u003e\u003eclient: DHCPOFFER (8h max. use)\n    client-\u003e\u003eserver2: DHCPREQUEST (Broadcast message) \n    server2-\u003e\u003eclient: DHCPACK (Server 2 provides an IP to client)\n\n    note over client: After 4 hours the client has to ask again for the ip availability.\n\n    client-\u003e\u003eserver2: DHCPREQUEST\n\n    server2-\u003e\u003eclient: DHCPACK (The client can continue to use the same IP)\n\n\n    client-\u003e\u003eclient: After 8 hours the lease time finish\n\n\n\n    client-\u003e\u003eserver2: DHCPDISCOVER (Broadcast message)\n    server2-\u003e\u003eclient: DHCPOFFER (8h max. use)\n    client-\u003e\u003eserver2: DHCPREQUEST (Broadcast message)\n    server2-\u003e\u003eclient: DHCPACK (Server 2 provides an IP to client)\n\n\n    \n\n    note over client: client turns off computer after 4 hours.\n\n    note over client: The client start the computer after 1 hour. 3 lease hours remains.\n\n\n    client-\u003e\u003eserver2: DHCPREQUEST\n\n    server2-\u003e\u003eclient: DHCPACK (Server 2 provides client with the same IP)\n\n    client-\u003e\u003eclient: After 3 hours the lease time finish\n\n\n    client-\u003e\u003eserver2: DHCPDISCOVER (Broadcast message)\n    server2-\u003e\u003eclient: DHCPOFFER (8h max. use)\n    client-\u003e\u003eserver2: DHCPREQUEST (Broadcast message)\n    server2-\u003e\u003eclient: DHCPACK (Server 2 provides an IP to client)\n\n    note over client: After 4 hours the client has to ask again for the ip availability.\n\n\n    client-\u003e\u003eserver2: DHCPREQUEST\n\n    server2-\u003e\u003eclient: DHCPACK (Server 2 provides client with the same IP)\n\n    note over client: The user is permanently disconnected after 5 hours.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsporestudio%2Fdhcp-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsporestudio%2Fdhcp-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsporestudio%2Fdhcp-schema/lists"}