Академический Документы
Профессиональный Документы
Культура Документы
Figure:
5.) Session
4.) Transport 3.) Network 2.) Data Link 1.) Physical
Examples
Layer Example
7.) Application HTTP, FTP, SMTP 6.) Presentation ASCII, JPEG, PGP 5.) Session 4.) Transport BOOTP, NetBIOS, DHCP, DNS TCP, UDP, SPX
3.) Network
2.) Data Link 1.) Physical
Encapsulation
Data exists at each layer contained within a unit called a Protocol Data Unit (PDU) The process by which data moves between PDU types is called Encapsulation PDU move through interfaces between layers using Service Access Points (SAP)
5.) Session
4.) Transport 3.) Network 2.) Data Link 1.) Physical
Data
Segment Packet Frame Bits
The layers in the TCP/IP protocol suite do not exactly match those in the OSI model. The original TCP/IP protocol suite was defined as having four layers: host-to-network, internet, transport, and application. However, when TCP/IP is compared to OSI, we can say that the TCP/IP protocol suite is made of five layers: physical, data link, network, transport, and application.
ADDRESSING Four levels of addresses are used in an internet employing the TCP/IP protocols: physical, logical, port, and specific.
A node with physical address 10 sends a frame to a node with physical address 87. The two nodes are connected by a link (bus topology LAN). As the figure shows, the computer with physical address 10 is the sender, and the computer with physical address 87 is the receiver.
Most local-area networks use a 48-bit (6-byte) physical address written as 12 hexadecimal digits; every byte (2 hexadecimal digits) is separated by a colon, as shown below: 07:01:02:01:2C:4B
A 6-byte (12 hexadecimal digits) physical address.
Example
Figure shows two computers communicating via the Internet. The sending computer is running three processes at this time with port addresses a, b, and c. The receiving computer is running two processes at this time with port addresses j and k. Process a in the sending computer needs to communicate with process j in the receiving computer. Note that although physical addresses change from hop to hop, logical and port addresses remain the same from the source to destination.
Port addresses
Example
A port address is a 16-bit address represented by one decimal number as shown.
753
A 16-bit port address represented as one single number.
Background of IP Addressing
Network numbers are managed by non-profit organization called ICANN to avoid conflicts
IP Addresses
Uniquely & universally defines connection of a host or router on Internet Internet address are usually written in decimal notation with decimal point separating the bytes
Classful Addressing
However
Most of Internet is still using classful addressing Migration is slow
A, B, C, D, & E
Each class is divided into fixed number of blocks with each block having a fixed size Class A -> divided into 128 blocks
Each block have a different netid 1st block -> addresses from 0.0.0.0 to 0.255.255.255 (netid 0) 2nd block -> addresses from 1.0.0.0 to1.255.255.255 (netid 1) Last block -> addresses from 127.0.0.0 to 127.255.255.255 (netid 127)
first & last block in each class is reserved for special purposes. In addition One block (netid 10) -> private addresses total number of organizations that can have class A is only 125
Each block in a class contains 16,777,216 address . Millions of class A addresses are wasted . Next slide shows blocks in class A graphically
Blocks in Class A
An organization granted a block with netid 73 uses its addresses First address in block used to identify organization from rest of Internet -> address is called network address
Class B
Divided into 16, 384 blocks with each block having different netid
Each block in a class contains 65,536 classes Next slide shows blocks in class B graphically
Blocks in Class B
Class C
Divided into 2,097,152 blocks with each block having different netid
Blocks in Class C
Network Address
Example -> given network address 17.0.0.0, find the class, the block, and range of addresses
This is class A address -> first byte is between 0 & 127 Block has a netid of 17
Mask
Mask is 32-bit binary number that gives first address in block i.e., network address when
Default Masks
The network address is the beginning address of each block It can be found by applying the default mask to any of the addresses in the block (including itself). It retains the netid of the block and sets the hostid to zero
Class A
B C
Given address is 23.56.7.91 & default class A mask, find the network address?
Given address 201.180.56.5 & class C default mask, find network address?
Multihomed Devices
Will have more than one address, each possibly belonging to a different class
A router must be connected to more than one network otherwise -> it cannot route
Router has more than one IP address, one for each interface Figure shows one multihomed computer & one router
Special IP addresses
IP address 0.0.0.0 is used by hosts when they are booted IP addresses with 0s as network number refer to the current network Address with all 1s allows broadcasting on local network All address of form 127.xx.yy.zz are reserved for loop back testing
Private Addresses
Blocks 1 16 256
Practice Question 3
Suppose that instead of using 16 bits for network part of a class B address originally, 20 bits had been used. How many class B networks would there have been?
With a 2-bit prefix, there would have been 18 bits left over to indicate the network
However, all 0s and all 1s are special, so only 262,142 are available.
Practice Question 4
A network on Internet has a subnet mask of 255.255.240.0. What is maximum no. of hosts it can handle?
The remaining 12 bits are for the host, so 4096 host addresses exist
THE END