Académique Documents
Professionnel Documents
Culture Documents
skgochhayat@gmail.com
Functions Of Protocols
Session establishment and termination between users. Orderly exchange of Data messages. Coding of the information. Routing and Sequencing Flow control and Congestion control. Error checking and recovery. Efficient network resource utilization
Code conversion to facilitate understanding of the meaning. Routing of the messages through Network. Error control to counteract effect of disturbances. Transmission of Electrical Signals.
OSI Layers
Layer-7: Application Layer-6: Presentation Layer-5: Session Layer-4: Transport Layer-3: Network Layer-2: Data Link Layer-1: Physical
Transport
Network Data Link Physical
OSI Layers
Network Support Layers (Layers 1-3) User Support Layers (Layers 5-7)
systems
one device to another
OSI Layers
End System Application Presentation User Support Layers Session Network Support Layers Transport Network Network Network Network Data Link Data Link Data Link Data Link Physical Physical Physical Physical
PSPDN
PSTN
Dedicated
CSPDN
Hierarchical communication.
Within a single machine, each layer calls upon the services of the layer just below it The passing of data and network information is made possible by an interface between each pair of adjacent layers The messages exchanged between the adjacent layers, to obtain the required services, are called Interface Control
Peer-to-Peer communication
Between machines, layer-n on one machine communicates with layer-n on another machine This communication is governed by an agreedupon series of rules and conventions called protocols The processes on each machine that communicates at a given layer are called peerto-peer processes At the physical layer, communication is direct At higher layers, communication moves down
Hierarchical
N+1-Layer
Interface
PCI
N+1-Layer
Interface
N-Layer
ICI
Peer-to-Peer
N-Layer
Interface
(N+1)-SDU
(N)-ICI (N)-IDU (N)-ICI (N)-ICI (N)-SDU
(N+1)-PCI
(N+1)-SDU (N)-PDU
Data Units
Data Units
OSI Layers
7-Application
7-6 Interface Link Intermediate Node Link
7-Application
7-6 Interface
6-Presentation
6-5 Interface
6-Presentation
6-5 Interface
5-Session
5-4 Interface
5-Session
5-4 Interface
4-Transport
4-3 Interface
4-Transport
4-3 Interface
3-Network
3-2 Interface
3-Network
3-2 Interface
3-Network
3-2 Interface
2-Data Link
2-1 Interface
2-Data Link
2-1 Interface
2-Data Link
2-1 Interface
1-Physical
1-Physical
1-Physical
Presentation
6-5 Interface
Session
5-4 Interface
Transport
4-3 Interface
Data Link
2-1 Interface
Physical
Presentation
6-5 Interface
Session
5-4 Interface
Transport
4-3 Interface
Data Link
2-1 Interface
Physical
NSS GSTN
64Kb/s
R A D I O MS
MSC ISDN
VLR
BTS
SS7
HLR
NSS
BSS : Base Station Sub-system BSC : Base Station Controller BTS : Base Transceiver Station TRAU : Transcoder / Rate Adapter Unit
NSS : Network and Switching Sub-system MSC: Mobile service Switching Center HLR : Home Location Register VLR : Visitors Location Register
A MSC
CM
MS
CM MM RR RR LAPDm radio LAPDm radio
BTS
BSC
MM
BSSAP
BSSAP
SS7
PCM
SS7
PCM
16/64 kbit/s
ISDN Protocol
Two types of ISDN Interfaces : Basic Rate Interface (BRI), and Primary rate interface (PRI), provide multiple digital bearer channels over which temporary connections can be made and data can be sent. The result is digital dial access to multiple site concurrently. Type of Interface Number of Bearer Channels (B channels) 2 23 30 Number of Signaling Channels (D Channels) 1 (16 Kbps) 1 (64 Kbps) 1 (64 Kbps)
ISDN Channels
B Channels : Bearer channels (B channels) are used to transport data. B Channels are called bearer channels because they bear the burden of transporting the data. B channels operate up to 64 Kbps, although the speed might be lower depending on the service provider. D Channels are used for signaling. LAPD is used to deliver signaling message to the ISDN switch
BRI B0 B1 D LAPD
PPP
BRI B0 B1 D LAPD
ISDN Network
The call is established through the service provider network; PPP is used as the data link protocol on the B channel from end to end. LAPD is used between the router and the ISDN switch at each local central office (CO) and remains up so that new signaling messages can be sent and received. Because the signals are sent outside the channel used for data, this is called out-of-band signaling. The BRI encodes bits at 192 kbps, out of which 144 Kbps is used by B and D Channels rest is used for framing.
Dial on Demand Routing Logic is configured in the routers to trigger the dial when that traffic needs to get to another site is sent by user. Telecommuting Environment Backup to leased lines When leased line fails, an ISDN call is established between two routers.
NT1
BRI
BRI
ISDN Network
Establishment and release of signalling layer 2 connections. Multiplexing and de multiplexing of several signalling layer 2 connection on a dedicated control channel and discrimination between them by including different Service Access Point Identifiers (SAPI). Mapping of signalling layer 2 service data units on protocol data unit (in case of acknowledged operation service data units may be segmented and reassembled at destination). Detection and recovery of errors due to loss, duplication, and disorder. Flow control.
LAPDM Protocol
The establishment and release of layer 2 connection coincides with the allocation release, and change of dedication radio channels. Signaling layer 2 connections are frequently established and released, and thus an average lifetime of a connection is short. Multiplexing and demultiplexing deals with arranging different user (eight channels per frame) in a frame format. LAPDm uses on the two modes of operation for the transmission of layer 3 message; unacknowledged operation of multiple frame operation.
LAPDM Protocol
On the DCCH both unacknowledged and acknowledged operations are used, DCCHs (SDCCH, SACCH and FACCH) whereas on the CCCHs only unacknowledged operation is applied. Thus, both modes are applicable for transmission over on of the in contrast top information transfer over CCCHs (BCCH, PCH and AGCH)
LAPDM Protocol
For an unacknowledged information transfer, the use of layer 3 service implies that the information transfer is not acknowledged by the data link layer, and thus error check facilities are not provided. The transmission and reception of messages here use data link service primitives, that is, DL-DATA-REQUEST and DL-DATA-INDICATION.
The main distinction between LAPD and LAPDm is the absence of address and control fields. Thus, the protocol is only used for the unacknowledged mode of operation, which applies to BCCHs and CCCHs only. Both FCCH and SCH under BCCH do not require unacknowledged. Similarity, no acknowledgement is needed for PCH and AGCH. The LAPD frame is used internal to BSS, namely, between BTS and BSC.
SS7 Signaling
Transport Layer
5 Basic Components in Intelligent Networks SSP/Service Switching Point switching, service invocation STP/Service Transfer Point signal routing TCAP messages SCP/Service Control Point IP service logic execution SDP/Service Data Point subscriber data storage, access SSP IP/Intelligent Peripheral resources such as customized voice announcement, voice recognition, DTMF digit collection
SCP
SDP
STP
STP
SSP
Signalling example
BBSR Exch Exch KOLKOTA Database A typical scenario: User A calls mobile user B. The call is routed to a specific gateway exchange (GMSC) that must contact a database (HLR) to find out under which exchange (MSC) the mobile user is located. The call is then routed to this exchange. Exch CUTTACK
INAP
MAP
Presentation Session
Transport
TCAP
ISUP
Network
Data Link
Physical
MTP Level 1
Message Transfer Part Level 1 Handling the issues related to the signals on the physical links between one signaling node and another Closely to layer 1 of the OSI stack Level 2 Dealing with the transfer of messages on a given link from one node to another Providing error detection/correction and sequenced delivery of the SS7 messages signalling network supervision and maintenance functions
MTP Level 3
Services
The transfer of messages Indicating availability of resources MTP-Transfer request, MTP-Transfer indication,
MTP_Pause indication, MTP-Resume indication, and MTP-Status indication
ISUP
ISDN User Part Used as the protocol for setting up and tearing down phone calls between switches Initial Address Message (IAM) To initiate a call between two switches Answer Message (ANM) To indicate that a call has been accepted by the called party Release Message (REL) To initiate call disconnection
Connection-Oriented Protocol
A connection-oriented protocol
SCCP
Signaling Connection Control Part Used as the transport layer for TCAP-based services
information between signaling points Queries and responses sent between SSPs and SCPs are carried in TCAP messages
Provides services to
Figure 7-4 depicts a typical SS7 network arrangement. This configuration serves several purposes.
No direct signaling links A fully meshed signaling network is not required. The quad arrangement ensures great robustness.
Each node in an SS7 network is an SP. The signaling address of the SP is known as a signaling point code (SPC). Linkset
A network entity that contains additional logic and that can be used to offer advanced services The switch sends a message to the SCP asking for instructions.
An example
A subscriber dials a toll-free 800 number The SSP knows that it needs to query the SCP The SCP contains the translation information The SCP responds to the SSP with a routable
number The SSP routes the call Connectionless signaling The application use the services of TCAP, which in turn uses the services of SCCP
The messages sent in Units the SS7 network Message Signal (MSUs)
Backward Sequence Number BSN Indicator Bit Forward Sequence Number Length Indicator
The actual user information The ANSI version and the ITU-T version The routing label
SS7 addressing The ANSI version, 24 bits Member, cluster, network codes An operator has a network code The ITU-T version, 14 bits International Signaling Gateway Use sub-service field National, Nation Spare, International, International Spare An international gateway has one national point code and one international code
International Signaling
National
SPC = 277
SPC = 277 means different signalling points (network elements) at different network levels. The Service Information Octet (SIO) indicates whether the DPC and OPC are international or national signalling point codes.
F CK SIF SIO LI Control F
Only for signalling between exchanges (ISUP can never be used between an exchange and a stand-alone database)
Not only for ISDN (=> ISUP is generally used in the PSTN)
ACM
The call is through-connected to the destination A one-way-audio path is opened for ring-back tone Optional
If not returned, no ring-back tone at all
Open the transmission path in both directions Instigate charging for the call
STP
Exchange
Processing in (transit) exchange(s): Received IAM message contains B-number. Exchange performs number analysis (not part of ISUP) and selects new DPC (60) and CIC (20).
Setup
IAM
Number analysis
IAM
Setup Alert
Alert
ACM
ACM
Connect
ANM
Charging of call starts now
ANM
Connect
Database
1. Exchange knows the global title (e.g. 0800 number or IMSI number in a mobile network) but does not know the DPC of the database related to this global title.
2. SCCP performs global title translation in the STP (0800 or IMSI number => DPC) and the SCCP message can now be routed to the database.
Switching system
Group switch ETC ETC Sign. TDM links to other network elements Exchange terminal circuit
Control system
4. Tone Rx is connected
1. Off hook LIC LIC 5. Dial tone is sent (indicating network is alive) Time switch Tone Rx
Switching system
Group switch ETC ETC Sign.
Tone generator
2. Check user database. For instance, is user A barred for outgoing calls? 3. Reserve memory for user B number
Control system
Switching system
LIC LIC 1. User A dials user B number Time switch Tone Rx Group switch ETC ETC Sign.
Control system
Switching system
LIC LIC 1. Tone receiver is disconnected 2. Outgoing circuit is reserved 3. Outgoing signalling message (ISUP IAM) contains user B number Time switch Tone Rx Group switch ETC ETC Sign.
E.g., CIC = 24
Control system
Switching system
LIC LIC 2. Ringback or busy tone is locally generated 4. Call continues Tone generator Time switch Group switch ETC ETC Sign.
ACM, ANM
1. ISUP ACM message indicates free or busy user B 3. Charging starts when ISUP ANM message is received
Control system
MTP
ISUP
Long-distance VoIP network A given route set should not be out of service for more than 10 minutes per year. No more than 1x10-7 messages should be lost. No more than 1x10-10 messages should be delivered out of sequence. In ISUP, numerous timing requirements must be met. How to make sure that VoIP networks can emulate the signaling performance of SS7. SIGTRAN (Signaling Transport) group of IETF
Softswitch Architecture
SS7 Network
SCP STP
Internet
Call Agent
MGCP/ MEGACO
CO Switch
RTP
Signaling Transport (SIGTRAN) Addressing the issues regarding the transport of signaling within IP networks
SIP/MEGACO/ISUP Interworking
ISUP) that expects certain services from lower layers such as MTP when lower layers do not exist in the IP network? For transport layer, the ISUP message must be carried in the IP network with the same speed and reliability as in the SS7.
UDP x TCP x
An adaptation layer is used to support specific primitives as required by a particular signaling application.
The standard SS7 applications (e.g., ISUP) do not realize that the underlying transport is IP.
NIF (Nodal Interworking Function) is responsible for interworking between the SS7 and IP networks
SCTP: fast delivery of messages (error-free, in sequence delivery), network-level fault tolerance
Adaptation [2/3] M2PA (MTP-2 Layer Peer-to-Peer Adaptation Layer) An SG that utilizes M2PA is a signaling node for the
MGC.
SCTP
To offer the fast transmission and reliability required for signaling carrying. SCTP provides a number of functions that are critical for telephony signaling transport.
Why not use TCP? TCP provides both reliable data transfer
and strict order-of-transmission, but SS7 may not need ordering.
The limited scope of TCP sockets complicates the task of data transmission using multi-homed hosts. TCP is relatively vulnerable to DoS attack, such as SYN attacks.
To ensure reliable, error-free, insequence delivery of user messages (optional). To support fast delivery of messages and avoid head-of-line blocking. To support network-level fault tolerance that is critical for carrier-grade network performance by using multi-home hosts. To provide protection against DoS attack by using 4-way handshake and cookie.
Endpoint The logical sender/receiver of SCTP packets. Transport address = IP address + SCTP port number An endpoint may have multiple transport addresses (for multi-homed host, all transport addresses must use the same port number.) Association A protocol relationship between SCTP endpoints. Two SCTP endpoints MUST NOT have more than one SCTP association.
Multi-Homed Host
Host A
Host B
SCTP Streams
. . .
Source Port Number
15 16
Verification Tag Checksum
. . .
Destination Port Number
31
Chunk Type
Chunk Length
Chunk 1
Chunk N
. . .
Chunk Type --------------- Payload Data (DATA) - Initiation (INIT) - Initiation Acknowledgement (INIT ACK) - Selective Acknowledgement (SACK) - Heartbeat Request (HEARTBEAT) - Heartbeat Acknowledgement (HEARTBEAT ACK) - Abort (ABORT) - Shutdown (SHUTDOWN) - Shutdown Acknowledgement (SHUTDOWN ACK) - Operation Error (ERROR) - State Cookie (COOKIE ECHO) - Cookie Acknowledgement (COOKIE ACK) - Reserved for Explicit Congestion Notification Echo (ECNE) - Reserved for Congestion Window Reduced (CWR) - Shutdown Complete (SHUTDOWN COMPLETE) - Reserved for IETF
INIT chunk
INIT ACK
Acknowledge the initiation Must not share a packet with any other chunk Acknowledge the receipt of Data chunks Inform the sender of any gaps
SACK
HEARTBEAT
When no chunks need to be sent Send periodic HEARTBEAT messages Contain sender-specific information
Containing heartbeat information copied form
HEARTBEAT
End an association abruptly Cause information Can be multiplexed with other SCTP control
chunks
SHUTDOWN
A graceful termination of an association Stop sending any new data Wait until all data sent has been
ERROR
COOKIE ECHO
Used only during the initiation of an association An INIT ACK includes a cookie parameter Information specific to the endpoint, a timestamp, a cookie lifetime Upon receipt of an INIT ACK
Return the cookie information in COOKIE ECHO Can be multiplexed; must be the first chunk
COOKIE ACK
INIT Chunk
0 Type = 1 . . . Chunk Flags Initial Tag Advertised Receiver Window Credit (a_rwnd) Number of Outbound Streams Number of Inbound Streams 15 16 . . . Chunk Length 31
Association Establishment
INIT [I-Tag=Tag_A] INIT ACK [V-Tag=Tag_A, I-Tag=Tag_Z, Cookie_Z]
allocating resources
SCTP packets
SCTP
DATA Chunk
0
Type = 0
. . .
Reserved
15 16
UB E TSN
. . .
Chunk Length
31
Stream ID = S
. . .
Carry information to and from the ULP U: unordered bit B and E: beginning and end bits
without regard to sequencing
SACK Chunk
0
Type = 3
. . .
Chunk Flags
15 16
Cumulative TSN Ack
. . .
Chunk Length
31
Advertised Receiver Window Credit (a_rwnd) Number of Gap Ack Blocks = n Gap Ack Block #1 Start Number of Duplicate TSNs = x Gap Ack Block #1 End
. . .
Duplicate TSN #1
. . .
Transferring data
Cumulative TSN
unbroken sequence 2
Gap Ack Block number 1 start Gap Ack Block number 1 end a_rwnd
sequence 8 (8-4)
To handle a certain amount of failure in the network without a significant reduction in quality
INIT and INIT ACK chunks may optionally include one or more IP addresses (a primary address + several secondary addresses).
Multi-homes hosts
SCTP ensures that endpoint is aware of the reachability of another endpoint through the following mechanisms.
SACK chunks if DATA chunk have been sent HEARTBEAT chunks if an association is idle
M3UA Operation
A logical entity handling signaling for a scope A CA handles ISUP signaling for a SS7
DPC/OPC/CIC-range An AS contains a set of Application Server Processes (ASPs)
ASP
A process instance of an AS Can be spread across multiple IP addresses Active ASPs and standby ASPs
Routing Key
Network Appearance
Point code
same PC
A CA sends an ISUP message MTP-Transfer request A SCTP DATA chunk Transmitted to a SG M3UA MTP3 To the SS7 network
M3UA Messages
Messages between peer M3UA entities A header + the M3UA message content The entities can communicate information
regarding the SS7 network
If a remote destination becomes unavailable The SG becomes aware of this through SS7
signaling-network management messages The SG pass M3UA messages to the CA The ISUP application at the CA is made aware
MTP-Pause indication
When all links to the SS7 network have been Sent from the SG to all connected ASPs Destination(s) within the SS7 network is not
available
Sent from SG to all concerned ASPs Mapped to the MTP-Resume indication Sent from an ASP to an SG To query the status of one or more destination The SG responds with DAVA, DUNA, or
SCON
ASP management
ASPUP ASP Up
Used between M3UA peers The adaptation layer is ready to receive traffic
or maintenance messages
Sent by an ASP Indicate that it is ready to be used To receive all messages or in a load-sharing
mode Routing context
BEAT Heartbeat
Between M3UA peers Still available to each other When M3UA use the services of SCTP
level
NFTY Notify
M2UA Operation
MTP3
Routing and distribution capabilities ASPUP, ASPDN, ASPAC, ASPIA and ERR
M2UA-specific messages
DATA
ESTABLISH REQUEST