SlideShare a Scribd company logo
1 of 13
Routing Polices and
  Firewall Filter




                  Kashif Latif
What is Routing Policies…?
A routing policy is a mechanism in the JUNOS software that
allows you to modify the routing policy framework to suit your
needs.
You can create and implement your own routing policies to do
the following:
 Control which routes a routing protocol places in the routing
  table.
 Control which active routes a routing protocol advertises from
  the routing table. (An active route is a route that is chosen from
  all routes in the routing table to reach a destination).
 Manipulate the route characteristics as a routing protocol
  places it in the routing table or advertises it from the routing
  table.
Count…
 You can manipulate the route characteristics to control
 which route is selected as the active route to reach a
 destination. The active route is placed in the forwarding
 table and used to forward traffic toward the route’s
 destination. In general, the active route is also advertised
 to a router’s neighbors.
 To create a routing policy, you must define the policy and
 apply it. You define the policy by specifying the criteria
 that a route must match and the actions to perform if a
 match occurs. You then apply the policy to a routing
 protocol or to the forwarding table.
Routing Tables Affected by Routing Policies
Default Actions on Routing Policies
The following default actions are taken if the following situations arise
during policy evaluation:
1. If a policy does not specify a match condition, all routes evaluated
    against the policy match.
2. If a match occurs but the policy does not specify an
    accept, reject, next term, or next policy action, one of the following
    occurs:
     1.     The next term, if present, is evaluated.
     2.     If no other terms are present, the next policy is evaluated.
     3.     If no other policies are present, the action specified by the default policy is
            taken.
3.        If a match does not occur with a term in a policy and subsequent
          terms in the same policy exist, the next term is evaluated.
4.        If a match does not occur with any terms in a policy and
          subsequent policies exist, the next policy is evaluated.
5.        If a match does not occur by the end of a policy or all policies, the
          accept or reject action specified by the default policy is taken.
Creating Routing Policies
The following are typical circumstances under which you might
want to preempt the default routing policies in the routing policy
framework by creating your own routing policies:

 You do not want a protocol to import all routes into the routing
 table. If the routing table does not learn about certain routes,
 they can never be used to forward packets and they can never
 be redistributed into other routing protocols.
 You do not want a routing protocol to export all the active
 routes it learns.
 You want a routing protocol to announce active routes learned
 from another routing protocol, which is sometimes called route
 redistribution.
Count…
 You want to manipulate route characteristics, such as the
 preference value, AS path, or community. You can
 manipulate the route characteristics to control which route
 is selected as the active route to reach a destination. In
 general, the active route is also advertised to a router’s
 neighbors.
 You want to change the default BGP route flap-damping
 parameters.
 You want to perform per-packet load balancing.
 You want to enable class of service (CoS).
Match Conditions
A match condition defines the criteria that a route must
match. You can define one or more match conditions. If a
route matches all match conditions, one or more actions
are applied to the route.
What is Firewall Filter…?
Firewall filters allow you to filter packets based on their
components and to perform an action on packets that match the
filter.
Depending on the hardware configuration of the routing platform,
you can use firewall filters for the following purposes:
1. On routing platforms equipped with an Internet Processor II
     application-specific integrated circuit (ASIC), you can
     control data packets, which are chunks of data transiting the
     routing platform as they are forwarded from a source to a
     destination.
2. On all routing platforms, you can control the local packets,
     which are chunks of data that are destined for or sent by the
     Routing Engine.
Count…
 You can use the filters to restrict the local packets that pass
 from the routing platform's physical interfaces to the Routing
 Engine.
 You can apply firewall filters to packets entering or leaving the
 routing platform on one, more than one, or all interfaces. For
 each interface, you can apply a firewall filter to incoming or
 outgoing traffic, or both, and the same filter can be used for
 both.
 You can define firewall filters that apply to IP version 4 (IPv4),
 IP version 6 (IPv6), or Multiprotocol Label Switching (MPLS)
 traffic.
 Filters with more than 1000 terms and counters have been
 implemented successfully.
Firewall Filter Components
Firewall Filter have following two components:
1. Match conditions—Values or fields that the packet must
    contain. You can define various match conditions, including
    the IP source address field, IP destination address
    field, Transmission Control Protocol (TCP) or User Datagram
    Protocol (UDP) source port field, IP protocol field, Internet
    Control Message Protocol (ICMP) packet type, IP
    options, TCP flags, incoming logical or physical
    interface, and outgoing logical or physical interface.
2. Action—Specifies what to do if a packet matches the match
    conditions. Possible actions are to accept, discard, or reject a
    packet, go to the next term, or take no action.

 In addition, statistical information can be recorded for a packet:
 it can be counted, logged, or sampled.
Supported Standards
The JUNOS software supports the following RFCs related
to filtering:
1. RFC 792, Internet Control Message Protocol (ICMP)
2. RFC 2373, IP Version 6 Addressing Architecture
3. RFC 2460, Internet Protocol, Version 6 (IPv6)
4. RFC 2474, Definition of the Differentiated Services (DS)
     Field
5. RFC 2475, An Architecture for Differentiated Services
6. RFC 2597, Assured Forwarding PHB
7. RFC 2598, An Expedited Forwarding PHB
Kashif Latif

More Related Content

Similar to Routing Polices And Firewall Filter

Policy and firewall_filters
Policy and firewall_filtersPolicy and firewall_filters
Policy and firewall_filtersRafael Alcazar
 
traffic-management-100.pdf
traffic-management-100.pdftraffic-management-100.pdf
traffic-management-100.pdfPrasetyo Bawono
 
IOS Zone based Firewall
IOS Zone based FirewallIOS Zone based Firewall
IOS Zone based FirewallNetwax Lab
 
Fortigatefirewall routing specficatoinmmm
Fortigatefirewall routing specficatoinmmmFortigatefirewall routing specficatoinmmm
Fortigatefirewall routing specficatoinmmmmaheshumanath1
 
A new approach to fight against the inter-domain BGP oscillations
A new approach to fight against the inter-domain BGP oscillationsA new approach to fight against the inter-domain BGP oscillations
A new approach to fight against the inter-domain BGP oscillationsIOSR Journals
 
3 ip routing eigrp
3 ip routing eigrp3 ip routing eigrp
3 ip routing eigrpSagarR24
 
Auto Finding and Resolving Distributed Firewall Policy
Auto Finding and Resolving Distributed Firewall PolicyAuto Finding and Resolving Distributed Firewall Policy
Auto Finding and Resolving Distributed Firewall PolicyIOSR Journals
 
3a.Error detection provides for accurate data transfer. Indeed, if.pdf
3a.Error detection provides for accurate data transfer. Indeed, if.pdf3a.Error detection provides for accurate data transfer. Indeed, if.pdf
3a.Error detection provides for accurate data transfer. Indeed, if.pdfapexjaipur
 
Systems and network architectures
Systems and network architecturesSystems and network architectures
Systems and network architecturescsk selva
 
Chapter 06 - Routing
Chapter 06 - RoutingChapter 06 - Routing
Chapter 06 - Routingphanleson
 
4 introduction to dynamic routing & dv vs ls
4  introduction to dynamic routing & dv vs ls4  introduction to dynamic routing & dv vs ls
4 introduction to dynamic routing & dv vs lsengismail200
 
2008118090324 hk
2008118090324 hk2008118090324 hk
2008118090324 hkVivek Singh
 

Similar to Routing Polices And Firewall Filter (20)

Policy and firewall_filters
Policy and firewall_filtersPolicy and firewall_filters
Policy and firewall_filters
 
traffic-management-100.pdf
traffic-management-100.pdftraffic-management-100.pdf
traffic-management-100.pdf
 
ENCOR_Chapter_6.pptx
ENCOR_Chapter_6.pptxENCOR_Chapter_6.pptx
ENCOR_Chapter_6.pptx
 
CCCNP ROUTE v6_ch04
CCCNP ROUTE  v6_ch04CCCNP ROUTE  v6_ch04
CCCNP ROUTE v6_ch04
 
IOS Zone based Firewall
IOS Zone based FirewallIOS Zone based Firewall
IOS Zone based Firewall
 
Group 1
Group 1Group 1
Group 1
 
Fortigatefirewall routing specficatoinmmm
Fortigatefirewall routing specficatoinmmmFortigatefirewall routing specficatoinmmm
Fortigatefirewall routing specficatoinmmm
 
Routing basic
Routing basicRouting basic
Routing basic
 
K010126674
K010126674K010126674
K010126674
 
A new approach to fight against the inter-domain BGP oscillations
A new approach to fight against the inter-domain BGP oscillationsA new approach to fight against the inter-domain BGP oscillations
A new approach to fight against the inter-domain BGP oscillations
 
CCCNP ROUTE v6_ch05
CCCNP ROUTE  v6_ch05CCCNP ROUTE  v6_ch05
CCCNP ROUTE v6_ch05
 
3 ip routing eigrp
3 ip routing eigrp3 ip routing eigrp
3 ip routing eigrp
 
Pbroute
PbroutePbroute
Pbroute
 
Auto Finding and Resolving Distributed Firewall Policy
Auto Finding and Resolving Distributed Firewall PolicyAuto Finding and Resolving Distributed Firewall Policy
Auto Finding and Resolving Distributed Firewall Policy
 
3a.Error detection provides for accurate data transfer. Indeed, if.pdf
3a.Error detection provides for accurate data transfer. Indeed, if.pdf3a.Error detection provides for accurate data transfer. Indeed, if.pdf
3a.Error detection provides for accurate data transfer. Indeed, if.pdf
 
Systems and network architectures
Systems and network architecturesSystems and network architectures
Systems and network architectures
 
Chapter 06 - Routing
Chapter 06 - RoutingChapter 06 - Routing
Chapter 06 - Routing
 
4 introduction to dynamic routing & dv vs ls
4  introduction to dynamic routing & dv vs ls4  introduction to dynamic routing & dv vs ls
4 introduction to dynamic routing & dv vs ls
 
2008118090324 hk
2008118090324 hk2008118090324 hk
2008118090324 hk
 
PACE-IT: Introduction to Routing Protocols - N10 006
PACE-IT: Introduction to Routing Protocols - N10 006PACE-IT: Introduction to Routing Protocols - N10 006
PACE-IT: Introduction to Routing Protocols - N10 006
 

More from Kashif Latif

Linear Programming Application
Linear Programming ApplicationLinear Programming Application
Linear Programming ApplicationKashif Latif
 
Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of VarianceKashif Latif
 
Core 2 Duo Processor
Core 2 Duo ProcessorCore 2 Duo Processor
Core 2 Duo ProcessorKashif Latif
 
SRX3600 Cluster & IDP
SRX3600 Cluster & IDPSRX3600 Cluster & IDP
SRX3600 Cluster & IDPKashif Latif
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information ProtocolKashif Latif
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path FirstKashif Latif
 
Link Aggregation Control Protocol
Link Aggregation Control ProtocolLink Aggregation Control Protocol
Link Aggregation Control ProtocolKashif Latif
 
Label Distribution Protocol
Label Distribution ProtocolLabel Distribution Protocol
Label Distribution ProtocolKashif Latif
 
HA, SRX Cluster & Redundancy Groups
HA, SRX Cluster & Redundancy GroupsHA, SRX Cluster & Redundancy Groups
HA, SRX Cluster & Redundancy GroupsKashif Latif
 
Difference Between XFP & SFP
Difference Between XFP & SFPDifference Between XFP & SFP
Difference Between XFP & SFPKashif Latif
 
Chassis Cluster Configuration
Chassis Cluster ConfigurationChassis Cluster Configuration
Chassis Cluster ConfigurationKashif Latif
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway ProtocolKashif Latif
 

More from Kashif Latif (16)

Linear Programming Application
Linear Programming ApplicationLinear Programming Application
Linear Programming Application
 
Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of Variance
 
Cyber Space
Cyber SpaceCyber Space
Cyber Space
 
DHCP
DHCPDHCP
DHCP
 
Core 2 Duo Processor
Core 2 Duo ProcessorCore 2 Duo Processor
Core 2 Duo Processor
 
OSI Layers
OSI LayersOSI Layers
OSI Layers
 
SRX3600 Cluster & IDP
SRX3600 Cluster & IDPSRX3600 Cluster & IDP
SRX3600 Cluster & IDP
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
MX960 Router
MX960 RouterMX960 Router
MX960 Router
 
Link Aggregation Control Protocol
Link Aggregation Control ProtocolLink Aggregation Control Protocol
Link Aggregation Control Protocol
 
Label Distribution Protocol
Label Distribution ProtocolLabel Distribution Protocol
Label Distribution Protocol
 
HA, SRX Cluster & Redundancy Groups
HA, SRX Cluster & Redundancy GroupsHA, SRX Cluster & Redundancy Groups
HA, SRX Cluster & Redundancy Groups
 
Difference Between XFP & SFP
Difference Between XFP & SFPDifference Between XFP & SFP
Difference Between XFP & SFP
 
Chassis Cluster Configuration
Chassis Cluster ConfigurationChassis Cluster Configuration
Chassis Cluster Configuration
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway Protocol
 

Recently uploaded

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 

Recently uploaded (20)

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

Routing Polices And Firewall Filter

  • 1. Routing Polices and Firewall Filter Kashif Latif
  • 2. What is Routing Policies…? A routing policy is a mechanism in the JUNOS software that allows you to modify the routing policy framework to suit your needs. You can create and implement your own routing policies to do the following:  Control which routes a routing protocol places in the routing table.  Control which active routes a routing protocol advertises from the routing table. (An active route is a route that is chosen from all routes in the routing table to reach a destination).  Manipulate the route characteristics as a routing protocol places it in the routing table or advertises it from the routing table.
  • 3. Count…  You can manipulate the route characteristics to control which route is selected as the active route to reach a destination. The active route is placed in the forwarding table and used to forward traffic toward the route’s destination. In general, the active route is also advertised to a router’s neighbors.  To create a routing policy, you must define the policy and apply it. You define the policy by specifying the criteria that a route must match and the actions to perform if a match occurs. You then apply the policy to a routing protocol or to the forwarding table.
  • 4. Routing Tables Affected by Routing Policies
  • 5. Default Actions on Routing Policies The following default actions are taken if the following situations arise during policy evaluation: 1. If a policy does not specify a match condition, all routes evaluated against the policy match. 2. If a match occurs but the policy does not specify an accept, reject, next term, or next policy action, one of the following occurs: 1. The next term, if present, is evaluated. 2. If no other terms are present, the next policy is evaluated. 3. If no other policies are present, the action specified by the default policy is taken. 3. If a match does not occur with a term in a policy and subsequent terms in the same policy exist, the next term is evaluated. 4. If a match does not occur with any terms in a policy and subsequent policies exist, the next policy is evaluated. 5. If a match does not occur by the end of a policy or all policies, the accept or reject action specified by the default policy is taken.
  • 6. Creating Routing Policies The following are typical circumstances under which you might want to preempt the default routing policies in the routing policy framework by creating your own routing policies:  You do not want a protocol to import all routes into the routing table. If the routing table does not learn about certain routes, they can never be used to forward packets and they can never be redistributed into other routing protocols.  You do not want a routing protocol to export all the active routes it learns.  You want a routing protocol to announce active routes learned from another routing protocol, which is sometimes called route redistribution.
  • 7. Count…  You want to manipulate route characteristics, such as the preference value, AS path, or community. You can manipulate the route characteristics to control which route is selected as the active route to reach a destination. In general, the active route is also advertised to a router’s neighbors.  You want to change the default BGP route flap-damping parameters.  You want to perform per-packet load balancing.  You want to enable class of service (CoS).
  • 8. Match Conditions A match condition defines the criteria that a route must match. You can define one or more match conditions. If a route matches all match conditions, one or more actions are applied to the route.
  • 9. What is Firewall Filter…? Firewall filters allow you to filter packets based on their components and to perform an action on packets that match the filter. Depending on the hardware configuration of the routing platform, you can use firewall filters for the following purposes: 1. On routing platforms equipped with an Internet Processor II application-specific integrated circuit (ASIC), you can control data packets, which are chunks of data transiting the routing platform as they are forwarded from a source to a destination. 2. On all routing platforms, you can control the local packets, which are chunks of data that are destined for or sent by the Routing Engine.
  • 10. Count…  You can use the filters to restrict the local packets that pass from the routing platform's physical interfaces to the Routing Engine.  You can apply firewall filters to packets entering or leaving the routing platform on one, more than one, or all interfaces. For each interface, you can apply a firewall filter to incoming or outgoing traffic, or both, and the same filter can be used for both.  You can define firewall filters that apply to IP version 4 (IPv4), IP version 6 (IPv6), or Multiprotocol Label Switching (MPLS) traffic.  Filters with more than 1000 terms and counters have been implemented successfully.
  • 11. Firewall Filter Components Firewall Filter have following two components: 1. Match conditions—Values or fields that the packet must contain. You can define various match conditions, including the IP source address field, IP destination address field, Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) source port field, IP protocol field, Internet Control Message Protocol (ICMP) packet type, IP options, TCP flags, incoming logical or physical interface, and outgoing logical or physical interface. 2. Action—Specifies what to do if a packet matches the match conditions. Possible actions are to accept, discard, or reject a packet, go to the next term, or take no action.  In addition, statistical information can be recorded for a packet: it can be counted, logged, or sampled.
  • 12. Supported Standards The JUNOS software supports the following RFCs related to filtering: 1. RFC 792, Internet Control Message Protocol (ICMP) 2. RFC 2373, IP Version 6 Addressing Architecture 3. RFC 2460, Internet Protocol, Version 6 (IPv6) 4. RFC 2474, Definition of the Differentiated Services (DS) Field 5. RFC 2475, An Architecture for Differentiated Services 6. RFC 2597, Assured Forwarding PHB 7. RFC 2598, An Expedited Forwarding PHB