cours:bat4:netipws:ipudptcpsummary
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
cours:bat4:netipws:ipudptcpsummary [2018/03/07 11:13] – [Internet and Transport Protocols : Key Ideas] tigli | cours:bat4:netipws:ipudptcpsummary [2018/03/20 14:45] (Version actuelle) – [Internet Communications and Protocol : Key Ideas] tigli | ||
---|---|---|---|
Ligne 11: | Ligne 11: | ||
* Routing table on each router provided a way to know which interface to use to send data to a give IP adress. | * Routing table on each router provided a way to know which interface to use to send data to a give IP adress. | ||
* In such a hierarchy, every set of IP adresses consists in : a netid part and a hostid part : < | * In such a hierarchy, every set of IP adresses consists in : a netid part and a hostid part : < | ||
+ | |||
+ | ||| | ||
+ | ||| | ||
+ | |||
+ | {{: | ||
+ | |||
* a subnet is a subset of adresses in this hierarchy : < | * a subnet is a subset of adresses in this hierarchy : < | ||
* a network mask allows to specify the number of bits of the netid. All the bits corresponding to the netid are equal to 1 and the other to 0. Thus for 167.145.134.32/ | * a network mask allows to specify the number of bits of the netid. All the bits corresponding to the netid are equal to 1 and the other to 0. Thus for 167.145.134.32/ | ||
* For each network, size of subnetid + size of hostid | * For each network, size of subnetid + size of hostid | ||
- | * So, for each network coded on k bits, a maximum of 2^(32-k-1) adresses are available for hosts. | + | * So, for each network coded on k bits, a maximum of 2^(32-k) |
=== Exercices : === | === Exercices : === | ||
* How many interfaces has your PC ? (use ipconfig or ifconfig commands according to your OS : linus, MacOS, Windows) | * How many interfaces has your PC ? (use ipconfig or ifconfig commands according to your OS : linus, MacOS, Windows) | ||
- | * What is the IP adress for Wifi ? What is the mask of the corresponding network ? What is the list of IP adresses on this network ? | + | * What is the mask of the corresponding network ? What is the list of IP adresses on this network ? |
=== Advanced Exercice : === | === Advanced Exercice : === | ||
Ligne 27: | Ligne 33: | ||
* What are the different adresses of these networks ? their network mask ? | * What are the different adresses of these networks ? their network mask ? | ||
* What maximum of host adresses can I set in each appartment ? (6) | * What maximum of host adresses can I set in each appartment ? (6) | ||
- | * The router of the building is connected to ISDN optic fiber on the interface A (MAC address : | ||
- | ==== Transport Protocols : Key Ideas ==== | + | === Routing Table Example |
- | || | + | * The router of the building is connected to ISDN optic fiber on the interface A (MAC address : 00: |
- | * Because one internet interface can be used to send and receive multiple data simultaneously | + | * Interface B : 01: |
- | * On each | + | * Interface C : 01: |
+ | * Interface D : 01: | ||
+ | * Interface E : 01: | ||
+ | * Interface F : 01: | ||
+ | * Interface G : 01: | ||
+ | * Each Interface B to G is obviously connected to each appartment. | ||
+ | |||
+ | ** The routing table of the router is then : ** | ||
+ | |Interface|Mac Address|IP address of the network| Mask of the Nerwork| | ||
+ | |A|00: | ||
+ | |B|01: | ||
+ | |C|01: | ||
+ | |D|01: | ||
+ | |E|01: | ||
+ | |F|01: | ||
+ | |G|01: | ||
+ | |||
+ | // ** (*) Gateway means all the other IP Addresses ... ** // | ||
+ | |||
+ | * If you use route command | ||
+ | |||
+ | ** Comments ** | ||
+ | |||
+ | * using calc application on your PC in programmer mode (see upper left menu), try an AND operator between different hostids of different sunbets and the last byte of the mask ... | ||
+ | * Ex. : 203 AND 248, gives 200 ; 219 AND 248 gives 216. | ||
+ | * When you do same thing between 145.134.235.216 and 255.255.255.248 byte after byte what is the result? ... do you understand? | ||
+ | * This is the simplest operation to determine as quickly as possible which is the network the IP address belong to and what is the corresponding interface | ||
+ | |||
+ | |||
+ | === ConceptDraw and Network Layout on the floor === | ||
+ | * Each appartment is then equiped with a main Ethernet plug (on which we can plug a switch to distribute internet connection through ethernet to all the other ethernet plugs of the appartment. | ||
+ | |||
+ | <note important> | ||
+ | Everything is now defined | ||
+ | </ | ||
cours/bat4/netipws/ipudptcpsummary.1520421224.txt.gz · Dernière modification : 2018/03/07 11:13 de tigli