Introduction:
-A network can be defined as a group of computers and other devices connected in some ways so as to be able to exchange data.
-Each of the devices on the network can be thought of as a node; each node has a unique address.
-Addresses are numeric quantities that are easy for computers to work with, but not for humans to remember.
Example: 204.160.241.98
-Some networks also provide names that humans can more easily remember than numbers.
Example: http://www.javasoft.com, corresponding to the above numeric address.
Port Numbers
HTTP 80
FTP 20 & 21
SMTP(e-mail) 25
POP3(e-mail) 110
TELNET 23
Data Transmission:
-In modern networks, data are transferred using packet switching.
-Messages are broken into units called packets, and sent from one computer to the other.
-At the destination, data are extracted from one or more packets and used to reconstruct the original message.
-Each packet has a maximum size, and consists of a header and a data area.
-The header contains the addresses of the source and destination computers and sequencing information necessary to reassemble the message at the destination.
Types of Networks:
There are two principle kinds of networks:
Wide Area Networks (WANs)
Local Area Networks (LANs).
WANs
-Cover cities, countries, and continents.
-Based on packet switching technology
-Examples of WAN technology:
Asynchronous Transfer Mode (ATM),
Integrated Services Digital Network (ISDN)
LANs
-Cover buildings or a set of closely related buildings.
-Examples of LAN technology: Ethernet, Token Ring, and Fibber Distributed Data Interconnect (FDDI).
Ethernet LANs: based on a bus topology and broadcast communication
Token ring LANs: based on ring topology
FDDI LANs: use optical fibbers and an improved token ring mechanism based on two rings flowing in opposite directions.
Interconnection:
According to the protocols involved, networks interconnection is achieved using one or several of the following devices:
→Bridge: a computer or device that links two similar LANs based on the same protocol.
→ Router: a communication computer that connects different types of networks using different protocols.
→ B-router or Bridge/Router: a single device that combines both the functions of bridge and router.
→ Gateway: a network device that connects two different systems, using direct and systematic translation between protocols.
Protocols
-Define the rules that govern the communications between two computers connected to the network.
-Roles: addressing and routing of messages, error detection and recovery, sequence and flow controls etc.
Networks Interconnection/Internet
Posted by surfingall on May 6, 2010
– Requires the definition of a common interconnection protocol on top
the local protocols.
– The Internet Protocol (IP) plays this role, by defining unique addresses
for a network and a host machine.
Internet Protocol (IP)
The IP protocol provides
→ Decomposition of the initial information flow into packets of
standardized size, and reassembling at the destination.
→ Routing of a packet through successive networks, from the source
machine to the destination identified by its IP address.
The IP protocol does not request for connection (connectionless) before sending data and does not make any error detection.
Functions
– Decompose the initial data (to be sent) into datagrams.
– Each datagram will have a header including, the IP address and the port number of the destination.
– Datagrams are then sent to selected gateways, e.g IP routers, connected at the same time to the local network and to an IP service provider network.
– IP packet can be a maximum of 64Kb long.
Transmission Control Protocol (TCP)
– TCP provides by using IP packets a basic service that does guarantee safe delivery:
→ error detection
→ safe data transmission
→ assurance that data are received in the correct order
– Before sending data, TCP requires that the computers communicating
establish a connection (connection-oriented protocol).
– TCP provides support for sending and receiving arbitrary amounts of data as one big stream of byte data (IP is limited to 64Kb).
– TCP does so by breaking up the data stream into separate IP packets.
– Packets are numbered, and reassembled on arrival, using sequence and sequence acknowledge numbers.
– TCP also improves the capability of IP by specifying port numbers.
→ There are 65,536 different TCP ports (sockets) through which every TCP/IP machine can talk.
User Datagram Protocol (UDP)
– Has the same packet-size limit (64Kb) as IP, but allows for port number specification.
– Provides also 65,536 different ports.
– Hence, every machine has two sets of 65,536 ports: one for TCP and the other for UDP.
– Connectionless protocol, without any error detection facility.
– Provides only support for data transmission from one end to the other, without any further verification.
– The main interest of UDP is that since it does not make further verification, it is very fast.
– Useful for sending small size data in a repetitive way such as time information.
Posted in Networking | Tagged: datagrams, gateways, Internet Protocol (IP), IP address, ports, protocol, TCP, UDP | Leave a Comment »
Protocol Layers
Posted by surfingall on May 6, 2010
OSI (Open Systems Interconnection) Data Model
-Involves at least 7 layers
Physical layer: ensures a safe and efficient travel of data; consists of electronic circuits for data transmission etc.
Data link layer: in charge of data encapsulation under the form of packets and their interpretation at the physical layer.
Network layer: in charge of packets transmission from a source A to a destination B.
Transport layer: in charge of the delivery of packets from a source A to a destination B
Session layer: in charge of the management of network access.
Presentation layer: determines the format of the data transmitted to applications, data compressing/decompressing, encrypting etc.
Application layer: contains the applications which are used by the end-user, such as Java, Word etc.
TCP/IP Model
Network layer:
-Provides the same functionality as the physical, the data link and network layers in the OSI model.
-Mapping between IP addresses and network physical addresses.
-Encapsulation of IP datagrams, e.g packets, in format understandable by the network.
Internet layer:
-Lies at the heart of TCP/IP.
-Based on the Internet Protocol (IP), which provides the frame for transmitting data from place A to place B.
Transport layer:
-Based on two main protocols: TCP (Transmission Control Protocol) and UDP (User Datagram protocol)
Application layer
-Combines the functions of the OSI application, presentation, and session layers.
-Protocols involved in this layer: HTTP, FTP, SMTP etc.