https://www.tcetmumbai.in/EXTC/Syllabus/Autonomy/TE%20Sem%20VI_Syllabus.pdf
���Computer Communication Networks � �
Module 1: Introduction
Contents
Basic introduction to a network
Applications of Networks
Business applications
Resource sharing
Information sharing
VPNs
Email communication
IP telephony
Home applications
Internet access
Ubiquitous computing
Mobile users
Cellular networks
Communication through wireless hotspots
m-Commerce
Wearable devices
Network Hardware �
Network hardware (Contd..)
Hubs | Gateways | Router | Repeater | Bridge | Switch |
They are generally used to connect computers in a LAN | A gateway is a network node that forms a passage between two networks operating with different transmission protocols | Routers are networking devices operating at layer 3 or a network layer of the OSI model | Its job is to regenerate the signal over the same network before the signal becomes too weak or corrupted so as to extend the length to which the signal can be transmitted over the same network | A bridge is a network device that connects multiple LANs (local area networks), that has a similar protocol, together to form a larger LAN | It is an intelligent network device that uses MAC addresses (addresses of medium access control sublayer) to send data packets to selected destination ports |
A hub has many ports in it. A computer which intends to be connected to the network is plugged in to one of these ports | Gateway is located at the boundary of a network and manages all data that inflows or outflows from that network | They are responsible for receiving, analyzing, and forwarding data packets among the connected computer networks | Repeaters do not amplify the signal. When the signal becomes weak, they copy the signal bit by bit and regenerate it at the original strength | By joining multiple LANs, bridges help in multiplying the network capacity of a single LAN | It is supports unicast (one-to-one), multicast (one-to-many) and broadcast (one-to-all) communications |
A hub cannot filter data. It is a non-intelligent network device that sends message to all ports | The feature that differentiates a gateway from other network devices is that it can operate at any layer of the OSI model | When a data packet arrives, the router inspects the destination address, consults its routing tables to decide the optimal route and then transfers the packet along this route | | | |
It primarily broadcasts messages | | | | | |
They are passive devices and don’t have any software associated with it | | | | | |
Network hardware
Network software
Network software (Contd..)
Reference models
OSI model
OSI model: Organization of the 7 layers
Physical, data link, network layers together acting as the ‘NETWORK SUPPORT LAYERS’
Session, Presentation, application layers together acting as the ‘USER SUPPORT LAYERS’
Transport
layer
Links the two subgroups and ensures that what the lower layers have transmitted is in a form that the upper layers can use
Deals with the physical aspects of moving data from one device to another
Allows interoperability between unrelated software systems
OSI model: Details of each layer https://www.youtube.com/watch?v=vv4y_uOneC0�
Physical | Data link | Network | Transport | Session | Presentation | Application |
Coordinates the movement of a bit stream | Makes the physical layer appear error-free to the upper layer | Responsible for source-to-destination delivery of packets | Responsible for process-to-process delivery of the message | Establishes, maintains and synchronizes the interaction between communicating systems | Concerned with the syntax and semantics of the information | Enables the user, whether human or software, to access the network |
Defines the characteristics of the interface | Divides the stream of bits into frames | Performs logical addressing | Divides a given message into transmittable segments | Allows two systems to enter into a dialog | Responsible for interoperability between devices using different encoding systems | Supports services such as electronic mail, remote file access and transfer, shared database management etc. |
Defines how 0s and 1s can be encoded | Imposes a flow control mechanism | Provides the mechanism of routing | Performs either connectionless or connection-oriented delivery | Allows a process to add checkpoints (synchronization points) into a stream of data | Assures privacy | |
Concerned with the connection of the devices to the media | Helps detect and retransmit damaged or lost frames as also recognize duplicate frames | | Performs flow control but end to end rather than across a single link | | Allows data compression while transmitting text, audio and video | |
Defines how the devices are connected to make a network | Determines which device has control over the link | | Responsible for error control | | | |
Defines the direction of transmission | | | | | | |
Different network topologies
Bus topology
Star topology
Ring topology
Mesh topology
TCP/IP reference model�
TCP/IP model: Details of each layer
Physical | Data link | Network | Transport | Application |
TCP/IP does not define any specific protocol for the physical layer i.e., it supports all the standard and proprietary protocols | TCP/IP does not define any specific protocol for the data link layer | Also called as the internetwork layer | All nodes in a network need to have the network layer, only the two end computers need to have the transport layer | This layer is equivalent to the combined session, presentation and application layers in the OSI model |
Unit of communication is a single bit | The unit of communication is a frame | TCP supports Internet Protocol (IP) | The unit of communication is a segment | The unit of communication at the application layer is a message |
The responsibility of the physical layer is delivery of bits | At the data link layer, two nodes communicate logically but not physically | IP transports data in the form of packets called datagrams | Here again the communication is logical not physical | Communication at the application layer is end to end |
The other functionalities matches with what is mentioned for the physical layer of the OSI model | | Communication at network layer differs from the communication at the data link or physical layer wherein the communication at the network layer is end to end while the communication at the remaining two are node to node | The transport layer is represented by two protocols: UDP and TCP | |
| | Here again the communication is logical not physical | | |
Communication at data link layer
Communication at network layer
Communication at transport layer
Addressing in TCP/IP architecture
Physical address | Logical address | Port address | Application specific address |
Also called as MAC address, it is a unique address provided by the device's vendor at the time of manufacturing and embedded in its NIC (Network Interface Card) | Also called as IP address, is the identifier that enables your device to send or receive data packets across the internet | Port number identifies a specific process to which an Internet or other network message is to be forwarded when it arrives at a server | User-friendly addresses that are designed for that specific application |
It is 12 digit and 48 bits long | It is 32 bits long and is expressed in the form of four pairs | It is 16 bits long | |
E.g.: 00:0a:95:9d:67:16 | E.g. 192.16.100.1 | E.g. 80 for HTTP, 123 for NTP, 67 and 68 for DHCP traffic, 22 for SSH etc | E.g. e-mail address, Universal Resource Locator |
Application-Specific addresses
Port addresses
Logical addresses
Physical addresses
Services
Services (Contd..)
Sockets and ports: Ports
Sockets and ports: Ports
Sockets and ports: Sockets
Sockets and ports: Sockets (Contd..)
The interaction between a process and the OS is done through a list of predefined functions:
int socket(int family, int type, int protocol)
int bind(int sockfd, const struct sockaddress* localAddress, socklen_t addreLen)
int connect(int sockfd, const struct sockaddress* remoteAddress, socklen_t addreLen)
int listen(int sockfd, int backlog)
int accept(int sockfd, const struct sockaddress* clientAddr, socklen_t addreLen)
Encapsulation
An exchange using the OSI model
Encapsulation (Contd..)