Chapter 6 Bit4001+q+Ex
Chapter 6 Bit4001+q+Ex
networks and
communications
Chap 6: Application Layer
Lecturer: Dr. Trong-Minh Hoang
Chapter 6: The Application Layer
Content
6.1. Domain Name System (DNS)
6.2. Eletronic Mail and File Transfer
6.3. WEB Application
6.4. Streaming Audio and Video
6.5. Content Delivery
6.6. Summary
Chapter 6: The Application Layer
6.1. Domain Name System
- To identify an entity, TCP/IP protocols use the IP address, which uniquely identifies the
connection of a host to the Internet.
- However, people prefer to use names instead of numeric addresses. Therefore, we need
a system that can map a name to an address or an address to a name
Chapter 6: The Application Layer
6.1. Domain Name System
6.1.1. NAME SPACE
A name space that maps each address to a unique name can be organized in two ways: fiat or
hierarchical.
- Flat Name Space:
In a flat name space, a name is assigned to an address. A name in this space is a sequence
of characters without structure.
2 Zone: Since the complete domain name hierarchy cannot be stored on a single server, it is divided among many
servers.
3 Root Server: A root server is a server whose zone consists of the whole tree. A root server usually does not store any
information about domains but delegates its authority to other servers, keeping references to those servers
4 Primary and Secondary Servers: A primary server is a server that stores a file about the zone for which it is an
authority( responsible for creating, maintaining, and updating the zone file. It stores the zone file on a local disk )
Chapter 6: The Application Layer
6.1. Domain Name System
6.1.4. DNS in The Internet
- DNS is a protocol can be used in different platforms.
- In the internet, DNS tree is Divided in to three different sections
Chapter 6: The Application Layer
6.2. Eletronic Mail and File Transfer
6.2.1. Architecture and Services
Two kinds of subsystems:
- The user agents, which allow people to read and send email
- The message transfer agents, which move the messages from the source to the
destination.
- The message transfer agents relay messages from the originator to the recipient.
The mail transfer is done with the SMTP protocol.
- SMTP (Simple Mail Transfer Protocol): is a protocol used to transmit emails between
servers and uses DNS mechanism to look up the recipient's email server.
•Mail Submission: The process of sending an email from a user to an email server.
•Physical Transfer: The process of transferring an email from the sending server to
the receiving server via SMTP.
Chapter 6: The Application Layer
6.2. Eletronic Mail and File Transfer
6.2.4. Final Delivery
The process of delivering an email to the recipient's mailbox via a different protocol
such as POP3 or IMAP.
• POP3 (Post Office Protocol version 3): A protocol used to transfer emails from
email servers to a user's personal computer. It allows users to download emails to
their computer and store them there.
• Cookies: are small text files that are stored on a user's computer and can track their browsing
history and preferences.
• Third-party trackers: are embedded on websites by advertisers and can collect information
about users across multiple sites.
• Device and browser fingerprinting: uses information such as screen size and installed fonts
to uniquely identify a device or browser.
>>These technologies can be used to track users, build profiles, and target advertising.
Chapter 6: The Application Layer
6.4. STREAMING AUDIO AND VIDEO
6.4.1. Digital Audio
- Digital audio uses binary signals to represent sound, uses the dB unit to measure the loudness of
sound signals
- Analog-to-digital conversion is used to convert analog audio to digital audio (ADC - DAC)
- Digital audio can be compressed for smaller file sizes.
- Popular formats include MP3, AAC, and MP4.
Audio Compression:
(a) A sine wave. (b) Sampling the sine wave. (c) Quantizing the samples to 4 bits.
Chapter 6: The Application Layer
6.4. STREAMING AUDIO AND VIDEO
6.4.2. Digital Video
- Digital video refers to the representation of moving visual images in a digital format.
- There are various compression standards for digital video, such as MPEG, H.264, and HEVC.
- The quality of digital video depends on various factors, such as resolution, frame rate, and bit rate.
Video Compression
- Content formats: Audio Video Interleave (AVI), Moving Picture Experts Group (MPEG), Flash Video (FLV),
Windows Media Video (WMV) and QuickTime.
- The technology behind real-time streaming relies on a steady and uninterrupted flow of data, which
can be achieved through various streaming protocols such as HTTP Live Streaming (HLS), Dynamic
Adaptive Streaming over HTTP (DASH), and Real-Time Messaging Protocol (RTMP).
- Real-time streaming has become increasingly popular with the rise of online video platforms and
the growth of the internet.
Voice over IP: is a technology for transmitting voice and digital information over the internet. It uses
digital data packets to transmit sound and is uncompressed at the destination. Common protocols
include SIP, RTP, and UDP.
Chapter 6: The Application Layer
6.4. STREAMING AUDIO AND VIDEO
6.4.4. Real-Time Streaming
H.323:
- The first protocol developed for internet-based audio and video calls, and it uses multiple protocols
including Real-time Transport Protocol (RTP), Transmission Control Protocol (TCP), and User Datagram
Protocol (UDP) to transmit audio and video.
- Allows multiple devices to connect with each other in a call, including landline and mobile phones,
computers, and other devices.
SIP
- Is a more popular and widely used protocol for internet-based calls. It uses SIP User Datagram Protocol
(UDP) to transmit data and allows users to connect with each other on various devices including phones
and computers.
- SIP enables devices to connect and disconnect more easily than H.323 and is considered to be more
flexible and scalable.
Chapter 6: The Application Layer
6.5. Content Delivery
- Is the process of distributing digital content from a server to end users over the internet.
- Content Delivery technologies include placing servers closer to end users, using caching, and optimizing
network infrastructure.
- Content Delivery Networks (CDNs) are widely used to improve content loading speeds by storing
content on distributed servers worldwide and routing users to the nearest server to download content.
- Optimization of content transfer protocols, including HTTP/2 and QUIC, are also used to improve
loading speed by reducing load time and increasing transfer speed.
- Content Delivery can also be optimized by using image and video optimization techniques to reduce file
size and increase loading speed. These techniques include compression, image and video formats, and
image filtering.
Chapter 6: The Application Layer
6.5. Content Delivery
6.5.1. Content and Internet Traffic
When N movies are available, the fraction of all requests for the kth most popular one is approximately C/k.
Here, C is computed to normalize the sum to 1, namely:
Server Farms
Web Proxies
Chapter 6: The Application Layer
6.5. Content Delivery
6.5.3. Content Delivery Networks
Populating CDN Cache Nodes: is preloading content onto cache nodes in a CDN to improve
content delivery speeds. This can be done via origin pull, direct push, or pre-warming.
Techniques such as intelligent caching and prioritizing popular content can optimize cache
node population.
DNS Redirection and Client Mapping: are techniques used in CDNs to improve content
delivery speed by mapping user IP addresses to the nearest cache node and reducing network
hops.
Chapter 6: The Application Layer
6.5. Content Delivery
6.5.3. Content Delivery Networks
CDN distribution tree Directing clients to nearby CDN nodes using DNS
Chapter 6: The Application Layer
6.5. Content Delivery
6.5.4. Peer-to-Peer Networks