How to Classify Inbound Traffic Using CoS on Junos Routers
If your router is going to examine packets to figure out whether they’re first-class passengers or regular economy-class passengers, you have to know where in the packet this information is stored. There are two fundamental ways to classify traffic, depending on how you set up your network:
Assume that all CoS settings in a packet are correctly set to conform to your network’s CoS implementation, in which case you need only look at the CoS values in the packet’s header.
Assume that the packet’s CoS settings aren’t set in accordance with your network’s CoS implementation, in which case you need another way to determine what type of traffic the packet is carrying.
For example, imagine a typical edge-core network for a couple of different areas of primary concern when it comes to CoS.

A typical edge-core network.
At your network’s core, traffic is passed from routers you control to other routers you control. In this case, you can be fairly certain that the configuration on those boxes will conform to whatever CoS rules you’ve established. So when you classify traffic, you basically need to look only at CoS values that you’ve set within a packet’s headers. This type of classification is known as behavior aggregate (BA) classification.
At the edge of your network, traffic is coming to your routers from devices that you don’t control. It’s anybody’s guess how the CoS values are set. Although it would be nice to imagine a world where everyone classified traffic the same way, the reality is that this uniformity is seldom the case.
In this scenario, you’ll want to classify traffic based on where it came from, not solely on the CoS values in a packet’s headers. You need to look at more than just the CoS field; you need to look at the source and destination address of the packet, or maybe the source and destination ports. This type of classification requires looking at multiple fields within the packet header, so it has been labeled multifield (MF) classification.

Cloud Computing Glossary
cloud computing
A networking solution in which everything — from computing power to computing infrastructure, applications, business processes to personal collaboration — is delivered as a service wherever and whenever you need.

Cloud Computing Glossary
cloud service
The delivery of software, infrastructure, or storage that has been packaged so it can be automated and delivered to customers in a consistent and repeatable manner.

Cloud Computing Glossary
deprovision
The release of cloud services that are no longer needed.

Cloud Computing Glossary
federating
Linking distributed resources together over the cloud.

Cloud Computing Glossary
hypervisor
An operating system that acts as a traffic cop, managing the various virtualization tasks in the cloud to ensure that they make things happen in an orderly manner.

Cloud Computing Glossary
multi-tenancy
The sharing of underlying resources by multiple companies over a cloud.

Cloud Computing Glossary
network attached store
Storage that has its own network address through which it is accessed by the network's workstation users. Acronym: NAS

Cloud Computing Glossary
service level agreement
A contract that stipulates the type of service you need from providers and what type of penalties would result from an unexpected business interruption. Acronym: SLA

Cloud Computing Glossary
solution stack
An integrated set of software that provides everything a developer needs to build an application.

Cloud Computing Glossary
storage area network
A storage systems that is flexible and scalable because it's available to multiple hosts at the same time. Acronym: SAN

Cloud Computing Glossary
vertical industry groups
Workgroups comprised of members from a particular industry such as technology and retail.

Cloud Computing Glossary
virtual memory
The portion of your hard drive that Windows uses to expand the available RAM

Cloud Computing Glossary
virtualization
Using computer resources to imitate other computer resources or whole computers to maximize performance and flexibility.