-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support converged charging #76
Conversation
@Roy-Hu @Tai-shang-chun |
if newURR, err := node.UPF.AddURR(uint32(urrId), | ||
NewMeasureInformation(false, false), | ||
SetStartofSDFTrigger()); err != nil { | ||
logger.PduSessLog.Errorln("new URR failed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SelectDefaultDataPath()
shold free allocated URR ID before function returned.
if newURR, err := node.UPF.AddURR(uint32(urrId), | ||
NewMeasureInformation(false, false), | ||
NewVolumeThreshold(smContext.UrrReportThreshold)); err != nil { | ||
logger.PduSessLog.Errorln("new URR failed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SelectDefaultDataPath()
shold free allocated URR ID before function returned.
40fa8c1
to
b4a1941
Compare
internal/context/datapath.go
Outdated
if node.UpLinkTunnel != nil && node.UpLinkTunnel.PDR != nil { | ||
urrs = node.UpLinkTunnel.PDR.URR | ||
} else if node.DownLinkTunnel != nil && node.DownLinkTunnel.PDR != nil { | ||
urrs = node.UpLinkTunnel.PDR.URR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
urrs = node.DownLinkTunnel.PDR.URR
internal/context/pcc_rule.go
Outdated
if dlIPFilterRule.Src == "any" && dlIPFilterRule.Dst == "assigned" { | ||
return PduSessionCharging, nil | ||
} else { | ||
// For pcc that have applicable for all datapath fpr a datapath, it's charging level will be flow based |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo?
internal/context/pfcp_reports.go
Outdated
) | ||
|
||
func (smContext *SMContext) HandleReports( | ||
UsageReportReport []*pfcp.UsageReportPFCPSessionReportRequest, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should rename to UsageReportRequest ?
22bba06
to
b91e5e4
Compare
… Request Update URR to prevent the flow rule be blocked
UE per user per PDU session (achieved by flow-based charging with a specific rating group)
combination of the rating group