Passerelle PATTON version papier
Transcription
Passerelle PATTON version papier
Passerelle PATTON 4552 On dispose d'une passerelle ( gateway ) PATTON 4552. I) Configuration des interfaces Q1) A l'aide de la documentation Patton4552__SNFRENCH-GS.pdf ( 2 premières pages d'annexe en version TD papier ou fichier joint en version TD sur ordinateur ), compléter le schéma suivant en indiquant le nom des ports et le type de réseau que l'on peut connecter. Côté public ? ? LAN PC config dhcp => 192.168.1.x 192.168.1.1 administrator, "" Patton version logicielle R5.2.2009-07.09 SIP ? ? Côté privé On donne le fichier de configuration startup_essai4.cfg ( pages d'annexe suivantes en version TD papier ou fichier joint en version TD sur ordinateur ),. La configuration utilise des interfaces qui sont associées aux ports ( bind interface ). Q2) Chercher dans ce fichier les ports RNIS. En regardant la configuration d'horloge ( maitre ou esclave ), en déduire lequel de 0 et 1 est côté public, côté privé. En déduire la ou les interfaces qui leurs sont associées. Q3) Chercher dans ce fichier les ports ethernet. En déduire la ou les interfaces qui leurs sont associées. Déduire grâce à leur nom laquelle est côté public, côté privé. Q4) Quels sont les codecs utilisables pour la ToIP ? 1/2 II) Utilisation de la passerelle Q5) Quelle est l'adresse IP côté WAN ? Quelle est l'adresse IP côté LAN ? Q6) Quels sont les identités SIP ( authentication-service ) ? Q7) Quelles sont les serveurs SIP ( chapitre location-service ) ? Quelles sont les identités associées ? Le rôle de la passerelle est que l'on appelle depuis un réseau téléphonique R1 et que l'appel continue sur un autre réseau téléphonique R2. Mais chaque réseau a sa numérotation ( exemple: réseau local en 1xx, réseau public à 10 chiffres en 0381884700 ) La passerelle voit qu'il y a un appel sur une interface. Q8) Comment voit qu'il y a un appel en RNIS ( S0 ) ? en RTC ( Z = FXS ) ? En SIP ? Elle recherche comment l'interpréter: On a défini pour l'interface une table de routage ( RT Routing Table ). Q9) Quelle sont les noms des tables de routages pour chaque interface ( Dans les définitions d'interface: RT Routing Table en fin de ligne "route call dest-table" ) ? Conclusion ( pour les appels entrants depuis les réseaux publics, pour les appels sortants depuis les réseaux locaux ) ? Cette table analyse le numéro appelé et lui associe l'interface suivante vers laquelle elle prolonge l'appel. Q10) Avec les lignes "route" de la section "routing-table called-e164 RT_CALL_ROUTING", indiquer les numéros appelés associés à chaque interface. Elle change le n° appelant car on change de réseau donc à priori de type de numéros. Le numéro appelant du réseau R1 ne sera pas compris sur le réseau R2 => La passerelle doit mettre SON numéro du réseau R2. Q11) Avec les lignes "mapping table" quels sont les numéros associés aux interfaces ( ceux utilisés quand on émet un appel sur ce réseau mais aussi que l'ont utilisera pour les appeler ) Remarque: Pour SIP, on doit aussi modifier le champ des trames ré-émises sur l'interface suivante sinon on a un envoi de message SIP INVITE N°_appelé@anonymous.net ce qui fait que le serveur SIP renvoie "404 not found". => IL faut ajouter pour les interfaces SIP qui émettent l'adresse du serveur SIP ( Outgoing Call Address Translation, Ligne "To", colonne "from where to take the host/port Part", cocher case vide et mettre 194.0.0.23 puis 5060 pour le SIP public ) III) Synthèse Q12) Expliquer ce qui se passe quand un téléphone SIP local 210 appelle le RNIS public 3036. Q13) Expliquer ce qui se passe quand un téléphone RNIS public 3036 appelle le SIP local 210 ? Que faut-il ajouter ? 2/2 Annexes 1/7 Annexes 2/7 #----------------------------------------------------------------# # # # SN4552/2BIS/EUI # # R5.2 2009-07-09 SIP # # 1970-01-01T00:04:03 # # SN/00A0BA05B4A6 # # Generated configuration file # # # #----------------------------------------------------------------# cli version 3.20 gui type basic dns-relay webserver port 80 language en sntp-client sntp-client server primary 129.132.2.21 port 123 version 4 system ic voice 0 profile acl ACL_WAN_PERMIT_ALL_MGMT permit 1 ip any any "" profile acl ACL_WAN_PERMIT_SEL_MGMT deny 1 tcp any any eq 23 "" deny 2 tcp any any eq 80 "" deny 3 udp any any eq 161 "" permit 4 ip any any "" profile acl ACL_WAN_BLOCK_ALL_MGMT deny 1 tcp any any eq 23 "" deny 2 tcp any any eq 80 "" deny 3 udp any any eq 161 "" permit 4 ip any any "" profile service-policy SP_WAN_OUT rate-limit 100000 header-length 18 voice-margin 0 source traffic-class local-voice priority source traffic-class default priority profile service-policy SP_WAN_IN rate-limit 100000 header-length 18 voice-margin 200 source traffic-class local-voice priority source traffic-class default queue-limit 4 profile napt NAPT_WAN profile ppp default profile call-progress-tone US_DIAL_TONE play 1 10 350 -13 440 -13 profile call-progress-tone US_RB_TONE play 1 2000 440 -19 480 -19 pause 2 4000 profile call-progress-tone US_BUSY_TONE play 1 500 480 -24 620 -24 pause 2 500 profile call-progress-tone US_CONGESTION_TONE play 1 250 480 -24 620 -24 pause 2 250 Annexes 3/7 profile tone-set default profile tone-set Europe profile tone-set UnitedStates map call-progress-tone dial-tone US_DIAL_TONE map call-progress-tone ringback-tone US_RB_TONE map call-progress-tone busy-tone US_BUSY_TONE map call-progress-tone release-tone US_BUSY_TONE map call-progress-tone congestion-tone US_CONGESTION_TONE profile voip default codec 1 g711alaw64k rx-length 20 tx-length 20 codec 2 g711ulaw64k rx-length 20 tx-length 20 profile voip VOIP codec 1 g711alaw64k rx-length 20 tx-length 20 codec 2 g711ulaw64k rx-length 20 tx-length 20 dejitter-mode static dejitter-max-delay 120 profile pstn default profile sip default profile dhcp-server DHCPS_LAN network 192.168.1.0 255.255.255.0 include 1 192.168.1.10 192.168.1.19 lease 2 hours default-router 1 192.168.1.1 domain-name patton.com domain-name-server 1 192.168.1.1 profile aaa default method 1 local method 2 none context ip router interface IF_IP_WAN ipaddress 194.0.0.3 255.255.255.0 use profile acl ACL_WAN_PERMIT_ALL_MGMT in use profile service-policy SP_WAN_IN in use profile service-policy SP_WAN_OUT out use profile napt NAPT_WAN tcp adjust-mss rx 582 tcp adjust-mss tx 1440 interface IF_IP_LAN ipaddress 192.168.1.1 255.255.255.0 icmp router-discovery use profile napt NAPT_WAN context ip router dhcp-server use profile DHCPS_LAN route 0.0.0.0 0.0.0.0 194.0.0.13 0 subscriber ppp SUB_PPPOE dial out no multilink authentication chap authentication pap bind interface IF_IP_WAN router context cs switch routing-table called-e164 RT_CALL_ROUTING route 1000 dest-interface IF_SIP_SERVICE MT_ID_SIP route 3036 dest-interface IF_monT0 MT_ID_monT0 route 40 dest-interface IF_S0_01 route 200 dest-interface IF_SIP_LOC MT_ID_SIP_LOC route 3501 dest-interface IF_S0_01 routing-table called-e164 RT_INCOMING route default dest-interface IF_S0_01 MT_NR_TRANSLATION Annexes 4/7 routing-table called-e164 RT_NR_BLOCKING mapping-table called-e164 to called-e164 MT_SPEED_DIAL mapping-table calling-e164 to calling-e164 MT_SET_CNPN map default to 40 mapping-table called-e164 to called-e164 MT_NR_TRANSLATION map default to 40 mapping-table calling-e164 to calling-e164 MT_ID_SIP map default to 1001 mapping-table calling-e164 to calling-e164 MT_ID_monT0 map default to 3500 mapping-table calling-e164 to calling-e164 MT_ID_SIP_LOC map default to 201 interface isdn IF_S0_01 route call dest-table RT_CALL_ROUTING interface isdn IF_monT0 route call dest-table RT_INCOMING interface sip IF_SIP_SERVICE bind context sip-gateway GW_SIP route call dest-table RT_INCOMING address-translation outgoing-call to-header user-part call host-part fix 194.0.0.23 5060 interface sip IF_SIP_LOC bind context sip-gateway GW_SIP_LOC route call dest-table RT_CALL_ROUTING address-translation outgoing-call to-header user-part call host-part fix 192.168.1.23 5060 service hunt-group SER_HG_PSTN_FALLBACK timeout 6 drop-cause normal-unspecified drop-cause no-circuit-channel-available drop-cause network-out-of-order drop-cause temporary-failure drop-cause switching-equipment-congestion drop-cause access-info-discarded drop-cause circuit-channel-not-available drop-cause resources-unavailable drop-cause no-route-to-destination route call 1 dest-interface IF_SIP_SERVICE route call 2 dest-interface IF_S0_00 context cs switch no shutdown authentication-service AUTH_SVC username 1001 password /cC0XGzbtGs= encrypted authentication-service AUTH_SVC_mon2 username 1002 password Mm1a+aQkWyw= encrypted authentication-service AUTH_SVC_LOC username 201 password e1Q8XrEKJBg= encrypted location-service LOCATION_SVC domain 1 194.0.0.23 identity-group default display-name 1001 authentication outbound authenticate 1 authentication-service AUTH_SVC registration outbound proxy 1 194.0.0.23 register auto Annexes 5/7 call outbound proxy 1 194.0.0.23 identity 1001 inherits default identity 1002 inherits default authentication outbound authenticate 1 authentication-service AUTH_SVC_mon2 username 1002 authentication inbound authenticate none registration outbound registrar 194.0.0.23 5060 proxy 1 194.0.0.23 5060 lifetime 3600 retry-timeout on-system-error 10 retry-timeout on-client-error 10 retry-timeout on-server-error 10 location-service LOCATION_SVC_LOC domain 1 192.168.1.23 5060 identity-group default_LOC display-name 201 authentication outbound authenticate 1 authentication-service AUTH_SVC_LOC username 201 registration outbound registrar 192.168.1.23 5060 proxy 1 192.168.1.23 5060 lifetime 3600 register auto retry-timeout on-system-error 10 retry-timeout on-client-error 10 retry-timeout on-server-error 10 identity 201 inherits default_LOC display-name 201 authentication outbound authenticate 1 authentication-service AUTH_SVC_LOC username 201 registration outbound registrar 192.168.1.23 5060 proxy 1 192.168.1.23 5060 lifetime 3600 register auto retry-timeout on-system-error 10 retry-timeout on-client-error 10 retry-timeout on-server-error 10 context sip-gateway GW_SIP interface SIP_WAN bind interface IF_IP_WAN context router port 5060 context sip-gateway GW_SIP bind location-service LOCATION_SVC no shutdown context sip-gateway GW_SIP_LOC interface SIP_LAN bind interface IF_IP_LAN context router port 5060 context sip-gateway GW_SIP_LOC bind location-service LOCATION_SVC_LOC no shutdown Annexes 6/7 port ethernet 0 0 bind interface IF_IP_WAN router pppoe session SES_PPPOE bind subscriber SUB_PPPOE shutdown port ethernet 0 0 no shutdown port ethernet 0 1 bind interface IF_IP_LAN router no shutdown port bri 0 0 clock slave encapsulation q921 q921 permanent-layer2 uni-side user encapsulation q931 q931 protocol dss1 uni-side user bchan-number-order ascending encapsulation cc-isdn bind interface IF_monT0 switch port bri 0 0 no shutdown port bri 0 1 clock master encapsulation q921 q921 permanent-layer2 protocol pp uni-side net encapsulation q931 q931 protocol dss1 uni-side net bchan-number-order ascending encapsulation cc-isdn bind interface IF_S0_01 switch port bri 0 1 no shutdown Annexes 7/7