{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {
    "deletable": false,
    "editable": false,
    "nbgrader": {
     "cell_type": "markdown",
     "checksum": "dfe4667275de5336a4b8f84b1800a55d",
     "grade": false,
     "grade_id": "cell-fdd9aaf71771f5cc",
     "locked": true,
     "schema_version": 3,
     "solution": false,
     "task": false
    }
   },
   "source": [
    "<div style=\"background-color:rgba(100, 160, 200, 0.33);\">\n",
    "\n",
    "<h1>Tutorial 1 - Introduction</h1>\n",
    "\n",
    "<p>\n",
    "Submission process:\n",
    "</p>\n",
    "<ul>\n",
    "<li>Submission deadline is November 5, 14:00 CET (before the lecture) .</li>\n",
    "<li>Commit and push your solution as separate notebook files per subtask via git as <span style=\"font-family: monospace\">./tutorial/tutorial1/tutorial1_1.ipynb</span>. Please take care of the correct subfolder/filename since submission is denied otherwise.</li>\n",
    "<li>During the first lecture after the deadline we will discuss a sample solution in class.</li>\n",
    "<li>Afterwards, you have time until November 10, 16:00 CET (before the lecture) to submit a corrected version of your submission:</li>\n",
    "<ol>\n",
    "  <li>Rework your solution according to our discussion in class.</li>\n",
    "  <li>Commit and push the corrected version as a separate file per subtask via git as <span style=\"font-family: monospace\">./tutorial/tutorial1/tutorial1_1.ipynb</span>. Please take care of the correct filename since submission is denied otherwise.</li>\n",
    "</ol>\n",
    "</ul>\n",
    "\n",
    "<p>\n",
    "Remarks:\n",
    "</p>\n",
    "<ul>\n",
    "<li>Grading is done based on both versions of your submission.</li>\n",
    "<li>If the first submission is missing or contains major flaws a deduction of up to 50% of the achieved points will be applied</li>\n",
    "<li>A sample solution is provided after November 10, 16:00 CET eventually.</li>\n",
    "<li>Do NOT duplicate cells or change the type of cells, otherwise you might receive zero points for your submission</li>\n",
    "<li>\n",
    "Please use <a href=\"mailto:acn@net.cit.tum.de\">acn@net.cit.tum.de</a> for questions regarding lecture, tutorial, and project of ACN.\n",
    "</li>\n",
    "</ul>\n",
    "</div>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "deletable": false,
    "editable": false,
    "nbgrader": {
     "cell_type": "markdown",
     "checksum": "6f7c435b17e86ea6a72ffe9d89cf3ccd",
     "grade": false,
     "grade_id": "cell-cf1bf85852242b36",
     "locked": true,
     "points": 0,
     "schema_version": 3,
     "solution": false,
     "task": true
    }
   },
   "source": [
    "<div style=\"background-color:rgba(200, 100, 100, 0.33);\">\n",
    "    <p>This cell is used to verify the structure of the submission </p>\n",
    "    DO NOT DELETE OR CHANGE THIS CELL, otherwise the task will be graded with 0 points\n",
    "    </div>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "deletable": false,
    "editable": false,
    "nbgrader": {
     "cell_type": "markdown",
     "checksum": "746d8e7caafde76e49c537deadbddfcf",
     "grade": false,
     "grade_id": "cell-9ec81d99ec93ef63",
     "locked": true,
     "schema_version": 3,
     "solution": false,
     "task": false
    }
   },
   "source": [
    "<div style=\"background-color:rgba(100, 160, 200, 0.33);\">\n",
    "<h3>Problem 1 GIT Access [1.5 credits]</h3>\n",
    "\n",
    "<p>\n",
    "This exercise should make you familiar with the git repositories.\n",
    "</p>\n",
    "\n",
    "</div>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "deletable": false,
    "editable": false,
    "nbgrader": {
     "cell_type": "markdown",
     "checksum": "979ce5d37f41f521de01045755a0f9e0",
     "grade": false,
     "grade_id": "cell-7c91ed2b9406ff5a",
     "locked": true,
     "schema_version": 3,
     "solution": false,
     "task": false
    }
   },
   "source": [
    "<div style=\"background-color:rgba(100, 160, 200, 0.33);\">\n",
    "<p>\n",
    "Git is a distributed version control system, originally developed by Linus Torvalds for maintaining the Linux kernel.\n",
    "It became popular in professional software development over the past few years due its features, stability, and efficiency.\n",
    "We use git in this course as a version control system for both submissions of exercises as well as the project, i.e., we provide you with a git repository structure hosted on the LRZ Gitlab.\n",
    "You can <span style=\"font-family: monospace\">clone</span> your repository and <span style=\"font-family: monospace\">push</span> changes to the server using SSH or HTTPS with or without a deploy token.\n",
    "</p>\n",
    "</div>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "deletable": false,
    "editable": false,
    "nbgrader": {
     "cell_type": "markdown",
     "checksum": "f01d3a38d4e276c0afe4af83fbfc9fa7",
     "grade": false,
     "grade_id": "cell-da835480fd1e1a8a",
     "locked": true,
     "schema_version": 3,
     "solution": false,
     "task": false
    }
   },
   "source": [
    "<div style=\"background-color:rgba(100, 160, 200, 0.33);\">\n",
    "<p>\n",
    "<b>a) [0.5 credits]</b>\n",
    "Explain the differences between the git commands <span style=\"font-family: monospace\">add</span>, <span style=\"font-family: monospace\">commit</span>, and <span style=\"font-family: monospace\">push</span>.\n",
    "</p>\n",
    "</div>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "deletable": false,
    "nbgrader": {
     "cell_type": "markdown",
     "checksum": "7086e9f2eac9f3877c4967e2793de185",
     "grade": true,
     "grade_id": "cell-43215a288c78973e",
     "locked": false,
     "points": 0.5,
     "schema_version": 3,
     "solution": true,
     "task": false
    }
   },
   "source": [
    "YOUR ANSWER HERE"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "deletable": false,
    "editable": false,
    "nbgrader": {
     "cell_type": "markdown",
     "checksum": "3b1212e87f6da93b0c01aa966af81823",
     "grade": false,
     "grade_id": "cell-b86540fadbe3cd23",
     "locked": true,
     "schema_version": 3,
     "solution": false,
     "task": false
    }
   },
   "source": [
    "<div style=\"background-color:rgba(100, 160, 200, 0.33);\">\n",
    "<p>\n",
    "<b>b) [0.5 credits]</b>\n",
    "Save your current changes to this Jupyter notebook.\n",
    "Add the file to a new commit and push to remote, then pull again.\n",
    "Execute the command <span style=\"font-family: monospace\">git tag</span> and paste the output here.\n",
    "    \n",
    "Explain the meaning of the output.\n",
    "</p>\n",
    "</div>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "deletable": false,
    "nbgrader": {
     "cell_type": "markdown",
     "checksum": "10b2cfb1850008d12adda1d9735c815d",
     "grade": true,
     "grade_id": "cell-72d209fc3eafbd1a",
     "locked": false,
     "points": 0.5,
     "schema_version": 3,
     "solution": true,
     "task": false
    }
   },
   "source": [
    "YOUR ANSWER HERE"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "deletable": false,
    "editable": false,
    "nbgrader": {
     "cell_type": "markdown",
     "checksum": "097b9205d30f56deceb819910e3b4029",
     "grade": false,
     "grade_id": "cell-e270850e1d463a07",
     "locked": true,
     "schema_version": 3,
     "solution": false,
     "task": false
    }
   },
   "source": [
    "<div style=\"background-color:rgba(100, 160, 200, 0.33);\">\n",
    "<p>\n",
    "<b>c) [0.5 credits]</b>\n",
    "    Create and push a new branch called <span style=\"font-family: monospace\">grades</span>.\n",
    "    Paste the commands used to do so into your answer.\n",
    "    Explain what happens.\n",
    "</p>\n",
    "</div>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "deletable": false,
    "nbgrader": {
     "cell_type": "markdown",
     "checksum": "329e541ed56833dbefecb079139ac40a",
     "grade": true,
     "grade_id": "cell-e7d47503f8871373",
     "locked": false,
     "points": 0.5,
     "schema_version": 3,
     "solution": true,
     "task": false
    }
   },
   "source": [
    "YOUR ANSWER HERE"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "deletable": false,
    "editable": false,
    "nbgrader": {
     "cell_type": "markdown",
     "checksum": "98175e258e37ad6f23951e183434b81f",
     "grade": false,
     "grade_id": "cell-9d0b2555f8ed32c3",
     "locked": true,
     "schema_version": 3,
     "solution": false,
     "task": false
    }
   },
   "source": [
    "<div style=\"background-color:rgba(100, 160, 200, 0.33);\">\n",
    "<p><b>Advanced Computer Networking by Prof. Dr.-Ing. Georg Carle</b></p>\n",
    "Teaching assistants: Christian Dietze, Sebastian Gallenmüller, Marcel Kempf, Lorenz Lehle, Patrick Dirks, Oliver Dürer\n",
    "</div>"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
